/* Abel Begena Public Site v3 — dark brown heritage palette (Lora + Inter + Noto Sans Ethiopic) */
:root {
    /* Brand */
    --brand-primary: #e89b52;
    --brand-primary-hover: #d88a42;
    --brand-primary-active: #c47832;
    --gold: #c79a2b;
    --gold-light: #e8c06a;
    --gold-hover: #d1a535;
    --amber: #f59e0b;
    
    --royal: #e89b52;
    --royal-dark: #3e2717;
    --royal-light: #f5c08a;
    --orange: #e89b52;
    --orange-light: #f5c08a;
    --brown: #6f4e37;
    --cream: #faf6ef;

    --header-height: 5rem;
    --radius: 1rem;

    /* Semantic tokens (Light Mode) */
    --bg-page: #fffdf8;
    --bg-surface: #ffffff;
    --bg-alt: #faf6ef;
    --bg-subtle: #faf6ef;
    --bg-card: #ffffff;
    --bg-card-hover: #faf6ef;

    --text-body: #2b2b2b;
    --text-heading: #2b2b2b;
    --text-secondary: #666666;
    --text-muted: #666666;
    --text-soft: #9e9e9e;

    --border-color: #e7ded1;
    --border-warm: #363642;
    --border-subtle: #f0e9df;
    --border-faint: #f4efe7;

    --shadow-sm: 0 2px 12px rgba(43, 32, 22, 0.07);
    --shadow-md: 0 8px 30px rgba(43, 32, 22, 0.12);
    --shadow-lg: 0 20px 50px rgba(43, 32, 22, 0.14);
}

[data-theme="dark"] {
    --gold: #c8860f;
    --gold-light: #e0a020;
    --gold-hover: #e8b430;
    
    --brand-primary: #c8860f;
    --brand-primary-hover: #b87700;
    --brand-primary-active: #a06800;
    --royal: #c8860f;
    --royal-dark: #2a1500;
    --royal-light: #e0a020;
    --orange: #c8860f;
    --orange-light: #e0a020;
    --brown: #5a3a1a;
    --cream: #f5e8c8;
    
    --bg-page: #0d0800;
    --bg-surface: #1a1000;
    --bg-alt: #150d00;
    --bg-subtle: #1f1500;
    --bg-card: #1e1200;
    --bg-card-hover: #261800;

    --text-body: #e8d9b8;
    --text-heading: #f5e8c8;
    --text-secondary: #c8b890;
    --text-muted: #9a8060;
    --text-soft: #6a5840;

    --border-color: rgba(200, 134, 15, 0.15);
    --border-warm: rgba(200, 134, 15, 0.25);
    --border-subtle: rgba(200, 134, 15, 0.08);
    --border-faint: rgba(200, 134, 15, 0.05);

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::selection {
    background: rgba(199, 154, 43, 0.35);
    color: var(--royal-dark);
}

img { max-width: 100%; height: auto; }

/* Brand */
.bg-royal { background-color: var(--royal); }
.bg-royal-dark { background-color: var(--royal-dark); }
.bg-orange { background-color: var(--orange); }
.bg-gold { background-color: var(--gold); }
.bg-cream { background-color: var(--cream); }
.text-royal { color: var(--royal); }
.text-royal-dark { color: var(--royal-dark); }
.text-orange { color: var(--orange); }
.text-gold { color: var(--gold); }
.text-orange-light { color: var(--orange-light); }

/* Header */
.site-header {
    transition: box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    background: var(--bg-surface) !important;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.25rem 0;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.is-active { color: var(--royal); }
.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    border-radius: 2px;
}

#mobile-menu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary,
.btn-gold,
.btn-outline-light,
.btn-secondary,
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    box-shadow: 0 6px 18px rgba(111, 78, 55, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(111, 78, 55, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #e8c06a);
    color: var(--royal-dark);
    box-shadow: 0 6px 18px rgba(199, 154, 43, 0.35);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(199, 154, 43, 0.45);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-body);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--text-soft);
}

.btn-login {
    background: transparent;
    color: var(--royal);
    border: 1.5px solid var(--royal);
    box-shadow: none;
}
.btn-login:hover {
    background: rgba(111, 78, 55, 0.08);
    border-color: var(--royal-dark);
    color: var(--royal-dark);
    transform: translateY(-1px);
}

/* Section system */
.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-subheading {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.625rem;
}

.section-intro {
    color: var(--text-muted);
    max-width: 38rem;
    margin: 0.625rem auto 0;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.floral-divider {
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--orange) 50%, var(--gold) 80%, transparent);
    height: 2px;
    width: 5rem;
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

.section-block { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-block--alt { background: var(--bg-alt); }
.section-block--pattern {
    background-color: var(--bg-page);
    background-image: radial-gradient(circle at 1px 1px, rgba(111, 78, 55, 0.035) 1px, transparent 0);
    background-size: 22px 22px;
}
[data-theme="dark"] .section-block--pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(232, 155, 82, 0.05) 1px, transparent 0);
}

/* Cards */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(127, 127, 127, 0.08);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Hero */
.hero-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform-origin: center top;
    animation: heroZoom 45s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--bg-page), transparent);
    z-index: 2;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 3; width: 100%; }

