/* ==================================================
   GLOBAL
================================================== */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 🔒 kunci melebar saat zoom */
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

/* ==================================================
   Navbar Menu Dekstop dan Mobile
================================================== */

/* HAPUS font-family dari sini agar Icon tidak rusak */
.bbp-navbar * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Terapkan Font Montserrat di Induknya */
.bbp-navbar {
    font-family: "Montserrat", sans-serif;
    position: sticky;
    top: 0;
    z-index: 5000;
    width: 100%;
    background: linear-gradient(to right, #0f172a, #1e3a8a);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.2);

    /* Border bottom */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* PAKSA ICON MENGGUNAKAN FONT AWESOME (Supaya tidak kotak-kotak) */
.bbp-navbar i,
.bbp-navbar .fa-solid,
.bbp-navbar .fa-regular,
.bbp-navbar .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900; /* Pastikan ketebalan icon benar */
}

/* =========================================
   2. TOP BAR
   ========================================= */
.bbp-top {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    display: block;
}

.bbp-top .container {
    max-width: 1400px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.bbp-top-left {
    display: flex;
    gap: 40px;
    align-items: center;
}

.bbp-social-top {
    display: flex;
    gap: 15px;
    align-items: center;
}

.bbp-social-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.bbp-social-top a:hover {
    color: #ffffff;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bbp-social-top a:nth-child(1):hover {
    background: #1877f2;
}
.bbp-social-top a:nth-child(2):hover {
    background: #000000;
}
.bbp-social-top a:nth-child(3):hover {
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
}
.bbp-social-top a:nth-child(4):hover {
    background: #ff0000;
}

.top-item-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-icon-big {
    font-size: 24px;
    color: #1e3a8a;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 50%;
}

.top-text-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* baris jam */
.jam-row {
    display: grid;
    grid-template-columns: 90px auto auto; /* label | : | jam */
    column-gap: 1px; /* jarak kecil saja */
    font-size: 11px;
    line-height: 1.4;
}

/* titik dua */
.jam-row .colon {
    text-align: left;      /* jangan center */
    margin-left: -14px;     /* tarik mendekat ke teks hari */
    width: 8px;            /* konsisten */
}

.jam-row .waktu {
    padding-left: 6px;
    white-space: nowrap;
}
.label-top {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
}

.value-top {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.btn-ult-big {
    background: #ef4444;
    color: #ffffff !important;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 2px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

.btn-ult-big:hover {
    background: #b91c1c;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

/* =========================================
   3. MAIN NAV
   ========================================= */
.bbp-nav {
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px; /* Padding sedikit dikurangi */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px; /* Jarak logo ke menu dirapatkan (sebelumnya 30px) */
}

.logo img {
    height: 45px;
    display: block;
}

/* =========================================
   4. MENU SYSTEM (FIX ZI-WBK)
   ========================================= */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px; /* Jarak antar menu dirapatkan (sebelumnya 12px) */
    align-items: center;
    height: 100%;
    flex-wrap: nowrap; /* Mencegah menu turun baris */
}

.nav-menu > li {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
}

/* DEFAULT HIDDEN (Desktop) */
.mobile-only-logo,
.mobile-extra-content,
.close-menu-item {
    display: none !important;
}

.nav-menu > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 11.5px; /* Font dikecilkan 0.5px agar muat */
    font-weight: 700;
    height: 40px;

    /* FIX ZI-WBK: Paksa satu baris & kurangi padding */
    padding: 0 10px;
    white-space: nowrap;

    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu > li:hover > a,
.nav-menu > li > a.active {
    background: #ffffff;
    color: #1e3a8a !important;
}

.has-dropdown:hover > a {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    z-index: 6001;
}

.menu-icon {
    font-size: 13px;
    opacity: 0.9;
    display: inline-block;
}

.dropdown-arrow {
    font-size: 9px;
    margin-left: 2px;
    opacity: 0.6;
}

/* DROPDOWN PANEL (Desktop) */
.dropdown {
    position: absolute;
    top: 55px;
    left: 0;
    background: #ffffff;
    min-width: 280px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 6000;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    list-style: none;
    width: 100%;
}

.dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: normal; /* Dropdown boleh turun baris */
    height: auto;
}

.dropdown li a i {
    color: #94a3b8;
    width: 18px;
    text-align: center;
}

.dropdown li a:hover {
    background: #f1f5f9;
    color: #1e3a8a !important;
    padding-left: 20px;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 20px;
}

/* TOMBOL BURGER */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 5px;
    position: relative;
    z-index: 6002;
    transition: opacity 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   5. FIX RESPONSIVE & MOBILE
   =========================== */
@media (max-width: 1200px) {
    /* 1. Sembunyikan Top Bar Asli */
    .bbp-top {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* -- LOGIC PENTING: Sembunyikan burger luar jika menu terbuka -- */
    .bbp-navbar.mobile-open .menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        right: -320px;
        width: 300px;
        background: #0f172a;
        flex-direction: column;
        padding: 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 6000;
        justify-content: flex-start;
        height: auto;
        align-items: flex-start; /* Fix align mobile */
    }

    .bbp-navbar.mobile-open .nav-menu {
        right: 0;
    }

    .nav-menu > li {
        height: auto;
        display: block;
        width: 100%;
        margin-bottom: 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    /* --- TOMBOL CLOSE (X) DI DALAM MENU --- */
    .close-menu-item {
        display: flex !important;
        justify-content: flex-end; /* Posisi di kanan atas */
        padding: 0 0 10px 0;
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }

    .close-btn-inner {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        transition: 0.3s;
    }
    .close-btn-inner:hover {
        color: #ef4444; /* Merah saat hover */
        transform: rotate(90deg);
    }

    /* LOGO DI MENU MOBILE */
    .mobile-only-logo {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px !important;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        background: transparent !important;
    }

    .mobile-only-logo img {
        height: 50px;
        width: auto;
    }

    .nav-menu > li > a {
        width: 100%;
        height: auto;
        padding: 12px 15px;
        color: rgba(255, 255, 255, 0.8) !important;
        justify-content: space-between;
    }

    .nav-menu > li:hover > a,
    .nav-menu > li > a.active {
        background: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }

    /* --- DROPDOWN MOBILE (FIX DEMPET) --- */
    .dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        margin: 5px 0 10px 0;
        padding: 10px 5px;
        width: 100%;
        box-shadow: none;
        min-width: unset;
        transform: none;
    }

    .has-dropdown.open-sub .dropdown {
        display: block;
    }

    /* JARAK ANTAR ITEM DROPDOWN */
    .dropdown li {
        margin-bottom: 15px !important;
        border: none !important;
    }

    .dropdown li a {
        color: #cbd5e1 !important;
        padding: 12px 15px;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .dropdown li a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff !important;
        padding-left: 20px;
    }

    .has-dropdown.open-sub > a .dropdown-arrow {
        transform: rotate(180deg);
        transition: 0.3s;
    }

    /* --- EXTRA CONTENT (EMAIL/SOSMED) DI MOBILE --- */
    .mobile-extra-content {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-bottom: none !important;
        padding-bottom: 50px;
    }
    .mob-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        padding: 0 10px;
    }
    .mob-item i {
        font-size: 18px;
        width: 25px;
        text-align: center;
        color: #60a5fa;
    }
    .mob-btn {
        background: #ef4444;
        color: #fff;
        text-align: center;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 13px;
        text-decoration: none;
        display: block;
        width: 100%;
        margin-top: 5px;
    }
    .mob-social {
        display: flex;
        gap: 20px;
        margin-top: 10px;
        justify-content: center;
    }
    .mob-social a {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-decoration: none;
        font-size: 20px;
    }
}

/* =======================================================
   FIX MULTI-LEVEL DROPDOWN ZI-WBK (OPEN LEFT - 1 ARROW)
   ======================================================= */

@media (min-width: 992px) {
    /* Pastikan induk relatif */
    .nav-menu li.has-dropdown {
        position: relative;
    }

    /* 1. Atur Dropdown Level 2 & 3 agar muncul di KIRI */
    .dropdown .has-dropdown .dropdown {
        position: absolute;
        top: 0;
        left: auto;
        right: 100%;
        margin-top: -8px;
        margin-right: 2px; /* Jarak halus antar box */
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: all 0.3s ease;
        border-radius: 12px;
        min-width: 280px;
        z-index: 7000;
    }

    /* Munculkan saat di-hover */
    .dropdown .has-dropdown:hover > .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* 2. SEMBUNYIKAN PANAH BAWAAN HTML DI DALAM DROPDOWN */
    /* Ini agar tidak muncul dua panah */
    .dropdown .has-dropdown > a i.fa-solid.fa-chevron-right,
    .dropdown .has-dropdown > a i.dropdown-arrow {
        display: none !important;
    }

    /* 3. TAMBAHKAN PANAH BARU DI SISI KIRI (::before) */
    .dropdown .has-dropdown > a::before {
        content: "\f053"; /* FontAwesome Chevron-Left */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 9px;
        position: absolute;
        left: 12px; /* Posisi di paling kiri */
        color: #94a3b8;
        transition: color 0.3s;
    }

    /* Beri ruang di kiri teks agar tidak menabrak panah baru */
    .dropdown .has-dropdown > a {
        padding-left: 30px !important;
        position: relative;
    }

    /* Warna panah saat hover */
    .dropdown .has-dropdown:hover > a::before {
        color: #1e3a8a;
    }
}

/* FIX UNTUK MOBILE */
@media (max-width: 1200px) {
    .dropdown .has-dropdown .dropdown {
        position: static;
        width: 100%;
        display: none;
        background: rgba(0, 0, 0, 0.05);
        margin: 5px 0;
        box-shadow: none;
        padding-left: 15px;
    }

    /* Di mobile, biarkan panah bawaan tetap muncul atau sesuaikan */
    .dropdown .has-dropdown > a i.fa-solid.fa-chevron-right {
        display: inline-block !important;
        transform: rotate(90deg); /* Arahkan ke bawah untuk accordion */
    }
}

/* FIX UNTUK MOBILE (Mencegah menu kepotong) */
@media (max-width: 1200px) {
    .dropdown .has-dropdown .dropdown {
        position: static; /* Buat dia meluas ke bawah di mobile */
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none; /* Dikontrol oleh JS toggleSub Anda */
        background: rgba(0, 0, 0, 0.05);
        margin: 5px 0;
        box-shadow: none;
        padding-left: 15px; /* Indentasi bertingkat */
    }

    .has-dropdown.open-sub > .dropdown {
        display: block !important;
    }
}
/* ==================================================
   SECTION GLOBAL
================================================== */
.section {
    padding: 50px 0;
}

/* ============
   BERITA 
===============*/

/* Section */
.berita-terbaru {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
     background-color: #EEF4FB !important;
    padding: 44px 0 54px;
    color: #334155;
}

/* =========================================================
   GRID BERITA – KUNCI LAYOUT (BERANDA & INDEX)
   ========================================================= */

.berita-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 🔒 KUNCI 4 kolom */
    gap: 22px;
    margin-top: 18px;
    align-items: stretch; /* semua card sama tinggi */
}

/* =========================================================
   CARD
   ========================================================= */

.berita-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.berita-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.08);
}

