﻿/* ============================================================
   A.V. Kanthamma College for Women - Home Page Styles (home.css)
   Contains: HERO CAROUSEL, STAT STRIP, ABOUT, NEWS & GALLERY,
             WHY CHOOSE US, ACADEMIC PROGRAMMES, ACHIEVERS SECTION, CTA BANNER
   ============================================================ */

/* ---------- 1. Hero Carousel ---------- */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .hero-carousel .carousel-item {
        position: relative;
        width: 100%;
        /* Clamp height between 550px and 700px on desktop for dynamic scaling */
        height: clamp(550px, 60vh, 700px);
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .hero-carousel .carousel-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        /* Soft Ken-Burns zoom effect during sliding */
        transform: scale(1);
        transition: transform 1.2s ease-in-out;
        z-index: 1;
        will-change: transform;
    }

    /* Subtle image scale effect when slide is active */
    .hero-carousel .carousel-item.active .carousel-bg {
        transform: scale(1.04);
    }

    .hero-carousel .carousel-item::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(71, 86, 103, 0.39);
        backdrop-filter: blur(1px) saturate(100%);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
        z-index: 1;
    }

    .hero-carousel .carousel-caption-custom {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        padding-top: 30px;
    }

.hero-copy h1,
.hero-copy .lead,
.hero-copy span {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.hero-copy p.lead {
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    max-width: 540px;
}

.hero-copy .badge-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--orange, #ffc123);
    color: var(--navy-dark, #123783);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-glass-box {
    pointer-events: auto;
}

/* Slide Entry Text Animation */
.carousel-item .hero-copy {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-item.active .hero-copy {
    opacity: 1;
    transform: translateX(0);
}

.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--color-lotus-pink);
    width: 30px;
    height: 3px;
    border-radius: 2px;
    opacity: 0.5;
}

.hero-carousel .carousel-indicators .active {
    opacity: 1;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.6;
    z-index: 3;
    transition: opacity 0.25s ease;
}

    .hero-carousel .carousel-control-prev:hover,
    .hero-carousel .carousel-control-next:hover {
        opacity: 1;
    }

/* ---------- 2. Stat Strip ---------- */
.stat-strip-section {
    position: relative;
    z-index: 3;
}

.stat-strip {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(20, 40, 80, 0.12);
    margin-top: -3rem; /* Clears negative margin on desktop/tablets to prevent overlap with hero buttons */
    position: relative;
    z-index: 3;
}

    .stat-strip .stat-item {
        text-align: center;
        padding: 1.6rem 0.5rem;
    }

    .stat-strip .stat-number {
        font-family: 'Source Serif 4', serif;
        font-size: 1.9rem;
        font-weight: 700;
        color: var(--navy-dark);
    }

    .stat-strip .stat-label {
        font-size: 0.82rem;
        color: var(--text-muted);
        margin-top: 0.25rem;
    }

/* ---------- Global Section Headers ---------- */
.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
}

.section-head {
    font-size: 2.1rem;
    color: var(--navy);
    margin-top: 0.4rem;
}

.section-tag-pill {
    color: var(--color-primary-blue);
    background-color: rgba(29, 82, 186, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.text-navy {
    color: var(--color-primary-blue-dark) !important;
}

.text-orange {
    color: var(--color-lotus-pink) !important;
}

/* ---------- 3. About Section ---------- */
.about-section-wrapper {
    background-color: var(--cream);
}

.about-img-box {
    padding: 10px;
    position: relative;
}

.main-about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 5px solid #ffffff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img-box:hover .main-about-img {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 82, 186, 0.18) !important;
}

.about-img-accent-border {
    position: absolute;
    bottom: -8px;
    left: -8px;
    width: 55%;
    height: 55%;
    border-bottom: 5px solid var(--color-sky-peach);
    border-left: 5px solid var(--color-sky-peach);
    border-radius: 0 0 0 24px;
    z-index: -1;
    transition: all 0.3s ease;
}

.about-img-box:hover .about-img-accent-border {
    bottom: -12px;
    left: -12px;
}

.experience-badge {
    position: absolute;
    top: 25px;
    right: -15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--color-lotus-pink);
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.exp-number {
    font-size: 2rem;
    line-height: 1;
    color: var(--color-primary-blue-dark);
}

.exp-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-lead-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5468;
    text-align: justify;
}

.principal-quote-box {
    border-left: 5px solid var(--color-sky-peach) !important;
    border: 1px solid rgba(29, 82, 186, 0.1);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .principal-quote-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(29, 82, 186, 0.12) !important;
    }

.principal-thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border: 2px solid var(--color-primary-blue);
}

.quote-body {
    font-size: 0.94rem;
    line-height: 1.6;
}