.hero-content h1,
.hero-content > div > p,
.hero-stat__value,
.hero-stat__label {
    text-shadow: 0 2px 22px rgba(20, 14, 8, 0.65), 0 1px 4px rgba(20, 14, 8, 0.5);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    max-width: 26rem;
}
.hero-stat__value {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}
.hero-stat__label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.2rem;
    line-height: 1.3;
}

.hero-scroll {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.5);
    animation: bounceSoft 2.5s ease-in-out infinite;
}
@keyframes bounceSoft {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* About */
.about-image-wrap {
    position: relative;
}
.about-image-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, rgba(111,78,55,0.08), rgba(234,88,12,0.08));
    border-radius: 1.5rem;
    z-index: -1;
}
.about-quote {
    border-left: 3px solid var(--gold);
    padding: 1rem 0 1rem 1.25rem;
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Scripture & Begena */
.scripture-section {
    border-top: 1px solid rgba(111, 78, 55, 0.06);
}

.scripture-panel__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.scripture-quote {
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(199, 154, 43, 0.06), var(--bg-surface));
    border: 1px solid rgba(199, 154, 43, 0.22);
    border-left: 3px solid var(--gold);
}

.scripture-quote__text {
    font-style: italic;
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.75;
}

.scripture-quote__ref {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: normal;
    color: var(--orange);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scripture-order {
    background: linear-gradient(160deg, var(--bg-surface) 0%, rgba(199, 154, 43, 0.05) 100%);
    border: 1px solid var(--border-color);
}

.scripture-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.scripture-step {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding-bottom: 0.875rem;
    border-bottom: 1px dashed var(--border-color);
}

.scripture-step:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.scripture-step__number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
}

.scripture-step__title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.9375rem;
    line-height: 1.3;
}

.scripture-step__am {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 0.125rem;
}

.scripture-step__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.25rem;
}

.scripture-order__closing {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(199, 154, 43, 0.25);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.instrument-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: 0.875rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-faint);
    transition: all 0.25s;
}
.instrument-card:hover {
    border-color: rgba(111,78,55,0.2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.instrument-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.625rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, rgba(111,78,55,0.07), rgba(234,88,12,0.07));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* Steps */
.steps-grid {
    position: relative;
}
@media (min-width: 1024px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 2.75rem;
        left: 12%;
        right: 12%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--border-color), var(--border-color), transparent);
        z-index: 0;
    }
}
.step-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    position: relative;
    z-index: 1;
}
.step-card__number {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 16px rgba(111,78,55,0.3);
    border: 3px solid var(--bg-surface);
}

.course-card {
    padding: 1.625rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    background: rgba(234,88,12,0.08);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}
.course-card__fee {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.course-card__fee-note {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-top: 0.15rem;
}
.course-card__register {
    width: 100%;
    margin-top: 0.875rem;
    padding: 0.6rem 1rem !important;
    font-size: 0.875rem;
}

.course-fee-note {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
}

/* Portfolio */
.portfolio-card__img {
    height: 14rem;
    object-fit: cover;
    width: 100%;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.portfolio-card:hover .portfolio-card__img {
    transform: scale(1.06);
}

/* Gallery */
.gallery-tab {
    transition: all 0.2s;
    border: 1px solid transparent;
}
.gallery-tab.is-active {
    background: var(--royal) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(111,78,55,0.3);
    border-color: var(--royal);
}
.gallery-item {
    aspect-ratio: 4/3;
    cursor: pointer;
    border: none;
    padding: 0;
}
.gallery-item--featured {
    aspect-ratio: auto;
    min-height: 280px;
}
@media (min-width: 768px) {
    .gallery-item--featured { min-height: 100%; }
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    background: linear-gradient(to top, rgba(26,26,30,0.88) 0%, rgba(26,26,30,0.2) 50%, transparent 100%);
    opacity: 1;
    transition: opacity 0.3s;
}
@media (min-width: 768px) {
    .gallery-caption { opacity: 0; }
    .gallery-item:hover .gallery-caption { opacity: 1; }
}
.gallery-zoom-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s;
}
.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 60%, var(--royal-light) 100%);
    border-radius: 1.25rem;
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-banner::before,
.cta-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner::before {
    top: -40%; right: -10%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(199,154,43,0.18), transparent 70%);
}
.cta-banner::after {
    bottom: -50%; left: -5%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
}

/* Contact */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    transition: background 0.2s, border-color 0.2s;
}
.contact-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(199,154,43,0.2);
}
.contact-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(199,154,43,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}
.contact-item__link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-item__link:hover {
    color: var(--gold-light);
}
.contact-map iframe {
    display: block;
    width: 100%;
    filter: grayscale(20%) contrast(1.05);
}

/* Registration form */
.page-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, var(--royal-dark), var(--royal) 50%, var(--royal-dark));
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 24px 24px;
}

.form-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; }

.form-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
}
.form-section__num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 0.125rem;
}
.form-label-am {
    display: block;
    font-size: 0.7rem;
    color: var(--text-soft);
    margin-bottom: 0.375rem;
}
.form-input,
.form-select {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.875rem;
    color: var(--text-body);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: var(--bg-subtle);
    font-size: 0.9375rem;
}
.form-input:focus,
.form-select:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(111,78,55,0.1);
    background: var(--bg-surface);
}
.form-input::placeholder { color: var(--text-soft); }

