/* ============================================================
   TEMA: Muhammadiyah Patihan
   ============================================================ */

:root {
    --biru: #1D5F82;
    --biru-dark: #164A66;
    --biru-light: #2A7AAB;
    --kuning: #FAED21;
    --orange: #EC782E;

    --bg-body: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-soft: #F5F8FA;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: #E0E6EB;
    --header-bg: #1D5F82;
    --header-text: #FFFFFF;
    --footer-bg: #1D5F82;
    --footer-text: #FFFFFF;
    --shadow: 0 2px 8px rgba(29, 95, 130, 0.08);
    --link: #1D5F82;
    --link-hover: #EC782E;
    --container-width: 1400px;
}

[data-theme="dark"] {
    --bg-body: #121417;
    --bg-card: #1C2024;
    --bg-soft: #232830;
    --text-primary: #EAEAEA;
    --text-secondary: #B8B8B8;
    --text-muted: #888888;
    --border: #2C333B;
    --header-bg: #164A66;
    --header-text: #F0F0F0;
    --footer-bg: #164A66;
    --footer-text: #F0F0F0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --link: #6FB4DB;
    --link-hover: #FAED21;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-link {
    color: inherit;
    text-decoration: none;
}

.header-brand h1 {
    font-size: 19px;
    font-weight: 700;
    color: var(--header-text);
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.brand-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
    background: white;
    padding: 3px;
}

/* ---------- Nav Desktop ---------- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--header-text) !important;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--kuning) !important;
}

/* ---------- Tombol Hamburger (mobile only) ---------- */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--header-text);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- Dropdown Tentang ---------- */
.dropdown {
    position: relative;
}

.dropdown-toggle .caret {
    font-size: 10px;
    transition: transform 0.2s;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--bg-card);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 300;
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-primary) !important;
    font-size: 14px;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg-soft);
    color: var(--orange) !important;
    padding-left: 22px;
}

/* Tombol toggle tema - pakai icon */
.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--header-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    margin-left: 4px;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--kuning);
    color: var(--biru);
    transform: rotate(20deg);
}

/* Hapus bagian ini (kalau ada) */
.theme-icon-light { display: none; }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 15px 15px;
        gap: 2px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 200;
    }

    .header-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 6px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.08);
        margin-top: 4px;
        border: none;
        border-radius: 6px;
        padding: 4px 0;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: var(--header-text) !important;
        padding: 10px 14px 10px 26px;
        font-size: 14px;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--kuning) !important;
        padding-left: 30px;
    }

    .theme-toggle {
        margin: 8px auto 0;
        align-self: center;
    }

    .header-brand h1 {
        font-size: 17px;
    }

    .brand-logo {
        height: 34px;
    }
}

@media (max-width: 480px) {
    .header-brand h1 {
        font-size: 15px;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ============================================================
   CONTAINER & KONTEN
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 6px auto 30px;
    padding: 35px 40px;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex: 1;
    width: calc(100% - 40px);
    transition: background 0.3s, box-shadow 0.3s;
}

h2.section-title {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    border-bottom: 2px solid var(--border);
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 80px; height: 2px;
    background: var(--orange);
}

/* Artikel berita */
article.berita-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
article.berita-item:last-child { border-bottom: none; }
article.berita-item .berita-thumb {
    width: 200px; height: 140px;
    object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
article.berita-item .berita-content { flex: 1; min-width: 250px; }
article.berita-item h3 { font-size: 18px; margin-bottom: 6px; line-height: 1.4; }
article.berita-item h3 a { color: var(--text-primary); }
article.berita-item h3 a:hover { color: var(--orange); }
article.berita-item .berita-meta {
    font-size: 13px; color: var(--text-muted); margin-bottom: 10px;
}
article.berita-item .berita-meta .dot { margin: 0 6px; }
article.berita-item p { color: var(--text-secondary); font-size: 15px; }

/* Detail berita */
.detail-berita h1 { color: var(--text-primary); font-size: 26px; margin-bottom: 8px; line-height: 1.3; }
.detail-berita .berita-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; }
.detail-berita hr { border: none; border-top: 1px solid var(--border); margin: 15px 0 20px; }
.detail-berita img.berita-gambar {
    width: 100%; max-height: 450px; object-fit: cover;
    border-radius: 10px; margin-bottom: 20px;
}
.detail-berita .berita-isi { font-size: 16px; color: var(--text-primary); line-height: 1.9; }
.btn-back {
    display: inline-block; margin-top: 25px; padding: 10px 20px;
    background: var(--biru); color: white !important;
    border-radius: 6px; font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}
.btn-back:hover { background: var(--orange); transform: translateX(-3px); color: white !important; }

/* ============================================================
   FOOTER — Layout 2 Kolom
   ============================================================ */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 25px 20px;
    margin-top: auto;
    border-top: 4px solid var(--kuning);
    transition: background 0.3s, color 0.3s;
}

footer .footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

footer .footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- Kolom Kiri: Info + Maps ---------- */
footer .footer-col-info {
    min-width: 0;
}

footer .footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--kuning);
    margin-bottom: 8px;
    line-height: 1.3;
}

footer .footer-tagline {
    font-size: 14px;
    color: #e8f4f8;
    margin-bottom: 10px;
    font-style: italic;
    opacity: 0.9;
    font-weight: 400;
}

footer .footer-desc {
    font-size: 13px;
    color: #c8dde8;
    margin-bottom: 18px;
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 400;
}

footer .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

footer .footer-contact li {
    font-size: 13px;
    color: #e8f4f8;
    margin-bottom: 8px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 400;
}