.read-message-link {
    color: var(--color-primary-blue);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .read-message-link:hover {
        color: var(--color-primary-blue-dark);
        text-decoration: underline;
    }

/* ---------- 4. News & Gallery Section ---------- */
.news-gallery-section {
    position: relative;
    background-color: var(--cream-dark);
}

.grid-pattern-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    background-image: linear-gradient(to right, rgba(13, 27, 56, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(13, 27, 56, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: gridBackgroundShift 25s linear infinite;
    pointer-events: none;
}

@keyframes gridBackgroundShift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 64px 64px;
    }
}

.event-item-card {
    background-color: #ffffff;
    border: 1px solid rgba(13, 27, 56, 0.08);
    box-shadow: 0 4px 12px rgba(13, 27, 56, 0.03);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
    cursor: pointer;
}

    .event-item-card:hover {
        transform: translateX(6px);
        border-color: rgba(224, 122, 31, 0.3);
        box-shadow: 0 8px 24px -6px rgba(13, 27, 56, 0.1), 0 4px 12px -2px rgba(224, 122, 31, 0.08);
    }

.event-date-box {
    background-color: var(--orange, #0d1b38);
    width: 64px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(13, 27, 56, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.event-item-card:hover .event-date-box {
    background-color: var(--color-lotus-pink, #e07a1f);
    transform: scale(1.05);
}

.event-day {
    font-size: 1.25rem;
    line-height: 1.1;
    display: block;
}

.event-month {
    font-size: 0.65rem;
    letter-spacing: 0.8px;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.event-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #232d3f;
    transition: color 0.25s ease;
}

.event-item-card:hover .event-title {
    color: var(--orange-dark, #c46410);
}

.event-desc {
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Gallery 3-Image Custom Grid */
.gallery-custom-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-tile {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--cream-dark);
    aspect-ratio: auto;
}

    .gallery-tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .gallery-tile:hover img {
        transform: scale(1.04);
    }

.tile-top {
    height: 160px;
}

.gallery-bottom-row {
    display: flex;
    gap: 10px;
}

.tile-bottom-left {
    flex: 0 0 35%;
    height: 260px;
}

.tile-bottom-right {
    flex: 1;
    height: 260px;
}

/* ---------- 5. Why Choose Us ---------- */
.band-alt {
    background-color: var(--cream);
    color: var(--navy-dark);
}

.feature-card-light {
    background: #ffffff;
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(18, 55, 131, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card-light:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 40px rgba(18, 55, 131, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    }

    .feature-card-light h3 {
        color: var(--navy-dark);
        font-size: 1.15rem;
        font-weight: 700;
    }

    .feature-card-light p {
        color: var(--text-muted);
        font-size: 0.88rem;
        line-height: 1.7;
        margin-top: 0.5rem;
    }

    .feature-card-light.card-library {
        border-top: 4px solid var(--color-sun-yellow);
    }

        .feature-card-light.card-library svg {
            color: var(--color-sun-yellow);
        }

    .feature-card-light.card-hostel {
        border-top: 4px solid var(--color-lotus-pink);
    }

        .feature-card-light.card-hostel svg {
            color: var(--color-lotus-pink);
        }

    .feature-card-light.card-activities {
        border-top: 4px solid var(--color-grass-green);
    }

        .feature-card-light.card-activities svg {
            color: var(--color-grass-green);
        }

    .feature-card-light.card-classrooms {
        border-top: 4px solid var(--color-mountain-teal);
    }

        .feature-card-light.card-classrooms svg {
            color: var(--color-mountain-teal);
        }

/* ---------- 6. Academic Programmes Section ---------- */
.academic-section {
    position: relative;
    padding: 6rem 0;
    /* Retained exact gradient coloring and background image */
    background-image: linear-gradient(135deg, rgb(96 127 92 / 88%) 0%, rgb(40 72 101 / 61%) 100%), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?q=80&w=1920&auto=format&fit=crop');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

    .academic-section::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 193, 35, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
        border-radius: 50%;
        animation: floatGlow 8s ease-in-out infinite alternate;
        pointer-events: none;
    }

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-40px, 40px) scale(1.15);
    }
}

.academic-section .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-sun-yellow);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .academic-section .section-tag .pulse-dot {
        width: 8px;
        height: 8px;
        background-color: var(--color-sun-yellow);
        border-radius: 50%;
        box-shadow: 0 0 0 rgba(255, 193, 35, 0.7);
        animation: pulseGlow 2s infinite;
    }

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 35, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 193, 35, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 35, 0);
    }
}

.academic-section .section-head {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.programme-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .programme-card .accent-bar {
        height: 6px;
        width: 100%;
        background: linear-gradient(90deg, var(--color-sun-yellow), var(--color-lotus-pink), var(--color-sun-yellow));
        background-size: 200% 100%;
        transition: all 0.5s ease;
    }

    .programme-card.card-ba .accent-bar {
        background: var(--color-sun-yellow);
    }

    .programme-card.card-bsc .accent-bar {
        background: var(--color-grass-green);
    }

    .programme-card.card-bcom .accent-bar {
        background: var(--color-mountain-teal);
    }

    .programme-card.card-bca .accent-bar {
        background: var(--color-lotus-pink);
    }

    .programme-card .card-icon-wrap {
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, #a958d6, var(--color-lotus-pink));
        color: #ffffff;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.25rem;
        box-shadow: 0 6px 15px rgba(214, 88, 122, 0.35);
        transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    }

    .programme-card.card-ba .card-icon-wrap {
        background-color: rgba(255, 193, 35, 0.12);
        color: var(--color-sun-yellow);
    }

    .programme-card.card-bsc .card-icon-wrap {
        background-color: rgba(63, 185, 30, 0.12);
        color: var(--color-grass-green);
    }

    .programme-card.card-bcom .card-icon-wrap {
        background-color: rgba(37, 124, 88, 0.12);
        color: var(--color-mountain-teal);
    }

    .programme-card.card-bca .card-icon-wrap {
        background-color: rgba(242, 122, 155, 0.12);
        color: var(--color-lotus-pink);
    }

    .programme-card .body,
    .programme-card .card-body {
        padding: 1.8rem 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .programme-card h3 {
        font-size: 1.85rem;
        font-weight: 800;
        color: var(--color-primary-blue-dark);
        margin-bottom: 0.2rem;
    }

    .programme-card .kicker {
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--color-primary-blue);
        letter-spacing: 1px;
    }

    .programme-card .subjects-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 1.25rem;
    }

        .programme-card .subject-tag,
        .programme-card .subjects-list .badge {
            font-size: 0.75rem;
            font-weight: 600;
            background: var(--cream) !important;
            color: var(--text-muted) !important;
            border: 1px solid var(--cream-dark) !important;
            padding: 4px 10px;
            border-radius: 6px;
            transition: background 0.3s ease, color 0.3s ease;
        }

    .programme-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
        background: #ffffff;
    }

        .programme-card:hover .accent-bar {
            background-position: 100% 0;
            height: 10px;
        }

        .programme-card:hover .card-icon-wrap {
            transform: rotate(-8deg) scale(1.1);
            background: linear-gradient(135deg, var(--color-lotus-pink), var(--color-lotus-pink-dark));
            color: var(--color-sun-yellow);
            box-shadow: 0 8px 20px rgba(214, 88, 122, 0.5);
        }

        .programme-card:hover .subject-tag {
            background: rgba(29, 82, 186, 0.12) !important;
            color: var(--color-primary-blue) !important;
        }

    .programme-card .card-footer-link {
        margin-top: auto;
        padding-top: 1.25rem;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--color-mountain-teal);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .programme-card .card-footer-link svg {
            transition: transform 0.3s ease;
        }

    .programme-card:hover .card-footer-link {
        color: var(--color-primary-blue-dark);
    }

        .programme-card:hover .card-footer-link svg {
            transform: translateX(5px);
        }

