/* ================================================================
   FILE INI DIPECAH PER-SECTION SUPAYA GAMPANG DICARI.
   Urutan section mengikuti urutan tampilan di halaman beranda.

   PRINSIP SPACING & KONTRAS YANG DIPAKAI DI FILE INI:
   - Background halaman (body) dibikin abu muda (#f4f5f7).
   - Section yang isinya "kartu" (card) dibiarkan di atas abu muda itu,
     supaya kartu putihnya kelihatan mengambang (ada shadow + jarak).
   - Section tertentu (Berita, Profil) dikasih background PUTIH PENUH
     supaya berselang-seling dengan body abu-abu → mata jadi istirahat
     tiap ganti section, gak keliatan menyatu semua.
   - Semua section pakai jarak vertikal seragam lewat class .tpl4-section
     (70px atas-bawah di desktop, 48px di HP) jadi gak ada section yang
     dempet ke section lain.

   TEMA WARNA: MERAH
   - Utama   : #b90b0c
   - Gelap   : #3a0a0b / #4a0506 / #7a0708 / #8a0809 / #8f0809 / #9a090a
   - Terang  : #fbd5d5 / #f8d7d7 / #f0a9a9
   - Aksen   : #e03b3c / #d62021 (+ emas #FFC107 tetap)
   ================================================================ */

.hero-section {
    position: relative;
    background-color: #3a0a0b; /* warna dasar marun gelap */
    overflow: hidden;
}

/* Layer pattern/ornamen sebagai background image */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/beranda/motif.png');
    background-repeat: repeat; /* atau no-repeat, sesuaikan */
    background-size: cover; /* atau ukuran tertentu misal 400px */
    opacity: 0.08; /* bikin tekstur halus, jangan terlalu mencolok */
    z-index: 0;
}

/* Pastikan konten di atas pattern */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
    color: #ffffff;
}

/* ================================================================
   0. GLOBAL / BASE
   ================================================================ */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, table, input, button {
    font-family: Arial, Helvetica, sans-serif !important;
}

body {
    position: relative;
    background-color: #3a0a0b;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/beranda/motif.png');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 1;
    z-index: -1; /* taruh di paling belakang */
    pointer-events: none; /* biar tidak menghalangi klik */
}

.Layanan-section,
.berita-section,
.kalender-section,
.statistik-section {
    background-color: transparent; /* biar background body kelihatan */
}

hr {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.card {
    box-shadow: 0 4px 20px 1px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.16);
}

/* ================================================================
   0.5 GLOBAL LAYOUT SYSTEM — jarak & kontras dasar seluruh halaman
   (.tpl4-container, .tpl4-section, .tpl4-section-header, dst)
   ================================================================ */
body {
    background-color: #f4f5f7;
}



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

/* Jarak vertikal seragam untuk tiap section besar */
.tpl4-section {
    padding: 70px 0;
}

.tpl4-section-header {
    margin-bottom: 36px;
    max-width: 640px;
}

.tpl4-section-label {
    display: inline-block;
    color: #b90b0c;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tpl4-section-title {
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.tpl4-section-sub {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
}

.tpl4-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #b90b0c;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 8px;
    transition: background .15s ease;
}

.tpl4-btn-primary:hover {
    background: #8f0809;
    color: #fff;
    text-decoration: none;
}

/* Section yang backgroundnya diputihkan supaya berselang-seling
   dengan body abu-abu → kontrasnya kerasa tiap ganti section */
#tpl4-berita,
#tpl4-profil {
    background: #ffffff;
}

/* Extra jarak untuk blok yang dibungkus .container.mt-5 polos
   (Layanan & Informasi Publik, Kalender Kegiatan) supaya lega,
   tanpa perlu ubah markup blade */
.container:has(> .lip-box) {
    margin-top: 90px !important;
    margin-bottom: 90px !important;
}

.container:has(> .lip-header) {
    margin-top: 90px !important;
    margin-bottom: 90px !important;
}

/* ================================================================
   1. HERO BANNER (carousel utama + search bar)
   ================================================================ */
.slide .carousel-item .carousel-image {
    border-bottom-left-radius: 1200px 120px;
    border-bottom-right-radius: 1200px 120px;
    filter: brightness(0.9);
    -webkit-filter: brightness(0.9);
    -moz-filter: brightness(0.9);
    -o-filter: brightness(0.9);
    -ms-filter: brightness(0.9);
}

.search-title-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 750px;
    z-index: 99;
}

