html, body {
    max-width: 100% !important;
    padding-top: 45px;
    overflow-x: hidden !important;
    position: relative;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    scroll-behavior: smooth;

}

/* Pastikan semua gambar dan iframe tidak pernah melebihi lebar kontainernya */
img, iframe {
    max-width: 100%;
}

.color-brand {
    color: #dc2626 !important;
}

.bgcolor-brand {
    background-color: #dc2626 !important;
}

/* NAVBAR */
.navbar {
    padding: 15px 0;
    background-color: #fff !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.25rem;
    color: #2c3e50 !important;
}

/* Tambahkan di file CSS kustom kamu */
.navbar-brand img {
    height: 50px;          /* Sesuaikan tinggi logo yang diinginkan */
    width: auto;           /* Memastikan lebar mengikuti rasio asli */
    object-fit: contain;   /* Mencegah gambar terdistorsi/gepeng */
    flex-shrink: 0;        /* Mencegah Flexbox mengecilkan logo */
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s;
}

/* Highlight Active Menu */
.nav-link.active {
    color: #e74c3c !important; /* Warna merah sesuai tema */
    font-weight: 700;
}

.nav-link:hover {
    color: #e74c3c !important;
}

/* Button Daftar Sekarang (Merah) */
.btn-daftar {
    background-color: #dc2626 !important;
    color: white !important;
    border: none;
    padding: 10px 25px !important;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-daftar:hover {
    background-color: #c0392b !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Garis pemisah kecil di Login (Opsional sesuai gambar) */
.nav-login {
    margin-right: 10px;
}

/* NAVBAR LAYANAN CLUSTER */

.dropdown-mega .dropdown-menu {
    width: 95vw !important; /* Gunakan lebar layar */
    max-width: 1200px;     /* Batasi agar tidak terlalu lebar di monitor besar */
    left: 50% !important; 
    transform: translateX(-50%) !important; /* Memusatkan menu dengan sempurna */
    padding: 2rem !important;
}

/* Kunci utama agar kolom tidak menembus samping */
.dropdown-mega .row {
    flex-wrap: wrap; /* Memaksa kolom turun ke bawah jika layar tidak cukup */
    width: 100%;
}

/* Memastikan setiap link tidak paksa melebar */
.dropdown-item {
    white-space: normal !important; /* Teks turun baris jika panjang */
    display: block;
    word-wrap: break-word;
}

.dropdown-menu .dropdown-item {
    font-size: 0.9rem; /* Sesuaikan angka (0.75rem - 0.9rem) */
    font-weight: 500;
}

.custom-toggler-icon {
    width: 26px;
    height: 18px;
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.custom-toggler-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #2c3e50; /* Warna garis hamburger */
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.custom-toggler-icon span:nth-child(1) { top: 0px; }
.custom-toggler-icon span:nth-child(2) { top: 7.5px; }
.custom-toggler-icon span:nth-child(3) { top: 15px; }

/* Trigger Animasi ke bentuk (X) saat atribut aria-expanded menjadi true */
.navbar-toggler[aria-expanded="true"] .custom-toggler-icon span:nth-child(1) {
    top: 7.5px;
    transform: rotate(135deg);
}
.navbar-toggler[aria-expanded="true"] .custom-toggler-icon span:nth-child(2) {
    opacity: 0;
    left: -40px;
}
.navbar-toggler[aria-expanded="true"] .custom-toggler-icon span:nth-child(3) {
    top: 7.5px;
    transform: rotate(-135deg);
}

/* Hilangkan outline fokus biru khas Bootstrap saat tombol diklik */
.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}


/* =========================================
   PERBAIKAN MEGA MENU & OFFCANVAS LAYOUT
========================================= */
@media (min-width: 992px) {
    /* Hanya terapkan mega menu lebar di Desktop */
    .dropdown-mega .dropdown-menu {
        width: 95vw !important; 
        max-width: 1200px;     
        left: 50% !important; 
        transform: translateX(-50%) !important; 
        padding: 2rem !important;
    }
}

@media (max-width: 991.98px) {
    /* Styling Offcanvas untuk Mobile */
    .offcanvas-body {
        padding: 1.5rem;
    }
    
    /* Reset Mega Menu agar vertikal dan rapi di Offcanvas */
    .dropdown-mega .dropdown-menu {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    /* Tambahan jarak antar klaster di tampilan HP */
    .dropdown-mega .col-lg {
        margin-bottom: 1rem;
    }
}

/* =======================================
   PERBAIKAN CAROUSEL BANNER 16:9
   ======================================= */
/* Biarkan carousel menyesuaikan tinggi gambar secara fleksibel */
#heroCarousel, 
#heroCarousel .carousel-inner, 
#heroCarousel .carousel-item {
    height: auto;
    width: 100%;
}

/* Pastikan gambar 16:9 tampil utuh 100% tanpa dipotong atas-bawah */
#heroCarousel .carousel-item img {
    width: 100%;
    height: auto !important;
    max-height: 100vh; /* Mencegah gambar melampaui batas bawah layar */
    object-fit: contain; /* Kunci utama agar gambar tidak di-crop */
    display: block;
    margin: 0 auto; /* Memastikan gambar berada di tengah */
}

/* KONTAK DAN JAM OPERASIONAL */
.section-padding {
        padding: 80px 0;
    }

    /* Base Style Kartu */
    .info-box-custom {
        height: 200px;
        border-radius: 10px; /* Sudut sangat bulat sesuai gambar */
        padding: 40px;
        color: white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .info-box-custom:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    }

    /* Gradasi Merah (Emergency) */
    .gradient-emergency {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    }

    /* Gradasi Biru/Dark (Operational) */
    .gradient-operational {
        background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    }

    /* Penempatan Ilustrasi */
    .illustration-top {
        margin-top: 20px;
        opacity: 0.9;
    }

    /* Penempatan Teks di Bawah Kiri */
    .text-content-bottom {
        position: absolute;
        bottom: 40px;
        left: 40px;
        right: 40px;
    }

    .text-content-bottom h2 {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    /* Responsif untuk Mobile */
    @media (max-width: 768px) {
        .info-box-custom {
            height: 350px;
            padding: 30px;
        }
        .text-content-bottom h2 {
            font-size: 1.4rem;
        }
    }
    .illustration-top {
    position: absolute;
    margin-top: 0px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3; /* Buat agak transparan agar teks di depan tetap terbaca */
    z-index: 1;
    }

    .illustration-top img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ini akan memaksa gambar memenuhi seluruh kotak */
    }

    .text-content-bottom {
        z-index: 2; /* Pastikan teks berada di atas gambar */
    }

/* PENDAFTARAN ONLINE */
.pendaftaran-section {
    position: relative;
    background-image: url('../../assets/image/default-banner/4.png'); 
    background-size: cover;
    background-position: center right;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Gradient Overlay: Memberi transparansi yang bersih */
.pendaftaran-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.95) 40%, 
        rgba(255, 255, 255, 0.7) 70%, 
        rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}