/* =========================================================
   IMAGE
   ========================================================= */

.berita-img {
    position: relative;
    background: #f1f5f9;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* rapi di atas saja */
}

.berita-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   BADGE
   ========================================================= */

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    background: rgba(14, 165, 233, 0.1);
    color: #fff;
    border: 1px solid rgba(14, 165, 233, 0.22);
}

.badge-artikel {
    background: #0ea5e9;
}
.badge-alinea {
    background: #10b981;
}
.badge-ragam {
    background: #f59e0b;
}
.badge-lensa {
    background: #8b5cf6;
}
/* =========================================================
   BODY
   ========================================================= */

.berita-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1; /* dorong meta ke bawah */
    min-height: 0;
}

.berita-body a {
    text-decoration: none;
    color: inherit;
}

.berita-detail-content p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.9;
    margin-bottom: 1rem;

    /* biar justify rapi */
    hyphens: auto;
    word-spacing: 0.02em;
}

/* =========================================================
   JUDUL – DIKUNCI 2 BARIS
   ========================================================= */

.berita-body h4 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    color: #0f172a;

    min-height: calc(1.5em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-body a:hover h4 {
    color: #0284c7;
}

/* =========================================================
   RINGKASAN – DIKUNCI 3 BARIS
   ========================================================= */

.berita-body p {
    font-size: 14px;
    line-height: 1.85;
    font-weight: 400;
    color: #475569;
    margin: 0;

    min-height: calc(1.85em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   META – SELALU DI BAWAH
   ========================================================= */

.berita-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    font-size: 12.5px;
    color: #64748b;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
}

/* kanan (views + admin) */
.meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* icon mata */
.views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    font-weight: 500;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* tablet */
@media (max-width: 991px) {
    .berita-img img {
        height: 180px;
    }
}

/* mobile */
@media (max-width: 639px) {
    .berita-grid {
        grid-template-columns: 1fr;
    }

    .berita-img img {
        height: 200px;
    }
}

.berita-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    font-weight: 500;
}

.views i {
    font-size: 13px;
}

/* Button - AMAN kalaupun masuk grid */
.btn-center {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

/* kalau tombol ketarik masuk ke grid, paksa 1 baris penuh */
.berita-grid .btn-center {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.btn-berita {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 10px;
    background: #eaf6ff;
    border: 1px solid #cfeeff;
    color: #0369a1;
    font-weight: 400;
    text-decoration: none;
}

.btn-berita:hover {
    background: #dff1ff;
}

/* Responsive image */
@media (max-width: 991px) {
    .berita-img img {
        height: 180px;
    }
}

@media (max-width: 639px) {
    .berita-img img {
        height: 200px;
    }

    .berita-meta {
        white-space: normal;
    }
}

/* ===== DETAIL BERITA (RAPI & NORMAL) ===== */

main {
    padding-top: 5px !important;
}
.berita-detail {
    background: #f6f8fb;
    padding-top: 1px !important;
}

.berita-detail-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.berita-detail-title {
    font-size: 26px;
    margin-bottom: 6px;
    color: #0f172a;
}

.berita-detail-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.berita-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06);
    overflow: hidden;
}

.berita-detail-image {
    text-align: center;
    padding: 16px;
}

.berita-detail-image img {
    max-width: 75%;      /* 🔑 skala lebih kecil */
    height: auto;        /* 🔑 ikut rasio asli */
    max-height: 420px;   /* batas tinggi aman */
    object-fit: contain; /* TIDAK CROP */
    border-radius: 10px;
    display: inline-block;
}

.berita-detail-content {
    padding: 16px;
    line-height: 1.9;
    color: #475569;
}

.berita-detail-actions {
    margin-top: 12px;
}

.btn-kembali {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eaf6ff;
    border: 1px solid #cfeeff;
    color: #0369a1;
    text-decoration: none;
}

/* responsive */
@media (max-width: 640px) {
    .berita-detail {
        padding-top: 180px;
    }
    .berita-detail-title {
        font-size: 20px;
    }
    .berita-detail-image img {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .berita-detail-image img {
        max-width: 100%;
        max-height: 260px;
    }
}


/* ==================================================
   PENGUMUMAN
================================================== */
/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #f8fafc;
    color: #334155;
    min-height: 100vh;
}

/* SECTION STYLES */
.pengumuman-section {
    padding: 20px 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
.section-header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.judul-section {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    position: relative;
}

/* Garis dekorasi biru */
.header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, transparent 100%);
    border-radius: 2px;
    margin-top: 5px;
}

