/* ============================================================
   FRONTEND.CSS — Global frontend styles
   ============================================================ */

/* ===== CONTAINER WIDTH ===== */
.container {
    max-width: 80% !important;
    width: 80% !important;
}
@media (max-width: 991px) {
    .container { max-width: 95% !important; width: 95% !important; }
}

/* Footer pakai container sendiri, reset override */
#page-footer .container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Fix: .wrapper { overflow: hidden } di style.css memotong footer */
.wrapper {
    overflow: visible !important;
}

/* Paksa footer full width */
#page-footer {
    position: relative;
    width: 100%;
}

/* ===== NAVBAR ===== */
body {
    padding-top: 64px;
}

.navbar-modern {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: box-shadow 0.3s;
}
.navbar-modern.scrolled {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
.navbar-modern .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.navbar-modern .nav-logo img {
    height: 44px;
    width: auto;
    display: block;
}
.navbar-modern .nav-logo-placeholder {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 22px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.navbar-modern .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-modern .nav-links > li {
    position: relative;
}
.navbar-modern .nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
}
.navbar-modern .nav-links > li > a:hover {
    background: #eff6ff;
    color: #2563eb;
}
.navbar-modern .nav-links > li.active > a,
.navbar-modern .nav-links > li > a.active {
    background: #2563eb;
    color: #ffffff;
}
.navbar-modern .nav-links > li.active > a:hover {
    background: #1d4ed8;
    color: #fff;
}
.navbar-modern .nav-links > li > a .caret-icon {
    font-size: 10px;
    opacity: 0.7;
}
.navbar-modern .nav-links > li > a.has-child::after {
    content: '\25BE';
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}
.navbar-modern .nav-links > li > .child-navigation {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    min-width: 200px;
    padding: 6px 0;
    z-index: 10000;
    list-style: none;
    margin: 0;
}
.navbar-modern .nav-links > li:hover > .child-navigation,
.navbar-modern .nav-links > li.open > .child-navigation {
    display: block;
}
.navbar-modern .nav-links .child-navigation li a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.navbar-modern .nav-links .child-navigation li a:hover {
    background: #eff6ff;
    color: #2563eb;
}
.navbar-modern .nav-links .child-navigation li {
    position: relative;
}
.navbar-modern .nav-links .child-navigation li > .child-navigation {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    min-width: 190px;
    padding: 6px 0;
    z-index: 10001;
    list-style: none;
    margin: 0;
}
.navbar-modern .nav-links .child-navigation li:hover > .child-navigation {
    display: block;
}
.navbar-modern .nav-links .child-navigation li > a.has-child::after {
    content: '\25B8';
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}
.navbar-modern .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.navbar-modern .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s;
}
@media (max-width: 991px) {
    .navbar-modern .nav-toggle { display: flex; }
    .navbar-modern .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        padding: 10px 0 16px;
    }
    .navbar-modern .nav-links.open { display: flex; }
    .navbar-modern .nav-links > li { width: 100%; }
    .navbar-modern .nav-links > li > a { border-radius: 0; padding: 11px 24px; }
    .navbar-modern .nav-links > li > .child-navigation {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 16px;
        display: none;
    }
    .navbar-modern .nav-links > li.open > .child-navigation { display: block; }
    .navbar-modern .nav-links .child-navigation li > .child-navigation {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 16px;
        display: block;
    }
}



