/* ============================================================
   Jesus Home Education College - Site Stylesheet
   Brand colours drawn from marketing material & logos:
   ============================================================ */
:root {
    --color-primary: #D21F6B;      /* pink / magenta - headings, accents */
    --color-primary-dark: #A81656;
    --color-gold: #F5B921;         /* gold - halo, highlight accents */
    --color-maroon: #7A1414;       /* deep red - dark section backgrounds */
    --color-maroon-dark: #5C0F0F;
    --color-cream: #FBF3EF;        /* off-white background */
    --color-ink: #2B2222;          /* body text, near-black warm tone */
    --color-ink-soft: #5A4B4B;
    --color-border: #E7D9D4;
    --color-white: #FFFFFF;

    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container-width: 1160px;
    --radius: 10px;
    --shadow-soft: 0 10px 30px rgba(43, 34, 34, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-white);
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ==========================================================================
   FLOATING SLIM HEADER (PURE CSS FLEXBOX)
   ========================================================================== */
.modern-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 62%; /* Matches width in target image */
    max-width: 1100px;
    min-width: 320px;
    background: rgba(20, 20, 25, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    padding: 6px 18px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 1000;
    box-sizing: border-box;
}

/* Brand Section */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-img {
    height: 34px;
    width: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.4));
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.58rem;
    font-weight: 700;
    color: #F4B223;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Controls Group (Search + Menu) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Bar */
.modern-search-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 3px 4px 3px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

    .modern-search-group:focus-within {
        background: rgba(255, 255, 255, 0.25);
        border-color: #F4B223;
    }

.modern-search-input {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    outline: none;
    width: 120px;
    color: #FFFFFF;
}

    .modern-search-input::placeholder {
        color: rgba(255, 255, 255, 0.85);
    }

.btn-search-icon {
    border: none;
    background: #F4B223;
    color: #8B1A2B;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

/* Red Pill Menu Button */
.btn-menu-pill {
    background: #8B1A2B;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);*/
}

    .btn-menu-pill:hover {
        background: #5E0F1C;
    }

/* Mobile responsive scaling */
@media (max-width: 768px) {
    .modern-header {
        width: 90%;
        padding: 6px 12px;
    }

    .modern-search-group {
        display: none; /* Hide search bar on mobile screens */
    }
}

/* ==========================================================================
   JESUS COLLEGE HEADER
   ========================================================================== */
.ascot-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(24, 6, 10, 0.55) 0%, rgba(24, 6, 10, 0) 100%);
    transition: background .35s ease, padding .35s ease, border-color .35s ease;
}

.ascot-header.scrolled {
    padding: 12px 0;
    background: rgba(24, 6, 10, 0.65);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: rgba(212, 155, 14, 0.35);
}

.ascot-header__inner {
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* ---------- Brand ---------- */
.ascot-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.ascot-logo-img {
    height: 88px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    transition: height .35s ease;
}

.ascot-header.scrolled .ascot-logo-img { height: 60px; }

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.brand-rule {
    display: block;
    width: 42px;
    height: 2px;
    margin: 6px 0 6px;
    background: linear-gradient(90deg, #D49B0E, #F0C44F);
    border-radius: 2px;
    transition: width .35s ease;
}

.ascot-brand:hover .brand-rule { width: 100%; }

.brand-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #F0C44F;
}

.brand-tagline {
    margin-top: 2px;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    max-height: 24px;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease, margin .35s ease;
}

/* Tagline tucks away when scrolled to keep the bar slim */
.ascot-header.scrolled .brand-tagline {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

/* ---------- Controls ---------- */
.ascot-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Subscribe: solid gold pill */
.ascot-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #D49B0E 0%, #F0C44F 100%);
    border: 1px solid #D49B0E;
    color: #18060A !important;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s ease, color .3s ease, border-color .3s ease;
}

.ascot-subscribe-btn svg { flex: 0 0 auto; }

.ascot-subscribe-btn:hover {
    transform: translateY(-2px);
}

/* Menu: frosted pill with label + gold icon ring */
.ascot-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 6px 6px 6px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 196, 79, 0.6);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s ease, border-color .3s ease, color .3s ease;
}

.menu-label {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.menu-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #D49B0E;
    color: #18060A;
    transition: background .3s ease, color .3s ease;
}

.ascot-menu-btn .menu-hamburger-icon line {
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
    transform-origin: center;
}

.ascot-menu-btn:hover {
    transform: translateY(-2px);
    background: rgba(24, 6, 10, 0.7);
    border-color: #F0C44F;
}

.ascot-menu-btn:hover .menu-icon-wrap {
    background: #F0C44F;
}

.ascot-menu-btn:hover .line-top { transform: translateX(3px); }
.ascot-menu-btn:hover .line-mid { transform: scaleX(0.55); opacity: 0.8; }
.ascot-menu-btn:hover .line-bot { transform: translateX(-3px); }

/* Keyboard focus */
.ascot-brand:focus-visible,
.ascot-subscribe-btn:focus-visible,
.ascot-menu-btn:focus-visible {
    outline: 3px solid #F0C44F;
    outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .ascot-header__inner { padding: 0 20px; }
    .brand-tagline { display: none; }
    .brand-title { font-size: 1.2rem; letter-spacing: 2px; }
}