.search-title-content .image {
    text-align: center;
}

.search-title-content .image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.search-title-content h1 {
    font-weight: bold;
}

.search-title-content h1,
.search-title-content h4 {
    text-shadow: 2px 2px 4px #000000;
    color: white;
}

.search-title-content .input-group [type="text"].form-control {
    height: 37px;
    font-size: 15px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border: 2px solid #b90b0c;
    padding: 0.3rem 1rem;
}

.search-title-content .input-group-append .btn {
    height: 37px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    background-color: #b90b0c;
}

.search-title-content .input-group [type="text"].form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(185, 11, 12, 0.25);
}

/* ================================================================
   2. RUNNING TEXT (marquee info bar)
   ================================================================ */
.running-text {
    margin-top: 40px !important;
    margin-bottom: 10px;
}

.running-text .marquee-info {
    background-color: #7a0708;
    width: 100%;
    height: 50px;
    border-radius: 10px 0px 0px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.running-text .marquee-content {
    background-color: white;
    padding: 0px;
    border-radius: 0px 7px 7px 0px;
    border: 2px solid #7a0708;
    margin-left: -2px;
}

.running-text .marquee-content marquee {
    font-size: 15px;
    color: #000000;
    font-weight: 600;
}

.marquee-content a:hover {
    color: rgb(26, 26, 26);
}

/* ================================================================
   3. LAYANAN & INFORMASI PUBLIK (.lip-*)
   ================================================================ */
.lip-box {
    background: #fbd5d5;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgb(245, 244, 244);
    overflow: hidden;
}

.lip-pane {
    display: none;
}

.lip-pane.lip-pane-active {
    display: block;
}

.lip-eyebrow {
    color: #8a0809;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

.lip-title {
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 4px;
}

.lip-subtitle {
    color: #6c757d;
    max-width: 650px;
}

.lip-header {
    margin-bottom: 12px;
}

.lip-main-tabs {
    list-style: none;
    border-bottom: 1px solid #eee;
    margin-top: 10px;
    gap: 8px;
}

.lip-main-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 3px solid transparent;
}

.lip-main-tab-btn.active {
    color: #b90b0c;
    border-bottom-color: #b90b0c;
}

.lip-sidebar {
    background: #f7f7f8;
    border-radius: 14px;
    padding: 8px;
}

.lip-sidebar-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    color: #333;
    border-left: 3px solid transparent;
}

.lip-sidebar-item.active {
    color: #b90b0c;
    border-left-color: #b90b0c;
    background: #fff;
}

.lip-panel {
    padding-left: 24px;
}

.lip-panel-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.lip-panel-sub {
    color: #6c757d;
    margin-bottom: 16px;
}

.lip-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f7f7f8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background .15s;
}

.lip-item-row:hover {
    background: #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.lip-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8d7d7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #b90b0c;
}

.lip-item-title {
    font-weight: 600;
    font-size: 15px;
}

.lip-item-sub {
    font-size: 13px;
    color: #6c757d;
}

.lip-item-arrow {
    margin-left: auto;
    color: #adb5bd;
}

.lip-link-more {
    color: #b90b0c;
    font-weight: 600;
    text-decoration: underline;
}

.lip-card {
    display: block;
    background: #f7f7f8;
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.lip-card:hover {
    background: #f0f0f0;
    color: inherit;
    text-decoration: none;
}

.lip-card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.lip-card-label {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* ================================================================
   4. INFORMASI LAYANAN (modal detail, gambar layanan)
   ================================================================ */
.layanan-section {
    position: relative;
    background-color: #3a0a0b;
    overflow: hidden;
    padding: 60px 0;
}

.layanan-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/background/beranda/motif.png');
    background-repeat: repeat;
    background-size: 400px; /* sesuaikan ukuran motifnya */
    opacity: 0.08;
    z-index: 0;
}

.layanan-section > * {
    position: relative;
    z-index: 1;
}

.img-info-layanan > img {
    width: 350px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
}

.bg-info-layanan .deskripsi-info {
    font-size: 18px;
    color: white;
    text-align: justify;
}

.bg-info-layanan .info-layanan-lengkap {
    margin-top: 1rem;
}

.bg-info-layanan .info-layanan-lengkap > button {
    border-radius: 30px;
    padding: 6px 28px;
    background-color: #f1f1f1;
    color: black;
    font-weight: 600;
    border: 2px solid #b90b0c;
    font-size: 14px;
}

.info-layanan-expand .modal-header > .modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #8a0809;
}