.form-checkbox,
.form-radio {
    accent-color: var(--royal);
    width: 1rem;
    height: 1rem;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-subtle);
}
.choice-card:hover { border-color: rgba(111,78,55,0.25); background: var(--bg-surface); }
.choice-card:has(:checked) {
    border-color: var(--royal);
    background: rgba(111,78,55,0.08);
}
.choice-card--accent:has(:checked) {
    border-color: var(--orange);
    background: rgba(234,88,12,0.04);
}

.photo-upload {
    width: 7rem;
    height: 7rem;
    border-radius: 1rem;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.photo-upload:hover { border-color: var(--royal); }

/* Success page */
.success-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(34,197,94,0.2);
}
.registration-id-box {
    background: linear-gradient(135deg, rgba(111,78,55,0.06), rgba(111,78,55,0.02));
    border: 1px solid rgba(111,78,55,0.1);
    border-radius: 0.875rem;
    padding: 1.25rem;
}

/* Utilities */
.line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 40;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--royal);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--royal-dark); transform: translateY(-2px); }

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.25s ease;
}
.gallery-lightbox.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.gallery-lightbox-content { max-width: 56rem; width: 100%; text-align: center; }
.gallery-lightbox-image {
    max-height: 72vh;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}
.gallery-lightbox-caption { color: white; margin-top: 1.25rem; }
.gallery-lightbox-counter {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}
.gallery-lightbox-close {
    position: absolute; top: 1rem; right: 1.25rem;
    color: white; font-size: 2rem; line-height: 1;
    background: rgba(255,255,255,0.1); border: none;
    border-radius: 50%; width: 2.5rem; height: 2.5rem;
    cursor: pointer; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: white; font-size: 1.75rem;
    background: rgba(255,255,255,0.1); border: none;
    border-radius: 50%; width: 2.75rem; height: 2.75rem;
    cursor: pointer; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.gallery-lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }
@media (max-width: 640px) { .gallery-lightbox-nav { display: none; } }

.has-\[\:checked\]\:border-orange:has(:checked) { border-color: var(--orange); }
.has-\[\:checked\]\:bg-orange\/5:has(:checked) { background-color: rgba(234,88,12,0.05); }
.has-\[\:checked\]\:border-royal:has(:checked) { border-color: var(--royal); }
.has-\[\:checked\]\:bg-royal\/5:has(:checked) { background-color: rgba(111,78,55,0.05); }

@media (max-width: 640px) {
    .hero-stats { gap: 0.75rem; }
    .hero-stat__value { font-size: 1.125rem; }
    .nav-link.is-active::after { display: none; }
}

/* ── Registration page ── */
.register-page { background: var(--bg-page); }

.register-hero {
    background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 55%, #c47832 100%);
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 4.5rem);
    position: relative;
    overflow: hidden;
}
.register-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 22px 22px;
}
.register-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3rem;
    background: linear-gradient(to top, var(--bg-page), transparent);
}
.register-hero__inner { position: relative; z-index: 1; }

.register-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--gold-light);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.register-layout {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    display: grid;
    gap: 1.5rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 1024px) {
    .register-layout {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
        padding: 0 1.5rem 4rem;
        margin-top: -2rem;
    }
}

.register-sidebar {
    display: none;
}
@media (min-width: 1024px) {
    .register-sidebar {
        display: block;
        position: sticky;
        top: 6rem;
        align-self: start;
    }
}

.register-steps {
    background: var(--bg-surface);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(127,127,127,0.08);
}
.register-steps__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
    margin-bottom: 1rem;
}
.register-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}
.register-step:last-child { border-bottom: none; }
.register-step:hover { opacity: 0.8; }
.register-step__dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--border-subtle);
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.register-step.is-active .register-step__dot {
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(111,78,55,0.3);
}
.register-step__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.3;
    padding-top: 0.2rem;
}
.register-step.is-active .register-step__label { color: var(--text-heading); }
.register-step__sub {
    font-size: 0.65rem;
    color: var(--text-soft);
    margin-top: 0.125rem;
}

.register-info-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(111,78,55,0.06), rgba(199,154,43,0.08));
    border: 1px solid var(--border-color);
}
.register-info-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.register-info-card strong { color: var(--text-heading); }

/* Mobile progress */
.register-progress-mobile {
    display: flex;
    gap: 0.375rem;
    padding: 0 0.25rem;
    margin-bottom: 0.25rem;
}
@media (min-width: 1024px) { .register-progress-mobile { display: none; } }
.register-progress-mobile__bar {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--border-color);
    transition: background 0.3s;
}
.register-progress-mobile__bar.is-active { background: var(--royal); }
.register-progress-mobile__bar.is-done { background: var(--gold); }

.register-form-card {
    background: var(--bg-surface);
    border-radius: 1.125rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(127,127,127,0.08);
    overflow: hidden;
}

.register-form-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, rgba(111,78,55,0.04), rgba(199,154,43,0.06));
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.register-form-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}
.register-form-header p {
    font-size: 0.75rem;
    color: var(--text-soft);
}
.register-form-header__tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    background: rgba(234,88,12,0.08);
    padding: 0.3rem 0.625rem;
    border-radius: 9999px;
}

.register-form-body { padding: 1.5rem; }
@media (min-width: 768px) { .register-form-body { padding: 2rem 2.25rem; } }

.form-section { scroll-margin-top: 6rem; }

