/* --- Style untuk Container Utama --- */
.share-container {
    margin: 25px 0;
    padding: 15px;
    background-color: #f9f9f9; /* Background tipis agar terlihat premium */
    border-radius: 10px;
    border: 1px solid #eee;
}

/* Judul "Bagikan Berita" */
.share-title {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
    margin-top: 0;
    font-family: sans-serif; /* Sesuaikan dengan font web Anda */
}

/* Wrapper agar tombol berjejer rapi */
.share-buttons-wrapper {
    display: flex;
    flex-wrap: wrap; /* Agar tombol turun jika layar HP kekecilan */
    gap: 10px; /* Jarak antar tombol */
}

/* --- Style Dasar Semua Tombol Share --- */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 6px; /* Sudut kotak agak membulat seperti contoh */
    text-decoration: none !important; /* Hapus garis bawah link */
    color: white !important; /* Warna teks putih wajib */
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease; /* Efek halus saat di-hover */
    cursor: pointer;
    border: none;
    min-width: 120px; /* Lebar minimal agar seragam */
}

/* Jarak icon ke teks */
.share-btn i {
    font-size: 18px; /* Ukuran icon sedikit lebih besar dari teks */
    margin-right: 8px;
}

/* Efek saat tombol ditekan/disentuh (sedikit menggelap) */
.share-btn:active {
    transform: scale(0.97); /* Efek membal */
}

/* --- WARNA SPESIFIK MASING-MASING SOSMED (Sesuai Gambar 2) --- */

/* WhatsApp - Hijau */
.share-btn.whatsapp {
    background-color: #25D366;
}
.share-btn.whatsapp:hover {
    background-color: #1eb956;
}

/* Facebook - Biru Tua */
.share-btn.facebook {
    background-color: #3b5998;
}
.share-btn.facebook:hover {
    background-color: #2d4373;
}

/* Telegram - Biru Muda Aktif */
.share-btn.telegram {
    background-color: #0088cc;
}
.share-btn.telegram:hover {
    background-color: #0077b3;
}

/* Twitter - Biru Langit */
.share-btn.twitter {
    background-color: #1da1f2;
}
.share-btn.twitter:hover {
    background-color: #0c85d0;
}

/* Print - Abu-abu premium */
.share-btn.print {
    background-color: #a0a0a0;
}
.share-btn.print:hover {
    background-color: #8c8c8c;
}


/* --- RESPONSIVE UNTUK HP (MOBILE) --- */
@media (max-width: 480px) {
    .share-buttons-wrapper {
        justify-content: space-between; /* Tombol memenuhi lebar layar */
    }
    
    .share-btn {
        flex: 0 0 5%; /* 1 Baris berisi 2 tombol di HP */
        padding: 1px 5px; /* Padding vertikal sedikit besar agar mudah ditekan jari */
        gap: 9px;
        font-size: 9px;
        min-width: auto; /* Matikan min-width agar flex bekerja */
    }
    
    .share-btn i {
        font-size: 12px;
        margin-right: 1px;
    }
}
/* Container Layout */
.search-page-container { padding: 40px 15px; }
.row-layout { display: flex; gap: 30px; flex-wrap: wrap; }
.main-content { flex: 1; min-width: 0; }
.sidebar-page { width: 300px; }