.info-layanan-expand .modal-header > i {
    font-size: 20px;
}

.info-layanan-expand .modal-body .image-info-layanan-detail > img {
    width: 100%;
    max-height: 450px;
    object-fit: scale-down;
}

/* ================================================================
   5. BERITA (.tpl4-berita-*) — SEBELUMNYA BELUM ADA STYLING SAMA SEKALI
   Dibuat baru: hero grid, tabs, filter kategori, grid card.
   ================================================================ */
.tpl4-berita-hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.tpl4-berita-hero-main {
    position: relative;
    display: block;
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

.tpl4-berita-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0) 75%);
}

.tpl4-berita-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
}

.tpl4-berita-badge {
    display: inline-block;
    background: #b90b0c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.btn-portal-berita-nav {
    border: 2px solid #b90b0c;
    background-color: #F7F7F7;
    border-radius: 25px;
    padding: 8px 25px;
    color: black;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    min-width: 110px;
}

.tpl4-berita-hero-title {
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpl4-berita-hero-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 0;
}

.tpl4-berita-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tpl4-berita-aside-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.tpl4-berita-aside-item:hover {
    color: inherit;
    text-decoration: none;
}

.tpl4-berita-aside-item:hover .tpl4-berita-aside-title {
    color: #b90b0c;
}

.tpl4-berita-aside-thumb {
    width: 96px;
    height: 78px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.tpl4-berita-aside-cat {
    color: #b90b0c;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.tpl4-berita-aside-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s ease;
}

.btn-portl-berita-nav {
    border: 2px solid #b90b0c;
    background-color: #F7F7F7;
    border-radius: 25px;
    padding: 8px 25px;
    color: black;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    min-width: 110px;
}


.tpl4-berita-aside-date {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.tpl4-berita-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.tpl4-berita-tab {
    padding: 10px 2px;
    font-weight: 700;
    color: #adb5bd;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.tpl4-berita-tab.active {
    color: #b90b0c;
    border-bottom-color: #b90b0c;
}

.tpl4-berita-tab-link {
    margin-left: auto;
    color: #6c757d;
    font-weight: 600;
    cursor: default;
    text-decoration: none;
}

.tpl4-berita-tab-link:hover {
    color: #b90b0c;
    text-decoration: none;
}

.tpl4-berita-kategori-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.btn-kategori-berita {
    background: #f7f7f8;
    border: 1px solid #e9ecef;
    color: #495057;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 30px;
}

.btn-kategori-berita.active,
.btn-kategori-berita:hover {
    background: #b90b0c;
    border-color: #b90b0c;
    color: #fff;
}

.tpl4-berita-tab-content {
    display: none;
}

.tpl4-berita-tab-content.active {
    display: block;
}

.tpl4-berita-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tpl4-berita-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tpl4-berita-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.tpl4-berita-card-thumb {
    height: 160px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.tpl4-berita-card-body {
    padding: 16px;
}

.tpl4-berita-card-cat {
    color: #b90b0c;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.tpl4-berita-card-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpl4-berita-card-meta {
    font-size: 12px;
    color: #6c757d;
}

.berita-terkini-render.tpl4-berita-grid,
.berita-not-found {
    min-height: 60px;
}

.berita-not-found {
    grid-column: 1 / -1;
    text-align: center;
    color: #adb5bd;
    padding: 40px 0;
}

.berita-not-found .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

/* ================================================================
   6. KALENDER KEGIATAN (.kal-*)
   ================================================================ */
.kal-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.kal-header {
    background: linear-gradient(135deg, #b90b0c, #4a0506);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.kal-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

.kal-month-label {
    font-weight: 700;
    font-size: 16px;
}

.kal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 8px 0;
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
}

.kal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 8px 16px;
}

.kal-day {
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    cursor: default;
    position: relative;
    color: #333;
}

.kal-day.has-event {
    cursor: pointer;
    font-weight: 600;
}

.kal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b90b0c;
}

.kal-day.kal-day-empty {
    visibility: hidden;
}

.kal-list {
    margin-top: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 14px;
}

.kal-list-item {
    display: flex;
    gap: 12px;
    padding: 10px 6px;
    cursor: pointer;
    border-radius: 10px;
}

.kal-list-item:hover {
    background: #f7f7f8;
}

.kal-list-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #eee;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.kal-list-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: #f8d7d7;
    color: #b90b0c;
    margin-bottom: 2px;
}

.kal-list-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.kal-list-sub {
    font-size: 12px;
    color: #6c757d;
}

.kal-detail-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 300px;
}