.form-subsection {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 1.5rem 0 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.form-subsection span { font-weight: 400; color: var(--text-soft); font-size: 0.75rem; }

.form-field { margin-bottom: 0; }
.form-field.has-error .form-input,
.form-field.has-error select { border-color: #f87171; background: #fef2f2; }
.form-field.has-error .form-label { color: #dc2626; }

.form-grid { display: grid; gap: 1rem; }
.form-grid--2 { grid-template-columns: 1fr; }
.form-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .form-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Photo upload */
.photo-upload-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-subtle);
    border-radius: 0.875rem;
    border: 1px solid var(--border-faint);
}
@media (min-width: 640px) {
    .photo-upload-wrap { flex-direction: row; align-items: center; }
}
.photo-upload {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1rem;
    background: var(--bg-surface);
    border: 2px dashed #d1d5db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.photo-upload:hover {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(111,78,55,0.08);
}
.photo-upload.has-image { border-style: solid; border-color: var(--royal); }
.photo-upload__icon { color: var(--text-soft); margin-bottom: 0.25rem; }
.photo-upload__text { font-size: 0.65rem; color: var(--text-soft); text-align: center; }

.file-input-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.btn-file {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--royal);
    background: var(--bg-surface);
    border: 1px solid rgba(111,78,55,0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-file:hover {
    background: rgba(111,78,55,0.04);
    border-color: var(--royal);
}

.choice-grid { display: grid; gap: 0.625rem; }
.choice-grid--2 { grid-template-columns: 1fr; }
.choice-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .choice-grid--2 { grid-template-columns: 1fr 1fr; }
    .choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.register-terms {
    padding: 1.125rem 1.25rem;
    background: var(--bg-subtle);
    border-radius: 0.75rem;
    border: 1px solid var(--border-faint);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.register-terms:has(:checked) {
    border-color: rgba(111,78,55,0.2);
    background: rgba(111,78,55,0.06);
}

.register-submit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}
@media (min-width: 640px) {
    .register-submit { flex-direction: row; }
}

.register-errors {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    color: #b91c1c;
}
.register-errors svg { flex-shrink: 0; margin-top: 0.125rem; }
.register-errors ul { font-size: 0.8125rem; line-height: 1.6; list-style: disc; padding-left: 1rem; }

.register-form-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-soft);
}
.register-form-footer a { color: var(--royal); font-weight: 500; text-decoration: none; }
.register-form-footer a:hover { text-decoration: underline; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-item {
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    list-style: none;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
    content: '+';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--border-subtle);
    color: var(--royal);
    font-size: 1.125rem;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
    content: '−';
    background: var(--royal);
    color: #fff;
}

.faq-item__answer {
    padding: 0 1.25rem 1.125rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.875rem;
}

.faq-item[open] .faq-item__question {
    border-bottom: none;
}

/* Announcements */
.announcements-section {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-page) 100%);
}

.announcements-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .announcements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .announcements-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.announcement-card {
    background: var(--bg-surface);
    border: 1px solid rgba(127, 127, 127, 0.12);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(199, 154, 43, 0.35);
}

.announcement-card--pinned {
    border-color: rgba(199, 154, 43, 0.55);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(199, 154, 43, 0.07) 100%);
    box-shadow: var(--shadow-md);
}

.announcement-card__header {
    margin-bottom: 0.75rem;
}

.announcement-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.announcement-badge--pinned {
    background: rgba(199, 154, 43, 0.18);
    color: var(--gold);
}

.announcement-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.announcement-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.announcement-card__body {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    flex: 1;
}

.announcement-card__body--clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose-announcement p {
    margin: 0 0 0.75rem;
}

.prose-announcement p:last-child {
    margin-bottom: 0;
}

.prose-announcement ul,
.prose-announcement ol {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.announcement-toggle {
    margin-top: 1rem;
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--royal);
    cursor: pointer;
    transition: color 0.2s ease;
}

.announcement-toggle:hover {
    color: var(--orange);
}

.announcements-pinned .announcement-card__body {
    max-width: 48rem;
}


/* ─── Preferences drawer (language & theme) ───────────────────── */
.prefs-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 0.5rem;
    border: none;
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    background: linear-gradient(135deg, var(--royal-dark), var(--royal));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    writing-mode: vertical-rl;
    box-shadow: -4px 4px 18px rgba(26, 26, 30, 0.35);
    transition: padding 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.prefs-tab:hover { filter: brightness(1.15); }
.prefs-tab svg { writing-mode: horizontal-tb; }

.prefs-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(9, 13, 26, 0.55);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.25s ease;
}
.prefs-backdrop.hidden { display: none; }

.prefs-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(20rem, calc(100vw - 3rem));
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    color: var(--text-body);
    border-left: 1px solid var(--border-color);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
    transform: translateX(110%);
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
    visibility: hidden;
}
.prefs-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.prefs-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(to right, rgba(111,78,55,0.05), rgba(199,154,43,0.07));
}
.prefs-drawer__header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}
.prefs-drawer__close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.prefs-drawer__close:hover {
    background: rgba(127,127,127,0.12);
    color: var(--text-body);
}

.prefs-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prefs-section__label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-soft);
    margin-bottom: 0.625rem;
}

