/* --- Variabel Warna & Reset Dasar --- */
:root {
    --blue-light: #4e95ff;
    --blue-dark: #0d6efd;
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

/* --- Header & Navigasi --- */
header {
    background: #ffffff;
    color: #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    margin-left: 10px;
  
}

.logo img{
    height: 35px;
    width: auto;
}

header nav a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

header nav a:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: #000;
}

header nav a.active {
    background-color: rgba(0, 0, 0, 0.15);
    color: #000;
    border-radius: 20px;
    font-weight: 600;
}




/* ===========================
   DROPDOWN MENU
=========================== */

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Container dropdown */
.dropdown {
    position: relative;
}

/* Menu utama */
.dropdown>a {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Panah */
.dropdown-icon {
    font-size: 12px;
}

/* Box dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 1000;
}

/* Tampilkan saat hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Isi dropdown */
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: black;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #f3f3f3;
}



/* --- Hero Section (Slider) --- */
.hero {
    position: relative;
    width: 100%;
    height: 420px;
    /* sesuaikan */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: none;
    /* pastikan tidak menutup gambar */
    border-radius: 0;
    /* kalau mau full edge = 0, else 10px */
}

.slider {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease;
}

.slider .slide.active {
    opacity: 1;
}

.slider-indicators {
    position: absolute;
    bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 4;
}

.indicator {
    width: 45px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.8);
}



/* overlay gelap GLOBAL (di atas gambar) supaya teks terbaca */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* atur kegelapan */
    z-index: 2;
}

/* teks / kotak overlay harus TRANSPARAN agar gambar terlihat di belakang */
.hero-overlay {
    position: relative;
    z-index: 3;
    background: transparent;
    /* << penting: ubah dari rgba(...) ke transparent */
    padding: 40px 20px;
}

/* styling teks */
.hero h1 {
    font-size: 48px;
    margin: 0 0 12px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero p {
    margin: 0;
    font-size: 18px;
    opacity: .95;
    max-width: 900px;
}

/* responsive */
@media (max-width:768px) {
    .hero {
        height: 320px
    }

    .hero h1 {
        font-size: 28px
    }

    .hero p {
        font-size: 14px
    }
}


/* --- Main Content --- */
.page-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}


/* Grid utama */
.cards-grid {
    display: grid;
    gap: 30px;
    padding: 40px 20px;
    align-items: stretch;
}

/* Card isi statistik */
.card {
    background: white;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Ikon */
.card i {
    font-size: 50px;
    color: #6c7980;
    margin-bottom: 15px;
}

/* Judul (angka + label) */
.card h4 {
    margin: 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2f3a40;
}

/* Deskripsi */
.card p {
    color: #6c757d;
    font-size: 15px;
    margin-top: 5px;
}

/* Responsive */
@media(max-width:768px) {
    .card {
        padding: 25px 20px;
    }

    .card i {
        font-size: 40px;
    }

    .card h4 {
        font-size: 20px;
    }
}

/* --- Custom Stats Box  --- */

.custom-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.stats-box {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background: #1f2327;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Kotak ikon kiri */
.icon-box {
    width: 120px;
    background: #a8a7ad;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 45px;
    color: white;
}

/* Kotak teks kanan */
.text-box {
    padding: 25px 30px;
    flex: 1;
    background: #e4e6e8;
}

.text-box h4 {
    font-size: 22px;
    margin: 0 0 10px;
    color: black;
    font-weight: 700;
}

.text-box p {
    margin: 0;
    font-size: 15px;
    color: black;
}

/* Hover efek */
.stats-box:hover {
    transform: translateY(-5px);
    transition: .2s;
}


/* --- Sekilas Tentang Kami (About Section) --- */
.about-section {
    background: #f6f8f9;
    /* latar lembut seperti contoh */
    padding: 60px 0;
    /* spasi atas & bawah */
}

.about-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.about-title {
    font-size: 30px;
    /* ukuran judul desktop */
    font-weight: 700;
    color: #2f3a40;
    /* warna gelap lembut */
    margin: 0 0 24px;
    line-height: 1.1;
}

.about-desc {
    font-size: 15px;
    /* ukuran paragraf */
    color: #586066;
    /* abu yg jelas tapi lembut */
    max-width: 800px;
    /* batasi lebar paragraf untuk keterbacaan */
    margin: 0 auto;
    /* pusatkan paragraf */
    line-height: 1.8;
    /* spasi baris nyaman */
}

/* responsive */
@media (max-width: 992px) {
    .about-title {
        font-size: 34px;
    }

    .about-desc {
        font-size: 16px;
        max-width: 720px;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 40px 0;
    }

    .about-title {
        font-size: 26px;
    }

    .about-desc {
        font-size: 15px;
        max-width: 100%;
        padding: 0 12px;
        line-height: 1.6;
    }
}

/* --- Kartu Statistik --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 48px;
    color: var(--blue-dark);
    margin-bottom: 5px;
}

.stat-card p {
    color: #6c757d;
    font-size: 16px;
}

/* --- Tombol (Button) --- */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-dark));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn.btn-secondary {
    background: #6c757d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Kartu Berita Terbaru --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 25px;
}