footer .footer-contact strong {
    color: var(--kuning);
    font-weight: 500;
    margin-right: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Google Maps */
footer .footer-maps {
    width: 100%;
    max-width: 400px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    margin-top: 18px;
}

footer .footer-maps iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(15%);
    transition: filter 0.3s;
}

footer .footer-maps:hover iframe {
    filter: grayscale(0%);
}

/* ---------- Kolom Kanan: Sosmed + Akses Cepat ---------- */
footer .footer-col-actions {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

footer .footer-block-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--kuning);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Link teks polos (untuk sosmed dan akses cepat) */
footer .footer-links {
    font-size: 14px;
    color: #c8dde8;
    line-height: 1.9;
    font-weight: 400;
}

footer .footer-links a {
    color: #e8f4f8;
    text-decoration: none;
    font-weight: 400;
    opacity: 0.9;
    transition: color 0.2s, opacity 0.2s;
}

footer .footer-links a:hover {
    color: var(--kuning);
    opacity: 1;
}

footer .footer-links-sep {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 8px;
    font-weight: 400;
}

/* ---------- Bawah: Copyright ---------- */
footer .footer-bottom {
    padding-top: 20px;
    text-align: center;
}

footer .footer-bottom p {
    font-size: 12px;
    color: #c8dde8;
    opacity: 0.7;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ---------- Responsive Footer ---------- */
@media (max-width: 900px) {
    footer .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    footer .footer-maps {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 30px 15px 15px;
    }
    footer .footer-brand {
        font-size: 18px;
    }
    footer .footer-maps {
        height: 150px;
    }
    footer .footer-links {
        font-size: 13px;
    }
}

/* Tombol generik */
.btn {
    display: inline-block; padding: 10px 20px;
    background: var(--biru); color: white !important;
    border: none; border-radius: 6px; cursor: pointer;
    font-size: 14px; font-weight: 500; text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--orange); transform: translateY(-1px); color: white !important; }
.btn.kuning { background: var(--kuning); color: var(--biru) !important; }
.btn.kuning:hover { background: var(--orange); color: white !important; }
.btn.red { background: #c0392b; }
.btn.red:hover { background: #a03020; }

/* Utilitas */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--biru); color: white;
    border: none; cursor: pointer; font-size: 22px; font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s ease; z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange); transform: translateY(-3px); }

/* Fade-in */
.fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-visible { opacity: 1; transform: translateY(0); }

/* Galeri */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px; margin-top: 20px;
}
.galeri-item {
    background: var(--bg-soft); border-radius: 10px;
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.galeri-item:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); }
.galeri-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.galeri-item .galeri-info { padding: 12px; }
.galeri-item .galeri-info h4 { font-size: 15px; margin-bottom: 4px; color: var(--text-primary); }
.galeri-item .galeri-info p { font-size: 13px; color: var(--text-muted); }

/* Form */
.form-card { background: var(--bg-soft); padding: 24px; border-radius: 10px; margin-top: 20px; }
.form-card label {
    display: block; margin-top: 15px; font-weight: 600;
    font-size: 14px; color: var(--text-primary);
}
.form-card label:first-child { margin-top: 0; }
.form-card input, .form-card select, .form-card textarea {
    width: 100%; padding: 10px 12px; margin-top: 5px;
    border: 1px solid var(--border); border-radius: 6px;
    font-family: inherit; font-size: 14px;
    background: var(--bg-card); color: var(--text-primary);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    outline: none; border-color: var(--biru);
    box-shadow: 0 0 0 3px rgba(29, 95, 130, 0.15);
}
.form-card textarea { min-height: 130px; resize: vertical; }

