/* 
   Sai University Static Site Styles
   Derived from Next.js CSS Modules for 100% fidelity.
*/

:root {
    --primary-blue: #004ea2;
    --background: #ffffff;
    --foreground: #171717;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--foreground);
    background: var(--background);
    font-family: "Roboto Flex", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar (Embedded in navbar.jsx) */
.nav-bar-custom {
    padding: 0px 40px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-logo img {
    height: 80px;
    object-fit: contain;
}

.nav-cta {
    background-color: var(--primary-blue);
    font-weight: 500;
    color: #fff !important;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-bar-custom { padding: 10px 16px; }
    .nav-logo img { height: 36px; }
    .nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/bgHero.webp');
    background-size: cover;
    background-position: center;
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}
.hero-heading {
    font-size: 3rem;
    width: 85%;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-lead {
    font-size: 1.15rem;
    width: 80%;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
}
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    background-color: var(--primary-blue);
    transform: translateY(50%);
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}
.stat-check {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 550px;
        padding-bottom: 60px;
    }
    .hero-heading {
        font-size: 2.8rem;
        width: 100%;
    }
    .hero-lead {
        font-size: 1.1rem;
        width: 100%;
    }
    .stat-item {
        font-size: 0.85rem;
        align-items: flex-start;
    }
    .stat-check {
        font-size: 1.4rem;
    }
    .stats-bar {
        left: 3%;
        right: 3%;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
        padding-top: 80px;
        padding-bottom: 120px;
        display: block; /* Stack naturally on mobile if needed */
    }
    .hero-heading {
        font-size: 2.4rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    .hero-lead {
        font-size: 1.05rem;
        width: 100%;
        margin-bottom: 2rem;
    }
    .stats-bar {
        left: 15px;
        right: 15px;
        bottom: 0;
        transform: translateY(50%);
        border-radius: 8px;
    }
    .stat-item {
        font-size: 0.8rem;
        align-items: flex-start;
    }
    .stat-check {
        font-size: 1.2rem;
    }
    .stat-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 15px;
        border-right: none !important;
    }
    .stat-col:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.3) !important;
    }
    .stat-col:nth-last-child(-n+2) {
        margin-bottom: 0px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 480px;
        padding-top: 60px;
        padding-bottom: 140px;
    }
    .hero-heading {
        font-size: 2rem;
    }
    .hero-lead {
        font-size: 0.95rem;
    }
    .stat-item {
        font-size: 0.7rem;
        gap: 5px;
        align-items: flex-start;
    }
    .stat-check {
        font-size: 1.1rem;
    }
}

/* Section 2 (About) */
.section2 {
    padding: 140px 0 100px 0;
    position: relative;
    background-color: #ffffff;
    overflow: visible;
    z-index: 2;
}

.container-s2 {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.row-s2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.col-image-s2 {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    padding-right: 40px;
}

.col-content-s2 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 20px;
}

.image-wrapper-s2 {
    position: relative;
    width: 100%;
    transition: transform 0.4s ease;
}

.image-wrapper-s2:hover { transform: translateY(-5px); }

