/* ==========================================================================
   MPP MEMPAWAH - GLOBAL STYLESHEET
   ========================================================================== */

:root {
    --mpp-primary: #0284c7;
    --mpp-primary-dark: #0369a1;
    --mpp-secondary: #0f172a;
    --mpp-accent: #f59e0b;
    --mpp-bg-light: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--mpp-bg-light);
    color: #1e293b;
    overflow-x: hidden;
}

/* --- Navbar & Branding --- */
.navbar-mpp {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.brand-text-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-text-sub {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.koni-nav-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155 !important;
    text-decoration: none;
    padding: 7px 13px !important;
    border-radius: 50px;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

.koni-nav-link:hover {
    color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.08);
    transform: translateY(-1px);
}

.koni-nav-link.active {
    color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.12);
    font-weight: 700;
}

.koni-nav-admin-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    background: #ffffff;
    border: 1.5px solid rgba(220, 38, 38, 0.35);
    font-size: 1.15rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.koni-nav-admin-icon:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

/* --- Banner & Hero Section --- */
.banner-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
}

.banner-img-responsive {
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- Kartu Statistik & Overview --- */
.stat-card-mpp {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-mpp:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* --- Kartu Maklumat Pelayanan --- */
.card-maklumat {
    background-color: #f0f9ff;
    border-left: 5px solid #0284c7;
    border-radius: 14px;
    padding: 20px 24px;
}

/* --- Section Profil MPP (Biru) --- */
.section-profile-mpp {
    background-color: #0ea5e9;
    color: #ffffff;
    padding: 50px 0;
}

.profile-img-container {
    padding: 10px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.profile-img-container img {
    border-radius: 14px;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

/* --- Kartu Instansi & Layanan --- */
.agency-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    height: 100%;
    transition: all 0.2s ease;
}

.agency-card:hover {
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
}

/* --- Footer & Google Maps Frame --- */
.footer-mpp {
    background-color: #0b1329;
    color: #ffffff;
}

.maps-container-rounded {
    border-radius: 16px;
    overflow: hidden;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.maps-container-rounded iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Map container faq pengaduan dan statistik */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.hero-pengaduan {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 50px 0 70px;
}

.main-card-box {
    margin-top: -40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    padding: 35px;
}

.contact-action-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    width: 100%;
}
.contact-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.card-wa:hover {
    border-color: #25d366;
    background-color: #f0fdf4;
}

.card-email:hover {
    border-color: #0284c7;
    background-color: #f0f9ff;
}

.icon-circle-contact {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.sosmed-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    color: #ffffff;
}

.sosmed-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.btn-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.btn-facebook { background-color: #1877f2; }
.btn-youtube { background-color: #ff0000; }
.btn-website { background-color: #0284c7; }
        
/* Map container selebar kartu kontak */
.maps-box-full {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

/* ==========================================================================
   KONI NEWS SECTION (MATCHING USER SCREENSHOT)
   ========================================================================== */
.koni-news-header {
    border-bottom: 3px solid #f59e0b;
    padding-bottom: 8px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.koni-news-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin-bottom: 0;
}

.koni-news-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.koni-news-more:hover {
    color: #d97706;
}

.koni-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 28px;
}

.koni-news-thumb {
    width: 100%;
    height: 215px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #f1f5f9;
    position: relative;
    display: block;
}

.koni-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
    display: block;
}

.koni-news-card:hover .koni-news-thumb img {
    transform: scale(1.04);
}

.koni-news-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.koni-news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.koni-news-headline {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}

.koni-news-headline a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.koni-news-headline a:hover {
    color: #d97706;
}

.koni-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.koni-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ==========================================================================
   COMPACT 5-COLUMN CABOR STYLING
   ========================================================================== */
.koni-cabor-compact-card {
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: default;
    min-height: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 10px;
    background-color: #ffffff;
    border-radius: 12px;
}

.koni-cabor-compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.08);
    border-color: #f87171;
}

.koni-cabor-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.koni-cabor-compact-card:hover .koni-cabor-icon-circle {
    background-color: #dc2626;
    color: #ffffff;
    transform: scale(1.08);
}

.koni-cabor-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR SMARTPHONES & TABLETS
   ========================================================================== */
.koni-stat-container {
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .koni-stat-container {
        margin-top: -20px;
    }
    
    .koni-hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 38px !important;
    }
    
    .brand-text-title {
        font-size: 0.95rem !important;
    }
    
    .brand-text-sub {
        font-size: 0.65rem !important;
    }

    .koni-hero-title {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }

    .koni-stat-container {
        margin-top: -10px;
    }

    .koni-stat-card {
        padding: 16px 12px;
    }

    .koni-stat-card h2 {
        font-size: 1.6rem !important;
    }

    .koni-cabor-compact-card {
        min-height: 110px;
        padding: 10px 6px;
    }

    .koni-cabor-icon-circle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .koni-cabor-name {
        font-size: 0.78rem;
    }
}

  