/* ─── TOKENS ──────────────────────────────────────────── */
:root {
    --primary:       #7C3AED;
    --primary-light: #8B5CF6;
    --primary-dark:  #5B21B6;
    --accent:        #0891B2;
    --bg:            #F8FAFC;
    --bg-card:       #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --border:        rgba(15, 23, 42, 0.09);
    --border-hover:  rgba(124, 58, 237, 0.45);
    --text:          #0F172A;
    --text-secondary:#475569;
    --text-muted:    #94A3B8;
    --white:         #FFFFFF;
    --radius:        0.75rem;
    --shadow-glow:   0 0 40px rgba(124, 58, 237, 0.12);
    --shadow-card:   0 4px 24px rgba(15, 23, 42, 0.08);
    --ease:          0.2s ease;
}

[data-theme="dark"] {
    --bg:            #0F172A;
    --bg-card:       #1E293B;
    --bg-card-hover: #243044;
    --border:        rgba(255, 255, 255, 0.08);
    --border-hover:  rgba(124, 58, 237, 0.5);
    --text:          #F1F5F9;
    --text-secondary:#CBD5E1;
    --text-muted:    #64748B;
    --shadow-glow:   0 0 40px rgba(124, 58, 237, 0.2);
    --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -5%, rgba(139, 92, 246, 0.15) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 60%,  rgba(8, 145, 178, 0.1) 0%, transparent 55%);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .section-alt {
    background: linear-gradient(180deg, #1a2744 0%, #0F172A 100%);
}

[data-theme="dark"] .section-alt::before {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
}

[data-theme="dark"] .site-footer {
    background: #080f1f;
}

[data-theme="dark"] .nav-links {
    background: rgba(15, 23, 42, 0.98);
}

[data-theme="dark"] ::-webkit-scrollbar-track { background: #1E293B; }

[data-theme="dark"] .hero-photo img {
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) border-box;
}

/* ─── THEME TOGGLE ───────────────────────────────────── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--ease);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--border-hover);
    background: rgba(124, 58, 237, 0.07);
}

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -5%, rgba(139, 92, 246, 0.09) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 60%,  rgba(8, 145, 178, 0.06) 0%, transparent 55%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: #F1F5F9; }
::-webkit-scrollbar-thumb  { background: var(--primary-light); border-radius: 3px; }

/* ─── FOCUS ──────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section        { padding: 3rem 0; position: relative; }
.section-narrow { max-width: 680px; }

.section-alt {
    background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
}

.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

/* ─── HEADER ─────────────────────────────────────────── */
.site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.07);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.75rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

/* ─── LOGO IMAGE CROP ────────────────────────────────── */
/* Zooms in ~25%, centers H, shifts up ~9% to remove Gemini
   watermark (bottom-right) and trim side whitespace.        */
.logo-img-wrap {
    width: 144px;
    height: 60px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.logo-img-wrap img {
    position: absolute;
    width: 125%;
    left: 50%;
    transform: translate(-50%, -9%);
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--ease);
}

.nav-links a:hover { color: var(--primary); }

/* hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--ease);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.28);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.42);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 600px at 30% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
        radial-gradient(circle 400px at 70% 30%, rgba(8, 145, 178, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-text h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Offset tinted backdrop — gives the photo a floating, layered feel */
.hero-photo::before {
    content: '';
    position: absolute;
    width: min(calc(100% - 24px), 420px);
    height: calc(100% - 24px);
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(8, 145, 178, 0.14) 100%);
    transform: translate(18px, 18px);
    z-index: 0;
}


.hero-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
    /* Gradient border: purple → cyan */
    border: 3px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) border-box;
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.14),
        0 6px 20px rgba(124, 58, 237, 0.12);
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-photo img:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.16),
        0 8px 28px rgba(124, 58, 237, 0.18);
}

/* ─── SOCIAL ROW ─────────────────────────────────────── */
.social-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--ease);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.social-row a:hover {
    color: var(--primary);
    border-color: var(--border-hover);
    background: rgba(124, 58, 237, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* ─── SECTION TYPOGRAPHY ─────────────────────────────── */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin-top: 0.4rem;
}

.section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 65ch;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--ease);
}

.section-link:hover { gap: 0.65rem; }
.section-link svg   { transition: transform var(--ease); }
.section-link:hover svg { transform: translateX(3px); }

/* ─── PILLS ──────────────────────────────────────────── */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
}

[data-theme="dark"] .pill {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(167, 139, 250, 0.45);
}