/* LIST CONTAINER */
.pengumuman-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ITEM CARD */
.pengumuman-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Indikasi bisa diklik */
}

.pengumuman-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

/* Dekorasi garis kiri saat hover */
.pengumuman-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3b82f6;
    opacity: 0;
    transition: 0.3s;
}

.pengumuman-item:hover::before {
    opacity: 1;
}

/* DATE BADGE (Kotak Tanggal) */
.date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    margin-right: 20px;
    flex-shrink: 0;
    line-height: 1;
    transition: 0.3s;
}

.pengumuman-item:hover .date-badge {
    background: #eff6ff;
    color: #3b82f6;
}

.date-badge .day {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}

.date-badge .month {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.date-badge .year {
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.8;
}

/* DOC ICON */
.doc-icon {
    font-size: 28px;
    color: #ef4444;
    /* Merah PDF */
    margin-right: 20px;
    flex-shrink: 0;
}

.doc-icon.image-type {
    color: #3b82f6;
    /* Biru Gambar */
}

/* CONTENT */
.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doc-title {
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    transition: 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pengumuman-item:hover .doc-title {
    color: #2563eb;
}

.doc-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.doc-meta i {
    font-size: 14px;
}

/* ACTION BUTTON (Mata) */
.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin-left: 10px;
}

.pengumuman-item:hover .action-btn {
    background: #eff6ff;
    color: #3b82f6;
    transform: scale(1.1);
}

/* =========================================
           MODAL / POPUP STYLES
           ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0; /* ⬅️ KUNCI PALING AMAN */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
    font-size: 14px;
}

.btn-close:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-download:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Modal Body */
.modal-body {
    flex: 1;
    position: relative;
    background: #e2e8f0;
    overflow: hidden;
}

.modal-body iframe,
#imageViewer {
    width: 100%;
    height: 100%;
}

#imageViewer {
    object-fit: contain;
    padding: 20px;
}

/* Fallback Message */
.fallback-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
    width: 100%;
    padding: 20px;
}

.fallback-msg i {
    font-size: 50px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.fallback-msg p {
    margin-bottom: 20px;
    color: #64748b;
    font-weight: 500;
}

.btn-fallback {
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: 0.2s;
}

.btn-fallback:hover {
    background: #2563eb;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .pengumuman-item {
        padding: 15px;
    }

    .date-badge {
        width: 55px;
        height: 55px;
        margin-right: 15px;
    }

    .date-badge .day {
        font-size: 18px;
    }

    .doc-icon {
        font-size: 24px;
        margin-right: 15px;
    }

    .doc-title {
        font-size: 14px;
    }

    .action-btn {
        display: none;
    }

    /* Hide eye button on mobile */
    .modal-container {
        width: 95%;
        height: 80vh;
    }
}

/* Warna untuk tipe PDF (Merah) */
.pengumuman-item.type-pdf {
    background-color: #fef2f2; /* Merah sangat muda */
    border-color: #fee2e2;
}

.pengumuman-item.type-pdf:hover {
    border-color: #b91919;
    background-color: #fff1f1;
}

/* Warna untuk tipe Gambar (Biru) */
.pengumuman-item.type-image {
    background-color: #eff6ff; /* Biru sangat muda */
    border-color: #dbeafe;
}

.pengumuman-item.type-image:hover {
    border-color: #125dd6;
    background-color: #f0f7ff;
}

/* Penyesuaian ikon agar kontras */
.type-pdf .doc-icon {
    color: #b91919;
}
.type-image .doc-icon {
    color: #125dd6;
}

/* Garis dekorasi mengikuti tipe file */
.pengumuman-item.type-pdf::before {
    background: #b91919;
}
.pengumuman-item.type-image::before {
    background: #125dd6;
}

/* ==================================================
   MASKOT
================================================== */
.maskot-riau {
    background: #fff;
}

.maskot-riau-wrap {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 60px;
    align-items: center;
}

.maskot-circle {
    width: 260px;
    height: 260px;
    background: #0485c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maskot-circle img {
    width: 75%;
}

.maskot-riau-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.maskot-riau-text p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 720px;
}

/* ==================================================
   YEL - YEL BALAI BAHASA
================================================== */
.yelyel-section {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.yelyel-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.1);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.yelyel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* HEADER */
.yelyel-header {
    margin-bottom: 50px;
    border-left: 5px solid #f59e0b;
    padding-left: 20px;
}

.yelyel-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.yelyel-header p {
    color: #94a3b8;
    margin-top: 8px;
    font-size: 16px;
}

/* LAYOUT */
.yelyel-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

/* TEKS */
.yelyel-text {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.yelyel-text.fading {
    opacity: 0;
}

.yelyel-badge {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    font-weight: 700;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.yelyel-badge.podcast {
    background: #ef4444;
    color: white;
}

.yelyel-title h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.yelyel-desc {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
}

.yelyel-highlight {
    color: #f59e0b;
    font-weight: 600;
}

/* --- VIDEO PLAYER FIXED --- */
.yelyel-video-wrapper {
    position: relative;
    width: 100%;
}

.yelyel-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    cursor: pointer;
}

/* Layer Thumbnail & Icon */
.thumb-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Default paling atas */
    transition: opacity 0.3s ease, visibility 0.3s;
    background: #000;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(245, 158, 11, 0.9);
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    padding-left: 5px;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    transition: 0.3s;
}

.yelyel-video-container:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Iframe */
.yelyel-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
    display: block;
    /* Default di bawah */
}

/* STATE: PLAYING (Kunci Perbaikannya Disini) */
.yelyel-video-container.is-playing .thumb-layer {
    opacity: 0;
    visibility: hidden;
    /* Pastikan benar-benar hilang */
    pointer-events: none;
    /* Agar klik tembus ke iframe */
}

.yelyel-video-container.is-playing iframe {
    z-index: 20;
    /* Iframe naik ke paling atas */
}

/* NAV BUTTONS */
.yelyel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 50;
    /* Di atas segalanya */
}

.yelyel-nav-btn:hover {
    background: #2563eb;
}

.nav-left {
    left: -25px;
}

.nav-right {
    right: -25px;
}