.alert { padding: 12px 16px; border-radius: 6px; margin: 15px 0; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

.badge-kategori {
    display: inline-block; background: var(--biru); color: white;
    padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px; margin-right: 4px;
}

.info-ppdb {
    background: linear-gradient(135deg, var(--biru), var(--biru-dark));
    color: white; padding: 24px; border-radius: 10px; margin-bottom: 25px;
}
.info-ppdb h2 { color: var(--kuning); margin-bottom: 10px; }

/* Halaman statis */
.page-content h1 {
    color: var(--text-primary); font-size: 26px;
    margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.page-content h1::after {
    content: ''; position: absolute;
    bottom: -2px; left: 0; width: 80px; height: 2px;
    background: var(--orange);
}
.page-content h3 { color: var(--biru); font-size: 18px; margin: 20px 0 10px; }
.page-content p { margin-bottom: 12px; color: var(--text-secondary); line-height: 1.9; font-size: 15px; }
.page-content ol, .page-content ul { margin: 12px 0 15px 25px; color: var(--text-secondary); line-height: 1.9; }
.page-content li { margin-bottom: 6px; }

/* Tabel struktur */
.tabel-struktur-wrap { margin-top: 20px; overflow-x: auto; border-radius: 10px; box-shadow: var(--shadow); }
.tabel-struktur { width: 100%; border-collapse: collapse; background: var(--bg-card); font-size: 15px; }
.tabel-struktur thead th {
    background: var(--biru); color: white;
    padding: 14px 16px; text-align: left;
    font-weight: 600; font-size: 14px; letter-spacing: 0.3px;
}
.tabel-struktur tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.tabel-struktur tbody tr:nth-child(even) { background: var(--bg-soft); }
.tabel-struktur tbody tr:last-child { border-bottom: none; }
.tabel-struktur tbody tr:hover { background: rgba(29, 95, 130, 0.06); }
.tabel-struktur tbody td { padding: 14px 16px; color: var(--text-primary); vertical-align: middle; }
.tabel-struktur tbody td:last-child { color: var(--biru); font-weight: 500; }

/* Responsive umum */
@media (max-width: 600px) {
    .container { padding: 20px; margin: 15px auto; }
    article.berita-item { flex-direction: column; }
    article.berita-item .berita-thumb { width: 100%; height: 180px; }
    .detail-berita h1 { font-size: 21px; }
    footer .footer-info { flex-direction: column; gap: 6px; }
    .tabel-struktur thead th, .tabel-struktur tbody td { padding: 10px 12px; font-size: 13px; }
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 20px; }
}
/* ============================================================
   INFO PPDB — Paksa warna terang biar kontras dengan background
   ============================================================ */
.info-ppdb h2,
.page-content .info-ppdb h2 {
    color: var(--kuning) !important;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.info-ppdb p,
.page-content .info-ppdb p,
.info-ppdb div,
.page-content .info-ppdb div {
    color: #FFFFFF !important;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.info-ppdb a,
.page-content .info-ppdb a {
    color: var(--kuning) !important;
    text-decoration: underline;
    font-weight: 600;
}

.info-ppdb a:hover {
    color: #FFFFFF !important;
}
/* ============================================================
   HALAMAN HOME — Sambutan, Berita Grid, Slideshow
   ============================================================ */

/* ---------- Hero Sambutan ---------- */
.hero-sambutan {
    background: linear-gradient(135deg, var(--biru), var(--biru-dark));
    color: white;
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-sambutan::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--kuning);
}

.hero-title {
    font-size: 30px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-title span {
    color: var(--kuning);
    display: inline-block;
}

.hero-tagline {
    font-size: 17px;
    color: #e8f4f8;
    margin-bottom: 8px;
    font-style: italic;
}

.hero-desc {
    font-size: 14px;
    color: #c8dde8;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- Section Home ---------- */
.home-section {
    margin-bottom: 45px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.section-title-home {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section-title-home::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background: var(--orange);
    border-radius: 3px;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--biru);
    transition: color 0.2s;
}
.section-link:hover { color: var(--orange); }

/* ---------- Berita Grid ---------- */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Featured berita (besar, span 2 kolom) */
.berita-featured {
    grid-column: 1 / -1;
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.berita-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(29, 95, 130, 0.12);
}

.berita-featured .featured-thumb {
    flex: 0 0 45%;
    display: block;
}
.berita-featured .featured-thumb img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.berita-featured .featured-content {
    flex: 1;
    padding: 25px 25px 25px 0;
    min-width: 0;
}

.berita-featured h3 {
    font-size: 22px;
    margin: 10px 0;
    line-height: 1.35;
}
.berita-featured h3 a {
    color: var(--text-primary);
}
.berita-featured h3 a:hover {
    color: var(--orange);
}

.berita-featured p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Berita card (kecil) */
.berita-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.berita-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(29, 95, 130, 0.12);
}

.berita-card .card-thumb {
    display: block;
    overflow: hidden;
}
.berita-card .card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.berita-card:hover .card-thumb img {
    transform: scale(1.05);
}

.berita-card .card-content {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.berita-card h4 {
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.4;
    flex: 1;
}
.berita-card h4 a {
    color: var(--text-primary);
}
.berita-card h4 a:hover {
    color: var(--orange);
}

.berita-card .berita-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

/* ---------- Slideshow ---------- */
.slideshow {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    max-height: 500px;
}

.slideshow-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
}

.slideshow-slide.active {
    opacity: 1;
    z-index: 1;
}

.slideshow-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-caption {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: white;
    padding: 50px 25px 20px;
    width: 100%;
}
.slideshow-caption strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}
.slideshow-caption span {
    font-size: 14px;
    opacity: 0.9;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    color: var(--biru);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
    padding: 0;
    padding-bottom: 4px;
}
.slideshow-btn:hover {
    background: var(--kuning);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-btn.prev { left: 15px; }
.slideshow-btn.next { right: 15px; }

.slideshow-dots {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.slideshow-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.slideshow-dots .dot.active {
    background: var(--kuning);
    transform: scale(1.3);
}

/* ---------- Tombol Mengambang (WA & Back-to-top) ---------- */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    align-items: center;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    padding: 0;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* WhatsApp — hijau khas WA */
.float-wa {
    background: #25D366;
    color: white;
}
.float-wa:hover {
    background: #1EBE5A;
}

/* Back to top — biru dongker, muncul setelah scroll */
.float-top {
    background: var(--biru);
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}
.float-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.float-top:hover {
    background: var(--orange);
}

/* Efek denyut pada WA */
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.float-wa {
    animation: wa-pulse 2s infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .berita-grid {
        grid-template-columns: 1fr;
    }

    .berita-featured {
        flex-direction: column;
    }
    .berita-featured .featured-thumb {
        flex: none;
        height: 220px;
    }
    .berita-featured .featured-thumb img {
        min-height: 220px;
    }
    .berita-featured .featured-content {
        padding: 20px;
    }
    .berita-featured h3 {
        font-size: 19px;
    }

    .hero-title {
        font-size: 24px;
    }
    .hero-sambutan {
        padding: 35px 20px;
    }

    .section-title-home {
        font-size: 19px;
    }
}

@media (max-width: 600px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .slideshow {
        aspect-ratio: 4 / 3;
    }
    .slideshow-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .slideshow-caption {
        padding: 40px 15px 15px;
    }
    .slideshow-caption strong {
        font-size: 15px;
    }
}
/* ============================================================
   BERITA — Layout Modern dengan Sidebar
   ============================================================ */

.berita-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.berita-main {
    min-width: 0;
}

/* ---------- Kategori Tabs ---------- */
.kategori-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.kategori-tab {
    padding: 7px 16px;
    border-radius: 20px;
    background: var(--bg-soft);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.kategori-tab:hover {
    background: var(--biru);
    color: white;
    transform: translateY(-1px);
}
.kategori-tab.active {
    background: var(--biru);
    color: white;
    font-weight: 600;
    border-color: var(--biru);
}

/* ---------- Berita List Modern ---------- */
.berita-list-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.berita-card-modern {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    padding: 0;
}
.berita-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(29, 95, 130, 0.12);
    border-color: var(--biru);
}

.card-modern-thumb {
    flex: 0 0 220px;
    display: block;
    overflow: hidden;
    background: var(--bg-soft);
}
.card-modern-thumb img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.berita-card-modern:hover .card-modern-thumb img {
    transform: scale(1.08);
}

.card-modern-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-soft), #e0eaf0);
}

.card-modern-content {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
}

.card-modern-content h3 {
    font-size: 19px;
    line-height: 1.4;
    margin: 8px 0;
}
.card-modern-content h3 a {
    color: var(--text-primary);
}
.card-modern-content h3 a:hover {
    color: var(--orange);
}

.card-modern-content .berita-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.card-modern-content .berita-meta span {
    white-space: nowrap;
}

.card-modern-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 12px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--biru);
    align-self: flex-start;
    transition: color 0.2s, transform 0.2s;
}
.read-more:hover {
    color: var(--orange);
    transform: translateX(3px);
}

