/* Gunakan hanya pada elemen yang benar-benar bergerak sekarang */
.carousel-item.active .appear-animation {
    will-change: transform, opacity;
}

*.btn-container {
    margin-bottom: 10px;
    text-align: center;
}

.mycheckbox {
    font-size: 12px;
    color: black;
    font-weight: 500;
}

.btn-color-mode-switch {
    display: inline-block;
    margin: 0px;
    position: relative;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner {
    margin: 0px;
    width: 170px;
    height: 26px;
    background: #e0e0e0;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;

    display: block;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner:before {
    content: attr(data-on);
    cursor: pointer;
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    top: 5px;
    right: 25px;
    margin-bottom: 5px;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner:after {
    content: attr(data-off);
    cursor: pointer;
    width: 85px;
    height: 22px;
    font-size: 12px;
    background: #fff;
    border-radius: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 6px -2px #111;
    padding: 2px 0px;
    margin-bottom: 10px;
}

.btn-color-mode-switch input[type="checkbox"] {
    cursor: pointer;
    width: 70px;
    height: 25px;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 1;
    padding: 2px 0px;
    margin: 0px;
}

.btn-color-mode-switch
    input[type="checkbox"]:checked
    + label.btn-color-mode-switch-inner {
    background: #e0e0e0;
    color: black;
    font-weight: bold;
    font-size: 12px;
}

.btn-color-mode-switch
    input[type="checkbox"]:checked
    + label.btn-color-mode-switch-inner:after {
    content: attr(data-on);
    left: 83px;
    background: white;
    font-weight: bold;
    font-size: 12px;
}

.btn-color-mode-switch
    input[type="checkbox"]:checked
    + label.btn-color-mode-switch-inner:before {
    content: attr(data-off);
    right: auto;
    left: 15px;
    color: black;
    font-weight: bold;
    font-size: 12px;
}

.btn-color-mode-switch input[type="checkbox"]:checked ~ .alert {
    display: block;
}

/* .toolbar-disabilitas {
        position: fixed;
        top: 6%;
        left: 0;
        z-index: 999;
        height: 1px;
        width: -180px;
        text-align: center;
        background: transparent !important;
        background-color: transparent !important;
    }



    .open-toolbar {
        margin-top: 10%;
        padding-top: 8px;
        padding-right: 5px;
        padding-left: 5px;
        padding-bottom: 3px;
        height: 50px;
        border: none;
        width: 50px;
    }

    .toolbar-disabilitas .open-toolbar {
        background: #4054b2;

    }


    .toolbar-disabilitas .groupcontenttoolbar {
        transform: translateX(-180px);
        transition: transform 0.6s;
    }


    .toolbar-disabilitas.show-toolbar .groupcontenttoolbar {
        transform: translateX(0px);

    }

    .contenttoolbar_disabilitas {
        margin-top: 10%;
        padding-top: 15px;
        display: flex;
        flex-direction: column;
        height: max-content;
        border: 1px solid black;
        box-shadow: 0 10px 10px rgb(0 0 0 / 0.2);
        background-color: white;
        width: 180px;
        word-break: break-all;
        overflow: hidden;
    }*/

.groupcontenttoolbar {
    display: flex;
    flex-direction: row;

    height: auto;

    background-color: transparent !important;
}

.titletools {
    font-size: 13px !important;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    color: black;
}

.bodytools {
    left: 0;
    height: max-content;
    width: 100%;
    margin-bottom: 10px;
}

.subtitletools {
    font-size: 12px !important;
    margin-bottom: 5px;
    cursor: pointer;
    left: 0;
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 10px;
    text-align: left;
    color: black;
}

.subtitletoolsactive {
    background-color: black;
    font-size: 12px !important;
    margin-bottom: 5px;
    cursor: pointer;
    left: 0;
    padding-top: 5px;
    padding-left: 10px;
    padding-bottom: 5px;
    text-align: left;
    color: white;
    font-weight: bold;
}

.subtitletools:hover,
.subtitletools:focus,
.subtitletools:active {
    background-color: black;
    color: white;
    font-weight: bold;
    font-size: 12;
    max-width: 100%;
    padding-top: 5px;
    padding-left: 10px;
    padding-bottom: 5px;
}

.flexrowdata {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.flexrowtext {
    display: flex;
    flex-direction: column;

    height: 100%;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.datatextinfo {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}

.texttulisan {
    color: black;
    font-size: 18px;
    font-weight: bold;
}

@media only screen and (max-width: 900px) {
    .toolbar-disabilitas {
        top: 11%;
    }
}

.sticky-container {
    padding: 0px;
    margin: 0px;
    position: fixed;
    right: -130px;
    top: 230px;
    width: 210px;
    z-index: 1100;
}
.sticky li {
    background-color: transparent;
    list-style-type: none;
    height: 43px;
    padding: 0px;
    margin: 0px 0px 1px 0px;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}
.sticky li:hover {
    margin-left: -10px;
}
.sticky li img {
    float: left;
    margin: 5px 4px;
    margin-right: 25px;
}
.sticky li p {
    padding-top: 5px;
    margin: 0px;
    line-height: 16px;
    font-size: 11px;
}
.sticky li p a {
    text-decoration: none;
    color: #2c3539;
}
.sticky li p a:hover {
    text-decoration: underline;
}
.toolbar-disabilitas .open-toolbar {
    background: #4054b2;
    margin-top: 100px !important;
}
/** asean 2023 */
#seventyfive {
    position: fixed;
    right: 2vw;
    bottom: 2vw;
    z-index: 999999;
    width: 10vw;
}
#rp {
    display: block;
}
.intro-banner-vdo-play-btn {
    height: 0px;
    width: 0px;
}
.pinkBg {
    background-color: #ed184f !important;
    background-image: linear-gradient(90deg, #fd5581, #fd8b55);
}
.intro-banner-vdo-play-btn .ripple:nth-child(2) {
    animation-delay: 0.3s;
    -webkit-animation-delay: 0.3s;
}
.intro-banner-vdo-play-btn .ripple {
    position: absolute;
    width: 20vw;
    height: 20vw;
    z-index: -1;
    opacity: 0;
    border-radius: 100%;
    -webkit-animation: ripple 1.8s infinite;
    animation: ripple 1.8s infinite;
}
#cls {
    position: fixed;
    right: 3vw;
    bottom: 10vw;
    z-index: 9999999;
    color: #f00;
    font-size: 30px;
}

@-webkit-keyframes ripple {
    0% {
        opacity: 1;
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    100% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        opacity: 1;
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    100% {
        opacity: 0;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.intro-banner-vdo-play-btn .ripple:nth-child(2) {
    animation-delay: 0.3s;
    -webkit-animation-delay: 0.3s;
}

.intro-banner-vdo-play-btn .ripple:nth-child(3) {
    animation-delay: 0.6s;
    -webkit-animation-delay: 0.6s;
}

.customShadow {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.pt-50 {
    padding-top: 150px !important;
}
.pt-10 {
    padding-top: 50px !important;
    padding-left: 0px !important;
}
.SearchBar {
    position: absolute;
    top: 20px;
    left: 10px;
    height: 30px;
    width: 550px;
}
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    z-index: 0;
}
.bg1 {
    position: absolute;
    height: 720px;
    width: 1280px;
    background-color: #000;
}
.responsive-text {
    font-size: 18px;
}

@media (min-width: 576px) {
    .responsive-text {
        font-size: 8px;
    }
}
@media (min-width: 768px) {
    .responsive-text {
        font-size: 20px;
    }
}
@media (min-width: 992px) {
    .responsive-text {
        font-size: 24px;
    }
}

.carousel-btn {
    width: 32px;
    transition: transform 0.3s ease;
    /*opacity: 0.7;*/
}

.carousel-btn:hover {
    transform: scale(1.5);
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.carousel-control-custom {
    z-index: 10;
}
.bg-biru {
    background-color: #4054b2;
}
.pt-100 {
    padding-left: 100px;
    padding-top: 20px;
}

/*Carrousel style*/
/* Mengatur agar caption tidak memenuhi seluruh layar dan lebih terpusat */
.carousel-caption {
    /* [DIUBAH] Metode centering yang benar untuk desktop */
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    bottom: auto;
    width: 50%; /* Gunakan persen agar lebih fleksibel */
    max-width: 600px; /* Batasi lebar maksimal agar tidak terlalu panjang di layar besar */
    display: block !important; /* Pastikan selalu tampil */
}

/* ===== Penyesuaian untuk Tablet (Layar di bawah 992px) ===== */
@media (max-width: 992px) {
    .text-20 {
        font-size: 3rem !important;
    }
    .text-12 {
        font-size: 2.5rem !important;
    }
}

/* ===== Penyesuaian untuk Ponsel (Layar di bawah 768px) ===== */
@media (max-width: 767px) {
    .carousel-item {
        height: 90vh; /* Sedikit lebih tinggi agar konten tidak terlalu sempit */
    }
    .carousel-inner .carousel-item img {
        min-height: 90vh;
        object-fit: cover;
    }

    .carousel-caption {
        /* [DITAMBAHKAN] Atur ulang posisi untuk mobile agar benar-benar di tengah */
        width: 90% !important; /* Lebar 90% dari layar ponsel */
        left: 50% !important; /* Posisi mulai dari tengah layar */
        transform: translateX(
            -50%
        ) !important; /* Tarik ke kiri sejauh 50% dari lebarnya sendiri */

        /* Pindahkan ke bawah agar tidak menutupi objek penting di gambar */
        top: auto !important;
        bottom: 5% !important;

        /* Aturan Anda yang sudah benar untuk perataan teks */
        text-align: center !important;
    }

    .carousel-caption .d-flex {
        justify-content: center !important;
        align-items: center !important;
    }

    .carousel-caption .align-items-start {
        align-items: center !important;
    }

    .text-20 {
        font-size: 2.5rem !important;
    }
    .text-12 {
        font-size: 1.7rem !important;
    }
    .text-5 {
        font-size: 1.1rem !important;
    }
    .carousel-caption p {
        font-size: 0.9rem;
        text-align: center !important;
    }
}

/*--css untuk berita section*/

/* Memberi background dan padding pada seluruh section */
section.container-xl-custom {
    padding: 2rem 1rem;
    border-radius: 8px;
    margin-top: 0rem;
    margin-bottom: 2rem;
    overflow: hidden; /* Mencegah margin atau elemen lebar keluar dari background */
}
.berita-utama .card-img-top {
    height: 370px; /* <-- UBAH NILAI INI SESUAI UKURAN YANG ANDA INGINKAN */
    width: 100%;
    object-fit: cover; /* Menjaga gambar tidak gepeng, akan memotong (crop) seperlunya */
}

/* =================================================================== */
/* ===== PERBAIKAN UNTUK UKURAN GAMBAR BERITA POPULER ===== */
/* =================================================================== */

.berita-populer .card .card-img-pop {
    /* 1. Tentukan ukuran "bingkai" yang tetap dan konsisten */
    width: 90px; /* Lebar tetap, tidak lagi persentase */
    height: 90px; /* Tinggi tetap, untuk membuat bentuk persegi */

    /* 2. Properti Ajaib: Memaksa gambar mengisi bingkai tanpa gepeng */
    object-fit: cover;

    /* 3. Asuransi Flexbox: Mencegah gambar menyusut */
    flex-shrink: 0;

    /* 4. Sentuhan Estetika (Opsional) */
    border-radius: 8px; /* Membuat sudut sedikit melengkung */
    margin: 10px; /* Memberi sedikit jarak dari tepi card */
}
/* =================================================================== */
/* ===== MENGEMBALIKAN UNDERLINE SAAT HOVER PADA BERITA POPULER ===== */
/* =================================================================== */

/* Menargetkan seluruh area card berita populer saat di-hover */
.berita-populer .card:hover {
    /* Sedikit efek visual tambahan agar lebih interaktif */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Menargetkan link (<a>) di dalam card berita populer saat card di-hover */
.berita-populer .card:hover a .card-title {
    //    text-decoration: underline !important; /* Paksa tampilkan underline */
    color: #4054b2 !important; /* Bonus: ubah warna judul menjadi biru tema */
}

/* Bonus: Pastikan link teksnya mengisi sisa ruang */
.berita-populer .card a {
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

/*EFEK HOVER GANTI WARNA PADA BUTTON*/
.btn-berita {
    background-color: rgb(247, 182, 42);
    transition: background-color 0.3s ease-in-out;
}

.btn-berita:hover {
    background-color: rgb(224, 162, 28);
}

/*
    * ===============================================
    * EFEK ANAK TANGGA (STAGGERED) UNTUK DESKTOP
    * ===============================================
    */
@media (min-width: 992px) {
    /* Pindahkan kolom kedua (Berita Populer) sedikit ke bawah */
    .berita-populer {
        margin-top: 95px;
    }

    /* Pindahkan kolom ketiga (Info Sidebar) lebih jauh ke bawah */
    .info-sidebar {
        margin-top: 75px !important;
    }

    .info-sidebar-konten {
        margin-top: 0px !important;
    }

    /* [INI DIA PERUBAHANNYA] */
    .berita-utama hr {
        width: 185%; /* Membuat lebar garis 30% lebih panjang dari kolomnya */
    }
}

/* =================================================================== */
/* ===== FIX: JUDUL BERITA UTAMA & HOME TIDAK KAPITAL (HURUF ASLI) ===== */
/* =================================================================== */

/* 1. Menargetkan Judul Khusus di Berita Utama */
.berita-utama .card-title,
.berita-utama h1,
.berita-utama h2,
.berita-utama h3,
.berita-utama h4,
.berita-utama h5,
.berita-utama a {
    text-transform: none !important;
}

/* 2. Menargetkan Judul di Berita Populer (Samping Kanan) */
.berita-populer .card-title,
.berita-populer a {
    text-transform: none !important;
}

/* 3. Menargetkan Judul di Slider/Carousel (Jika ada teks di gambar slide) */
.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption p {
    text-transform: none !important;
}

/* 4. Menargetkan Judul di Berita Lainnya (Bawah) */
.card-berita-lainnya .card-title {
    text-transform: none !important;
}

/* =================================================================== */
/* ===== FIX FINAL V2: GAMBAR ARTIKEL PORTRAIT UTUH (NO CROP) ===== */
/* =================================================================== */

/* Kita targetkan gambar spesifik di dalam area baca berita */
.berita-section-wrapper .col-lg-9 img,
.berita-section-wrapper .entry-content img,
.berita-section-wrapper .isi-berita img,
.article-body img {
    /* 1. KUNCI UTAMA: Reset Paksaan Ukuran */
    width: auto !important; /* Lebar mengikuti aslinya */
    height: auto !important; /* Tinggi mengikuti aslinya (JANGAN DI SET ANGKA PIXEL) */
    min-height: 0 !important; /* Hapus batas minimal jika ada */
    max-height: 350px !important; /* Batasi tinggi maksimal agar tidak terlalu panjang ke bawah */

    /* 2. Ukuran Tampilan (Biar Tidak Raksasa) */
    max-width: 60% !important; /* Lebar maksimal 60% dari layar (bisa diganti 50% atau 400px) */

    /* 3. Mencegah Pemotongan (Cropping) */
    object-fit: contain !important; /* Menampilkan gambar SECARA UTUH */
    aspect-ratio: auto !important; /* Hapus rasio paksa (misal 16:9) */

    /* 4. Posisi Rata Tengah */
    display: block !important;
    margin: 20px auto !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =================================================================== */
/* FIX: AGAR GAMBAR BERITA UTAMA SELALU PENUH (LANDSCAPE MAUPUN PORTRAIT) */
/* =================================================================== */

/* Gunakan 3 level class agar sangat spesifik */
.berita-section-wrapper .berita-utama img.card-img-top {
    width: 100% !important;
    height: 300px !important; /* Paksa tinggi 400px */
    object-fit: cover !important; /* Crop otomatis */
    object-position: center !important;
    display: block !important;
    aspect-ratio: 16 / 9 !important; /* Tambahkan ini sebagai pengunci rasio */
}

@media (max-width: 991px) {
    .berita-section-wrapper .berita-utama img.card-img-top {
        height: 250px !important;
    }
}

/* =================================================================== */
/* ===== FIX FINAL: GAMBAR DI DALAM ISI ARTIKEL (BACA BERITA) ===== */
/* =================================================================== */

/* Kita targetkan gambar spesifik di dalam area konten artikel */
.berita-section-wrapper .card-body img,
.berita-section-wrapper .entry-content img,
.berita-section-wrapper .col-lg-9 img,
.isi-berita img {
    /* 1. RESET PAKSAAN LANDSCAPE DARI HOMEPAGE */
    width: auto !important; /* Lebar ikuti gambar asli */
    height: auto !important; /* Tinggi ikuti gambar asli */
    min-height: 0 !important; /* Hapus batas minimal */

    /* 2. MENCEGAH CROP/POTONG */
    object-fit: contain !important; /* Tampilkan gambar UTUH */

    /* 3. MENGATUR DIMENSI (AGAR TIDAK RAKSASA) */
    max-width: 100% !important; /* Perkecil gambar jadi setengah lebar kolom */
    max-height: 600px !important; /* Batas tinggi agar muat di layar laptop */

    /* 4. POSISI RATA TENGAH */
    display: block !important;
    margin: 20px auto !important; /* Jarak atas bawah 20px, kanan kiri auto (tengah) */
    box-shadow: none !important; /* Opsional: Hapus bayangan jika mau */
    float: none !important; /* Hapus efek float jika ada */
}

/* =================================================================== */
/* ===== PENYESUAIAN UNTUK HP/TABLET (RESPONSIF) ===== */
/* =================================================================== */
@media (max-width: 991px) {
    .berita-section-wrapper .card-body img,
    .berita-section-wrapper .entry-content img,
    .berita-section-wrapper .col-lg-9 img {
        /* Di HP, gambar diperbesar sedikit agar jelas, tapi tetap utuh */
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* =================================================================== */
/* ===== RESPONSIF KHUSUS HP (Agar Gambar Jelas di Layar Kecil) ===== */
/* =================================================================== */
@media (max-width: 768px) {
    .berita-section-wrapper .col-lg-9 img,
    .berita-section-wrapper .entry-content img,
    .berita-section-wrapper .isi-berita img {
        /* Di HP, perlebar batasnya supaya gambar tidak kekecilan */
        max-width: 100% !important;
        max-height: auto !important;
    }
}

/*
    * ===============================================
    * PENYESUAIAN UNTUK MOBILE
    * ===============================================
    */
@media (max-width: 991px) {
    /* Di layar kecil, beri jarak antar kolom yang sudah menumpuk vertikal */
    .berita-utama,
    .berita-populer,
    .info-sidebar {
        margin-bottom: 2.5rem;
        text-align: center;
    }

    /* Pusatkan garis hr juga */
    hr {
        margin-left: auto;
        margin-right: auto;
    }

    /* Pastikan card di berita populer terpusat */
    .berita-populer .card {
        text-align: left; /* Teks di dalam card tetap rata kiri */
    }

    /* =================================================================== */
    /* ===== PERBAIKAN URUTAN KONTEN DI MODE TABLET & MOBILE ===== */
    /* =================================================================== */

    @media (max-width: 991px) {
        /*
      PERBAIKAN UTAMA:
      Mengatur ulang urutan kolom secara paksa untuk tablet dan mobile
      dengan menggunakan properti 'order'.
    */
        .berita-utama {
            order: 1 !important; /* Tampilkan Berita Utama paling atas */
        }

        .info-sidebar-konten {
            order: 2 !important; /* Tampilkan Sidebar setelah Berita Utama */
        }

        /*
      Reset margin-top yang mungkin mengganggu layout dan beri
      jarak bawah agar ada spasi antar elemen yang sekarang vertikal.
    */
        .berita-utama,
        .info-sidebar-konten {
            margin-top: 0 !important;
            margin-bottom: 2.5rem; /* Memberi jarak antar section */
        }

        /* Memastikan teks artikel rata kiri di mobile agar mudah dibaca */
        .berita-utama .card-body {
            text-align: left !important;
        }
    }

    /*css untuk gallery*/
    /*
 * ===============================================
 * [SOLUSI DEFINITIF] CSS GALERI FOTO RESPONSIVE
 * ===============================================
*/

    /* Aturan hanya aktif untuk layar dengan lebar 991px ke bawah */
    @media (max-width: 991px) {
        /* 1. Atasi Section yang tingginya tetap */
        section[style*="height: 60vh"] {
            height: auto !important;
            padding-top: 40px !important;
            padding-bottom: 40px !important;
        }

        /*
    * 2. [PERBAIKAN] Atasi Judul & Garis yang tidak ke tengah
    * Kita targetkan langsung parent-nya yaitu .container
    */
        section[style*="height: 60vh"] > .container {
            text-align: center !important; /* Paksa semua di dalamnya menjadi rata tengah */
        }

        hr[style*="width: 900px"] {
            width: 90% !important;
            margin-left: auto !important; /* Hapus margin inline dan pusatkan */
            margin-right: auto !important;
        }

        /* Hapus kelas pt-100 yang nilainya terlalu besar di mobile */
        .pt-100 {
            padding-top: 0 !important;
        }

        /*
    * 3. [PERBAIKAN KUNCI] Atasi gambar yang lebarnya tidak sama
    * Kita gunakan CSS calc() untuk perhitungan yang akurat
    */
        .d-flex.flex-wrap > div[style*="width: 200px"] {
            /*
         * Lebar dihitung: 50% untuk dua kolom, dikurangi SETENGAH dari nilai gap.
         * 30px (gap) / 2 = 15px.
         * (50% - 15px) + (50% - 15px) + 30px (gap) = 100%. Layout akan sempurna.
        */
            width: calc(50% - 15px) !important;
        }
    }

    /* Penyesuaian untuk layar ponsel yang lebih kecil */
    @media (max-width: 576px) {
        .d-flex.flex-wrap > div[style*="width: 200px"] {
            /* Di ponsel, buat jadi 1 kolom penuh */
            width: 90% !important;
        }
    }
}

/*Efek hover pada image*/
.gallery-img {
    /*menambahkan efek transisi mulus ketika zoom*/
    transition: transform 0.3s ease-in-out;
}
.gallery-img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/*EFEK HOVER GANTI WARNA PADA BUTTON*/
.btn-custom {
    background-color: #4054b2; /*warna asli tombol*/
    transition: background-color 0.3s ease-in-out;
}
.btn-custom:hover {
    background-color: #192766;
}

/*CSS Laporan Kinerja Baru*/

/* Versi kecil dari Card Laporan */
.card-laporan-small {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card-laporan-small:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Membuat gambar lebih pendek */
.card-laporan-small .card-img-top {
    height: 160px;
    object-fit: cover; /* Memastikan gambar tidak gepeng */
}

.card-laporan-small .card-body {
    padding: 1rem; /* Padding lebih kecil */
}

.card-laporan-small .card-title {
    font-weight: 600;
    font-size: 1rem; /* Ukuran font judul lebih kecil */
    margin-bottom: 0.75rem;
}

/* Kustomisasi Tombol Navigasi Owl Carousel */
.custom-nav .owl-nav {
    position: absolute;
    top: 35%; /* Disesuaikan dengan tinggi gambar yang baru */
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.custom-nav .owl-nav button.owl-prev,
.custom-nav .owl-nav button.owl-next {
    pointer-events: all;
    background-color: white !important;
    color: #4054b2 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    font-size: 20px !important;
    transition: transform 0.2s ease;
}

.custom-nav .owl-nav button.owl-prev {
    margin-left: -20px;
}

.custom-nav .owl-nav button.owl-next {
    margin-right: -20px;
}

.custom-nav .owl-nav button:hover {
    transform: scale(1.1);
}

/*CSS Layanan/app BPKAD*/

/* Wrapper untuk grid layanan */
.layanan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; /* Jarak antar kartu */
}

/* Kartu untuk setiap layanan */
.layanan-card {
    position: relative;
    width: 250px;
    height: 250px;
    background-color: #f8f9fa; /* Warna latar belakang awal */
    border-radius: 10px;
    overflow: hidden; /* Penting untuk menyembunyikan overlay */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layanan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Styling untuk gambar/ikon di dalam kartu */
.layanan-card img {
    max-width: 150px;
    height: auto;
    transition: transform 0.4s ease;
}

.layanan-card:hover img {
    transform: scale(0.9); /* Sedikit mengecilkan ikon saat overlay muncul */
}

/* Overlay yang muncul saat hover */
.layanan-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(64, 84, 178, 0.95),
        rgba(80, 102, 212, 0.9)
    );
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;

    /* Animasi Kunci: Sembunyikan di bawah */
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Saat kartu di-hover, munculkan overlay-nya */
.layanan-card:hover .layanan-overlay {
    transform: translateY(0);
}

.layanan-overlay h5 {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.layanan-overlay a.btn-akses {
    background-color: white;
    color: #4054b2;
    font-weight: bold;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
}
.layanan-hidden {
    display: none;
}

/*icon Footer Hover*/
/* ======================================================
   NONAKTIFKAN EFEK LINGKARAN HOVER PADA IKON INSTAGRAM
   ====================================================== */

.icon-footer a:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/*
 * CSS untuk membuat ikon dan teks di dalam tautan sosial media
 * berada dalam satu baris yang sejajar.
 */
.icon-footer a {
    display: flex !important; /* Mengaktifkan Flexbox */
    align-items: center !important; /* Membuat ikon dan teks sejajar di tengah secara vertikal */
    gap: 10px !important; /* Memberi jarak 10px antara ikon dan teks */
}

/* =================================================================== */
/* 1. PENGATURAN LOGO (Agar Kecil di Tablet & Mobile)                 */
/* =================================================================== */
@media (max-width: 991px) {
    .header-logo img {
        max-height: 50px !important; /* Ukuran Logo Tablet */
        width: auto !important;
    }
}

@media (max-width: 767px) {
    .header-logo img {
        max-height: 40px !important; /* Ukuran Logo HP */
    }
}

/* =================================================================== */
/* 2. PENGATURAN TABLET (768px - 991px)                                */
/* =================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .carousel-caption {
        top: 35% !important; /* Turunkan posisi agar tidak terlalu ke atas */
        padding-top: 0 !important;
        width: 80% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* Memperbesar Judul di Tablet */
    .carousel-caption h1 {
        font-size: 5rem !important; /* Judul BPKAD diperbesar */
        line-height: 0.9 !important;
    }
    .carousel-caption h2 {
        font-size: 2.5rem !important; /* Teks Kabupaten diperbesar */
    }
}

/* =================================================================== */
/* 3. PENGATURAN MOBILE / HP (Dibawah 767px)                          */
/* =================================================================== */
@media (max-width: 767px) {
    .carousel-caption {
        top: 30% !important; /* Atur posisi teks di HP agar pas di tengah */
        width: 95% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
    }

    /* Memperbesar Judul di HP */
    .carousel-caption h1 {
        font-size: 3.5rem !important; /* Judul BPKAD lebih terlihat */
        margin-bottom: 10px !important;
    }
    .carousel-caption h2 {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
    }

    /* Atur teks sambutan (yang kecil di atas) */
    .carousel-caption h1.text-color-light.font-weight-medium {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    /* Mendorong tombol navigasi ke bawah sedikit di HP */
    .carousel-caption .d-flex.flex-wrap {
        justify-content: center !important;
        margin-top: 20px !important;
    }
}

/* =================================================================== */
/* 4. FIX: NAVIGASI PANAH (Agar tetap di tengah layar)                */
/* =================================================================== */
@media (max-width: 991px) {
    /* Pastikan container tombol panah tidak ikut naik ke atas */
    .carousel-caption .pt-10 {
        position: fixed !important;
        top: 55% !important; /* Posisikan panah di tengah-tengah slide */
        left: 0 !important;
        width: 100% !important;
        z-index: 20;
    }
}

/* ===== GAYA BARU UNTUK TAMPILAN ===== */
.section-wrapper {
    padding: 2.5rem 0; /* Memberi jarak atas dan bawah untuk setiap section */
}

.section-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(140, 152, 169, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem; /* Padding internal untuk konten di dalamnya */
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(140, 152, 169, 0.2);
}

/* ===== GAYA UNTUK TOMBOL SHARE INTERAKTIF ===== */

/* Kontainer utama untuk tombol dan opsi-opsinya */
.share-container {
    vertical-align: middle;
}

/* Opsi share yang akan muncul/hilang */
.share-options-container {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 100%; /* Muncul di atas tombol utama */
    left: 80%;
    transform: translateX(-50%) translateY(10px); /* Posisi awal untuk animasi */
    margin-bottom: 15px;
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 50px; /* Bentuk kapsul */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

    /* Sembunyikan secara default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10;
}

/* Tampilkan saat class 'show' ditambahkan oleh JS */
.share-options-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Styling untuk setiap tombol opsi (Facebook, Twitter, dll) */
.share-option-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-option-button:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* =================================================================== */
/* ===== PERBAIKAN FINAL UNTUK TABLET & MOBILE ===== */
/* =================================================================== */

@media (max-width: 991px) {
    /*
      PERBAIKAN UTAMA:
      Mengatur ulang urutan kolom secara paksa untuk tablet dan mobile.
    */
    .berita-utama {
        order: 1; /* Tampilkan Berita Utama paling atas */
    }
    .berita-populer {
        order: 2; /* Tampilkan Berita Populer setelahnya */
    }
    .info-sidebar {
        order: 3; /* Tampilkan Sidebar paling bawah */
    }

    /*
      Reset margin atas yang menyebabkan layout berantakan.
    */
    .berita-populer,
    .info-sidebar {
        margin-top: 0 !important;
    }

    /* Aturan asli untuk menjaga jarak dan perataan */
    .berita-utama,
    .berita-populer,
    .info-sidebar {
        margin-bottom: 2.5rem;
        text-align: center;
    }

    /* Memastikan teks artikel rata kiri di mobile */
    .berita-utama .card-body {
        text-align: left !important;
    }

    /* Pusatkan garis hr juga */
    hr {
        margin-left: auto;
        margin-right: auto;
    }

    /* Pastikan card di berita populer terpusat */
    .berita-populer .card {
        text-align: left; /* Teks di dalam card tetap rata kiri */
    }

    /* Sembunyikan panah slider di layar kecil */
    .with-arrows .owl-nav {
        display: none;
    }
}

/* ===== GAYA BARU UNTUK TAMPILAN ===== */
.berita-section-wrapper {
    padding: 2.5rem 0; /* Memberi jarak atas dan bawah untuk wrapper */
}
.berita-section-wrapper .container-xl-custom {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(140, 152, 169, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    margin-top: 0;
    margin-bottom: 0;
    overflow: visible;
}
.berita-section-wrapper .container-xl-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(140, 152, 169, 0.2);
}
/* ===== AKHIR DARI PENAMBAHAN GAYA VISUAL ===== */
/* =================================================================== */
/* ===== GAYA BARU DAN PERBAIKAN LAYOUT ===== */
/* =================================================================== */

/* GAYA BARU UNTUK TAMPILAN VISUAL */
.berita-section-wrapper {
    padding: 2.5rem 0;
}
.berita-section-wrapper .container-xl-custom {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(140, 152, 169, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    margin-top: 0;
    margin-bottom: 0;
    overflow: visible;
}
.berita-section-wrapper .container-xl-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(140, 152, 169, 0.2);
}

/* SOLUSI FINAL STICKY HEADER & FOOTER */
html {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.body {
    flex: 1 0 auto;
}
#footer {
    flex-shrink: 0;
}

/* =================================================================== */
/* ===== GAYA SLIDER "BERITA LAINNYA" ===== */
/* =================================================================== */

.slider-wrapper {
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.berita-lainnya-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}
.card-berita-lainnya {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}
.card-berita-lainnya:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.card-berita-lainnya a {
    text-decoration: none;
    color: inherit;
}
.card-berita-lainnya .card-img-top {
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid #4054b2;
}
.card-berita-lainnya .card-body-lainnya {
    padding: 15px;
}
.card-berita-lainnya .card-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}
.card-berita-lainnya .card-text {
    font-size: 12px;
    color: #777;
    margin-bottom: 0;
}

.berita-lainnya-wrapper hr.border-grey {
    border: none;
    border-top: 2px solid #f7b61a !important;
    opacity: 1 !important;
}

/* GAYA PANAH NAVIGASI */
.with-arrows {
    position: relative;
}
.with-arrows .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    margin-top: -30px;
}
.with-arrows .owl-nav button.owl-prev,
.with-arrows .owl-nav button.owl-next {
    pointer-events: all;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    background-color: #4054b2 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    font-size: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.with-arrows .owl-nav button.owl-prev {
    transform: translateX(-25px);
}
.with-arrows .owl-nav button.owl-next {
    transform: translateX(25px);
}
.with-arrows .owl-nav button:hover {
    transform: scale(1.1) translateX(var(--translate-x, 0));
}
.with-arrows .owl-nav button.owl-prev:hover {
    --translate-x: -25px;
}
.with-arrows .owl-nav button.owl-next:hover {
    --translate-x: 25px;
}

/* =================================================================== */
/* ===== SOLUSI FINAL V2: MELAWAN JAVASCRIPT HEADER STICKY ===== */
/* =================================================================== */

@media (max-width: 991px) {
    /*
     * BAGIAN 5: Pastikan warna background dan teks sudah benar.
    */
    #header .header-body {
        background: #000000 !important;
    }

    #header .header-nav-main nav > ul > li > a,
    #header .header-btn-collapse-nav {
        color: #ffffff !important;
    }
}
@media (max-width: 991px) {
    .berita-utama .card-img-top {
        height: auto !important; /* Atur ulang tinggi agar tidak tetap 370px */
        aspect-ratio: 16 / 9; /* Gunakan aspect-ratio agar tinggi gambar proporsional. Angka ini bisa diubah (misal: 4 / 3) */
        object-fit: cover; /* Pastikan ini tetap ada untuk mencegah gambar gepeng */
    }
}

/* =================================================== */
/* ===== GAYA CSS UNTUK LIGHTBOX GAMBAR YANG MENARIK ===== */
/* =================================================== */

/* Wadah utama lightbox (lapisan overlay gelap) */
.lightbox {
    /* Awalnya disembunyikan */
    display: none;
    position: fixed; /* Tetap di tempatnya meskipun halaman di-scroll */
    z-index: 9999; /* Pastikan berada di lapisan paling atas */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Aktifkan scroll jika gambar sangat tinggi */
    background-color: rgba(
        0,
        0,
        0,
        0.9
    ); /* Latar belakang hitam dengan 90% transparansi */

    /* Untuk animasi fade-in yang mulus */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Konten lightbox (gambar yang diperbesar) */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%; /* Lebar gambar tidak akan melebihi 85% lebar layar */
    max-height: 80vh; /* Tinggi gambar tidak akan melebihi 80% tinggi layar */
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Untuk animasi "zoom-in" saat muncul */
    animation-name: zoom;
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(
        0.175,
        0.885,
        0.32,
        1.275
    ); /* Efek zoom yang sedikit memantul */
}

/* Definisi animasi "zoom" */
@keyframes zoom {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

/* Teks caption di bawah gambar */
.lightbox-caption {
    margin: 20px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.5;
}

/* Tombol tutup ('X') */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* Di layar kecil, buat tombol tutup sedikit lebih besar dan dekat */
@media (max-width: 700px) {
    .lightbox-close {
        top: 10px;
        right: 25px;
        font-size: 35px;
    }
}

/* =================================================================== */
/* ===== GAYA CSS (DENGAN FOOTER Galeri YANG DIPERBAIKI) ===== */
/* =================================================================== */

/* PENTING: Beri ruang lebih di bawah untuk footer yang baru */
.lightbox-content {
    /* ... (properti lainnya biarkan sama) ... */
    max-height: 75vh; /* DIUBAH dari 80vh agar tidak tertutup footer */
}

/* BARU: Wadah untuk footer lightbox yang menampung caption dan carousel */
.lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px; /* Lebar bisa disesuaikan */
    padding-bottom: 2vh; /* Jarak dari tepi bawah layar */
    display: flex;
    flex-direction: column; /* Menyusun item ke bawah (caption di atas, carousel di bawah) */
    align-items: center;
}

/* Teks caption di bawah gambar (sedikit disesuaikan) */
.lightbox-caption {
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 15px; /* Memberi jarak ke carousel di bawahnya */
    padding: 0 20px; /* Agar teks tidak terlalu mepet di layar kecil */
}

/* Wadah utama yang menampung panah dan viewport */
.lightbox-carousel-container {
    /* DIHAPUS: `position: absolute` dan properti lainnya karena sudah pindah ke .lightbox-footer */
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tombol navigasi (panah) */
.carousel-nav {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 10px;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Viewport: area terlihat dari carousel */
.carousel-viewport {
    width: 100%;
    overflow: hidden;
}

/* Track: bagian yang bergerak membawa semua thumbnail */
.carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Gaya untuk setiap gambar thumbnail (tetap sama) */
.lightbox-thumb-img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.lightbox-thumb-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.lightbox-thumb-img.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
/* =================================================================== */
/* ===== KODE CSS FINAL (COPY-PASTE SEMUA BLOK INI) ===== */
/* =================================================================== */

/* 1. WADAH UTAMA GRID */
.gallery-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    /*
     * UBAH ANGKA INI UNTUK MENGATUR JARAK.
     * Angka pertama = jarak atas-bawah.
     * Angka kedua = jarak kiri-kanan.
    */
    gap: 40px 20px; /* Contoh: jarak horizontal 100px */

    padding: 40px 0 20px 0; /* Jarak atas 40px, bawah 20px */
}

/* 2. PANGGUNG UTAMA (.photo-stack-container) */
.photo-stack-container {
    position: relative;
    width: 250px;
    height: 220px;
    cursor: pointer;
    /* Margin sudah tidak dibutuhkan lagi di sini */
}

/* 3. PROPERTI LATAR BELAKANG (::before dan ::after) */
.photo-stack-container::before,
.photo-stack-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    width: 230px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border: 8px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    transition: transform 0.4s ease-out;
    pointer-events: none;
}

.photo-stack-container::before {
    z-index: 1;
    transform: rotate(-8deg);
    background-image: var(--stack-bg-1);
}

.photo-stack-container::after {
    z-index: 2;
    transform: rotate(7deg);
    background-image: var(--stack-bg-2);
}

/* 4. AKTOR UTAMA (a.stack-content) */
.stack-content {
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 3;
    display: block;
    width: 230px;
    text-decoration: none;
    transition: transform 0.3s ease-out;
}

.stack-content img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.stack-content small {
    display: block;
    margin-top: 30px !important;
    font-weight: 500;
    color: #444;
    text-align: center;
}

/* 5. Animasi Hover */
.photo-stack-container:hover .stack-content {
    transform: translateY(-5px) scale(1.05);
}

.photo-stack-container:hover::before {
    transform: rotate(-15deg);
}

.photo-stack-container:hover::after {
    transform: rotate(15deg);
}

/* =================================================================== */
/* ===== KODE CSS LIGHTBOX FINAL (COPY-PASTE SEMUA BLOK INI) ===== */
/* =================================================================== */

/* 1. WADAH UTAMA LIGHTBOX (KONDISI TERSEMBUNYI) */
#image-lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.9);

    /* Awalnya transparan dan tidak terlihat */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
}

/* 2. KONDISI TERLIHAT (SAAT CLASS .lightbox-show DITAMBAHKAN) */
#image-lightbox.lightbox-show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in-out;

    /* KUNCI UTAMA: Aturan pemusatan HANYA aktif saat lightbox terlihat */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    overflow-y: auto;
}

/* 3. FOTO UTAMA DI LIGHTBOX */
.lightbox-content {
    max-height: 60vh;
    max-width: 95%;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.4s;
    flex-shrink: 0; /* Mencegah gambar menyusut */
}
@keyframes zoom {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

/* 4. TOMBOL TUTUP (X) */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* 5. FOOTER (CAPTION & THUMBNAIL) */
.lightbox-footer {
    position: relative; /* Bukan lagi absolute */
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0; /* Mencegah footer menyusut */
}
.lightbox-caption {
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 15px;
    padding: 0 20px;
}
.lightbox-carousel-container {
    width: 100%;
    max-width: 90vw; /* Lebar maksimal di layar kecil */
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-nav {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    margin: 0 10px;
    flex-shrink: 0;
}
.carousel-viewport {
    width: 100%;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.lightbox-thumb-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.3s ease;
}
.lightbox-thumb-img.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Aturan untuk DESKTOP (mengembalikan posisi footer ke bawah) */
@media (min-width: 993px) {
    #image-lightbox.lightbox-show {
        padding-top: 50px; /* Kembalikan padding atas */
        align-items: initial; /* Nonaktifkan centering */
        justify-content: initial;
    }
    .lightbox-footer {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }
    .lightbox-content {
        max-height: 80vh; /* Kembalikan tinggi max gambar */
        margin: auto;
    }
}

/* =================================================================== */
/* ===== PERBAIKAN FINAL: Mengembalikan Layout Lightbox di Desktop ===== */
/* =================================================================== */

/* Aturan ini HANYA akan aktif untuk layar dengan lebar 993px atau LEBIH BESAR */
@media (min-width: 993px) {
    /* 1. Kembalikan padding atas dan non-aktifkan centering flexbox */
    #image-lightbox.lightbox-show {
        padding-top: 50px !important; /* Kembalikan padding atas yang aman */
        align-items: initial !important; /* Non-aktifkan perataan tengah vertikal */
        justify-content: initial !important; /* Non-aktifkan perataan tengah horizontal */
    }

    /* 2. Kembalikan gambar utama ke posisi semula di tengah */
    .lightbox-content {
        margin: auto !important; /* Wajib untuk memusatkan secara horizontal */
        max-height: 80vh !important; /* Kembalikan batas tinggi maksimal untuk desktop */
    }

    /* 3. KUNCI UTAMA: Kembalikan footer ke posisi absolut di dasar layar */
    .lightbox-footer {
        position: absolute !important; /* Paksa kembali ke posisi absolut */
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important; /* Hapus margin atas yang hanya untuk tablet */
    }

    /* Kelas khusus untuk menu yang lebar */
    .dropdown-menu-wide {
        min-width: 300px !important; /* Atur lebar sesuai kebutuhan */
        column-count: 2; /* Membagi menjadi 2 kolom */
        column-gap: 20px; /* Jarak antar kolom */
    }

    /* Memastikan item di dalam kolom tidak terpotong aneh */
    .dropdown-menu-wide li {
        display: inline-block; /* Mencegah item terpotong antar kolom */
        width: 100%;
    }
}

/* =================================================================== */
/* 2. GAYA KHUSUS HOMEPAGE & THUMBNAIL (Wajib Landscape & Rapi)        */
/* =================================================================== */

/* Menargetkan gambar thumbnail di halaman depan/arsip */
.card-img-top,
.card-berita-lainnya img,
.berita-utama img,
.card-laporan-small img {
    width: 100% !important; /* Lebar memenuhi kotak */
    max-height: 600px !important; /* TINGGI TETAP (Landscape) */
    object-fit: cover !important; /* KUNCI: Potong gambar agar pas (Crop) */
    border-radius: 8px 8px 0 0; /* Pemanis sudut atas */
}

/* Khusus Berita Populer (Thumbnail Kecil) */
.berita-populer .card-img-pop {
    height: 90px !important;
    width: 90px !important;
    object-fit: cover !important;
    border-radius: 8px;
}

/* =================================================================== */
/* 3. GAYA KHUSUS HALAMAN BACA BERITA (Gambar Utuh & Responsif)        */
/* =================================================================== */

/* Targetkan gambar HANYA yang ada di dalam kolom konten artikel (col-lg-9)
   agar tidak mempengaruhi sidebar atau header */
.berita-section-wrapper .row .col-lg-9 img,
.berita-section-wrapper .entry-content img,
.isi-berita img {
    /* Reset gaya paksa dari Home */
    width: auto !important; /* Gunakan lebar asli gambar */
    max-width: 100% !important; /* TAPI, jangan melebihi lebar layar */

    height: auto !important; /* KUNCI: Tinggi menyesuaikan lebar (Agar tidak gepeng) */
    max-height: 600px !important; /* Batasi tinggi agar tidak terlalu panjang ke bawah */

    object-fit: contain !important; /* Tampilkan gambar UTUH (Jangan dipotong/crop) */

    display: block !important;
    margin: 20px auto !important; /* Posisi gambar Rata Tengah */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sedikit bayangan */
}

/* Khusus Video/Iframe di dalam artikel */
.berita-section-wrapper .col-lg-9 iframe,
.berita-section-wrapper .col-lg-9 embed {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9; /* Agar video youtube proporsional */
}

/* =================================================================== */
/* 4. RESPONSIF MOBILE & TABLET (Layar < 992px)                        */
/* =================================================================== */

@media (max-width: 991px) {
    /* A. Penyesuaian Thumbnail Home di HP/Tablet */
    .card-img-top,
    .berita-utama img {
        height: 200px !important; /* Sedikit lebih pendek di layar kecil */
    }

    /* B. Penyesuaian Gambar Artikel di HP */
    .berita-section-wrapper .row .col-lg-9 img,
    .berita-section-wrapper .entry-content img {
        width: 100% !important; /* Di HP, paksa lebar penuh agar jelas */
        height: auto !important; /* Tinggi menyesuaikan */
        max-height: none !important; /* Hapus batasan tinggi di HP */
        margin: 15px 0 !important;
        object-fit: contain !important;
    }

    /* C. Penyesuaian Tabel di Artikel HP (Biar bisa digeser) */
    .berita-section-wrapper table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* =================================================================== */
/* ===== FIX FINAL: PERBAIKAN TOMBOL SHARE (MEMAKSA KECIL) ===== */
/* =================================================================== */

/* Kita gunakan ID (#) agar lebih kuat daripada class (.) */
#share-toggle-button img,
.share-container img,
.share-main-button img {
    width: 30px !important; /* Paksa lebar HANYA 30px */
    max-width: 30px !important; /* Kunci agar tidak bisa melebar */
    height: auto !important; /* Tinggi menyesuaikan */

    display: inline-block !important; /* Agar sejajar dengan teks */
    margin: 0 !important; /* Hapus margin aneh */
    padding: 0 !important;

    border-radius: 0 !important; /* Hapus efek sudut tumpul jika ada */
    box-shadow: none !important; /* Hapus bayangan jika ada */

    /* Reset properti yang mungkin terbawa dari artikel */
    object-fit: contain !important;
    aspect-ratio: auto !important;
}

/* Pastikan wadah tombol share tidak ikut melebar 100% */
.share-container {
    width: auto !important; /* Lebar mengikuti isi konten */
    max-width: none !important;
    display: inline-flex !important; /* Gunakan flex agar rapi */
    align-items: center !important;
    gap: 10px !important; /* Jarak antar elemen */
    margin-top: 15px !important;
}

/* Fix tambahan untuk mode Mobile agar tidak tertimpa aturan responsif */
@media (max-width: 991px) {
    #share-toggle-button img {
        width: 30px !important;
        margin: 0 !important;
    }
}

/* =================================================================== */
/* ===== PERBAIKAN: BACKGROUND MENU MOBILE (DROPDOWN) JADI HITAM ===== */
/* =================================================================== */

@media (max-width: 991px) {
    /* 1. Ubah warna seluruh wadah menu menjadi Hitam */
    #header .header-nav-main,
    #header .header-nav-main nav,
    #header .header-nav-main nav ul,
    #header .header-nav-main nav .dropdown-menu {
        background-color: #000000 !important; /* Hitam Pekat */
        /* background-color: #152778 !important; */ /* Opsi lain: Biru Tua Footer */
    }

    /* 2. Ubah warna teks menu menjadi Putih */
    #header .header-nav-main nav ul li a,
    #header .header-nav-main nav ul li a.dropdown-toggle,
    #header .header-nav-main nav .dropdown-menu li a {
        color: #ffffff !important;
        background-color: transparent !important; /* Hapus background putih per item */
        border-bottom: 1px solid #222222 !important; /* Garis pemisah tipis biar rapi */
    }

    /* 3. Efek saat menu disentuh/dipilih (Hover/Active) */
    #header .header-nav-main nav ul li a:hover,
    #header .header-nav-main nav ul li a:focus,
    #header .header-nav-main nav ul li.active > a {
        color: #f7b61a !important; /* Warna Kuning Emas (Sesuai Logo) */
        background-color: #1a1a1a !important; /* Hitam sedikit terang */
    }

    /* 4. Pastikan tombol panah dropdown (jika ada) juga putih */
    #header .header-nav-main nav ul li .dropdown-toggle:after {
        border-color: #ffffff transparent transparent transparent !important;
    }
}

.card-body img {
    width: 100%; /* Gambar memenuhi lebar kartu */
    /* height: 200px;       Tentukan tinggi tetap (sesuaikan kebutuhan) */
    object-fit: cover; /* Memotong gambar agar pas tanpa gepeng/penyok */
    display: block;
    /* Opsional: Agar sudut atas gambar melengkung mengikuti kartu */
    border-radius: 8px;
    /* border-top-right-radius: 8px; */
}

<!-- 3. CSS untuk Styling Panel dan Tombol -->

    /* Tombol Pemicu */
    #nps-trigger-btn {
    position: fixed;
    bottom: 150px;
    right: -100%;
    /* Sembunyikan di luar layar saat panel terbuka */
    z-index: 1049;
    transition: right 0.4s ease-in-out;
    border-radius: 10px 0 0 10px;
    padding: 10px 15px;
}

#nps-trigger-btn.visible {
    right: 0;
    /* Munculkan saat panel tertutup */
}

/* Panel Survei */
#nps-survey-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    width: 90%;
    max-width: 380px;
    border: none;
    border-radius: 15px;
    transform: translateY(150%);
    /* Posisi awal di luar layar */
    transition: transform 0.4s ease-in-out;
}

#nps-survey-panel.show {
    transform: translateY(0);
    /* Munculkan panel */
}

/* Tombol Tutup di dalam Panel */
#nps-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Styling Tombol Skor */
.nps-score-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling Tombol Skor yang Dipilih */
.nps-score-btn.selected {
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* =================================================================== */
/* ===== FIX FINAL: HILANGKAN NPS SURVEY & STICKY SOSMED DI TABLET/HP ===== */
/* =================================================================== */

@media (max-width: 991px) {
    /* 1. Menghilangkan Sticky Sosmed (Icon Kanan) */
    .sticky-container,
    .sticky,
    ul.sticky {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* 2. Menghilangkan Tombol Pemicu NPS Survey */
    #nps-trigger-btn {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* 3. Menghilangkan Panel NPS Survey */
    #nps-survey-panel {
        display: none !important;
        visibility: hidden !important;
        transform: translateY(150%) !important;
    }

    /* 4. (Opsional) Menghilangkan Toolbar Disabilitas jika mengganggu di HP */
    .toolbar-disabilitas,
    .open-toolbar {
        display: none !important;
    }
}

/* =================================================================== */
/* ===== FIX FINAL: MENGHAPUS RUANG KOSONG DI KANAN (NO SCROLL) ===== */
/* =================================================================== */

/* 1. Kunci Utama: Paksa Body tidak boleh scroll ke samping */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Fix elemen-elemen yang lebarnya dipatok (Fixed Width) di kode lama */
@media (max-width: 991px) {
    /* Fix SearchBar yang tadinya 550px */
    .SearchBar {
        width: 95% !important; /* Ubah jadi persen */
        left: 2.5% !important; /* Tengahkan */
        top: 10px !important;
        position: relative !important; /* Ubah position biar gak nabrak */
        margin-bottom: 20px;
    }

    /* Fix Background yang tadinya 1280px */
    .bg1 {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    /* Pastikan Sticky Container & NPS benar-benar hilang layout-nya */
    .sticky-container,
    .sticky,
    #nps-trigger-btn,
    #nps-survey-panel {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* =================================================================== */
/* ===== FIX: HAPUS RUANG KOSONG HITAM DI ATAS MENU (MOBILE) ===== */
/* =================================================================== */

@media (max-width: 991px) {
    /* 1. Reset Jarak pada Container Menu Utama */
    #header .header-nav-main {
        margin-top: 75px !important;
        padding-top: 0 !important;
        top: 0 !important; /* Pastikan posisi nempel di atas */
    }

    /* 2. Reset Jarak pada Navigasi dan List */
    #header .header-nav-main nav,
    #header .header-nav-main nav > ul {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* 3. (Jaga-jaga) Reset Tinggi Header Body agar pas */
    #header .header-body {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
}

.berita-utama .card-body p,
.berita-utama .card-text {
    font-size: 14px !important; /* Ukuran standar Home (lebih kecil) */
    line-height: 1.5 !important; /* Jarak baris standar */
    color: #ffffff !important; /* Warna abu-abu standar */
    text-align: justify !important; /* Rata kiri */
    margin-bottom: 10px !important;
}

/* Jika hanya ingin mengubah di dalam container berita agar tidak merusak menu lain */
.container p,
.entry-content p,
.article-body p {
    font-size: 15px !important; /* Ganti ukuran di sini */
    color: #414042 !important; //Warna teks (opsional)
}

/* =================================================================== */
/* ===== FIX: WARNA TANGGAL POSTING (BEDA DARI ISI ARTIKEL) ===== */
/* =================================================================== */

/* Targetkan elemen-elemen yang biasa dipakai untuk tanggal/meta */
.berita-section-wrapper .post-meta,
.berita-section-wrapper .meta-date,
.berita-section-wrapper .entry-date,
.berita-section-wrapper .text-muted,
.berita-section-wrapper time,
.berita-section-wrapper small,
.entry-meta,
.post-date {
    color: #888888 !important; /* Ubah ke Abu-abu (atau warna lain yg diinginkan) */
    font-size: 13px !important; /* Biasanya tanggal ukurannya lebih kecil */
    font-weight: normal !important; /* Pastikan tidak terlalu tebal */
    margin-bottom: 15px !important; /* Beri jarak sedikit dari isi artikel */
}

/* Jika tanggalnya kebetulan dibungkus tag <p>, kita paksa class ini menang */
p.post-meta,
p.text-muted,
p.date {
    color: #888888 !important;
}

/* =================================================================== */
/* ===== FIX FINAL V4: JUDUL KIRI (SOLUSI URUTAN & RESET) ===== */
/* =================================================================== */
/* WAJIB DITARUH PALING BAWAH FILE CSS */

/* 1. Targetkan Judul Utama */
.berita-section-wrapper .col-lg-9 .card-title,
.berita-section-wrapper .col-lg-9 .entry-title,
.berita-section-wrapper .col-lg-9 h1,
.berita-section-wrapper .col-lg-9 h2,
.berita-section-wrapper .col-lg-9 h3 {
    text-align: left !important; /* Paksa Rata Kiri */
    text-align-last: left !important; /* Paksa baris terakhir kiri (mematikan justify paksa) */
    justify-content: flex-start !important;
    display: block !important;
}

/* 2. Targetkan LINK di dalam Judul (Seringkali ini biang keroknya) */
.berita-section-wrapper .col-lg-9 .card-title a,
.berita-section-wrapper .col-lg-9 .entry-title a,
.berita-section-wrapper .col-lg-9 h1 a,
.berita-section-wrapper .col-lg-9 h2 a {
    text-align: left !important;
    display: inline-block !important;
}

/* 3. Targetkan SPAN di dalam Judul (Jika judul dibungkus span) */
.berita-section-wrapper .col-lg-9 .card-title span,
.berita-section-wrapper .col-lg-9 h1 span {
    text-align: left !important;
}

/* Styling APBD Section */
/* Styling Sidebar Filter (Gaya Vertikal) */
.custom-select-v {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    background-color: #fdfdfd;
}

/* Box Ringkasan di samping Donat */
.summary-box-v2 {
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 150px;
}

.summary-box-v2 small {
    font-size: 10px;
    text-transform: uppercase;
    display: block;
    opacity: 0.9;
}

.summary-box-v2 div {
    font-size: 16px;
}

/* Label di tengah Donat */
.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 14px;
    color: #333;
}

.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
}

/* 1. RESET GLOBAL UNTUK SEMUA CARD-IMG-TOP (UTAMAKAN UNTUK HOME) */
.card-img-top {
    width: 100% !important;
    height: 380px !important;
    object-fit: cover !important;
    display: block !important; /* Tambahkan ini */
    margin-bottom: 0 !important; /* Tambahkan ini */
}

/* FIX KHUSUS CELAH BERANDA */
.berita-utama .card-body {
    padding-top: 0 !important;
    margin-top: -1px !important;
}

/* 2. KUNCI BERITA POPULER (SIDEBAR) */
.berita-populer .card-img-pop,
.berita-populer img {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    object-fit: cover !important;
    flex-shrink: 0;
}

/* 3. PAKSA DETAIL ARTIKEL (DETAIL BERITA) */
.berita-section-wrapper img.card-img-top,
.col-lg-9 img.card-img-top,
article img.card-img-top,
.isi-berita img.card-img-top {
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 850px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
}

/* 4. PENYESUAIAN MOBILE */
@media (max-width: 991px) {
    .card-img-top {
        height: 250px !important;
    }
    .col-lg-9 img.card-img-top {
        width: 100% !important;
        height: auto !important;
    }
}

/* =================================================================== */
/* FIX FINAL: MENGHILANGKAN CELAH PUTIH ANTARA GAMBAR & TEKS          */
/* =================================================================== */

/* 1. Paksa Background Card Beranda Menjadi Biru (Sesuai Warna Box Teks) */
/* Ini trik paling ampuh: kalaupun ada celah, warnanya akan jadi biru, bukan putih */
.berita-utama .card {
    background-color: #4054b2 !important; /* GANTI dengan kode warna biru box Anda */
    border: none !important;
    overflow: hidden !important;
}

/* 2. Hilangkan spasi di elemen pertama dalam box teks (Biasanya Judul) */
.berita-utama .card-body *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 3. Reset Padding Card Body Beranda */
.berita-utama .card-body {
    padding-top: 15px !important; /* Atur jarak teks ke gambar secara manual di sini */
    margin-top: -1px !important; /* Menarik box biru ke atas agar menimpa gambar sedikit */
}

/* 4. Pastikan gambar tidak punya sisa ruang sedikitpun */
.berita-utama img.card-img-top {
    display: block !important;
    margin-bottom: 0 !important;
    border-radius: 8px 8px 0 0;
}

/* Indikator Titik Online */
.online-dot {
    height: 10px;
    width: 10px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.visitor-widget-container .fw-bold {
    color: #4054b2 !important; /* Gunakan Biru BPKAD untuk angka */
}

/* --- RESPONSIVE LOGO --- */
/* Standar Desktop */
.header-logo img {
    max-height: 70px; /* Atur tinggi logo desktop */
    width: auto;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    /* Logo Tablet */
    .header-logo img {
        max-height: 40px !important;
    }
    /* Memastikan area header tidak terlalu tinggi */
    #header .header-body {
        padding: 10px 0 !important;
    }
}

@media (max-width: 767px) {
    /* Logo Mobile */
    .header-logo img {
        max-height: 35px !important;
    }
    /* Mengatur kontainer logo agar tidak lebar ke samping */
    .header-logo {
        margin: 5px 0 !important;
    }
}

@media (max-width: 991px) {
    .intro-banner-vdo-play-btn .ripple {
        animation: none !important; /* Matikan animasi ripple di HP */
        display: none;
    }

    .online-dot {
        animation: none !important; /* Titik hijau tidak perlu berdenyut di HP */
    }
}

/* 1. Paksa GPU layer untuk semua elemen animasi */
.appear-animation,
.carousel-item.active * {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 2. Matikan Blur secara total di semua device (Opsional tapi sangat disarankan) */
/* Efek blur adalah musuh utama PC spek rendah */
.blurIn {
    filter: none !important;
    -webkit-filter: none !important;
    animation-name: fadeInUpShorter !important; /* Paksa ganti ke fade in biasa */
}

/* 3. Percepat durasi animasi */
/* Animasi yang lambat (slow) justru memperlihatkan patah-patahnya */
.appear-animation.animated {
    animation-duration: 600ms !important; /* Buat lebih cepat/snappy */
}

/* Hilangkan shadow berat saat sedang bergerak */
.appear-animation:not(.animated) {
    text-shadow: none !important;
    box-shadow: none !important;
}

/* =================================================================== */
/* ===== GALERI FOTO DALAM ARTIKEL (SEAMLESS VERSION) ===== */
/* =================================================================== */

/* 1. Container Utama Galeri (Dibuat Bersih/Seamless) */
.article-gallery-frame {
    position: relative !important;
    background: transparent !important; /* Hilangkan warna putih */
    border: none !important; /* Hilangkan garis tepi */
    padding: 0 !important; /* Hilangkan jarak antara foto dan garis */
    margin-bottom: 25px;
    box-shadow: none !important; /* Hilangkan bayangan kotak */
}

/* 2. Pengaturan Gambar */
.article-gallery-frame .owl-item {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important; /* Hilangkan background di belakang foto portrait */
}

.article-gallery-frame .owl-item img {
    height: 450px !important;
    width: 100% !important;
    object-fit: contain !important; /* Tetap menjaga proporsi foto agar tidak gepeng */
    border-radius: 8px; /* Opsional: tetap beri sedikit lengkungan di sudut foto agar elegan */
}

/* 3. Pengaturan Navigasi (Tombol melayang di atas foto) */
.article-gallery-frame .owl-nav {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 0 !important;
    transform: translateY(-50%) !important;
    display: block !important;
    margin: 0 !important;
    z-index: 10;
    pointer-events: none; /* Agar area kosong navigasi tidak menghalangi klik foto */
}

.article-gallery-frame .owl-nav button {
    position: absolute !important;
    background: rgba(
        255,
        189,
        89,
        0.8
    ) !important; /* Beri sedikit transparansi agar lebih modern */
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important; /* Dibuat bulat agar terlihat seperti kontrol modern */
    border: none !important;
    transition: all 0.3s ease;
    pointer-events: auto; /* Aktifkan kembali klik pada tombol */
}

/* Posisi tombol agak masuk ke dalam foto sedikit agar tidak keluar area artikel */
.article-gallery-frame .owl-nav .owl-prev {
    left: 10px !important;
}
.article-gallery-frame .owl-nav .owl-next {
    right: 10px !important;
}

/* 4. Menghapus Ikon Bawaan Tema Porto */
.article-gallery-frame .owl-nav button span,
.article-gallery-frame .owl-nav button::before,
.article-gallery-frame .owl-nav button::after {
    display: none !important;
    content: "" !important;
}

.article-gallery-frame .owl-nav button i {
    font-size: 16px !important;
    color: #fff !important;
}

/* Efek Hover */
.article-gallery-frame .owl-nav button:hover {
    background: #152778 !important;
    transform: scale(1.1) translateY(0);
}

/* 5. Responsif untuk HP */
@media (max-width: 768px) {
    .article-gallery-frame .owl-item,
    .article-gallery-frame .owl-item img {
        height: 250px !important; /* Tinggi disesuaikan layar kecil */
    }

    /* Pada HP, tombol diperkecil sedikit */
    .article-gallery-frame .owl-nav button {
        width: 30px !important;
        height: 30px !important;
    }
}

.ig-section-wrapper {
    background: #f8f9fa;
    padding: 15px 0;
    width: 100%;
    display: block; /* Hindari display:flex dari .card_wrapper Anda */
    height: auto; /* Jangan 100vh */
}

/* Base Card Style sesuai CSS Anda */
.ig-card-box {
    background: #133da8 !important; /* Warna Biru Baru */
    border-radius: 10px !important;
    overflow: hidden;
    transition: 0.3s;
    margin: 15px 10px;
    border: none; /* Hilangkan border abu-abu agar lebih clean */
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
}

/* Efek Hover (sedikit glow biru agar mewah) */
.ig-card-box:hover {
    box-shadow: 0px 15px 35px rgba(19, 61, 168, 0.4);
    transform: translateY(-10px);
}

/* Wadah Foto Portrait */
.ig-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f0f0f0;

}

.ig-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Hitam Transparan */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Sembunyi saat awal */
    transition: opacity 0.4s ease; /* Animasi halus */
    z-index: 2;
}
.ig-card-img:hover .ig-overlay {
    opacity: 1; /* Muncul saat hover */
}