/* Search Header */
.search-header { margin-bottom: 30px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.section-title { font-size: 1.8rem; color: #2c3e50; margin-bottom: 5px; }
.results-count { color: #7f8c8d; font-style: italic; }

/* Item Card */
.search-item-card { 
    display: flex; 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.search-item-card:hover { transform: translateY(-5px); }

.card-thumb { width: 220px; min-width: 220px; overflow: hidden; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; flex: 1; }
.card-meta { margin-bottom: 10px; display: flex; align-items: center; gap: 15px; font-size: 0.85rem; }
.badge-cat { background: #e8f5e9; color: #2e7d32; padding: 4px 10px; border-radius: 4px; font-weight: 600; }
.date { color: #95a5a6; }

.card-title { margin-bottom: 10px; font-size: 1.3rem; line-height: 1.4; }
.card-title a { color: #2c3e50; text-decoration: none; transition: 0.2s; }
.card-title a:hover { color: #28a745; }

.card-excerpt { color: #576574; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }
.btn-read-more { color: #28a745; font-weight: 600; text-decoration: none; font-size: 0.9rem; }

/* Alert & No Result */
.alert-warning { padding: 15px; background: #fff3cd; color: #856404; border-radius: 8px; }
.no-results { text-align: center; padding: 50px 20px; color: #7f8c8d; }

/* Responsive */
@media (max-width: 768px) {
    .row-layout { flex-direction: column; }
    .sidebar-page { width: 100%; }
    .search-item-card { flex-direction: column; }
    .card-thumb { width: 100%; height: 180px; }
}
/* Container Header (Wajib Flex agar sejajar) */
.header-container {
    display: flex;
    justify-content: space-between; /* Kiri logo, kanan menu */
    align-items: center; /* Sejajar vertikal di tengah */
    padding: 10px 15px;
    background-color: #ffffff; /* Latar belakang putih */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Brand Area (Logo + Nama) */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* Ambil sisa ruang agar menu terpojok */
}

.school-logo {
    height: 100px; /* Atur tinggi logo */
    width: auto;
}

.school-name {
    font-size: 1rem; /* Ukuran pas di HP */
    font-weight: 700;
    color: #333333; /* Warna teks gelap */
    margin: 0;
    white-space: nowrap; /* KUNCI: Agar nama tetap satu baris */
}

/* --- PERBAIKAN TOMBOL HAMBURGER --- */
.hamburger-menu {
    background: #28a745; /* Memberi warna latar belakang hijau */
    border: none;
    width: 40px; /* Lebar tombol */
    height: 35px; /* Tinggi tombol */
    border-radius: 5px; /* Sudut membulat */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Garis di tengah vertikal */
    align-items: center; /* Garis di tengah horizontal */
    gap: 4px; /* Jarak antar garis */
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Sedikit bayangan */
}

/* Garis-garis di dalam hamburger */
.hamburger-menu span {
    display: block;
    width: 22px; /* Panjang garis */
    height: 3px; /* Tebal garis */
    background-color: #ffffff; /* WARNA GARIS: Putih agar terlihat di latar hijau */
    border-radius: 2px;
    transition: 0.3s ease-in-out;
}
/* --- END PERBAIKAN HAMBURGER --- */
@media (max-width: 768px) {
    /* MEMAKSA HEADER DIAM DI ATAS */
    .site-header {
        position: fixed !important; /* Kunci posisi */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important; /* Pastikan di atas semua konten */
        background: #ffffff !important;
        height: 60px !important; /* Tinggi tetap */
        display: flex;
        align-items: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .header-main {
        width: 100%;
        padding: 0 !important;
    }

    .header-main .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
    }

    /* NAMA SEKOLAH 1 BARIS */
    .school-identity {
        margin-left: 10px;
        overflow: hidden;
    }

    .school-name a {
        font-size: 20px !important;
        margin-left: 2px;
        white-space: nowrap !important; /* Paksa 1 baris */
        font-weight: 800;
        color: #333;
        text-decoration: none;
    }

    .school-tagline { 
        display: none !important; /* Sembunyikan slogan di HP agar rapi */
    }

    .school-logo {
        height: 65px !important;
        width: auto;
    }

    /* NAVIGASI SAAT TERBUKA */
    .main-navbar {
        position: fixed !important;
        top: 60px !important; /* Muncul tepat di bawah header */
        left: 0;
        width: 100%;
        background: #fff;
        display: none; /* Sembunyikan default */
        z-index: 9998;
        border-bottom: 3px solid #28a745;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Class 'show' akan dipanggil oleh JS */
    .main-navbar.show {
        display: block !important;
    }

    .main-navbar ul {
        flex-direction: column;
        padding: 10px 0;
    }

    /* AGAR KONTEN TIDAK TERTUTUP HEADER */
    body {
        padding-top: 60px !important;
    }

    /* SEMBUNYIKAN TOP BAR DI HP AGAR LEBIH BERSIH */
    .top-bar-contact {
        display: none !important;
    }
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e9ecef;
    color: #333;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.top-bar-contact {
    background-color: #333;
    color: #fff;
    padding: 8px 0;
    font-size: 0.85em;
}
.top-bar-contact .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.top-bar-contact span {
    margin-left: 20px;
}
.top-bar-contact span i {
    margin-right: 5px;
}
.site-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    width: 100%;
}
.site-header .header-main {
    padding: 15px 0;
    background-color: #e7f5ff; /* Warna biru muda yang lembut */
}
.site-header .header-main .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.logo-area {
    flex-shrink: 0;
}
.school-logo {
    max-height: 70px;
    width: auto;
}
.school-identity {
    margin-left: 20px;
    flex-grow: 1;
}
.school-identity .school-name {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
}
.school-identity .school-name a {
    text-decoration: none;
    color: inherit;
}
.school-identity .school-tagline {
    margin: 0;
    font-size: 0.9em;
    color: #7f8c8d;
}
.header-search-mobile-toggle {
    display: none;
}
.mobile-menu-toggle-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
}
.main-navbar {
    background-color: #27ae60;
    display: block;
}
.main-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-navbar ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 14px 18px;
    display: block;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    position: relative;
}
.main-navbar ul li a:hover,
.main-navbar ul li a.active {
    background-color: rgba(0, 0, 0, 0.1);
}
.main-navbar ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: #f1c40f;
}
.search-form-navbar {
    display: flex;
}
.search-form-navbar input[type="text"] {
    padding: 8px 10px;
    border: 1px solid #fff;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9em;
}
.search-form-navbar button {
    padding: 8px 12px;
    background-color: #2c3e50;
    color: white;
    border: 1px solid #2c3e50;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.main-content-area {
    padding: 20px 0;
}
.hero-slider-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.hero-slider {
    display: flex;
    width: 300%;
    position: relative;
}
.slide {
    width: 33.3333%;
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex; /* Biarkan flex untuk kemungkinan konten lain di masa depan */
    color: #fff;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    flex-shrink: 0;
}
.slide.active {
    opacity: 1;
}
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.slide-caption {
    position: absolute; /* Menggunakan posisi absolut */
    bottom: 0; /* Menempel di paling bawah */
    left: 0; /* Mulai dari paling kiri */
    width: 100%; /* Lebar penuh mengikuti slide */
    z-index: 1;
    padding: 25px 20px; /* Padding atas-bawah 25px, kiri-kanan 20px */
    box-sizing: border-box; /* Agar padding tidak menambah lebar */
    text-align: center; /* Pastikan teks tetap di tengah */
    margin-bottom: 0; /* Hapus margin bawah */
}
.slide-caption h4 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.slide-caption p {
    font-size: 1.2em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.slider-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
}
.slider-nav.prev {
    left: 10px;
    border-radius: 50%;
}
.slider-nav.next {
    right: 10px;
    border-radius: 50%;
}
.slider-nav:hover {
    background-color: rgba(0,0,0,0.6);
}

@media (max-width: 991px) {
    .site-header .header-main .container {
        justify-content: space-between;
    }
    .header-search-mobile-toggle {
        display: block;
    }
    .main-navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .main-navbar.show {
        display: block;
    }
    .main-navbar .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    .main-navbar ul {
        flex-direction: column;
        width: 100%;
    }
    .main-navbar ul li {
        width: 100%;
        border-bottom: 1px solid #465a70;
    }
    .main-navbar ul li:last-child {
        border-bottom: none;
    }
    .main-navbar ul li a {
        padding: 12px 15px;
    }
    .main-navbar ul li a.active::after {
        display: none;
    }
    .search-form-navbar {
        width: calc(100% - 20px);
        margin: 15px 10px;
    }
}

@media (max-width: 767px) {
    .school-identity .school-name {
        font-size: 1.2em;
    }
    .school-identity .school-tagline {
        display: none;
    }
    .top-bar-contact {
        display: none;
    }
    .slide {
        height: 400px;
    }
    .slide-caption h4 {
        font-size: 1.8em;
    }
    .slide-caption p {
        font-size: 1em;
    }
}
/* --- Gaya untuk Sticky Footer --- */

/* Membuat body menjadi flex container setinggi minimal layar */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Membuat area konten utama mengisi semua ruang yang tersedia */
.main-content-area {
    flex: 1;
}

/* --- Gaya untuk Footer Section --- */
.site-footer {
    background-color: #27ae60; /* Warna hijau yang sama dengan navbar Anda */
    color: #ffffff; /* Warna teks putih agar kontras */
    padding: 25px 0; /* Memberi jarak di atas dan bawah teks footer */
    text-align: center; /* Membuat teks di tengah */
    flex-shrink: 0; /* Mencegah footer menyusut */
}

.site-footer p {
    margin: 0;
    font-size: 0.9em;
}

.site-footer a {
    color: #f1c40f; /* Warna kuning untuk link jika ada, agar serasi */
    text-decoration: none;
    font-weight: bold;
}

.site-footer a:hover {
    text-decoration: underline;
}
/* HERO SECTION */
.spmb-hero {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.spmb-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.spmb-hero h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.spmb-hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* BUTTON */
.btn-ppdb-daftar {
    display: inline-block;
    background: #fff;
    color: #28a745;
    padding: 14px 28px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-ppdb-daftar:hover {
    background: #f1f1f1;
    transform: scale(1.05);
}

/* CONTAINER */
.spmb-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
}

/* CARD */
.spmb-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.spmb-card h3 {
    margin-bottom: 15px;
    color: #28a745;
}

/* KONTAK */
.kontak {
    text-align: center;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .spmb-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .spmb-hero h1 {
        font-size: 28px;
    }

    .spmb-hero h2 {
        font-size: 20px;
    }
}
.spmb-kontak-box {
    background: #f1fff5;
    border: 2px solid #28a745;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.spmb-kontak-box a {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
}

.spmb-kontak-box a:hover {
    text-decoration: underline;
}
/* ============================= */
/* 🔥 BANNER SEKOLAH (HERO IMAGE) */
/* ============================= */
.spmb-hero {
    position: relative;
    background: url('../images/banner-sekolah.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.spmb-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.spmb-hero * {
    position: relative;
    z-index: 2;
}

.spmb-hero h1 {
    font-size: 42px;
    font-weight: 700;
}

.spmb-hero h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.spmb-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ============================= */
/* 🚀 TOMBOL UTAMA LEBIH KEREN */
/* ============================= */
.btn-ppdb-daftar {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    padding: 15px 35px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-ppdb-daftar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ============================= */
/* 📦 CARD LEBIH MODERN */
/* ============================= */
.spmb-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.spmb-card:hover {
    transform: translateY(-5px);
}

/* ============================= */
/* 🔢 LIST LEBIH RAPI */
/* ============================= */
.spmb-card ul li {
    margin-bottom: 8px;
}

/* ============================= */
/* 📞 KONTAK BOX PREMIUM */
/* ============================= */
.spmb-kontak-box {
    background: linear-gradient(135deg, #e6f9ec, #d4f5dd);
    border: none;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.spmb-kontak-box h4 {
    color: #28a745;
    margin-bottom: 10px;
}

.spmb-kontak-box p {
    margin: 8px 0;
    font-size: 15px;
}

.spmb-kontak-box a {
    color: #1e7e34;
    font-weight: bold;
}

/* ============================= */
/* 🎬 ANIMASI HALUS */
/* ============================= */
.spmb-card {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* 📱 RESPONSIVE UPGRADE */
/* ============================= */
@media (max-width: 768px) {
    .spmb-hero {
        padding: 70px 20px;
    }

    .spmb-hero h1 {
        font-size: 28px;
    }

    .spmb-hero h2 {
        font-size: 18px;
    }

    .btn-ppdb-daftar {
        width: 100%;
    }
}
/* ============================= */
/* 📄 FORM CONTAINER LEBIH ELEGAN */
/* ============================= */
.spmb-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.spmb-form-container {
    text-align: left;
}

.spmb-form-container label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 5px;
}

.spmb-form-container input,
.spmb-form-container textarea,
.spmb-form-container select {
    width: 100%;
    text-align: left;
}

/* ============================= */
/* 🧩 SECTION FORM */
/* ============================= */
.form-section {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    background: #f9fbfc;
    border-left: 5px solid #28a745;
}

.form-section h3 {
    margin-bottom: 15px;
    color: #28a745;
    font-size: 18px;
}

/* ============================= */
/* ✏️ INPUT STYLE */
/* ============================= */
.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: 0.3s;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40,167,69,0.2);
    outline: none;
}

/* ============================= */
/* 🎯 RADIO & CHECKBOX */
/* ============================= */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================= */
/* 📦 UPLOAD FILE (KOTAK MODERN) */
/* ============================= */
.form-group input[type="file"] {
    display: none;
}

.upload-box {
    border: 2px dashed #28a745;
    padding: 20px;
    text-align: center;
    align-items: center;
    border-radius: 12px;
    background: #f1fff5;
    cursor: pointer;
    transition: 0.3s;
}

.upload-box:hover {
    background: #e6f9ec;
}

.upload-box span {
    display: block;
    font-size: 14px;
    color: #555;
}

.upload-box strong {
    color: #28a745;
}

/* ============================= */
/* 🚀 BUTTON SUBMIT */
/* ============================= */
.btn-submit-spmb {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f1c40f, #1e7e34);
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-submit-spmb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ============================= */
/* 📱 RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
    .spmb-form-container {
        padding: 20px;
    }
}
/* HEADER FORM (HANYA BAGIAN ATAS) */
.spmb-header-top {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    padding: 30px 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    margin: -30px -30px 20px -30px; /* nempel ke container */
}

/* Judul */
.spmb-header-top h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* Subjudul */
.spmb-header-top h2 {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}
.spmb-header-top {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.spmb-header {
    animation: fadeDown 0.6s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.spmb-header {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}
.judul-form {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.judul-form span {
    display: block;
    font-size: 24px;
    color: #27ae60;
    font-weight: 600;
}
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}
/* SCANNER STYLE */
.scanner-box {
    text-align: center;
    background: #f1fff5;
    border: 2px dashed #28a745;
    padding: 15px;
    border-radius: 10px;
}

.scanner-box video,
.scanner-box canvas {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    margin-top: 10px;
}

.scanner-actions button {
    margin: 5px;
    padding: 10px 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.scanner-actions button:hover {
    background: #218838;
}
<style>
    /* CSS Sederhana untuk formulir, bisa dipindah ke file CSS utama */
    .spmb-form-container { max-width: 800px; margin: 20px auto; padding: 20px; background-color: #f9f9f9; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
    .spmb-form-container h1, .spmb-form-container h2 { text-align: center; color: #333; }
    .form-section { margin-bottom: 30px; padding: 20px; border: 1px solid #ddd; border-radius: 5px; background-color: #fff; }
    .form-section h3 { margin-top: 0; color: #2E8B57; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    .form-group { margin-bottom: 15px; }
    .form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }
    .form-group textarea { min-height: 80px; resize: vertical; }
    .form-group input[type="file"] { padding: 5px; }
    .form-group .radio-group label, .form-group .checkbox-group label { font-weight: normal; margin-right: 15px; }
    .form-group .radio-group input, .form-group .checkbox-group input { margin-right: 5px; }
    .btn-submit-spmb {
        display: block;
        width: 100%;
        padding: 12px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        text-align: center;
    }
    .btn-submit-spmb:hover { background-color: #218838; }
    .form-note { font-size: 0.9em; color: #777; margin-top: 5px; }
    .required-asterisk { color: red; }
    /* ===== SPMB DASHBOARD ===== */

/* HERO ADMIN */
.spmb-hero {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.spmb-hero h1 {
    margin: 0;
    font-size: 26px;
}

.spmb-hero h2 {
    margin: 5px 0;
    font-weight: 400;
    opacity: 0.9;
}

.spmb-hero p {
    margin: 10px 0 15px;
    opacity: 0.8;
}

/* BUTTON */
.btn-ppdb-daftar {
    background: #fff;
    color: #357ABD;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-ppdb-daftar:hover {
    background: #f1f1f1;
}

/* CARD STYLE */
.ppdb-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

/* STATUS BOX */
.status-sukses {
    background: #e6f9f0;
    color: #1abc9c;
    padding: 12px;
    border-left: 4px solid #1abc9c;
    border-radius: 6px;
    font-weight: 600;
}

.status-error {
    background: #fdecea;
    color: #e74c3c;
    padding: 12px;
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
    font-weight: 600;
}

.status-info {
    background: #eef6ff;
    color: #3498db;
    padding: 12px;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    font-weight: 600;
}

/* KONTAK */
.spmb-kontak-box {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    padding: 15px;
    border-radius: 8px;
}

/* HOVER EFFECT */
.ppdb-section:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}
/* Sidebar Container */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Widget Box (Card UI) */
.widget-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #edf2f7;
}

/* Widget Titles */
.widget-title {
    background: #f8fafc;
    padding: 15px 20px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #3498db;
}

/* List Styling */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-list li {
    border-bottom: 1px solid #f1f5f9;
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.styled-list li a:hover {
    background: #f1f9ff;
    color: #3498db;
    padding-left: 25px;
}

/* Badges (Jumlah Artikel) */
.badge {
    background: #3498db;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
}

.badge-outline {
    border: 1px solid #cbd5e0;
    color: #718096;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Button Highlight PPDB */
.spmb-highlight {
    background: #e74c3c;
    border: none;
}

.btn-sidebar-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-sidebar-main:hover {
    background: #c0392b;
}

/* PPDB Widget Card */
.ppdb-card {
    border-top: 4px solid #2ecc71;
}

.ppdb-header {
    padding: 15px;
    text-align: center;
    background: #f0fff4;
}

.ppdb-header h4 {
    margin: 0;
    color: #27ae60;
    font-weight: 800;
}

.ppdb-body {
    padding: 15px;
    text-align: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.rounded { border-radius: 8px; }

.btn-primary-block {
    display: block;
    background: #2ecc71;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary-block:hover {
    background: #27ae60;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.empty-text {
    padding: 20px;
    color: #a0aec0;
    font-style: italic;
    font-size: 0.9rem;
}
/* Layout Base */
.main-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}
.main-content { flex: 2; }
.sidebar-main { flex: 1; }

/* Header Page */
.page-header-styled {
    margin-bottom: 40px;
    border-bottom: 3px solid #f1f1f1;
    padding-bottom: 20px;
}
.page-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}
.page-subtitle { color: #7f8c8d; font-size: 1.1rem; }

/* News Cards */
.news-card-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}
.news-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-card-img {
    flex: 1;
    position: relative;
    min-width: 250px;
    max-width: 250px;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-card-body {
    flex: 2;
    padding: 25px;
}
.news-meta {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 10px;
}
.news-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}
.news-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}
.news-card-title a:hover { color: #3498db; }
.news-card-excerpt {
    color: #5d6d7e;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.btn-read-more i {
    margin-left: 5px;
    transition: margin 0.3s;
}
.btn-read-more:hover i { margin-left: 10px; }

/* Pagination Modern */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.modern-pagination {
    display: flex;
    list-style: none;
    gap: 8px;
}
.modern-pagination li a, .modern-pagination li span {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: #2c3e50;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s;
}
.modern-pagination li.active a {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}
.modern-pagination li a:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper { flex-direction: column; }
    .news-card-item { flex-direction: column; }
    .news-card-img { max-width: 100%; height: 200px; }
}
/* Layout Beranda */
.main-wrapper-home {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.main-content-left {
    flex: 2; /* Bagian berita lebih lebar */
}

.sidebar-right {
    flex: 1; /* Bagian sidebar */
}

/* Header Section */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-header-modern h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.btn-view-all {
    text-decoration: none;
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 700;
}

/* News Card Small (Thumbnail Kecil) */
.news-card-small {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card-small:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.news-card-thumb {
    flex: 0 0 120px; /* Lebar thumbnail tetap kecil */
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-info {
    flex: 1;
}

.news-date {
    font-size: 0.8rem;
    color: #95a5a6;
    display: block;
    margin-bottom: 5px;
}

.news-card-info h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.news-card-info h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.news-card-info h3 a:hover {
    color: #3498db;
}

.news-card-info p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .main-wrapper-home {
        flex-direction: column;
    }
    .news-card-thumb {
        flex: 0 0 100px;
        height: 100px;
    }
}
/* Style Pengumuman Running Text */
.announcement-bar {
    background-color: #ffeb3b; /* Warna Kuning */
    padding: 10px 0;
    border-bottom: 2px solid #fbc02d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.running-text-wrapper {
    display: flex;
    align-items: center;
}

.label-pengumuman {
    background: #d32f2f; /* Merah gelap untuk label */
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-right: 15px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.marquee-content {
    color: #d32f2f; /* Font Merah */
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .label-pengumuman {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    .marquee-content {
        font-size: 0.9rem;
    }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .label-text {
        display: none; /* Sembunyikan tulisan PENGUMUMAN di HP */
    }
    
    .label-pengumuman {
        padding: 8px 12px; /* Sesuaikan padding agar kotak toa tetap proporsional */
        margin-right: 10px;
    }

    .label-pengumuman i {
        font-size: 1.2rem; /* Ukuran ikon toa sedikit diperbesar di HP agar jelas */
    }

    .marquee-content {
        font-size: 0.95rem; /* Ukuran font teks berjalan sedikit disesuaikan untuk layar HP */
    }
}
@media (max-width: 768px) {
    .mobile-nav-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #ffffff;
        box-shadow: 0 -3px 12px rgba(0,0,0,0.12);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid #e0e0e0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #444; /* Warna teks abu gelap agar terbaca */
        text-decoration: none;
        flex: 1;
        transition: all 0.2s ease;
    }

    .nav-item i {
        font-size: 1.3rem;
        margin-bottom: 3px;
        /* Warna Hijau MI Utama */
        color: #27ae60; 
    }

    .nav-item span {
        font-size: 0.75rem;
        font-weight: 600;
    }

    /* Efek saat tombol ditekan */
    .nav-item:active {
        background: #f1f8f4;
        color: #219150;
    }

    /* Khusus tombol WhatsApp bisa diberi warna brand aslinya jika mau */
    .nav-item[href*="wa.me"] i {
        color: #25D366; 
    }
    
    /* Tambahkan ruang di bawah agar konten web tidak tertutup */
    body {
        padding-bottom: 80px !important;
    }
}
/* Pastikan kontainer utama tidak memiliki max-width yang sempit di mobile */
@media (max-width: 768px) {
    /* Menghilangkan margin/padding pada pembungkus luar jika ada */
    .container, .page-content-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Membuat kartu komentar full layar */
    .comment-form-container {
        margin: 10px 0 !important; /* Menghilangkan margin kiri-kanan */
        border-radius: 0; /* Opsional: kotak jadi kotak sempurna di pinggir layar */
        width: 100% !important;
        box-sizing: border-box;
        border-left: none;
        border-right: none;
        padding: 20px 15px; /* Memberi ruang di dalam agar teks tidak nempel tembok */
    }
}/* Container Utama Form */
.comment-form-container {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    margin-top: 20px;
}

/* Mengatur Baris Nama & Email */
.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1; /* Memberi ruang yang sama rata */
}

/* Styling Input & Textarea */
.comment-form-container input, 
.comment-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Sangat penting agar padding tidak merusak lebar */
}

.comment-form-container input:focus, 
.comment-form-container textarea:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Tombol Kirim */
.btn-submit-comment {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%; /* Default di HP penuh */
    transition: background 0.3s;
}

.btn-submit-comment:hover {
    background: #219150;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column; /* Nama & Email jadi tumpuk atas-bawah di HP */
        gap: 15px;
    }
    
    .comment-form-container {
        padding: 15px; /* Padding lebih kecil di HP agar hemat ruang */
    }
}

/* --- DESKTOP --- */
@media (min-width: 601px) {
    .btn-submit-comment {
        width: auto; /* Di desktop tombol ukurannya pas teks saja */
    }
}
    /* CSS UNTUK MERAPIKAN KOMENTAR */
    .comments-section { margin-top: 50px; padding-bottom: 30px; }
    
    .comment-list-wrapper { margin-bottom: 40px; }

    .comment-item {
        background: #fff;
        padding: 18px;
        border-radius: 12px;
        margin-bottom: 15px;
        border: 1px solid #eee;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        position: relative;
    }

    /* KHUSUS KOMENTAR BALASAN */
    .comment-reply {
        margin-left: 45px; 
        background: #f9fdfa !important; 
        border-left: 4px solid #27ae60 !important; /* Garis Hijau Penanda Balasan */
        border-radius: 0 12px 12px 0;
        padding: 15px;
        margin-top: -10px;
        margin-bottom: 20px;
        border: 1px solid #e0eadd;
    }

    .comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
    .comment-author { font-weight: bold; color: #2c3e50; display: flex; align-items: center; gap: 8px; }
    .comment-date { font-size: 0.75rem; color: #999; }
    .badge-reply { background: #27ae60; color: white; font-size: 0.6rem; padding: 2px 7px; border-radius: 10px; margin-left: 5px; text-transform: uppercase; letter-spacing: 0.5px; }

    /* FORM KOMENTAR */
    .comment-form-container {
        background: #fff;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border: 1px solid #eee;
        margin-top: 30px;
    }

    .input-row { display: flex; gap: 15px; margin-bottom: 15px; }
    .input-row input { flex: 1; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; }
    .input-row input:focus { border-color: #27ae60; }
    
    textarea#pesan_komentar { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 15px; resize: vertical; font-size: 14px; min-height: 100px; outline: none; }
    textarea#pesan_komentar:focus { border-color: #27ae60; }

    .btn-submit-comment { background: #27ae60; color: white; border: none; padding: 13px 25px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; transition: 0.3s; font-size: 1rem; }
    .btn-submit-comment:hover { background: #219150; transform: translateY(-2px); }

    /* RESPONSIVE MOBILE */
    @media (max-width: 768px) {
        .comment-reply { margin-left: 20px; padding: 12px; }
        .input-row { flex-direction: column; }
        .comment-form-container { 
            padding: 20px 15px; 
            border-radius: 0; 
            margin-left: -15px; 
            margin-right: -15px; 
            width: calc(100% + 30px); 
            border-left: none; 
            border-right: none;
        }
    }
    .btn-reply {
    background: none;
    border: none;
    color: #27ae60;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    margin-top: 5px;
}
.btn-reply:hover {
    text-decoration: underline;
}
.admin-notice {
    font-size: 0.85rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-notice i {
    color: #27ae60;
}

/* Supaya nama admin di list komentar otomatis miring dan tebal */
.text-admin {
    font-style: italic !important;
    color: #1b5e20 !important;
    font-weight: 800 !important;
}
/* CSS UNTUK AGENDA PROFESIONAL */
.agenda-section { background: #fff; padding: 20px; border-radius: 10px; margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.agenda-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.agenda-item:last-child { border-bottom: none; }

.agenda-date-box { 
    background: #27ae60; 
    color: #fff; 
    text-align: center; 
    min-width: 55px; 
    padding: 8px; 
    border-radius: 8px; 
    display: flex; 
    flex-direction: column; 
    line-height: 1.1;
}
.date-num { font-size: 1.4rem; font-weight: 800; }
.date-month { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }

.agenda-text h4 { font-size: 0.95rem; margin-bottom: 3px; color: #333; font-weight: 700; line-height: 1.3; }
.agenda-text small { color: #888; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper-home { flex-direction: column; }
}
.section-title {
    color: #27ae60;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #27ae60;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.card-organisasi .img-wrapper, .card-organisasi .img-wrapper-small {
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #eee;
}

/* Foto Kepala Sekolah Lebih Besar */
.img-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

/* Foto Guru/Staf Sedang */
.img-wrapper-small {
    width: 130px;
    height: 130px;
    border-radius: 50%;
}

.card-organisasi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jabatan {
    background: #27ae60;
    color: #fff;
    display: inline-block;
    padding: 2px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .img-wrapper-small { width: 100px; height: 100px; }
    h5 { font-size: 0.9rem; }
}
.news-item-list {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.news-thumbnail-list {
    width: 250px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.news-content-list h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}
.news-content-list h3 a:hover {
    color: #27ae60;
}
.read-more-list {
    display: inline-block;
    margin-top: 10px;
    color: #27ae60;
    font-weight: bold;
    text-decoration: none;
}
/* Khusus tampilan Mobile */
@media (max-width: 480px) {
    /* 1. Merapatkan teks ke logo */
    .logo-area-wrapper {
        display: flex;
        align-items: center;
        gap: 1px !important; /* Perkecil angka ini (misal 5px) agar teks mepet ke kiri */
        padding-left: 1px !important; /* Kurangi padding kiri header agar logo lebih ke pinggir */
    }

    /* 2. Mengatur ukuran teks agar muat satu baris */
    .school-name {
        margin-left: -2 !important;
        padding-left: 0 !important;
        font-size: 1.1rem !important; /* Kecilkan sedikit jika masih terpotong (misal ke 1.0rem) */
        letter-spacing: -0.5px; /* Merapatkan antar huruf agar lebih hemat ruang */
        white-space: nowrap; /* Memaksa teks tetap satu baris, tidak turun ke bawah */
    }

    /* 3. Menghilangkan jarak di kanan logo */
    .school-logo {
        height: 55px !important; /* Sesuaikan tinggi logo */
        margin-right: 0 !important;
    }
}
/* =========================================
   STYLE POSTINGAN UNIVERSAL (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Atur Jarak Kontainer Utama */
    .single-article-container {
        padding: 0 15px !important;
    }

    /* 2. Judul Artikel (Dibuat Lebih Modern & Tidak Kebesaran) */
    .article-title {
        font-size: 1.5rem !important; /* Ukuran proporsional di HP */
        line-height: 1.3 !important;
        font-weight: 800;
        color: #222;
        margin: 15px 0 !important;
        letter-spacing: -0.5px;
    }

    /* 3. Memisahkan Tanggal & Penulis (Atas-Bawah) */
    .article-meta {
        display: flex;
        flex-direction: column; /* MEMISAHKAN: Tanggal di atas, Penulis di bawah */
        gap: 10px !important; /* Jarak antar baris meta */
        padding: 15px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin-bottom: 25px;
    }

    /* 4. Styling Teks Meta (Tanggal & Penulis) */
    .article-meta span {
        display: flex;
        align-items: center;
        font-size: 0.9rem !important;
        color: #666 !important;
    }

    /* 5. Warna Ikon (Hijau Sekolah) */
    .article-meta span i {
        color: #28a745; /* Warna hijau khas MI Darul Muta'allimin */
        margin-right: 10px;
        width: 16px;
        text-align: center;
    }

    /* 6. Isi Konten Artikel */
    .article-body-content {
        font-size: 1.05rem !important;
        line-height: 1.8 !important; /* Spasi antar baris agar nyaman dibaca */
        color: #444;
        text-align: justify; /* Rata kiri-kanan agar rapi */
    }

    /* 7. Tag Kategori */
    .category-tag {
        display: inline-block;
        background: #28a745;
        color: #fff;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.75rem;
        text-transform: uppercase;
        font-weight: bold;
    }
}