.post-card-content h4 a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
}

.post-card-content p {
    font-size: 14px;
    color: #6c757d;
    margin: 10px 0;
}

.post-card-content small {
    color: #adb5bd;
}


/* === NEWS STYLE === */

.news-section {
    padding: 70px 0;
    background: #ffffff;
}

.news-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.news-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-header h2 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* List berita */
.news-list {
    padding: 10px 25px 25px 25px;
}

.news-item {
    padding: 18px 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    font-size: 19px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: 0.2s;
    display: block;
    line-height: 1.4;
}

.news-item a:hover {
    color: #1d4ed8;
}

.news-item span {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Responsive */
@media(max-width:768px) {
    .news-header {
        height: 150px;
    }

    .news-header h2 {
        font-size: 28px;
    }
}

/* --- Footer --- */
.footer {
    background: #3a3a3a;
    color: #fff;
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}
/* --- Footer Logo --- */
.footer-logo img {
    width: 80px;
    /* ubah sesuai kebutuhan */
    height: auto;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
}



.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #dcdcdc;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-brand .footer-logo {
    width: 120px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 14px;
    border-top: 1px solid #5a5a5a;
    color: #ccc;
}

/* --- FIX GARIS H4 FOOTER --- */
.footer-col h4 {
    border: none !important;
    /* hapus garis lama */
    background: none !important;
    /* hapus gaya background apapun */
    position: relative;
    padding-bottom: 8px;
    /* jarak ke garis */
}

/* garis baru warna netral */
.footer-col h4::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #cfcfcf;
    /* warna abu netral */
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 2px;
}
/* MATIKAN SEMUA GARIS PADA H4 & FOOTER-COL */
.footer-col,
.footer-col h4 {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* TAMBAHKAN GARIS BARU */
.footer-col h4::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #eee7e7 !important;
    margin-top: 6px;
    border-radius: 2px;
}



.social-links img {
    width: 18px;
    margin-right: 8px;
    vertical-align: middle;
}




/* --- Halaman Header (untuk semua halaman internal) --- */
.page-header {
    padding: 60px 20px;
    background: var(--text-dark);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
}


/* --- Layout Halaman Profil --- */
.profile-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Membuat sidebar dan konten sejajar di atas */
}

.profile-sidebar {
    flex: 0 0 250px; /* Lebar sidebar tetap 250px */
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 15px;
    position: sticky; /* Membuat sidebar 'mengikuti' saat di-scroll */
    top: 100px; /* Jarak dari atas (setelah header utama) */
}

.profile-sidebar ul {
    list-style: none;
}

.profile-sidebar li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.profile-sidebar li a:hover {
    background-color: var(--bg-light);
}

.profile-sidebar li a.active {
    background-color: var(--blue-dark);
    color: white;
}

.profile-content {
    flex: 1; /* Konten utama mengisi sisa ruang */
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.profile-content h2 {
    margin-top: 0;
    font-size: 28px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--blue-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
}


.profile-content h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 10px;
}

/* PAKSA UBAH WARNA JUDUL PROFIL */
.profile-content h1 {
    font-family: "Georgia", serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #5a5f64 !important;
    font-size: 30px !important; 
    /* paksa override biru */
}

/* --- Responsive untuk Halaman Profil --- */
@media (max-width: 992px) {
    .profile-layout {
        flex-direction: column;
    }
    .profile-sidebar {
        width: 100%;
        position: static; /* Hapus 'sticky' di mobile */
    }
}



.sarana-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.sarana-card {
    background: white;
    border-radius: 18px;
    padding-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: 0.2s ease-in-out;
}

.sarana-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.sarana-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.sarana-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
}