.kal-detail-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #adb5bd;
    text-align: center;
    padding: 0 30px;
}

.kal-detail-img {
    height: 220px;
    background: linear-gradient(135deg, #b90b0c, #4a0506);
    background-size: cover;
    background-position: center;
    position: relative;
}

.kal-detail-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #d62021;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.kal-detail-body {
    padding: 20px 24px;
}

.kal-detail-date {
    color: #b90b0c;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.kal-detail-title {
    font-weight: 800;
    margin: 6px 0 12px;
}

.kal-detail-desc {
    color: #495057;
    margin-bottom: 16px;
}

.kal-detail-meta {
    color: #495057;
    font-size: 14px;
    margin-bottom: 6px;
}

.kal-detail-btn {
    display: inline-block;
    background: #b90b0c;
    color: #fff;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 10px;
}

.kal-detail-btn:hover {
    background: #8f0809;
    color: #fff;
    text-decoration: none;
}

/* ================================================================
   7. STATISTIKA KOTA - PETA INTERAKTIF (.sgm-*) + KARTU RINGKASAN (.tpl4-stat-*)
   ================================================================ */
.sgm-section {
    padding-top: 10px;
}

.sgm-header {
    margin-bottom: 24px;
}

.sgm-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: stretch;
}

.sgm-map-card,
.sgm-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 18px;
}

.sgm-map-wrap {
    position: relative;
    width: 100%;
}

.sgm-map-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

.sgm-district {
    fill: #f8d7d7;
    stroke: #b90b0c;
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
    cursor: pointer;
    transition: fill .15s ease;
}

.sgm-district:hover {
    fill: #f0a9a9;
}

.sgm-district.active {
    fill: #b90b0c;
}

.sgm-center-dot {
    fill: #b90b0c;
    pointer-events: none;
}

.sgm-district.active ~ .sgm-center-dot {
    fill: #fff;
}

.sgm-label {
    font-size: 11px;
    font-weight: 700;
    fill: #4a0506;
    pointer-events: none;
    text-anchor: middle;
}

.sgm-district.active + .sgm-label {
    fill: #fff;
}

.sgm-caption {
    text-align: center;
    color: #adb5bd;
    font-size: 12px;
    margin-top: 8px;
}

.sgm-legend {
    margin-top: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.sgm-legend-title {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 8px;
}

.sgm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    padding: 4px 0;
    cursor: pointer;
}

.sgm-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #f8d7d7;
    border: 1px solid #b90b0c;
    flex-shrink: 0;
}

.sgm-legend-item.active .sgm-legend-swatch {
    background: #b90b0c;
}

.sgm-legend-item.active {
    font-weight: 700;
    color: #b90b0c;
}

.sgm-info-eyebrow {
    color: #b90b0c;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
}

.sgm-info-title {
    font-weight: 800;
    color: #1a1a1a;
    margin: 2px 0 16px;
}

.sgm-info-row {
    background: #f7f7f8;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.sgm-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #6c757d;
    text-transform: uppercase;
}

.sgm-info-value {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 2px;
}

.sgm-info-sub {
    font-size: 12px;
    color: #6c757d;
}

.sgm-bar-track {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 6px;
    display: flex;
}

.sgm-bar-fill {
    height: 100%;
    background: #b90b0c;
}

.sgm-bar-fill.sgm-bar-fill-blue {
    background: #d62021;
}

.sgm-gender-legend {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
}

/* Kartu ringkasan angka statistik (sebelumnya belum ada styling) */
.tpl4-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tpl4-stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px 18px;
    text-align: center;
}

.tpl4-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f8d7d7;
    color: #b90b0c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}

.tpl4-stat-num {
    font-weight: 800;
    font-size: 26px;
    color: #1a1a1a;
}

.tpl4-stat-lbl {
    color: #6c757d;
    font-size: 13px;
    margin-top: 4px;
}

/* ================================================================
   8. POLLING & SARAN POPUP (.polling-*)
   ================================================================ */
   body:has(#polling-popup-modal.show) {
    overflow: auto !important;
    padding-right: 0 !important;
}
#polling-popup-modal .modal-content {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

   .polling-popup-content {
    border-radius: 20px;
    border: none;
}

.polling-title {
    font-size: 40px;
}

.polling-rating-scale {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.polling-scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.polling-scale-item input {
    display: none;
}

.polling-scale-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6c757d;
    transition: all .15s;
}

