:root {
   --bs-primary: #0d6efd;           /* Biru standar Bootstrap */
  --primary-hover: #0b5ed7;       /* Biru yang lebih gelap untuk hover */
 --bs-secondary: #6c757d;        /* Abu-abu sekunder */
 --panel-bg: #ffffff;            /* Latar panel putih */
 --body-bg: #f8f9fa;             /* Latar body abu-abu sangat muda */
    --border-color: #dee2e6;        /* Warna border abu-abu muda */
    --text-color: #495057;          /* Warna teks utama untuk keterbacaan */
    --heading-color: #212529;       /* Warna judul hitam pekat */
} 
body {
    background-color: var(--body-bg);
    color: var(--text-color);
}
a { color: var(--bs-primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
hr { color: var(--border-color); opacity: 0.25; }
.breadcrumb { background-color: var(--border-color); }
.main-content-panel, .sidebar-widget, .related-posts-box {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.main-content-panel h1, .sidebar-widget h4 { color: var(--heading-color); }
.main-content-panel h2 a { color: var(--heading-color); }
.main-content-panel h2 a:hover { color: var(--bs-primary); }

.h-100-wrapper {
    height: 100%;
}
.h-100-wrapper > * {
    height: 100%;
}
.blog-grid-section {
    background-color: var(--body-bg); /* Menggunakan warna latar body dari tema */
    padding: 4rem 0;
}
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}
.section-title h2 {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.section-title .divider {
    height: 4px;
    width: 80px;
    background: var(--bs-primary);
    margin: 0 auto;
}
.blog-grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
}
.bg-col-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.bg-card {
    background: var(--panel-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.bg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.bg-img-container {
    position: relative;
    overflow: hidden;
}
.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bg-card:hover .bg-img {
    transform: scale(1.05);
}
.bg-card-small .bg-img-container { height: 200px; }
.bg-card-large .bg-img-container { height: 100%; } /* Biarkan tinggi mengikuti konten */
.badge-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--bs-primary);
    color: var(--panel-bg); /* Teks putih/terang */
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}
.bg-content { padding: 1.5rem; }
.bg-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Agar responsif di mobile */
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-color);
}
.bg-meta i { margin-right: 0.25rem; color: var(--bs-primary); }
.bg-title-large { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.3; }
.bg-title-small { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.4; }
.bg-title a { color: var(--heading-color); }
.bg-title a:hover { color: var(--bs-primary); }
.bg-excerpt { font-size: 0.9375rem; line-height: 1.6; margin-bottom: 1.25rem; }
.view-all-container { text-align: center; margin-top: 3rem; }
.view-all-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; background: var(--bs-primary);
    color: var(--panel-bg); border: none; border-radius: 0.375rem;
    font-weight: 600; transition: all 0.3s ease;
}
.view-all-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
@media (max-width: 992px) {
    .blog-grid-container {
        grid-template-columns: 1fr; /* Semua jadi 1 kolom */
    }
    .bg-col-center { order: -1; } /* Pindahkan kolom tengah ke atas */
    .section-title h2 { font-size: 1.75rem; }
}
@media (max-width: 576px) {
    .blog-grid-section { padding: 2.5rem 0; }
    .bg-title-large { font-size: 1.25rem; }
    .bg-title-small { font-size: 1rem; }
}
.header-top { background-color: #f8f9fa; padding: 0.5rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--border-color); }
.logo-area .logo-subtext { font-size: 1.5rem; color: var(--heading-color); font-weight: bold; }
.header-top-info a { color: var(--text-color); transition: color 0.2s; }
.header-top-info a:hover { color: var(--bs-primary); }
.header-top-info .bi { margin-right: 0.5rem; }
.header-middle { padding: 2rem 0; }
.logo-area a { text-decoration: none; }
.logo-area .logo-text { font-size: 2rem; font-weight: bold; color: var(--bs-primary); line-height: 1; }
.logo-area .logo-subtext { font-size: 1.5rem; color: var(--heading-color); font-weight: bold; }
.header-bottom { border-top: 1px solid var(--border-color); box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05); }
.main-navbar .nav-link { color: var(--heading-color); font-weight: 500; text-transform: uppercase; padding: 1rem 1.25rem; position: relative; transition: color 0.2s; }
.main-navbar .nav-link.active, .main-navbar .nav-link:hover { color: var(--bs-primary); }
.main-navbar .nav-link.active::after { content: ''; position: absolute; bottom: -1px; left: 1.25rem; right: 1.25rem; height: 3px; background-color: var(--bs-primary); }
.social-icons a { font-size: 1.1rem; color: var(--text-color); padding: 0 0.5rem; transition: color 0.2s; }
.social-icons a:hover { color: var(--bs-primary); }
.ad-banner-area {
    display: inline-block; /* Agar bisa diatur width & height dan tetap di kanan */
    width: 728px;
    height: 90px;
    max-width: 100%; /* Agar responsif di layar kecil */
    background-color: #f0f0f0; /* Warna fallback jika gambar gagal dimuat */
    background-size: contain; /* PENTING: Diubah dari 'cover' menjadi 'contain' */
    background-position: center; /* PENTING: Memusatkan gambar di dalam area */
    background-repeat: no-repeat; /* Mencegah gambar berulang */
    border-radius: 0.25rem; /* Opsional: memberi sedikit sudut melengkung */
    text-decoration: none; /* Menghilangkan garis bawah dari link */
}