/* ---------- Sidebar ---------- */
.berita-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--biru);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.search-form {
    display: flex;
    gap: 6px;
}
.search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-soft);
    color: var(--text-primary);
}
.search-form input:focus {
    outline: none;
    border-color: var(--biru);
    background: white;
}
.search-form button {
    padding: 10px 16px;
    background: var(--biru);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.search-form button:hover { background: var(--orange); }

.sidebar-kategori {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-kat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.sidebar-kat-item:hover {
    background: var(--bg-soft);
    color: var(--biru);
}
.sidebar-kat-count {
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-populer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-pop-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-primary);
    padding: 6px 0;
    transition: color 0.2s;
}
.sidebar-pop-item:hover { color: var(--orange); }
.sidebar-pop-no {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--biru);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.sidebar-pop-item:nth-child(1) .sidebar-pop-no { background: #FFD700; color: #333; }
.sidebar-pop-item:nth-child(2) .sidebar-pop-no { background: #C0C0C0; color: #333; }
.sidebar-pop-item:nth-child(3) .sidebar-pop-no { background: #CD7F32; }

.sidebar-pop-judul {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2px;
}
.sidebar-pop-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.6;
}
.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}
.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.page-btn {
    padding: 10px 18px;
    background: var(--biru);
    color: white !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}
.page-btn:hover {
    background: var(--orange);
    transform: translateY(-2px);
    color: white !important;
}
.page-info {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================================
   DETAIL BERITA
   ============================================================ */

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.breadcrumb a {
    color: var(--biru);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }

.detail-berita-modern {
    max-width: 100%;
}

.detail-judul {
    font-size: 30px;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 12px 0 15px;
    font-weight: 700;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* ---------- Share Bar ---------- */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 25px;
    padding: 12px 15px;
    background: var(--bg-soft);
    border-radius: 10px;
}
.share-bar-bottom {
    margin-top: 30px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #f0f7fa, #e0eef5);
}
.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 5px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: white !important;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, filter 0.2s;
    font-family: inherit;
}
.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: white !important;
}
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tw { background: #000; }
.share-tg { background: #0088cc; }
.share-copy { background: var(--biru); }
.share-copy:hover { background: var(--orange); }

.detail-gambar {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.detail-isi {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary);
    word-wrap: break-word;
}
.detail-isi p {
    margin-bottom: 15px;
}

/* ---------- Berita Terkait ---------- */
.terkait-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 3px solid var(--border);
}

.terkait-title {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-left: 15px;
    position: relative;
    font-weight: 700;
}
.terkait-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background: var(--orange);
    border-radius: 3px;
}

.terkait-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.terkait-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--text-primary);
}
.terkait-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(29, 95, 130, 0.15);
    color: var(--orange);
}

.terkait-thumb {
    height: 130px;
    overflow: hidden;
    background: var(--bg-soft);
}
.terkait-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.terkait-card:hover .terkait-thumb img {
    transform: scale(1.1);
}
.terkait-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--text-muted);
}

.terkait-content {
    padding: 12px 14px;
    flex: 1;
}
.terkait-content h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: 600;
}
.terkait-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .berita-layout {
        grid-template-columns: 1fr;
    }
    .berita-sidebar {
        position: static;
        order: 2;
    }
    .terkait-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-judul {
        font-size: 22px;
    }
    .berita-card-modern {
        flex-direction: column;
    }
    .card-modern-thumb {
        flex: none;
        height: 200px;
    }
    .card-modern-content {
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .terkait-grid {
        grid-template-columns: 1fr;
    }
    .share-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    .share-label {
        width: 100%;
        margin-bottom: 5px;
    }
    .detail-judul {
        font-size: 19px;
    }
    .detail-meta {
        font-size: 12px;
    }
}
/* ============================================================
   PRESTASI SISWA — Grid 4 Kolom, Foto Rasio 4:5 (Portrait)
   ============================================================ */
.prestasi-hero {
    background: linear-gradient(135deg, var(--biru), var(--biru-dark));
    color: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}
