
:root {
    color-scheme: light;
    --navy: #12234a;
    --navy-soft: #1d3567;
    --gold: #c9a227;
    --gold-hover: #b58c16;
    --cream: #f8f5ed;
    --paper: #ffffff;
    --text: #253047;
    --muted: #5c6678;
    --border: #e5e0d5;
    --footer: #0b1732;
    --shadow: 0 16px 45px rgba(18, 35, 74, .09);
    --heading-font: "Fraunces", Georgia, serif;
    --body-font: "Hind", sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --navy: #d8e3ff;
    --navy-soft: #afc3ef;
    --cream: #111827;
    --paper: #192337;
    --text: #eef2fa;
    --muted: #bdc7d8;
    --border: #344158;
    --footer: #080e1a;
    --shadow: 0 16px 45px rgba(0, 0, 0, .22);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        color-scheme: dark;
        --navy: #d8e3ff;
        --navy-soft: #afc3ef;
        --cream: #111827;
        --paper: #192337;
        --text: #eef2fa;
        --muted: #bdc7d8;
        --border: #344158;
        --footer: #080e1a;
        --shadow: 0 16px 45px rgba(0, 0, 0, .22);
    }
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
}

h1, h2, h3, h4, .display-heading {
    font-family: var(--heading-font);
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--navy);
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }

p { color: var(--muted); }

a { color: inherit; }

a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--paper);
    color: var(--text);
}

.skip-link:focus { top: 12px; }

.topbar {
    background: var(--footer);
    color: #fff;
    font-size: 14px;
    padding: 7px 0;
}

.topbar a {
    color: #f3d779;
    text-decoration: none;
}

.topbar span { color: #f3d779; }

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    z-index: 1030;
}

.navbar { padding: 12px 0; }

.brand-lockup, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px 13px 13px 4px;
    background: var(--navy);
    color: #fff;
    font: 700 30px var(--heading-font);
}

.brand-mark span { color: #e4c15c; }

.brand-copy, .footer-brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-copy strong, .footer-brand strong {
    font-size: 18px;
    letter-spacing: .08em;
    color: var(--navy);
}

.brand-copy small, .footer-brand small {
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--muted);
}

.nav-link {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 13px !important;
}

.nav-link:hover, .nav-link.active { color: var(--gold-hover); }

.btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #171d2a;
    font-weight: 700;
    border-radius: 7px;
    transition: background .2s ease, transform .2s ease;
}

.btn-gold:hover {
    background: #e0bb45;
    border-color: #e0bb45;
    color: #171d2a;
    transform: translateY(-1px);
}

.btn-outline-academy {
    border: 1px solid #d7b74f;
    color: #fff;
    background: transparent;
    border-radius: 7px;
    font-weight: 600;
    padding: 12px 22px;
}

.btn-outline-academy:hover {
    background: #fff;
    color: #12234a;
}

.theme-toggle {
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 39px;
    height: 39px;
    color: var(--text);
    background: var(--paper);
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--footer);
}

.hero-slide {
    min-height: 580px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,
        rgba(7, 17, 39, .94) 0%,
        rgba(7, 17, 39, .80) 47%,
        rgba(7, 17, 39, .26) 100%);
}