.prefs-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prefs-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.7rem 0.875rem;
    border-radius: 0.625rem;
    border: 1.5px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-body);
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.prefs-option:hover { border-color: var(--royal); }
.prefs-option.is-active {
    border-color: var(--gold);
    background: rgba(199, 154, 43, 0.1);
}
.prefs-option__main {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}
.prefs-option__sub {
    font-size: 0.6875rem;
    color: var(--text-soft);
    line-height: 1.2;
}
.prefs-option__icon {
    display: inline-flex;
    color: var(--text-muted);
}
.prefs-option__check {
    margin-left: auto;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.2s;
}
.prefs-option.is-active .prefs-option__check { opacity: 1; }

/* ─── Dark theme adjustments ──────────────────────────────────── */
[data-theme="dark"] .site-header {
    background: rgba(18, 18, 18, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] #mobile-menu { border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] #mobile-menu .hover\:bg-gray-50:hover { background: rgba(255, 255, 255, 0.06) !important; }

[data-theme="dark"] .scripture-section { border-top-color: rgba(255, 255, 255, 0.06); }

[data-theme="dark"] .gallery-tab.bg-gray-100 { background: rgba(255, 255, 255, 0.07) !important; color: var(--text-muted) !important; }
[data-theme="dark"] .gallery-tab.hover\:bg-gray-200:hover { background: rgba(255, 255, 255, 0.14) !important; }

[data-theme="dark"] .register-errors {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

[data-theme="dark"] .success-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.35));
}

[data-theme="dark"] img { filter: brightness(0.92); }

@media (prefers-reduced-motion: reduce) {
    .prefs-drawer { transition-duration: 0.01ms; }
}

/* ────────────────────────────────────────────────────────────────
   Course cards (reference: instrument badge, price pill, level,
   rating, duration/lessons grid, "By …" credit + syllabus link)
   ──────────────────────────────────────────────────────────────── */
.card-interactive {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1), border-color 0.3s;
}
.card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(199, 154, 43, 0.45);
}

.course-card-v2 {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}
.course-card-v2__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-alt);
    overflow: hidden;
    display: block;
}
.course-card-v2__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}
.course-card-v2:hover .course-card-v2__img { transform: scale(1.06); }
.course-card-v2__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--brand-primary);
    font-weight: 700;
    background:
        radial-gradient(circle at 20% 20%, rgba(232,155,82,0.14), transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(199,154,43,0.12), transparent 50%);
}
.course-card-v2__instrument {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(43, 43, 43, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 0.35rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.course-card-v2__price {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #2b2b2b;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 0.35rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
[data-theme="dark"] .course-card-v2__price {
    background: rgba(34, 34, 40, 0.95);
    color: #f8f9fa;
}
.course-card-v2__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card-v2__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.course-card-v2__level {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--bg-alt);
    padding: 0.15rem 0.5rem;
    border-radius: 0.3rem;
}
.course-card-v2__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-body);
}
.course-card-v2__rating .star { color: var(--gold); }
.course-card-v2__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.course-card-v2:hover .course-card-v2__title { color: var(--brand-primary); }
.course-card-v2__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}
.course-card-v2__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--bg-alt);
    border-bottom: 1px solid var(--bg-alt);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: auto;
}
.course-card-v2__fact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.course-card-v2__fact svg { color: var(--text-soft); flex-shrink: 0; }
.course-card-v2__footer {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.course-card-v2__credit { font-size: 0.75rem; color: var(--text-muted); }
.course-card-v2__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    transition: color 0.2s;
}
.course-card-v2__link:hover { color: var(--gold); }
.course-card-v2__link svg { transition: transform 0.2s; }
.course-card-v2__link:hover svg { transform: translateX(3px); }

/* ────────────────────────────────────────────────────────────────
   Faculty / instructor cards (reference teachers grid)
   ──────────────────────────────────────────────────────────────── */
.faculty-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.faculty-card__media {
    position: relative;
    height: 11rem;
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg, #3e2717 0%, #6f4e37 100%);
}
.faculty-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease-out;
}
.faculty-card:hover .faculty-card__img { transform: scale(1.05); }
.faculty-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 2.5rem;
    font-weight: 800;
}
.faculty-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gold);
    border: 1px solid var(--border-color);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.faculty-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.faculty-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
}
.faculty-card__name a { color: inherit; text-decoration: none; }
.faculty-card__name a:hover { color: var(--brand-primary); }
.faculty-card__title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
}
.faculty-card__bio {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.faculty-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-body);
}
.faculty-card__rating::before { content: '★'; color: var(--gold); }
.faculty-card__action {
    padding: 0 1.25rem 1.25rem;
    margin-top: auto;
}
.faculty-card__btn {
    width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ────────────────────────────────────────────────────────────────
   Page scaffolding for courses / instructors pages
   ──────────────────────────────────────────────────────────────── */
.catalog-hero {
    background:
        radial-gradient(circle at 85% -20%, rgba(232, 155, 82, 0.16), transparent 55%),
        radial-gradient(circle at 0% 120%, rgba(111, 78, 55, 0.14), transparent 55%),
        linear-gradient(135deg, var(--royal-dark) 0%, #4e321e 60%, var(--brown) 100%);
    color: #fff;
    padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
    position: relative;
    overflow: hidden;
}
.catalog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 24px 24px;
}
.catalog-hero > * { position: relative; z-index: 1; }
.catalog-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0.75rem;
}
.catalog-hero p {
    color: rgba(255,255,255,0.78);
    max-width: 42rem;
    line-height: 1.7;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb .is-current { color: var(--brand-primary); font-weight: 600; }

/* ── Course detail (Structured Syllabus) ── */
.detail-panel {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 1.75rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
@media (min-width: 640px) { .detail-panel { padding: 2.5rem; } }
.detail-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle at 2px 2px, #2b2b2b 1.5px, transparent 0);
    background-size: 22px 22px;
    pointer-events: none;
}
.detail-badge {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.detail-facts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brown);
}
[data-theme="dark"] .detail-facts { color: var(--gold-light); }
.detail-media {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(199, 154, 43, 0.4);
    box-shadow: var(--shadow-md);
    background: var(--bg-surface);
    aspect-ratio: 4 / 3;
}
.detail-media img { width: 100%; height: 100%; object-fit: contain; }

