/* ============================================
   WEBSITE DESA - PREMIUM DESIGN SYSTEM
   Font: Poppins | Theme: Teal-Navy
   100% Original CSS - Written from scratch
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-deeper: #134e4a;
    --accent: #06b6d4;
    --accent-light: #67e8f9;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --bg: #f0fdfa;
    --bg-alt: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Full-bleed section (edge to edge) */
.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Modern Icon Circle (like Desa Tamang) */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--icon-color, var(--primary));
    background: var(--icon-bg, rgba(13, 148, 136, 0.1));
    transition: var(--transition);
    margin: 0 auto 12px;
}

.icon-circle i {
    font-size: inherit;
}

.icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   NAVBAR - Sticky Top Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: #000000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.navbar-brand-text h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.navbar-brand-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-toggle {
    z-index: 1005 !important;
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}

/* ============================================
   HERO - Fullscreen Slider
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.5) 0%,
            rgba(15, 23, 42, 0.3) 40%,
            rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.15;
}

.hero-content .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .hero-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 22px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-indicators {
    display: none !important;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-indicator.active {
    background: var(--accent);
    border-color: #fff;
    transform: scale(1.2);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-nav.prev {
    left: 24px;
}

.hero-nav.next {
    right: 24px;
}

/* ============================================
   STATS BAR - Quick Statistics
   ============================================ */
.stats-bar {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 24px;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.stat-item:hover .stat-value,
.stat-item:hover .stat-label {
    color: #fff;
}

.stat-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    transition: var(--transition);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* ============================================
   SECTION - General Styles
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 10px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ABOUT SECTION - Sambutan
   ============================================ */
.about-section {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image .placeholder-icon {
    font-size: 5rem;
    opacity: 0.3;
}

.about-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 18px;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.about-text .about-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-text .about-detail .detail-icon {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================
   NEWS SECTION - Berita Cards
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.news-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.news-card-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--navy-light), var(--primary-deeper));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.news-card-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.4));
}

.news-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 14px;
    transition: var(--transition);
}

.news-card-link:hover {
    gap: 10px;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    background: var(--navy);
    color: #fff;
}

.map-section .section-header .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
}

.map-section .section-header h2 {
    color: #fff;
}

.map-section .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--navy-light);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.map-placeholder .map-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

.map-placeholder p {
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col li a,
.footer-col li span {
    font-size: 0.88rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col li a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* ============================================
   FORMS (Admin)
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--card-bg);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-success {
    background: #f0fdfa;
    color: #065f46;
    border: 1px solid #5eead4;
}

/* ============================================
   CARD GENERIC
   ============================================ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

/* ============================================
   TABLE
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(13, 148, 136, 0.03);
}

/* ============================================
   ADMIN SPECIFIC
   ============================================ */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.admin-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg);
    padding: 6px;
    border-radius: var(--radius-sm);
    width: fit-content;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: transparent;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    border: none;
}