@media (max-width: 768px) {
    .ascot-logo-img { height: 58px; }
    .ascot-header.scrolled .ascot-logo-img { height: 46px; }

    .ascot-controls { gap: 10px; }

    /* Subscribe becomes an icon-only circle, Menu becomes just the icon ring */
    .ascot-subscribe-btn { width: 46px; height: 46px; padding: 0; }
    .ascot-subscribe-btn span { display: none; }

    .menu-label { display: none; }
    .ascot-menu-btn { padding: 4px; }
    .menu-icon-wrap { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .brand-subtitle { display: none; }
    .brand-rule { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ascot-header,
    .ascot-logo-img,
    .brand-rule,
    .brand-tagline,
    .ascot-subscribe-btn,
    .ascot-menu-btn,
    .ascot-menu-btn .menu-hamburger-icon line { transition: none; }
}

/* ===================== Modern Header / Nav ===================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(231, 217, 212, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);*/
    transition: all 0.3s ease;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
}

/* Brand Logo & Typography */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand__logo { 
    height: 46px; 
    width: auto;
    transition: transform 0.2s ease;
}
.brand:hover .brand__logo { transform: scale(1.03); }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.brand__subname { 
    font-size: 0.72rem; 
    color: var(--color-ink-soft); 
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Navigation List */
.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.primary-nav > ul > li { position: relative; }

.primary-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--color-ink);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    position: relative;
    transition: color 0.2s ease;
}

/* Animated Hover Underline */
.primary-nav > ul > li > a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.primary-nav > ul > li > a:not(.nav-cta):hover {
    color: var(--color-primary);
    text-decoration: none;
}

.primary-nav > ul > li > a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Chevron Icon for Dropdowns */
.chevron-icon {
    transition: transform 0.25s ease;
    opacity: 0.7;
}
.has-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* Contact Us Button Modern CTA */
.primary-nav .nav-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 50px;
    /*box-shadow: 0 4px 12px rgba(210, 31, 107, 0.25);*/
    transition: all 0.25s ease;
    margin-left: 6px;
}

.primary-nav .nav-cta:hover {
    transform: translateY(-1px);
    /*box-shadow: 0 6px 18px rgba(210, 31, 107, 0.35);*/
    text-decoration: none;
}

/* Modern Glass Dropdown Menu */
.has-dropdown .dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    /*box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);*/
    min-width: 230px;
    padding: 8px;
    list-style: none;
    margin: 8px 0 0;
    z-index: 50;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li { width: 100%; }

.dropdown li a {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--color-ink);
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown li a:hover {
    background: var(--color-cream);
    color: var(--color-primary-dark);
}

.dropdown li a::after { display: none !important; }

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 8px;
}
.nav-toggle:hover { background: var(--color-cream); }

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary-dark);
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* Responsive Styles */
@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 4px; 
        padding-bottom: 12px; 
    }
    .primary-nav > ul > li > a:not(.nav-cta)::after { display: none; }
    
    .has-dropdown .dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        position: static;
        border: none;
        padding-left: 16px;
        margin: 0;
    }
    .site-header__bar { flex-wrap: wrap; }
    .primary-nav .nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
}

/* ==========================================================================
   HERO SECTION & BOTTOM CONTENT
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    justify-content: center;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* Google Font Import (Cinzel is the exact serif font style used for classical Small Caps) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Montserrat:wght@400;500&display=swap');

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-bottom: 130px;
    padding: 0 20px;
}

/* Small Caps Title Style (ST MARY'S ASCOT Style) */
.hero__title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: #FFFFFF; /* High-contrast white matching St Mary's Ascot */
    margin: 0 0 12px 0;
    /* Enables Small-Caps: Uppercase with larger initial letters */
    font-variant: small-caps;
    text-transform: capitalize;
    letter-spacing: 4px; /* Wide letter spacing matching the reference image */
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 18px rgba(0, 0, 0, 0.9);
}

/* Subtitle with Premium Gold Styling */
.hero__subtitle {
    font-family: 'Cinzel', sans-serif;
    font-size: 1.1rem;
    font-weight: 600; /* Increased weight for crisp readability */
    color: #F5B921; /* Rich Gold Accent */
    margin: 0;
    letter-spacing: 2.5px;
    text-transform: capitalize;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 4px 14px rgba(0, 0, 0, 0.95);
}

@media (max-width: 768px) {
    .hero__content {
        margin-bottom: 100px;
    }

    .hero__title {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }

    .hero__subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
}

/* Modern Floating Scroll Down Arrow Button */
.hero__scroll-btn {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    animation: heroScrollPulse 2s infinite;
}

.hero__scroll-btn:hover {
    background: rgba(245, 185, 33, 0.85); /* Accent gold on hover */
    border-color: #F5B921;
    color: #141419;
    animation-play-state: paused;
}

/* Smooth Floating Animation */
@keyframes heroScrollPulse {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, 8px);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.4rem;
    }
    .hero__subtitle {
        font-size: 0.95rem;
    }
    .hero__content {
        margin-bottom: 80px;
    }
}

/* ==========================================================================
   STAGGERED COLLAGE LAYOUT & EXACT OVERLAP
   ========================================================================== */
.editorial-overlapping-block {
    background-color: #FFFFFF;
    padding: 60px 0 100px 0;
    overflow: hidden;
}

.editorial-staggered-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Row 1 Layout */
.row-welcome {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    position: relative;
    z-index: 10; /* Ensures Image 1 stays strictly ON TOP */
}

.row-welcome .staggered-col-img {
    flex: 1.05;
    position: relative;
    z-index: 10; /* Image 1 remains 100% visible */
}

.row-welcome .staggered-col-text {
    flex: 0.95;
    padding-top: 110px;
}

/* Row 2 Layout */
.row-faith {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-top: -40px; /* Pulls Row 2 up into vertical alignment */
    position: relative;
    z-index: 5;
}