@media (max-width: 480px) {
    /* Section spacing */
    .yelyel-section {
        padding: 70px 16px;
    }

    /* Header */
    .yelyel-header {
        margin: 0 0 24px 0 !important;
        padding-left: 14px;
    }

    .yelyel-header h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .yelyel-header p {
        font-size: 14px;
        margin-top: 6px;
    }

    /* Layout jadi 1 kolom */
    .yelyel-wrap {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin: 0 !important;
    }

    /* Video FULL di atas */
    .yelyel-video-wrapper {
        order: 1;
        width: 100%;
    }

    /* HILANGKAN NAV KIRI KANAN */
    .yelyel-nav-btn {
        display: flex;
    width: 42px;
    height: 42px;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
}

    /* Teks di bawah video */
    .yelyel-text {
        order: 2;
        text-align: center;
        padding: 0 8px;
    }

    /* Badge */
    .yelyel-badge {
        font-size: 13px;
        padding: 6px 16px;
        margin-bottom: 12px;
    }

    /* Judul */
    .yelyel-title h2 {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    /* Deskripsi */
    .yelyel-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Play icon lebih proporsional */
    .play-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .yelyel-section {
        padding: 80px 20px;
    }

    .yelyel-header h2 {
        font-size: 28px;
    }

    .yelyel-title h2 {
        font-size: 26px;
    }

    .yelyel-desc {
        font-size: 15px;
    }

    .play-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .yelyel-wrap {
        gap: 40px;
    }

    .yelyel-title h2 {
        font-size: 28px;
    }

    .yelyel-desc {
        font-size: 15.5px;
    }
}

@media (min-width: 1400px) {
    .yelyel-container {
        max-width: 1280px;
    }
}

/* ==================================================
   KAMUS – HERO
================================================== */
.kamus-hero {
    background: linear-gradient(135deg, #2f3b43 0%, #3a4851 100%);
    padding: 90px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.kamus-hero-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* TEKS KIRI */
.kamus-hero-text h2 {
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 18px;
}

.kamus-hero-text h2 span {
    font-weight: 700;
}

.kamus-hero-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #e5e7eb;
    max-width: 640px;
}

.kamus-hero-text em {
    font-style: italic;
}

.kamus-hero-btn {
    margin-top: 26px;
}

.kamus-hero-btn a {
    display: inline-block;
    background: #ffffff;
    color: #1f2937;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.kamus-hero-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* GAMBAR KANAN */
.kamus-hero-visual {
    text-align: right;
}

.kamus-hero-visual img {
    max-width: 520px;
    width: 100%;
    transform: rotate(-8deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    border-radius: 6px;
}

/* GARIS PUTIH BAWAH */
.kamus-hero-divider {
    height: 12px;
    background: #ffffff;
    margin-top: 80px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .kamus-hero-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .kamus-hero-visual {
        text-align: center;
    }

    .kamus-hero-visual img {
        transform: none;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ==================================================
   Piagam Penghargaan
================================================== */
/* ============================
           RESET & BASE
           ============================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
           HERO SECTION
           ============================ */
.dokpres-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.dokpres-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.dokpres-hero h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dokpres-hero p {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================
           SECTION PRESTASI
           ============================ */
.section-header {
    display: flex;
    flex-direction: column; /* ⬅️ bikin ke bawah */
    align-items: flex-start; /* kiri rapi */
    gap: 10px;
    margin-bottom: 48px;
}

.section-header h3 {
    font-size: 32px;
    font-weight: 800; /* lebih tegas */
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    max-width: 520px; /* cegah teks kepanjangan */
    margin: 0;
}

/* Grid default (desktop non-slider) */
.dokpres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* ============================
           STYLE KARTU PIAGAM
           ============================ */
.piagam-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.piagam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.2);
    border-color: #fcd34d;
}

/* Thumb Image */
.piagam-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid #f59e0b;
}

.piagam-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.piagam-card:hover .piagam-thumb img {
    transform: scale(1.1);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.thumb-overlay i {
    color: #fff;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.piagam-card:hover .thumb-overlay {
    opacity: 1;
}

/* Content */
.piagam-content {
    padding: 25px;
    text-align: center;
    position: relative;
    flex: 1;
}

.piagam-year-badge {
    display: inline-block;
    background: #fffbeb;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
    border: 1px solid #fcd34d;
}

.piagam-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.piagam-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.watermark {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 80px;
    color: #f59e0b;
    opacity: 0.05;
    pointer-events: none;
    transform: rotate(-15deg);
    transition: 0.4s;
}

.piagam-card:hover .watermark {
    transform: rotate(0deg) scale(1.2);
    opacity: 0.08;
}

/* ============================
           MODAL / POPUP LIGHTBOX (KHUSUS GAMBAR)
           ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Latar belakang lebih gelap */
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-simple {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* PDF di Modal */
.modal-content-simple iframe {
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 5px solid #fff;
}

.modal-overlay.active .modal-content-simple {
    transform: scale(1);
}

/* Gambar Full di Modal */
.modal-content-simple img {
    max-width: 100%;
    max-height: 85vh;
    /* Agar tidak melebihi tinggi layar */
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 5px solid #fff;
    /* Bingkai putih */
}

/* Tombol Close (X) */
.modal-close-simple {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 45px;
    height: 45px;
    background: #ef4444;
    color: white;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    z-index: 10;
}

.modal-close-simple:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

/* Animasi Fade Up */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

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

/* ============================
   PRESTASI HORIZONTAL SLIDER
   ============================ */

.dokpres-section {
    padding-top: 80px;   /* geser seluruh isi ke bawah */
}

.dokpres-wrapper {
    overflow: visible;
    width: 100%;
    position: relative;
}

/* ubah grid jadi horizontal */
.dokpres-grid.horizontal {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* matikan scrollbar */
.dokpres-grid.horizontal::-webkit-scrollbar {
    display: none;
}

.dokpres-grid.horizontal {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* kartu fix width */
.dokpres-grid.horizontal .piagam-card {
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
}

/* ============================
   PANAH NAVIGASI
   ============================ */

.dokpres-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    z-index: 20; /* ⬅️ di atas kartu */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.dokpres-nav.prev {
    left: -56px;
}

.dokpres-nav.next {
    right: -56px;
}

.dokpres-nav:hover {
    background: #f8fafc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.dokpres-nav:active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* ============================
   RESPONSIVE PRESTASI SLIDER
   ============================ */

/* ============================
   TABLET & MOBILE KECIL
   ============================ */
@media (max-width: 768px) {
    .dokpres-grid.horizontal .piagam-card {
        min-width: 280px;
    }

    .dokpres-nav {
        width: 38px;
        height: 38px;
    }

    .dokpres-nav.prev {
        left: 6px;
    }

    .dokpres-nav.next {
        right: 6px;
    }
}

/* ============================
   MOBILE (≤640px)
   ============================ */
@media (max-width: 640px) {
    /* header prestasi */
    .section-header {
        text-align: center;
        align-items: center; /* mobile center */
        margin-bottom: 32px;
        padding: 0 12px;
    }

    .section-header h3 {
        font-size: 26px;
        line-height: 1.3;
        font-weight: 800;
        margin-bottom: 10px;
    }

    /* pastikan judul rapi di mobile */
    .section-header h3 br {
        display: none;
    }

    .section-header p {
        font-size: 14px;
        line-height: 1.6;
        color: #64748b;
        max-width: 320px;
        margin: 0 auto;
    }

    /* wrapper */
    .dokpres-wrapper {
        padding: 0 12px;
    }

    /* slider jadi swipe */
    .dokpres-grid.horizontal {
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        transform: none !important;
    }

    .dokpres-grid.horizontal .piagam-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: center;
    }

    /* sembunyikan panah */
    .dokpres-nav {
        display: none;
    }

    /* isi kartu */
    .piagam-content {
        padding: 20px 18px;
    }

    .piagam-card h4 {
        font-size: 16px;
        line-height: 1.4;
    }

    .piagam-card p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ============================
   TABLET (641px – 1024px)
   ============================ */
@media (min-width: 641px) and (max-width: 1024px) {
    .dokpres-grid.horizontal .piagam-card {
        flex: 0 0 calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }

    .dokpres-nav {
        width: 38px;
        height: 38px;
    }

    .dokpres-nav.prev {
        left: -28px;
    }

    .dokpres-nav.next {
        right: -28px;
    }
}

/* ============================
   DESKTOP (≥1025px)
   ============================ */
@media (min-width: 1025px) {
    .dokpres-grid.horizontal .piagam-card {
        flex: 0 0 calc((100% - 48px) / 3);
        max-width: calc((100% - 48px) / 3);
    }

    .dokpres-nav.prev {
        left: -22px;
    }

    .dokpres-nav.next {
        right: -22px;
    }
}


/* =========================================
   FOOTER MODERN INDIGO - BALAI BAHASA
   ========================================= */
.footer-clean {
    background: linear-gradient(to bottom, #0f172a, #020617);
    color: #e2e8f0;
    font-family: "Montserrat", sans-serif;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #eab308; /* Garis emas di atas */
}

/* Efek Dot Pattern Background */
.footer-clean::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuNCIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGN4PSIzIiBjeT0iMyIgcj0iMyIvPjxjaXJjbGUgY3g9IjEzIiBjeT0iMTMiIHI9IjMiLz48L2c+PC9zdmc+");
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 70px 24px 30px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.footer-brand {
    position: relative;
}

.footer-brand .footer-logo {
    display: inline-block; /* Putih bersih agar logo terlihat jelas */
    padding: 10px 14px; /* ruang glass */
    border-radius: 12px; /* kotak lembut */
    background: rgba(255, 255, 255, 0.12); /* glass */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Bayangan agar kotak terlihat muncul */
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.footer-brand .footer-logo:hover {
    transform: translateY(-5px); /* Efek melayang saat kursor di atas logo */
}

.footer-brand .footer-logo img {
    height: 65px; /* Menyesuaikan tinggi logo */
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-address {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 500;
}

/* TITLE STYLE */
.footer-clean h4 {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #facc15; /* Kuning Emas */
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-clean h4::before {
    content: "";
    width: 20px;
    height: 2px;
    background: #facc15;
    display: inline-block;
}

/* --- MAP RESPONSIVE --- */
.map-responsive {
    overflow: hidden;
    /* Membuat rasio aspek 16:9 (seperti video YouTube) agar proporsional */
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 12px; /* Membuat sudut map melengkung */
    border: 1px solid #cbd5e1;
    background: #e2e8f0; /* Placeholder warna abu saat loading */
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%; /* KUNCI: Lebar map mengikuti lebar layar HP */
    position: absolute;
    border-radius: 12px;
}

/* LIST STYLE */
.footer-clean ul li {
    margin-bottom: 12px;
}

.footer-clean ul li a {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-clean ul li a:hover {
    color: #facc15;
    padding-left: 8px;
}

/* MAP STYLE */
.footer-map iframe {
    width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(40%) contrast(1.1);
    transition: all 0.5s ease;
}

.footer-map iframe:hover {
    filter: grayscale(0%);
    border-color: #facc15;
}

/* DIVIDER & BOTTOM */
.footer-divider {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #facc15;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* SOCIAL MEDIA ICONS */
.footer-socials {
    display: flex;
    gap: 32px;
    position: absolute;
    top: 295px; /* ⬅️ KUNCI SEJAJAR */
    left: 0;
}
.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05); /* Warna dasar gelap transparan */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efek Menyala Saat Hover */
.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: #ffffff;
}

/* Warna Spesifik Saat Menyala */
.social-icon.facebook:hover {
    background: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
    border-color: #1877f2;
}

.social-icon.instagram:hover {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
    box-shadow: 0 0 20px rgba(214, 36, 159, 0.6);
    border-color: transparent;
}

.social-icon.tiktok:hover {
    background: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 2px 2px 0 #ff0050,
        -2px -2px 0 #00f2ea;
    border-color: #333;
}

.social-icon.youtube:hover {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    border-color: #ff0000;
}

.social-icon.whatsapp:hover {
    background: #1a7c0a;
    box-shadow: 0 0 20px rgba(6, 169, 17, 0.6);
    border-color: #1fc90f;
}

.social-icon.email:hover {
    background: #fbff09;
    box-shadow: 0 0 20px rgba(210, 200, 3, 0.6);
    border-color: #cdcd0e;
}

/* Update Grid agar kolom statistik lebih lebar */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.8fr 1.2fr; /* Kolom ke-3 diperlebar untuk grafik */
    gap: 40px;
    align-items: flex-start;
}
/* Container Grafik yang lebih panjang dan tinggi */
.footer-stats-container {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 25px; /* Padding samping diperbesar */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    height: 260px; /* Sedikit lebih tinggi agar HD */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 20;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h5 {
    font-size: 12px;
    font-weight: 700;
    color: #facc15;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Memastikan chart mengisi ruang secara proporsional */
#visitorChart {
    width: 100% !important;
    height: 160px !important;
    cursor: pointer; /* Kunci tinggi canvas agar tidak narik berlebihan */
}

/* Responsif untuk Tablet & HP */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-stats-container {
        height: 220px;
        padding: 15px;
    }
}

/* Styling Kotak Angka Harian & Mingguan */
.stats-counter-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1); /* Background transparan */
    padding: 10px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #facc15; /* Warna Emas/Kuning agar menonjol */
}

/* Styling Container Chart */
.footer-chart-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-header h5 {
    font-size: 13px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.canvas-holder {
    position: relative;
    height: 160px; /* Tinggi Chart dibatasi agar tidak terlalu besar */
    width: 100%;
}

/* ==================================================
   MOBILE CONTENT FIX (WAJIB)
================================================== */
@media (max-width: 768px) {
    /* container full width di mobile */
    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* BERITA */
    .berita-grid {
        grid-template-columns: 1fr;
    }

    /* PENGUMUMAN */
    .pengumuman-wrap {
        grid-template-columns: 1fr;
    }

    /* MASKOT */
    .maskot-riau-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .maskot-circle {
        margin: 0 auto;
    }
}

.section-divider {
    margin: 50px 0;
    height: 1.5px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}

/* ================= KATA PENGANTAR – MODERN ================= */
.kr-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.kr-wrap {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

/* ===== TEXT ===== */
.kr-text h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
    position: relative;
}

.kr-text h2::after {
    content: "";
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, #0485c7, #0ea5e9);
    display: block;
    margin-top: 12px;
    border-radius: 4px;
}

.kr-lead {
    font-size: 17px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: left;
}

.kr-text p {
    font-size: 15px;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 14px;

    /* FIX RATA KIRI–KANAN */
    text-align: justify;
    text-justify: inter-word;

    /* BIAR JUSTIFY RAPI */
    hyphens: auto;
    word-spacing: 0.02em;
}

.kr-nama {
    margin-top: 28px;
    padding-left: 16px;
    border-left: 4px solid #0ea5e9;
}

.kr-nama strong {
    font-size: 16px;
    color: #0f172a;
}

.kr-nama span {
    font-size: 14px;
    color: #64748b;
}

/* ===== FOTO ===== */
.kr-foto {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.kr-foto img {
    max-width: 100%;
    width: 100%;
    max-width: 420px; /* batas aman desktop */
    height: auto;
    border-radius: 24px;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.15));
    transform: translateY(20px);
}

/* ===== ANIMATION (INITIAL STATE) ===== */
.kr-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease;
}

.kr-reveal.show {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .kr-wrap {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .kr-foto {
        justify-content: center;
    }
    .kr-foto img {
        max-width: 38s0px;
    }

    .kr-text h2 {
        font-size: 30px;
    }
}
/* =====================
   FIX KATA PENGANTAR – MOBILE ONLY
===================== */
@media (max-width: 768px) {
    .kr-section {
        padding: 56px 0;
    }

    .kr-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }

    .kr-text {
        order: 1;
    }

    .kr-foto {
        order: 2;
    }

    .kr-text h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .kr-lead {
        font-size: 15px;
    }

    .kr-text p {
        font-size: 14px;
        line-height: 1.75;
        text-align: left;

        /* cegah overflow */
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }

    .kr-nama {
        padding-left: 12px;
        margin-top: 20px;
    }

    /* 🔑 FOTO JANGAN DORONG LAYOUT */
    .kr-foto img {
        max-width: 100%;
        transform: none;
    }
}

/* ==================================================
   HERO SLIDER
================================================== */
:root {
    --accent-gold: #facc15;
    --vivid-blue: #38bdf8;
    --text-white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 50vh;
    background: #020617;
    overflow: hidden;
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* --- BACKGROUND --- */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        circle,
        rgba(15, 23, 42, 0.4) 0%,
        rgba(2, 6, 23, 0.9) 100%
    );
}

.content-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-white);
    padding: 0 20px;
}

/* --- UPDATE: WELCOME BADGE (Lebih Besar & Naik) --- */
.welcome-badge {
    position: absolute;
    top: 90px;
    /* NAIK KE ATAS (Sebelumnya 120px) */

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);

    padding: 10px 35px;
    /* Padding diperbesar */
    border-radius: 50px;

    font-size: 1.2rem;
    /* HURUF DIPERBESAR (Sebelumnya 0.9rem) */
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    /* Lebih tebal */
    color: var(--accent-gold);

    animation: fadeInDown 1s ease-out;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
    /* Tambah shadow biar pop-up */
}

/* --- TEXT SEQUENCES --- */
.text-sequence {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.text-sequence.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* STYLE SEQUENCE 1 (BRAND) */
.brand-title {
    font-size: clamp(2rem, 5vw, 4rem);
    /* Sedikit diperbesar */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--vivid-blue);
    text-transform: uppercase;
    margin-top: 10px;
}

/* STYLE SEQUENCE 2 (SERVICE) */
.main-text {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
}

.highlight-text {
    color: var(--accent-gold);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.typed-cursor {
    color: var(--accent-gold);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    /* Penyesuaian Mobile agar tidak menabrak */
    .welcome-badge {
        top: 85px;
        font-size: 1rem;
        /* Ukuran mobile disesuaikan */
        padding: 8px 20px;
    }

    .brand-title {
        font-size: 2rem;
    }

    .brand-sub {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* =======================================================
   TOKOH BAHASA & SASTRA (STATIC CARD & FIXED LAYOUT)
   ======================================================= */

/* --- RESET & BASIC SETUP --- */
.tokoh-section * {
    box-sizing: border-box;
}
body {
    overflow-x: clip;
}

body.modal-open {
    overflow: hidden;
    position: relative;
}
.tokoh-section {
    padding: 60px 0;
    background-color: #ffffff !important; /* Paksa Putih */
    position: relative;
    width: 100%;
}

.tokoh-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* --- HEADER --- */
.tokoh-header {
    text-align: center;
    margin-bottom: 20px;
}
.tokoh-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.tokoh-title span {
    color: #2563eb;
}
.title-line {
    width: 70px;
    height: 5px;
    background: #2563eb;
    margin: 15px auto 0;
    border-radius: 20px;
}

/* --- SLIDER WRAPPER --- */
.slider-wrapper-relative {
    position: relative;
    padding: 0 60px; /* Space untuk panah */
    overflow-x: hidden; /* ✅ TAMBAHAN */
}

/* FIX PADDING AGAR TIDAK KEPOTONG SAAT HOVER */
.swiper.tokohSlider {
    padding-top: 50px !important; /* Ruang aman atas */
    padding-bottom: 50px !important; /* Ruang aman bawah */
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-top: -20px; /* Kompensasi visual */
    overflow: hidden;
}

.swiper-slide {
    height: auto;
    display: flex;
    background: transparent !important;
    pointer-events: auto;
}

/* --- CARD DESIGN (STATIS - TIDAK NAIK) --- */
.tokoh-card {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    /* Transisi hanya pada border & shadow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #f1f5f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tokoh-card:hover {
    /* HAPUS TRANSFORM NAIK */
    transform: none;

    /* Efek aktif: Border biru & shadow sedikit lebih tebal */
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
    z-index: 10;
}

/* GAMBAR */
.card-img-wrapper {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    background-color: #f8fafc;
}

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

/* INFO TEKS */
.tokoh-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 5px;
}
.tokoh-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* --- NAVIGASI PANAH --- */
.tokoh-next,
.tokoh-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.tokoh-next:hover,
.tokoh-prev:hover {
    background-color: #2563eb;
    color: #fff;
    transform: translateY(-50%);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.tokoh-prev {
    left: 0;
}
.tokoh-next {
    right: 0;
}

/* --- MODAL POPUP (COMPACT SIZE) --- */
.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 1050; /* jangan 10000 */

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.custom-modal.active .modal-backdrop {
    opacity: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

header,
.navbar,
.main-navbar {
    position: relative;
    z-index: 1100;
}

.modal-panel {
    position: relative;
    z-index: 2;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.modal-inner {
    display: flex;
    width: 650px;
    max-width: calc(100vw - 32px);
    max-height: 80vh;

    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.custom-modal.active .modal-panel {
    transform: scale(1);
}

.modal-left {
    width: 40%;
    background-color: #f1f5f9;
    position: relative;
}
.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-right {
    width: 60%;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 1.8rem;
    color: #0f172a;
    margin: 0 0 10px 0;
    font-weight: 800;
    line-height: 1.2;
}
.modal-divider {
    width: 40px;
    height: 4px;
    background: #2563eb;
    margin-bottom: 15px;
    border-radius: 10px;
}
.modal-desc {
    line-height: 1.6;
    color: #475569;
    font-size: 0.95rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
}
.close-btn:hover {
    background: #ef4444;
    color: #fff;
}

@media (max-width: 768px) {

    /* ======================
       MODAL WRAPPER
       ====================== */
    .custom-modal {
        padding: 16px;
    }

    /* ======================
       PANEL & INNER
       ====================== */
    .modal-panel {
        width: 100%;
        max-width: 420px;
        margin: auto;
    }

    .modal-inner {
        flex-direction: column;
        width: 100%;
        max-height: 90vh;
        border-radius: 18px;
    }

    /* ======================
       GAMBAR
       ====================== */
    .modal-left {
        width: 100%;
        max-height: 55vh;            /* Biar dominan tapi aman */
        padding: 12px;
        background: #f8fafc;

        display: flex;
        align-items: center;
        justify-content: center;

        border-bottom: 1px solid #e5e7eb;
    }

    /* GAMBAR */
    .modal-left img {
        width: 100%;
        height: auto;
        max-height: 55vh;

        object-fit: contain;         /* UTUH */
        object-position: center;     /* TENGAH */

        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    /* ======================
       TEKS
       ====================== */
    .modal-right {
        width: 100%;
        padding: 20px;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .modal-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* ======================
       TOMBOL CLOSE
       ====================== */
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;

        top: 10px;
        right: 10px;

        line-height: 1;
        padding: 0;

        background: #ef4444;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    
    .tokoh-prev,
    .tokoh-next {
        display: none !important;
    }

    /* ======================
       BACKDROP (ANTI BUG MOBILE)
       ====================== */
    .custom-modal.active .modal-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.75);
    }
}


/* ==================================================
   FASILITAS SLIDER (rapi + responsif mobile)
================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

/* ============================
    FASILITAS SECTION
============================ */
.fasilitas-section {
    padding: 80px 20px;
    overflow: hidden;
    /* Mencegah scrollbar horizontal pada body */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* JUDUL */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 50px;
}

.section-title span {
    color: #2563eb;
    /* Warna Aksen Biru */
    display: block;
    /* Turun baris di mobile jika perlu */
}

@media (min-width: 768px) {
    .section-title span {
        display: inline;
    }
}

/* WRAPPER UTAMA SLIDER */
.fasilitas-wrapper {
    position: relative;
    padding: 0 20px;
    /* Memberi ruang untuk tombol panah */
}

/* WINDOW SLIDER (MASKING) */
.fasilitas-slider-window {
    overflow: hidden;
    width: 100%;
    padding: 10px 5px 30px 5px;
    /* Padding bawah untuk bayangan */
}

/* TRACK YANG BERGERAK */
.fasilitas-track {
    display: flex;
    gap: 25px;
    /* Jarak antar kartu */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* CARD STYLE */
.fasilitas-card {
    /* Logika Lebar: 
               Desktop (3 item): calc((100% - (2 * gap)) / 3) 
               Tablet (2 item): calc((100% - gap) / 2)
               Mobile (1 item): 100% 
            */
    flex: 0 0 100%;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.fasilitas-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
}

/* GAMBAR KARTU */
.card-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #cbd5e1;
    /* Placeholder color */
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fasilitas-card:hover .card-img-box img {
    transform: scale(1.05);
}

/* KONTEN KARTU */
.fasilitas-card-content {
    padding: 25px;
    flex: 1;
    /* Mengisi sisa ruang agar tinggi kartu sama */
    display: flex;
    flex-direction: column;
}

.fasilitas-card-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.fasilitas-card-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* TOMBOL SELENGKAPNYA */
.btn-fasilitas {
    display: inline-block;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-fasilitas:hover {
    color: #1e3a8a;
    letter-spacing: 0.5px;
}

/* NAVIGATION ARROWS */
.fasilitas-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #1e293b;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.fasilitas-arrow svg {
    width: 24px;
    height: 24px;
}

.fasilitas-arrow:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.fasilitas-arrow-left {
    left: -25px;
}

.fasilitas-arrow-right {
    right: -25px;
}

/* RESPONSIVE BREAKPOINTS */
@media (min-width: 640px) {
    .fasilitas-card {
        flex: 0 0 calc((100% - 25px) / 2);
    }

    /* 2 Item */
}

@media (min-width: 1024px) {
    .fasilitas-card {
        flex: 0 0 calc((100% - 50px) / 3);
    }

    /* 3 Item */
    .fasilitas-arrow-left {
        left: -60px;
    }

    .fasilitas-arrow-right {
        right: -60px;
    }
}

/* ==================================================
   ACTIVE SUBMENU (SIMPLE & ELEGAN)
================================================== */
.nav-item > a {
    transition: background 0.2s ease;
}

.nav-item.active > a {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-weight: 600;
}

.dropdown-menu li.active > a,
.dropdown-menu li > a:hover {
    background: rgba(255, 255, 255, 0.22);
    font-weight: 600;
}

/* Dropdown utama */
.nav-item {
    position: relative;
}

/* Tampilkan dropdown level 1 */
.nav-item:hover > .dropdown-menu {
    display: block;
}

/* Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    display: none; /* Sembunyikan secara default */
}
/* Hover submenu */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Fix untuk Mobile agar bisa diklik bertahap */
@media (max-width: 991px) {
    .nav-menu .dropdown .dropdown {
        padding-left: 15px; /* Memberi jarak agar terlihat berjenjang */
        background: rgba(0, 0, 0, 0.03);
    }
}

/* Link style */
.dropdown-menu li a {
    display: block;
    padding: 6px 12px;   /* ⬅ lebih rapat */
    line-height: 1.25;   /* ⬅ teks lebih dekat */
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================
   Artikel Terbaru (Clone UI) - Responsive
========================= */

.artikel-detail-content p,
.bb33-card p,
.berita-body p {
    text-align: justify;
    text-justify: inter-word;
}

.bb33-artikel {
    background: #f6f8fb;
    padding: 38px 0 46px;
}

.bb33-title {
    text-align: center;
    font-weight: 800;
    margin: 0 0 18px;
    color: #0f172a;
    letter-spacing: 0.2px;
    font-size: clamp(22px, 3.2vw, 30px);
}
.bb33-title span {
    color: #0ea5e9;
}

.bb33-artikel-wrap {
    position: relative;
    padding: 0 10px; /* ruang untuk panah biar tidak kepotong */
}

/* ===== PANAH ===== */
.bb33-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #26a7e0;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.16);
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.bb33-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.bb33-arrow-left {
    left: -6px;
}
.bb33-arrow-right {
    right: -6px;
}

.bb33-arrow:hover {
    background: #0e95cc;
    transform: translateY(-50%) scale(1.05);
}
.bb33-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.bb33-arrow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ===== TRACK (buat swipe mobile + snap) ===== */
.bb33-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 44px) / 3);
    gap: 22px;

    overflow-x: auto; /* penting: bisa swipe */
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* penting: snap */
    -webkit-overflow-scrolling: touch;

    padding: 10px 2px;
    scrollbar-width: none; /* hide scrollbar firefox */
}
.bb33-track::-webkit-scrollbar {
    display: none; /* hide scrollbar chrome */
}

.bb33-slide {
    min-width: 0;
    scroll-snap-align: start; /* snap tiap card */
}

.bb33-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.08);
    overflow: hidden;
    border: 1px solid #eef2f7;
}

/* Top area */
.bb33-card-top {
    display: flex;
    gap: 14px;
    padding: 14px 14px 8px;
}

.bb33-thumb {
    width: 110px;
    height: 88px;
    background: #f1f5f9;
    border-radius: 10px;
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
}

/* watermark ala screenshot (lingkaran samar + garis miring) */
.bb33-watermark {
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 55% 45%,
            rgba(148, 163, 184, 0.3) 0 26px,
            transparent 27px
        ),
        linear-gradient(
            135deg,
            transparent 0 62%,
            rgba(148, 163, 184, 0.18) 62% 68%,
            transparent 68% 100%
        ),
        linear-gradient(
            135deg,
            transparent 0 18%,
            rgba(148, 163, 184, 0.18) 18% 24%,
            transparent 24% 100%
        );
    opacity: 0.7;
}

.bb33-main {
    flex: 1;
    min-width: 0;
}

.bb33-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #63b11e;
    background: rgba(99, 177, 30, 0.14);
    border: 1px solid rgba(99, 177, 30, 0.25);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.bb33-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bb33-card-title a {
    color: inherit;
    text-decoration: none;
}
.bb33-card-title a:hover {
    color: #0ea5e9;
}

/* Bottom area */
.bb33-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #eef2f7;
}

.bb33-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bb33-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    flex: 0 0 auto;
}
.bb33-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bb33-author-name {
    font-size: 13px;
    font-weight: 400;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.bb33-views {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 400;
    font-size: 13px;
    white-space: nowrap;
}

.bb33-eye {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(99, 177, 30, 0.35);
    color: #63b11e;
    display: grid;
    place-items: center;
}
.bb33-eye svg {
    width: 14px;
    height: 14px;
}

/* Dots */
.bb33-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.bb33-dot {
    width: 26px;
    height: 4px;
    border-radius: 999px;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    opacity: 1;
}
.bb33-dot.active {
    background: #26a7e0;
}

/* CTA */
.bb33-cta {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.bb33-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    background: #dff6ff;
    border: 1px solid #bfefff;
    color: #0b78b9;
    font-weight: 400;
    text-decoration: none;
}
.bb33-btn:hover {
    background: #cff2ff;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .bb33-track {
        grid-auto-columns: calc((100% - 22px) / 2);
    }
    .bb33-author-name {
        max-width: 160px;
    }
}

@media (max-width: 639px) {
    .bb33-track {
        grid-auto-columns: 88%;
        gap: 14px;
        padding: 8px 2px;
    }
    .bb33-arrow {
        display: none; /* mobile cukup swipe */
    }
    .bb33-thumb {
        width: 96px;
        height: 76px;
    }
    .bb33-card-top {
        gap: 12px;
        padding: 12px 12px 8px;
    }
    .bb33-card-bottom {
        padding: 10px 12px;
    }
    .bb33-author-name {
        max-width: 140px;
    }
}

@media (max-width: 640px) {
    .berita-detail-content p,
    .artikel-detail-content p {
        text-align: justify;
        text-justify: inter-word;
        /* biar tidak renggang */
        hyphens: auto;
        word-spacing: 0.01em;
    }
}

/* =======================================================
   POPUP PANTUN - STYLES
   ======================================================= */

/* =======================================================
   MAHKOTA KALAM SECTION (COMPACT & STATIC)
   ======================================================= */
.mahkota-section * {
    box-sizing: border-box;
}

.mahkota-section {
    padding: 40px 0;
    background-color: #ffffff;
    position: relative;
    width: 100%;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.mahkota-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* HEADER & TITLES */
.mahkota-header {
    text-align: left;
    margin-bottom: 25px;
}
.mahkota-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.mahkota-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0;
}
.mahkota-sub-text {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* TABS NAVIGATION */
.mahkota-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.mk-tab-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s;
}
.mk-tab-btn.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

/* SLIDER & ARROWS */
.mk-slider-wrapper {
    position: relative;
    padding: 0 45px;
}
.swiper.mahkotaSwiper {
    padding: 10px 5px 20px 5px !important;
    overflow: hidden;
}
.mk-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}
.mk-arrow:hover {
    background: #1e3a8a;
    color: #ffffff;
}
.mk-prev {
    left: 0;
}
.mk-next {
    right: 0;
}

/* COMPACT CARD DESIGN */
.mk-card-box {
    width: 100%;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}
.mk-img-frame {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    background-color: #f8fafc;
}
.mk-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LABELS & TEXT */

.label-bahasa {
    background: #3b82f6;
}
.label-sastra {
    background: #ea580c;
}
.mk-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.mk-info {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.mahkota-pane {
    display: none;
}
.mahkota-pane.active {
    display: block;
}
.mk-empty-msg {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-style: italic;
}

@media (max-width: 768px) {
    .mk-slider-wrapper {
        padding: 0;
    }
    .mk-arrow {
        display: none;
    }
    .mk-img-frame {
        height: 200px;
    }
}

/* ===========================
   Slider Hero Fullscreen
   =========================== */

/* SLIDE */
.slide-maklumat {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* BACKGROUND (blur & gelap tipis) */
.maklumat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: scale(1.1);
    opacity: 0.35;
}

/* KONTEN UTAMA */
.maklumat-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: flex-start; /* ⬅️ DARI center */
    justify-content: center;

    padding-top: 30px; /* ⬅️ jarak aman dari navbar */
}

/* GAMBAR UTAMA (UTUH & CERAH) */
.maklumat-content img {
    max-width: 90%;
    max-height: 78%;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container Full Screen */
.hero-container {
    position: relative;
    max-width: 100%;
    height: 75vh;
    background: #000;

    /* FIX GAP: Menghilangkan garis putih antara header dan slider */
    margin-top: -5px !important;
    display: block;
}

/* Swiper Styles */
.swiper {
    width: 100%;
    max-width: 100%;
    height: 100%;
}
.hero-container .swiper-wrapper {
    width: 100%;
    height: 100%;
}
/* Pastikan Flexbox aktif sempurna untuk memusatkan isi */
.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;

    /* SETTINGAN POSISI TENGAH */
    display: flex !important; /* Paksa Flexbox */
    justify-content: center !important; /* Tengah secara Horizontal (Kiri-Kanan) */
    align-items: center !important; /* Tengah secara Vertikal (Atas-Bawah) */
    text-align: center !important; /* Teks rata tengah */

    background: #000;
    overflow: hidden;
}
/* Gambar Background */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc; /* warna pinggir */
    z-index: 1;
    display: block; /* Mencegah margin inline */
}

/* Overlay Gelap */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: #fff;

    /* Agar teks tidak melebar ke pinggir layar */
    width: 100%;
    max-width: 900px; /* Batasi lebar agar enak dibaca */
    margin: 0 auto; /* Pastikan margin kanan-kiri otomatis */
    padding: 20px;

    /* Paksa teks rata tengah di dalam kotak */
    text-align: center !important;

    animation: fadeInUp 1s ease-out;
}

.slide-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: 1px;
}