.polling-scale-item input:checked + .polling-scale-circle {
    background: #b90b0c;
    border-color: #b90b0c;
    color: #fff;
}

.polling-scale-label {
    font-size: 11px;
    color: #6c757d;
    margin-top: 6px;
    max-width: 70px;
    text-align: center;
}

.polling-popup-btn {
    background: #b90b0c;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 28px;
    width: 100%;
}

.polling-popup-btn:hover {
    background: #8f0809;
    color: #fff;
}

.polling-popup-btn-skip {
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    width: 100%;
}

/* ================================================================
   9. PRESTASI & PENGHARGAAN (.pres-*)
   ================================================================ */
.bg-prestasi-penghargaan {
    background-color: #b90b0c;
}

.pres-section {
    background: linear-gradient(135deg, #9a090a 0%, #4a0506 100%);
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}

.pres-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.08);
}

.pres-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

.pres-eyebrow {
    color: #FFC107;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.pres-title {
    color: #fff;
    font-weight: 800;
    margin-top: 6px;
}

.pres-carousel {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

.pres-card {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.pres-card-photo {
    position: relative;
    flex: 0 0 40%;
    max-width: 40%;
}

.pres-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 260px;
    display: block;
}

.pres-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFC107;
    color: #9a090a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pres-card-body {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pres-card-link {
    text-decoration: none;
}

.pres-card-title {
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 10px;
}

.pres-card-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.pres-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #FFC107;
    font-size: 13px;
    margin-bottom: 20px;
}

.pres-card-meta i {
    margin-right: 4px;
}

.pres-card-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: #FFC107;
    color: #4a0506;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
}

.pres-card-btn:hover {
    background: #ffca2c;
    color: #4a0506;
    text-decoration: none;
}

.pres-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.pres-nav:hover {
    background: #FFC107;
    color: #4a0506;
}

.pres-nav-prev {
    left: -20px;
}

.pres-nav-next {
    right: -20px;
}

.pres-dots {
    position: static;
    margin-top: 24px;
}

.pres-dots li {
    background: rgba(255, 255, 255, 0.35);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
}

.pres-dots li.active {
    background: #FFC107;
    width: 22px;
    border-radius: 4px;
}

#carosell-penghargaan .link-click:hover * {
    color: #FFC107 !important;
}

#carosell-penghargaan .carousel-indicators-bullets li {
    background-color: rgb(255, 255, 255, 0.5);
}

#carosell-penghargaan .carousel-indicators-bullets li.active {
    background-color: #FF9800;
}

/* ================================================================
   10. MAHARDIKA FM - FLOATING PLAYER (.mahardika-*, .mp-*)
   ================================================================ */
.mahardika-floating-player {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    background: #181818;
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    font-family: inherit;
}

.mahardika-floating-player .mp-station {
    color: #e03b3c;
    font-weight: 700;
    font-size: 16px;
}

.mahardika-floating-player .mp-sub {
    color: #b3b3b3;
    font-size: 13px;
    margin-bottom: 12px;
}

.mahardika-floating-player .mp-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-play-btn {
    background: #fff;
    color: #000;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.mp-progress-wrap {
    flex: 1;
}

.mp-progress {
    width: 100%;
    accent-color: #e03b3c;
}

/* ================================================================
   11. GALERI KEGIATAN (.gal-*)
   NOTE: .gal-item / .gal-bento adalah versi bento-grid yang dipakai
   di blade sekarang (galeri-kegiatan-render). .gal-tile dibiarkan
   ada karena mungkin masih dipakai partial AJAX lain (sudah di-dedupe,
   sebelumnya ke-definisi 2x dengan aspect-ratio yang beda-beda).
   ================================================================ */
.galery a > h1 {
    font-size: 40px;
}

.galery .galery-col {
    flex: 0 0 53%;
    max-width: 53%;
    padding: 0px 15px;
}

.galeri-filter.owl-carousel .owl-dots {
    display: none;
}

.gal-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
}

.gal-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gal-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 55%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity .25s ease;
}

.gal-tile-name {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

.gal-tile:hover img {
    transform: scale(1.06);
}

.gal-tile:hover .gal-tile-overlay {
    opacity: 1;
}

.gal-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
}

.gal-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
}

.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gal-item:hover img {
    transform: scale(1.06);
}

.gal-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity .25s ease;
}

.gal-item:hover .gal-item-overlay {
    opacity: 1;
}