/* ─── FEATURE ROW (Book / Course) ────────────────────── */
.feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-row--reverse {
    grid-template-columns: 1fr auto;
}

.feature-row--reverse .feature-media { order: 2; }
.feature-row--reverse .feature-body  { order: 1; }

.feature-media { position: relative; flex-shrink: 0; }

.feature-img {
    width: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.feature-img--book {
    width: 200px;
    filter: drop-shadow(4px 10px 20px rgba(15, 23, 42, 0.2));
}

.feature-row:hover .feature-img { transform: translateY(-4px); }

.feature-body  { display: flex; flex-direction: column; }

.feature-meta {
    font-size: 0.82rem !important;
    font-weight: 600;
    color: var(--primary) !important;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

/* ─── BADGE ──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    position: absolute;
    top: 0.75rem;
    right: -0.5rem;
}

.badge--progress {
    color: #B45309;
    background: rgba(252, 211, 77, 0.2);
    border: 1px solid rgba(252, 211, 77, 0.4);
}

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer {
    background: #F1F5F9;
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 0.25rem;
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--ease);
    width: fit-content;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ─── PAGE HEADER (news / mentorship sub-pages) ──────── */
.page-header {
    padding: 4rem 0 2rem;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
    max-width: 55ch;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color var(--ease);
}

.back-link:hover { color: var(--primary); }

/* ─── NEWS LIST (news page) ──────────────────────────── */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2rem;
}

.news-entry {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.news-entry::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-entry:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.news-entry:hover::before { opacity: 1; }

.news-date {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-entry h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-entry p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.25rem;
    max-width: 72ch;
}

.news-entry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: 0.75rem;
    transition: gap var(--ease);
}

.news-entry-link:hover { gap: 0.65rem; }

/* ─── CAROUSEL ───────────────────────────────────────── */
.carousel-outer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

.carousel-arrow svg { width: 1.1rem; height: 1.1rem; }

.carousel-arrow:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--border-hover);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.14);
}

.carousel-wrapper { flex: 1; overflow: hidden; min-width: 0; }

.carousel-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #CBD5E1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active { background: var(--primary-light); width: 20px; border-radius: 3px; }

/* ─── COURSE CARDS ────────────────────────────────────── */
.course-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    flex: 0 0 calc(25% - 0.94rem);
    min-width: 0;
    box-shadow: var(--shadow-card);
}

.course-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15); }
.course-card:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }

.course-card__image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #e2e8f0;
}

.course-card__image img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-card__image img { transform: scale(1.06); }

.course-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.course-card__badge {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    background: rgba(124, 58, 237, 0.9);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    z-index: 1;
}

.course-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; gap: 0.5rem; }

.course-card__body h3 { font-size: 0.975rem; font-weight: 600; line-height: 1.4; color: var(--text); transition: color var(--ease); }
.course-card:hover .course-card__body h3 { color: var(--primary); }
.course-card__body p  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; flex: 1; }

.course-card__footer {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

.course-card__footer svg { width: 0.9rem; height: 0.9rem; transition: transform var(--ease); }
.course-card:hover .course-card__footer svg { transform: translateX(3px); }

/* ─── BOOK CARD ───────────────────────────────────────── */
.books-grid { display: flex; justify-content: center; margin-top: 2.5rem; }

.book-card {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.07) 0%, rgba(8, 145, 178, 0.04) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 1.25rem;
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 800px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.08);
}

.book-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-glow); }

.book-card__cover { flex-shrink: 0; width: 180px; filter: drop-shadow(4px 10px 24px rgba(15, 23, 42, 0.2)); transition: filter 0.3s ease, transform 0.3s ease; border-radius: 6px; overflow: hidden; }
.book-card__cover img { width: 100%; display: block; }
.book-card:hover .book-card__cover { filter: drop-shadow(6px 12px 28px rgba(124, 58, 237, 0.4)); transform: scale(1.03) rotate(-1deg); }

.book-card__body { display: flex; flex-direction: column; gap: 0.5rem; }
.book-card__body h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; transition: color var(--ease); }
.book-card:hover .book-card__body h3 { color: var(--primary); }
.book-card__author { font-size: 0.9rem; font-weight: 500; color: var(--primary); }
.book-card__desc   { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

.book-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0.65rem 1.4rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all var(--ease);
    width: fit-content;
    line-height: 1;
}

.book-card__cta svg { transition: transform var(--ease); flex-shrink: 0; }
.book-card:hover .book-card__cta svg { transform: translateX(3px); }
.book-card:hover .book-card__cta { box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5); transform: translateY(-1px); }

