/* ======================================
   GLOBAL
====================================== */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* NONAKTIFIN SCROLL DI LOGOSEC */
.coverDiv .mainHeader .logoSec {
    overflow: hidden;
    flex-wrap: nowrap;
}

/* OPTIONAL: biar gak kegeser */
.coverDiv .mainHeader {
    overflow-x: hidden;
}

.coverDiv .mainHeader {
    display: flex;
}

.coverDiv .mainHeader .logoSec {
    flex: 1;
    display: flex;
    justify-content: center;
}

.coverDiv .mainHeader .navItems {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ======================================
   HEADER DEFAULT (DESKTOP BESAR)
====================================== */

.coverDiv .mainHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    background-color: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
}

.coverDiv .mainHeader .logoSec {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coverDiv .mainHeader .logoSec span {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
}

.coverDiv .mainHeader .logoSec .schoolLogo {
    height: 90px;
    width: 90px;
    object-fit: contain;
}

.coverDiv .mainHeader .navItems {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ======================================
   HERO SECTION
====================================== */

.heroSlider .mainSec h1 {
    font-size: 80px;
}

.heroSlider .mainSec p {
    font-size: 2.2vw;
    max-width: 800px;
}

/* ======================================
   SEKOLAH GRID (DEFAULT DESKTOP)
====================================== */

.divThree .firstSec {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.divThree .firstSec a.cardLink {
    flex: 0 0 30%;
    max-width: 30%;
}

.divThree .firstSec .imgSec img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   position: absolute;
   top: 0;
   left: 0;
}

/* ======================================
   NEWS GRID DEFAULT
====================================== */

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.news-card {
    width: 350px;
    max-width: 100%;
}

/* ======================================
   ======= LARGE TABLET (<=1200px)
====================================== */

@media (max-width: 1200px) {

    .heroSlider .mainSec h1 {
    font-size: 6vw;
    }
}

/* ======================================
   ======= TABLET (<=992px)
====================================== */

@media (max-width: 992px) {

    .coverDiv .mainHeader {
        padding: 15px 30px;
    }

    .coverDiv .mainHeader .logoSec .schoolLogo {
        height: 85px;
        width: 85px;
    }

    .heroSlider .mainSec h1 {
    font-size: 6vw;
    }


    .heroSlider .mainSec p {
font-size: 2.2vw;    }

}

/* ======================================
   ======= MOBILE (<=768px)
====================================== */

@media (max-width: 768px) {

    .coverDiv .mainHeader {
        padding: 12px 20px;
    }

    .coverDiv .mainHeader .logoSec span {
        font-size: 1rem;
    }

    .coverDiv .mainHeader .logoSec .schoolLogo {
        height: 100px;
        width: 100px;
    }

    .heroSlider .mainSec h1 {
        font-size: 6vw;
    }

    .heroSlider .mainSec p {
font-size: 2.2vw;
padding: 0 15px;
    }

    .divThree .firstSec a.cardLink {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .news-card {
        width: 100%;
    }

}

/* ======================================
   ======= SMALL MOBILE (<=480px)
====================================== */

@media (max-width: 480px) {

    .heroSlider .mainSec h1 {
    font-size: 6vw;
    }


    .heroSlider .mainSec p {
        font-size: 0.9rem;
    }

    .coverDiv .mainHeader .logoSec {
        gap: 8px;
    }

    .coverDiv .mainHeader .logoSec .schoolLogo {
        height: 100px;
        width: 100px;
    }

    .coverDiv .mainHeader .logoSec span {
        font-size: 0.9rem;
    }

}

/* ======================================
   ======= EXTRA SMALL (<=360px)
====================================== */

@media (max-width: 360px) {

    .heroSlider .mainSec h1 {
        font-size: 6vw;
    }


    .coverDiv .mainHeader .logoSec .schoolLogo {
        height: 100px;
        width: 100px;
    }

}
/* ===== JURUSAN SCROLL MOBILE ===== */
.cards-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 20px;
    scroll-snap-type: x mandatory;
}

.cards-grid::-webkit-scrollbar {
    display: none;
}

.cards-grid .info-card {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
    grid-column: unset !important;
}