/* =========================================
1. VARIABLE & RESET
=========================================
*/
:root {
    --primary: #059669;        /* Hijau Emerald Elegan */
    --primary-dark: #047857;   
    --slate-dark: #1e293b;     /* Biru Abu-abu Gelap (Slate) */
    --slate-light: #f8fafc;    /* Background Abu-abu sangat muda */
    --text-main: #334155;      /* Warna teks utama */
    --text-gray: #64748b;      /* Warna teks keterangan */
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--slate-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
2. HEADER & TOP BAR
=========================================
*/
.top-bar {
    background: var(--slate-dark);
    color: #cbd5e1;
    padding: 10px 0;
    font-size: 13px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-info i { color: var(--primary); }

.separator { opacity: 0.2; margin-right: 20px; }

.top-social a {
    color: #94a3b8;
    margin-left: 15px;
    transition: var(--transition);
}

.top-social a:hover { color: var(--white); }

/* =========================================
3. NAVIGATION BAR (MODERN GLASS)
=========================================
*/
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img { height: 50px; }

.logo-text { display: flex; flex-direction: column; }

.village-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.region-name {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 600;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14.5px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(5, 150, 105, 0.08);
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    list-style: none;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    border-radius: 6px;
}

.dropdown li a:hover {
    background: var(--slate-light);
    color: var(--primary);
}

/* Mobile Toggler */
.nav-toggler {
    display: none;
    cursor: pointer;
}

.btn-mandiri {
    background: var(--primary);
    color: white !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

/* =========================================
4. HERO SECTION
=========================================
*/
.hero {
    position: relative;
    height: 550px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), 
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content { z-index: 2; padding: 0 20px; }

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-purple {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-purple:hover { background: var(--primary); border-color: var(--primary); }

.hero-logo { width: 100px; margin-bottom: 20px; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); }

.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; }

.hero .subtitle { font-size: 1.2rem; opacity: 0.9; letter-spacing: 2px; }

/* =========================================
5. QUICK LINKS (ICON GRID)
=========================================
*/
.quick-links { margin-top: -60px; position: relative; z-index: 10; }

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.icon-box i {
    font-size: 28px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--slate-light);
}

.icon-box span { font-size: 12px; font-weight: 700; color: var(--slate-dark); text-align: center; }

.icon-box:hover { transform: translateY(-8px); }
.icon-box:hover i { background: var(--primary); color: white !important; }

/* Warna Ikon */
.text-yellow { color: #f59e0b; }
.text-brown { color: #92400e; }
.text-blue { color: #3b82f6; }
.text-green { color: #10b981; }
.text-orange { color: #f97316; }
.text-red { color: #ef4444; }

/* =========================================
6. WAVE & WELCOME SECTION
=========================================
*/
.wave-container { margin-top: 50px; line-height: 0; }
.wave-container svg { fill: var(--primary); }

.welcome-section { background: var(--primary); color: white; padding-bottom: 80px; }

.flex-row { display: flex; gap: 30px; align-items: stretch; }

.sambutan-card {
    flex: 1.5;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.kades-img {
    width: 120px; height: 120px; border-radius: 20px;
    object-fit: cover; border: 5px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.sambutan-text h3 { font-size: 28px; margin-bottom: 15px; }
.sambutan-text p { opacity: 0.9; margin-bottom: 15px; font-size: 15px; line-height: 1.8; }
.signature { font-weight: 700; margin-top: 20px; color: #ecfdf5; }

/* Stats Card */
.stats-card {
    flex: 1; background: var(--white); color: var(--slate-dark);
    padding: 40px; border-radius: 25px; box-shadow: var(--shadow);
    text-align: center;
}

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }

.stat-item { background: var(--slate-light); padding: 20px; border-radius: 15px; }
.stat-item:last-child { grid-column: span 2; background: var(--primary); color: white; }

.stat-item i { font-size: 24px; color: var(--primary); margin-bottom: 10px; }
.stat-item:last-child i { color: white; }
.stat-item h2 { font-size: 32px; font-weight: 800; }

/* =========================================
7. MAP & WIDGETS SECTION
=========================================
*/
.map-section { padding: 80px 0; text-align: center; background: white; }
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 40px; }

.map-container {
    max-width: 1100px; margin: 0 auto; border-radius: 20px;
    overflow: hidden; border: 8px solid white; box-shadow: var(--shadow);
}

.widgets-section { padding: 80px 0; background: #1a8e5f; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.widget-box { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.widget-header { background: var(--slate-dark); color: white; padding: 15px 20px; font-weight: 600; }

.sholat-list { list-style: none; padding: 20px; }
.sholat-list li {
    display: flex; justify-content: space-between; padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.sholat-list li span:last-child { font-weight: 700; color: var(--primary); }

.table-hours { width: 100%; border-collapse: collapse; }
.table-hours td, .table-hours th { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.badge-red { background: #fee2e2; color: #ef4444; padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }

/* =========================================
8. STAFF & FOOTER
=========================================
*/
.staff-section { padding: 80px 0; background: var(--slate-light); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-top: 40px; }
.staff-card { background: white; padding: 30px; border-radius: 20px; text-align: center; box-shadow: var(--shadow); }
.staff-img img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 4px solid var(--slate-light); }

footer { background: #0f172a; color: #94a3b8; padding: 60px 0 30px; text-align: center; }
.social-icons i {
    font-size: 20px; margin: 0 10px; padding: 15px;
    background: rgba(255,255,255,0.05); border-radius: 50%; transition: var(--transition);
}
.social-icons i:hover { background: var(--primary); color: white; transform: translateY(-5px); }
.copyright { margin-top: 30px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; }

/* =========================================
9. RESPONSIVE
=========================================
*/
@media (max-width: 992px) {
    .flex-row { flex-direction: column; }
    .nav-menu { display: none; }
    .nav-toggler { display: block; }
    .hero h1 { font-size: 2.5rem; }
}