.row-faith .staggered-col-text {
    flex: 0.95;
    padding-top: 180px; /* Pushes Faith & Wisdom text down under Image 1 */
}

/* Shifts Image 2 slightly left so top-left corner tucks underneath Image 1 */
.row-faith .staggered-col-img {
    flex: 1.05;
    margin-left: -60px; /* Pulls Image 2 left under Image 1's bottom-right corner */
    position: relative;
    z-index: 1; /* Keeps top-left overlapping corner hidden BEHIND Image 1 */
}

/* Card Framing & Image Dimensions */
.overlapping-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    /*box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);*/
    background: #FFFFFF;
}

.overlapping-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   RESTORED TYPOGRAPHY & DESIGN STYLES
   ========================================================================== */
.editorial-eyebrow {
    display: inline-block;
    font-family: 'Cinzel', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #D49B0E;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.editorial-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 18px 0;
    line-height: 1.15;
    font-variant: small-caps;
    letter-spacing: 1.5px;
}

.editorial-intro {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1E293B;
    line-height: 1.65;
    margin-bottom: 18px;
    border-left: 3px solid #D49B0E;
    padding-left: 16px;
}

.editorial-text {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #334155;
    line-height: 1.85;
    margin-bottom: 24px;
}

/* Scripture Quotes Styling */
.scripture-quotes-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scripture-quote-item {
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid #D49B0E;
}

.scripture-text {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #1E293B;
    line-height: 1.8;
    margin: 0 0 6px 0;
    font-style: italic;
}

.scripture-cite {
    display: block;
    font-family: 'Cinzel', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #D49B0E;
    text-transform: uppercase;
    font-style: normal;
}

/* Button Action Space & Styling */
.editorial-action {
    margin-top: 28px;
}

.btn-modern-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border: 1.5px solid #0F172A;
    border-radius: 50px;
    color: #0F172A;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-modern-pill:hover {
    background: #0F172A;
    color: #FFFFFF;
    transform: translateY(-2px);
    /*box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);*/
}

.btn-modern-pill svg {
    transition: transform 0.3s ease;
}

.btn-modern-pill:hover svg {
    transform: translateX(4px);
}

/* Mobile Fallback */
@media (max-width: 992px) {
    .editorial-staggered-container {
        padding: 0 20px;
    }

    .row-welcome,
    .row-faith {
        flex-direction: column;
        gap: 30px;
        margin-top: 0;
    }

    .row-faith {
        flex-direction: column-reverse;
    }

    .row-faith .staggered-col-img {
        margin-left: 0;
    }

    .row-faith .staggered-col-text {
        padding-top: 0;
    }

    .overlapping-img {
        height: 360px;
    }
}

/* ==========================================================================
   RESULTS 2026 (NATIVE 1:1 PIXEL RENDERING & ZERO TOP MARGIN)
   ========================================================================== */
.results-standalone-section {
    background-color: #FFFFFF;
    padding: 0 0 80px 0; /* Fully removed top padding */
    margin-top: -35px;   /* Pulls section directly under the previous section */
    width: 100%;
}

.results-centered-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Left Column: Exact Native Image Frame */
.results-img-col {
    flex: 0 0 392px; /* Matches exact image source width (392px) */
    display: flex;
    justify-content: center;
}

.results-img-frame {
    width: 392px;         /* Exact pixel width */
    height: 617px;        /* Exact pixel height */
    border-radius: 16px;
    overflow: hidden;
    /*box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);*/
    background: #FFFFFF;
}

.results-clean-img {
    width: 392px;
    height: 617px;
    object-fit: contain;  /* Renders pixel-perfect without scaling or blur */
    display: block;
}

/* Right Column: Content */
.results-text-col {
    flex: 1;
}

.results-eyebrow {
    display: inline-block;
    font-family: 'Cinzel', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #D49B0E;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.results-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 18px 0;
    line-height: 1.15;
    font-variant: small-caps;
    letter-spacing: 1.5px;
}

.results-intro {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1E293B;
    line-height: 1.65;
    margin-bottom: 16px;
    border-left: 3px solid #D49B0E;
    padding-left: 16px;
}

.results-text {
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 22px;
}

.results-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0 24px 0;
}

.stat-card {
    background: #F8FAFC; /* Clean light gray card background */
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    background: #FFFFFF;
    border-color: #D49B0E;
    transform: translateY(-4px);
    /*box-shadow: 0 12px 28px rgba(212, 155, 14, 0.12);*/
}

/* Icon Styling */
.stat-icon-wrapper {
    margin-bottom: 12px;
}

.stat-icon {
    font-size: 1.8rem;
    color: #D49B0E; /* Elegant Gold */
}

/* Number & Symbol Layout */
.stat-number-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-digit {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 3rem; /* Prominent large display number */
    font-weight: 700;
    color: #0F172A; /* Deep Navy */
    letter-spacing: -1px;
}

.stat-symbol {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.5rem; /* Distinct smaller symbol sizing */
    font-weight: 700;
    color: #0F172A;
    margin-left: 2px;
    margin-top: 14px;
}

.cross-superscript {
    color: #D49B0E;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    position: relative;
    top: 2px; /* Fine-tune vertical alignment */
    margin-left: 2px;
}