.detail-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}
.detail-tab {
    padding: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-muted);
    transition: all 0.2s;
}
.detail-tab:hover { color: var(--text-heading); }
.detail-tab.is-active { border-color: var(--brand-primary); color: var(--brand-primary); }
.detail-tabpanel[hidden] { display: none; }

.outcome-item {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.85rem;
    border-radius: 0.55rem;
    line-height: 1.55;
}
.outcome-item svg { color: #22c55e; flex-shrink: 0; margin-top: 0.1rem; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.req-list li {
    display: flex;
    gap: 0.55rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.req-list li::before { content: '•'; color: var(--gold); font-weight: 700; }

.syllabus-module {
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--bg-surface);
}
.syllabus-module__head {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.syllabus-module__week {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.syllabus-module__title { font-size: 0.8125rem; font-weight: 700; color: var(--text-heading); }
.syllabus-module__topics { padding: 1.25rem; display: grid; gap: 0.55rem; }
.syllabus-module__topic {
    display: flex;
    gap: 0.55rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.syllabus-module__topic::before {
    content: '—';
    color: var(--brand-primary);
    flex-shrink: 0;
    font-weight: 700;
}
.pricing-option {
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 1.25rem;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-option:hover {
    border-color: rgba(232, 155, 82, 0.55);
    box-shadow: var(--shadow-sm);
}
.pricing-option__duration {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
}
.pricing-option__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
.pricing-option__period { font-size: 0.75rem; color: var(--text-soft); }
.pricing-option__note {
    margin-top: 0.4rem;
    font-size: 0.6875rem;
    color: var(--brown);
    font-weight: 600;
}
[data-theme="dark"] .pricing-option__note { color: var(--gold-light); }

.schedule-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: color-mix(in srgb, var(--bg-alt) 55%, transparent);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}
.schedule-slot__day { font-weight: 700; color: var(--text-heading); }
.schedule-slot__time { color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 0.72rem; }

/* ── Instructor profile ── */
.profile-photo-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.profile-photo-wrap {
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid var(--gold);
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
    background: var(--bg-alt);
}
.profile-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-primary);
}
.profile-fact {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}
.profile-fact dt { color: var(--text-soft); }
.profile-fact dd { font-weight: 700; color: var(--text-heading); text-align: right; }
.profile-section {
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
}
.profile-section__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}
.tag-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--bg-alt);
    color: var(--gold);
    border: 1px solid var(--border-color);
    padding: 0.38rem 0.75rem;
    border-radius: 0.55rem;
    text-decoration: none;
    transition: all 0.2s;
}
a.tag-pill:hover { border-color: var(--gold); transform: translateY(-1px); }

.endorsement-card {
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--bg-alt) 30%, transparent);
    border-radius: 0.85rem;
    padding: 1rem;
}
.endorsement-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    margin-bottom: 0.4rem;
}
.endorsement-card__name { font-weight: 700; color: var(--text-heading); }
.endorsement-card__stars { color: var(--gold); font-weight: 700; white-space: nowrap; }
.endorsement-card__text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-style: italic;
}
.rating-summary-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.1em; }

/* ── Rating & endorsement form ── */
.review-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
}
.star-rating-input {
    display: inline-flex;
    gap: 0.25rem;
    direction: rtl;
}
.star-rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating-input label {
    font-size: 1.65rem;
    line-height: 1;
    color: var(--border-color);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: var(--gold);
    transform: scale(1.05);
}
.anonymous-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--bg-alt);
    border: 1px dashed var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.anonymous-toggle:hover { border-color: var(--gold); }
.anonymous-toggle input { accent-color: var(--brand-primary); width: 1.05rem; height: 1.05rem; margin-top: 0.1rem; }
.anonymous-toggle__label { font-size: 0.8125rem; font-weight: 600; color: var(--text-body); line-height: 1.4; }
.anonymous-toggle__hint { font-size: 0.7rem; color: var(--text-soft); margin-top: 0.15rem; line-height: 1.45; }
.review-flash {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #047857;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
[data-theme="dark"] .review-flash { color: #6ee7b7; }

/* ────────────────────────────────────────────────────────────────
   Footer (reference: dark warm panel, gold headings, stat ticks)
   ──────────────────────────────────────────────────────────────── */
.site-footer {
    background:
        radial-gradient(circle at 90% 0%, rgba(232, 155, 82, 0.08), transparent 45%),
        linear-gradient(160deg, #2b180d 0%, #3e2717 55%, #4e321e 100%);
    color: #fff;
    padding-top: clamp(3rem, 6vw, 4rem);
}
.site-footer .floral-divider { margin: 0 auto; }
.site-footer__heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-light);
    margin-bottom: 1.1rem;
}
.site-footer a { transition: color 0.2s; }

/* ────────────────────────────────────────────────────────────────
   v13 — Vercel site design refinements
   Dark brown palette, Lora headings, vercel-exact components
   ──────────────────────────────────────────────────────────────── */

/* Typography — Lora for headings, Inter for body */
h1, h2, h3, .section-heading, .hero-content h1 {
    font-family: 'Lora', 'Georgia', ui-serif, serif;
    letter-spacing: -0.02em;
}

/* Body & global */
body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: 'Inter', 'Noto Sans Ethiopic', ui-sans-serif, system-ui, sans-serif;
}