.slide-desc {
    margin-top: 10px;
    font-size: clamp(14px, 1.6vw, 18px);
    opacity: 0.9;
}
/* Pagination (Titik-titik bawah) - Warna Putih */
.swiper-pagination-bullet-active {
    background: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Popup Style */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-box {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.popup-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff0000;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Animations */
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2rem;
    }
    .slide-desc {
        font-size: 1rem;
    }
}

/* --- KUSTOMISASI DOTS (TITIK NAVIGASI) --- */

/* Warna titik saat TIDAK aktif */
.swiper-pagination-bullet {
    background-color: #ffffff !important; /* Paksa jadi putih */
    opacity: 0.5 !important; /* Agak transparan (50%) supaya beda */
    width: 10px; /* (Opsional) Sesuaikan ukuran */
    height: 10px;
}

/* Warna titik saat SEDANG aktif */
.swiper-pagination-bullet-active {
    background-color: #ffffff !important; /* Putih terang mutlak */
    opacity: 1 !important; /* Tidak transparan sama sekali */
    transform: scale(1.2); /* (Opsional) Sedikit lebih besar saat aktif */
}

/* ===========================
   Chatbot
   =========================== */
/* --- RESET & FIX OVERFLOW --- */
#icak-chatbot-container,
#icak-chatbot-container * {
    box-sizing: border-box;
}