/* Style Logo Instagram di Tengah */
.ig-overlay i {
    color: #ffffff;
    font-size: 40px; /* Ukuran Logo */
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

/* Animasi Logo sedikit membesar saat hover */
.ig-card-box:hover .ig-overlay i {
    transform: scale(1);
}

.ig-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Update pada bagian teks card */
.ig-card-text {
    padding: 20px 15px;
    text-align: left;
    background: #133da8; /* Samakan dengan background kartu */
}

/* Warna Teks Caption (Putih) */
.ig-card-text p {
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff !important; /* Warna Putih agar kontras */
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}

/* Warna Tanggal (Putih Transparan) */
.ig-card-text .ig-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7) !important; /* Putih agak pudar */
    font-family: bromega-Regular;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* NAVIGASI SLIDER (Fix Panah Dobel & Posisi Luar) */
.ig-slider-carousel {
    position: relative;
}

.ig-slider-carousel .owl-nav {
    position: absolute;
    top: 35%;
    width: 100%;
}

.ig-slider-carousel .owl-prev,
.ig-slider-carousel .owl-next {
    width: 45px;
    height: 45px;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    position: absolute !important;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1) !important;
    pointer-events: auto; /* Aktifkan klik kembali */
    color: #152778 !important;
    font-size: 0 !important; /* Hilangkan teks asli agar tidak dobel */
    transition: 0.3s;
}

