body {
    font-family: 'Inter', sans-serif;
    /* Enable Flexbox layout to push footer down */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/* Brand colors (LIT Navy & Gold) */
:root {
    --color-navy-base: #132B5B; /* True Navy */
    --color-gold-base: #FFD700; /* Rich Gold */
}

/* Utility color classes */
.text-navy-logo { color: var(--color-navy-base); }
.bg-navy { background-color: var(--color-navy-base); }
.text-navy { color: var(--color-navy-base); }
.bg-gold { background-color: var(--color-gold-base); }
.text-gold { color: var(--color-gold-base); }

.hover-gold:hover { background-color: #C59100; }

/* CSS-only page routing (hash navigation)
   - Hide all sections by default
   - Show Home by default
   - Show the :target section when hash changes
*/
.page-section {
    display: none;
    min-height: 80vh;
}

/* Show the Home page by default on initial load */
#home {
    display: block;
}

/* Show the selected "page" when its ID matches the hash */
.page-section:target {
    display: block;
}

/* Hide Home page when any other page is targeted */
.page-section:target ~ #home {
    display: none;
}

/* Compensate for the fixed header on non-home pages */
#about,
#program-robotics-operator,
#program-ai-ml-developer,
#program-ev-clean-energy,
#program-robotics-tech-10wk,
#program-ai-tech-10wk,
#program-ev-tech-10wk,
#program-evitp,
#future-programs,
#partnerships,
#careers {
    padding-top: 5rem;
}

/* Ensure main content area grows to push the footer down */
main {
    flex-grow: 1;
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

/* Footer is managed by flexbox */
footer {
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* Social icon visibility */
footer .flex.space-x-4 svg {
    fill: currentColor;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 400px;
    }
}

/* Loading spinner styles (retained for chart logic) */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--color-gold-base);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hamburger & responsiveness styles */
.hamburger {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--color-navy-base); /* Navy for contrast on white header */
    cursor: pointer;
    display: none;
}

/* Match Tailwind's lg breakpoint (lg:flex starts at 1024px) */
@media (max-width: 1023px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 72px; /* Approx header height */
        right: 0;
        left: 0;
        background: var(--color-navy-base); /* Navy background for mobile menu */
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        padding-left: 0; /* Remove default ul padding */
        z-index: 49; /* Below the fixed header */
    }

    /* Mobile nav links */
    .nav-links a,
    .nav-links button {
        color: #fff;
        padding: 1rem 1.5rem;
        display: block;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links button {
        background: none;
        border: none;
    }

    .nav-links a:hover,
    .nav-links button:hover {
        color: var(--color-gold-base);
        background-color: rgba(255, 255, 255, 0.05);
    }

    /* Dropdown styles inside mobile menu */
    #programs-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #1e3a6c !important; /* Slightly lighter navy for contrast */
        width: 100% !important;
        margin-top: 0 !important;
    }

    #programs-dropdown a {
        padding-left: 3rem !important;
        font-size: 0.9rem;
        color: #ccc !important;
    }

    #programs-dropdown a:hover {
        color: var(--color-gold-base) !important;
    }

    #programs-dropdown span {
        padding-left: 1.5rem !important;
        color: var(--color-gold-base) !important;
        border-bottom: none !important;
        font-size: 0.75rem !important;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        display: block;
    }

    /* When active */
    .nav-links.active {
        max-height: 100vh; /* Allow enough height for all links */
    }
}


/* =========================================================
   LIT Website Update Brief – Program Launch UI Enhancements
   (Additive styles to support the new 7-program structure)
   ========================================================= */

/* Border utility needed by the new program cards */
.border-gold { border-color: var(--color-gold-base); }
.border-navy { border-color: var(--color-navy-base); }

/* Improve focus visibility for accessibility (keyboard users) */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-gold-base);
    outline-offset: 3px;
    border-radius: 0.75rem;
}

/* Slightly smoother scrolling offset for hash navigation on fixed header */
html { scroll-padding-top: 5.5rem; }

/* Hero call-to-action buttons: ensure consistent sizing even if Tailwind changes */
#hero a {
    text-decoration: none;
    will-change: transform;
}

/* Program cards: subtle interaction polish */
#programs-overview .shadow-2xl {
    transition: transform 180ms ease, box-shadow 180ms ease;
}
#programs-overview .shadow-2xl:hover {
    transform: translateY(-2px);
}

/* "Now Enrolling" / label chips: keep legible contrast on both backgrounds */
#programs-overview span.uppercase.rounded-full {
    letter-spacing: 0.06em;
}

/* Program detail pages: make the primary CTA feel consistent */
.page-section a[href*="larksuite.com/share/base/form"] {
    text-decoration: none;
}

/* Footer interest CTA alignment (in case Tailwind classes change) */
footer a[href*="larksuite.com/share/base/form"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile nav: override Tailwind's `hidden` on the nav so the max-height animation can work */
@media (max-width: 1023px) {
    #nav-links.nav-links {
        display: flex !important;
    }
}


/* =========================================================
   Unified "GET IN TOUCH" CTA styling
   - Combines the former "JOIN THE INTEREST LIST" (outlined/invert hover)
     + "APPLY NOW" (gold primary) visual language
   - Applied via the `cta-get-in-touch` class in index.html
   ========================================================= */

a.cta-get-in-touch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    background-color: var(--color-gold-base);
    color: var(--color-navy-base);
    border: 2px solid var(--color-gold-base);

    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

a.cta-get-in-touch:hover {
    background-color: var(--color-navy-base);
    color: var(--color-gold-base);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}



/* =========================================================
   Animations & Reveals
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
#hero > .container > * {
    opacity: 0;
    animation: hero-fade-up 0.8s ease-out forwards;
}
#hero > .container > *:nth-child(1) { animation-delay: 0.1s; }
#hero > .container > *:nth-child(2) { animation-delay: 0.3s; }
#hero > .container > *:nth-child(3) { animation-delay: 0.5s; }
#hero > .container > *:nth-child(4) { animation-delay: 0.7s; }

.program-card.shadow-2xl,
#programs-overview .shadow-2xl {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.program-card.shadow-2xl:hover,
#programs-overview .shadow-2xl:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(19, 43, 91, 0.25), 0 0 0 2px var(--color-gold-base);
}

header {
    transition: box-shadow 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: saturate(140%) blur(6px);
}

a.cta-get-in-touch {
    position: relative;
    overflow: hidden;
}
a.cta-get-in-touch::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
a.cta-get-in-touch:hover::after {
    left: 125%;
}

/* FAQ Accordion */
.faq-item {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item summary {
    list-style: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item[open] {
    box-shadow: 0 8px 24px rgba(19, 43, 91, 0.12);
}
.faq-item summary:hover {
    background-color: rgba(255, 215, 0, 0.05);
}

/* Multi-page tweaks: every page is now full-height by default
   (no more :target hiding/showing). */
.page-section {
    display: block;
    min-height: auto;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    #hero > .container > *,
    .program-card,
    #programs-overview .shadow-2xl,
    header,
    a.cta-get-in-touch::after {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