.pendaftaran-section .container {
    position: relative;
    z-index: 2;
}

/* Padding area konten untuk memberikan margin samping yang aman */
.content-left {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Typo & Typography Styling */
.content-left .title-text {
    color: #2c3e50;
    font-size: 2.25rem;
    line-height: 1.25;
}

.content-left .desc-text {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
}

.feature-list li {
    color: #2d3748;
    font-weight: 500;
}

/* Tombol bergaya Modern Pill Button */
.btn-primary-custom {
    background-color: #5c86e7;
    color: #ffffff;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(92, 134, 231, 0.25);
}

.btn-primary-custom:hover {
    background-color: #4671d5;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(92, 134, 231, 0.35);
}

/* Responsif Mobile (Di bawah 992px) */
@media (max-width: 991.98px) {
    .pendaftaran-section {
        background-position: center;
        padding: 50px 0;
    }

    /* Background putih diperpekat di HP agar teks jelas */
    .pendaftaran-section::before {
        background: rgba(255, 255, 255, 0.92);
    }

    /* Paksa Rata Kiri & Kunci Margin Samping */
    .content-left {
        text-align: left !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .content-left .title-text {
        font-size: 1.85rem;
    }

    .content-left .desc-text {
        max-width: 100%;
    }

    .btn-primary-custom {
        width: 100%;
    }
}

/* kontak darurat */
@media (max-width: 991px) {
    #kontak-darurat .border-start, 
    #kontak-darurat .border-end {
        border: none !important;
        margin-top: 20px;
        margin-bottom: 0; /* Hapus margin bawah */
        padding-top: 20px;
        padding-bottom: 0; /* Hapus padding bawah */
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-bottom: none !important; /* Hilangkan garis bawah di HP */
    }
}

/* Mempercantik font dan spasi ikon */
#kontak-darurat .small {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* INOVASI */
/* Pastikan warna teks tetap terjaga meski dibungkus <a> */
#inovasi .card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block; /* Penting agar <a> berperilaku seperti block */
}