/* Nav link colors for dark nav */
.site-header .nav-link {
    color: rgba(200, 134, 15, 0.75);
}
.site-header .nav-link:hover,
.site-header .nav-link.is-active {
    color: var(--gold-light);
}
.site-header .nav-link.is-active::after {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Section backgrounds — all dark brown */
.section-block {
    background-color: var(--bg-page);
}
.section-block--alt {
    background-color: var(--bg-alt);
}
.section-block--pattern {
    background-color: var(--bg-subtle);
    background-image: radial-gradient(circle at 1px 1px, rgba(200, 134, 15, 0.06) 1px, transparent 0);
    background-size: 22px 22px;
}

/* Section headings */
.section-heading {
    color: var(--text-heading);
    font-family: 'Lora', 'Georgia', ui-serif, serif;
}
.section-subheading {
    color: var(--gold);
}
.section-intro {
    color: var(--text-muted);
}

/* Cards — dark surface */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-warm);
}

/* Hero section — dark overlay gradient */
.hero-section::after {
    background: linear-gradient(to top, var(--bg-page), transparent);
}

/* Floral divider — golden */
.floral-divider {
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}

/* ── Founder / About section ── */
.founder-section {
    background: var(--bg-alt);
    padding: clamp(4rem, 8vw, 6rem) 0;
}
.founder-avatar-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
}
.founder-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid var(--gold);
    box-shadow: 0 0 0 8px rgba(200, 134, 15, 0.12), var(--shadow-lg);
}
.founder-title-am {
    font-family: 'Noto Sans Ethiopic', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.founder-title-en {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.founder-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    padding-left: 1.25rem;
    border-left: 3px solid var(--gold);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.btn-founder {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 1.5px solid var(--gold);
    border-radius: 0.5rem;
    color: var(--gold-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.2s;
    background: transparent;
}
.btn-founder:hover {
    background: var(--gold);
    color: var(--royal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 134, 15, 0.3);
}

/* ── Courses section — vercel-style horizontal scroll cards ── */
.courses-scroll-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
@media (min-width: 1024px) {
    .courses-scroll-track {
        grid-template-columns: repeat(6, 1fr);
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 0.75rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(200, 134, 15, 0.2) transparent;
    }
    .courses-scroll-track::-webkit-scrollbar { height: 4px; }
    .courses-scroll-track::-webkit-scrollbar-thumb { background: rgba(200, 134, 15, 0.25); border-radius: 2px; }
}

/* ── Vercel-style course card ── */
.vcard {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    min-width: 210px;
    flex: 0 0 210px;
    cursor: pointer;
}
@media (max-width: 1023px) {
    .vcard { min-width: unset; flex: unset; }
}
.vcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 134, 15, 0.35);
}
.vcard__media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-subtle);
}
.vcard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.vcard:hover .vcard__img { transform: scale(1.06); }
.vcard__rating {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.vcard__body {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}
.vcard__instrument {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}
.vcard__title {
    font-family: 'Lora', 'Georgia', ui-serif, serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
}
.vcard__desc {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.vcard__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.vcard__level {
    background: rgba(200, 134, 15, 0.12);
    color: var(--gold-light);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.675rem;
}
.vcard__duration { color: var(--text-soft); font-size: 0.7rem; }
.vcard__price {
    font-size: 0.7875rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-top: 0.25rem;
}
.vcard__btn {
    display: block;
    margin: 0.75rem 0.875rem 0.875rem;
    padding: 0.55rem;
    text-align: center;
    border: 1.5px solid var(--border-warm);
    border-radius: 0.5rem;
    color: var(--text-body);
    font-size: 0.7875rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}
.vcard__btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--royal-dark);
}

/* Skeleton loader */
.vcard-skeleton {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    overflow: hidden;
    min-width: 210px;
    flex: 0 0 210px;
    animation: shimmer 1.6s ease-in-out infinite;
}
@media (max-width: 1023px) {
    .vcard-skeleton { min-width: unset; flex: unset; }
}
@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
.vcard-skeleton__media { aspect-ratio: 4/3; background: var(--bg-subtle); }
.vcard-skeleton__body { padding: 0.875rem; display: flex; flex-direction: column; gap: 0.5rem; }
.vcard-skeleton__line {
    height: 0.7rem;
    background: var(--bg-subtle);
    border-radius: 4px;
}
.vcard-skeleton__line--title { height: 0.9rem; width: 85%; }
.vcard-skeleton__line--sm { width: 55%; }

/* ── Vercel-style instructor card ── */
.icard {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.icard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 134, 15, 0.35);
}
.icard__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--gold);
}
.icard__placeholder {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--royal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    border: 2px solid var(--gold);
}
.icard__instruments {
    font-size: 0.675rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}