.prestasi-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--kuning);
}
.prestasi-hero-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--kuning);
    line-height: 1;
    margin-bottom: 6px;
}
.prestasi-hero-text {
    font-size: 14px;
    color: #e8f4f8;
    letter-spacing: 0.5px;
}

.prestasi-filter {
    background: var(--bg-soft);
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.prestasi-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}
.prestasi-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}
.filter-chip {
    padding: 4px 12px;
    border-radius: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border);
}
.filter-chip:hover {
    background: var(--biru);
    color: white;
    border-color: var(--biru);
    transform: translateY(-1px);
}
.filter-chip.active {
    background: var(--biru);
    color: white;
    border-color: var(--biru);
    font-weight: 600;
}

/* Grid 4 kolom */
.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Card compact */
.prestasi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.prestasi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 95, 130, 0.15);
    border-color: var(--biru);
}

/* Foto rasio 4:5 portrait */
.prestasi-foto {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
}
.prestasi-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s;
}
.prestasi-card:hover .prestasi-foto img {
    transform: scale(1.06);
}

/* Placeholder kalau tidak ada foto */
.prestasi-foto-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 800;
    color: var(--biru);
    background: linear-gradient(135deg, var(--bg-soft), #d4e4ec);
    width: 100%;
    aspect-ratio: 4 / 5;
}

/* Badge tingkat */
.prestasi-badge-tingkat {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: white;
    background: var(--biru);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
}
.tingkat-sekolah { background: #6c757d; }
.tingkat-kecamatan { background: #17a2b8; }
.tingkat-kabupaten { background: var(--biru); }
.tingkat-provinsi { background: #28a745; }
.tingkat-nasional { background: #FFD700; color: #333; }
.tingkat-internasional { background: #EC782E; }

/* Body: padding rapat */
.prestasi-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prestasi-nama {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 1px;
    font-weight: 700;
    line-height: 1.3;
}

.prestasi-kelas {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.prestasi-lomba {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    flex: 1;
}

.prestasi-peringkat {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 4px;
    line-height: 1.3;
}

.prestasi-penyelenggara {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-style: italic;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prestasi-tahun {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    align-self: flex-start;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .prestasi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .prestasi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .prestasi-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    .prestasi-hero-num {
        font-size: 36px;
    }
    .prestasi-body {
        padding: 14px 16px 16px;
    }
    .prestasi-nama {
        font-size: 15px;
    }
    .prestasi-lomba {
        font-size: 13px;
    }
}
/* ============================================================
   EKSKUL & PROGRAM
   ============================================================ */

/* Grid Ekskul */
.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.ekskul-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.ekskul-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(29, 95, 130, 0.15);
    border-color: var(--biru);
}

.ekskul-foto {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-soft);
}
.ekskul-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.ekskul-card:hover .ekskul-foto img {
    transform: scale(1.08);
}
.ekskul-foto-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 800;
    color: var(--biru);
    background: linear-gradient(135deg, var(--bg-soft), #d4e4ec);
}

.ekskul-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ekskul-body h3 {
    font-size: 18px;
    color: var(--biru);
    margin-bottom: 8px;
    font-weight: 700;
}
.ekskul-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}

.ekskul-info {
    border-top: 1px dashed var(--border);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ekskul-info-item {
    display: flex;
    font-size: 13px;
    gap: 8px;
}
.ekskul-info-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 65px;
}

@media (max-width: 600px) {
    .ekskul-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   FOOTER NAVIGATION
   ============================================================ */
footer .footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 18px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

footer .footer-nav a {
    color: var(--footer-text);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
    transition: color 0.2s, opacity 0.2s;
    text-decoration: none;
}

footer .footer-nav a:hover {
    color: var(--kuning);
    opacity: 1;
}

footer .footer-nav .footer-admin {
    color: var(--kuning);
    font-weight: 600;
}

footer .footer-nav .footer-admin:hover {
    color: var(--orange);
}

@media (max-width: 600px) {
    footer .footer-nav {
        gap: 6px 14px;
    }
    footer .footer-nav a {
        font-size: 12px;
    }
}
/* ============================================================
   FASILITAS SEKOLAH
   ============================================================ */
.fasilitas-hero {
    background: linear-gradient(135deg, var(--biru), var(--biru-dark));
    color: white;
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0 30px;
    position: relative;
    overflow: hidden;
}
.fasilitas-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--kuning);
}
.fasilitas-hero-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--kuning);
    line-height: 1;
    margin-bottom: 6px;
}
.fasilitas-hero-text {
    font-size: 15px;
    color: #e8f4f8;
    letter-spacing: 0.5px;
}

.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.fasilitas-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.fasilitas-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(29, 95, 130, 0.15);
    border-color: var(--biru);
}

.fasilitas-foto {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-soft);
}
.fasilitas-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.fasilitas-card:hover .fasilitas-foto img {
    transform: scale(1.08);
}
.fasilitas-foto-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    font-weight: 800;
    color: var(--biru);
    background: linear-gradient(135deg, var(--bg-soft), #d4e4ec);
}

.fasilitas-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.fasilitas-badge-baik { background: #28a745; }
.fasilitas-badge-rusak-ringan { background: #ffc107; color: #333; }
.fasilitas-badge-rusak-berat { background: #c0392b; }

.fasilitas-body {
    padding: 18px 20px 20px;
}
.fasilitas-body h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 700;
}
.fasilitas-jumlah {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--biru);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.fasilitas-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .fasilitas-grid {
        grid-template-columns: 1fr;
    }
    .fasilitas-hero-num {
        font-size: 38px;
    }
}
/* ============================================================
   HALAMAN KONTAK
   ============================================================ */
.kontak-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
    align-items: start;
}