/* ---------- 7. Achievers Section ---------- */
.achievers-section {
    background-color: var(--cream-dark);
    position: relative;
}

.achiever-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.25rem 1.25rem 1.75rem;
    text-align: center;
    position: relative;
    border: 1px solid rgba(13, 27, 56, 0.08);
    box-shadow: 0 10px 30px -10px rgba(13, 27, 56, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 100%;
}

    .achiever-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--orange), #ffd700);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .achiever-card:hover {
        transform: translateY(-10px);
        border-color: rgba(224, 122, 31, 0.25);
        box-shadow: 0 20px 40px -15px rgba(13, 27, 56, 0.15), 0 0 20px rgba(224, 122, 31, 0.1);
    }

        .achiever-card:hover::before {
            opacity: 1;
        }

.achiever-img-wrapper {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #ffd700 0%, var(--orange) 100%);
    box-shadow: 0 8px 16px -4px rgba(224, 122, 31, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.achiever-card:hover .achiever-img-wrapper {
    transform: scale(1.08);
    box-shadow: 0 12px 24px -4px rgba(224, 122, 31, 0.45);
}

.achiever-img-wrapper img,
.achiever-card img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff;
    border: 3px solid #ffffff;
    display: block;
}

.badge-overlay {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #ffffff;
    color: var(--orange);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gold-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.6rem;
    background: #fdf1e4;
    color: var(--orange-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}

.achiever-card:hover .gold-badge {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(224, 122, 31, 0.3);
}

.achiever-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.achiever-name {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.achiever-card:hover .achiever-name {
    color: var(--orange-dark);
}

.achiever-dept {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.btn-achievers-link {
    color: var(--orange-dark);
    transition: transform 0.25s ease, color 0.25s ease;
}

    .btn-achievers-link:hover {
        color: var(--navy);
        transform: translateX(4px);
    }

/* ---------- 8. CTA Banner Section ---------- */
.cta-banner {
    background: var(--orange);
    border-radius: 10px;
    padding: 2.7rem 3rem;
    color: #fff;
}

    .cta-banner .btn-light {
        background-color: var(--cream);
        color: var(--color-primary-blue-dark);
        border: 1px solid var(--cream-dark);
        font-weight: 700;
    }

        .cta-banner .btn-light:hover {
            background-color: var(--color-primary-blue-dark);
            border-color: var(--color-primary-blue-dark);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(18, 55, 131, 0.35);
        }

/* ---------- Cards Hover Common Rule ---------- */
.card-avk,
.programme-card,
.feature-card,
.achiever-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-avk {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20, 40, 80, 0.08);
}

    .card-avk:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 36px rgba(20, 40, 80, 0.14);
    }

/* ============================================================
   Home Responsive Overrides (Laptop, Tab, Mobile, Small Mobile)
   ============================================================ */

/* 1. Large / Ultrawide Displays (>= 1440px) */
@media (min-width: 1440px) {
    .academic-section {
        background-size: cover;
        background-position: center center;
    }

    .hero-carousel .carousel-item {
        height: 680px;
        aspect-ratio: 21 / 9;
    }
}

/* 2. Standard Laptops (1024px - 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
    .academic-section {
        background-size: cover;
        background-position: center center;
    }

    .hero-carousel .carousel-item {
        height: 540px;
        aspect-ratio: 16 / 9;
    }
}

/* 3. Tablets & Smaller Laptops (<= 991.98px) */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        height: clamp(420px, 50vh, 500px);
        aspect-ratio: 4 / 3;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-copy p.lead {
        font-size: 0.95rem;
    }

    .stat-strip {
        margin-top: 1.5rem;
    }

    .academic-section {
        padding: 3.5rem 0;
        background-attachment: scroll; /* Fixes stuttering on touch/mobile browsers */
        background-position: center top;
        background-size: cover;
    }

        .academic-section .section-head {
            font-size: 1.85rem;
        }

    .cta-banner {
        text-align: center;
        padding: 2rem 1.5rem;
    }

        .cta-banner .cta-btn-wrap {
            margin-top: 1.2rem;
        }

    .experience-badge {
        right: 15px;
        top: 15px;
    }
}

/* 4. Large Mobiles / Tablets Vertical (<= 768px) */
@media (max-width: 768px) {
    .academic-section {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .hero-carousel .carousel-item {
        height: clamp(380px, 45vh, 440px);
        aspect-ratio: 1 / 1;
    }

    .hero-carousel .carousel-bg {
        background-position: center top;
    }

    .hero-copy h1 {
        font-size: 1.75rem;
    }

    .hero-glass-box {
        padding: 1.25rem !important;
    }

    .stat-strip .stat-number {
        font-size: 1.5rem;
    }

    .stat-strip .stat-label {
        font-size: 0.75rem;
    }

    .main-about-img {
        height: 320px;
    }

    .programme-card .body,
    .programme-card .card-body {
        padding: 1.5rem 1.25rem;
    }
}

/* 5. Standard Mobile Screens (<= 576px) */
@media (max-width: 576px) {
    .academic-section {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .hero-carousel .carousel-item {
        height: 380px;
        aspect-ratio: 9 / 16;
    }

    .hero-copy h1 {
        font-size: 1.45rem;
    }

    .hero-copy p.lead {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .main-about-img {
        height: 280px;
    }

    .tile-top {
        height: 120px;
    }

    .tile-bottom-left,
    .tile-bottom-right {
        height: 180px;
    }

    .event-item-card {
        flex-direction: row;
        padding: 0.75rem !important;
    }

    .event-date-box {
        width: 52px;
        padding: 6px 0;
    }

    .event-day {
        font-size: 1.1rem;
    }

    .event-title {
        font-size: 0.9rem;
    }

    .achiever-card {
        padding: 1.5rem 1rem;
    }

    .achiever-img-wrapper {
        width: 88px;
        height: 88px;
    }
}

/* 6. Ultra-Small Mobile Devices (<= 360px) */
@media (max-width: 360px) {
    .academic-section {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .hero-carousel .carousel-item {
        height: 340px;
    }

    .hero-copy h1 {
        font-size: 1.25rem;
    }

    .hero-copy .badge-pill {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .hero-carousel .carousel-caption-custom {
        padding-top: 15px;
    }
}