.tab-btn.active {
    background: var(--card-bg);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        max-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {



    .navbar-toggle {
        z-index: 1005 !important;
        display: block;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-nav {
        display: none;
    }

    .stats-bar {
        margin-top: -40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content .hero-subtitle {
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 18px 12px;
    }

    .stat-value {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   PROFILE PAGE STYLES (ADDED)
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.accordion-mobile {
    display: none;
}

.batas-item {
    background: var(--bg-alt);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.batas-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.img-placeholder {
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

/* Profile page responsive rules */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Hide the desktop side-by-side cards on mobile */
    .profile-section>.grid-2>.card-hover {
        display: none;
    }

    /* Show the mobile accordion on mobile */
    .accordion-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .accordion-item {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
    }

    .accordion-header {
        width: 100%;
        text-align: left;
        padding: 16px 20px;
        background: white;
        border: none;
        font-size: 1.1rem;
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
        color: var(--primary-dark);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .accordion-content {
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .accordion-item.active .accordion-content {
        padding: 0 20px 20px 20px;
        max-height: 1000px;
    }

    .accordion-item .icon {
        transition: transform 0.3s ease;
        font-size: 0.8rem;
    }

    .accordion-item.active .icon {
        transform: rotate(180deg);
    }
}

@media (min-width: 769px) {

    /* Explicitly hide mobile accordion on desktop */
    .accordion-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   INFOGRAFIS PENDUDUK STYLES (ADDED)
   ========================================================================== */

/* Tab Navigation */
.info-nav-wrapper {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding-top: 90px;
}

.info-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    max-width: 800px;
    margin: 0 auto;
    scrollbar-width: none;
}

.info-tabs::-webkit-scrollbar {
    display: none;
}

.info-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-width: 120px;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 2px solid transparent;
}

.info-tab:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.info-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(13, 148, 136, 0.05);
}

.info-tab .info-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.info-tab .info-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero Section */
.info-hero {
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-hero-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.info-hero-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Top Stats Grid */
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-icon-large {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Demografi List */
.demo-card {
    padding: 30px;
}

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.demo-card-header .icon {
    font-size: 1.8rem;
}

.demo-card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-item {
    width: 100%;
}

.demo-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.demo-name {
    font-weight: 600;
    color: var(--text);
}

.demo-val {
    font-weight: 500;
    color: var(--text-secondary);
}

.demo-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--bg-alt);
    border-radius: 10px;
    overflow: hidden;
}

.demo-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-hero {
        padding: 30px;
    }

    .info-hero-text h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .info-nav-wrapper {
        padding-top: 70px;
    }

    .info-tabs {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 5px;
        margin: 0;
        width: 100%;
        gap: 0;
        overflow: hidden;
    }

    .info-tab {
        min-width: unset;
        width: 16.666%;
        padding: 5px 2px;
        flex-shrink: 1;
        align-items: center;
        text-align: center;
    }

    .info-tab .info-icon {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .info-tab .info-text {
        font-size: 0.65rem;
        word-break: break-word;
    }

    .info-hero-text {
        text-align: center;
        margin-bottom: 24px;
    }

    .info-hero-text h1 {
        font-size: 1.6rem;
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PAGE SPECIFIC COMPONENTS
   ============================================ */

/* Image Slider (Native CSS) */
.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 15px;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-alt);
}

.slider-container::-webkit-scrollbar {
    height: 8px;
}

.slider-container::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: 10px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.slider-item {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.slider-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.slider-content {
    padding: 15px;
}

.slider-content h4 {
    color: var(--navy);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.slider-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .slider-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 calc(85% - 20px);
    }
}

/* ============================================
   INDEX.PHP REDESIGN (TAMANG STYLE)
   ============================================ */

/* Quick Links (Jelajahi Desa) */
.quick-links-section {
    padding: 40px 0;
    background: var(--bg);
    position: relative;
    z-index: 10;
    margin-top: -30px;
    display: none;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: center;
    color: var(--navy);
}

.quick-link-item:hover {
    background: var(--bg-alt);
    transform: translateY(-5px);
    color: var(--primary);
}

.quick-link-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(6, 182, 212, 0.1));
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    transition: var(--transition);
}

.quick-link-item:hover .quick-link-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.quick-link-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Grid Layouts for Sections */
.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 30px;
}

.split-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.split-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.split-card h3 .icon {
    color: var(--primary);
}

.split-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Administrasi Penduduk Grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 15px;
}

/* APB Desa Section */
.apb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.apb-card {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.apb-card:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.apb-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apb-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
}

.apb-amount.income {
    color: var(--primary);
}

.apb-amount.expense {
    color: #ef4444;
}

/* Empty State Placeholder */
.empty-state {
    padding: 25px 20px;
    text-align: center;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Layout & Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Background Utilities */
.bg-white {
    background-color: #ffffff;
}

.bg-light-gray {
    background-color: #f8fafc;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bg-soft-green {
    background-color: #f0fdf4;
    border-top: 1px solid #d1fae5;
    border-bottom: 1px solid #d1fae5;
}

.bg-dark {
    background-color: var(--navy);
    color: #fff;
}

/* Stats Mini Grid (Administrasi Penduduk) */
.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: auto;
}

.stat-mini-card {
    background: var(--bg-alt);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-mini-card .val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-mini-card .lbl {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 20px;
        max-width: 700px;
    }

    .split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 15px 10px;
    }

    .quick-link-icon,
    .icon-circle {
        width: 45px;
        height: 45px !important;
        font-size: 1.2rem;
        margin: 0 auto 8px;
    }

    .quick-link-text {
        font-size: 0.68rem;
        line-height: 1.1;
        word-break: break-word;
    }

    .apb-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }

    .stats-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links-section {
        padding: 20px 15px;
        margin-top: -15px;
        display: block;
    }

    .split-card {
        padding: 20px;
    }
}