.kontak-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kontak-form-wrap {
    position: sticky;
    top: 80px;
}

.kontak-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
}

.kontak-card h3 {
    color: var(--biru);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* List kontak dengan icon */
.kontak-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kontak-list li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.kontak-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kontak-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--biru);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.kontak-list li:hover .kontak-icon {
    background: var(--biru);
    color: white;
}

.kontak-icon-wa {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}

.kontak-list li:hover .kontak-icon-wa {
    background: #25D366;
    color: white;
}

.kontak-list li > div {
    flex: 1;
    min-width: 0;
}

.kontak-list strong {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: 600;
}

.kontak-list span {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

.kontak-list a {
    color: var(--biru);
    text-decoration: none;
    font-weight: 500;
}
.kontak-list a:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* Maps */
.kontak-maps {
    padding: 25px;
}

.kontak-maps .map-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.kontak-maps .map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .kontak-layout {
        grid-template-columns: 1fr;
    }
    .kontak-form-wrap {
        position: static;
        order: 2;
    }
    .kontak-maps .map-wrapper {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .kontak-card {
        padding: 18px;
    }
    .kontak-icon {
        width: 34px;
        height: 34px;
    }
    .kontak-maps .map-wrapper {
        height: 200px;
    }
}
/* ============================================================
   POPUP PENGUMUMAN
   ============================================================ */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: var(--bg-card);
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: popup-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popup-in {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--biru);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.popup-close:hover {
    background: var(--biru);
    color: white;
    transform: rotate(90deg);
}

.popup-gambar {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background: var(--bg-soft);
}

.popup-gambar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-body {
    padding: 25px 30px 30px;
    text-align: center;
}

.popup-label {
    display: inline-block;
    background: var(--kuning);
    color: var(--biru);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.popup-body h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.popup-isi {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
}

.popup-isi p {
    margin-bottom: 10px;
}

.popup-isi strong {
    color: var(--text-primary);
}

.popup-isi a {
    color: var(--biru);
    text-decoration: underline;
}

.popup-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--biru);
    color: white !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.popup-btn:hover {
    background: var(--orange);
    transform: translateY(-2px);
    color: white !important;
}

/* Responsive Popup */
@media (max-width: 600px) {
    .popup-box {
        max-width: 100%;
        border-radius: 12px;
    }

    .popup-gambar {
        height: 160px;
    }

    .popup-body {
        padding: 20px 20px 25px;
    }

    .popup-body h3 {
        font-size: 18px;
    }

    .popup-isi {
        font-size: 13px;
    }

    .popup-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
}
/* ============================================================
   FOTO POSISI — Preview di Admin
   ============================================================ */
.foto-posisi-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-soft);
    padding: 18px;
    border-radius: 10px;
    margin: 18px 0;
    border: 1px dashed var(--border);
    flex-wrap: wrap;
}

.foto-preview-box {
    width: 180px;
    height: 225px;  /* rasio 4:5 */
    overflow: hidden;
    border-radius: 10px;
    background: #e0eaf0;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.foto-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: object-position 0.2s;
}

.foto-posisi-control {
    flex: 1;
    min-width: 200px;
}

.foto-posisi-control label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.foto-posisi-control select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--text-primary);
}

.foto-posisi-control select:focus {
    outline: none;
    border-color: var(--biru);
    box-shadow: 0 0 0 3px rgba(29, 95, 130, 0.12);
}

@media (max-width: 600px) {
    .foto-posisi-wrap {
        flex-direction: column;
        align-items: center;
    }
    .foto-posisi-control {
        width: 100%;
    }
}
/* ============================================================
   PAGE HEADER ROW — Judul kiri, box count kanan
   ============================================================ */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
    flex-wrap: wrap;
}

.page-header-row::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--orange);
}

.page-title {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.page-count-box {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-soft);
    border-radius: 20px;
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}

.page-count-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--biru);
    line-height: 1;
}

.page-count-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================================
   PRESTASI — Sub-title & Horizontal Scroll
   ============================================================ */
.prestasi-sub-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.prestasi-scroll-wrap {
    position: relative;
    margin-top: 5px;
    padding: 0 2px;
}

.prestasi-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 0 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--biru) var(--bg-soft);
}

.prestasi-scroll::-webkit-scrollbar {
    height: 8px;
}
.prestasi-scroll::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-radius: 4px;
}
.prestasi-scroll::-webkit-scrollbar-thumb {
    background: var(--biru);
    border-radius: 4px;
}
.prestasi-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--biru-dark);
}

/* Setiap card dalam scroll punya lebar = 1/4 container */
.prestasi-scroll .prestasi-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 200px;
    scroll-snap-align: start;
}

/* Tombol navigasi */
.prestasi-scroll-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--biru);
    font-weight: bold;
    transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
    padding: 0;
    line-height: 1;
    padding-bottom: 3px;
}

.prestasi-scroll-btn:hover:not(:disabled) {
    background: var(--biru);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.prestasi-scroll-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.prestasi-scroll-btn.prev { left: -12px; }
.prestasi-scroll-btn.next { right: -12px; }

/* Mode malam */
[data-theme="dark"] .prestasi-scroll-btn {
    background: rgba(40, 46, 54, 0.95);
    color: var(--kuning);
}

[data-theme="dark"] .prestasi-scroll-btn:hover:not(:disabled) {
    background: var(--kuning);
    color: var(--biru);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .prestasi-scroll .prestasi-card {
        flex: 0 0 calc((100% - 32px) / 3);
    }
}

@media (max-width: 800px) {
    .prestasi-scroll .prestasi-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }
    .prestasi-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .prestasi-scroll-btn.prev { left: -6px; }
    .prestasi-scroll-btn.next { right: -6px; }
}