/* ===== SEARCH RESULT PAGE ===== */
.search-result-wrap {
    background: #f8fafc;
    min-height: 60vh;
    padding: 40px 0 60px;
}
.search-result-hero {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    padding: 36px 0 32px;
    margin-bottom: 36px;
}
.search-result-hero .keyword-label {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.search-result-hero h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px;
}
.search-result-hero h1 span {
    background: rgba(255,255,255,0.18);
    padding: 2px 12px;
    border-radius: 6px;
}
.search-hero-form {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    max-width: 560px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.search-hero-form input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    height: auto !important;
    margin: 0 !important;
}
.search-hero-form button {
    background: #1d4ed8 !important;
    border: none !important;
    color: #fff !important;
    padding: 0 22px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.18s;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.search-hero-form button:hover { background: #1e3a8a !important; }
.search-result-meta {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 24px;
}
.search-result-meta strong { color: #1e293b; }
.search-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.search-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.search-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e2e8f0;
    display: block;
}
.search-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 40px;
}
.search-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.search-card-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.search-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}
.search-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.18s;
}
.search-card-link:hover { gap: 10px; color: #1d4ed8; text-decoration: none; }
.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.search-empty i { font-size: 56px; margin-bottom: 16px; display: block; color: #cbd5e1; }
.search-empty h3 { color: #475569; font-size: 18px; margin-bottom: 8px; }

/* ===== NAVBAR SEARCH ICON ===== */
.nav-search-icon-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: #374151;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
    padding: 0 !important;
    box-shadow: none !important;
}
.nav-search-icon-btn:hover {
    background: #eff6ff !important;
    color: #2563eb;
}

/* ===== MODAL FLAYER ===== */
#modalFlayer { z-index: 99999 !important; }
#modalSearch { z-index: 99999 !important; }
.modal-backdrop { z-index: 99998 !important; }

#modalFlayer .modal-dialog {
    max-width: 50vw;
    margin: auto;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 60px);
}
@media (max-width: 768px) {
    #modalFlayer .modal-dialog { max-width: 92vw; }
}
#modalFlayer .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.flayer-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.flayer-track {
    display: grid;
    transition: none;
}
.flayer-slide {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.flayer-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.flayer-slide img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
}
.flayer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}
.flayer-close:hover { background: rgba(0,0,0,0.7); }
.flayer-footer {
    background: #f0f4ff;
    padding: 20px 22px 18px;
}
.flayer-footer .flayer-label {
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
}
.flayer-footer .flayer-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}
.flayer-footer .flayer-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}
.flayer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px 18px;
    background: #f0f4ff;
    border-top: 1px solid #e5e7eb;
}
.flayer-dots { display: flex; gap: 7px; align-items: center; }
.flayer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.flayer-dot.active {
    background: #2563eb;
    width: 28px;
    border-radius: 5px;
}
.flayer-btn-skip {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s;
}
.flayer-btn-skip:hover { border-color: #9ca3af; }
.flayer-btn-next {
    background: #2563eb;
    border: none;
    border-radius: 20px;
    padding: 7px 20px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.flayer-btn-next:hover { background: #1d4ed8; }
.flayer-btns { display: flex; gap: 10px; }

/* ===== MODERN SLIDER ===== */
.slider-section {
    width: 80%;
    margin: 28px auto 0;
}
.slider-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    background: #e8edf5;
    aspect-ratio: 16/6;
}
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    height: 100%;
}
.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #dde3ee;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
    color: #374151;
    font-size: 16px;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
    background: #2563eb;
    transform: scale(1.25);
}
.slider-running-text {
    background: #1e3a5f;
    color: #fff;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    white-space: nowrap;
}
.slider-running-text marquee span { letter-spacing: 0.3px; }