/* ============================================
   PPID PAGE STYLES
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--navy), var(--primary-deeper));
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* PPID Categories Grid */
.ppid-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.ppid-category-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ppid-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.ppid-category-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.ppid-category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
}

/* Call To Action (CTA) Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-light), var(--bg));
    padding: 60px 0;
    text-align: center;
    border-radius: var(--radius);
    margin: 60px 0;
    border: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ppid-category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* ============================================
   DETIK.COM STYLE CSS FOR BERITA PAGE
   ============================================ */
.detik-body {
    background: #f1f1f1;
    font-family: 'Arial', sans-serif;
    /* Detik uses generic sans-serif often */
    color: #333;
}

.detik-container {
    max-width: 1040px;
    margin: 0 auto;
    background: #fff;
    padding: 0 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.detik-subnav {
    background: #000000;
    padding: 10px 0;
    margin-bottom: 20px;
}

.detik-subnav .container {
    align-items: center;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1040px;
}

.detik-subnav a {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.detik-subnav a:hover {
    color: #ffcc00;
}

.detik-search {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.detik-search input {
    border: none;
    padding: 6px 12px;
    outline: none;
    font-size: 14px;
    width: 200px;
}

.detik-search button {
    border: none;
    background: #f1f5f9;
    padding: 6px 12px;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .detik-subnav .container {
        justify-content: center;
        padding-bottom: 5px;
    }

    .detik-search {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 5px;
        margin-bottom: 15px;
        order: -1;
    }

    .detik-search input {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .detik-search button {
        flex-shrink: 0;
    }
}

.detik-layout {
    display: flex;
    gap: 20px;
    padding-bottom: 40px;
}

.detik-main {
    width: 68%;
}

.detik-sidebar {
    width: 32%;
}

/* Headline */
.detik-headline {
    min-height: 350px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.detik-headline img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.detik-headline-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 20px 20px 20px;
    color: #fff;
    border-radius: 0 0 4px 4px;
}

.detik-headline-title h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.detik-headline-title h2 a {
    color: #fff;
}

.detik-headline-title h2 a:hover {
    color: #ffcc00;
}

/* Feed */
.detik-feed-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.detik-feed-img {
    background: #e2e8f0;
    min-height: 146px;
    width: 220px;
    height: 146px;
    object-fit: cover;
    border-radius: 4px;
}

.detik-feed-content h3 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 8px;
}

.detik-feed-content h3 a {
    color: #333;
}

.detik-feed-content h3 a:hover {
    color: var(--navy, #0f172a);
}

.detik-feed-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.detik-feed-meta span.tag {
    color: var(--primary, #0d9488);
    /* Detik red tag */
    font-weight: bold;
    margin-right: 10px;
}

/* Sidebar - Terpopuler */
.detik-terpopuler {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.detik-title-section {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary, #0d9488);
    border-bottom: 2px solid var(--primary, #0d9488);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.pop-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.pop-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pop-number {
    font-size: 36px;
    font-weight: 900;
    color: #e5e5e5;
    line-height: 1;
}

.pop-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
}

.pop-title a {
    color: #333;
}

.pop-title a:hover {
    color: var(--navy, #0f172a);
}

/* Article Detail */
.detik-article {
    background: #fff;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--navy, #0f172a);
    font-weight: bold;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #222;
    margin-bottom: 15px;
}

.article-author {
    font-size: 14px;
    color: #555;
}

.article-author strong {
    color: #333;
}

.article-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 4px;
}

.article-caption {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-bottom: 25px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.baca-juga {
    background: #f8f8f8;
    border-left: 4px solid var(--primary, #0d9488);
    padding: 15px;
    margin: 20px 0;
}

.baca-juga strong {
    color: var(--primary, #0d9488);
    display: block;
    margin-bottom: 5px;
}

.baca-juga a {
    font-weight: bold;
    color: var(--navy, #0f172a);
    font-size: 18px;
}

.baca-juga a:hover {
    color: var(--primary, #0d9488);
}

@media (max-width: 768px) {
    .detik-layout {
        flex-direction: column;
    }

    .detik-main,
    .detik-sidebar {
        width: 100%;
    }

    .detik-feed-item {
        flex-direction: column;
    }

    .detik-feed-img {
        background: #e2e8f0;
        min-height: 146px;
        width: 100%;
        height: auto;
    }

    .article-title {
        font-size: 26px;
    }
}


/* Search Form di Subnav */
.detik-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    height: 32px;
}

.detik-search input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 13px;
    width: 150px;
}

.detik-search button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy, #0f172a);
    font-weight: bold;
}

/* Responsive Fixes for SOTK and Admin Grid */
@media (max-width: 850px) {
    .split-section .slider-container {
        justify-content: flex-start !important;
    }
}

@media (max-width: 480px) {
    .admin-grid {
        grid-template-columns: 1fr !important;
    }

    .split-section .slider-item {
        flex: 0 0 160px !important;
    }
}


/* APB Dashboard Responsive Fixes */
@media (max-width: 768px) {
    .apb-silpa-box {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .apb-silpa-item {
        width: 100%;
    }

    .silpa-highlight {
        text-align: left !important;
        border-left: none !important;
        border-top: 1px solid var(--border) !important;
        padding-left: 0 !important;
        padding-top: 15px !important;
        width: 100% !important;
        margin-top: 5px;
    }
}

/* Hero Slider Mobile Update (Left Aligned like Tamang) */
@media (max-width: 768px) {
    .hero-content {
        text-align: left !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
        top: 0;
        bottom: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 60px !important;
        /* Space for navbar */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
        text-transform: uppercase;
        margin-bottom: 8px !important;
        text-shadow: none !important;
        line-height: 1.2 !important;
    }

    .hero-content .hero-subtitle {
        margin-left: 0 !important;
        margin-right: 0 !important;
        font-size: 0.85rem !important;
        text-shadow: none !important;
        color: rgba(255, 255, 255, 0.95) !important;
        line-height: 1.4;
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
    }

    .hero-content .hero-location {
        justify-content: flex-start !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 10px;
        color: var(--primary) !important;
        font-weight: 700 !important;
        font-size: 0.85rem !important;
    }

    .hero-content .hero-location span {
        display: none;
    }

    .hero-indicators {
        display: none !important;
        /* Hide dots on mobile as requested */
    }
}

/* Reduce Hero Height Mobile */
@media (max-width: 768px) {
    .v2-hero-wrapper {
        min-height: 65vh !important;
    }
    .hero {
        height: 65vh !important;
        min-height: 65vh !important;
    }
}

/* Fix Mobile Navbar Theme */
@media (max-width: 768px) {
    .navbar {
        background: transparent;
    }

    .navbar.scrolled {
        background: rgba(15, 23, 42, 0.95) !important;
    }

    .navbar-brand-text h2,
    .navbar-brand-text span {
        color: #ffffff !important;
    }

    .navbar-toggle {
        z-index: 1005 !important;
        color: #ffffff !important;
        border: none !important;
        background: transparent !important;
        font-size: 1.5rem !important;
    }
}

.apb-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .apb-top-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Floating Action Buttons (FABs)
   ============================================ */
.fab-container {
    position: fixed;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fab-container.left {
    left: 25px;
}

.fab-container.right {
    right: 25px;
}

.fab-kunjungan {
    background: var(--v2-accent);
    /* Tema Oren */
    backdrop-filter: blur(5px);
    color: #000000;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fab-kunjungan-icon {
    font-size: 1.3rem;
}

.fab-kunjungan-text {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 600;
}

.fab-kunjungan-text strong {
    font-size: 0.9rem;
    font-weight: 800;
}

.fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fab-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.fab-accessibility {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #3b82f6;
    /* Tema Biru Cerah */
    font-size: 1.4rem;
    color: white;
}

.fab-accessibility:hover {
    background: #2563eb;
}

.fab-pengaduan {
    background: var(--v2-primary);
    /* Tema Biru */
    padding: 0 25px;
    height: 52px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    gap: 10px;
    letter-spacing: 0.5px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.fab-pengaduan:hover {
    filter: brightness(1.1);
}

.fab-pengaduan i {
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .fab-container {
        bottom: 15px;
        gap: 10px;
    }

    .fab-container.left {
        left: 15px;
    }

    .fab-container.right {
        right: 15px;
    }

    .fab-kunjungan {
        padding: 8px 15px;
    }

    .fab-kunjungan-text {
        font-size: 0.65rem;
    }

    .fab-kunjungan-text strong {
        font-size: 0.8rem;
    }

    .fab-accessibility {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .fab-pengaduan {
        height: 45px;
        padding: 0 20px;
        font-size: 0.95rem;
    }
}

/* ============================================
   Mobile Bottom Navigation (Floating)
   ============================================ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    /* Hide previous floating buttons on mobile to prevent overlap */
    .fab-container {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 15px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        /* Sleek shadow */
        border: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-around;
        align-items: center;
        padding: 12px 5px;
        z-index: 1000;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
    }

    .mobile-bottom-nav.hidden {
        transform: translate(-50%, 150%);
        /* slide down */
        opacity: 0;
        pointer-events: none;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #ffffff;
        text-decoration: none;
        font-size: 0.75rem;
        gap: 6px;
        transition: all 0.3s ease;
        flex: 1;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.35rem;
    }

    .mobile-bottom-nav .nav-item.active {
        color: var(--primary);
        font-weight: 700;
    }

    .mobile-bottom-nav .nav-item.active i {
        transform: scale(1.1);
    }
}

/* ============ ACCESSIBILITY MENU ============ */
.a11y-menu {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.a11y-menu.hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.a11y-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a11y-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

#a11y-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.a11y-body {
    padding: 10px;
}

.a11y-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.a11y-btn:hover {
    background: #f8fafc;
    color: var(--primary);
}

.a11y-btn:last-child {
    border-bottom: none;
}

.a11y-reset {
    color: #ef4444;
    font-weight: 600;
}

.a11y-reset:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ============ ACCESSIBILITY MODIFIERS ============ */
:root {
    --a11y-zoom: 1;
}

html {
    zoom: var(--a11y-zoom);
}

/* High Contrast Mode */
body.a11y-high-contrast {
    --bg: #000 !important;
    --bg-alt: #111 !important;
    --card-bg: #1a1a1a !important;
    --text: #fff !important;
    --text-secondary: #eee !important;
    --primary: #ffff00 !important;
    --primary-dark: #cc0 !important;
    --navy: #fff !important;
    --border: #555 !important;
}

body.a11y-high-contrast * {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    border-color: var(--text) !important;
}

body.a11y-high-contrast .navbar.scrolled {
    background-color: #000 !important;
}

body.a11y-high-contrast a,
body.a11y-high-contrast button {
    color: var(--primary) !important;
}

body.a11y-high-contrast .a11y-menu * {
    background-color: #000 !important;
}

/* Highlight Links Mode */
body.a11y-highlight-links a {
    background-color: yellow !important;
    color: black !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}



/* ============================================
   ADMIN DASHBOARD REDESIGN
   ============================================ */
body.admin-mode {
    background: #f4f6f9;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--navy);
    color: white;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 1000;
}

.admin-sidebar.collapsed {
    margin-left: -260px;
}

.sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-brand h2 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
}

.sidebar-menu {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active {
    color: white;
    background: var(--primary);
    border-left-color: var(--accent-light);
}

/* Main Content Area */
.admin-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.admin-topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    background: #f8fafc;
}

.user-profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-profile span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* Main Area */
.admin-main {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.admin-page-title {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    padding: 35px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '\f0e7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 40px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

.welcome-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.welcome-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.badge-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

/* Stat Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: var(--card-color, var(--primary));
    border-radius: 0 16px 16px 0;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--icon-bg, rgba(13, 148, 136, 0.1));
    color: var(--icon-color, var(--primary));
}

.stat-info h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-info h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin: 0;
    line-height: 1;
}

/* Tab Content Fixes for Admin Layout */
.admin-main .tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.admin-main .tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        height: 100vh;
        left: 0;
        top: 0;
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .welcome-banner {
        padding: 25px;
    }

    .welcome-banner h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Mobile Slide-in Sidebar Menu (Right)
   ============================================ */
@media (max-width: 768px) {
    .navbar-links {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start !important;
        gap: 0 !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        width: 75vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #ffffff !important;
        padding: 80px 24px 100px 24px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        transition: right 0.3s ease !important;
        z-index: 999 !important;
        box-shadow: none !important;
        margin: 0 !important;
        align-items: flex-start !important;
    }

    .navbar-links li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar-links.open {
        right: 0 !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1), 0 0 0 2000px rgba(0, 0, 0, 0.5) !important;
    }

    .navbar-links a {
        display: block !important;
        color: #1a1a1a !important;
        /* Black text */
        font-weight: 600 !important;
        font-size: 1.1rem !important;
        padding: 16px 20px !important;
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-align: left !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .navbar-links a:last-child {
        border-bottom: none !important;
    }

    .navbar-links a:hover {
        background: rgba(0, 0, 0, 0.03) !important;
    }

    .navbar-toggle {
        z-index: 1005 !important;
        position: relative;
    }

    .navbar-links.open+.navbar-toggle {
        color: #1a1a1a !important;
    }


    .navbar {
        z-index: 1001 !important;
    }
}

/* Administrasi Penduduk Grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Dropdown CSS for Navbar */
.navbar-links li.dropdown {
    position: relative;
}

.navbar-links li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
}

.navbar-links li.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-links li.dropdown .dropdown-menu li {
    display: block;
    margin: 0;
}

.navbar-links li.dropdown .dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: white;
    font-weight: 400;
    font-size: 14px;
}

.navbar-links li.dropdown .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

@media (max-width: 768px) {
    .navbar-links li.dropdown .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .navbar-links li.dropdown:hover .dropdown-menu {
        display: block;
    }

    .navbar-links li.dropdown>a i {
        float: right;
        margin-top: 5px;
    }
}


/* ============================================
   V2 THEME ENGINE (NEW REDESIGN 2026)
   ============================================ */
:root {
    /* V2 Color Scheme */
    --v2-primary: #1e3a8a;
    /* Deep Royal Blue */
    --v2-primary-light: #3b82f6;
    --v2-accent: #f59e0b;
    /* Elegant Gold/Amber */
    --v2-dark: #111827;
    --v2-dark-card: #1f2937;
    --v2-light: #f3f4f6;

    /* V2 Glassmorphism */
    --v2-glass-bg: rgba(255, 255, 255, 0.75);
    --v2-glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --v2-glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --v2-glass-blur: blur(12px);

    /* V2 Dark Glass */
    --v2-dark-glass-bg: rgba(17, 24, 39, 0.85);
    --v2-dark-glass-border: 1px solid rgba(255, 255, 255, 0.1);

    /* Shadows & Border Radius */
    --v2-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --v2-shadow-hover: 0 20px 40px -10px rgba(30, 58, 138, 0.2);
    --v2-radius-lg: 24px;
    --v2-radius-xl: 32px;
}

/* V2 OVERLAPPING HERO */
.v2-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background-color: var(--v2-dark);
}

.v2-hero-wrapper .container {
    display: flex;
    align-items: stretch;
}

.v2-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out;
    opacity: 1;
}

.v2-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.v2-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
    background: transparent;
    margin: 60px auto 0;
    /* Pushed much higher */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.v2-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    margin-bottom: 20px;
}

.v2-hero-content p {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
}

.v2-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--v2-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
}

.v2-btn:hover {
    background: var(--v2-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--v2-shadow-hover);
    color: #fff;
}

.v2-hero-curve {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 20;
}

.v2-hero-curve svg {
    display: block;
    width: 100%;
    height: auto;
}

/* V2 FLOATING QUICK LINKS */
.v2-quick-links {
    position: relative;
    z-index: 30;
    margin-top: -80px;
    margin-bottom: 60px;
}

.v2-ql-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.v2-ql-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: var(--v2-radius-lg);
    text-align: center;
    box-shadow: var(--v2-shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v2-ql-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--v2-shadow-hover);
}

.v2-ql-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--v2-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.v2-ql-card:hover .v2-ql-icon {
    background: var(--v2-primary-light);
    color: #fff;
}

.v2-ql-text {
    font-weight: 600;
    color: var(--v2-dark);
    font-size: 0.95rem;
}

/* V2 ASYMMETRIC ABOUT */
.v2-about {
    padding: 80px 0;
    background: var(--v2-light);
}

.v2-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.v2-kades-frame {
    position: relative;
    border-radius: var(--v2-radius-xl);
    overflow: hidden;
    box-shadow: var(--v2-shadow-soft);
}

.v2-kades-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.v2-kades-quote {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--v2-glass-bg);
    backdrop-filter: var(--v2-glass-blur);
    padding: 20px 20px 20px 50px;
    border-radius: var(--v2-radius-lg);
    box-shadow: var(--v2-glass-shadow);
    border: var(--v2-glass-border);
    max-width: 80%;
}

.v2-kades-quote i {
    color: var(--v2-accent);
    font-size: 2rem;
    margin-bottom: 10px;
}

.v2-about-text h2 {
    font-size: 2.5rem;
    color: var(--v2-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.v2-about-text h2 span {
    color: var(--v2-primary-light);
}

.v2-aparatur-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.v2-ap-card {
    min-width: 160px;
    background: #fff;
    border-radius: var(--v2-radius-lg);
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--v2-shadow-soft);
}

.v2-ap-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--v2-primary-light);
}

.v2-ap-card h4 {
    font-size: 1rem;
    color: var(--v2-dark);
    margin-bottom: 5px;
}

.v2-ap-card p {
    font-size: 0.8rem;
    color: var(--v2-primary-light);
    font-weight: 600;
}

/* V2 DARK MODE DATA CENTER */
.v2-data-center {
    background: var(--v2-dark);
    padding: 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.v2-data-center::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.v2-data-header {
    text-align: center;
    margin-bottom: 60px;
}

.v2-data-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.v2-data-header h2 span {
    color: var(--v2-accent);
}

.v2-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.v2-stat-card {
    background: var(--v2-dark-glass-bg);
    border: var(--v2-dark-glass-border);
    border-radius: var(--v2-radius-lg);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.v2-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--v2-accent);
}

.v2-stat-icon {
    font-size: 2.5rem;
    color: var(--v2-accent);
    margin-bottom: 20px;
}

.v2-stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    font-family: monospace;
    color: #fff;
}

.v2-stat-label {
    color: #9ca3af;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* V2 EDITORIAL NEWS */
.v2-news {
    padding: 100px 0;
    background: #fff;
}

.v2-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.v2-news-card {
    position: relative;
    height: 400px;
    border-radius: var(--v2-radius-lg);
    overflow: hidden;
    box-shadow: var(--v2-shadow-soft);
    display: flex;
    align-items: flex-end;
}

.v2-news-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.v2-news-card:hover img {
    transform: scale(1.1);
}

.v2-news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 2;
}

.v2-news-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    color: #fff;
    width: 100%;
}

.v2-news-badge {
    background: var(--v2-primary-light);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.v2-news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.v2-news-content p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* V2 MASONRY POTENSI */
.v2-potensi {
    padding: 100px 0;
    background: var(--v2-light);
}

.v2-masonry {
    columns: 3 300px;
    column-gap: 30px;
}

.v2-masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
    background: #fff;
    border-radius: var(--v2-radius-lg);
    overflow: hidden;
    box-shadow: var(--v2-shadow-soft);
    transition: transform 0.3s ease;
}

.v2-masonry-item:hover {
    transform: translateY(-5px);
}

.v2-masonry-img {
    width: 100%;
    display: block;
}

.v2-masonry-content {
    padding: 25px;
}

.v2-masonry-content h3 {
    color: var(--v2-dark);
    margin-bottom: 10px;
}

.v2-masonry-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .v2-about-grid {
        grid-template-columns: 1fr;
    }

    .v2-kades-quote {
        left: 20px;
        bottom: 20px;
    }

    .v2-hero-content {
        margin: 40px auto 0;
        text-align: center;
    }

    /* Pushed higher */
    .v2-hero-content h1 {
        font-size: 2.2rem;
    }
}

