/* ============================================
   ROOT VARIABLES - SESUAI HEADER
============================================ */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #5eead4;
    --secondary: #06b6d4;
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    --border-radius: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1280px; /* SAMA DENGAN HEADER */
}

/* ============================================
   HERO - FULL SCREEN
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 220px;
    overflow: hidden;
    background: #0f172a;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-wrapper img,
.hero-bg-wrapper video,
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 23, 42, 0.4) 0%,
        rgba(15, 23, 42, 0.65) 60%,
        rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.hero-logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.hero-content h1 {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.hero-title-wrapper .letter {
    display: inline-block;
    color: white;
    
    opacity: 0;
    transform: scale(0.3) translateY(30px);
    animation: letterPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes letterPop {
    0%   { opacity: 0; transform: scale(0.3) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-sub {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

.hero-slogan {
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    color: #5eead4;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 32px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

/* ============================================
   HERO BUTTONS
============================================ */
.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-buttons .btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-secondary:hover {
    transform: translateY(-3px);
}

/* ============================================
   HERO QUICK MENU
============================================ */
.hero-quick-menu {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 20px 0 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-quick-menu .container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================
   CONTAINER - SAMA DENGAN HEADER
============================================ */
.hero .container,
.sambutan-stats .container,
.sekilas-info .container,
.galeri .container,
.berita .container,
.aparatur .container,
.keuangan-desa .container,
.layanan-mandiri-modern .container,
.sekilas-lengkap .container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SECTION HEADER
============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ============================================
   GLASS EFFECT
============================================ */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

/* ============================================
   SAMBUTAN & STATISTIK
============================================ */
.sambutan-stats {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.sambutan-stats-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.sambutan-card { padding: 32px; }
.sambutan-header { margin-bottom: 20px; }

.sambutan-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 4px;
}

.sambutan-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.kades-photo {
    flex-shrink: 0;
    width: 140px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid white;
}

.kades-photo img { width: 100%; height: 100%; object-fit: cover; }
.sambutan-text { flex: 1; }

.sambutan-text .quote {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    margin-bottom: 16px;
}

.sambutan-text .quote i {
    color: var(--primary-light);
    font-size: 1.2rem;
    opacity: 0.5;
}

.kades-name {
    font-size: 0.9rem;
    color: var(--text);
    text-align: right;
}

.kades-name strong { color: var(--primary); font-weight: 800; }

.statistik-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.statistik-header { margin-bottom: 24px; }

.statistik-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 4px;
}

.statistik-sub {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

.statistik-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.statistik-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.statistik-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.statistik-info { display: flex; flex-direction: column; }

.statistik-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    font-family: 'Courier New', monospace;
    line-height: 1.1;
}

.statistik-number.total {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
}

.statistik-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.statistik-divider { height: 1px; background: rgba(0, 0, 0, 0.06); }

.statistik-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* ============================================
   SEKILAS INFO WRAPPER
============================================ */
.sekilas-info {
    padding: 24px 0;
    background: var(--bg);
}

.sekilas-wrapper { max-width: 100%; }

.sekilas-card {
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sekilas-body {
    display: flex;
    align-items: stretch;
}

/* Label biru + marquee pink */
.sekilas-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    min-height: 50px;
}

.sekilas-label i { color: white; font-size: 1.2rem; }
.sekilas-label span {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.sekilas-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    background: rgb(239, 2, 96);
    padding: 0 10px;
}

.sekilas-track {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    font-size: 0.95rem;
    color: white;
    padding: 0 20px;
    font-weight: 500;
}

.sekilas-marquee:hover .sekilas-track { animation-play-state: paused; }

.sekilas-link {
    color: #fef08a;
    font-weight: 700;
    text-decoration: none;
    margin-left: 8px;
}

.sekilas-link:hover { text-decoration: underline; }

@keyframes marqueeScroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   GALERI
============================================ */
.galeri { padding: 80px 0; background: white; }

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.galeri-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.galeri-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeri-item:hover img { transform: scale(1.08); }

.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.galeri-item:hover .galeri-overlay { opacity: 1; }

.galeri-overlay span {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.galeri-overlay i { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }

.btn-lihat-semua {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 50px;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-lihat-semua:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.4);
}

/* ============================================
   BERITA
============================================ */
.berita { padding: 80px 0; background: var(--bg); }

.berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.berita-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: var(--shadow-sm);
}

.berita-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.berita-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.berita-card:hover .berita-image img { transform: scale(1.05); }