.ig-slider-carousel .owl-prev:hover,
.ig-slider-carousel .owl-next:hover {
    background: #152778 !important;
    color: #fff !important;
}

/* Ikon Panah (Hanya Satu) */
.ig-slider-carousel .owl-prev::before {
    content: "\f053";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
}
.ig-slider-carousel .owl-next::before {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
}

.ig-slider-carousel .owl-next {
    right: -60px;
} /* Posisi di luar kanan */
.ig-slider-carousel .owl-prev {
    left: -60px;
} /* Posisi di luar kiri */

/* Sembunyikan panah di layar HP agar tidak keluar layar */
@media (max-width: 1200px) {
    .ig-slider-carousel .owl-nav {
        display: none !important;
    }
}

.ig-section-wrapper .container {
    display: block !important;
}

#ig-feed-slider {
    display: block !important;
    width: 100% !important;
}

/* Memastikan item owl berjejer ke samping */
.owl-carousel .owl-item {
    float: left;
}

/* Kunci lebar card agar tetap kecil/elegant */
.ig-card-box {
    max-width: 230px;
    margin: 10px auto;
    border-radius: 40px;
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
}

/* Menghias scrollbar untuk bagian agenda */
#nav-agenda::-webkit-scrollbar {
    width: 6px;
}

#nav-agenda::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#nav-agenda::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#nav-agenda::-webkit-scrollbar-thumb:hover {
    background: #555;
}
