/* VFA High School - Heritage Refined Public Styles (Stitch Ref: homepage-code.html) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Raleway:wght@700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: var(--vfa-on-surface);
    line-height: 1.6;
    background-color: var(--vfa-surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Global Content Constraint */
.container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 1. Navbar: Dark Theme & Specific Height */
.navbar.vfa-navbar {
    height: 100px;
    background-color: var(--vfa-dark-panel, #0A294D);
    border-bottom: 0px;
    box-shadow: 0px 20px 40px rgba(28,27,27,0.06);
    transition: var(--vfa-transition);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
}

.nav-link.active {
    border-bottom: 2px solid var(--vfa-gold);
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .vfa-navbar #navPublic .nav-link.active {
        border-bottom: 0;
    }
}

/* Heritage Gold APPLY NOW Button */
.btn-vfa-apply {
    background-color: var(--vfa-dominant-green);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-vfa-apply:hover {
    background-color: var(--vfa-secondary-variant);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-vfa-apply:active {
    transform: scale(0.9);
}

/* 2. Hero Section Refined */
.hero-section {
    position: relative;
    height: 650px;
    margin-top: 100px;
    background-color: var(--vfa-dark-panel, #0A294D);
    overflow: hidden;
}

.carousel-item {
    height: 650px;
    background-color: var(--vfa-dark-panel, #0A294D);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    margin: 0 8px;
    border: none;
}

.carousel-indicators .active {
    background-color: var(--vfa-gold);
    transform: scale(1.2);
}

.hero-section img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17,17,17,0.8), transparent);
}

.hero-section .hero-h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-section .hero-p {
    font-size: 20px;
    font-weight: 500;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.5;
}

/* 3. Section Sizing & Titling */
.vfa-section {
    padding: 100px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.title-underline {
    width: 80px;
    height: 6px;
    background-color: var(--vfa-gold);
    margin: 0 auto;
    border-radius: 999px;
}

/* Cards & Statistics */
.vfa-card {
    background-color: var(--vfa-surface-container-lowest);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 20px 40px rgba(28,27,27,0.04);
    transition: var(--vfa-transition);
    height: 100%;
    border: none;
}

.vfa-card:hover {
    transform: translateY(-8px);
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--vfa-gradient-academic);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Stats Banner: Majestic Navy Strip */
.stats-banner {
    background-color: var(--vfa-primary);
    color: #ffffff;
    padding: 64px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stats-number {
    font-size: 36px;
    font-weight: 800;
}

.stats-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* 4. News & Content */
.bg-news {
    background-color: var(--vfa-surface-container-low);
}

.news-badge-date {
    background-color: var(--vfa-primary);
    color: var(--vfa-gold);
    border: 1px solid rgba(212, 168, 67, 0.3);
    padding: 6px 14px;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Footer Improvements */
.vfa-footer {
    background-color: var(--vfa-dark-panel, #0A294D);
    padding-top: 80px;
    padding-bottom: 40px;
    color: rgba(255,255,255,0.6);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.footer-h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* Footer contact: icon aligned with first line of text */
.vfa-footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.vfa-footer-contact-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.5;
    width: 1.125rem;
    text-align: center;
    margin-top: 0.12em;
}

.vfa-footer-contact-row--multiline .vfa-footer-contact-icon {
    margin-top: 0.15em;
}

/* 5. Dropdown Menu Refinement */
.dropdown-menu.bg-dark-panel {
    background-color: var(--vfa-dark-panel, #0A294D) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.2s ease-in-out;
    padding: 0.75rem 1.25rem !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: var(--vfa-gold) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Mobile: nav and submenus use full-height flyout panels */
@media (max-width: 991.98px) {
    #navPublic.navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 380px);
        max-width: 100%;
        display: block !important;
        padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
        background-color: var(--vfa-dark-panel, #0A294D);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        transform: translate3d(100%, 0, 0);
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.2s ease, visibility 0s linear 0.28s;
        z-index: 1055;
    }

    #navPublic.navbar-collapse.show {
        visibility: visible;
        transform: translate3d(0, 0, 0);
        opacity: 1;
        transition: transform 0.28s ease, opacity 0.2s ease;
    }

    #navPublic.navbar-collapse.collapsing {
        height: auto !important;
        visibility: visible;
        transform: translate3d(100%, 0, 0);
        opacity: 0;
    }

    .vfa-navbar #navPublic .vfa-mobile-menu-topbar {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0.25rem 0 0.75rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .vfa-navbar #navPublic #navPublicCloseBtn:hover,
    .vfa-navbar #navPublic #navPublicCloseBtn:focus {
        color: var(--vfa-gold) !important;
    }

    .vfa-navbar #navPublic .navbar-nav .dropdown-menu.vfa-mobile-flyout-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 !important;
        z-index: 1060;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35) !important;
        animation: vfaFlyoutPanelIn 0.28s ease-out forwards;
    }

    .vfa-navbar #navPublic .vfa-flyout-back:hover,
    .vfa-navbar #navPublic .vfa-flyout-back:focus {
        color: var(--vfa-gold) !important;
    }
}

@keyframes vfaFlyoutPanelIn {
    from {
        opacity: 0.85;
        transform: translate3d(100%, 0, 0) !important;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) !important;
    }
}