.icard__name {
    font-family: 'Lora', 'Georgia', ui-serif, serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.25;
}
.icard__title {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -0.25rem;
}
.icard__bio {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.icard__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--border-warm);
    border-radius: 0.5rem;
    color: var(--text-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}
.icard__btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--royal-dark);
}

/* ── Curriculum Timeline section ── */
.timeline-section {
    background: var(--bg-surface);
    border-radius: 1rem;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--border-color);
}
.timeline-section__tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    margin-bottom: 0.625rem;
}
.timeline-section__title {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.timeline-section__sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 42rem;
    margin-bottom: 2rem;
}
.timeline-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.timeline-phase {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}
.timeline-phase:hover {
    border-color: rgba(200, 134, 15, 0.3);
    transform: translateY(-2px);
}
.timeline-phase__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 0.375rem;
}
.timeline-phase__title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
}
.timeline-phase__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.btn-syllabus {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: 1.5px solid var(--border-warm);
    border-radius: 0.5rem;
    color: var(--text-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
    background: transparent;
}
.btn-syllabus:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--royal-dark);
}

/* ── Journey Steps (01–05) ── */
.journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}
.journey-step__num {
    font-family: 'Lora', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.journey-step__title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7875rem;
}
.journey-step__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Online / Accessible Globally section ── */
.online-section {
    background: var(--bg-alt);
    padding: clamp(4rem, 8vw, 6rem) 0;
}
.online-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.online-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-body);
    font-size: 0.9rem;
}
.online-feature::before {
    content: '✔';
    color: var(--gold);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.online-demo-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.online-demo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(200, 134, 15, 0.08), transparent 65%);
    pointer-events: none;
}

/* ── Testimonials ── */
.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    padding: 1.5rem;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-family: 'Lora', serif;
    font-size: 4rem;
    color: rgba(200, 134, 15, 0.12);
    line-height: 1;
}
.testimonial-card__text {
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.testimonial-card__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--royal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9375rem;
    flex-shrink: 0;
}
.testimonial-card__name {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.875rem;
}
.testimonial-card__meta {
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

/* ── Store preview section ── */
.store-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.store-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 134, 15, 0.3);
}
.store-item__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s;
}
.store-item:hover .store-item__img { transform: scale(1.05); }
.store-item__body { padding: 0.875rem; }
.store-item__name { font-weight: 700; color: var(--text-heading); font-size: 0.875rem; margin-bottom: 0.25rem; }
.store-item__price { color: var(--gold-light); font-weight: 700; font-size: 0.875rem; }
.store-item__badge { font-size: 0.675rem; color: #4ade80; font-weight: 600; }

/* ── FAQ updates for dark theme ── */
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color) !important;
}
.faq-item__question { color: var(--text-heading); }
.faq-item__answer { color: var(--text-secondary); }

/* ── CTA banner updated ── */
.cta-banner {
    background: linear-gradient(135deg, #1f1000 0%, #2d1800 40%, #1f1000 100%);
    border: 1px solid rgba(200, 134, 15, 0.25);
    box-shadow: var(--shadow-lg), inset 0 0 60px rgba(200, 134, 15, 0.05);
}

/* ── Buttons — updated colors ── */
.btn-gold, .btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--royal-dark);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(200, 134, 15, 0.3);
}
.btn-gold:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(200, 134, 15, 0.45);
}
.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-body);
    border: 1px solid var(--border-warm);
}
.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--gold);
}
.btn-login {
    color: var(--gold);
    border: 1.5px solid var(--gold);
    background: transparent;
}
.btn-login:hover {
    background: rgba(200, 134, 15, 0.1);
    border-color: var(--gold-light);
    color: var(--gold-light);
}
.btn-outline-light {
    border: 1.5px solid rgba(200, 134, 15, 0.4);
    color: var(--gold-light);
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(200, 134, 15, 0.12);
    border-color: var(--gold);
}

/* ── About section update ── */
.about-quote {
    border-left: 3px solid var(--gold);
    color: var(--text-secondary);
    background: rgba(200, 134, 15, 0.04);
    padding: 1rem 1rem 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* ── Form elements dark theme ── */
.form-input, .form-select {
    background: var(--bg-subtle);
    border-color: var(--border-color);
    color: var(--text-body);
}
.form-input:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 134, 15, 0.1);
    background: var(--bg-surface);
}
.form-input::placeholder { color: var(--text-muted); }

/* Step cards */
.step-card .step-card__number {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--royal-dark);
}
.step-card h3 { color: var(--text-heading); }
.step-card p { color: var(--text-muted); }

/* ── Footer override ── */
.site-footer {
    background: linear-gradient(160deg, #0d0800 0%, #150d00 55%, #0d0800 100%);
    border-top: 1px solid rgba(200, 134, 15, 0.15);
}
.site-footer__heading { color: var(--gold-light); }
.site-footer a:hover { color: var(--gold-light); }

/* ── Back to top ── */
.back-to-top {
    background: var(--gold);
    color: var(--royal-dark);
    border: none;
}
.back-to-top:hover {
    background: var(--gold-light);
}

/* ── Loading state ── */
.api-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    gap: 0.75rem;
    font-size: 0.9rem;
}
.api-loading::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
