/* =========================================================
   Home Page Hero Banner (Background Image Based - Full View)
========================================================= */

.hero {
    position: relative;
    min-height: clamp(600px, 46vw, 780px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
    background-color: #071c3d;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: var(--home-hero-image);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1);
    transform-origin: center top;
    animation: heroBgZoomOutToIn 12s ease-out forwards;
    will-change: transform;
}

.hero::after {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    padding: 75px 0;
    max-width: 820px;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 24px;
    background: #08214d;
    border: 2px solid #ffd25d;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffd25d;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.7s ease forwards 0.2s;
    box-shadow: 0 6px 20px rgba(8, 33, 77, 0.35);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-family: Merriweather, serif;
    line-height: 1.25;
    margin: 0 auto 22px auto;
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 900;
    max-width: 780px;
    text-align: center;
    color: #061a38;
    opacity: 0;
    transform: translateY(35px);
    animation: heroFadeUp 0.8s ease forwards 0.4s;
    text-shadow:
        0 0 16px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(255, 255, 255, 0.95);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(35px);
    animation: heroFadeUp 0.8s ease forwards 0.6s;
}

.hero .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-weight: 850 !important;
    font-size: 15.5px !important;
    background: #08214d !important;
    color: #ffffff !important;
    border: 2px solid #08214d !important;
    box-shadow: 0 8px 22px rgba(8, 33, 77, 0.35) !important;
    transition: all 0.25s ease !important;
    text-decoration: none;
    cursor: pointer;
}

.hero .btn-primary:hover {
    background: #e5a425 !important;
    color: #08214d !important;
    border-color: #e5a425 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(229, 164, 37, 0.45) !important;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 850;
    font-size: 15.5px;
    background: #ffffff;
    color: #08214d;
    border: 2px solid #08214d;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-hero-secondary:hover {
    background: #08214d;
    color: #ffffff;
    border-color: #08214d;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(8, 33, 77, 0.4);
}

.btn-hero-secondary i {
    font-size: 16px;
    color: #e5a425;
    transition: color 0.25s ease;
}

.btn-hero-secondary:hover i {
    color: #ffd25d;
}

/* Hero Zoom Out-to-In Animation (scale 1.0 -> 1.05) */

@keyframes heroBgZoomOutToIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Home Page Animations
========================== */

html {
    scroll-behavior: smooth;
}

.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
    will-change: opacity, transform;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Stats animation */

.stats-grid > div {
    opacity: 0;
    transform: translateY(30px);
    animation: statsFadeUp 0.7s ease forwards;
}

.stats-grid > div:nth-child(1) {
    animation-delay: 0.9s;
}

.stats-grid > div:nth-child(2) {
    animation-delay: 1.05s;
}

.stats-grid > div:nth-child(3) {
    animation-delay: 1.2s;
}

.stats-grid > div:nth-child(4) {
    animation-delay: 1.35s;
}

@keyframes statsFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover animation */

.feature-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(10, 34, 72, 0.14);
}

.feature-card i {
    transition:
        transform 0.35s ease,
        color 0.35s ease;
}

.feature-card:hover i {
    transform: translateY(-5px) scale(1.12) rotate(-4deg);
}

/* Image animation */

.image-card {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.image-card:hover img {
    transform: scale(1.06);
}

/* Button animations */

.btn,
.text-link {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 34, 72, 0.18);
}

.text-link i {
    transition: transform 0.3s ease;
}

.text-link:hover i {
    transform: translateX(6px);
}

/* CTA animation */

.cta-inner {
    overflow: hidden;
}

.admission-details-button {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
}

/* Accessibility & Mobile */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before {
        animation: none !important;
        transform: scale(1) !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: clamp(340px, 60vw, 440px);
        padding: 24px 0 20px;
    }

    .hero::before {
        background-image: var(--home-hero-image) !important;
        background-position: center center !important;
        background-size: cover !important;
        transform: scale(1) !important;
        animation: none !important;
    }

    .hero-content {
        padding: 6px 12px;
        max-width: 96%;
    }

    .hero .eyebrow {
        font-size: 11px;
        padding: 4px 14px;
        margin-bottom: 8px;
    }

    .hero h1 {
        font-size: clamp(16px, 4.2vw, 23px);
        line-height: 1.25;
        margin: 0 auto 10px auto;
        padding: 0 4px;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 380px !important;
        margin: 8px auto 0 !important;
    }

    .hero .btn-primary,
    .btn-hero-secondary {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
        gap: 5px !important;
    }

    .hero .btn-primary i,
    .btn-hero-secondary i {
        font-size: 11.5px !important;
    }

    .reveal-left,
    .reveal-right {
        transform: translateY(40px);
    }

    .reveal-left.active,
    .reveal-right.active {
        transform: translateY(0);
    }
}

@media (max-width: 380px) {
    .hero {
        min-height: 310px;
        padding: 16px 0 14px;
    }

    .hero h1 {
        font-size: 15px !important;
    }

    .hero .btn-primary,
    .btn-hero-secondary {
        padding: 7px 8px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 640px) {
    .image-card img {
        height: 280px;
    }
}