.berita-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.berita-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.berita-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.berita-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.berita-body a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
}

.berita-body a:hover {
    color: var(--primary-dark);
    padding-left: 4px;
}

/* ============================================
   SEKILAS LENGKAP (Jadwal, Lokasi, Jam Kerja)
============================================ */
.sekilas-lengkap { padding: 80px 0; background: white; }

.sekilas-lengkap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sekilas-card-jadwal,
.sekilas-card-lokasi,
.sekilas-card-jam {
    padding: 24px;
    transition: all 0.3s ease;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sekilas-card-jadwal:hover,
.sekilas-card-lokasi:hover,
.sekilas-card-jam:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.sekilas-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(13, 148, 136, 0.1);
    margin-bottom: 16px;
}

.sekilas-card-header i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sekilas-card-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.sekilas-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jadwal-date,
.jadwal-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 6px 0;
}

.jadwal-date i,
.jadwal-location i { color: var(--primary); font-size: 0.85rem; }

.jadwal-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.jadwal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.jadwal-item:hover { background: rgba(13, 148, 136, 0.06); }

.jadwal-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.jadwal-time {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.lokasi-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text);
    padding: 6px 0;
    line-height: 1.5;
}

.lokasi-item i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.btn-lokasi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-top: 10px;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-lokasi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
}

.jam-table { display: flex; flex-direction: column; gap: 4px; }

.jam-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 8px 12px;
    background: var(--gradient);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.jam-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.jam-row:hover { background: rgba(13, 148, 136, 0.06); }
.jam-row span:first-child { font-weight: 600; color: var(--dark); }
.jam-row span:not(:first-child) {
    font-family: 'Courier New', monospace;
    text-align: center;
    color: var(--text-light);
}
.jam-row.weekend { background: rgba(239, 68, 68, 0.06); }
.jam-row.weekend span { color: #ef4444; font-weight: 600; }

/* ============================================
   APARATUR
============================================ */
.aparatur {
    padding: 80px 0;
    background: var(--bg);
}

.aparatur-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 40px;
}

.aparatur-kades {
    position: sticky;
    top: 100px;
}

.aparatur-card {
    text-align: center;
    padding: 24px 20px;
    background: yellow;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.aparatur-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.aparatur-card.premium {
    background: var(--gradient);
    color: white;
}

.aparatur-card.premium h4,
.aparatur-card.premium p { color: white; }

.aparatur-card .avatar-frame {
    width: 150px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    background: #f1f5f9;
}

.aparatur-card .avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aparatur-card .status-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 14px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
}

.aparatur-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: black;
    margin-bottom: 2px;
}

.aparatur-card p {
    font-size: 0.8rem;
    color: red;
    margin: 0;
}

/* Slider Aparatur */
.aparatur-slider {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.aparatur-slider::before,
.aparatur-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 200%;
    z-index: 2;
    pointer-events: none;
}

.aparatur-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.aparatur-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.aparatur-slider-track {
    display: flex;
    gap: 24px;
    animation: slideAparatur 25s linear infinite;
    width: max-content;
}

.aparatur-slider-track .aparatur-card {
    width: 180px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.aparatur-slider-track .aparatur-card .avatar-frame {
    width: 150px;
    height: 200px;
    border: 3px solid var(--primary-light);
}

.aparatur-slider-track .aparatur-card h4 { font-size: 0.85rem; }
.aparatur-slider-track .aparatur-card p  { font-size: 0.7rem; }

.aparatur-slider:hover .aparatur-slider-track {
    animation-play-state: paused;
}

@keyframes slideAparatur {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   KEUANGAN DESA / APBDES
============================================ */
.keuangan-desa {
    padding: 80px 0;
    background: white;
}

.keuangan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.keuangan-card {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.keuangan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.keuangan-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 3px solid #e2e8f0;
    margin-bottom: 14px;
}

.keuangan-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.keuangan-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.keuangan-header .total-uang {
    font-size: 1rem;
    font-weight: 800;
}

.keuangan-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.keuangan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
}

.keuangan-item .label {
    color: var(--text);
    flex: 1;
    text-align: left;
}

.keuangan-item .value {
    font-weight: 600;
    color: var(--dark);
    font-family: 'Courier New', monospace;
    text-align: right;
    white-space: nowrap;
    min-width: 120px;
}

/* Ringkasan */
.keuangan-ringkasan {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.ringkasan-item {
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    background: #f8fafc;
}

.ringkasan-item .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
}

.ringkasan-item .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
}