/* ===== BERITA SECTION ===== */
.berita-section {
    background: #f0f4ff;
    padding: 40px 0 36px;
}
.berita-section .berita-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}
.berita-section .berita-label {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.berita-section .berita-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.berita-section .berita-lihat-semua,
.berita-lihat-semua {
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s;
}
.berita-section .berita-lihat-semua:hover,
.berita-lihat-semua:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.berita-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 768px) {
    .berita-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 991px) {
    .berita-grid { grid-template-columns: repeat(2, 1fr); }
}
.berita-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.berita-card:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,0.12);
    transform: translateY(-3px);
}
.berita-card-img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
}
.berita-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.berita-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
}
.berita-card-date i { font-size: 11px; }
.berita-card-judul {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.45;
    flex: 1;
}
.berita-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 14px;
}
.berita-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.berita-card-link:hover { gap: 8px; color: #1d4ed8; }

/* ===== RATING ===== */
.rating { font-size: 40px; }
.star { color: #ccc; cursor: pointer; transition: 0.2s; }
.star.active { color: #ffc107; }

/* ===== LINK PILIHAN ===== */
#link-pilihan {
    padding: 18px 0 16px;
    background: #fff;
}
.link-pilihan-header {
    text-align: center;
    margin-bottom: 12px;
}
.link-pilihan-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 2px;
}
.link-pilihan-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.link-pilihan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.link-pilihan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    min-width: 90px;
    max-width: 120px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.link-pilihan-item:hover {
    box-shadow: 0 6px 20px rgba(37,99,235,0.12);
    transform: translateY(-3px);
    border-color: #bfdbfe;
}
.link-pilihan-img-wrap {
    width: 70px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.link-pilihan-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.link-pilihan-name {
    font-size: 10.5px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

/* ===== BLANGKO KTP ===== */
#blangko-section {
    padding: 40px 0 36px;
    background: #f8faff;
}
.blangko-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}
.blangko-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.blangko-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.blangko-lihat-semua {
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}
.blangko-lihat-semua:hover { border-color: #2563eb; color: #2563eb; }

.blangko-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.blangko-card {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blangko-card:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,0.10);
    transform: translateY(-2px);
}
.blangko-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.blangko-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
.blangko-info { flex: 1; min-width: 0; }
.blangko-nama {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blangko-stok {
    font-size: 22px;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1;
    margin-bottom: 6px;
}
.blangko-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.status-aman    { background: #dcfce7; color: #15803d; }
.status-waspada { background: #fef9c3; color: #92400e; }
.status-menipis { background: #fee2e2; color: #b91c1c; }

/* Progress bar */
.blangko-bar-wrap {
    height: 5px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.blangko-bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s ease;
}

/* ===== PRESTASI SECTION ===== */
#prestasi-section {
    background: #f0f4ff;
    padding: 40px 0 36px;
}
#prestasi-section .berita-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: nowrap;
}
#prestasi-section .berita-header > div {
    flex: 1;
}
#prestasi-section .berita-card-img {
    height: 200px;
    object-fit: cover;
    object-position: top;
}
#prestasi-section .berita-card-desc {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* ===== DEMOGRAFI SECTION ===== */
#demografi-section {
    background: #fff;
    padding: 40px 0 36px;
}
.demografi-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: nowrap;
}
.demografi-header > div { flex: 1; }
.demografi-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.demografi-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.demografi-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}
@media (max-width: 768px) {
    .demografi-grid { grid-template-columns: 1fr; }
}
.demografi-chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.demografi-chart-wrap {
    height: 360px;
    position: relative;
}
.demografi-video-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.demografi-video-label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.demografi-video-label i {
    color: #ef4444;
    font-size: 18px;
}
.demografi-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
}
.demografi-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* ===== STATISTIK SECTION ===== */
#statistik-section {
    background: #f8faff;
    padding: 40px 0 36px;
}
.statistik-header {
    margin-bottom: 24px;
}
.statistik-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.statistik-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.statistik-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .statistik-grid { grid-template-columns: 1fr; }
}
.statistik-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.statistik-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.statistik-card-title i { color: #2563eb; }
.statistik-chart-wrap {
    height: 340px;
    position: relative;
}

/* Rating card */
.rating-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.rating-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}
.rating-card-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}
.rating-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rating { font-size: 36px; line-height: 1; }
.star { color: #d1d5db; cursor: pointer; transition: color 0.15s; }
.star.active, .star:hover { color: #f59e0b; }

/* ===== FOOTER ===== */
#page-footer {
    margin-top: 0;
}

/* Footer container — full width, tidak ikut 80% */
.footer-container {
    width: 80%;
    margin: 0 auto;
    max-width: 1400px;
}
@media (max-width: 991px) {
    .footer-container { width: 95%; }
}

/* Top bar sosmed */
.footer-topbar {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
}
.footer-topbar .footer-container {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-sosmed-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.footer-sosmed-icons {
    display: flex;
    gap: 10px;
}
.footer-sosmed-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.footer-sosmed-icons a:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* Main footer */
.footer-main {
    background: #1e3a5f;
    padding: 48px 0 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.3fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-logo {
    height: 60px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    display: block;
    margin-bottom: 16px;
}
.footer-brand-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin: 0;
}

.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}
.footer-contact-list li i {
    color: #60a5fa;
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links-list li a {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.footer-links-list li a i {
    font-size: 10px;
    color: #60a5fa;
}
.footer-links-list li a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom {
    background: #152d4a;
    padding: 14px 0;
}
.footer-bottom .footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-bottom span {
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    text-align: center;
}

/* ===== CHAT WIDGET ===== */
#chatWidget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.chat-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.chat-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,99,235,0.5);
}
.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.chat-box {
    width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    display: none;
    flex-direction: column;
    max-height: 520px;
}
.chat-box.open { display: flex; }

/* Header */
.chat-header {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
}
.chat-header-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}
.chat-header-sub {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    margin-top: 2px;
}
.chat-header-close {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.chat-header-close:hover { background: rgba(255,255,255,0.3); }

/* Body */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}
.chat-bubble {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.chat-bubble-bot { justify-content: flex-start; }
.chat-bubble-user { justify-content: flex-end; }
.chat-bubble-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.chat-bubble-text {
    background: #fff;
    border-radius: 12px 12px 12px 2px;
    padding: 10px 13px;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    max-width: 240px;
}
.chat-bubble-user .chat-bubble-text {
    background: #2563eb;
    color: #fff;
    border-radius: 12px 12px 2px 12px;
}

/* Menu */
.chat-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-left: 38px;
}
.chat-menu-item {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    font-weight: 500;
}
.chat-menu-item i { color: #2563eb; font-size: 13px; }
.chat-menu-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

/* Footer */
.chat-footer {
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}
.chat-back-btn {
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.18s, color 0.18s;
}
.chat-back-btn:hover { border-color: #2563eb; color: #2563eb; }
.chat-footer-note {
    font-size: 11px;
    color: #9ca3af;
}
@media (max-width: 480px) {
    #chatWidget { bottom: 16px; right: 16px; }
    .chat-box { width: calc(100vw - 32px); }
}