/* Label & Subtext Descriptions */
.stat-desc {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.89rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-subtext {
    font-size: 0.84rem;
    font-weight: 500;
    color: #64748B;
    text-transform: none;
    display: inline-block;
    margin-top: 2px;
}

/* Responsive Collapse */
@media (max-width: 768px) {
    .results-stats-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-digit {
        font-size: 2.5rem;
    }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
    .results-standalone-section {
        margin-top: 0;
        padding: 20px 0 60px 0;
    }

    .results-centered-container {
        flex-direction: column;
        gap: 32px;
        padding: 0 20px;
    }

    .results-img-col {
        flex: auto;
        width: 100%;
    }

    .results-img-frame,
    .results-clean-img {
        max-width: 100%;
        height: auto;
    }
}

/* ===================== Buttons ===================== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* ===================== Sections / bands ===================== */
.section-eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.results-band { background: var(--color-maroon); color: #fff; padding: 56px 0; }
.results-band h2 { color: #fff; }
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.result-card { text-align: center; }
.result-card__figure {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--color-gold);
    margin: 0;
}
.result-card__figure span { margin-left: 6px; }
.result-card__label { margin: 6px 0 0; font-weight: 600; }
.result-card__label small { font-weight: 400; opacity: 0.85; }
.results-footnote { text-align: center; margin-top: 24px; font-size: 0.85rem; opacity: 0.85; }

/* ==========================================================================
   RESULTS SECTION (IMAGE LEFT EDGE, CONTENT RIGHT)
   ========================================================================== */
.results-section {
    background: #FAFAFB;
    color: #1A1D20;
    overflow: hidden;
    padding: 60px 0;
}

.results-container {
    width: 100%;
    max-width: 100%;
    padding-left: 10px; /* Shifted image flush toward left edge */
    padding-right: 60px;
    display: flex;
    align-items: center;
    gap: 65px;
    box-sizing: border-box;
}

/* Left Image Column */
.results-image-col {
    flex: 1.05;
    margin-left: 10px;
}

.results-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.results-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.results-image-wrapper:hover .results-img {
    transform: scale(1.03);
}

/* Right Content Column */
.results-content-col {
    flex: 0.95;
    max-width: 50%;
}

.results-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #D49B0E;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.results-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 24px 0;
    line-height: 1.1;
    font-variant: small-caps;
    letter-spacing: 2px;
}

.results-intro {
    font-family: 'Times New Roman', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #1E293B;
    line-height: 1.65;
    margin-bottom: 22px;
    border-left: 3px solid #F5B921;
    padding-left: 18px;
}

.results-text {
    font-family: 'Times New Roman', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #2D3748;
    line-height: 1.9;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

/* Stats Row */
.results-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0 20px 0;
    padding: 18px 0;
    position: relative;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-item {
    text-align: left;
    padding: 14px 16px;
    background: #FAFAFB;
    border: 1px solid rgba(212, 155, 14, 0.25);
    border-radius: 8px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
    background: #FFFFFF;
    border-color: #D49B0E;
    transform: translateY(-3px);
    /*box-shadow: 0 10px 25px rgba(212, 155, 14, 0.18), 
                0 0 12px rgba(212, 155, 14, 0.12);*/
}

.stat-number {
    display: flex;
    align-items: baseline;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #D49B0E;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    display: block;
    font-family: 'Cinzel', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-label small {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748B;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 3px;
}

/* Superscript and Footnote */
.cross-superscript {
    color: #D49B0E;
    font-size: 0.8em;
    vertical-align: super;
    margin-left: 2px;
}

.results-footnote {
    font-family: Georgia, serif;
    font-size: 0.98rem;
    color: #666666;
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 16px 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    display: block;
    width: 100%;
}

/* Responsive Reset */
@media (max-width: 992px) {
    .results-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 40px;
        align-items: stretch;
    }

    .results-content-col,
    .results-image-col {
        max-width: 100%;
        margin: 0;
    }

    .results-img {
        height: 420px;
    }
}

.content-band { padding: 64px 0; }
.content-band--alt { background: var(--color-cream); }
.content-band--narrow { max-width: 820px; margin: 0 auto; }
.content-band--center { text-align: center; }
.content-band__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.content-pending {
    background: #FFF8E6;
    border: 1px dashed var(--color-gold);
    padding: 16px 20px;
    border-radius: var(--radius);
    color: var(--color-ink-soft);
    font-style: italic;
}

.tick-list { padding-left: 0; list-style: none; }
.tick-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
.tick-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.method-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    /*box-shadow: var(--shadow-soft);*/
}
.method-card h3 {
    position: relative;
    padding-left: 28px;
    color: var(--color-primary);
    font-size: 1.05rem;
}

.method-card h3::before {
    content: "\271D"; 
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.cta-band { background: var(--color-primary); color: #fff; padding: 60px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band__inner { max-width: 640px; margin: 0 auto; }

/* ==========================================================================
   EDUCATIONAL METHODS SECTION
   ========================================================================== */

.educational-section {
    background-color: #18060A;
    display: flex;
    align-items: center; /* Vertically centers left column with cards */
    gap: 1.8rem;
    padding: 60px 0 30px 2%;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Left Heading Column */
.section-title-col {
    flex: 0 0 230px;
    max-width: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Small Tagline Text Above Title */
.title-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: #D49B0E;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.title-divider {
    width: 55px;
    height: 2px;
    background: #D49B0E;
    margin-bottom: 12px;
    border-radius: 2px;
}

.section-title-col h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.18;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Cards Horizontal Scroll Area */
.cards-container {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 10px 20px 12px 0;
    
    scrollbar-width: thin;
    scrollbar-color: #D49B0E transparent;
}

.cards-container::-webkit-scrollbar {
    height: 6px;
}

.cards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.cards-container::-webkit-scrollbar-thumb {
    background-color: #D49B0E;
    border-radius: 3px;
}

/* Card Styling */
.card {
    flex: 0 0 310px;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);*/
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);*/
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.cross-icon {
    color: #D49B0E;
    font-size: 1.8rem;
    display: block;
}

.card-header h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #18060A;
    margin: 0;
    line-height: 1.25;
}

.card-content p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 992px) {
    .educational-section {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 16px;
        padding-bottom: 20px;
    }

    .section-title-col {
        flex: none;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .section-title-col h2 {
        font-size: 2rem;
    }

    .cards-container {
        width: 100%;
    }
}

/* ===================== Page header (inner pages) ===================== */
.page-header {
    background-color: #18060A;
    background-image: linear-gradient(135deg, #18060A 0%, #0F0406 100%);
    padding: 56px 0;
    text-align: center;
}
.page-header h1 { color: #fff; margin: 0; }

.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    padding: 18px 20px;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===================== Cards / grids ===================== */
.staff-grid, .link-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0 48px;
}
.staff-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px;
    /*box-shadow: var(--shadow-soft);*/
}
.staff-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.staff-card h3 small { font-weight: 400; font-size: 0.75rem; color: var(--color-ink-soft); display: block; }
.staff-card__role { font-weight: 600; color: var(--color-primary); font-size: 0.88rem; margin-bottom: 10px; }

.link-card {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    /*box-shadow: var(--shadow-soft);*/
    transition: transform 0.15s ease;
}
.link-card:hover { transform: translateY(-3px); text-decoration: none; }
.link-card h2 { font-size: 1.2rem; }
.link-card p { margin: 0; color: var(--color-ink-soft); }

.trio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0 32px;
}
.trio-card {
    background: var(--color-cream);
    border-radius: var(--radius);
    padding: 20px;
    border-top: 4px solid var(--color-gold);
}
.trio-card h4 { color: var(--color-primary-dark); margin-bottom: 8px; }

.info-callout {
    background: var(--color-cream);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 20px;
}
.info-callout h2 { margin-bottom: 4px; }

.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
}
.steps-list li {
    position: relative;
    padding: 0 0 24px 52px;
    border-left: 2px solid var(--color-border);
    margin-left: 18px;
}
.steps-list li:last-child { border-left: 2px solid transparent; padding-bottom: 0; }
.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -19px;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.steps-list h3 { margin-bottom: 4px; font-size: 1.05rem; }