.gal-item-name {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

/* Kalau gambar gagal load: jadi kartu warna solid + nama di tengah */
.gal-item-noimg {
    background: linear-gradient(135deg, #b90b0c, #4a0506);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gal-item-noimg .gal-item-overlay {
    opacity: 1;
    position: static;
    background: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gal-item-noimg .gal-item-name {
    font-size: 16px;
}

.gal-empty-state {
    text-align: center;
    color: #adb5bd;
    padding: 40px 0;
}

.gal-empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* ================================================================
   12. VIDEO KEGIATAN
   ================================================================ */
.video-kegiatan {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
}

.carousel-container {
    position: relative;
}

.btn-nav-video-kegiatan {
    position: absolute;
    top: 80px;
    width: 45px;
    height: 45px;
    bottom: 0;
    z-index: 1;
    border: 2px solid #b90b0c;
    border-radius: 50%;
    font-size: 17px;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.1);
}

.btn-nav-video-kegiatan#video-kegiatan-carousel-next {
    right: -5px;
}

.btn-nav-video-kegiatan#video-kegiatan-carousel-prev {
    left: -5px;
}

/* ================================================================
   13. RUBRIK MASYARAKAT — SEBELUMNYA BELUM ADA STYLING (FIX)
   ================================================================ */
.rubrik-masyarakat-container {
    background: linear-gradient(135deg, #9a090a 0%, #4a0506 100%);
    padding: 70px 0 80px;
}

.rubrik-masyarakat-container .title h1 {
    color: #fff;
    font-weight: 800;
    text-align: center;
    font-size: 32px;
    margin-bottom: 28px;
}

.rubrik-masyarakat-container .title a:hover {
    text-decoration: none;
}

.rubrik-masyarakat-container .filter-berita {
    margin-bottom: 28px;
}

.btn-rubrik-masyarakat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    white-space: nowrap;
}

.btn-rubrik-masyarakat.active,
.btn-rubrik-masyarakat:hover {
    background: #FFC107;
    border-color: #FFC107;
    color: #4a0506;
}

.nav-kategori-button {
    display: flex;
    align-items: center;
}

.btn-nav-kategori {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-kategori:hover {
    background: #FFC107;
    border-color: #FFC107;
    color: #4a0506;
}

.rubrik-masyarakat-render {
    row-gap: 20px;
}

.rubrik-masyarakat-render .berita {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease;
}

.rubrik-masyarakat-render .berita:hover {
    transform: translateY(-4px);
    color: inherit;
    text-decoration: none;
}

.rubrik-masyarakat-render .berita img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.rubrik-masyarakat-render .berita > .content {
    min-height: 135px;
    padding: 16px;
}

.rubrik-masyarakat-render .berita-not-found {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    width: 100%;
}

.rubrik-masyarakat-render .berita-not-found .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

/* ================================================================
   14. PROFIL KOTA (.tpl4-profil-*) — SEBELUMNYA BELUM ADA STYLING
   ================================================================ */
.tpl4-profil-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.tpl4-profil-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    background-color: #eee;
}

.tpl4-profil-img img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.tpl4-profil-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 50%);
}

.tpl4-profil-img-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    color: #fff;
}

.tpl4-profil-img-body h3 {
    font-weight: 800;
    margin-bottom: 2px;
}

.tpl4-profil-img-body p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.tpl4-profil-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e9ecef;
    margin: 16px 0 20px;
}

.tpl4-profil-tab {
    padding: 8px 2px;
    font-weight: 700;
    color: #adb5bd;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.tpl4-profil-tab.active {
    color: #b90b0c;
    border-bottom-color: #b90b0c;
}

.tpl4-profil-pane {
    display: none;
}

.tpl4-profil-pane.active {
    display: block;
}

.tpl4-profil-desc {
    color: #495057;
    line-height: 1.75;
    margin-bottom: 20px;
}

.tpl4-pimpinan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tpl4-pimpinan-card {
    text-align: center;
}

.tpl4-pimpinan-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

