*.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: 1px;

    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 */
    }
}

/*
    * ===============================================
    * 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 */
}

/*-- =================================================================== -->
<!-- ===== KODE CSS BARU UNTUK PENYESUAIAN TAMPILAN TABLET ===== -->
<!-- =================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    /* 1. Naikkan posisi seluruh caption (teks & search bar) */
    .carousel-caption {
        top: 15% !important; /* <- DIUBAH DARI 25% MENJADI 15% AGAR LEBIH NAIK */
    }

    /* 2. Atur ulang container tombol navigasi agar berada di tengah layar */
    .carousel-caption .pt-10 {
        position: fixed !important; /* Ganti menjadi fixed agar relatif ke layar, bukan caption */
        top: 50% !important; /* Posisikan di tengah vertikal layar */
        left: 0 !important; /* Mulai dari tepi kiri layar */
        width: 100% !important; /* Buat lebarnya penuh */
        transform: translateY(
            -50%
        ) !important; /* Sempurnakan posisi vertikal */
        padding: 0 15px !important; /* Hapus padding atas dan beri jarak tepi */
        z-index: 20; /* Pastikan tombol di atas elemen lain */
    }

    /* 3. Gunakan flexbox untuk menempatkan tombol di ujung kiri dan kanan */
    .carousel-caption .pt-10 .col {
        display: flex;
        justify-content: space-between; /* Mendorong tombol prev ke kiri dan next ke kanan */
    }

    /* 4. Hapus style inline pada tombol agar flexbox bisa bekerja */
    .carousel-control-prev,
    .carousel-control-next {
        position: static !important; /* Hapus posisi absolut agar mengikuti alur flexbox */
        left: auto !important;
        right: auto !important;
    }
}

/* ===== 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 URUTAN KONTEN DI MODE TABLET ===== */
/* =================================================================== */

/* =================================================================== */
/* ===== 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: 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: 600px !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%;
    }

    //code untuk text artikel
    /* Ganti ukuran font isi artikel */
    p {
        font-size: 18px !important; /* Ubah angka 16px sesuai keinginan (misal 18px) */
        line-height: 1.8 !important; /* Jarak antar baris agar nyaman dibaca */
        //       color: #333; /* Warna teks (opsional) */
    }

    /* Jika hanya ingin mengubah di dalam container berita agar tidak merusak menu lain */
    .container p,
    .entry-content p,
    .article-body p {
        font-size: 13px !important; /* Ganti ukuran di sini */
    }

    /* =================================================================== */
    /* 1. PENUTUP KURUNG KURAWAL YANG HILANG (PENTING!)                    */
    /* =================================================================== */
} /* <-- Ini menutup @media (min-width: 993px) yang terbuka di atas */

/* =================================================================== */
/* 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; */
}