/* Efek Hover */
#inovasi .card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.15) !important;
    cursor: pointer;
}

/* Opsional: Efek pada ikon saat kartu di-hover */
#inovasi .card:hover .bg-danger {
    background-color: #dc2626 !important;
    transition: background-color 0.3s ease;
}

#inovasi .card:hover .text-danger {
    color: white !important;
    transition: color 0.3s ease;
}

/* REVIEW */
.survey-wrapper {
        /* Ubah 'bg-pattern.jpg' dengan nama file background Anda */
        background: url('<?= base_url("assets/image/bg-pattern.jpg") ?>') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }

    /* 2. Pengaturan Warna Tema */
    .text-teal {
        color: #17a2b8; /* Sesuaikan warna hijau tosca puskesmas */
    }
    .btn-teal {
        background-color: #1abc9c;
        border-color: #1abc9c;
        transition: all 0.3s;
    }
    .btn-teal:hover {
        background-color: #16a085;
        border-color: #16a085;
    }
    .left-panel {
        background-color: #e0f2f1; /* Warna hijau muda pastel untuk panel kiri */
    }

    /* 3. Pengaturan Custom Input & Select */
    .form-control, .form-select {
        border: 1px solid #dee2e6;
        border-radius: 6px;
    }
    .form-control:focus, .form-select:focus {
        border-color: #1abc9c;
        box-shadow: 0 0 0 0.25rem rgba(26, 188, 156, 0.25);
    }

    /* 4. Trik Rahasia: Rating Emoji Interaktif */
    .rating-option input[type="radio"] {
        display: none; /* Sembunyikan bulatan radio asli */
    }
    .rating-option label {
        font-size: 3rem; /* Ukuran emoji */
        color: #ced4da; /* Warna abu-abu saat belum dipilih */
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }
    .rating-option label:hover {
        transform: scale(1.1);
        color: #adb5bd;
    }
    
    /* Warna saat emoji dipilih (Checked) */
    .rating-option input[value="1"]:checked + label {
        color: #e74c3c; /* Merah untuk Sangat Tidak Puas */
        transform: scale(1.15);
    }
    .rating-option input[value="2"]:checked + label {
        color: #f39c12; /* Orange untuk Tidak Puas */
        transform: scale(1.15);
    }
    .rating-option input[value="3"]:checked + label {
        color: #3498db; /* Biru untuk Puas */
        transform: scale(1.15);
    }
    .rating-option input[value="4"]:checked + label {
        color: #2ecc71; /* Hijau untuk Sangat Puas */
        transform: scale(1.15);
    }

/* VISI MISI */
/* Styling Utama Ruang Visi Misi Dark Mode */
#visimisi {
    background-color: #0f1011 !important; /* Warna hitam pekat elegan sesuai gambar */
}

#visimisi .text-secondary {
    color: #9ca3af !important; /* Warna teks abu-abu redup agar kontras nyaman */
}

/* Kotak Melayani Dengan Hati */
#visimisi .card-moto {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#visimisi .card-moto:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(220, 38, 38, 0.3);
}