.main-image-s2 {
    width: 100%;
    display: block;
    border-radius: 2px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.experience-badge-s2 {
    position: absolute;
    bottom: -40px;
    right: -20px;
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 35px 35px;
    min-width: 240px;
    z-index: 10;
    box-shadow: 0 20px 45px rgba(0, 78, 162, 0.25);
    transition: all 0.3s ease;
}

.experience-badge-s2 h3 { font-size: 3rem; font-weight: 500; margin: 0; line-height: 1; }
.experience-badge-s2 p { font-size: 1rem; margin: 8px 0 0 0; line-height: 1.2; font-weight: 100; opacity: 0.95; }

.heading-s2 { font-size: 45px; font-weight: 500; color: #000; margin-bottom: 35px; line-height: 1.1; letter-spacing: -0.02em; }
.description-s2 { font-size: 1.15rem; line-height: 1.7; color: #333; margin-bottom: 28px; font-weight: 400; }

@media (max-width: 991px) {
    .section2 { padding: 100px 0 60px 0; }
    .col-image-s2, .col-content-s2 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
    .col-content-s2 { margin-top: 80px; }
    .experience-badge-s2 { right: 0; bottom: -30px; min-width: 200px; padding: 25px; }
}

/* Section 3 (Rankings) - Exact copy from CSS Module */
.section3 {
    position: relative;
    width: 100%;
    min-height: 970px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
    background-image: url('images/S3Img1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-top: -340px;
    z-index: 1;
}

.section3 .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 2;
}

.section3 .overlay {
    background: linear-gradient(90deg, #004ea2 0%, #002244 100%);
    /* Blue gradient as it looks slightly dual-toned */
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.section3 .textSide {
    flex: 1;
}

.section3 .textSide h2 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    max-width: 300px;
}

.section3 .boxesSide {
    flex: 2;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.section3 .whiteBox {
    background-color: #ffffff;
    width: 240px;
    min-height: 120px;
    padding: 20px 22px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section3 .logoImage {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.section3 .whiteBox:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.section3 .whiteBox h3 {
    color: #004ea2;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.section3 .whiteBox p {
    color: #333333;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.section3 .whiteBox p strong {
    font-weight: 700;
    color: #004ea2;
}

@media (max-width: 1200px) {
    .section3 .whiteBox {
        width: 200px;
        min-height: 110px;
        padding: 16px 18px;
    }

    .section3 .whiteBox h3 {
        font-size: 0.9rem;
    }

    .section3 .whiteBox p {
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .section3 {
        min-height: 600px;
        padding-bottom: 30px;
        margin-top: -200px;
    }

    .section3 .overlay {
        flex-direction: column;
        align-items: center;
        padding: 40px 30px;
        text-align: center;
    }

    .section3 .textSide {
        width: 100%;
    }

    .section3 .textSide h2 {
        max-width: 100%;
        margin-bottom: 30px;
        font-size: 2.5rem;
    }

    .section3 .boxesSide {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 20px;
    }

    .section3 .whiteBox {
        width: calc(50% - 10px);
        min-width: 250px;
        min-height: 140px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .section3 {
        margin-top: -150px;
        min-height: 500px;
    }

    .section3 .textSide h2 {
        font-size: 2.2rem;
    }

    .section3 .whiteBox {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 575px) {
    .section3 {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 40px;
        margin-top: -100px;
    }

    .section3 .overlay {
        padding: 30px 20px;
        gap: 30px;
    }

    .section3 .textSide h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section3 .boxesSide {
        gap: 15px;
    }

    .section3 .whiteBox {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 24px 20px;
    }

    .section3 .logoImage {
        max-height: 60px;
        margin-bottom: 12px;
    }

    .section3 .whiteBox p {
        font-size: 0.85rem;
    }
}

/* Section 4 (Schools) */
.section4 {
    padding: 60px 0;
    background-color: #fff;
}

.container-s4 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-s4 {
    text-align: center;
    margin-bottom: 50px;
}

.header-s4 h2 {
    color: #000;
    font-family: "Roboto Flex";
    font-size: 45px;
    font-style: normal;
    font-weight: 500;
    line-height: 55px;
}

.header-s4 p {
    color: #595959;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 55px;
}

.content-wrapper-s4 {
    width: 100%;
    min-height: 500px;
}

.desktop-view-s4 {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mobile-view-s4 {
    display: none;
    width: 100%;
}

.schools-list-s4 {
    flex: 0 0 436px;
    width: 436px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.school-tab-s4 {
    width: 436px;
    height: 55px;
    padding: 0 30px;
    background-color: #e0e0e0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.school-tab-s4.active-s4 {
    background-color: #004ea2;
    color: #fff;
}

.school-details-s4 {
    width: 650px;
    height: 496px;
    background-color: #f1f2f4;
    padding: 40px 40px 30px 40px;
    position: relative;
    border: 1px solid #e0e0e0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #004ea2 transparent;
}

.school-details-s4::-webkit-scrollbar {
    width: 6px;
}

.school-details-s4::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.school-details-s4::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.school-details-s4::-webkit-scrollbar-thumb:hover {
    background: #004ea2;
}

.details-header-s4 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
}

.school-info-s4 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container-s4 {
    background-color: #fff;
    padding: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.school-logo-s4 {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.school-name-s4 {
    font-size: 28px;
    font-weight: 600;
    color: #000;
}

.programs-badge-s4 {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #004ea2;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
}

.programs-list-s4 {
    display: flex;
    flex-direction: column;
}

.program-item-s4 {
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #999;
}

.program-item-s4:last-child {
    border-bottom: 1px solid #999;
    margin-bottom: 0px;
}

.program-name-s4 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.program-info-s4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duration-s4 {
    font-size: 16px;
    color: #004ea2;
    font-weight: 500;
}

.apply-link-s4 {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.2s;
}

.apply-link-s4:hover {
    transform: translateX(5px);
}

.arrow-icon-s4 {
    font-size: 18px;
    color: #004ea2;
    font-weight: 600;
}

@media (max-width: 992px) {
    .desktop-view-s4 {
        display: none;
    }

    .mobile-view-s4 {
        display: block;
    }

    .accordion-container-s4 {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .accordion-item-s4 {
        width: 100%;
    }

    .accordion-header-s4 {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .accordion-icon-s4 {
        font-size: 20px;
        font-weight: 300;
        line-height: 1;
    }

    .accordion-content-s4 {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease-in-out;
    }

    .accordion-content-inner-s4 {
        overflow: hidden;
    }

    .accordion-content-s4.active-content-s4 {
        grid-template-rows: 1fr;
    }

    .school-details-mobile-s4 {
        background-color: #f1f2f4;
        padding: 40px;
        border: 1px solid #e0e0e0;
        border-top: none;
        width: 100%;
    }

    .school-tab-s4 {
        width: 100%;
        height: auto;
        padding: 18px 20px;
        font-size: 16px;
    }

    .details-header-s4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .programs-badge-s4 {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }

    .school-name-s4 {
        font-size: 26px;
    }
}

@media (max-width: 575px) {
    .section4 {
        padding: 50px 0;
    }

    .container-s4 {
        padding: 0 12px;
    }

    .header-s4 h2 {
        font-size: 28px;
    }

    .header-s4 p {
        font-size: 14px;
    }

    .header-s4 {
        margin-bottom: 30px;
    }

    .schools-list-s4 {
        flex-direction: column;
        gap: 6px;
    }

    .school-tab-s4 {
        padding: 12px 14px;
        font-size: 13px;
    }

    .school-details-s4,
    .school-details-mobile-s4 {
        padding: 20px 15px;
    }

    .school-logo-s4 {
        width: 80px;
    }

    .school-name-s4 {
        font-size: 18px;
    }

    .school-info-s4 {
        gap: 12px;
    }

    .programs-badge-s4 {
        padding: 8px 14px;
        font-size: 13px;
    }

    .program-name-s4 {
        font-size: 15px;
    }

    .program-info-s4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .duration-s4 {
        font-size: 13px;
    }

    .apply-link-s4 {
        font-size: 13px;
    }
}

/* Section 5 (Carousel) */
.section5 {
    min-height: 100vh;
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.container-s5 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    z-index: 1;
    position: relative;
}

.header-s5 {
    margin-bottom: 60px;
    padding: 0 20px;
}

.header-s5 h2 {
    color: #000;
    font-family: "Roboto Flex";
    font-size: 45px;
    font-style: normal;
    font-weight: 500;
    line-height: 55px;
}

.header-s5 p {
    font-size: 18px;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.8;
}

/* Carousel Styles */
.carousel-wrapper-s5 {
    position: relative;
    width: 100%;
    margin: 20px 0;
    overflow: visible;
    padding: 20px 0;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    --card-width: 237px;
}

.carousel-content-s5 {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    align-items: center;
    width: 100%;
    transform: translateX(calc(50% - (var(--active-index) * var(--card-width)) - (var(--card-width) / 2)));
}

.carousel-card-s5 {
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    padding: 0 10px;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
}

.image-inner-s5 {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Outer cards (Smallest / Indices +/- 2) */
.outerCard .image-inner-s5 {
    height: 220px;
    opacity: 0.5;
    transform: scale(0.8);
    filter: brightness(0.9);
}

/* Far cards (Hidden / Indices > 2) */
.farCard .image-inner-s5 {
    height: 180px;
    opacity: 0;
    transform: scale(0.6);
    filter: brightness(0.8);
    pointer-events: none;
}

/* Side cards (Medium / Indices +/- 1) */
.sideCard .image-inner-s5 {
    height: 260px;
    opacity: 0.8;
    transform: scale(0.9);
    filter: brightness(0.95);
}

/* Active center card (Largest / Index 0) */
.activeCard .image-inner-s5 {
    height: 309px;
    opacity: 1;
    transform: scale(1);
}

.card-image-s5 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.activeCard:hover .card-image-s5 {
    transform: scale(1.1);
}

/* Text Content Area */
.text-content-area-s5 {
    margin: 30px auto 20px;
    width: 100%;
    text-align: center;
    transition: all 0.5s ease;
}

.text-content-area-s5 h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.text-content-area-s5 p {
    font-size: 16px;
    color: #444;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Dots Styling */
.dots-s5 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.dot-s5 {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d1d1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-s5:hover {
    background-color: #b1b1b1;
}

.dot-s5.active {
    width: 35px;
    height: 8px;
    border-radius: 4px;
    background-color: #ffc107;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .carousel-wrapper-s5 {
        --card-width: 250px;
    }
}

@media (max-width: 992px) {
    .carousel-wrapper-s5 {
        --card-width: 220px;
    }
}

@media (max-width: 768px) {
    .section5 {
        min-height: auto;
        padding: 60px 0;
    }

    .container-s5 {
        padding: 0 20px;
    }

    .carousel-wrapper-s5 {
        height: 350px;
        --card-width: 280px;
    }

    .activeCard .image-inner-s5 {
        height: 300px;
    }

    .sideCard .image-inner-s5 {
        height: 240px;
        opacity: 0.6;
        transform: scale(0.85);
    }

    .outerCard .image-inner-s5 {
        height: 180px;
        opacity: 0.2;
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .header-s5 h2 {
        font-size: 32px;
    }

    .carousel-wrapper-s5 {
        height: 300px;
        --card-width: 240px;
    }

    .activeCard .image-inner-s5 {
        height: 260px;
    }

    .sideCard .image-inner-s5 {
        height: 200px;
    }

    .text-content-area-s5 {
        margin-top: 20px;
        min-height: 60px;
    }

    .text-content-area-s5 h3 {
        font-size: 20px;
    }
}

/* Section 6 (Student Life & Recruiters) */
.section6 {
    padding: 80px 0;
    background-color: #fff;
}

.container-s6 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blue-box-s6 {
    background-color: var(--primary-blue);
    border-radius: 0;
    padding: 60px;
    display: flex;
    gap: 40px;
    align-items: center;
    color: #fff;
    position: relative;
}

.text-content-s6 {
    flex: 1;
}

.top-title-s6 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #fff;
}

.main-title-s6 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.description-s6 {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
    opacity: 0.9;
}

.stats-row-s6 {
    display: flex;
    margin-top: 50px;
    gap: 40px;
}

.stat-item-s6 {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
}

.stat-item-s6:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-value-s6 {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label-s6 {
    font-size: 0.875rem;
    opacity: 0.8;
}

.image-wrapper-s6 {
    flex: 0 0 400px;
    position: relative;
}

.image-with-border-s6 {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.marquee-section-s6 {
    margin-top: 80px;
    text-align: center;
}

.marquee-title-s6 {
    font-size: 1.25rem;
    margin-top: 20px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 40px;
}

.marquee-container-s6 {
    overflow: hidden;
    margin-bottom: 0;
}

.marquee-row-s6 {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    white-space: nowrap;
    width: max-content;
    animation: marquee-s6 200s linear infinite;
}

@keyframes marquee-s6 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-row-reverse-s6 {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    white-space: nowrap;
    width: max-content;
    animation: marqueeReverse-s6 200s linear infinite;
}

@keyframes marqueeReverse-s6 {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.logo-item-s6 {
    flex: 0 0 200px;
    height: 100px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.logo-image-s6 {
    max-width: 95%;
    max-height: 95%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder-s6 {
    width: 80%;
    height: 60%;
    background: #f5f5f5;
}

/* Animations if needed for marquee, though user says they'll handle it */
/* But let's add a basic one so it's not and-hoc */

@media (max-width: 991px) {
    .blue-box-s6 {
        flex-direction: column;
        padding: 40px 30px;
    }

    .image-wrapper-s6 {
        flex: 0 0 auto;
        width: 100%;
    }

    .main-title-s6 {
        font-size: 2.4rem;
    }

    .marquee-section-s6 {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .section6 {
        padding: 50px 0;
    }

    .blue-box-s6 {
        padding: 30px 20px;
        gap: 25px;
    }

    .top-title-s6 {
        font-size: 1rem;
    }

    .main-title-s6 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .description-s6 {
        font-size: 0.9rem;
    }

    .stats-row-s6 {
        margin-top: 30px;
        gap: 25px;
    }

    .stat-value-s6 {
        font-size: 2rem;
    }

    .image-wrapper-s6 img {
        width: 100%;
        height: auto;
    }

    .logo-item-s6 {
        flex: 0 0 150px;
        height: 80px;
    }

    .marquee-title-s6 {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .section6 {
        padding: 40px 0;
    }

    .container-s6 {
        padding: 0 12px;
    }

    .blue-box-s6 {
        padding: 24px 16px;
        gap: 20px;
    }

    .top-title-s6 {
        font-size: 0.9rem;
    }

    .main-title-s6 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .description-s6 {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .stats-row-s6 {
        flex-direction: column;
        gap: 16px;
        margin-top: 25px;
    }

    .stat-item-s6 {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 0;
        padding-bottom: 10px;
    }

    .stat-value-s6 {
        font-size: 1.8rem;
    }

    .stat-label-s6 {
        font-size: 0.8rem;
    }

    .logo-item-s6 {
        flex: 0 0 120px;
        height: 60px;
    }

    .marquee-title-s6 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .marquee-section-s6 {
        margin-top: 40px;
    }
}

/* Section 7 (Innovation) */
.section7 {
    background-color: var(--primary-blue);
    padding: 80px 0;
    color: #fff;
}

.section7 .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section7 .topContent {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.section7 .imageWrapper {
    flex: 0 0 48%;
}

.section7 .image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.section7 .textContent {
    flex: 1;
}

.section7 .subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
    opacity: 0.95;
    letter-spacing: 0.05em;

}

.section7 .title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
    word-wrap: nowrap;
}

.section7 .description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 600px;
}

.section7 .statsHeading {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #fff;
}

.section7 .statsGrid {
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.section7 .statCard {
    background-color: #fff;
    padding: 25px 20px;
    color: #333;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.section7 .statNumber {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1;
}

.section7 .statLabel {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-blue);
    line-height: 1.3;
}

@media (max-width: 1200px) {
    .section7 .title {
        font-size: 2.8rem;
    }

    .section7 .topContent {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .section7 .topContent {
        flex-direction: column;
        gap: 40px;
    }

    .section7 .imageWrapper {
        width: 100%;
    }

    .section7 .statsGrid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .section7 {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .section7 .container {
        padding: 0 24px;
    }

    .section7 .title {
        font-size: 2.2rem;
    }

    .section7 .subtitle {
        font-size: 0.95rem;
    }

    .section7 .description {
        font-size: 0.9rem;
    }

    .section7 .statCard {
        padding: 20px 16px;
        min-height: 110px;
    }

    .section7 .statNumber {
        font-size: 2rem;
    }

    .section7 .statLabel {
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    .section7 {
        padding: 40px 0;
    }

    .section7 .statsGrid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section7 .title {
        font-size: 1.65rem;
        margin-bottom: 20px;
        word-wrap: nowrap;
    }

    .section7 .subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .section7 .container {
        padding: 0 15px;
    }

    .section7 .statNumber {
        font-size: 1.8rem;
    }

    .section7 .statCard {
        padding: 18px 14px;
        min-height: 90px;
    }

    .section7 .statLabel {
        font-size: 0.75rem;
    }

    .section7 .description {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .section7 .topContent {
        gap: 25px;
        margin-bottom: 35px;
    }
}


/* Section 8 (Discover Life) - Exact copy from CSS Module */
.section8 {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Student Speaks Slider */
.section8 .speaksSection {
    margin-bottom: 80px;
    width: 100%;
}

.section8 .speaksTitle {
    font-size: 42px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.section8 .sliderWrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 -10px;
    /* Slight overflow to allow cards to reach edges on mobile if needed */
    padding: 0 10px;
}

.section8 .slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 30px;
    /* Extra bottom padding for shadows */
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    width: 100%;
}

.section8 .slider::-webkit-scrollbar {
    display: none;
}

.section8 .speaksCard {
    flex: 0 0 calc(25% - 18px);
    /* 4 cards per row on large screens */
    min-width: 280px;
    aspect-ratio: 9 / 16;
    background-color: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section8 .speaksCard:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.section8 .speaksCard iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.section8 .sliderBtn {
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.section8 .sliderBtn:hover {
    background: #004ea2;
    border-color: #004ea2;
    color: #ffffff;
    transform: scale(1.1);
}

.section8 .sliderBtn svg {
    width: 28px;
    height: 28px;
}

.section8 .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section8 .header {
    text-align: center;
    margin-bottom: 50px;
}

.section8 .title {
    font-size: 42px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.section8 .subtitle {
    font-size: 16px;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.section8 .videoGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
    /* Increased for better separation */
}

.section8 .videoCard {
    background-color: #e5e7eb;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section8 .videoCard iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.section8 .videoCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section8 .ytIcon {
    width: 60px;
    height: 42px;
    color: #ff0000;
}

/* Banner Styles */
.section8 .banner {
    background: linear-gradient(135deg, #004ea2 0%, #000c1e 100%);
    padding: 60px 80px;
    position: relative;
    /* Removed overflow: hidden to allow student image to pop out */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 380px;
    margin-top: 100px;
    /* Increased margin to account for overflowing image */
}

.section8 .bannerContent {
    flex: 1;
    z-index: 2;
}

.section8 .bannerTitle {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    white-space: nowrap;
}

.section8 .bannerSubtitle {
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.5;
    opacity: 0.9;
}

.section8 .ctaButton {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.section8 .ctaButton:hover {
    background-color: #f3f4f6;
}

.section8 .bannerImageWrapper {
    position: relative;
    width: 45%;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.section8 .bannerImage {
    height: 520px;
    position: absolute;
    bottom: -60px;
    right: -20px;
    z-index: 2;
    pointer-events: none;
}

.section8 .graphicOverlay {
    position: absolute;
    right: 25%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    z-index: 1;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .section8 .bannerTitle {
        font-size: 36px;
    }

    .section8 .bannerImageWrapper {
        width: 40%;
    }

    .section8 .graphicOverlay {
        width: 280px;
        height: 280px;
    }

    .section8 .bannerImage {
        height: 420px;
    }

    .section8 .speaksTitle,
    .section8 .title {
        font-size: 34px;
    }

    .section8 .speaksCard {
        flex: 0 0 calc(33.33% - 16px);
        min-width: 240px;
    }
}

@media (max-width: 992px) {
    .section8 .videoGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section8 .banner {
        padding: 40px;
        min-height: 300px;
    }

    .section8 .bannerTitle {
        font-size: 30px;
    }

    .section8 .bannerSubtitle {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .section8 {
        padding: 50px 0;
    }

    .section8 .title {
        font-size: 28px;
    }

    .section8 .subtitle {
        font-size: 14px;
    }

    .section8 .header {
        margin-bottom: 30px;
    }

    .section8 .videoGrid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        margin-bottom: 50px;
        padding-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }

    .section8 .videoGrid::-webkit-scrollbar {
        display: none;
    }

    .section8 .videoCard {
        flex: 0 0 85%;
        min-width: 280px;
        scroll-snap-align: center;
    }

    .section8 .banner {
        flex-direction: column;
        padding: 40px 24px 0;
        text-align: center;
        margin-top: 60px;
        border-radius: 12px;
        overflow: hidden;
    }

    .section8 .bannerContent {
        margin-bottom: 20px;
    }

    .section8 .bannerTitle {
        font-size: 26px;
        white-space: normal;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .section8 .bannerSubtitle {
        margin: 0 auto 20px;
        font-size: 14px;
        line-height: 1.5;
        max-width: 90%;
    }

    .section8 .bannerImageWrapper {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: flex-end;
        position: relative;
        margin-top: 20px;
    }

    .section8 .bannerImage {
        position: relative;
        height: 280px;
        right: auto;
        bottom: -5px;
    }

    .section8 .graphicOverlay {
        width: 240px;
        height: 240px;
        right: 50%;
        top: 50%;
        transform: translate(50%, -50%);
    }

    .section8 .ctaButton {
        font-size: 14px;
        padding: 12px 24px;
    }

    .section8 .speaksTitle,
    .section8 .title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .section8 .speaksCard {
        flex: 0 0 calc(70% - 12px);
        /* Adjusted for better peek on mobile */
        min-width: 260px;
        border-radius: 15px;
    }

    .section8 .sliderBtn {
        width: 44px;
        height: 44px;
    }

    .section8 .slider {
        gap: 16px;
        padding-bottom: 20px;
    }

    .section8 .speaksSection {
        margin-bottom: 60px;
    }
}

@media (max-width: 575px) {
    .section8 {
        padding: 40px 0;
    }

    .section8 .container {
        padding: 0 12px;
    }

    .section8 .title {
        font-size: 22px;
    }

    .section8 .subtitle {
        font-size: 14px;
        line-height: 1.5;
        padding: 0 10px;
    }

    .section8 .videoGrid {
        margin-bottom: 50px;
        gap: 15px;
    }

    .section8 .ytIcon {
        width: 40px;
        height: 28px;
    }

    .section8 .banner {
        padding: 40px 20px 0;
        margin-top: 50px;
        border-radius: 12px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .section8 .bannerTitle {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .section8 .bannerSubtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .section8 .ctaButton {
        font-size: 14px;
        padding: 12px 24px;
    }

    .section8 .speaksTitle,
    .section8 .title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .section8 .speaksCard {
        flex: 0 0 85%;
        min-width: unset;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .section8 .sliderBtn {
        display: none;
    }

    .section8 .sliderWrapper {
        margin: 0 -12px;
        padding: 0 12px;
    }
}

/* Faq Section */
.faq-section {
    padding: 100px 8%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
}

.left-column-faq {
    width: 38%;
}

.faq-title {
    font-size: 45px;
    font-weight: 500;
    line-height: 1;
    color: #000000;
    margin: 0;
}

.right-column-faq {
    width: 58%;
}

.faq-item {
    border-top: 1px solid #e0e0e0;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.faq-header.active {
    background-color: #004ea2;
    color: #ffffff;
    margin-top: -1px;
}

.question-faq {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    padding-right: 20px;
}

.arrow-faq {
    font-size: 1.8rem;
    font-weight: 400;
    display: block;
    line-height: 1;
    color: #1a1a1a;
}

.faq-header.active .arrow-faq {
    color: #ffcc00;
}

.faq-answer {
    padding: 10px 25px 35px 25px;
    background-color: #fff;
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
    max-width: 90%;
}

/* Footer */
/* Footer Section */
.footer-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 45px 70px 15px 70px;
}
.footer-heading {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.footer-desc {
    font-size: 14px;
    opacity: 0.9;
    max-width: 600px;
    font-weight: 500;
    color: #FFFFFF;
}
.footer-cta {
    background: #fff;
    color: #333;
    padding: 12px 20px;
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.footer-contact-text {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}
.footer-contact-bold {
    font-size: 1.1rem;
}
.footer-copyright {
    color: #FFF;
    text-align: center;
    font-size: 12.401px;
    font-style: normal;
    font-weight: 500;
    line-height: 26.574px;
    text-transform: capitalize;
}
.contact-link {
    transition: opacity 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 1;
}
.contact-link:hover {
    opacity: 0.7;
}
.contact-link:active {
    opacity: 0.5;
}
.footer-tooltip {
    display: none;
    position: absolute;
    top: -30px;
    left: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 16px 0;
    }
    .footer-heading {
        font-size: 1.8rem;
    }
    .footer-desc {
        font-size: 0.95rem;
    }
    .footer-cta {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    .footer-contact-text {
        font-size: 0.85rem;
    }
    .footer-contact-bold {
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .footer-section {
        padding: 30px 0 14px 0;
    }
    .footer-heading {
        font-size: 1.4rem;
    }
    .footer-desc {
        font-size: 0.85rem;
    }
    .footer-cta {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    .footer-contact-text {
        font-size: 0.8rem;
    }
    .footer-contact-bold {
        font-size: 0.85rem;
    }
    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* REsponsive Media Queries */
@media (max-width: 1024px) {

}

@media (max-width: 991px) {
    .section4, .section5, .section6, .section7, .faq-section { padding: 60px 0; }
    .blue-box-s6, .faq-section { flex-direction: column; }
    .left-column-faq { width: 100%; text-align: center; }
    .right-column-faq { width: 100%; }
    .faq-title { margin-bottom: 30px; text-align: center; }
    .image-wrapper-s6 { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 575px) {
    .header-s4 h2, .header-s5 h2, .faq-title { font-size: 28px; text-align: center; }
    .faq-section { padding: 35px 12px; }
}