/* ─── TESTIMONIALS ────────────────────────────────────── */
.testimonial-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.875rem;
    border: 1px solid var(--border);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    flex: 0 0 calc(25% - 1rem);
    min-width: 0;
    box-shadow: var(--shadow-card);
}

.testimonial-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1); }

.testimonial-header { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.875rem; }

.testimonial-image {
    width: 2.75rem; height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(124, 58, 237, 0.2);
    flex-shrink: 0;
}

.testimonial-info h3 { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.testimonial-info p  { font-size: 0.8rem; color: var(--text-muted); }

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-rating { color: #D97706; margin-top: 0.875rem; font-size: 0.9rem; letter-spacing: 0.05em; }

/* ─── MODULE CARDS ────────────────────────────────────── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.module-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 0.875rem;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.module-card:hover { transform: translateY(-4px); background: var(--bg-card-hover); border-color: var(--border-hover); box-shadow: 0 12px 36px rgba(124, 58, 237, 0.12); }

.module-icon { color: var(--primary); margin-bottom: 1rem; }

.module-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.625rem; letter-spacing: -0.01em; }
.module-card p  { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65; }

/* ─── SCHEDULE DROPDOWNS ─────────────────────────────── */
.dropdown { margin-bottom: 1rem; }

.dropdown-toggle {
    background: var(--bg-card);
    color: var(--text);
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 0.625rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
    transition: all var(--ease);
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.dropdown-toggle::after {
    content: '\25BC';
    font-size: 0.75rem;
    color: var(--text-muted);
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.dropdown-toggle:hover { background: var(--bg-card-hover); border-color: var(--border-hover); color: var(--primary); }
.dropdown.open .dropdown-toggle::after { transform: translateY(-50%) rotate(180deg); }

.dropdown-content { display: none; margin-top: 0.875rem; }
.dropdown.open .dropdown-content { display: block; }

.schedule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    text-align: center;
}

.schedule-card {
    background: var(--bg-card);
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.schedule-card:hover { transform: translateY(-3px); border-color: var(--border-hover); background: var(--bg-card-hover); }
.schedule-icon { color: var(--primary); margin-bottom: 0.75rem; }
.schedule-card h3 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; color: var(--text-muted); }
.schedule-card p  { font-size: 1.25rem; font-weight: 700; color: var(--text); }

/* ─── SECTION HEADINGS ───────────────────────────────── */
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text);
    display: inline-block;
}

.section-heading::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* ─── HERO EYEBROW ───────────────────────────────────── */
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* ─── SECTION INTRO ──────────────────────────────────── */
.section-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 65ch;
    margin-bottom: 2.5rem;
}

/* ─── INLINE LINK ────────────────────────────────────── */
.inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ease);
}
.inline-link:hover { color: var(--primary-dark); }

/* ─── ROLES GRID ─────────────────────────────────────── */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.role-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.12);
}

.role-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.role-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.role-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ─── SERVICES GRID ──────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.12);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.service-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.service-card > p:last-of-type {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    flex: 1;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--ease);
    width: fit-content;
}

.service-cta:hover { gap: 0.65rem; }
.service-cta svg   { transition: transform var(--ease); }
.service-cta:hover svg { transform: translateX(3px); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .course-card     { flex: 0 0 calc(33.333% - 0.84rem); }
    .testimonial-card{ flex: 0 0 calc(33.333% - 1rem); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 3.75rem; left: 0; right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        z-index: 99;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    }

    .nav-links.open { display: flex; }

    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero { padding: 2.5rem 0 2rem; }
    .hero-text h1 { font-size: 2.25rem; }
    .hero-photo { min-height: 220px; }

    .section { padding: 2rem 0; }

    .roles-grid    { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }

    .feature-row,
    .feature-row--reverse { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .feature-row--reverse .feature-media,
    .feature-row--reverse .feature-body { order: unset; }
    .feature-img, .feature-img--book { width: 200px; margin: 0 auto; }
    .feature-body { align-items: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .book-card { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.5rem; }
    .book-card__cta { align-self: center; }

    .page-header h1 { font-size: 1.85rem; }
}

@media (max-width: 640px) {
    .course-card      { flex: 0 0 calc(85% - 0.5rem); }
    .testimonial-card { flex: 0 0 calc(85% - 0.5rem); }
    .hero-actions     { flex-direction: column; }
    .btn              { justify-content: center; }
}
