/* main content */
.slider-images #topper2023 {
    width: 100%;
    height: clamp(300px, 50vw, 650px);
    object-fit: cover;
}

/* hero-section */
.hero-section {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-section .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 3vw, 30px);
    flex: 1;
    min-height: auto;
}

.hero-content #est2006 {
    font-size: 15px;
    width: fit-content;
    border-radius: 12px;
    padding: 5px 16px;
    background-color: #DFE9FA;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 50px);
    color: #000615;
    line-height: 1.1;
}

.hero-content h1+p {
    font-size: clamp(20px, 3vw, 28px);
    color: #B71502;
    font-style: italic;
}

.hero-content .hero-description {
    font-size: 18px;
    max-width: 510px;
    color: #44474D;
    line-height: 29px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-buttons a {
    padding: 16px 32px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.hero-buttons .admission-link {
    background-color: #dc331c;
    color: white;
    border-radius: 4px;
}

.hero-buttons .course-link {
    background-color: transparent;
    color: #000000;
    border: 2.5px solid #000000;
    border-radius: 4px;
}

.hero-section .hero-img-container {
    flex: 1;
    border-radius: 8px;
    background-color: #00061512;
    padding: clamp(10px, 2vw, 20px);
    width: 100%;
    max-width: 600px;
    height: clamp(250px, 40vw, 410px);
}


/* About Section*/
.about-section {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #0B1F3A;
}

.card-contents {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.card {
    width: 100%;
    height: auto;
    min-height: 120px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 30px 20px;
    gap: 10px;
    text-align: center;
}

.card p:first-child {
    font-size: clamp(26px, 4vw, 30px);
    font-weight: bold;
}

.red-font {
    color: #B71502;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 3vw, 30px);
    color: white;
}

.about-text h2 {
    font-size: clamp(28px, 4vw, 32px);
}

.horizontal-line {
    width: 80px;
    height: 4px;
    background-color: #B71502;
}

.about-text p {
    font-size: 18px;
    line-height: 30px;
    max-width: 580px;
}

/* Principal's Message */
.principal-section {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    background-color: rgb(245, 244, 244);
}

.content-container {
    padding: clamp(20px, 5vw, 40px);
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
    background-color: #ffffff;
    border-radius: 8px;
}

#principal-img {
    flex: 1;
    width: 100%;
    min-height: 350px;
    height: clamp(350px, 45vw, 600px);
    background-image: url('../../pics/gallery/principal.webp');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

#principal-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
}

#principal-message h2 {
    font-size: clamp(28px, 4vw, 32px);
}

#principal-message p {
    font-size: 18px;
    line-height: 30px;
    max-width: 550px;
}

/* Choose us section */
.choose-us-section {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    background-color: #F8F9FF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.header-container h2 {
    font-size: clamp(28px, 4vw, 32px);
}

.header-container P {
    font-size: 18px;
    color: #44474D;
    max-width: 700px;
}

.choose-us-section .choose-us-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    row-gap: 45px;
    width: 100%;
    max-width: 1200px;
}

.choose-us-cards .cards {
    display: flex;
    flex-direction: row; /* Desktop specific: Text Left, Img Right */
    padding-left: 30px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.cards .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 20px 30px 0;
    gap: 20px;
    flex: 1.5;
}

.feature-icon {
    width: 40px;
    height: 40px;
}

.content h3 {
    font-size: 24px;
}

.content p {
    font-size: 16px;
    color: #44474D;
    line-height: 25px;
    max-width: 600px;
}

.cards .img {
    height: 100%;
    min-height: 265px;
    background-size: cover;
    background-position: center;
    flex: 1;
}

.cards .scienceLab { background-image: url('../../pics/gallery/labScience.webp'); }
.cards .computerLab { background-image: url('../../pics/gallery/labComputer.webp'); }
.cards .educationTour { background-image: url('../../pics/gallery/fieldTrip1.webp'); }
.cards .classRoom { background-image: url('../../pics/gallery/classroom1.webp'); }


/* ==============================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
============================================================== */

@media (max-width: 1023px) {
    /* Stack generic sections vertically */
    .hero-section,
    .about-section,
    .principal-section .content-container {
        flex-direction: column;
    }

    /* Reverse order to put texts/titles logically for mobile reading */
    .about-section {
        flex-direction: column-reverse;
    }

    /* Choose Us - Image positioned on top logic per Figma Screen */
    .choose-us-section .choose-us-cards {
        grid-template-columns: 1fr; /* Switch to single column */
    }

    .choose-us-cards .cards {
        flex-direction: column-reverse; /* Flips flex to place Image (.img) visually above Content */
        padding-left: 0; /* Reset desktop-only padding offset */
    }

    .cards .img {
        min-height: 220px;
        height: 220px;
        width: 100%;
    }

    /* Reconstructing Icon/Title horizontally directly utilizing Grid */
    .cards .content {
        padding: 25px 20px;
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 15px;
        row-gap: 15px;
        align-items: center;
    }

    .cards .content .feature-icon {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }

    .cards .content h3 {
        grid-column: 2;
        grid-row: 1;
        font-size: 22px;
    }

    .cards .content p {
        grid-column: 1 / -1; /* Spans across entire card width */
        grid-row: 2;
        margin-top: 5px;
    }

    .hero-section .hero-img-container {
        display: none;
    }
}

/* MOBILE ONLY TWEAKS */
@media (max-width: 767px) {
    .card-contents {
        grid-template-columns: 1fr; /* Make stat boxes single column */
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%; /* Full stretch CTA buttons natively via Flexbox rules */
    }
}

/* PC TWEAKS */
@media (min-width: 1024px) {
    .hero-section .hero-img-container .hero-img {
        background-image: url('../../pics/gallery/schoolPicture.webp');
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        height: 100%;
        width: 100%;
    }
}