#visimisi .icon-moto-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

/* Lingkaran Angka Misi */
#visimisi .misi-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

#visimisi .misi-item p {
    font-size: 1rem;
    line-height: 1.5;
}

/* PETA MODERN */
/* Card Peta Modern */
    .map-card {
        border-radius: 30px;
        overflow: hidden;
        border: 8px solid #fff; /* Efek bingkai putih agar terlihat premium */
    }

    Lingkaran Ikon
    .icon-circle {
        width: 50px;
        height: 50px;
        background-color: rgba(231, 76, 60, 0.1); /* Merah transparan */
        color: #e74c3c;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    /* Tombol Media Sosial */
    .social-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background-color: #f8f9fa;
        color: #2c3e50;
        border-radius: 50%;
        margin-right: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid #eee;
    }

    .social-btn:hover {
        background-color: #e74c3c;
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    }

    /* Tipografi */
    #kontak h2 {
        letter-spacing: -1px;
        line-height: 1.2;
    }

/* WHATSAPP */
/* Container Utama */
.faq-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Tombol Melayang WhatsApp */
.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    border: none;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
}

/* Pop-up Box FAQ */
.faq-popup {
    display: none;
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-height: 520px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    animation: popupFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-popup.show {
    display: flex;
}

@keyframes popupFade {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header Popup */
.faq-header {
    padding: 16px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.faq-header h5 {
    font-size: 1.05rem;
    color: #1e293b;
    font-family: 'Inter', serif; /* Sesuai gaya gambar */
}

.btn-close-faq {
    background: none;
    border: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

/* Body FAQ / Accordion */
.faq-body {
    padding: 10px 16px;
    overflow-y: auto;
    max-height: 360px;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 14px 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 12px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Indikator Accordion Aktif */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Footer WhatsApp Button */
.faq-footer {
    padding: 12px 16px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.btn-wa-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background-color: #dc2626;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease;
}

.btn-wa-direct:hover {
    background-color: #dc2626;
}

/* Penyesuaian Layar HP / Mobile Responsive */
@media (max-width: 576px) {
    .faq-widget-container {
        right: 15px;
        bottom: 15px;
    }
    
    .faq-popup {
        width: calc(100vw - 30px);
        right: 0;
        bottom: 70px;
        max-height: 80vh;
    }
}

/* FOOTER */
/* Footer Styling */
    .bg-black {
        background-color: #000000 !important;
    }

    .footer-custom h5 {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    /* Styling Link di Footer */
    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

    .footer-links a:hover {
        color: #e74c3c; /* Warna merah saat di-hover */
        padding-left: 8px; /* Efek geser sedikit */
    }

    /* Garis bawah judul kolom */
    .border-danger.border-3 {
        width: 40px;
    }

    /* Icon bulat social media */
    .btn-outline-light.rounded-circle {
        width: 35px;
        height: 35px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-color: rgba(255,255,255,0.2);
    }

    .btn-outline-light.rounded-circle:hover {
        background-color: #e74c3c;
        border-color: #e74c3c;
    }

/* LOGIN */
 /* Background Image dengan Overlay */
        .auth-bg {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
            url('./bg-auth.png');
            background-size: cover;
            background-position: center;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .auth-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 40px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        }

        .text-red { color: #e74c3c; }
        .btn-red { 
            background-color: #e74c3c; 
            color: white; 
            border: none; 
            padding: 12px; 
            border-radius: 10px;
            font-weight: 600;
        }
        .btn-red:hover { background-color: #c0392b; color: white; }
        
        .form-control:focus {
            border-color: #e74c3c;
            box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
        }

/* REGISTRASI */
/* Latar Belakang Full Gambar dengan Overlay */
        .auth-bg {
            background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                              url('https://images.unsplash.com/photo-1505751172107-5739a00943a5?auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }

        /* Kartu Pendaftaran */
        .register-card {
            background: white;
            border-radius: 25px;
            padding: 40px;
            width: 100%;
            max-width: 550px; /* Dipersempit agar elegan untuk satu kolom */
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        /* Aksen Warna */
        .text-red { color: #e74c3c; }
        
        .form-label {
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .form-control {
            border-radius: 10px;
            padding: 12px;
            background-color: #f8f9fa;
            border: 1px solid #e9ecef;
        }

        .form-control:focus {
            box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.1);
            border-color: #e74c3c;
        }

        /* Tombol Utama Merah */
        .btn-red { 
            background-color: #e74c3c; 
            color: white !important; 
            border: none; 
            padding: 14px 30px; 
            border-radius: 12px; 
            font-weight: 700;
            transition: all 0.3s ease;
        }

        .btn-red:hover { 
            background-color: #c0392b; 
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(231, 76, 60, 0.3) !important;
        }

        /* Tombol Transparan Login */
        .btn-transparent-red {
            background-color: transparent;
            color: #e74c3c;
            border: none;
            font-weight: 600;
            padding: 10px;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .btn-transparent-red:hover {
            color: #c0392b;
            background-color: rgba(231, 76, 60, 0.05);
            border-radius: 10px;
        }

        hr {
            opacity: 0.1;
        }

/* ARTIKEL */
/* Styling Gambar Thumbnail Artikel */
.img-list-artikel {
    width: 140px;
    height: 90px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* Sedikit membesar saat gambar di hover */
a:hover .img-list-artikel {
    transform: scale(1.03);
}

/* Styling Label Kategori */
.badge-kategori {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* Hover effect untuk judul artikel */
.title-hover {
    line-height: 1.4;
    transition: color 0.2s ease-in-out;
}

a:hover .title-hover {
    color: #dc2626 !important; /* Berubah menjadi merah (danger) saat dihover */
}

/* Penyesuaian gambar untuk mobile agar tidak terlalu besar */
@media (max-width: 576px) {
    .img-list-artikel {
        width: 100px;
        height: 75px;
    }
}

/* =========================================
   FIX MEGA MENU LAYANAN CLUSTER 
   ========================================= */

/* 1. KHUSUS DESKTOP (Layar Besar) */
@media (min-width: 992px) {
    #mainNavbar .container {
        position: relative; /* Menjadikan container sebagai batas patokan */
    }
    
    .dropdown-mega {
        position: static !important; /* Lepas dari tombol nav-item */
    }
    
    .dropdown-mega .dropdown-menu {
        width: 100%; /* Rentangkan sepanjang container */
        left: 0 !important;
        right: 0 !important;
        top: 100% !important; /* Paksa turun tepat di bawah navbar */
        
        /* MATIKAN POPPER.JS - Ini kunci agar menu tidak terbang! */
        transform: none !important; 
        margin-top: 0;
        border-radius: 0 0 15px 15px; 
    }
}

/* 2. KHUSUS MOBILE (Layar HP & Tablet Kecil) */
/* 2. KHUSUS MOBILE (Layar HP & Tablet Kecil) */
@media (max-width: 991px) {
    /* Matikan paksaan posisi dari Popper.js */
    .dropdown-mega .dropdown-menu {
        position: static !important; 
        transform: none !important; 
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        padding: 10px 5% !important; /* Memberikan ruang aman agar teks tidak menabrak tepi pinggir HP */
    }
    
    /* Hapus margin negatif bawaan .row Bootstrap yang menarik konten ke luar layar */
    .dropdown-mega .dropdown-menu .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Susun kolom ke bawah dengan rapi */
    .dropdown-mega .dropdown-menu .row > div {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 25px; /* Jarak antar kategori klaster */
    }
    
    /* Izinkan teks panjang untuk turun ke baris baru, dan pusatkan teks */
    .dropdown-mega .dropdown-item {
        white-space: normal !important; 
        padding: 8px 0 !important;
        text-align: center; /* Mengikuti menu "Beranda" dkk yang juga di tengah */
    }
    
    /* Rapikan judul tiap Klaster */
    .dropdown-mega h6 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
        text-align: center;
    }
}