.ringkasan-item.surplus {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.ringkasan-item.defisit {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

/* ============================================
   LAYANAN MANDIRI MODERN
============================================ */
.layanan-mandiri-modern {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.layanan-mandiri-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.layanan-mandiri-image {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-container::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseBg 4s ease-in-out infinite;
}

.image-container img {
    width: 75%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: waveFloat 3.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(13, 148, 136, 0.12));
}

.image-container::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 20%;
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: shadowPulse 3.5s ease-in-out infinite;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.7) 0%, rgba(6, 182, 212, 0.5) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.image-container:hover .image-overlay { opacity: 1; }

.image-overlay i {
    font-size: 4rem;
    margin-bottom: 12px;
    animation: pulseIcon 2s ease-in-out infinite;
}

.image-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
}

@keyframes pulseBg {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.5; }
    50%      { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

@keyframes waveFloat {
    0%   { transform: translateY(0px) rotate(-1.5deg); }
    25%  { transform: translateY(-8px) rotate(2deg); }
    50%  { transform: translateY(0px) rotate(-0.5deg); }
    75%  { transform: translateY(-8px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-1.5deg); }
}

@keyframes shadowPulse {
    0%   { transform: scale(1);   opacity: 0.4; }
    50%  { transform: scale(0.7); opacity: 0.15; }
    100% { transform: scale(1);   opacity: 0.4; }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1);    opacity: 0.9; }
    50%      { transform: scale(1.08); opacity: 1; }
}

/* Image Footer */
.image-footer {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1px solid rgba(13, 148, 136, 0.1);
    width: 100%;
}

.image-footer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-text { flex: 1; min-width: 150px; }

.footer-text p {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

.footer-avatar {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-avatar img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: waveHand 2s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes waveHand {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-10deg); }
    75%      { transform: rotate(10deg); }
}

.footer-avatar .avatar-speech {
    position: absolute;
    top: -20px;
    right: -35px;
    background: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    white-space: nowrap;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.image-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.image-features .feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    background: white;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.image-features .feature-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Form */
.layanan-mandiri-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
}

.form-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover { color: var(--dark); }

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tab-header { margin-bottom: 20px; }

.tab-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.tab-header h3 i { color: var(--primary); margin-right: 8px; }

.tab-header p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.form-layanan .form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-layanan .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 4px;
}

.form-layanan .form-group label .required { color: #ef4444; }

.form-layanan .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-layanan .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.08);
}

.form-layanan .form-group .help-text {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
}

.btn-login, .btn-daftar {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25);
}

.btn-login:hover, .btn-daftar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.35);
}

.form-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-footer a { color: var(--primary); font-weight: 600; }

/* Panduan */
.panduan-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panduan-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: var(--transition);
}

.panduan-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.panduan-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.panduan-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 2px;
}