#icak-chatbot-container {
    font-family: "Plus Jakarta Sans", sans-serif;
    z-index: 9999;
    position: fixed;
    bottom: 0;
    right: 0;
    pointer-events: none; /* Agar container tidak menghalangi klik di web */
    overflow: clip;
    max-width: 100vw;
}

#icak-chatbot-container * {
    box-sizing: border-box;
    /* JANGAN masukkan font-family di sini agar icon tidak hilang */
}

/* Aktifkan klik hanya untuk elemen chatbot */
#icak-chatbot-container #icak-trigger-btn,
#icak-chatbot-container #icak-chat-window {
    pointer-events: auto;
}

/* Pastikan icon FontAwesome menggunakan font aslinya */
#icak-chatbot-container i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* 2. TOMBOL FLOATING (TRIGGER) */
#icak-trigger-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
    padding: 0;
}

.tokoh-slider,
.swiper,
.carousel {
    overflow-x: hidden;
    max-width: 100%;
}

#icak-trigger-btn:hover {
    transform: translateZ(0);
}

.tooltip-text {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    white-space: nowrap;
}

#icak-trigger-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* 3. JENDELA CHAT */
#icak-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 60px); /* Anti-overflow untuk laptop teman */
    height: 500px;
    max-height: 70vh;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    border: 1px solid #e2e8f0;
}