/* V2 MOBILE QUICK LINKS ADJUSTMENTS */
@media (max-width: 768px) {
    .v2-quick-links {
        margin-top: -40px !important;
        position: relative !important;
        z-index: 30 !important;
        /* Pull up so it overlaps with slider on mobile exactly like desktop */
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .v2-ql-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .v2-ql-card {
        padding: 12px 5px;
        border-radius: 16px;
    }

    .v2-ql-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .v2-ql-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

@media (max-width: 400px) {
    .v2-ql-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .v2-ql-card {
        padding: 10px 2px;
        border-radius: 12px;
    }

    .v2-ql-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .v2-ql-text {
        font-size: 0.7rem;
    }
}

/* Hide extra quick links on desktop (show only first 6) */
@media (min-width: 769px) {
    .v2-ql-card:nth-child(n+7) {
        display: none !important;
    }
}

/* =========================================
   V2 GLOBAL MOBILE UI/UX RESPONSIVE (All Components)
   ========================================= */
@media (max-width: 768px) {

    /* Hero Section */
    .v2-hero-content {
        margin-top: 25px !important;
        /* Pushed higher on mobile */
        padding: 15px !important;
        border-radius: 0 !important;
        background: transparent !important;
        text-align: center !important;
    }

    .v2-hero-content h1 {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
    }

    .v2-hero-content p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }

    /* Quick Links Mobile (Show all 12) */
    .v2-ql-card:nth-child(n+7) {
        display: flex !important;
    }

    /* About Section */
    .v2-about {
        padding: 40px 0 !important;
    }

    .v2-about-grid {
        gap: 30px !important;
    }

    .v2-kades-frame {
        max-width: 100%;
        /* Lebarkan dari kiri ke kanan */
        margin: 0 auto;
        margin-bottom: 40px !important;
        /* Extra space to prevent overlap */
    }

    .v2-kades-img {
        height: auto !important;
        aspect-ratio: 1 / 1;
        /* Tetap kotak sempurna */
    }

    .v2-kades-quote {
        left: 0 !important;
        bottom: 0 !important;
        width: 75% !important;
        /* Less wide, matching the screenshot */
        padding: 15px !important;
        border-radius: 0 16px 16px 0 !important;
        /* Top-right and bottom-right rounded */
        border: none !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .v2-kades-quote p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }

    .v2-kades-quote span {
        font-size: 0.75rem !important;
    }

    .v2-kades-quote i {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }

    .v2-about-text h2 {
        font-size: 1.8rem !important;
    }

    .v2-about-text p {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }

    .v2-aparatur-carousel {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
    }

    .v2-ap-card {
        min-width: 130px;
        scroll-snap-align: start;
        padding: 15px 10px;
    }

    .v2-ap-card img {
        width: 65px;
        height: 65px;
    }

    /* Data Center */
    .v2-data-center {
        padding: 40px 0 !important;
    }

    .v2-data-header {
        margin-bottom: 30px !important;
    }

    .v2-data-header h2 {
        font-size: 1.8rem !important;
    }

    .v2-data-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .v2-stat-card {
        padding: 20px 10px !important;
    }

    .v2-stat-icon {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
    }

    .v2-stat-num {
        font-size: 1.6rem !important;
    }

    .v2-stat-label {
        font-size: 0.75rem !important;
        letter-spacing: 0.5px !important;
    }

    /* APBDes */
    #v2-apbdes-section {
        padding: 40px 0 !important;
    }

    #v2-apbdes-section h2 {
        font-size: 1.8rem !important;
    }

    #v2-apbdes-section>.container>div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    #v2-apbdes-section>.container>div:nth-child(2)>div {
        padding: 25px 20px !important;
    }

    #v2-apbdes-section>.container>div:nth-child(2)>div>div:last-child {
        font-size: 1.7rem !important;
        /* APBDes large money numbers */
    }

    /* Wide APBDes Card */
    #v2-apbdes-section>.container>div:nth-child(3) {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 25px 20px !important;
    }

    #v2-apbdes-section>.container>div:nth-child(3)>div {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 15px;
    }

    #v2-apbdes-section>.container>div:nth-child(3)>div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    #v2-apbdes-section>.container>div:nth-child(3)>div>div {
        font-size: 1.4rem !important;
        /* Smaller money numbers */
    }

    /* Kabar Desa */
    .v2-news {
        padding: 50px 0 !important;
    }

    .v2-news h2 {
        font-size: 1.8rem !important;
    }

    .v2-news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Potensi */
    .v2-potensi {
        padding: 50px 0 !important;
    }

    .v2-potensi h2 {
        font-size: 1.8rem !important;
    }

    .v2-masonry {
        columns: 1 !important;
        column-gap: 0 !important;
    }

    .v2-masonry-item {
        margin-bottom: 25px !important;
    }

    /* Galeri */
    #galeri-v2 {
        padding: 50px 0 0 0 !important;
    }

    #galeri-v2 h2 {
        font-size: 1.8rem !important;
    }

    #galeri-v2>.container>div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    #galeri-v2 .animate-in {
        height: 220px !important;
        /* Shorter images for mobile */
    }

    /* Map Section */
    #v2-map-section {
        height: auto !important;
        margin-top: 30px !important;
    }

    #v2-map-section>.container>div {
        max-width: 90% !important;
        padding: 15px !important;
        margin: 0 auto;
        align-self: flex-end;
        margin-bottom: 100px !important;
        /* Increased to clear the floating bottom nav */
        border-radius: 12px !important;
    }

    #v2-map-section h2 {
        font-size: 1.3rem !important;
        margin-bottom: 5px !important;
    }

    #v2-map-section p {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }

    #v2-map-section .v2-btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
    }

    #v2-map-section h4 {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }

    #v2-map-section .container>div>div>div>div>div:first-child {
        font-size: 1.2rem !important;
    }

    #v2-map-section .container>div>div>div>div>div:last-child {
        font-size: 0.7rem !important;
    }

    /* Footer adjustments to fit mobile nav */
    .footer {
        padding-bottom: 120px !important;
        /* Increased to give plenty of space for bottom nav */
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand div {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}