@import url('https://fonts.googleapis.com/css2?family=Coral+Pixels&family=Geom:ital,wght@0,300..900;1,300..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Jost:ital,wght@0,100..900;1,100..900&family=Libertinus+Mono&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Overpass:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Saira:ital,wght@0,100..900;1,100..900&family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

html,
body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

main {
    background: linear-gradient(135deg, #dfe4eb 0%, #e1eaf4 100%);
    min-height: 100dvh;
}

.top-content {
    position: relative;
}

.top-content img {
    width: 100%;
    display: block;
    filter: brightness(0.3);
}


.top-content .main-title {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    width: 100%;
    text-align: center;
    font-size: clamp(25px, 6vw, 70px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    animation: slideIn 3s ease forwards;
    animation-delay: 0.3s;

}

.main-title p {
    font-size: clamp(10px, 3vw, 30px);

}

.main-title h3 {
    font-size: clamp(10px, 6vw, 60px);

}

@keyframes slideIn {
    0% {
        transform: translate(-80%, -50%);
        /* lebih kiri */
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%);
        /* posisi normal */
        opacity: 1;
    }
}

@media (max-width : 899px) {
    .main-title {
        font-size: 15px;
    }
}

/* ===== Cards Section ===== */
.info-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 20px 80px;
    font-family: "Lexend", sans-serif;
    flex-wrap: wrap;
}

.info-cards .card {
    flex: 1;
    min-width: 70px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 40, 120, 0.08);
    padding: 30px 25px;
    text-align: center;
    color: #1f2a44;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.info-cards .card i {
    font-size: clamp(20px, 3vw, 30px);
    color: #0d47a1;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.info-cards .card h3 {
    font-size: clamp(10px, 4vw, 20px);
    margin-bottom: 10px;
    font-weight: 600;
}

.info-cards .card p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

/* efek hover */
.info-cards .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(13, 71, 161, 0.1), rgba(42, 99, 176, 0.1));
    transition: all 0.4s ease;
}

.info-cards .card:hover::before {
    left: 0;
}

.info-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 50, 150, 0.15);
}

.info-cards .card:hover i {
    color: #2b6cb0;
}

.content {
    display: flex;
    gap: 10px;
    background-color: #a2b7d6;
    align-items: flex-start;
}

.content .news {
    width: 70%;
}

.berita-terkini h2 {
    color: #033177;
    margin-bottom: 30px;
    text-align: left;
}

.berita-terkini {
    padding: 30px;
}

.grid-berita {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 25px;
}

/* ================= CARD (SHARED) ================= */
.berita-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.berita-card a {
    text-decoration: none;
}

.berita-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

/* ================= IMAGE ================= */
.berita-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.berita-card h4 {
    padding: 15px 15px 5px;
    font-size: 1.1rem;
    color: #000000;
}

.berita-card small {
    display: block;
    padding: 0 15px;
    font-size: 0.9rem;
    color: #666;
}

.berita-card p {
    color: black;
    padding: 5px 20px;
    margin-bottom: 5px;
}


.btn-more {
    display: inline-block;
    margin: 35px auto 0;
    padding: 12px 32px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all .3s ease;
}

.btn-more:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 30%;
    gap: 15px;
}

/* ASIDE PROFIL SEKOLAH */
.profil-sekolah {
    background-color: #ffffff;
    color: #1e1414;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    width: 90%;
}

.profil-sekolah h5 {
    font-size: 15px;
    color: #03347d;
}

/* JUDUL ATAU ISI */
.profil-sekolah p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* LABEL (Nama Sekolah, Akreditasi) */
.profil-sekolah p::before {
    content: "- ";
    color: #ffffff;
    font-weight: bold;
}

.kepala-sekolah {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #03347d;
    width: 90%;
    padding: 10px;
    gap: 12px;
    align-items: center;
    border-radius: 10px;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.kepsek-avatar img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #374151;
}

.kepsek-info .nama {
    font-weight: 600;
    font-size: 16px;
}

.kepsek-info .nip {
    font-size: 12px;
    text-align: center;
}

.profil-sekolah span {
    font-weight: 600;
    color: #111827;
}

.prestasi-terkini {
    background-color: #ffffff;
    padding: 10px;
    width: 90%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.prestasi-terkini h3 {
    color: #03347d;
    margin-bottom: 10px;
}

.grid-prestasi {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grid-prestasi .prestasi-card {
    background-color: #deecf8e4;
    padding: 1px 5px;
    border-radius: 10px;
    color: #000000;
    text-decoration: none;
}

.fasilitas {
    padding: 30px;
}

.fasilitas h2 {
    color: #033177;
    text-align: center;
    margin-bottom: 30px;
}

.list-akademik {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.list-akademik .fasilitas-list {
    background-color: #f5f5f5;
    padding: 20px;

}

/* =========================
   FASILITAS (MODERN)
========================= */

:root {
    --f-blue-900: #020b27;
    --f-blue-700: #1d4ed8;
    --f-blue-500: #3b82f6;
    --f-blue-100: #dbeafe;
    --f-bg: #f6f9ff;
    --f-card: #ffffff;
    --f-border: rgba(15, 23, 42, .08);
    --f-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    --f-shadow-hover: 0 22px 60px rgba(15, 23, 42, .12);
}

/* section wrapper */
.fasilitas-section {
    margin-top: 30px;
    padding: 40px;
}

/* title modern */
.fasilitas-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--f-blue-900);
    letter-spacing: .2px;
    margin-bottom: 22px;
}

.fasilitas-title::before,
.fasilitas-title::after {
    content: "";
    height: 2px;
    width: 52px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .55));
    border-radius: 999px;
}

