/*==================================================
        MOBILE-FIRST HERO SECTION
==================================================*/

.hero-section {
    position: relative;
    overflow: hidden;
    background: #064A29;
}

.hero-slide {
    position: relative;
    min-height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg,
            rgba(6, 74, 41, 0.68) 0%,
            rgba(6, 74, 41, 0.58) 60%,
            rgba(0, 0, 0, 0.52) 100%);
    padding: 24px 0 36px;
    display: flex;
    align-items: center;
}

/* Base Mobile Typography (< 576px) */

.hero-tag {
    display: inline-block;
    background: linear-gradient(135deg, #FDB913, #FFD54F);
    color: #064A29;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: .5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    text-align: center;
}

.hero-title {
    font-size: clamp(24px, 6.5vw, 56px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 8px;
}

.hero-title span {
    display: inline;
    color: #FDB913;
}

.hero-subtitle {
    color: #ffffff;
    font-size: clamp(14px, 3.5vw, 24px);
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-description {
    color: #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
    max-width: 600px;
}

/* Base Mobile Hero Buttons */

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 0;
}

/* ========================================
   ANIMATED APPLY NOW BUTTON
========================================= */
.hero-btn {
    position: relative;
    background: linear-gradient(135deg, #FDB913 0%, #FFD54F 40%, #FDB913 100%);
    background-size: 200% 200%;
    color: #064A29;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    border: none;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: .3px;

    /* Continuous glow pulse */
    box-shadow:
        0 4px 18px rgba(253, 185, 19, .55),
        0 0 0 0 rgba(253, 185, 19, .6);

    animation:
        applyPulse 2.4s ease-in-out infinite,
        gradientShift 3s ease infinite,
        applyBounceIn .7s cubic-bezier(.34, 1.56, .64, 1) both;

    transition: transform .25s ease, box-shadow .25s ease;
}

/* Shimmer sweep overlay */
.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
    animation: shimmerSweep 2.2s ease-in-out infinite;
    border-radius: inherit;
    pointer-events: none;
}

/* Ripple ring */
.hero-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    box-shadow: 0 0 0 0 rgba(253, 185, 19, .7);
    animation: rippleRing 2.4s ease-out infinite;
    pointer-events: none;
}

.hero-btn:hover,
.hero-btn:focus {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 12px 35px rgba(253, 185, 19, .65),
        0 0 0 6px rgba(253, 185, 19, .18);
    color: #064A29;
    animation: gradientShift 3s ease infinite;
}

.hero-btn:active {
    transform: translateY(-1px) scale(.98);
}

.hero-btn-outline {
    border: 2.5px solid rgba(255, 255, 255, .9);
    color: #ffffff;
    padding: 13px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    text-decoration: none;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .08);
    animation: applyBounceIn .85s cubic-bezier(.34, 1.56, .64, 1) both;
}

.hero-btn-outline:hover,
.hero-btn-outline:focus {
    background: rgba(255, 255, 255, .95);
    color: #064A29;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, .25);
}

/* Keyframes */
@keyframes applyPulse {

    0%,
    100% {
        box-shadow: 0 4px 18px rgba(253, 185, 19, .55), 0 0 0 0 rgba(253, 185, 19, .5);
    }

    50% {
        box-shadow: 0 6px 28px rgba(253, 185, 19, .8), 0 0 0 10px rgba(253, 185, 19, 0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmerSweep {
    0% {
        left: -75%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

@keyframes rippleRing {
    0% {
        box-shadow: 0 0 0 0 rgba(253, 185, 19, .7);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(253, 185, 19, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(253, 185, 19, 0);
    }
}

@keyframes applyBounceIn {
    0% {
        opacity: 0;
        transform: scale(.5) translateY(20px);
    }

    60% {
        opacity: 1;
        transform: scale(1.06) translateY(-4px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}


/* Base Glass Admission Card */

.hero-card {
    display: none;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .3);
    margin-top: 10px;
}

.hero-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: #FFD54F;
}

.hero-card hr {
    border-color: rgba(255, 255, 255, .25);
    margin: 12px 0 16px;
}

.hero-card p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
}

.hero-card p strong {
    color: #e0e0e0;
}

.hero-card p span {
    font-weight: 600;
}

.hero-card .btn {
    font-weight: 700;
    border-radius: 30px;
    padding: 12px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(244, 180, 0, .3);
}

/* Carousel Controls & Indicators */

.carousel-control-prev,
.carousel-control-next {
    display: none;
    width: 50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .25);
    backdrop-filter: blur(8px);
    transition: .3s;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background: #FDB913;
}

.carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .5);
    border: none;
    margin: 0 5px;
    transition: .3s ease;
}

.carousel-indicators .active {
    background: #FDB913;
    width: 24px;
    border-radius: 10px;
}

/*====================================
    PROGRESSIVE TABLET & DESKTOP ENHANCEMENT
=====================================*/

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        width: auto;
    }

    .hero-btn,
    .hero-btn-outline {
        width: auto;
        min-width: 170px;
    }
}

@media (max-width: 575.98px) {
    .hero-title span {
        display: inline;
    }
}

@media (min-width: 768px) {
    .hero-overlay {
        padding: 60px 0 70px;
    }

    .hero-card {
        padding: 28px;
    }

    .hero-card h4 {
        font-size: 22px;
        text-align: left;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: flex;
    }
}

/*==================================================
        DESKTOP HERO (992px+)
==================================================*/

@media (min-width:992px) {

    .hero-section {
        margin-top: -85px;
        zoom: 0.8;
        /* Hero starts behind navbar */
    }

    .hero-slide {
        min-height: 100vh;
    }

    .hero-overlay {


        position: absolute;
        inset: 0;
        padding: 60px 0 60px;
        display: flex;
        align-items: center;

        padding: 170px 0 60px;

        background: linear-gradient(90deg,
                rgba(6, 74, 41, .70) 0%,
                rgba(6, 74, 41, .50) 45%,
                rgba(0, 0, 0, .30) 100%);

    }

    /* Move everything upward */

    .hero-content {

        margin-top: -55px;

    }

    .hero-title {

        font-size: 62px;

        line-height: 1.08;

        margin-bottom: 12px;

    }

    .hero-subtitle {

        font-size: 28px;

        margin-bottom: 18px;

    }

    .hero-description {

        font-size: 17px;

        max-width: 620px;

        margin-bottom: 30px;

    }

    .hero-buttons {

        margin-top: 10px;

    }

    .hero-card {

        display: block;

        margin-top: -20px;

        padding: 34px;

        border-radius: 22px;

        background: rgba(255, 255, 255, .12);

        backdrop-filter: blur(20px);

        border: 1px solid rgba(255, 255, 255, .18);

    }

}

/*====================================
        KEYFRAME ANIMATIONS
=====================================*/

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}