/* ========================================================
   Desa Cinta Manis Lama - Portal Resmi & Panel Admin
   Modern Civic UI / UX Stylesheet
   ======================================================== */

:root {
    --primary: #059669;         /* Emerald 600 */
    --primary-hover: #047857;   /* Emerald 700 */
    --primary-light: #ecfdf5;   /* Emerald 50 */
    --primary-focus: rgba(5, 150, 105, 0.2);

    --secondary: #0284c7;       /* Sky 600 */
    --secondary-hover: #0369a1; /* Sky 700 */
    --secondary-light: #f0f9ff; /* Sky 50 */

    --dark: #0f172a;            /* Slate 900 */
    --dark-surface: #1e293b;    /* Slate 800 */
    --dark-muted: #334155;      /* Slate 700 */
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-focus: #10b981;
    
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --whatsapp-color: #25d366;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ================= Top Bar Info ================= */
.top-notice-bar {
    background: #002447;
    color: #f1f5f9;
    font-size: 0.84rem;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-bar .info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-notice-bar .info-item i {
    color: #38bdf8;
}

.top-notice-bar a {
    color: #38bdf8;
}

.top-notice-bar a:hover {
    text-decoration: underline;
}

/* ================= Navbar ================= */
.main-navbar {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.04);
}

.brand-icon {
    display: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
}

.nav-links a {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #0284c7;
    background: #f8fafc;
}

.nav-links a.active {
    color: #0284c7;
    background: #e0f2fe;
    font-weight: 600;
    box-shadow: none;
}

.btn-nav-admin {
    background: #0284c7;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    margin-left: 8px;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.btn-nav-admin:hover {
    background: #0369a1 !important;
    transform: translateY(-1px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.mobile-toggle:hover {
    background: #f1f5f9;
}

/* ================= Page Headers & Hero Banner ================= */
.hero-banner {
    position: relative;
    min-height: 440px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(6, 78, 59, 0.85)), url('../images/kantor_desa.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 60px 20px;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-body), transparent);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Sub Header */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('../images/kantor_desa.jpg') center/cover no-repeat;
    padding: 60px 20px 70px;
    color: white;
    text-align: center;
}

.page-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-hero-desc {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.breadcrumb-list a {
    color: #38bdf8;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* ================= Layout & Containers ================= */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.overlap-container {
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.content-section {
    padding: 50px 0;
}

/* ================= Stat Cards Grid ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-box {
    background: var(--bg-card);
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.green {
    background: #ecfdf5;
    color: #059669;
}

.stat-icon.blue {
    background: #f0f9ff;
    color: #0284c7;
}

.stat-icon.amber {
    background: #fffbeb;
    color: #d97706;
}

.stat-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.stat-details h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.stat-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ================= Section Headers ================= */
.section-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-title::before {
    content: '';
    width: 6px;
    height: 28px;
    background: var(--primary);
    border-radius: 4px;
    display: inline-block;
}

.section-header-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
}

.btn-whatsapp:hover {
    background: #1eb857;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* ================= Cards ================= */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 24px;
}

/* ================= News Grid ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.news-img-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #f1f5f9;
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.05);
}

.news-badge-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: auto;
}

.news-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-read-more:hover {
    color: var(--primary-hover);
    gap: 8px;
}

/* ================= UMKM Grid ================= */
.umkm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.umkm-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.umkm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #a7f3d0;
}

.umkm-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    overflow: hidden;
}

.umkm-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.umkm-card:hover .umkm-img-wrap img {
    transform: scale(1.05);
}

.umkm-badge-local {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.umkm-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.umkm-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.umkm-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ================= Layanan Grid ================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--dark);
    font-weight: 700;
}

.service-card h4 {
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card ul li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.service-card ul li i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.85rem;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.time-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

/* ================= Sambutan Kades ================= */
.kades-section {
    background: linear-gradient(135deg, #f0fdf4, #f0f9ff);
    border-radius: var(--radius-lg);
    border: 1px solid #bbf7d0;
    padding: 35px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: center;
}

.kades-avatar-wrap {
    text-align: center;
}

.kades-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    background: #e2e8f0;
}

.kades-role-badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.kades-speech h2 {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.kades-speech p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 14px;
}

.kades-speech .quote-icon {
    font-size: 1.8rem;
    color: #10b981;
    opacity: 0.3;
    margin-bottom: 5px;
}

/* ================= Struktur Organisasi ================= */
.org-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.official-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.official-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.official-card.lead {
    max-width: 380px;
    width: 100%;
    border-top: 5px solid #f59e0b;
    background: linear-gradient(to bottom, #ffffff, #fffbeb);
}

.official-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #0284c7, #10b981);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.official-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.official-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--secondary);
    background: #e0f2fe;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 8px;
}

.official-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

/* ================= Tables ================= */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:hover {
    background-color: #f8fafc;
}

/* ================= Search & Filters ================= */
.search-filter-box {
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex-grow: 1;
}

.search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

/* ================= Form Elements ================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-muted);
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-main);
    background: white;
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

/* ================= Alerts ================= */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* ================= Footer ================= */
.main-footer {
    background: var(--dark);
    color: #94a3b8;
    margin-top: 60px;
    border-top: 4px solid var(--primary);
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    background: #090e1a;
    padding: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom a {
    color: #38bdf8;
}

/* ================= Admin Panel UI ================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-sidebar {
    width: 260px;
    background: #0f172a;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
}

.admin-brand {
    padding: 24px 20px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: #1e293b;
    color: #38bdf8;
    border-left: 4px solid #38bdf8;
}

.admin-logout {
    padding: 20px 24px;
    border-top: 1px solid #1e293b;
}

.admin-main {
    margin-left: 260px;
    flex-grow: 1;
    padding: 30px;
    min-width: 0;
}

.admin-topbar {
    background: white;
    padding: 18px 26px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

/* ================= Media Queries / Responsiveness ================= */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .kades-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .top-notice-bar {
        display: none;
    }
    .mobile-toggle {
        display: block;
        color: #0f172a;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        border-bottom: 1px solid #e2e8f0;
        gap: 8px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        color: #334155;
    }
    .nav-links a:hover {
        background: #f8fafc;
        color: #0284c7;
    }
    .nav-links a.active {
        background: #e0f2fe;
        color: #0284c7;
        font-weight: 600;
    }
    .btn-nav-admin {
        margin-left: 0;
        margin-top: 8px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ================= Hero Cards Style (Image 2) ================= */
.btn-amber {
    background: #f59e0b;
    color: #0f172a !important;
    font-weight: 700 !important;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.btn-amber:hover {
    background: #d97706;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

.demografi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 35px;
}

.demografi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.demografi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.demografi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.demografi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.demografi-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.demografi-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.demografi-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.demografi-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 14px;
}

.demografi-progress-bar {
    height: 8px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    margin-bottom: 16px;
}

.progress-male {
    height: 100%;
    background: #2563eb;
    border-radius: 999px 0 0 999px;
}

.progress-female {
    height: 100%;
    background: #06b6d4;
    border-radius: 0 999px 999px 0;
}

.demografi-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    transition: var(--transition);
}

.demografi-footer-link:hover {
    color: #0369a1;
    transform: translateX(2px);
}

/* ================= Data Wilayah Administratif & Dusun (Image 1) ================= */
.wilayah-box-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

.wilayah-box-header {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.wilayah-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004b87; /* Deep Navy/Blue matching Image 1 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.wilayah-table {
    width: 100%;
    border-collapse: collapse;
}

.wilayah-table th {
    background-color: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: none;
    padding: 16px 20px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: normal;
}

.wilayah-table td {
    padding: 16px 20px;
    color: #334155;
    font-size: 0.92rem;
    border-bottom: 1px solid #f1f5f9;
}

.wilayah-table tbody tr:hover {
    background-color: #f8fafc;
}

.wilayah-table .highlight-row {
    background-color: #f8fafc;
    font-weight: 600;
}

.wilayah-table .total-row {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
    border-top: 2px solid #cbd5e1;
}

/* ================= Modern Interactive Enhancements ================= */
/* Pulsing Status Dot */
.live-status-dot {
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseLive 1.8s infinite;
    vertical-align: middle;
}
@keyframes pulseLive {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Floating WhatsApp Widget */
.floating-wa-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.35);
}
.floating-wa-btn:hover {
    background: #1eb857;
    color: #ffffff;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 32px -5px rgba(37, 211, 102, 0.6);
}
.floating-wa-btn i {
    font-size: 1.4rem;
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 85px;
    right: 25px;
    z-index: 998;
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Button Shimmer Effect */
.btn-amber {
    position: relative;
    overflow: hidden;
}
.btn-amber::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(30deg);
    transition: none;
    animation: btnShimmer 3.5s infinite;
}
@keyframes btnShimmer {
    0% { left: -60%; }
    20% { left: 140%; }
    100% { left: 140%; }
}

/* Card Hover Elevation */
.card-hover-pop {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-hover-pop:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Category Badge Pills */
.badge-pill-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.badge-pill-soft.blue { background: #e0f2fe; color: #0284c7; }
.badge-pill-soft.green { background: #dcfce7; color: #15803d; }
.badge-pill-soft.amber { background: #fef3c7; color: #b45309; }
.badge-pill-soft.purple { background: #f3e8ff; color: #7e22ce; }

/* Subtle Hero Floating Animation */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: heroFloat 5s ease-in-out infinite;
}



/* ========================================================
   Enhanced Living UI/UX Extensions - Desa Cinta Manis Lama
   ======================================================== */

/* Reading Progress Bar (for reading view & site) */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}
.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7, #059669, #f59e0b);
    transition: width 0.1s ease-out;
}

/* Dynamic Live Status Indicator */
.live-status-dot.closed {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulseClosed 2s infinite;
}
@keyframes pulseClosed {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Category Filter Tab Bar */
.filter-tabs-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}
.filter-tab-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.filter-tab-btn:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
}
.filter-tab-btn.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Stat Counter Card */
.stat-counter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.stat-counter-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px;
}
.stat-counter-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.stat-counter-label {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

/* Interactive Card Image Zoom */
.card-zoom-img {
    overflow: hidden;
    border-radius: var(--radius-md);
}
.card-zoom-img img {
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card-zoom-img:hover img {
    transform: scale(1.05);
}

/* Toast Notification */
.civic-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.civic-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Office Hours Live Status Widget */
.office-hours-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.office-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
}
.office-status-pill.open {
    background: #dcfce7;
    color: #15803d;
}
.office-status-pill.closed {
    background: #fef3c7;
    color: #b45309;
}

/* 4-Step Roadmap Enhancements */
.step-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    position: relative;
}
.step-roadmap-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.step-roadmap-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.06);
    border-color: #0284c7;
}
.step-num-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Accordion FAQ */
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-question {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.96rem;
    user-select: none;
    transition: var(--transition);
}
.faq-question:hover {
    background: #f8fafc;
    color: #0284c7;
}
.faq-question i {
    transition: transform 0.3s ease;
    color: #0284c7;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 20px 18px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.7;
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}