.panduan-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.panduan-cta {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.panduan-cta .btn-panduan,
.panduan-cta .btn-panduan-secondary {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.panduan-cta .btn-panduan {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.panduan-cta .btn-panduan-secondary {
    background: #f1f5f9;
    color: var(--text);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
    .quick-menu-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 992px) {
    .sambutan-stats-wrapper { grid-template-columns: 1fr; }
    .galeri-grid { grid-template-columns: repeat(2, 1fr); }
    .berita-grid { grid-template-columns: repeat(2, 1fr); }
    .sekilas-lengkap-grid { grid-template-columns: 1fr 1fr; }
    .keuangan-grid { grid-template-columns: 1fr 1fr; }
    .keuangan-ringkasan { grid-template-columns: repeat(2, 1fr); }
    .layanan-mandiri-wrapper { grid-template-columns: 1fr; }
    .layanan-mandiri-image { position: static; }
    .aparatur-wrapper { grid-template-columns: 1fr; }
    .aparatur-kades { position: static; display: flex; justify-content: center; }
    .aparatur-kades .aparatur-card { max-width: 280px; width: 100%; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 16px 240px; }
    .hero-logo img { height: 70px; }

    .quick-menu-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .quick-card { padding: 8px 4px; font-size: 0.6rem; }
    .quick-icon { width: 32px; height: 32px; font-size: 0.85rem; }

    .sambutan-stats { padding: 50px 0; }
    .sambutan-card, .statistik-card { padding: 24px 20px; }
    .sambutan-body { flex-direction: column; align-items: center; text-align: center; }
    .kades-photo { width: 120px; height: 150px; }
    .kades-name { text-align: center; }

    .galeri, .berita, .sekilas-lengkap,
    .aparatur, .keuangan-desa, .layanan-mandiri-modern {
        padding: 50px 0;
    }

    .galeri-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .berita-grid { grid-template-columns: 1fr; }
    .sekilas-lengkap-grid { grid-template-columns: 1fr; }
    .keuangan-grid { grid-template-columns: 1fr; }
    .keuangan-ringkasan { grid-template-columns: 1fr 1fr; padding: 16px; }
    .layanan-mandiri-form { padding: 20px; }
    .form-tabs { flex-wrap: wrap; }
    .tab-btn { flex: 1; min-width: 80px; font-size: 0.75rem; }
    .tab-btn span { display: none; }
    .panduan-cta { flex-direction: column; }

    .image-container { padding: 30px; max-height: 280px; }
    .image-container img { width: 65%; max-width: 200px; }

    .aparatur-slider::before,
    .aparatur-slider::after { width: 30px; }
    .aparatur-slider-track .aparatur-card { width: 150px; }
    .aparatur-slider-track .aparatur-card .avatar-frame { width: 100px; height: 130px; }
}

@media (max-width: 480px) {
    .hero { padding: 40px 16px 260px; }
    .hero-logo img { height: 60px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; }

    .quick-menu-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .quick-card { padding: 6px 3px; font-size: 0.55rem; }
    .quick-icon { width: 28px; height: 28px; font-size: 0.8rem; }

    .galeri-grid { grid-template-columns: 1fr; }
    .keuangan-ringkasan { grid-template-columns: 1fr; }

    .sekilas-label { padding: 8px 14px; }
    .sekilas-label span { font-size: 0.8rem; }
    .sekilas-marquee { height: 42px; }
    .sekilas-track { font-size: 0.8rem; }

    .sambutan-card, .statistik-card,
    .sekilas-card-jadwal, .sekilas-card-lokasi, .sekilas-card-jam {
        padding: 20px 16px;
    }
    .statistik-number { font-size: 1.2rem; }
    .statistik-number.total { font-size: 1.4rem; }
    
    }
    /* ============================================
   LOGO HERO - BERPUTAR POROS Y
============================================ */
.hero-logo {
    margin-bottom: 24px;
    display: inline-block;
    perspective: 1000px; /* biar rotasi 3D kelihatan */
}

.hero-logo img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    
    /* ✅ ANIMASI PUTAR POROS Y */
    animation: logoSpinY 6s linear infinite;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

/* Hover - pause */
.hero-logo:hover img {
    animation-play-state: paused;
}

/* ✅ KEYFRAMES PUTAR POROS Y */
@keyframes logoSpinY {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}


/* ============================================
   TEKS RUNNING - TANPA BACKGROUND
============================================ */
.hero-running-text {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    
    /* ✅ TANPA BACKGROUND SAMA SEKALI */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* Gradient fade kiri & kanan - tetap ada biar halus */
.hero-running-text::before,
.hero-running-text::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}



/* Track teks berjalan */
.hero-running-track {
    display: inline-flex;
    gap: 60px;
    white-space: nowrap;
    animation: runningText 20s linear infinite;
    will-change: transform;
}

/* ✅ HURUF LEBIH BESAR */
.hero-running-track span {
    font-size: 35px;
    text-shadow: 4px 4px 4px #aaa;
    font-family: 'Tangerine', serif;
    font-weight: 600;
    letter-spacing: 6px;
    color: #ffffff;
    text-transform: uppercase;
    
    /* Efek glow tosca + shadow biar elegan */
    text-shadow: 
        0 0 15px rgba(94, 234, 212, 0.8),
        0 0 30px rgba(94, 234, 212, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Hover - pause */
.hero-running-text:hover .hero-running-track {
    animation-play-state: paused;
}

@keyframes runningText {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}


/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .hero-logo img {
        height: 70px;
        animation-duration: 5s;
    }
    
    .hero-running-text {
        max-width: 90%;
        padding: 6px 0;
    }
    
    .hero-running-track {
        gap: 30px;
        animation-duration: 14s;
    }
    
    .hero-running-track span {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
    
    .hero-running-text::before,
    .hero-running-text::after {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .hero-logo img {
        height: 60px;
        animation-duration: 4s;
    }
    
    .hero-running-text {
        max-width: 95%;
        padding: 5px 0;
    }
    
    .hero-running-track {
        gap: 20px;
        animation-duration: 12s;
    }
    
    .hero-running-track span {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }
    
    .hero-running-text::before,
    .hero-running-text::after {
        width: 30px;
    }
}