.fasilitas-title::after {
    background: linear-gradient(90deg, rgba(59, 130, 246, .55), transparent);
}

/* grid modern */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

/* card modern */
.f-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 1));
    border: 1px solid var(--f-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--f-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
}

.f-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--f-shadow-hover);
    border-color: rgba(59, 130, 246, .25);
}

/* header label (pills) */
.f-card-head {
    padding: 14px 16px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: transparent;
}

.f-card-head {
    font-size: 18px;
    font-weight: 700;
    color: var(--f-blue-900);
}

.f-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, .18), transparent 60%);
    pointer-events: none;
}

/* carousel layout */
.f-carousel {
    padding: 0 14px 14px;
}

.f-viewport {
    overflow: hidden;
    border-radius: 16px;
    background: var(--f-bg);
    border: 1px solid rgba(59, 130, 246, .12);
}

/* track & slide */
.f-track {
    display: flex;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

.f-slide {
    min-width: 100%;
    height: 300px;
    position: relative;
    background: linear-gradient(135deg, #eef5ff, #f7fbff);
}

/* image modern */
.f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .5s ease;
}

.f-card:hover .f-slide img {
    transform: scale(1.06);
}

/* subtle overlay on image bottom */
.f-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(11, 27, 74, .22), transparent);
    pointer-events: none;
}

/* empty state */
.f-slide-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    color: rgba(11, 27, 74, .75);
    font-weight: 600;
    font-size: .9rem;
}

.f-empty {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(59, 130, 246, .35);
    background: rgba(219, 234, 254, .35);
}

/* nav buttons modern */
.f-nav {
    position: absolute;
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #63abe690;
    border-radius: 50%;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
    z-index: 5;
}

.f-nav:active {
    transform: translateY(-50%) scale(.98);
}

.f-prev {
    left: 10px;
}

.f-next {
    right: 10px;
}

/* hide nav if 0/1 slide (optional - works with JS by toggling .is-single) */
.f-carousel.is-single .f-nav,
.f-carousel.is-single .f-dots {
    display: none;
}

/* dots modern */
.f-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
}

.f-dots button {
    width: 7px;
    height: 7px;
    border: none;
    border-radius: 999px;
    background: rgba(59, 130, 246, .22);
    cursor: pointer;
    transition: width .18s ease, background .18s ease, transform .18s ease;
}

.f-dots button.active {
    width: 20px;
    background: rgba(59, 130, 246, .9);
}

.f-badge {
    font-size: .75rem;
    font-weight: 700;
    color: rgba(11, 27, 74, .85);
    background: rgba(219, 234, 254, .55);
    border: 1px solid rgba(59, 130, 246, .22);
    padding: 6px 10px;
    border-radius: 999px;
}


/* responsive */
@media (max-width: 480px) {
    .fasilitas-title {
        font-size: 1.4rem;
    }

    .f-slide,
    .f-slide-empty {
        height: 185px;
    }

    .f-card-head {
        padding: 12px 14px 10px;
    }

    .f-carousel {
        padding: 0 12px 12px;
    }

    .fasilitas-grid {
        grid-template-columns: 1fr;
    }

    .fasilitas-section {
        padding: 15px;
    }
}


/* =========================
   RESPONSIVE
========================= */




@media (max-width: 1258px) {
    .grid-berita {
        display: grid;
        grid-template-columns: repeat(2, minmax(260px, 1fr));

    }

    .berita-card img {
        height: 160px;
    }
}



@media (max-width: 900px) {
    .info-cards {
        gap: 20px;
        padding: 20px 30px;
    }

    .info-cards p {
        display: none;
    }

    .info-cards .card {
        padding: 5px;
    }
}

@media (max-width: 856px) {
    .content {
        flex-direction: column;
    }

    .content .news {
        width: 100%;
    }

    .aside {
        width: 100%;
        background-color: none;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .profil-sekolah {
        padding: 14px;
    }

    .profil-sekolah p {
        font-size: 13px;
    }
}



@media (max-width: 592px) {

    .grid-berita {
        display: flex;
        flex-direction: column;

    }

    .list-akademik .fasilitas-list {
        padding: 10px;
    }

    .list-akademik {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .f-slide {
        height: 170px;
    }

    .fasilitas-title {
        font-size: 1.4rem;
    }
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
    background-color: #2F4156;
}