.guru-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.guru-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.guru-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.guru-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .25s ease;
}

.guru-card:hover .guru-photo {
    transform: scale(1.07);
}

.guru-name {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

.guru-position {
    font-size: 16px;
    color: #666;
}




/* Judul besar elegan */
.profile-content h1 {
    font-family: 'Georgia', serif;
    font-size: 45px;
    text-align: center;
    color: #2c2d75;
    margin-bottom: 35px;
}

/* Sidebar mirip contoh */
.profile-sidebar li a {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.profile-sidebar li a.active {
    background: #2d3135;
    color: white;
}

.profile-sidebar li a:hover {
    background: #e7e7e7;
}

/* Konten paragraf */
.konten-apa-adanya {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}


/* --- Halaman Detail Artikel --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.article-meta {
    text-align: center;
    margin-top: -30px; /* Sedikit naik ke atas header */
    margin-bottom: 30px;
    color: var(--text-light);
    opacity: 0.9;
}
.article-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}
.article-content {
    line-height: 1.8;
    font-size: 16px;
}
/* --- Halaman Formulir --- */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.form-wrapper h4 {
    margin-top: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* --- Halaman Kontak --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;;
    gap: 40px;
    align-items: flex-start;
}

.form-wrapper {
    width: 100%;
    max-width: 650px;
    background: white;
    border-radius: 15px;
    padding: 30px !important;
    display: block;
}

.form-wrapper input,
.form-wrapper textarea {
    width: 100%;
    max-width: 100%;

}

/* Supaya tombol tidak melebar gede */
.form-wrapper .btn {
    width: auto;
    padding: 10px 20px;
}

.contact-info h4, .contact-form-wrapper h4 {
    font-size: 22px;
    margin-bottom: 15px;
}
.contact-info p {
    margin-bottom: 10px;
}
.contact-info iframe {
    margin-top: 20px;
    border-radius: 10px;
}



/* --- Footer Modern --- */
footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.7); /* Warna teks abu-abu terang */
    padding: 60px 0 0 0;
    margin-top: 60px; /* Jarak dari konten terakhir di atasnya */
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Garis bawah dekoratif untuk judul footer */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--blue-dark);
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/*INDEX---------------------------*/
/* === VISI & MISI STYLE === */

.visi-misi-section {
    padding: 70px 0;
    background: #f5f7fa;
}

.visi-misi-section .section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2d3436;
}

.visi-box,
.misi-box {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.visi-box h3,
.misi-box h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2d48;
}
/* === VISI & MISI (Ukuran Font Lebih Rapi) === */

.visi-box p {
    font-size: 15px;
    /* lebih kecil dari sebelumnya */
    line-height: 1.7;
    color: #444;
}

.misi-box ol {
    padding-left: 20px;
}

.misi-clean li {
    font-size: 15px;
    /* lebih kecil */
    line-height: 1.7;
    margin-bottom: 8px;
    color: #444;
}

/* Judul Visi & Misi lebih kecil sedikit */
.visi-box h3,
.misi-box h3 {
    font-size: 22px;
    /* sebelumnya 26px */
    margin-bottom: 12px;
}

/* === VISI MISI GRID (2 KOLOM) === */

.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1400px;
    padding: 0 20px;
    margin: auto;
}

/* Responsif – jadi 1 kolom di HP */
@media (max-width: 768px) {
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
}


/* === Prestasi Section === */
.prestasi-section {
    padding: 60px 0;
}

.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 0 20px;
}

