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);
}

