/* ================================================
   LAPAS WONOGRI - STYLESHEET (COMPLETE & RESPONSIVE)
   File: style.css
   ================================================ */

:root {
    --primary-color: #06213E;
    --secondary-color: #3949ab;
    --accent-color: #5c6bc0;
    --light-bg: #f5f7fa;
    --dark-text: #2c3e50;
    --gold: #F5BB69;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    padding-top: 0 !important;
    margin: 0;
}

#heroCarousel {
    margin-top: 76px !important;
}

@media (max-width: 768px) {
    #heroCarousel { margin-top: 70px !important; }
}

@media (max-width: 480px) {
    #heroCarousel { margin-top: 62px !important; }
}

/* ================================================
   NAVBAR STYLES - FIXED POSITION
   ================================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
    padding: 0.75rem 0 !important; /* ← TETAP, tidak berubah */
    backdrop-filter: blur(10px) !important;
    transition: box-shadow 0.3s ease !important; /* ← hanya shadow yang transisi */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
}

.navbar.scrolled {
    padding: 0.75rem 0 !important; /* ← SAMA dengan atas, tidak berubah */
    box-shadow: 0 6px 30px rgba(0,0,0,.25) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 2rem;
    color: var(--gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.nav-link {
    color: rgba(255,255,255,.9) !important;
    font-weight: 500;
    transition: all .3s;
    padding: 8px 16px !important;
    border-radius: 8px;
    margin: 0 4px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,.15);
    color: #fff !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    transition: all .3s;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    transform: translateX(5px);
}

/* ================================================
   LOGIN BUTTON - ICON ONLY MINIMALIS
   ================================================ */
.login-glass {
    padding: 6px 14px !important;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.login-glass:hover {
    background: rgba(255,255,255,0.15);
}

.login-glass i {
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.3s;
}

.login-glass:hover i {
    transform: scale(1.3);
    color: #00ffff;
}

.carousel-item {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(27, 67, 50, 0.55) 0%,
        rgba(45, 106, 79, 0.45) 40%,
        rgba(212, 175, 55, 0.25) 100%
    );
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active img {
    transform: scale(1.1);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    text-align: left;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a237e;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero:hover {
    background: linear-gradient(135deg, #ffed4e, #fff176);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    color: #1a237e;
}

/* ================================================
   FIX HERO CAROUSEL MOBILE - CAPTION TETAP DI DALAM
   ================================================ */

/* Tablet */
@media (max-width: 991px) {
    .carousel-item {
        height: 550px;
    }
}

/* Mobile Medium (iPhone SE, dll) */
@media (max-width: 480px) {
    .carousel-item {
        height: 480px;
    }
    
    .carousel-caption {
        max-width: 92%;
        padding: 22px 18px;
    }
    
    .slide-title {
        font-size: 1.3rem;
        margin-bottom: 9px;
    }
    
    .slide-subtitle {
        font-size: 0.82rem;
        margin-bottom: 12px;
        line-height: 1.45;
    }
    
    .btn-hero {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* Mobile Small (iPhone 5, Galaxy Fold, dll) */
@media (max-width: 375px) {
    .carousel-item {
        height: 460px;
    }
    
    .carousel-caption {
        max-width: 94%;
        padding: 20px 16px;
    }
    
    .slide-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .slide-subtitle {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }
    
    .btn-hero {
        padding: 7px 18px;
        font-size: 0.76rem;
    }
}

/* Extra Small (Fold phones, very small screens) */
@media (max-width: 320px) {
    .carousel-item {
        height: 440px;
    }
    
    .carousel-caption {
        max-width: 96%;
        padding: 18px 14px;
    }
    
    .slide-title {
        font-size: 1.1rem;
        margin-bottom: 7px;
    }
    
    .slide-subtitle {
        font-size: 0.74rem;
        margin-bottom: 9px;
    }
    
    .btn-hero {
        padding: 6px 16px;
        font-size: 0.72rem;
    }
}

/* Pastikan caption tidak overflow dan tetap di dalam container */
.carousel-caption {
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Pastikan tombol tidak terpotong */
.btn-hero {
    white-space: nowrap;
    overflow: visible !important;
    box-sizing: border-box;
}

/* Fix untuk container di mobile - TETAP OVERFLOW HIDDEN */
@media (max-width: 576px) {
    .carousel-inner,
    .carousel,
    #heroCarousel {
        overflow: hidden !important;
    }
    
    /* Beri jarak pada carousel controls agar tidak overlap caption */
    .carousel-control-prev {
        left: 8px !important;
    }
    
    .carousel-control-next {
        right: 8px !important;
    }
}

/* ===============================
   STATS SECTION
   =============================== */
.stats-section.public {
    padding: 70px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #eef5ff 100%);
}

.stats-section.public .row > div {
    display: flex;
}

.stats-section.public .stat-card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    width: 100%;
    min-height: 155px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stats-section.public .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.stats-section.public .stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.stat-icon.blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-icon.green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.stat-icon.purple { background: linear-gradient(135deg, #a855f7, #9333ea); }

.stats-section.public .stat-number {
    font-size: 30px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stats-section.public .stat-label {
    margin-top: 6px;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* ================================================
   RESPONSIVE STATS - GRID 2x2 DI MOBILE
   ================================================ */
@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0 !important;
    }
    
    /* Grid 2 kolom untuk tablet ke bawah */
    .stats-section .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .stat-card {
        padding: 25px 20px !important;
        min-height: 145px !important;
        gap: 18px !important;
    }
    
    .stat-icon {
        width: 58px !important;
        height: 58px !important;
    }
    
    .stat-icon i {
        font-size: 1.6rem !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 22px 18px !important;
        min-height: 140px !important;
    }
    
    .stat-icon {
        width: 54px !important;
        height: 54px !important;
    }
    
    .stat-icon i {
        font-size: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
    }
    
    .stat-label {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 400px) {
    .stat-card {
        padding: 20px 15px !important;
        min-height: 135px !important;
        gap: 15px !important;
    }
    
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .stat-icon i {
        font-size: 1.4rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
}

/* ================================================
   BADGE KATEGORI
   ================================================ */
.badge-kategori {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-penting { 
    background: #dc3545; 
    color: white; 
}

.badge-berita { 
    background: #0d6efd; 
    color: white; 
}

.badge-baru { 
    background: #198754; 
    color: white; 
}

.badge-pengumuman { 
    background: #ffc107; 
    color: #000; 
}

/* ================================================
   NEWS SECTION
   ================================================ */
.news-section {
    background: white;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid #f1f1f1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #ffd700;
}

/* Tinggi gambar disesuaikan untuk 3 kolom */
.news-card-img {
    height: 185px;  /* dikurangi dari 220px */
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    margin-bottom: 15px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #ffd700;
}

.news-card-text {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-read-more:hover {
    gap: 12px;
    color: #0a58ca;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

.btn-all-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.btn-all-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
    color: #1a237e;
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        margin-bottom: 40px;
    }
    
    .news-card-img {
        height: 200px;
    }
    
    .news-card-body {
        padding: 25px;
    }
    
    .news-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .news-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-card-img {
        height: 180px;
    }
    
    .news-card-body {
        padding: 20px;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .news-card-text {
        font-size: 0.9rem;
    }
    
    .btn-read-more {
        font-size: 0.85rem;
    }
    
    .btn-all-news {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* ================================================
   INFO SECTION
   ================================================ */
.info-section {
    background: white;
    padding: 80px 0;
}

.info-img-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.2);
}

.info-img-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,.4), transparent);
    transform: rotate(45deg);
    transition: all .8s;
}

.info-img-wrapper:hover::before {
    left: 100%;
}

.info-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .6s;
}

.info-img-wrapper:hover img {
    transform: scale(1.05);
}

.about-text {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #5a6c7d;
    text-align: justify;
    margin-bottom: 20px;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    border: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
    color: #1a237e;
}

@media (max-width: 768px) {
    .info-section {
        padding: 60px 0;
    }
    
    .about-text {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .info-section {
        padding: 50px 0;
    }
    
    .btn-primary-custom {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* ================================================
   QUICK MENU - RESPONSIVE 2x2 GRID
   ================================================ */
.quick-menu {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.quick-menu::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 73, 171, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.quick-menu::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(92, 107, 192, 0.15) 0%, transparent 70%);
    bottom: -250px;
    left: -250px;
    animation: float 8s ease-in-out infinite 4s;
}

.quick-menu-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,.1);
    transition: all .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quick-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity .5s;
}

.quick-menu-item:hover::before {
    opacity: 1;
}

.quick-menu-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
}

.quick-menu-item i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    transition: all .5s;
    position: relative;
    z-index: 1;
}

.quick-menu-item:hover i {
    -webkit-text-fill-color: white;
    transform: scale(1.2) rotateY(360deg);
}

.quick-menu-item h5 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: color .5s;
}

.quick-menu-item:hover h5 {
    color: white;
}

.quick-menu-item p {
    position: relative;
    z-index: 1;
    transition: color .5s;
    color: #5a6c7d;
    margin: 0;
    font-size: 0.95rem;
}

.quick-menu-item:hover p {
    color: rgba(255,255,255,.95);
}

/* ================================================
   RESPONSIVE QUICK MENU - GRID 2x2 DI MOBILE
   ================================================ */
@media (max-width: 991px) {
    .quick-menu {
        padding: 60px 0;
    }
    
    /* Grid 2 kolom untuk tablet ke bawah */
    .quick-menu .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .quick-menu-item {
        padding: 35px 25px;
        margin-bottom: 20px;
    }
    
    .quick-menu-item i {
        font-size: 3rem;
    }
    
    .quick-menu-item h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .quick-menu {
        padding: 50px 0;
    }
    
    /* Tetap 2 kolom di mobile */
    .quick-menu .row > div {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
    }
    
    .quick-menu-item {
        padding: 25px 15px;
        margin-bottom: 15px;
    }
    
    .quick-menu-item i {
        font-size: 2.3rem;
        margin-bottom: 12px;
    }
    
    .quick-menu-item h5 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .quick-menu-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 400px) {
    .quick-menu-item {
        padding: 20px 12px;
    }
    
    .quick-menu-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .quick-menu-item h5 {
        font-size: 0.88rem;
    }
    
    .quick-menu-item p {
        font-size: 0.75rem;
    }
}

/* ================================================
   TOMBOL RESPONSIVE - TIDAK TERPOTONG DI MOBILE
   ================================================ */

/* Tombol Hero Carousel */
.btn-hero {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a237e;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Tombol Primary Custom (Info Section) */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    border: none;
    white-space: nowrap;
}

/* Tombol All News */
.btn-all-news {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #F6AD55);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
    white-space: nowrap;
}

/* ================================================
   RESPONSIVE TOMBOL - UKURAN DISESUAIKAN
   ================================================ */
@media (max-width: 768px) {
    .btn-hero {
        padding: 9px 24px;
        font-size: 0.9rem;
    }
    
    .btn-primary-custom,
    .btn-all-news {
        padding: 13px 32px;
        font-size: 0.95rem;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .btn-hero {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .btn-primary-custom,
    .btn-all-news {
        padding: 12px 28px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    /* Pastikan container tidak overflow */
    .carousel-caption,
    .info-section .col-lg-6,
    .text-center {
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .btn-hero {
        padding: 7px 18px;
        font-size: 0.8rem;
    }
    
    .btn-primary-custom,
    .btn-all-news {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .btn-hero {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .btn-primary-custom,
    .btn-all-news {
        padding: 9px 20px;
        font-size: 0.8rem;
    }
}

/* Hover Effect untuk Semua Tombol */
.btn-hero:hover,
.btn-primary-custom:hover,
.btn-all-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.btn-primary-custom:hover,
.btn-all-news:hover {
    color: #1a237e;
}

/* ================================================
   FIX OVERFLOW CONTAINER DI MOBILE
   ================================================ */
@media (max-width: 576px) {
    /* Pastikan container tidak potong tombol */
    .carousel-caption {
        padding: 20px 20px !important;
        max-width: 92% !important;
    }
    
    .info-section .container,
    .news-section .container,
    .quick-menu .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Spacing untuk tombol */
    .btn-primary-custom,
    .btn-all-news {
        margin-top: 10px;
    }
}

/* ================================================
   FOOTER - GELAP ELEGAN AGAK TERANG
   ================================================ */
footer {
    background: linear-gradient(135deg, #111111 0%, #222222 100%);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 20px;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #ffd700;
}

footer p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all .3s;
}

footer a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    margin: 0 8px;
    transition: all .3s;
    backdrop-filter: blur(6px);
    color: #fff;
}

.social-links a:hover {
    background: #ffd700;
    color: #111111;
    transform: translateY(-5px) rotate(360deg);
}

footer hr {
    border-color: rgba(255,255,255,0.15);
    margin: 30px 0 20px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   LANDSCAPE MODE
   ================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .carousel-item {
        height: 100vh;
    }
    
    .carousel-caption {
        padding: 15px 20px;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .slide-subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

/* ================================================
   PRELOADER
   ================================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 20000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: opacity .3s ease !important;
}

.spinner-border {
    color: #ffffff !important;
    border-color: #ffffff !important;
    border-right-color: transparent !important;
}

.preloader p {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
    letter-spacing: 0.3px !important;
}

/* Caption Adjustment - Tidak Overlap dengan Controls */
@media (max-width: 576px) {
    .carousel-caption {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

/* ================================================
   CAROUSEL CONTROLS - VERSI FINAL BERSIH
   ================================================ */

.carousel-control-prev,
.carousel-control-next {
    width: 45px !important;
    height: 45px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0.9 !important;
    z-index: 999 !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
}

.carousel-control-prev {
    left: 15px !important;
    right: auto !important;
}

.carousel-control-next {
    right: 15px !important;
    left: auto !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    border-radius: 50% !important;
    display: block !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5) !important;
    background-size: 50% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: all 0.3s ease !important;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a237e'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a237e'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7) !important;
}

/* Desktop */
@media (min-width: 992px) {
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 0 !important;
    }
    .carousel:hover .carousel-control-prev,
    .carousel:hover .carousel-control-next {
        opacity: 1 !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 42px !important;
        height: 42px !important;
    }
    .carousel-control-prev { left: 12px !important; }
    .carousel-control-next { right: 12px !important; }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 42px !important;
        height: 42px !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
    }
    .carousel-control-prev { left: 10px !important; }
    .carousel-control-next { right: 10px !important; }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 38px !important;
        height: 38px !important;
    }
    .carousel-control-prev { left: 8px !important; }
    .carousel-control-next { right: 8px !important; }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 38px !important;
        height: 38px !important;
    }
}

/* Container Fix */
#heroCarousel .carousel,
#heroCarousel .carousel-inner {
    overflow: hidden !important;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* ================================================
   GALLERY SECTION - COMPLETE RESPONSIVE
   ================================================ */

/* Filter wrap */
.gallery-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.filter-btn {
    padding: 7px 16px;
    border: 2px solid #1a5276;
    background: white;
    color: #1a5276;
    border-radius: 25px;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #1a5276 0%, #16a085 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(22,160,133,.3);
}

/* Gallery item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    border: 1px solid #e8ecf0;
    background: #f0f0f0;
}

/* Rasio 16:9 — persegi panjang landscape di semua layar */
.gallery-item::before {
    content: '';
    display: block;
    padding-top: 82%; /* ~16:10, bisa ubah ke 56.25% untuk 16:9 murni */
}

.gallery-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(21,67,96,.92), transparent);
    color: white;
    padding: 10px 10px 8px;
    transform: translateY(100%);
    transition: transform .3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5,
.gallery-overlay h5,
.gallery-overlay h6 {
    font-weight: 700;
    margin-bottom: 1px;
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-overlay p {
    font-size: .65rem;
    opacity: .85;
    margin: 0;
}

/* Filter item transition */
.gallery-filter-item {
    transition: opacity .3s ease, transform .3s ease;
}

/* ===== MOBILE ===== */
@media (max-width: 575px) {
    /* Section heading */
    .bg-light h2.section-title,
    section.bg-light .section-title {
        font-size: 1.15rem !important;
        margin-bottom: 6px !important;
    }

    section.bg-light .text-muted {
        font-size: .78rem !important;
        margin-bottom: 0 !important;
    }

    /* Filter buttons lebih kecil */
    .filter-btn {
        padding: 4px 9px;
        font-size: .68rem;
        gap: 3px;
        border-width: 1.5px;
    }

    .filter-btn i {
        font-size: .68rem;
    }

    .gallery-filter-wrap {
        gap: 4px;
        margin-bottom: 12px !important;
    }

    /* Overlay teks lebih kecil */
    .gallery-overlay {
        padding: 8px 8px 6px;
    }

    .gallery-overlay h5,
    .gallery-overlay h6 {
        font-size: .75rem;
    }

    .gallery-overlay p {
        font-size: .58rem;
    }

    /* Tombol lihat semua */
    section.bg-light .btn {
        font-size: .82rem;
        padding: 6px 20px;
    }
}

@media (max-width: 375px) {
    .filter-btn {
        padding: 3px 7px;
        font-size: .63rem;
    }

    .gallery-overlay h5,
    .gallery-overlay h6 { font-size: .7rem; }
}

@media (max-width: 575px) {
    .gallery-overlay h5,
    .gallery-overlay h6 {
        font-size: .62rem;
    }
    .gallery-overlay p {
        font-size: .55rem;
    }
}

/* ================================================
   BERITA - 2 KOLOM MOBILE (CLEAN & RAPI)
   ================================================ */
@media (max-width: 767.98px) {

    .news-card-img {
        height: 135px !important;
    }

    .news-card-img img {
        height: 135px !important;
        object-fit: cover;
    }

    .badge-kategori {
        font-size: 0.65rem !important;
        padding: 4px 9px !important;
        top: 7px !important;
        right: 7px !important;
        letter-spacing: 0 !important;
    }

    .news-card-body {
        padding: 12px 12px 14px !important;
    }

    .news-date {
        font-size: 0.68rem !important;
        padding: 4px 10px !important;
        gap: 4px !important;
        border-radius: 14px !important;
        line-height: 1.4 !important;
        display: inline-flex !important;
        white-space: nowrap !important;
    }

    .news-date i {
        font-size: 0.65rem !important;
    }

    .news-meta {
        margin-bottom: 8px !important;
    }

    .news-card-title {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .news-card-text {
        display: none !important;
    }

    .btn-read-more {
        font-size: 0.75rem !important;
        gap: 5px !important;
    }

    .btn-read-more i {
        font-size: 0.72rem !important;
    }

    .btn-all-news {
        padding: 11px 26px !important;
        font-size: 0.88rem !important;
    }
}

/* Extra kecil (< 400px) */
@media (max-width: 400px) {

    .news-card-img,
    .news-card-img img {
        height: 115px !important;
    }

    .news-card-body {
        padding: 10px 10px 12px !important;
    }

    .news-date {
        font-size: 0.62rem !important;
        padding: 3px 8px !important;
    }

    .news-card-title {
        font-size: 0.76rem !important;
        -webkit-line-clamp: 3 !important;
    }

    .btn-read-more {
        font-size: 0.68rem !important;
    }
}

/* ================================================
   FOOTER MOBILE - LAYOUT GRID RAPI
   ================================================ */
@media (max-width: 767.98px) {
    footer {
        padding: 40px 0 16px;
    }

    /* Grid 2 kolom untuk navigasi & tautan */
    footer .row.g-4 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 16px !important;
    }

    /* Kolom pertama (info lapas) full width */
    footer .row.g-4 > .col-lg-4 {
        grid-column: 1 / -1;
    }

    /* Kolom navigasi & tautan penting side by side */
    footer .row.g-4 > .col-lg-2,
    footer .row.g-4 > .col-lg-3:first-of-type {
        grid-column: span 1;
    }

    /* Kolom medsos full width */
    footer .row.g-4 > .col-lg-3:last-of-type {
        grid-column: 1 / -1;
    }

    /* Sosmed icons horizontal rata */
    .social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        margin: 0;
        font-size: 0.95rem;
    }

    footer h5 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    footer p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 6px;
    }

    footer a {
        font-size: 0.85rem;
    }

    footer ul li {
        margin-bottom: 5px !important;
    }

    footer hr {
        margin: 20px 0 14px;
    }

    footer .col-md-6 p {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    footer h5 { font-size: 0.9rem; }
    footer p, footer a { font-size: 0.8rem; }

    .social-links a {
        width: 36px;
        height: 36px;
    }
}

/* ================================================
   DESKTOP - SOCIAL LINKS SPACING FIX
   ================================================ */
@media (min-width: 768px) {
    .social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-links a {
        margin: 0;
    }
}

/* ================================================
   KUNJUNGAN CTA SECTION
   ================================================ */
.kunjungan-cta-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #eef5ff 100%);
}

.kunjungan-cta-card {
    background: linear-gradient(135deg, #06213E 0%, #3949ab 60%, #16a085 100%);
    border-radius: 20px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(6,33,62,.25);
    flex-wrap: wrap;
}

.kunjungan-cta-left {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    flex: 1;
}

.kunjungan-icon-wrap {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffd700;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,.2);
}

.kunjungan-cta-left h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.kunjungan-cta-left p {
    color: rgba(255,255,255,.85);
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.kunjungan-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kunjungan-badges span {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

.kunjungan-cta-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.btn-kunjungan-utama {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a237e;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(255,215,0,.35);
    white-space: nowrap;
}

.btn-kunjungan-utama:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,.5);
    color: #1a237e;
}

.btn-kunjungan-sekunder {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.5);
    color: white;
    padding: 11px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .3s;
    white-space: nowrap;
}

.btn-kunjungan-sekunder:hover {
    background: rgba(255,255,255,.25);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .kunjungan-cta-card {
        padding: 24px 20px;
        flex-direction: column;
    }
    .kunjungan-cta-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .kunjungan-badges { justify-content: center; }
    .kunjungan-cta-right { width: 100%; }
    .btn-kunjungan-utama, .btn-kunjungan-sekunder {
        justify-content: center;
        width: 100%;
    }
}

/* ================================================
   STATISTIK DETAIL SECTION
   ================================================ */
.statistik-detail-section {
    padding: 70px 0;
    background: white;
}

.stat-detail-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    overflow: hidden;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
}

.stat-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(26,82,118,.12);
}

.stat-detail-header {
    background: linear-gradient(135deg, #06213E 0%, #3949ab 100%);
    color: white;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.stat-detail-header h5 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: white;
}

.stat-detail-body {
    padding: 20px 22px;
}

/* Distribusi */
.stat-dist-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 18px;
}

.stat-dist-item {
    text-align: center;
}

.stat-dist-item .dist-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #06213E;
    line-height: 1;
}

.stat-dist-item.tahanan .dist-num { color: #e74c3c; }
.stat-dist-item.narapidana .dist-num { color: #3949ab; }

.dist-label {
    font-size: .82rem;
    color: #5a6878;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.stat-dist-divider {
    width: 2px;
    height: 50px;
    background: #e8ecf0;
    border-radius: 2px;
}

.kapasitas-info {
    border-top: 1px solid #eaf0f6;
    padding-top: 14px;
}

.kapasitas-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: #5a6878;
    margin-bottom: 8px;
    font-weight: 600;
}

.kapasitas-bar {
    height: 10px;
    background: #e8ecf0;
    border-radius: 6px;
    overflow: hidden;
}

.kapasitas-fill {
    height: 100%;
    border-radius: 6px;
    transition: width .8s ease;
}

.kapasitas-fill.overload { background: linear-gradient(90deg, #f39c12, #e74c3c); }
.kapasitas-fill.normal   { background: linear-gradient(90deg, #16a085, #1abc9c); }

.badge-overload-sm {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.badge-normal-sm {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: white;
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

/* Demografi */
.demo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eaf0f6;
}

.demo-row:last-child { border-bottom: none; }
.demo-row.total { background: #f8fafc; border-radius: 8px; padding: 10px 12px; margin-top: 6px; }

.demo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.demo-icon.lk { background: #dbeafe; color: #1d4ed8; }
.demo-icon.pr { background: #fce7f3; color: #be185d; }
.demo-icon.total-icon { background: linear-gradient(135deg, #06213E, #3949ab); color: white; }

.demo-label { flex: 1; font-size: .88rem; color: #5a6878; font-weight: 600; }
.demo-val   { font-size: 1.1rem; font-weight: 800; color: #06213E; }

/* Kasus */
.kasus-row { margin-bottom: 12px; }

.kasus-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.kasus-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kasus-nama { flex: 1; font-size: .87rem; color: #2c3e50; font-weight: 600; }
.kasus-num  { font-size: .87rem; font-weight: 700; color: #06213E; }

.kasus-bar-wrap {
    height: 7px;
    background: #e8ecf0;
    border-radius: 4px;
    overflow: hidden;
}

.kasus-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .8s ease;
}

.btn-lihat-statistik {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #06213E, #3949ab);
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(57,73,171,.3);
}

.btn-lihat-statistik:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(57,73,171,.4);
    color: white;
}

/* ================================================
   MOBILE IMPROVEMENTS — CTA KUNJUNGAN
   ================================================ */
@media (max-width: 576px) {
    .kunjungan-cta-section {
        padding: 24px 0;
    }

    .kunjungan-cta-card {
        padding: 22px 16px;
        border-radius: 16px;
        gap: 18px;
    }

    .kunjungan-icon-wrap {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        border-radius: 14px;
        /* tampilkan ikon di atas judul, bukan di samping */
        margin: 0 auto 10px;
    }

    .kunjungan-cta-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .kunjungan-cta-left h3 {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .kunjungan-cta-left p {
        font-size: .82rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .kunjungan-badges {
        justify-content: center;
        gap: 5px;
    }

    .kunjungan-badges span {
        font-size: .72rem;
        padding: 3px 9px;
    }

    .kunjungan-cta-right {
        width: 100%;
        gap: 10px;
    }

    .btn-kunjungan-utama {
        padding: 12px 20px;
        font-size: .88rem;
        border-radius: 10px;
        justify-content: center;
        width: 100%;
    }

    .btn-kunjungan-sekunder {
        padding: 10px 20px;
        font-size: .84rem;
        border-radius: 10px;
        justify-content: center;
        width: 100%;
    }
}

/* ================================================
   MOBILE IMPROVEMENTS — STATISTIK DETAIL
   ================================================ */
@media (max-width: 767px) {
    .statistik-detail-section {
        padding: 40px 0;
    }

    /* Di mobile: tumpuk 1 kolom penuh, bukan 2 atau 3 */
    .statistik-detail-section .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .stat-detail-card {
        border-radius: 14px;
    }

    .stat-detail-header {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .stat-detail-header h5 {
        font-size: .88rem;
    }

    .stat-detail-body {
        padding: 16px 18px;
    }

    /* Distribusi: angka lebih kecil */
    .stat-dist-item .dist-num {
        font-size: 1.8rem;
    }

    .dist-label {
        font-size: .78rem;
    }

    /* Kasus: bar lebih terlihat */
    .kasus-bar-wrap {
        height: 8px;
    }

    .kasus-nama {
        font-size: .82rem;
    }

    .kasus-num {
        font-size: .82rem;
        white-space: nowrap;
    }

    /* Demo row lebih kompak */
    .demo-val {
        font-size: 1rem;
    }

    .demo-label {
        font-size: .84rem;
    }

    /* Tombol lihat statistik */
    .btn-lihat-statistik {
        padding: 10px 24px;
        font-size: .88rem;
        border-radius: 10px;
    }
}

/* Tambahan: di mobile, CTA + statistik background beda agar ada ritme visual */
@media (max-width: 576px) {
    .statistik-detail-section {
        background: #f8fafc;
    }

    /* Gap antar card statistik lebih kecil di mobile */
    .statistik-detail-section .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
}