.header-bottom { border-top: 1px solid var(--border-color); box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05); }
.sidebar-widget h4 { border-bottom: 2px solid var(--bs-primary); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.sidebar-widget ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.sidebar-widget ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--text-color); }
.sidebar-widget ul li a:hover { color: var(--bs-primary); }
.img-float-left { float: left; margin-right: 1.5rem; margin-bottom: 1rem; max-width: 50%; height: auto; border-radius: 4px; }
.img-float-right { float: right; margin-left: 1.5rem; margin-bottom: 1rem; max-width: 50%; height: auto; border-radius: 4px; }
.post-content p:last-child::after { content: ""; display: table; clear: both; }
.featured-grid-container { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 250px); gap: 1.5rem; }
.grid-item { position: relative; border-radius: 0.375rem; overflow: hidden; color: #fff; }
.grid-item-large { grid-column: 1 / 3; grid-row: 1 / 3; }
.grid-item-tall { grid-column: 3 / 4; grid-row: 1 / 3; }
.grid-item-small-1 { grid-column: 4 / 5; grid-row: 1 / 2; }
.grid-item-small-2 { grid-column: 4 / 5; grid-row: 2 / 3; }
.grid-item-link { display: block; width: 100%; height: 100%; color: #fff; }
.grid-item-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.3s ease-in-out; }
.grid-item-link:hover .grid-item-bg { transform: scale(1.05); }
.grid-item-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.4) 100%); z-index: 1; }
.grid-item-badge { position: absolute; top: 1rem; left: 1rem; z-index: 3; }
.grid-item-content { position: relative; z-index: 2; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.grid-item-content h2 { color: #fff; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.grid-item-content .grid-item-meta { opacity: 0.8; }
.section-title-bar { border-left: 4px solid var(--bs-primary); padding-left: 1rem; }
.cb-post-large { position: relative; height: 420px; border-radius: 0.375rem; overflow: hidden; color: #fff; }
.cb-post-large a { color: #fff; }
.cb-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-size: cover; background-position: center; transition: transform 0.3s ease; }
.cb-post-large:hover .cb-bg { transform: scale(1.05); }
.cb-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%); }
.cb-badge { position: absolute; top: 1rem; left: 1rem; z-index: 3; }
.cb-content { position: relative; z-index: 3; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.cb-content h3 { font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,0.7); }
.cb-post-middle h4 a { color: var(--heading-color); }
.cb-post-middle h4 a:hover { color: var(--bs-primary); }
.cb-post-list-item h5 a { color: var(--heading-color); }
.cb-post-list-item h5 a:hover { color: var(--bs-primary); }
.cb-list-thumbnail { width: 90px; height: 70px; object-fit: cover; border-radius: 0.25rem; }
.reco-card { transition: box-shadow 0.2s ease-in-out; }
.reco-card:hover { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }
.reco-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.reco-category-link { font-size: 0.8rem; font-weight: bold; color: var(--bs-primary); text-transform: uppercase; }
.reco-card-title a { color: var(--heading-color); }
.reco-card-title a:hover { color: var(--bs-primary); }
.v-list-item { flex-basis: 100%; box-sizing: border-box; }
.v-list-img { width: 120px; height: 80px; object-fit: cover; border-radius: 0.375rem; }
.v-list-title a { color: var(--heading-color); font-weight: bold; line-height: 1.3; }
.v-list-title a:hover { color: var(--bs-primary); }
.hero-band-container { border-radius: 0.375rem; overflow: hidden; }
.hero-band-main { position: relative; height: 100%; aspect-ratio: 2 / 1; display: flex; align-items: flex-end; }
.hero-band-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.hero-band-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%); }
.hero-band-content { position: relative; z-index: 2; padding: 1rem 1.5rem; color: #fff; }
.hero-band-content h2 { color: #fff; font-size: 1.75rem; }
.hero-band-related { background-color: var(--bs-primary); padding: 1rem 1.5rem; }
.hero-related-link { color: #fff; display: block; padding: 0.5rem 0; border-left: 2px solid rgba(143, 19, 19, 0.5); padding-left: 1rem; transition: background-color 0.2s; }
.hero-related-link:hover { background-color: var(--bs-primary); }
.magazine-grid-container { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 250px); gap: 1rem; }
.mg-item { position: relative; border-radius: 0.375rem; overflow: hidden; color: #fff; }
.mg-link { display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.mg-bg-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.3s ease; }
.mg-link:hover .mg-bg-img { transform: scale(1.05); }
.mg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%); }
.mg-content { position: absolute; bottom: 0; left: 0; padding: 1.5rem; z-index: 2; width: 100%; }
.mg-title { color: #fff; font-weight: bold; line-height: 1.3; }
.mg-item-1 .mg-title { font-size: 1.75rem; }
.mg-item-2 .mg-title, .mg-item-3 .mg-title, .mg-item-4 .mg-title, .mg-item-5 .mg-title, .mg-item-6 .mg-title { font-size: 0.9rem; }
.mg-item-2 .mg-content, .mg-item-3 .mg-content, .mg-item-4 .mg-content, .mg-item-5 .mg-content, .mg-item-6 .mg-content { padding: 1rem; }
.mg-item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.mg-item-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.mg-item-3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.mg-item-4 { grid-column: 3 / 4; grid-row: 2 / 3; }
.mg-item-5 { grid-column: 4 / 5; grid-row: 2 / 3; }
.mg-item-6 { display: none; }
.hero-grid-container { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 250px); gap: 1.25rem; }
.hg-item { position: relative; border-radius: 0.375rem; overflow: hidden; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.hg-link { display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.hg-bg-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hg-link:hover .hg-bg-img { transform: scale(1.08); }
.hg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.6) 100%); z-index: 1; }
.hg-content { position: absolute; bottom: 0; left: 0; padding: 1.5rem; z-index: 2; width: 100%; }
.hg-title { color: #fff; font-family: 'Georgia', serif; font-weight: bold; line-height: 1.2; text-shadow: 2px 2px 5px rgba(0,0,0,0.7); }
.hg-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 0.75rem; }
.hg-meta .bi { margin-right: 0.25rem; vertical-align: -0.1em; }
.hg-item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.hg-item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.hg-item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
.main-footer { background-color: #f1f1f1; color: #555; }
.footer-widgets { padding: 4rem 0; border-bottom: 1px solid var(--border-color); }
.footer-widget-title { font-family: 'Georgia', serif; color: var(--heading-color); margin-bottom: 1.5rem; font-size: 1.75rem; }
.footer-widget ul { list-style: none; padding-left: 0; }
.footer-widget ul li { margin-bottom: 0.75rem; }
.footer-widget ul a { color: var(--text-color); }
.footer-widget ul a:hover { color: var(--bs-primary); }
.footer-contact-item { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.footer-contact-item .bi { color: var(--bs-primary); margin-right: 1rem; margin-top: 0.25rem; }
.footer-contact-item a { color: var(--text-color); }
.footer-contact-item a:hover { color: var(--bs-primary); }
.footer-map-container { height: 220px; width: 100%; }
.footer-map-container iframe { width: 100%; height: 100%; border-radius: 0.375rem; }
.footer-copyright { padding: 1.5rem 0; text-align: center; font-size: 0.9rem; }
.footer-copyright p { margin: 0; }
.footer-copyright a { font-weight: bold; color: var(--heading-color); }
.related-posts-box { border-left: 3px solid var(--bs-primary); }
.related-posts-box::after { content: '*'; position: absolute; top: 0.5rem; right: 1.25rem; font-size: 2.5rem; font-weight: bold; color: var(--bs-primary); opacity: 0.6; line-height: 1; }
.related-posts-box .related-posts-title { font-weight: bold; color: var(--heading-color); margin-top: 0; margin-bottom: 0.75rem; }
.related-posts-box ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.related-posts-box ul li { padding: 0.75rem 0; border-bottom: 1px dotted var(--border-color); }
.related-posts-box ul li:first-child { padding-top: 0; }
.related-posts-box ul li:last-child { padding-bottom: 0; border-bottom: none; }
.related-posts-box ul li a { color: var(--bs-primary); font-weight: 500; }
.related-posts-box ul li a:hover { text-decoration: underline; }
#scrollToTopBtn { display: none; position: fixed; bottom: 20px; right: 30px; z-index: 99; border: none; outline: none; cursor: pointer; padding: 10px 15px; font-size: 1.2rem; }
#scrollToTopBtn:hover { opacity: 0.9; }
.navbar-search-form {
    min-width: 220px; /* Beri lebar minimum agar tidak terlalu kecil */
}

.navbar-search-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.navbar-search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.hero-card-container {
    position: relative;
    display: block;
    border-radius: 0.375rem;
    overflow: hidden; /* Penting untuk menjaga sudut melengkung */
    height: 100%; /* PENTING: Menjaga rasio lebar:tinggi tetap 2:1 */
    aspect-ratio: 2 / 1;
    color: #fff;
}

.hc-link {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.hc-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hc-link:hover .hc-bg {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.hc-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.hc-format-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 3;
    background-color: var(--bs-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hc-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Mendorong semua konten ke bawah */
}

.hc-category {
    align-self: flex-start; /* Pastikan badge tidak memenuhi lebar */
}

.hc-title {
    font-size: 2rem; /* Ukuran font bisa disesuaikan */
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hc-meta {
    display: flex;
    gap: 1.5rem; /* Jarak antar item meta */
    font-size: 0.85rem;
    margin-top: 0.75rem;
    color: rgba(255,255,255,0.8);
}
.hc-meta .bi {
    margin-right: 0.5rem;
}
@media (max-width: 768px) {
    .hc-title {
        font-size: 1.5rem;
    }
    .hc-content {
        padding: 1rem;
    }
    .hc-format-icon {
        top: 1rem;
        left: 1rem;
    }
}
.hero-card-carousel .carousel-item {
    transition: transform 0.6s ease-in-out; /* Membuat transisi lebih halus */
}
.hero-card-carousel .carousel-control-prev,
.hero-card-carousel .carousel-control-next {
    width: 5%; /* Lebar area klik tombol */
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 10; /* <-- Pastikan tombol berada di lapisan teratas */
}
}

.hero-card-carousel .carousel-control-prev:hover,
.hero-card-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-card-carousel .carousel-control-prev-icon,
.hero-card-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.3); /* Latar belakang semi-transparan */
    border-radius: 50%;
    background-size: 50%; /* Membuat ikon di dalamnya lebih kecil */
}
.feature-slider-container .carousel-indicators {
    position: static; /* Mengubah posisi default agar berada di bawah konten */
   
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.feature-slider-container .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--heading-color);
    border: none;
    opacity: 0.25;
    transition: opacity 0.2s ease-in-out;
}

.feature-slider-container .carousel-indicators button.active {
    opacity: 1;
}
.fs-img-container {
    width: 100%;
    aspect-ratio: 4 / 3; /* Rasio standar 4:3. Anda bisa ubah ke 16/9 atau 1/1 */
    background-color: #f0f0f0; /* Warna fallback jika gambar gagal dimuat */
    background-size: cover;    /* Memastikan gambar menutupi area tanpa distorsi */
    background-position: center; /* Memusatkan gambar */
    background-repeat: no-repeat;
}
.info-card-container {
    height: 100%; /* KUNCI UTAMA: Paksa div ini untuk mengisi tinggi kolom parent */
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--panel-bg);
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.info-card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

.info-card-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.info-card-title {
    color: var(--heading-color);
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.info-card-text {
    font-size: 0.95rem;
    color: var(--text-color);
}
.pemda-hero-container {
    padding: 5rem 0;
    color: #fff; /* Teks di atas latar berwarna akan selalu putih */
    background-color: var(--bs-primary); /* Diubah: Latar menggunakan warna utama tema */
}
.pemda-hero-logo {
    max-height: 120px;
    width: auto;
}
.pemda-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff; /* Pastikan judul selalu putih */
}
.pemda-hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
}
.pemda-hero-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    margin: 0.5rem;
    transition: all 0.2s ease-in-out;
    border: 2px solid;
}
.btn-hero-outline {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}
.btn-hero-outline:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--bs-primary); /* Warna teks menjadi warna utama saat hover */
}
.btn-hero-solid {
    background-color: var(--panel-bg); /* Diubah: Latar tombol menggunakan warna panel (biasanya putih) */
    border-color: var(--panel-bg);
    color: var(--bs-primary); /* Diubah: Warna teks menggunakan warna utama tema */
}
.btn-hero-solid:hover {
    background-color: var(--panel-bg);
    border-color: var(--panel-bg);
    color: var(--primary-hover);
    transform: translateY(-2px);
}
.official-card {
    background-color: rgba(0, 0, 0, 0.15); /* Diubah: Hitam semi-transparan lebih fleksibel */
    border-radius: 1.5rem;
    padding: 0.75rem;
    text-align: center;
    max-width: 220px;
}
.official-photo-wrapper {
    border: 4px solid #fff; /* Bingkai putih tetap bagus */
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}
.official-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.official-info {
    color: #fff;
}
.official-title {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}
.official-name {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}
.service-slider-section {
    background-color: #f2f3f3; /* Diubah: Menggunakan warna utama tema */
    padding: 5rem 0;
    position: relative;
    color: #030a50; /* Teks default di bagian ini menjadi putih */
    * --- TAMBAHKAN KODE INI UNTUK GARIS KOTAK --- */
     border: 2px solid rgba(0, 0, 0, 0.1);  /* Garis sedikit lebih tebal, transparan */
    margin-bottom: 2rem; /* Contoh: Memberi jarak 3 rem (sekitar 48px) */
    border-radius: 10px; /* Semua sudut melengkung 10px */
}
.service-slider-title-area .service-pre-title {
    color: var(--bs-primary); /* Diubah: Putih semi-transparan */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.service-slider-title-area .service-main-title {
    color: var(--bs-primary); /* Diubah: Putih solid */
    font-weight: 700;
}
.title-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}
.title-divider::before, .title-divider::after {
    content: '';
    height: 1px;
    width: 50px;
    background-color: rgba(255, 255, 255, 0.3);
}
.title-divider span {
    width: 8px;
    height: 8px;
    background-color: #fff;
    display: inline-block;
    border-radius: 50%;
    margin: 0 1rem;
}
.service-card {
    background-color: rgba(0, 0, 0, 0.15);; /* Diubah: Menggunakan warna panel tema */
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
     border: 2px solid rgba(0, 0, 0, 0.1);  /* Garis sedikit lebih tebal, transparan */
}
.service-card-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card-logo img {
    max-height: 100%;
    max-width: 120px;
}
.service-card-title {
    color: var(--bs-primary); /* Diubah: Menggunakan warna utama tema */
    font-weight: bold;
    font-size: 1.25rem;
}
.service-card-desc {
    color: var(--text-color); /* Diubah: Menggunakan warna teks standar tema */
    font-size: 0.95rem;
    flex-grow: 1; 
    margin-bottom: 1.5rem;
}
.service-card-btn {
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--bs-primary); /* Diubah: Warna solid dari tema utama */
    color: var(--panel-bg); /* Diubah: Warna teks tombol kebalikan dari warna tombol */
    border: none;
    transition: all 0.2s ease;
}
.service-card-btn:hover {
    background: var(--primary-hover); /* Diubah: Warna hover dari tema */
    color: var(--panel-bg);
    transform: scale(1.05);
}
.service-swiper {
    padding: 1rem 0;
}
.swiper-slide {
    height: auto;
}
.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    background-color: var(--panel-bg); /* Diubah: Warna panel tema */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary); /* Diubah: Warna utama tema */
    font-size: 1.5rem;
}
.swiper-button-prev-custom::after,
.swiper-button-next-custom::after {
    font-family: 'bootstrap-icons';
}
.swiper-button-prev-custom { left: 15px; }
.swiper-button-prev-custom::after { content: '\F284'; } 
.swiper-button-next-custom { right: 15px; }
.swiper-button-next-custom::after { content: '\F285'; }
.igs-container {
    border-radius: 0.5rem;
    overflow: hidden; /* Penting untuk menyembunyikan tombol nav di luar batas */
     margin-bottom: 1rem;  Contoh: Memberi jarak 3 rem (sekitar 48px) */
}
.image-gallery-swiper {
    width: 100%;
    aspect-ratio: 1 / 1; /* PENTING: Menjaga rasio 1:1 (persegi) */
    background-color: #f0f0f0;
}
.igs-link {
    display: block;
    width: 100%;
    height: 100%;
}
.igs-slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.swiper-slide:hover .igs-slide-bg {
    transform: scale(1.05);
}
.igs-container .swiper-pagination {
    position: relative; /* Posisikan di bawah slider, bukan di atasnya */
    bottom: 0;
    margin-top: 1rem;
}
.igs-container .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--text-color);
    opacity: 0.3;
    transition: opacity 0.2s, background-color 0.2s;
}
.igs-container .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--bs-primary);
}
.igs-nav-btn {
    color: var(--panel-bg);
    background-color: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0; /* Sembunyikan secara default */
    transition: opacity 0.3s ease;
}
.igs-container:hover .igs-nav-btn {
    opacity: 1; /* Tampilkan saat kontainer di-hover */
}
.igs-nav-btn::after {
    font-size: 1rem; /* Ukuran ikon panah */
    font-weight: bold;
}
@media (max-width: 992px) {
    .featured-grid-container { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 300px); }
    .grid-item-large { grid-column: 1 / 3; grid-row: 1 / 2; }
    .grid-item-tall  { grid-column: 1 / 2; grid-row: 2 / 3; }
    .grid-item-small-1 { grid-column: 2 / 3; grid-row: 2 / 3; }
    .grid-item-small-2 { display: none; }
}
@media (max-width: 991px) { /* Ini menargetkan ketika navbar menjadi 'hamburger' */
    .navbar-search-form {
        width: 100%; /* Buat form memenuhi lebar di mobile */
        margin-top: 1rem; /* Beri jarak dari menu link di atasnya */
        margin-left: 0 !important; /* Hapus margin kiri khusus desktop */
    }
    .social-icons {
        margin-top: 1rem;
        justify-content: center; /* Pusatkan ikon sosial di mobile */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .img-float-left, .img-float-right { float: none; display: block; max-width: 100%; margin-left: auto; margin-right: auto; margin-bottom: 1.5rem; }

    .swiper-button-prev-custom, .swiper-button-next-custom {
        display: none; /* Sembunyikan navigasi panah di mobile */
    }
    .featured-grid-container { display: flex; flex-direction: column; gap: 1rem; }
    .grid-item { height: 250px; }
    .grid-item-small-2 { display: block; }
    .magazine-grid-container { grid-template-columns: 1fr; grid-template-rows: auto; }
    .mg-item { min-height: 250px; }
    .mg-item-1, .mg-item-2, .mg-item-3, .mg-item-4, .mg-item-5 { grid-column: auto; grid-row: auto; }
    .hero-grid-container { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hg-item { min-height: 280px; }
    .hg-item-1, .hg-item-2, .hg-item-3 { grid-column: auto; grid-row: auto; }
}

@media (min-width: 768px) {
    .v-list-item { flex-basis: 48%; }
    .hero-band-content { padding: 2rem; }
    .hero-band-content h2 { font-size: 2.5rem; }
    .hero-band-related { padding: 1rem 2rem; }
}