body {
    overflow-x: clip;
}

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

.icak-header {
    background: #1e3a8a;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.header-icon {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    color: white !important;
}

.icak-header h4 {
    font-size: 16px;
    margin: 0;
    font-weight: 700;
    color: white;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
}

/* 5. BODY & BUBBLES */
.icak-body {
    flex: 1;
    background: #f8fafc;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    animation: fadeInChat 0.3s ease;
}

.bot-msg {
    align-self: flex-start;
    background: #fff;
    color: #334155;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.user-msg {
    align-self: flex-end;
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 2px;
}

/* 6. OPTIONS */
.icak-options {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    flex-shrink: 0;
}

.option-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
    font-size: 12px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

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

@media (max-width: 480px) {
    #icak-chat-window {
        width: 90%;
        right: 5%;
        bottom: 90px;
        height: 65vh;
    }
}

/* ======================================
   FASILITAS DETAIL
====================================== */

.fasilitas-detail {
    padding: 60px 0;
    background: #f8fafc;
}

.fasilitas-detail-header {
    text-align: center;
    margin-bottom: 32px;
}

.fasilitas-detail-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.fasilitas-detail-header p {
    color: #64748b;
    font-size: 15px;
}

/* GALERI GRID */
.fasilitas-galeri {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.fasilitas-galeri-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.fasilitas-galeri-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.fasilitas-galeri-item img:hover {
    transform: scale(1.05);
}

.fasilitas-galeri-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}

/* TOMBOL KEMBALI */
.fasilitas-detail-back {
    text-align: center;
    margin-top: 36px;
}

.btn-kembali {
    display: inline-block;
    padding: 10px 18px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-kembali:hover {
    background: #0284c7;
}

/* =====================
   RESPONSIVE
===================== */

/* TABLET */
@media (max-width: 1024px) {
    .fasilitas-detail-header h1 {
        font-size: 24px;
    }
    .fasilitas-galeri {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .fasilitas-detail {
        padding: 40px 0;
    }

    .fasilitas-detail-header h1 {
        font-size: 22px;
    }

    .fasilitas-galeri-item img {
        height: 160px;
    }
    .fasilitas-galeri {
        grid-template-columns: 1fr;
    }
}

/* Paksa iframe di dalam map-responsive untuk SELALU MUNCUL */
.map-responsive iframe, 
.footer-map iframe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