body.vfa-mobile-flyout-open {
    overflow: hidden;
    touch-action: none;
}


.cta-banner {
    background-color: var(--vfa-primary);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-banner h2 {
    font-size: 3rem;
    font-weight: 800;
}

.btn-vfa-cta {
    background-color: var(--vfa-dominant-green);
    color: #ffffff !important;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: none;
    line-height: 1.3;
}

.btn-vfa-cta:hover {
    transform: translateY(-2px);
    background-color: var(--vfa-secondary-variant);
    color: #ffffff !important;
    box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.3);
}

/* 9. Layering & Transition Utilities */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

.carousel-fade .carousel-item {
    transition-duration: 0.8s;
}

.hover-opacity-100 {
    transition: opacity 0.3s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* --- Public layout utilities (plain CSS / Bootstrap companions; no Tailwind) --- */

.vfa-public-body {
    padding-top: 0;
}

/* Max widths (1200px container is default; these constrain inner blocks) */
.max-w-2xl {
    max-width: 42rem; /* ~672px */
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Hero buttons */
.vibrant-gradient {
    background: var(--vfa-vibrant-gradient);
    color: #fff !important;
}

.vibrant-gradient:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

.hover-bg-white-10:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Stacking */
.z-1 {
    z-index: 1;
}

/* Line clamp for news excerpts */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News meta date */
.text-news-meta {
    font-size: 0.625rem;
    font-weight: 700;
    color: #8e9196;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Object fit (Bootstrap 5.3 has object-fit utilities; keep for older) */
.object-fit-cover {
    object-fit: cover;
}

.opacity-60 {
    opacity: 0.6;
}

.letter-spacing-wide {
    letter-spacing: 0.08em;
}

.leading-relaxed {
    line-height: 1.65;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

/* News card shadow hover */
.vfa-news-card {
    transition: var(--vfa-transition);
}

.vfa-news-card:hover {
    box-shadow: var(--vfa-shadow-md);
}

/* ---------- Admissions page ---------- */

.bg-vfa-surface-low {
    background-color: var(--vfa-surface-container-low);
}

.py-hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    .py-hero {
        padding-top: 8rem;
    }
}

.curator-note {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--vfa-secondary);
    margin-bottom: 0.75rem;
}

.vfa-text-gradient {
    background: var(--vfa-gradient-academic);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.text-vfa-variant {
    color: var(--vfa-on-surface-variant);
}

.vfa-curated-tile {
    position: relative;
    border-radius: var(--vfa-radius-xl);
    overflow: hidden;
    box-shadow: var(--vfa-shadow-md);
}

.vfa-curated-tile img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.vfa-curated-tile-overlay {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--vfa-radius-lg);
}

.bg-vfa-white {
    background-color: #fff !important;
}

.vfa-ambient-shadow {
    box-shadow: 0 25px 50px -12px rgba(10, 41, 77, 0.15);
}

.vfa-glass {
    backdrop-filter: blur(8px);
}

.bg-vfa-surface {
    background-color: var(--vfa-surface-container-low) !important;
}

.text-vfa-on-surface {
    color: var(--vfa-on-surface) !important;
}

.btn-vfa {
    background: var(--vfa-gradient-academic);
    color: #fff !important;
    border: none;
}

.btn-vfa:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

.bg-vfa-secondary-container {
    background-color: var(--vfa-secondary-container) !important;
}

/* About page hero */
.about-hero {
    /* Clear fixed navbar so image/title aren’t clipped at the top */
    padding-top: 5.75rem;
    box-sizing: border-box;
}

.about-hero-media {
    position: relative;
    min-height: 240px;
    height: 40vh;
    max-height: 420px;
}

@media (min-width: 576px) {
    .about-hero-media {
        min-height: 320px;
        height: 48vh;
        max-height: 520px;
    }
}

@media (min-width: 992px) {
    .about-hero-media {
        min-height: 380px;
        height: 52vh;
        max-height: 560px;
    }
}

.about-hero-media__img {
    object-fit: cover;
    object-position: top center;
}

.about-hero-media__gradient {
    background: linear-gradient(to top, rgba(10, 41, 77, 0.92), rgba(10, 41, 77, 0.45));
    pointer-events: none;
}

.about-hero-media__overlay {
    pointer-events: none;
}

.about-hero-media__overlay .container {
    pointer-events: auto;
}

/* Title strip: explicit matching top/bottom padding (same value each breakpoint) */
.about-hero-title-band {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .about-hero-title-band {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 992px) {
    .about-hero-title-band {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }
}

.about-hero .curator-note {
    color: #478f34;
}

.about-hero-heading {
    font-size: clamp(1.5rem, 3.6vw + 0.35rem, 2.8rem);
    line-height: 1.2;
}

.about-hero-lead {
    font-size: clamp(0.95rem, 1.1vw + 0.75rem, 1.25rem);
    line-height: 1.45;
}