@media (max-width: 480px) {
    .prestasi-scroll .prestasi-card {
        flex: 0 0 78%;
    }
    .page-title {
        font-size: 19px;
    }
    .page-count-num {
        font-size: 17px;
    }
    .page-count-label {
        font-size: 10px;
    }
    .page-count-box {
        padding: 5px 11px;
    }
    .prestasi-scroll-btn {
        display: none; /* di HP cukup swipe */
    }
    .prestasi-scroll {
        scrollbar-width: none;
    }
    .prestasi-scroll::-webkit-scrollbar {
        display: none;
    }
}
/* ============================================================
   GALERI — 2 Baris Grid + Baris 3 Scroll Horizontal
   ============================================================ */

/* Grid tetap seperti sebelumnya */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

/* Scroll horizontal untuk baris ke-3 dan seterusnya */
.galeri-scroll-wrap {
    position: relative;
    margin-top: 16px;
}

.galeri-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 0 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--biru) var(--bg-soft);
}

.galeri-scroll::-webkit-scrollbar {
    height: 8px;
}
.galeri-scroll::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-radius: 4px;
}
.galeri-scroll::-webkit-scrollbar-thumb {
    background: var(--biru);
    border-radius: 4px;
}
.galeri-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--biru-dark);
}

/* Setiap item di scroll = 1/4 lebar container */
.galeri-scroll .galeri-item {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 200px;
    scroll-snap-align: start;
}

/* Tombol navigasi */
.galeri-scroll-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--biru);
    font-weight: bold;
    transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
    padding: 0;
    line-height: 1;
    padding-bottom: 3px;
}

.galeri-scroll-btn:hover:not(:disabled) {
    background: var(--biru);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.galeri-scroll-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.galeri-scroll-btn.prev { left: -12px; }
.galeri-scroll-btn.next { right: -12px; }

/* Mode malam */
[data-theme="dark"] .galeri-scroll-btn {
    background: rgba(40, 46, 54, 0.95);
    color: var(--kuning);
}
[data-theme="dark"] .galeri-scroll-btn:hover:not(:disabled) {
    background: var(--kuning);
    color: var(--biru);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .galeri-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .galeri-scroll .galeri-item {
        flex: 0 0 calc((100% - 32px) / 3);
    }
}

@media (max-width: 800px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .galeri-scroll .galeri-item {
        flex: 0 0 calc((100% - 16px) / 2);
    }
    .galeri-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .galeri-scroll-btn.prev { left: -6px; }
    .galeri-scroll-btn.next { right: -6px; }
}

@media (max-width: 480px) {
    .galeri-grid {
        grid-template-columns: 1fr;
    }
    .galeri-scroll .galeri-item {
        flex: 0 0 78%;
    }
    .galeri-scroll-btn {
        display: none; /* di HP cukup swipe */
    }
    .galeri-scroll {
        scrollbar-width: none;
    }
    .galeri-scroll::-webkit-scrollbar {
        display: none;
    }
}
/* ============================================================
   TICKER / TEKS BERJALAN — Di bawah header
   ============================================================ */
.ticker-bar {
    display: flex;
    align-items: stretch;
    background: var(--kuning);
    color: var(--biru);
    font-size: 13px;
    font-weight: 600;
    height: 36px;
    overflow: hidden;
    border-bottom: 1px solid rgba(29, 95, 130, 0.15);
    position: sticky;
    top: 64px;  /* Menempel tepat di bawah header sticky */
    z-index: 98;
}

/* Label INFO di kiri */
.ticker-label {
    flex-shrink: 0;
    background: var(--biru);
    color: var(--kuning);
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
}

/* Area scroll */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 15px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    padding-left: 100%;
    will-change: transform;
}

.ticker-item {
    color: var(--biru);
    font-weight: 600;
}

