/* ========================================
   INFORMASI TERBARU & GALERI
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}


/* ========================================
   NAVBAR
======================================== */

.navbar {
    width: 100%;
    background: #173568;
    padding: 15px 0;
}

.navbar-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo-sekolah {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
}

.logo-sekolah img {
    width: 45px;
    height: 45px;

    object-fit: contain;
}

.logo-text h3 {
    color: white;
    font-size: 17px;
    margin: 0;
}

.logo-text span {
    color: #e5e7eb;
    font-size: 11px;
}


/* ========================================
   MENU NAVBAR
======================================== */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: white;
    text-decoration: none;

    font-size: 13px;

    transition: 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}


/* LOGIN */

.btn-login {
    background: #2466bd;

    padding: 10px 24px;

    border-radius: 20px;
}


/* ========================================
   HERO INFORMASI
======================================== */

.informasi-hero {
    background: linear-gradient(135deg, #1d4f83, #245b91);

    padding: 55px 20px 65px;

    text-align: center;

    color: white;
}

.informasi-hero h1 {
    font-size: 25px;
    font-weight: 700;

    margin-bottom: 10px;
}

.informasi-hero p {
    font-size: 11px;

    margin-bottom: 25px;

    color: #e5edf7;
}


/* ========================================
   SEARCH INFORMASI
======================================== */

.search-informasi {
    width: 450px;
    max-width: 90%;

    height: 42px;

    background: white;

    border-radius: 25px;

    margin: auto;

    display: flex;
    align-items: center;

    padding: 0 18px;
}

.search-informasi span {
    color: #999;

    font-size: 18px;

    margin-right: 8px;
}

.search-informasi input {
    width: 100%;

    border: none;

    outline: none;

    font-size: 11px;

    color: #333;

    font-family: 'Poppins', sans-serif;
}


/* ========================================
   SECTION INFORMASI
======================================== */

.informasi-section {
    background: #dce5f0;

    padding: 45px 10% 60px;

    min-height: 600px;
}


/* ========================================
   LABEL KATEGORI
======================================== */

.kategori-kegiatan {
    margin-top: 45px;
}

.kategori-kegiatan:first-child {
    margin-top: 0;
}

.kategori-label {
    display: inline-block;

    background: #2866bd;

    color: white;

    padding: 5px 14px;

    border-radius: 12px;

    font-size: 9px;

    font-weight: 600;

    margin-bottom: 20px;
}


/* ========================================
   GRID INFORMASI
======================================== */

.informasi-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    width: 100%;
    max-width: 1100px;

    position: relative;
}


/* ========================================
   LINK CARD
======================================== */

.info-card-link {
    display: block;

    text-decoration: none;

    color: inherit;

    cursor: pointer;

    width: 100%;
    height: 100%;

    position: relative;
}


/* ========================================
   CARD INFORMASI
======================================== */

.info-card {
    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s, box-shadow 0.3s;

    height: 100%;

    cursor: pointer;

    position: relative;
}


.info-card-link:hover .info-card {
    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* ========================================
   FOTO CARD
======================================== */

.info-card img {
    width: 100%;

    height: 210px;

    object-fit: cover;

    display: block;

    cursor: pointer;
}


/* ========================================
   ISI CARD
======================================== */

.info-card-content {
    padding: 13px;
}


/* BADGE */

.info-badge {
    display: inline-block;

    background: #2866bd;

    color: white;

    padding: 4px 11px;

    border-radius: 5px;

    font-size: 8px;

    font-weight: 600;

    margin-bottom: 8px;
}


/* JUDUL */

.info-card-content h3 {
    color: #1f2937;

    font-size: 14px;

    line-height: 1.3;

    font-weight: 700;

    margin: 0 0 18px;

    min-height: 55px;
}


/* TANGGAL */

.tanggal {
    font-size: 9px;

    color: #888;

    margin: 0;
}


/* ========================================
   BERITA GRID
======================================== */

.berita-grid {
    grid-template-columns: repeat(3, 1fr);
}


/* ========================================
   FOOTER
======================================== */

.footer {
    background: #193b75;

    padding: 25px;

    text-align: center;

    color: white;
}

.footer p {
    font-size: 10px;

    margin: 0;
}


/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 900px) {

    .navbar-container {
        width: 94%;
    }

    .nav-menu {
        gap: 15px;
    }

    .informasi-section {
        padding: 40px 7%;
    }

    .informasi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ========================================
   RESPONSIVE HP
======================================== */

@media (max-width: 600px) {

    .navbar-container {
        flex-direction: column;

        gap: 15px;
    }


    .nav-menu {
        flex-wrap: wrap;

        justify-content: center;

        gap: 12px;
    }


    .informasi-hero {
        padding: 45px 15px;
    }


    .informasi-hero h1 {
        font-size: 20px;
    }


    .informasi-section {
        padding: 35px 6%;
    }


    .informasi-grid {
        grid-template-columns: 1fr;
    }


    .berita-grid {
        grid-template-columns: 1fr;
    }


    .info-card img {
        height: 200px;
    }

}

/* ========================================
   DETAIL INFORMASI / PRESTASI
======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
}


/* ========================================
   HERO DETAIL
======================================== */

.detail-hero {
    background: #24558b;

    padding: 30px 20px;

    text-align: center;

    color: white;
}


.detail-hero-container {
    width: 100%;
    max-width: 700px;

    margin: auto;
}


/* BADGE PRESTASI */

.detail-badge {
    display: inline-block;

    background: white;

    color: #24558b;

    padding: 5px 14px;

    border-radius: 15px;

    font-size: 9px;

    font-weight: 700;

    margin-bottom: 15px;
}


/* JUDUL HERO */

.detail-hero h1 {
    font-size: 16px;

    font-weight: 500;

    line-height: 1.5;

    margin: 0;

    color: white;
}


/* ========================================
   DETAIL SECTION
======================================== */

.detail-section {
    background: #f5f5f5;

    padding: 40px 20px 60px;
}


/* CONTAINER */

.detail-container {
    width: 100%;

    max-width: 720px;

    margin: auto;
}



/* ========================================
   GAMBAR
======================================== */

.detail-image-wrapper {
    width: 100%;

    display: flex;

    justify-content: center;

    margin-bottom: 25px;
}


.detail-image {
    width: 100%;

    max-width: 500px;

    height: auto;

    display: block;

    border-radius: 4px;
}


/* ========================================
   ISI DETAIL
======================================== */

.detail-content {
    width: 100%;

    max-width: 650px;

    margin: auto;
}


.detail-content p {
    font-size: 12px;

    line-height: 1.8;

    color: #333;

    margin-bottom: 18px;

    text-align: left;
}


/* ========================================
   FOOTER
======================================== */

.footer {
    background: #193b75;

    padding: 25px;

    text-align: center;

    color: white;
}


.footer p {
    font-size: 10px;

    margin: 0;
}


/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 900px) {

    .detail-container {
        max-width: 650px;
    }

}


/* ========================================
   RESPONSIVE HP
======================================== */

@media (max-width: 600px) {

    .detail-hero {
        padding: 25px 15px;
    }


    .detail-hero h1 {
        font-size: 14px;
    }


    .detail-section {
        padding: 30px 15px 45px;
    }


    .detail-image {
        max-width: 100%;
    }


    .detail-content p {
        font-size: 11px;

        line-height: 1.7;
    }

}