.hero-content {
    max-width: 720px;
    padding-top: 70px;
    padding-bottom: 105px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f0d16d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.hero h1 {
    margin: 20px 0;
    max-width: 700px;
    font-size: clamp(2.8rem, 6vw, 5.1rem);
    color: #fff;
}

.hero h1 em {
    color: #f0d16d;
    font-style: normal;
}

.hero p {
    max-width: 570px;
    color: #e3e8f2;
    font-size: 19px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .carousel-indicators { margin-bottom: 23px; }
.hero .carousel-indicators [data-bs-target] { width: 24px; height: 4px; }
.hero .carousel-indicators .active { background: #e2c052; }

.hero .carousel-control-prev,
.hero .carousel-control-next { width: 7%; }

.hero-kicker {
    display: inline-block;
    padding: 7px 12px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 12px;
}

.stats-wrap { position: relative; z-index: 2; margin-top: -42px; }

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 26px 12px;
}

.stat-item {
    text-align: center;
    padding: 5px 15px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child { border: 0; }

.stat-number {
    display: block;
    font: 700 clamp(1.7rem, 3vw, 2.4rem) var(--heading-font);
    color: var(--navy);
}

.stat-label { color: var(--muted); font-size: 14px; }

.section-space { padding: 92px 0; }

.section-heading {
    max-width: 690px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2 { margin-bottom: 15px; }

.section-heading p { max-width: 600px; margin: 0 auto; }

.course-card, .feature-card, .story-card, .event-card {
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.course-card:hover, .feature-card:hover,
.story-card:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.course-visual {
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background: linear-gradient(135deg, #12234a, #3c5486);
    color: #fff;
}

.course-visual.gold { background: linear-gradient(135deg, #6e5110, #c9a227); }
.course-visual.teal { background: linear-gradient(135deg, #164b55, #4b9a96); }

.course-icon { font-size: 36px; margin-bottom: 10px; }
.course-visual h3 { color: #fff; margin: 0; font-size: 26px; }

.course-body { padding: 23px; }
.course-body h3 { font-size: 24px; margin-bottom: 12px; }
.course-body p { font-size: 16px; }

.text-link {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover { color: var(--gold-hover); }

.soft-section { background: var(--paper); }

.split-visual {
    min-height: 390px;
    height: 100%;
    border-radius: 15px;
    background:
        linear-gradient(0deg, rgba(10, 24, 52, .25), transparent),
        url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1100&q=85")
        center/cover;
}

.feature-card { padding: 27px; }
.feature-icon { font-size: 27px; margin-bottom: 12px; }
.feature-card h3 { font-size: 23px; }
.feature-card p { margin-bottom: 0; }

.quote-section {
    background: var(--navy);
    color: #fff;
    padding: 76px 0;
}

.quote-section h2 { color: #fff; }
.quote-section p { color: #e1e7f3; }
.quote-mark { color: #e6c34e; font: 64px var(--heading-font); line-height: 1; }

.person-initial {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #efe4bf;
    color: #12234a;
    font-weight: 700;
}

.story-card { padding: 25px; }
.story-card h3 { font-size: 22px; }
.story-card .person-row { display: flex; gap: 13px; align-items: center; margin-top: 20px; }
.person-row strong { display: block; color: var(--text); }
.person-row small { color: var(--muted); }

.event-card { padding: 25px; }
.event-date {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 6px;
    background: #f0e5c0;
    color: #3f310c;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-strip {
    padding: 58px 0;
    background: #eae0c3;
    color: #12234a;
}

.cta-strip h2 { color: #12234a; }
.cta-strip p { color: #3e4657; }

.site-footer { background: var(--footer); color: #fff; }
.footer-main { padding-top: 65px; padding-bottom: 50px; }
.footer-brand { color: #fff; }
.footer-brand strong { color: #fff; }
.footer-brand small { color: #c5cddd; }
.footer-intro, .footer-location { color: #c5cddd; font-size: 15px; }
.footer-heading { color: #fff; font: 600 20px var(--heading-font); margin-bottom: 18px; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a, .legal-links a { color: #c5cddd; font-size: 15px; text-decoration: none; }
.footer-links a:hover, .legal-links a:hover { color: #f0d16d; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #52617a;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}
.social-links a:hover { background: #273b60; }
.footer-bottom { border-top: 1px solid #34415a; padding: 18px 0; color: #c5cddd; font-size: 14px; }
.footer-bottom p { color: #c5cddd; }
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

.floating-whatsapp, .back-to-top {
    position: fixed;
    right: 20px;
    z-index: 1020;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(0,0,0,.2);
    text-decoration: none;
}

.floating-whatsapp {
    bottom: 25px;
    background: #18794e;
    color: #fff;
    font-size: 25px;
}

.back-to-top {
    bottom: 84px;
    background: var(--navy);
    color: #fff;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.cookie-notice {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1100;
    width: min(430px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--paper);
    color: var(--text);
    box-shadow: var(--shadow);
}

.cookie-notice p { margin-bottom: 10px; font-size: 14px; }
.cookie-notice a { color: var(--navy); }

.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 80px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero p { color: #e1e7f3; max-width: 650px; }

@media (max-width: 991.98px) {
    .hero-slide { min-height: 530px; }
    .hero-content { padding-top: 65px; padding-bottom: 90px; }
    .navbar-collapse { padding: 15px 0 8px; }
    .nav-link { padding: 8px 0 !important; }
    .theme-toggle { margin-top: 5px; }
    .section-space { padding: 70px 0; }
}

@media (max-width: 575.98px) {
    body { font-size: 16px; }
    .topbar { font-size: 12px; }
    .brand-mark { width: 39px; height: 39px; font-size: 26px; }
    .brand-copy strong { font-size: 16px; }
    .hero-slide { min-height: 540px; }
    .hero-slide::before {
        background: linear-gradient(90deg, rgba(7,17,39,.94), rgba(7,17,39,.7));
    }
    .hero h1 { font-size: clamp(2.5rem, 11vw, 3.7rem); }
    .hero p { font-size: 17px; }
    .hero .carousel-control-prev, .hero .carousel-control-next { width: 10%; }
    .stats-wrap { margin-top: -22px; }
    .stats-panel { grid-template-columns: repeat(2, 1fr); padding: 12px; }
    .stat-item { padding: 13px 5px; }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .stat-number { font-size: 1.8rem; }
    .section-space { padding: 58px 0; }
    .split-visual { min-height: 280px; }
    .footer-main { padding-top: 45px; padding-bottom: 35px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}




/* Database-driven courses page */

.course-search-panel {
    max-width: 850px;
    margin-inline: auto;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.course-search-panel .form-label {
    color: var(--text);
    font-weight: 600;
}

.course-search-panel .form-control {
    min-height: 46px;
    background: var(--paper);
    color: var(--text);
    border-color: var(--border);
}

.course-search-panel .form-control::placeholder {
    color: var(--muted);
    opacity: 1;
}

.course-count {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--muted);
    background: var(--paper);
    font-size: 14px;
}

.course-featured-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 4px;
    background: #f0d16d;
    color: #12234a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.course-meta {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.course-meta strong {
    color: var(--text);
}

.course-empty-state {
    max-width: 650px;
    margin: 0 auto;
    padding: 55px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--paper);
}

.course-empty-state h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.course-empty-state .feature-icon {
    font-size: 42px;
}

@media (max-width: 575.98px) {
    .course-search-panel {
        padding: 17px;
    }
}



/* Student Testimonials */
.sa-testimonials {
    background: #f7f8fc;
    color: #17243a;
}

.sa-section-eyebrow {
    color: #b88a35;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.sa-section-title {
    color: #10213d;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
}

.sa-section-description {
    max-width: 600px;
    color: #657087;
    line-height: 1.8;
}

.sa-testimonial-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background: #fff;
    border: 1px solid #e8ebf2;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(16, 33, 61, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sa-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(16, 33, 61, 0.1);
}

.sa-review-stars {
    color: #d6dce6;
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.sa-review-stars .is-filled {
    color: #d5a13c;
}

.sa-review-quote {
    height: 43px;
    margin-top: 8px;
    color: #d5a13c;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
}

.sa-review-text {
    margin: 8px 0 25px;
    color: #58647a;
    font-size: 0.96rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.sa-review-student {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
}

.sa-review-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
}

.sa-review-avatar-placeholder {
    display: grid;
    place-items: center;
    background: #10213d;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.sa-review-name {
    margin: 0 0 4px;
    color: #10213d;
    font-size: 1rem;
    font-weight: 750;
}

.sa-review-course {
    color: #7a8497;
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    .sa-testimonial-card {
        padding: 22px;
    }
}