.ticker-sep {
    color: var(--orange);
    margin: 0 15px;
    font-weight: 800;
    font-size: 16px;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-bar:hover .ticker-content {
    animation-play-state: paused;
}

@media (max-width: 600px) {
    .ticker-bar {
        height: 32px;
        font-size: 12px;
        top: 58px;  /* Sesuaikan dengan tinggi header di mobile */
    }
    .ticker-label {
        padding: 0 12px;
        font-size: 10px;
    }
    .ticker-content {
        animation-duration: 30s;
    }
    .ticker-sep {
        margin: 0 10px;
    }
}

/* ============================================================
   UKURAN HURUF
   ============================================================ */
html {
    font-size: 100%;
}

html.font-small {
    font-size: 90%;
}

html.font-large {
    font-size: 115%;
}

html.font-small body {
    font-size: 13px;
}

html.font-large body {
    font-size: 17px;
}

html.font-small h1 { font-size: 22px; }
html.font-small h2 { font-size: 18px; }
html.font-small h3 { font-size: 16px; }
html.font-small .detail-judul { font-size: 26px; }
html.font-small .hero-title { font-size: 26px; }

html.font-large h1 { font-size: 30px; }
html.font-large h2 { font-size: 24px; }
html.font-large h3 { font-size: 20px; }
html.font-large .detail-judul { font-size: 36px; }
html.font-large .hero-title { font-size: 34px; }

html.font-small .detail-isi { font-size: 14px; }
html.font-large .detail-isi { font-size: 18px; }

html.font-small article.berita-item p { font-size: 13px; }
html.font-large article.berita-item p { font-size: 17px; }

html.font-small .page-content p { font-size: 13px; }
html.font-large .page-content p { font-size: 17px; }

/* Responsive */
@media (max-width: 600px) {
    .font-btn-float {
        width: 50px;
        height: 36px;
        font-size: 12px;
    }
}

/* ============================================================
   UKURAN HURUF — Variabel yang diubah via class di <html>
   ============================================================ */
html {
    font-size: 100%; /* default */
}

html.font-small {
    font-size: 90%;
}

html.font-large {
    font-size: 115%;
}

/* Karena banyak ukuran pakai px, kita override beberapa yang penting */
html.font-small body {
    font-size: 13px;
}

html.font-large body {
    font-size: 17px;
}

/* Judul & elemen tertentu skala juga */
html.font-small h1 { font-size: 22px; }
html.font-small h2 { font-size: 18px; }
html.font-small h3 { font-size: 16px; }
html.font-small .detail-judul { font-size: 26px; }
html.font-small .hero-title { font-size: 26px; }

html.font-large h1 { font-size: 30px; }
html.font-large h2 { font-size: 24px; }
html.font-large h3 { font-size: 20px; }
html.font-large .detail-judul { font-size: 36px; }
html.font-large .hero-title { font-size: 34px; }

/* Konten utama */
html.font-small .container,
html.font-large .container {
    /* tetap sama */
}

html.font-small .detail-isi,
html.font-large .detail-isi {
    line-height: 1.8;
}

html.font-small .detail-isi { font-size: 14px; }
html.font-large .detail-isi { font-size: 18px; }

/* Artikel di home */
html.font-small article.berita-item p { font-size: 13px; }
html.font-large article.berita-item p { font-size: 17px; }

/* Paragraf page-content */
html.font-small .page-content p { font-size: 13px; }
html.font-large .page-content p { font-size: 17px; }

/* Responsive: sembunyikan di HP karena sudah kecil */
@media (max-width: 900px) {
    .font-size-group {
        margin: 8px auto 0;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .font-size-group {
        display: none; /* HP sudah kecil, tidak perlu toggle */
    }
}
/* ============================================================
   HALAMAN DONASI
   ============================================================ */

/* Sambutan */
.donasi-sambutan {
    background: linear-gradient(135deg, #f0f7fa, #e0eef5);
    border-left: 4px solid var(--biru);
    padding: 22px 26px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Tujuan */
.donasi-tujuan {
    background: linear-gradient(135deg, #fff9e0, #fff4d1);
    border-left: 4px solid var(--kuning);
    padding: 22px 26px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.donasi-tujuan h3 {
    color: var(--biru);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}
.donasi-tujuan p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Section */
.donasi-section {
    margin: 30px 0;
}
.donasi-section-title {
    font-size: 20px;
    color: var(--biru);
    margin-bottom: 20px;
    padding-left: 15px;
    position: relative;
    font-weight: 700;
}
.donasi-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background: var(--orange);
    border-radius: 3px;
}

.donasi-subsection {
    margin-bottom: 30px;
}
.donasi-sub-title {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

/* Grid kartu */
.donasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Kartu donasi */
.donasi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.donasi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(29, 95, 130, 0.12);
    border-color: var(--biru);
}

.donasi-card-header {
    background: var(--biru);
    color: white;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.donasi-card-ewallet .donasi-card-header {
    background: linear-gradient(135deg, var(--orange), #d8651f);
}

.donasi-card-body {
    padding: 18px;
}

.donasi-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 10px;
}
.donasi-label:first-child {
    margin-top: 0;
}

.donasi-rekening {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg-soft);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px dashed var(--border);
    margin-bottom: 10px;
}

.rekening-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--biru);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.8px;
    word-break: break-all;
}

.btn-copy {
    flex-shrink: 0;
    background: var(--biru);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.btn-copy:hover {
    background: var(--orange);
}
.btn-copy.copied {
    background: #28a745;
}

.donasi-atas-nama {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.donasi-ket {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* QRIS */
.donasi-qris-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 400px;
}
.donasi-qris-img {
    max-width: 280px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

/* Catatan */
.donasi-catatan {
    background: #fff4d1;
    border-left: 4px solid var(--orange);
    padding: 22px 26px;
    border-radius: 10px;
    margin: 30px 0;
}
.donasi-catatan h3 {
    color: var(--biru);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}
.donasi-catatan p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Konfirmasi */
.donasi-konfirmasi {
    background: linear-gradient(135deg, var(--biru), var(--biru-dark));
    color: white;
    padding: 30px 26px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
}
.donasi-konfirmasi h3 {
    color: var(--kuning);
    font-size: 18px;
    margin-bottom: 12px;
}
.donasi-konfirmasi p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.donasi-wa-btn {
    display: inline-flex;
    align-items: center;
    background: #25D366 !important;
    color: white !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.donasi-wa-btn:hover {
    background: #1EBE5A !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .donasi-grid {
        grid-template-columns: 1fr;
    }
    .donasi-sambutan,
    .donasi-tujuan,
    .donasi-catatan {
        padding: 18px 20px;
    }
    .rekening-num {
        font-size: 14px;
    }
}
/* ============================================================
   TOMBOL DONASI DI HEADER
   ============================================================ */
.nav-link.nav-donasi {
    background: var(--kuning) !important;
    color: var(--biru) !important;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(250, 237, 33, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.nav-link.nav-donasi:hover {
    background: var(--orange) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 120, 46, 0.4);
}

@media (max-width: 900px) {
    .nav-link.nav-donasi {
        margin-top: 8px;
    }
}