.tpl4-pimpinan-card h4 {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.tpl4-pimpinan-card p {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 0;
}


/* ================================================================
   15. INSTAGRAM FEED (.insta-*)
   ================================================================ */
.insta-section {
    padding-top: 24px;
}

.insta-embed-wrap {
    max-height: 620px;
    overflow-y: auto;
}

.insta-card {
    background: linear-gradient(135deg, #b90b0c, #4a0506);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
}

.insta-card-title {
    color: #fff;
    font-weight: 800;
    font-size: 26px;
    margin-bottom: 24px;
}

.insta-card-title i {
    color: #FFC107;
    margin-right: 6px;
}

.insta-embed-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.insta-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFC107;
    color: #4a0506;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 30px;
    margin-top: 28px;
    text-decoration: none;
    transition: background .15s ease;
}

.insta-visit-btn:hover {
    background: #ffca2c;
    color: #4a0506;
    text-decoration: none;
}

@media (max-width: 767px) {
    .insta-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .insta-card-title {
        font-size: 20px;
    }
}

/* ================================================================
   16. SLIDER LINK SOSMED
   ================================================================ */
.slider-link-sosmet {
    background-color: #e3e3e3;
    padding: 24px 0;
}
.social-icons-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.social-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #b90b0c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

/* ================================================================
   17. KONTAK KAMI (.kontak-kami, .border-card)
   ================================================================ */
.kontak-kami {
    padding-top: 20px;
    padding-bottom: 60px;
}

.bg-kontak-kami {
    padding-top: 10px;
}

.border-card {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.border-card:last-child {
    border-bottom: none;
}

/* ================================================================
   18. RESPONSIVE / MEDIA QUERIES
   ================================================================ */
@media (min-width: 1024px) {
    .scroll-on-lg {
        height: 500px;
        /* overflow-y: auto; */
    }
}

@media (min-width: 520px) and (max-width: 920px) {
    .berita-terbaru-container .col-filter-berita {
        flex: 0 0 95%;
        max-width: 95%;
    }

    .berita-terbaru-container img {
        border-radius: 10px 10px 0px 0px !important;
    }

    .galery .galery-col {
        flex: 0 0 73%;
        max-width: 73%;
    }
}

@media (max-width: 991px) {
    .tpl4-berita-hero-grid {
        grid-template-columns: 1fr;
    }

    .tpl4-berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tpl4-profil-grid {
        grid-template-columns: 1fr;
    }

    .tpl4-profil-img,
    .tpl4-profil-img img {
        min-height: 300px;
    }

    .tpl4-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .tpl4-section {
        padding: 48px 0;
    }

    .container:has(> .lip-box),
    .container:has(> .lip-header) {
        margin-top: 56px !important;
        margin-bottom: 56px !important;
    }

    .sgm-grid {
        grid-template-columns: 1fr;
    }

    .gal-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .gal-item-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 65%);
    }

    .gal-tile-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 65%);
    }

    .gal-tile-name {
        font-size: 13px;
    }

    .pres-card {
        flex-direction: column;
    }

    .pres-card-photo {
        max-width: 100%;
        flex: none;
    }

    .pres-card-photo img {
        min-height: 200px;
    }

    .pres-card-body {
        padding: 24px 20px;
    }

    .pres-nav-prev {
        left: 4px;
    }

    .pres-nav-next {
        right: 4px;
    }

    .tpl4-berita-grid {
        grid-template-columns: 1fr;
    }

    .tpl4-pimpinan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .slide .carousel-item .carousel-image {
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        filter: none;
    }

    .berita-utama .berita-prestasi-line {
        top: -18px;
    }

    .list-berita-tab-content .list-berita .image img {
        width: 100%;
        border-radius: 10px 10px 0px 0px !important;
    }

    .list-berita-tab-content .list-berita .col-md-8 {
        padding-left: 1.8rem;
        padding-right: 1.8rem;
    }

    .berita-terbaru-container .col-filter-berita {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .berita-terbaru-container img {
        border-radius: 10px 10px 0px 0px !important;
    }

    .galery .galery-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .galery .image-galery {
        height: 130px;
    }

    .btn-nav-video-kegiatan {
        display: none;
    }

    .mahardika-floating-player {
        width: calc(100% - 40px);
    }

    .tpl4-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== POPUP-REDESIGN-V1 ===== */
#modal-popup .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(60, 4, 8, .35);
}
#modal-popup .modal-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7a0a0c, #b90b0c 60%, #d4a017);
    z-index: 5;
}
#modal-popup .popup-content {
    padding: 0 !important;
    position: relative;
}

/* Tombol close: bulat di kanan atas */
#modal-popup .close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    margin: 0;
    float: none;
}
#modal-popup .close-button .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #7a0a0c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    transition: .2s;
}
#modal-popup .close-button .btn:hover {
    background: #b90b0c;
    color: #fff;
    transform: rotate(90deg);
}