.figure { margin: 28px 0; }
.figure img { width: 100%; border-radius: var(--radius);}
.figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--color-ink-soft); text-align: center; }

.profile-row {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.profile-row__photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    /*box-shadow: var(--shadow-soft);*/
    flex-shrink: 0;
}
.profile-row > div { flex: 1; min-width: 240px; }

.pull-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-primary-dark);
    border-left: 4px solid var(--color-gold);
    padding-left: 20px;
    margin: 28px 0;
}
.pull-quote--large { font-size: 1.1rem; line-height: 1.8; }
.pull-quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 0.85rem; }

/* ===================== Forms ===================== */
.form { max-width: 640px; margin-top: 24px; }
.form__row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.form__row label { font-weight: 700; font-size: 0.9rem; color: var(--color-primary-dark); }
.form__row input,
.form__row textarea {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.form__row input:focus,
.form__row textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    /*box-shadow: 0 0 0 3px rgba(210, 31, 107, 0.15);*/
}
.form__hint { color: var(--color-ink-soft); font-size: 0.78rem; }
.form__error { color: #B3261E; font-size: 0.82rem; }
.form__summary ul { color: #B3261E; }
.form__honeypot { position: absolute; left: -9999px; top: -9999px; }

/* ==========================================================================
   MEGA MENU OVERLAY (BALANCED HORIZONTAL LAYOUT & ELEGANT TYPOGRAPHY)
   ========================================================================== */

/* ---------- Backdrop ---------- */
.mega-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(8, 2, 4, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

    .mega-menu-backdrop.is-active {
        opacity: 1;
        visibility: visible;
    }

/* ---------- Overlay panel ---------- */
.mega-menu-overlay {
    --mm-gold: #D49B0E;
    --mm-gold-soft: #F0C44F;
    --mm-ink: #18060A;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: min(90vh, 820px);
    z-index: 9999;
    overflow: hidden;
    background: radial-gradient(900px 380px at 88% -8%, rgba(212, 155, 14, 0.17), transparent 60%), radial-gradient(700px 320px at 0% 100%, rgba(212, 155, 14, 0.07), transparent 60%), linear-gradient(180deg, #18060A 0%, #0F0305 100%);
    border-bottom: 3px solid var(--mm-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease-in-out, visibility 0.55s ease;
}

    .mega-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.mega-menu-container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 24px 36px 28px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ---------- Focus states ---------- */
.mega-menu-overlay a:focus-visible,
.mega-menu-overlay button:focus-visible {
    outline: 2px solid var(--mm-gold-soft);
    outline-offset: 3px;
}

/* ---------- Header bar ---------- */
.mega-menu-header {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
}

    .mega-menu-header::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(212, 155, 14, 0.75), rgba(212, 155, 14, 0.2));
    }

.mega-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.mega-logo-img {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-brand:hover .mega-logo-img {
    transform: scale(1.05);
}

.mega-brand-title {
    display: block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    line-height: 1.1;
}

    .mega-brand-title .brand-initial {
        font-size: 2.1rem;
        color: #FFFFFF;
        line-height: 0;
        display: inline-block;
        vertical-align: baseline;
    }

.mega-brand-subtitle {
    display: inline-block;
    margin-top: 4px;
    padding-bottom: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #F0E6D2;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.mega-header-controls {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.mega-menu-close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

    .mega-menu-close svg {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mega-menu-close:hover {
        color: var(--mm-gold-soft);
        border-color: var(--mm-gold);
        background: rgba(212, 155, 14, 0.1);
    }

        .mega-menu-close:hover svg {
            transform: rotate(90deg);
        }

/* ---------- Body: rail + main ---------- */
.mega-menu-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding-top: 24px;
}

/* ---------- Left rail ---------- */
.mega-rail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding-right: 40px;
    border-right: 1px solid;
    border-image: linear-gradient(180deg, rgba(212, 155, 14, 0), rgba(212, 155, 14, 0.5) 25%, rgba(212, 155, 14, 0.5) 75%, rgba(212, 155, 14, 0)) 1;
}

/* NEW! feature card */
.mega-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #D49B0E 0%, #F0C44F 55%, #D49B0E 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #18060A;
    text-decoration: none;
    overflow: hidden;
    animation: mega-glow 3s ease-in-out infinite;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-position 0.6s ease;
}

    .mega-feature::after {
        content: '';
        position: absolute;
        right: -34px;
        top: -34px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        border: 2px solid rgba(24, 6, 10, 0.18);
        box-shadow: 0 0 0 16px rgba(24, 6, 10, 0.05);
        pointer-events: none;
    }

    .mega-feature:hover {
        transform: translateY(-4px);
        background-position: 100% 50%;
    }

.mega-feature-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #18060A;
    color: var(--mm-gold-soft);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.mega-feature-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
}

.mega-feature-text {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(24, 6, 10, 0.85);
}

.mega-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

    .mega-feature-cta svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.4;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 0.3s ease;
    }

.mega-feature:hover .mega-feature-cta svg {
    transform: translateX(5px);
}

@keyframes mega-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 155, 14, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(212, 155, 14, 0);
    }
}

