/* ====================================================
   М.Әуезов шығармаларының рецепциясы — Main CSS
   Premium Academic Design
   ==================================================== */

/* ── CSS Variables ── */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-dark: #020617;
    --accent: #d4af37;
    /* Metallic Gold */
    --accent-light: #e5c76b;
    --accent-dark: #9a7d2e;
    --bg: #f8fafc;
    --bg-dark: #020617;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #f8fafc;
    --border: rgba(226, 232, 240, 0.8);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ── Container ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.23);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.3);
}

.btn-accent:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.23);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 44px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.nav-mobile-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    margin-right: 25px;
    min-width: 0;
    flex-shrink: 1;
}

.logo-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    margin-right: 15px;
}

.nav-link {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 8px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.08), rgba(201, 168, 76, 0.08));
    border: 1.5px solid var(--border);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.lang-dropdown-btn:hover {
    border-color: var(--primary);
    background: rgba(26, 35, 126, 0.06);
}

.lang-dropdown.open .lang-dropdown-btn {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.08);
}

.lang-icon {
    color: var(--primary);
    opacity: 0.8;
}

.lang-label {
    letter-spacing: 0.5px;
}

.lang-arrow {
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 12px 36px rgba(26, 35, 126, 0.12), 0 0 0 1px rgba(26, 35, 126, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.88rem;
    transition: var(--transition);
    text-decoration: none;
}

.lang-option:hover {
    background: rgba(26, 35, 126, 0.06);
    color: var(--primary);
}

.lang-option-text {
    display: flex;
    flex-direction: column;
}

.lang-option-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-option-full {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ── Flash Messages ── */
.flash-message {
    padding: 14px 0;
    margin-top: 72px;
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── Hero Section ── */
.hero {
    margin-top: 72px;
    padding: 160px 0 140px;
    background: linear-gradient(rgba(13, 20, 82, 0.1), rgba(15, 17, 35, 0.2)), url('../../photos/hero_bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path d="M0 0h40v40H0z" fill="rgba(255,255,255,0.015)"/></svg>');
    background-size: 80px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.85);
}

.hero .btn {
    font-size: 1.05rem;
    padding: 16px 40px;
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ── Cards Grid ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.card-link:hover {
    gap: 10px;
    color: var(--accent);
}

/* ── Page Header (internal pages) ── */
.page-header {
    margin-top: 72px;
    padding: 70px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 500;
}

/* ── Content Page ── */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.content-block h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.content-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}

.content-block ul,
.content-block ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-block li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.98rem;
}

.content-block ol {
    list-style: decimal;
}

/* ── Author Page ── */
.author-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.author-photo {
    width: 280px;
    height: 340px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.author-photo-placeholder {
    width: 280px;
    height: 340px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 5rem;
}

.author-info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.author-info .subtitle {
    font-size: 0.95rem;
    color: var(--accent-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.author-info p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.info-list {
    margin-top: 16px;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
}

/* ── Lectures ── */
.lecture-card {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 28px;
    transition: var(--transition);
}

.lecture-card:hover {
    box-shadow: var(--shadow-hover);
}

.lecture-video {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.lecture-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lecture-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lecture-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.lecture-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── Abay Epopee Book Cards ── */
.book-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.book-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.book-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.book-cover .book-number {
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.6;
}

.book-cover h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 8px;
}

.book-card-body {
    padding: 20px;
    text-align: center;
}

/* ── Reviews ── */
.reviews-list {
    display: grid;
    gap: 20px;
}

.review-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.review-item:hover {
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-meta strong {
    font-size: 0.95rem;
}

.review-meta span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.review-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

/* Stars */
.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1.2rem;
    color: #ddd;
}

.star.filled {
    color: var(--accent);
}

/* ── Forms ── */
.form-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ── Registration Language Bar ── */
.register-lang-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.register-lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    min-width: 90px;
}

.register-lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(15, 23, 42, 0.03);
}

.register-lang-btn.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(15, 23, 42, 0.04));
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.register-lang-code {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.register-lang-name {
    font-size: 0.72rem;
    opacity: 0.7;
}

.review-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.review-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.star-rating {
    display: flex;
    gap: 4px;
    direction: rtl;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: var(--accent);
}

/* ── PDF Embed ── */
.pdf-viewer {
    width: 100%;
    height: 600px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    margin: 20px 0;
}

/* ── External Link Block ── */
.external-link-block {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}

.external-link-block h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.external-link-block p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.external-link-block .btn {
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 1.1rem;
    padding: 16px 40px;
}

.external-link-block .btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ── Coming Soon ── */
.coming-soon {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.coming-soon h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.coming-soon p {
    font-size: 1rem;
    color: var(--text-light);
}

/* ── Footer ── */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo h3 {
    font-size: 1.1rem;
    color: var(--accent-light);
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-light);
}

.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-lang {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-lang a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-lang a.active {
    color: var(--accent);
}

.footer-lang a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.3s;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .lecture-card {
        grid-template-columns: 1fr;
    }

    .author-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 28px;
    }

    .hero {
        padding: 100px 0 70px;
        background-attachment: scroll;
    }

    .hero .btn {
        font-size: 0.95rem;
        padding: 14px 32px;
    }

    .section {
        padding: 48px 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 24px;
        border-radius: var(--radius);
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .book-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }


    .nav-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-logo h3 {
        font-size: 0.95rem;
    }

    .footer-lang {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: 36px;
    }

    /* Author page mobile */
    .author-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }

    .author-photo,
    .author-photo-placeholder {
        width: 100%;
        max-width: 220px;
        height: 280px;
        margin: 0 auto;
    }

    .author-info {
        text-align: center;
    }

    .author-info h2 {
        font-size: 1.3rem;
    }

    .author-info .subtitle {
        font-size: 0.85rem;
    }

    .tags-cloud {
        justify-content: center;
    }

    .interests-tags {
        text-align: center;
    }

    /* Advisor card mobile */
    .advisor-card-large {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        text-align: center;
    }

    .advisor-photo-box {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .advisor-details h4 {
        font-size: 1.15rem;
    }

    .advisor-badges {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Grid-2 mobile */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Purpose card mobile */
    .purpose-card {
        flex-direction: column;
        padding: 28px;
        text-align: center;
        gap: 16px;
    }

    .purpose-icon {
        font-size: 2.8rem;
    }

    /* Tasks grid mobile */
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* External link block mobile */
    .external-link-block {
        padding: 40px 24px;
    }

    .external-link-block h2 {
        font-size: 1.5rem;
    }

    .external-link-block .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Reviews page mobile */
    .review-item-premium {
        padding: 20px;
        margin-bottom: 16px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .review-avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Premium cards mobile */
    .card-premium {
        padding: 22px;
    }

    .card-premium h3 {
        font-size: 1.05rem;
    }

    /* Section title premium */
    .section-title-premium {
        font-size: 1.2rem;
        margin-top: 28px;
    }

    /* PDF viewer mobile */
    .pdf-viewer {
        height: 400px;
    }

    /* Coming soon mobile */
    .coming-soon {
        padding: 50px 24px;
    }

    /* Registration language bar mobile */
    .register-lang-bar {
        gap: 6px;
    }

    .register-lang-btn {
        padding: 8px 14px;
        min-width: 75px;
    }

    /* Content blocks mobile */
    .content-block h2 {
        font-size: 1.3rem;
    }

    .content-block h3 {
        font-size: 1.05rem;
    }

    /* Alert premium mobile */
    .alert-premium {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .book-cards {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px 16px;
        margin: 0 8px;
        border-radius: var(--radius);
    }

    .form-container h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .review-form {
        padding: 18px;
    }

    .hero {
        padding: 80px 0 56px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.88rem;
    }

    .container {
        padding: 0 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 14px 30px;
        font-size: 0.95rem;
    }

    /* Logo on very small screens */
    .nav-logo {
        max-width: 70%;
    }

    .logo-text {
        font-size: 0.78rem;
    }

    /* Register lang bar stacked on very small */
    .register-lang-bar {
        gap: 4px;
    }

    .register-lang-btn {
        padding: 8px 10px;
        min-width: 65px;
        font-size: 0.8rem;
    }

    /* Mobile form improvements */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
        padding: 14px 14px;
    }

    /* Footer improvements */
    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* Advisor details */
    .advisor-titles {
        font-size: 0.88rem;
    }

    /* Section height fixes */
    .section {
        padding: 36px 0;
    }

    .page-header {
        padding: 32px 0;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    /* Star rating mobile */
    .star-rating-premium label {
        font-size: 1.8rem;
    }
}

/* ── Admin Styles ── */
.admin-layout {
    min-height: 100vh;
    background: var(--bg);
}

.admin-sidebar {
    background: var(--primary-dark);
    color: #fff;
    padding: 24px 0;
    position: fixed;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar .logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .logo h2 {
    font-size: 1rem;
    color: var(--accent-light);
}

.admin-nav {
    padding: 16px 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-nav a .icon {
    font-size: 1.2rem;
}

.admin-main {
    margin-left: 260px;
    padding: 32px;
    background: var(--bg);
    min-width: 0;
    /* Fix flex issue */
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
}

.admin-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-card .stat-label {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Responsive Table Wrapper */
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th {
    background: var(--primary-dark);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table tr:hover td {
    background: rgba(26, 35, 126, 0.02);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Admin responsive */
@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
        padding-top: 54px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
        z-index: 1010;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding: 24px 16px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .admin-mobile-toggle {
        display: flex;
        background: var(--primary-dark);
        color: #fff;
        padding: 12px 20px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1005;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 600;
        box-shadow: var(--shadow);
    }
}

@media (min-width: 769px) {
    .admin-mobile-toggle {
        display: none;
    }
}

/* ── Check List ── */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ── Advisor Card ── */
.advisor-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-top: 24px;
    transition: var(--transition);
}

.advisor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.advisor-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.advisor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advisor-info h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.advisor-info p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── User Dropdown Styles ── */
.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 24px;
    background: rgba(26, 35, 126, 0.05);
    border: 1.5px solid var(--border);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.user-dropdown-btn:hover {
    border-color: var(--primary);
    background: rgba(26, 35, 126, 0.08);
}

.user-dropdown-btn .fa-circle-user {
    font-size: 1.1rem;
    color: var(--primary);
}

.user-dropdown-btn .fa-chevron-down {
    font-size: 0.7rem;
    opacity: 0.6;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-user-info {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
}

.dropdown-user-info strong {
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.dropdown-user-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.dropdown-menu hr {
    margin: 4px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu li a i {
    width: 16px;
    text-align: center;
    opacity: 0.8;
}

/* ── Final Header Adjustments ── */
@media (max-width: 1366px) {
    .user-name-label {
        display: none;
    }

    .user-dropdown-btn {
        padding: 8px;
        border-radius: 50%;
    }

    .user-dropdown-btn .fa-chevron-down {
        display: none;
    }
}

@media (max-width: 1100px) {
    .nav-container {
        gap: 10px;
    }

    .nav-logo .logo-text {
        font-size: 0.85rem;
    }
}

/* ── Premium UI Components ── */
.card-premium {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.card-premium .btn {
    margin-top: 15px;
}

.card-premium:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.card-premium h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.section-title-premium {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.alert-premium {
    display: flex;
    gap: 20px;
    background: rgba(26, 35, 126, 0.03);
    padding: 24px;
    border-radius: var(--radius);
    border-left: 5px solid var(--accent);
    align-items: flex-start;
}

.alert-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.check-list-premium {
    list-style: none;
    padding: 0;
}

.check-list-premium li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.check-list-premium li i {
    color: var(--success);
    margin-top: 4px;
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-link {
        padding: 5px 8px !important;
        font-size: 0.78rem !important;
    }

    .logo-text {
        font-size: 0.88rem;
    }
}

/* ── Premium Author & Advisor ── */
.advisor-card-large {
    display: flex;
    gap: 40px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    align-items: center;
    margin-top: 30px;
}

.advisor-photo-box {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.advisor-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advisor-avatar-fallback {
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
}

.advisor-details h4 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.advisor-titles {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
}

.purpose-card {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    align-items: center;
    margin-top: 30px;
}

.purpose-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.purpose-content h3 {
    color: var(--accent-light);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.task-card {
    background: var(--bg-card);
    padding: 40px 30px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.task-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(201, 168, 76, 0.4);
}

.task-icon-box {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.7;
}

.section-title-center {
    text-align: center;
    margin-top: 60px;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {

    /* ── Navbar Mobile ── */
    .navbar {
        padding: 5px 0;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        order: 2;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
    }

    .nav-toggle:active {
        background: rgba(0, 0, 0, 0.05);
    }

    .nav-logo {
        order: 1;
        max-width: calc(100% - 60px);
        margin-right: 8px;
    }

    .logo-text {
        font-size: 0.82rem;
    }

    /* Burger → X animation */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-mobile-wrapper {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        display: none;
        border-top: 1px solid var(--border);
        padding-top: 12px;
        padding-bottom: 12px;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-mobile-wrapper.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin-right: 0;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 14px 16px !important;
        font-size: 0.92rem !important;
        background: rgba(26, 35, 126, 0.02);
        border-radius: var(--radius-sm);
        min-height: 48px;
    }

    .nav-link:active {
        background: rgba(26, 35, 126, 0.08);
    }

    .nav-dropdown-btn,
    .dropdown-trigger,
    .lang-dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }

    /* Dropdowns inside mobile menu */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        display: none;
        padding-left: 16px;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-left: 3px solid var(--accent);
        margin-left: 12px;
        margin-top: 4px;
        min-width: 100%;
    }

    .dropdown-menu a {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .lang-dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        border: none;
        border-left: 3px solid var(--accent);
        margin-left: 12px;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .lang-option {
        padding: 12px 14px;
        min-height: 44px;
    }

    .lang-dropdown.open .lang-dropdown-menu {
        display: block;
    }

    .lang-dropdown-btn {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        min-height: 48px;
    }

    /* Login button mobile */
    .nav-actions .btn-sm {
        padding: 14px 20px;
        font-size: 0.92rem;
        text-align: center;
        justify-content: center;
        border-radius: var(--radius-sm);
    }

    /* ── Pages Mobile General ── */
    .hero {
        padding: 110px 0 70px;
        margin-top: 60px;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .page-header {
        padding: 44px 0;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .author-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
    }

    .author-photo,
    .author-photo-placeholder {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        height: 300px;
    }

    .task-card {
        padding: 35px 25px 25px;
    }

    .advisor-card-large {
        flex-direction: column;
        text-align: center;
        padding: 28px;
    }

    /* Grid-2 tablet */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* User dropdown mobile */
    .user-dropdown .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .user-dropdown:hover .dropdown-menu {
        display: block;
    }

    .user-dropdown-btn {
        width: 100%;
        border-radius: var(--radius-sm);
        padding: 12px 16px;
        min-height: 48px;
    }

    .user-name-label {
        display: inline;
    }

    .user-dropdown-btn .fa-chevron-down {
        display: inline;
    }
}



/* ── Reviews Premium Layout ── */
.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .reviews-sidebar {
        order: -1;
    }
}

.reviews-sidebar .sticky-top {
    position: sticky;
    top: 100px;
}

.review-item-premium {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-item-premium:hover {
    transform: translateX(5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2);
}

.review-author-info strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-title-text {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.review-description {
    line-height: 1.7;
    color: var(--text);
}

/* ── Premium Star Rating ── */
.star-rating-premium {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating-premium input {
    display: none;
}

.star-rating-premium label {
    font-size: 1.5rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: 0.2s;
}

.star-rating-premium input:checked~label,
.star-rating-premium label:hover,
.star-rating-premium label:hover~label {
    color: #f59e0b;
}

.premium-form .form-control {
    border: 1.5px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.premium-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

/* ====================================================
   Review Wizard Styles
   ==================================================== */

.review-wizard-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 20px 0;
}

.wizard-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    min-width: 70px;
}

.wizard-progress-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.wizard-progress-step.active .wizard-progress-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(207, 166, 49, 0.35);
    transform: scale(1.1);
}

.wizard-progress-step.completed .wizard-progress-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.wizard-progress-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
    max-width: 80px;
    line-height: 1.2;
}

.wizard-progress-step.active .wizard-progress-label {
    color: var(--accent);
    font-weight: 700;
}

.wizard-progress-step.completed .wizard-progress-label {
    color: var(--primary);
}

.wizard-progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 -5px;
    margin-bottom: 20px;
    min-width: 20px;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: wizardFadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    color: #fff;
}

.wizard-step-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.wizard-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.wizard-step-subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 4px 0 0;
}

/* Questions */
.wizard-question {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.wizard-question:hover {
    border-color: var(--accent);
}

.wizard-question-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 14px;
    cursor: default;
}

.wizard-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.wizard-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--bg-alt);
    color: var(--text);
}

.wizard-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(207, 166, 49, 0.15);
    background: #fff;
}

.wizard-textarea.wizard-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: wizardShake 0.4s ease;
}

@keyframes wizardShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Rating Section */
.wizard-rating-section {
    text-align: center;
    padding: 40px 20px;
}

.wizard-author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
}

.review-avatar-circle.large {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
}

.wizard-author-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.wizard-author-email {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

.wizard-stars {
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: inline-block;
}

.wizard-stars-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.star-rating-wizard {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 4px;
}

.star-rating-wizard input {
    display: none;
}

.star-rating-wizard label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating-wizard label:hover,
.star-rating-wizard label:hover ~ label,
.star-rating-wizard input:checked ~ label {
    color: var(--accent);
}

.star-rating-wizard label:hover {
    transform: scale(1.15);
}

/* Navigation Buttons */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.wizard-nav-spacer {
    flex: 1;
}

.wizard-nav .btn {
    min-width: 160px;
    padding: 14px 24px;
    font-weight: 600;
}

/* ====================================================
   Reviews Page — Full Width Cards + Accordion 
   ==================================================== */

.review-write-cta {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(207, 166, 49, 0.08), rgba(15, 23, 42, 0.04));
    border-radius: var(--radius-lg);
    border: 1px dashed var(--accent);
}

.review-write-cta .btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.review-auth-prompt {
    padding: 20px;
}

.review-auth-prompt i {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 12px;
    display: block;
}

.review-auth-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

/* Review Cards */
.reviews-list-full {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-card-full {
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    transition: all 0.3s ease;
}

.review-card-full:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(207, 166, 49, 0.3);
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.review-author-name {
    font-size: 1rem;
}

/* Accordion */
.review-answers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-section-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.review-section-accordion:hover {
    border-color: var(--accent);
}

.review-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-alt);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s ease;
}

.review-accordion-trigger:hover {
    background: rgba(207, 166, 49, 0.08);
}

.review-accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-accordion-title i {
    color: var(--accent);
    font-size: 0.85rem;
}

.review-accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-section-accordion.open .review-accordion-arrow {
    transform: rotate(180deg);
}

.review-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 18px;
}

.review-section-accordion.open .review-accordion-content {
    max-height: 2000px;
    padding: 16px 18px;
}

.review-qa-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.review-qa-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-question-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

.review-q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-answer-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
    padding-left: 34px;
}

/* ── Wizard Mobile ── */
@media (max-width: 768px) {
    .wizard-progress {
        flex-wrap: wrap;
        gap: 8px;
    }

    .wizard-progress-line {
        display: none;
    }

    .wizard-progress-step {
        min-width: 55px;
    }

    .wizard-progress-circle {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .wizard-progress-label {
        font-size: 0.6rem;
    }

    .wizard-step-header {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .wizard-step-title {
        font-size: 1rem;
    }

    .wizard-question {
        padding: 14px;
    }

    .wizard-question-label {
        font-size: 0.85rem;
    }

    .wizard-nav .btn {
        min-width: auto;
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .review-card-full {
        padding: 18px;
    }

    .review-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}