/* Layout dua kolom: gambar penuh tinggi, teks di tengah vertikal */
#modal-popup .content-full .row {
    margin: 0;
    display: flex;
    align-items: stretch;
}
#modal-popup .content-full .row > [class*="col-"] {
    padding: 0;
}
#modal-popup .image-popup {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    border-radius: 0;
}
#modal-popup .video-popup {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}
#modal-popup .content-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.4rem 2.2rem 2rem 2.2rem !important;
}
#modal-popup .contain,
#modal-popup .contain-half,
#modal-popup .contain-full {
    height: auto !important;
    max-height: none !important;
}

/* Judul + garis aksen */
#modal-popup .judul-popup {
    margin-top: 0 !important;
    margin-bottom: 1.1rem;
}
#modal-popup .judul-popup h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #3c0408;
    margin: 0;
}
#modal-popup .judul-popup::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, #b90b0c, #d4a017);
}

/* Isi teks */
#modal-popup .content {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 6px;
}
#modal-popup .content p { margin-bottom: .75rem; }

/* Tombol "Lebih Lanjut" */
#modal-popup .button-link { margin-top: 1.1rem !important; }
#modal-popup .btn-link-yt {
    display: inline-block;
    background: #b90b0c;
    color: #fff !important;
    border-radius: 999px;
    padding: .55rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}
#modal-popup .btn-link-yt:hover {
    background: #7a0a0c;
    transform: translateY(-1px);
}

/* Varian hanya gambar */
#modal-popup .content-only-image .big-image {
    display: block;
    width: 100%;
    height: auto;
}

/* HP: atas-bawah */
@media (max-width: 767px) {
    #modal-popup .content-full .row { display: block; }
    #modal-popup .image-popup,
    #modal-popup .video-popup {
        height: 220px;
        min-height: 0;
    }
    #modal-popup .content-description {
        padding: 1.4rem 1.3rem 1.5rem 1.3rem !important;
    }
    #modal-popup .judul-popup h4 { font-size: 1.25rem; }
    #modal-popup .content { max-height: 30vh; }
}
/* ===== /POPUP-REDESIGN-V1 ===== */

/* ===== POPUP-INFO-V1 ===== */
#modal-popup .popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdecec;
    color: #b90b0c;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
#modal-popup .popup-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e3c9c9;
    font-size: 13px;
    color: #8a6d6d;
}
#modal-popup .popup-note i { color: #d4a017; margin-right: 6px; }
/* ===== /POPUP-INFO-V1 ===== */

/* ===== POPUP-SMALL-V1 ===== */
#modal-popup .modal-dialog {
    max-width: 640px;
}
#modal-popup .modal-content {
    border-radius: 16px;
    max-height: calc(100vh - 2rem);
}
#modal-popup .close-button {
    top: 10px;
    right: 10px;
}
#modal-popup .close-button .btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
}
#modal-popup .image-popup {
    min-height: 240px;
}
#modal-popup .video-popup {
    min-height: 240px;
}
#modal-popup .content-description {
    padding: 1.4rem 1.4rem 1.2rem 1.4rem !important;
}
#modal-popup .popup-badge {
    font-size: 10.5px;
    padding: 3px 10px;
    margin-bottom: 8px;
}
#modal-popup .judul-popup {
    margin-bottom: .7rem;
}
#modal-popup .judul-popup h4 {
    font-size: 1.15rem;
}
#modal-popup .judul-popup::after {
    width: 40px;
    margin-top: 8px;
}
#modal-popup .content {
    font-size: 14px;
    line-height: 1.5;
    max-height: 26vh;
}
#modal-popup .popup-note {
    margin-top: 10px;
    padding-top: 9px;
    font-size: 12px;
}
#modal-popup .btn-link-yt {
    padding: .4rem 1.1rem;
    font-size: 13px;
}
#modal-popup .content-only-image .big-image {
    max-height: 70vh;
    object-fit: contain;
}

@media (max-width: 767px) {
    #modal-popup .modal-dialog {
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
    }
    #modal-popup .image-popup,
    #modal-popup .video-popup {
        height: 150px;
        min-height: 0;
    }
    #modal-popup .content-description {
        padding: 1rem 1.1rem 1rem 1.1rem !important;
    }
    #modal-popup .judul-popup h4 { font-size: 1.05rem; }
    #modal-popup .content {
        font-size: 13.5px;
        max-height: 22vh;
    }
}
/* ===== /POPUP-SMALL-V1 ===== */