/* Rail buttons */
.mega-rail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-mega-solid,
.btn-mega-outline {
    display: block;
    padding: 12px 24px;
    border-radius: 50px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-mega-solid {
    background: transparent;
    border: 1px solid var(--mm-gold);
    color: var(--mm-gold-soft);
}

    .btn-mega-solid:hover {
        background: var(--mm-gold);
        color: #18060A;
        transform: translateY(-2px);
    }

.btn-mega-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
}

    .btn-mega-outline:hover {
        border-color: #FFFFFF;
        color: #FFFFFF;
        transform: translateY(-2px);
    }

.mega-rail-note {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(212, 155, 14, 0.22);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.96rem;
    color: rgba(240, 196, 79, 0.85);
}

/* ---------- Main navigation ---------- */
.mega-main {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-right: 6px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 155, 14, 0.5) transparent;
}

    .mega-main::-webkit-scrollbar {
        width: 4px;
    }

    .mega-main::-webkit-scrollbar-thumb {
        background: rgba(212, 155, 14, 0.5);
        border-radius: 4px;
    }

/* Section titles */
.mega-col-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--mm-gold);
    border-bottom: 1px solid rgba(212, 155, 14, 0.28);
}

    .mega-col-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 48px;
        height: 2px;
        background: var(--mm-gold-soft);
        border-radius: 2px;
    }

    .mega-col-title .title-icon {
        font-size: 0.75rem;
        color: var(--mm-gold-soft);
    }

/* ---------- Curricula accordion ---------- */
.mega-acc {
    margin-bottom: 14px;
}

.mega-acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 155, 14, 0.35);
    border-radius: 14px;
    color: #FFFFFF;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .mega-acc-trigger:hover,
    .mega-acc.is-open .mega-acc-trigger {
        background: rgba(212, 155, 14, 0.12);
        border-color: var(--mm-gold);
    }

.mega-acc-label {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.mega-acc-count {
    margin-right: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(212, 155, 14, 0.18);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mm-gold-soft);
}

.mega-acc-chevron {
    flex: 0 0 auto;
    color: var(--mm-gold-soft);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-acc.is-open .mega-acc-chevron {
    transform: rotate(180deg);
}

/* Smooth height animation (0fr -> 1fr) */
.mega-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s linear 0.4s;
}

.mega-acc.is-open .mega-acc-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s;
}

.mega-acc-panel-inner {
    min-height: 0;
    overflow: hidden;
}

/* ---------- Curricula tile grid ---------- */
.mega-curricula-grid {
    list-style: none;
    margin: 0;
    padding: 14px 0 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    counter-reset: mega-curr;
}

    .mega-curricula-grid li {
        counter-increment: mega-curr;
    }

    .mega-curricula-grid a {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 100%;
        padding: 11px 14px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(212, 155, 14, 0.2);
        border-radius: 12px;
        font-family: 'Cinzel', Georgia, serif;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.35;
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

        .mega-curricula-grid a::before {
            content: counter(mega-curr, decimal-leading-zero);
            flex: 0 0 auto;
            min-width: 28px;
            font-family: 'Cinzel', Georgia, serif;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--mm-gold);
            transition: color 0.25s ease;
        }

        .mega-curricula-grid a:hover {
            transform: translateY(-3px);
            background: rgba(212, 155, 14, 0.12);
            border-color: var(--mm-gold);
            color: #FFFFFF;
        }

            .mega-curricula-grid a:hover::before {
                color: var(--mm-gold-soft);
            }

/* ---------- Link columns ---------- */
.mega-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.mega-row--two {
    grid-template-columns: repeat(2, 1fr);
}