.prestasi-card {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.prestasi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* === KECILKAN GAMBAR === */
.prestasi-img {
    width: 100%;
    height: 180px;
    /* sebelumnya 220px */
    object-fit: cover;
    border-radius: 14px;
}

/* === JUDUL HITAM, TIDAK UNDERLINE === */
.prestasi-title {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.prestasi-title a {
    color: #222 !important;
    text-decoration: none !important;
}

.prestasi-title a:hover {
    color: #444 !important;
}

/* Text kecil di bawah (jika dipakai) */
.prestasi-info {
    margin-top: 6px;
    font-size: 14px;
    color: #555;
    text-align: center;
}


.prestasi-title a {
    transition: all 0.25s ease-in-out;
}

.prestasi-title a:hover {
    text-shadow: 0px 4px 12px rgba(0, 0, 0, 0.35);
    transform: scale(1.03);
    /* sedikit membesar */
}
.prestasi-section .section-title {
    margin-bottom: 40px;
}



.prestasi-card .prestasi-title {
    font-size: 18px !important;
    font-weight: 600;
    text-align: center;
    color: #222;
}

.prestasi-card .prestasi-title a {
    font-size: 18px !important;
    color: #222 !important;
    text-decoration: none !important;
}


/* RESPONSIVE */
@media (max-width: 992px) {
    .prestasi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .prestasi-grid {
        grid-template-columns: 1fr;
    }
}



/* === Berita Section Card === */
.berita-section {
    padding: 50px 0;
    background: #f9f9f9;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.berita-card {
    background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.berita-media {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #000;
    display: block;
}


.berita-body {
    padding: 12px 14px;
}

.berita-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 6px 0;
}

.berita-date {
    font-size: 14px;
    color: gray;
}

.berita-btn {
    display: inline-block;
        margin-top: 10px;
        margin-left: 0;
        padding: 6px 12px;
        background: #e5e5e5;
        color: #333;
        font-size: 13px;
        border-radius: 6px;
        text-decoration: none;
}

/* Efek hover elegan */
.berita-btn:hover {
    background: #d1d1d1;
    color: #111;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.berita-section .section-title {
    margin-bottom: 40px;
}






/* === Efek Garis Animasi pada Judul Section === */
.section-title {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 0 auto;
    text-align: center;
    /* FIX untuk center */
}

/* Garis */
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: #2d3436;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Muncul saat hover */
.section-title:hover::after {
    width: 60%;
}


.title-wrapper {
    text-align: center;
}

.title-wrapper .section-title {
    display: inline-block;
}

.about-section .section-title {
    margin-bottom: 30px;
}

.about-desc {
    line-height: 1.8;
}







/* ============================
   HEADER PROFIL (GAMBAR)
   ============================ */

.profil-header {
    position: relative;
    width: 100%;
    height: 320px;
    background: url('../images/prestasi/pre 6.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profil-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* gelap tipis */
    z-index: 1;
}

.profil-title {
    position: relative;
    z-index: 2;
    font-size: 48px;
    color: white;
    font-weight: 700;
    text-align: center;
}


/* ============================
   HEADER PRESTASI (GAMBAR)
   ============================ */

.prestasi-header {
    position: relative;
    width: 100%;
    height: 320px;
    background: url('../images/slider/bg1.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prestasi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* gelap tipis */
    z-index: 1;
}

.prestasi-title {
    position: relative;
    z-index: 2;
    font-size: 48px;
    color: white;
    font-weight: 700;
    text-align: center;
}

/* ============================
   HEADER GALERI (GAMBAR)
   ============================ */

.galeri-header {
    position: relative;
    width: 100%;
    height: 320px;
    background: url('../images/galeri/gal 5.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeri-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* gelap tipis */
    z-index: 1;
}

.galeri-title {
    position: relative;
    z-index: 2;
    font-size: 48px;
    color: white;
    font-weight: 700;
    text-align: center;
}

/* ============================
   HEADER POSTINGAN (GAMBAR)
   ============================ */

.postingan-header {
    position: relative;
    width: 100%;
    height: 320px;
    background: url('../images/posts/post 1.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.postingan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* gelap tipis */
    z-index: 1;
}

.postingan-title {
    position: relative;
    z-index: 2;
    font-size: 48px;
    color: white;
    font-weight: 700;
    text-align: center;
}






@media (max-width: 600px) {
    .sarana-grid {
        grid-template-columns: 1fr !important;
    }

    .guru-grid {
        grid-template-columns: 1fr !important;
    }

    .galeri-grid {
        grid-template-columns: 1fr !important;
    }
}





@media (max-width: 600px) {

    .profil-header,
    .prestasi-header,
    .galeri-header,
    .postingan-header {
        height: 200px !important;
    }

    .profil-title,
    .prestasi-title,
    .galeri-title,
    .postingan-title {
        font-size: 26px !important;
    }
}



@media (max-width: 768px) {
    .profile-content {
        padding: 20px !important;
    }

    .profile-sidebar li a {
        text-align: center;
        padding: 14px 10px;
    }
}




@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .form-wrapper {
        padding: 20px !important;
    }
}









 /* ===== GRID ===== */
 .post-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 20px;
 }

 .post-card {
     background: #fff;
     border-radius: 12px;
     padding: 15px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
 }

 .post-card-content h4 {
     margin-top: 10px;
     text-align: center;
 }

 .post-card-img {
     width: 100%;
     max-height: 220px;
     object-fit: cover;
     border-radius: 10px;
 }

 /* ================================
       SLIDER GALERI (ANTI BENTROK CSS)
    ==================================*/
 .galeri-slider {
     position: relative;
     overflow: hidden;
     width: 100%;
     border-radius: 10px;
 }

 .galeri-slides {
     display: flex;
     transition: transform .4s ease;
     width: 100%;
 }

 .galeri-slide {
     min-width: 100%;
     max-height: 220px;
     object-fit: cover;
     border-radius: 10px;
 }

 .galeri-slider button {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: rgba(0, 0, 0, .5);
     color: #fff;
     border: none;
     font-size: 20px;
     padding: 5px 10px;
     border-radius: 50%;
     cursor: pointer;
     z-index: 10;
 }

 .galeri-slider .prev {
     left: 10px;
 }

 .galeri-slider .next {
     right: 10px;
 }



@media (max-width: 768px) {
    header nav {
        display: none;
        width: 100%;
    }

    header nav.active {
        display: flex !important;
        flex-direction: column;
    }
}



/* ==========================================
   HEADER RESPONSIVE FINAL — FIXED
========================================== */

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* NAVBAR DESKTOP */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* ==========================================
   MOBILE (<= 768px)
========================================== */
@media (max-width: 768px) {

    /* Header tetap sejajar */
    header .container {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
    }

    /* Logo */
    .logo {
        gap: 10px;
        font-size: 18px;
    }

    .logo img {
        height: 28px;
    }

    /* Tampilkan hamburger */
    .mobile-menu-btn {
        display: block;
    }

    /* Sembunyikan nav */
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        margin-top: 12px;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
        overflow: hidden;
    }

    /* Saat tombol hamburger diklik */
    nav.active {
        display: flex !important;
    }

    nav a {
        padding: 14px;
        text-align: center;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* Dropdown menu */
    .dropdown-menu {
        display: none;
        position: static;
        background: #f7f7f7;
        padding: 5px 0;
        box-shadow: none;
        width: 100%;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px;
        text-align: center;
    }
}

 



/* ==========================
   MOBILE NAVBAR CLEAN & MODERN
========================== */
@media (max-width: 768px) {

    /* Tampilkan tombol hamburger */
    .mobile-menu-btn {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }

    /* NAV DISEMBUNYIKAN AWAL */
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        padding: 10px 0;
        margin-top: 12px;
        border-radius: 10px;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
        animation: fadeDown .25s ease;
    }

    /* Saat nav aktif */
    nav.active {
        display: flex !important;
    }

    /* Item menu */
    nav a,
    nav .dropdown>a {
        padding: 14px 20px;
        text-align: left;
        font-size: 16px;
        color: #333;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* Dropdown menu rapi */
    .dropdown-menu {
        position: static !important;
        background: #f9f9f9 !important;
        width: 100%;
        padding: 5px 0 !important;
        display: none;
        border-radius: 0;
        box-shadow: none !important;
    }

    /* Dropdown terbuka */
    .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-menu a {
        padding: 12px 30px;
        font-size: 15px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    /* Animation */
    @keyframes fadeDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}













/* ============================
    MOBILE SIDE MENU (UMP STYLE)
============================ */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    /* disembunyikan */
    width: 260px;
    height: 100%;
    background:white;
    /* warna seperti contoh UMP */
    color:black;
    padding: 20px;
    z-index: 9999;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-sidebar.open {
    right: 0;
    /* muncul dari kiri */
}

.mobile-sidebar a {
    color: rgb(12, 12, 12);
    font-size: 17px;
    text-decoration: none;
    padding: 10px 5px;
    font-weight: 600;
    display: block;
}

.mobile-sidebar a:hover {
    opacity: .7;
}

/* Close button */
.mobile-sidebar .close-btn {
    font-size: 24px;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 20px;
}

/* Dropdown inside sidebar */
.mobile-sidebar .dropdown-menu {
    display: none;
    padding-left: 15px;
}

.mobile-sidebar .dropdown-menu a {
    font-size: 15px;
    padding: 8px 0;
    opacity: 0.9;
}

/* Show dropdown */
.mobile-sidebar .dropdown-menu.show {
    display: block;
}







.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    font-size: 16px;
}

.remember {
    text-align: left;
    margin-bottom: 15px;
    font-size: 14px;
}