.mega-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-col-list--inline {
    display: grid;
    grid-template-columns: repeat(4, 0.8fr);
    gap: 0 34px;
}

.mega-col-list > li {
    margin-bottom: 3px;
}

    .mega-col-list > li > a {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        border-radius: 10px;
        font-family: 'Cinzel', Georgia, serif;
        font-size: 1.12rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
    }

        /* Diamond bullet */
        .mega-col-list > li > a::before {
            content: '';
            flex: 0 0 auto;
            width: 6px;
            height: 6px;
            margin-right: 12px;
            background: var(--mm-gold);
            transform: rotate(45deg);
            opacity: 0.45;
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .mega-col-list > li > a:hover {
            padding-left: 16px;
            background: rgba(212, 155, 14, 0.1);
            color: #FFFFFF;
            font-weight: 400;
        }

            .mega-col-list > li > a:hover::before {
                opacity: 1;
                transform: rotate(45deg) scale(1.3);
            }

/* ---------- Entrance animation ---------- */
@keyframes mega-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-overlay.is-active .mega-menu-header,
.mega-menu-overlay.is-active .mega-rail,
.mega-menu-overlay.is-active .mega-academics,
.mega-menu-overlay.is-active .mega-row {
    animation: mega-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mega-menu-overlay.is-active .mega-menu-header {
    animation-delay: 0.1s;
}

.mega-menu-overlay.is-active .mega-rail {
    animation-delay: 0.18s;
}

.mega-menu-overlay.is-active .mega-academics {
    animation-delay: 0.26s;
}

.mega-menu-overlay.is-active .mega-row {
    animation-delay: 0.36s;
}

/* ---------- Medium screens ---------- */
@media (max-width: 1100px) {
    .mega-menu-body {
        grid-template-columns: 260px 1fr;
        gap: 30px;
    }

    .mega-rail {
        padding-right: 30px;
    }

    .mega-curricula-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-row {
        gap: 20px;
    }
}

/* ---------- Tablet / mobile: full screen, one column ---------- */
@media (max-width: 992px) {
    .mega-menu-overlay {
        height: 100vh;
        height: 100dvh;
    }

    .mega-menu-container {
        padding: 20px 22px 24px;
        overflow-y: auto;
    }

    .mega-menu-body {
        flex: none;
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 20px;
    }

    .mega-rail {
        padding-right: 0;
        border-right: none;
        border-image: none;
    }

    .mega-rail-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

        .mega-rail-actions a {
            flex: 1 1 160px;
        }

    .mega-rail-note {
        display: none;
    }

    .mega-main {
        overflow: visible;
        padding-right: 0;
    }

    .mega-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px 24px;
    }

    .mega-col-list--inline {
        grid-template-columns: repeat(2, 0.8fr);
    }

    .mega-logo-img {
        height: 54px;
    }

    .mega-brand {
        gap: 14px;
    }

    .mega-brand-title {
        font-size: 1.15rem;
    }

        .mega-brand-title .brand-initial {
            font-size: 1.6rem;
        }

    .mega-brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 600px) {
    .mega-row,
    .mega-row--two {
        grid-template-columns: 1fr;
    }

    .mega-col-list--inline {
        grid-template-columns: 0.8fr;
    }
}

@media (max-width: 480px) {
    .mega-curricula-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-close span {
        display: none;
    }

    .mega-menu-close {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-menu-overlay,
    .mega-menu-backdrop,
    .mega-feature,
    .mega-acc-panel,
    .mega-acc-chevron {
        transition: none;
    }

    .mega-feature {
        animation: none;
    }

    .mega-menu-overlay.is-active .mega-menu-header,
    .mega-menu-overlay.is-active .mega-rail,
    .mega-menu-overlay.is-active .mega-academics,
    .mega-menu-overlay.is-active .mega-row {
        animation: none;
    }
}

/* ==========================================================================
   SCROLL-PANNING EDITORIAL SECTIONS
   ========================================================================== */

.parallax-editorial-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0; /* Increased padding */
    min-height: 90vh; /* Increased height so image stands taller */
    display: flex;
    align-items: center;
}

/* Background Wrapper & Image */
.parallax-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.parallax-bg-img {
    position: absolute;
    height: 116%; /* Increased image height scale */
    width: 116%; /* Allows full horizontal pan */
    object-fit: cover;
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Base Horizontal Alignments */
.parallax-bg-img.pan-right {
    left: 0;
}

.parallax-bg-img.pan-left {
    right: 0;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 6, 10, 0.22); /* Dark maroon overlay tint */
    z-index: 2;
}

.relative-z {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Card Positioning (Left & Right) */
.editorial-card-wrapper {
    display: flex;
    width: 100%;
}

.card-align-left {
    justify-content: flex-start; /* Aligns Who We Are to the LEFT */
    margin-left: -30px;
}

.card-align-right {
    justify-content: flex-end; /* Aligns How It Works to the RIGHT */
    margin-right: -30px;
}

/* Floating Dark Editorial Card */
.editorial-card {
    background-color: #18060A;
    color: #FFFFFF;
    padding: 45px 40px;
    max-width: 540px;
    width: 100%;
    /*box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);*/
    border: 1px solid rgba(212, 155, 14, 0.25);
}

/* Typography & Elements */
.section-kicker {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    color: #D49B0E;
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.2rem;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.title-accent-line {
    width: 45px;
    height: 2px;
    background-color: #D49B0E;
    margin-bottom: 22px;
}

.card-lead-text {
    font-family: Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #E2E8F0;
    margin-bottom: 20px;
}

.card-highlight-note {
    border-left: 3px solid #D49B0E;
    padding-left: 14px;
    font-style: italic;
    color: #F1F5F9;
    margin-top: 10px;
    margin-bottom: 25px;
}

.card-quote-box {
    border-left: 3px solid #D49B0E;
    padding-left: 16px;
    margin-bottom: 28px;
}

.card-quote-box p {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #CBD5E1;
    margin: 0;
}

/* Feature List */
.card-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.card-feature-list li {
    font-family: Georgia, serif;
    font-size: 0.98rem;
    color: #F1F5F9;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.cross-icon {
    color: #D49B0E;
    font-size: 1.1rem;
    line-height: 1.3;        /* Matches h3 line-height for vertical alignment */
    flex-shrink: 0;          /* Prevents cross icon from squishing */
    margin-top: 1px;         /* Fine-tune alignment with the top of text */
}
.editorial-outline-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #D49B0E;
    border-radius: 30px;
    color: #D49B0E;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.editorial-outline-btn:hover {
    background-color: #D49B0E;
    color: #18060A;
}

.parallax-editorial-section .container {
    max-width: 1400px;
    padding-left: 40px;
    padding-right: 40px;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 992px) {
    .card-align-left,
    .card-align-right {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
    }

    .parallax-editorial-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}
/* ==========================================================================
   CENTERED EMBEDDED FOOTER STYLES (NO GRID / COMPACT LAYOUT)
   ========================================================================== */

/* Remove default body / main margins to eliminate gap above footer */
main#main-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.educational-section {
    margin-bottom: 0 !important; /* Joint directly with footer */
}

/* Outer Footer Base */
.site-footer {
    background-color: #18060A;
    color: #FFFFFF;
    padding: 35px 20px 40px 20px;
    margin-top: 0;
    border-top: 1px solid rgba(212, 155, 14, 0.15);
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.site-footer__crest {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.crest-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
}

.crest-line {
    height: 2px;
    width: 220px;
}

.crest-line--left {
    background: linear-gradient(to left, #D49B0E, transparent);
    margin-right: 25px;
}

.crest-line--right {
    background: linear-gradient(to right, #D49B0E, transparent);
    margin-left: 25px;
}

.footer-crest-img {
    height: 70px;
    width: auto;
}

.footer-brand-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    margin: 0;
}

.brand-initial {
    font-size: 2rem; /* Distinctly larger first letters */
    color: #FFFFFF;
}

.footer-brand-subtitle {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.88rem;
    color: #D49B0E;
    letter-spacing: 3px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Full Width Horizontal Divider */
.footer-divider {
    margin: 20px 0 25px 0;
}

/* Split Bottom Row */
.footer-bottom-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.copyright-text {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    color: #CBD5E1;
    margin: 0;
}

/* Links Container */
.footer-links-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Inline Social Icons */
.footer-links-bar a.social-icon-inline {
    color: #D49B0E !important;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.footer-links-bar a.social-icon-inline svg {
    fill: currentColor;
}

.footer-links-bar a.social-icon-inline:hover {
    color: #FFFFFF !important;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Text Navigation Links */
.footer-links-bar a:not(.social-icon-inline),
.footer-links-bar a:not(.social-icon-inline):visited {
    color: #FFFFFF !important;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-bar a:not(.social-icon-inline):hover {
    color: #D49B0E !important;
    text-decoration: underline;
}

.link-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Right Side: Charity Text & Legal Links */
.footer-bottom-right {
    max-width: 580px; /* Slightly wider to give text breathability */
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px; /* Matches gap between copyright and links on the left */
}

.footer-legal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-charity-desc {
    font-family: Georgia, serif;
    font-size: 0.88rem;
    color: #CBD5E1;
    line-height: 1.4;
    margin: 0;
}

.footer-legal-bar a,
.footer-legal-bar a:visited {
    color: #FFFFFF !important;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-bar a:hover {
    color: #D49B0E !important;
    text-decoration: underline;
}

/* Footer Mega Menu Trigger Button */
.footer-mega-menu-trigger {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    color: #FFFFFF !important;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: inherit;
    display: inline;
}

.footer-mega-menu-trigger:hover {
    color: #D49B0E !important;
    text-decoration: underline;
}

/* NEW! compact card (mirrors the menu's gold feature card) */
.footer-new-card {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 210px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #D49B0E 0%, #F0C44F 55%, #D49B0E 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    text-align: left;
    text-decoration: none;
    overflow: hidden; /* add: clips the circle */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.6s ease;
}

/* Circle decoration, top right (scaled-down version of .mega-feature::after) */
.footer-new-card::after {
    content: '';
    position: absolute;
    right: -24px;
    top: -24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(24, 6, 10, 0.18);
    box-shadow: 0 0 0 11px rgba(24, 6, 10, 0.05);
    pointer-events: none;
}

.footer-new-card:hover,
.footer-new-card:focus-visible {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.footer-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #18060A;
    color: #F0C455;
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.footer-new-title {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.15;
    color: #18060A;
}

.footer-new-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #18060A;
}

.footer-new-cta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.footer-new-card:hover .footer-new-cta svg {
    transform: translateX(3px);
}

@media (max-width: 1000px) {
    .footer-new-card {
        position: static;
        align-self: center;
        margin-bottom: 20px;
    }
}

/* Responsive Adjustments */
@media (max-width: 850px) {
    .footer-bottom-split {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        text-align: center;
        align-items: center;
    }

    .footer-links-bar,
    .footer-legal-bar {
        justify-content: center;
    }

    .crest-line {
        width: 100px;
    }
}