/* ==============================================
   PONDOK PESANTREN DARUL 'IZZI WADDA'WAH
   ✨ Premium Bright Design — Fresh Emerald & Gold
   ============================================== */

:root {
    --emerald: #10B981;
    --emerald-dark: #059669;
    --emerald-light: #34D399;
    --emerald-rgb: 16, 185, 129;
    --gold: #D97706;
    --gold-light: #F59E0B;
    --gold-warm: #FBBF24;
    --gold-rgb: 217, 119, 6;

    /* ☀️ BRIGHT LIGHT THEME */
    --bg-main: #F0FDF4;          /* Very soft mint green */
    --bg-section-alt: #ECFDF5;   /* Slightly different green tint for alternating sections */
    --bg-section-warm: #FFFBEB;  /* Warm cream for special sections */
    --bg-card: #FFFFFF;
    --bg-card-solid: #FFFFFF;
    --bg-glass: rgba(16, 185, 129, 0.04);
    --bg-glass-hover: rgba(16, 185, 129, 0.08);
    --border-glass: rgba(16, 185, 129, 0.15);
    --border-glass-hover: rgba(16, 185, 129, 0.3);
    --border-light: rgba(0, 0, 0, 0.06);

    --text-main: #1F2937;
    --text-muted: #4B5563;
    --text-dim: #6B7280;
    --white: #FFFFFF;
    --dark: #111827;

    --gradient-primary: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-gold: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
    --gradient-hero: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 30%, #F0FDF4 100%);
    --gradient-card: linear-gradient(135deg, rgba(16,185,129,0.04) 0%, rgba(245,158,11,0.02) 100%);
    --gradient-section-1: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%);
    --gradient-section-2: linear-gradient(180deg, #ECFDF5 0%, #F0FDF4 100%);

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.07);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.1);
    --shadow-emerald-glow: 0 8px 30px rgba(16, 185, 129, 0.15);
    --shadow-gold-glow: 0 8px 30px rgba(217, 119, 6, 0.12);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-card-hover: 0 12px 40px rgba(16, 185, 129, 0.12);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.35s var(--ease);
}

/* ── 1. RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; outline: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6.5rem 0; position: relative; }
.hidden { display: none !important; }
.text-gradient { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #b45309 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-white { color: var(--white) !important; }
.text-green { color: #059669 !important; }
.text-primary { color: var(--emerald) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-muted); font-size: 0.88em; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.mt-3 { margin-top: 1rem; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.justify-center { justify-content: center !important; }

/* Decorative section divider */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--emerald-light), var(--gold-warm), var(--emerald-light), transparent);
    border-radius: 3px;
    opacity: 0.5;
}

/* ── 2. TOP BAR & NAVBAR ── */
.top-bar {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.55rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1001;
    position: relative;
    border-bottom: 2px solid var(--gold-warm);
}
.top-bar-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar-btn {
    background: var(--gold-warm);
    color: var(--dark);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    transition: var(--transition);
    letter-spacing: 0.02em;
}
.top-bar-btn:hover { background: var(--white); color: var(--emerald-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.navbar {
    position: fixed; top: 40px; left: 0; width: 100%; z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0.65rem 0;
    top: 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--emerald-dark); }
.logo-subtitle { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text-muted); text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
    font-weight: 600; font-size: 0.88rem; color: var(--text-muted);
    position: relative; padding: 0.25rem 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2.5px;
    background: var(--gradient-gold); border-radius: 2px;
    transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--emerald-dark); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn-nav {
    background: var(--gradient-primary); color: var(--white) !important;
    padding: 0.55rem 1.4rem; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.82rem;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--emerald-rgb), 0.25);
}
.btn-nav::after { display: none; }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(var(--emerald-rgb), 0.4); background: var(--gradient-gold); color: var(--dark) !important; }

.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.hamburger-line { width: 24px; height: 2px; background: var(--text-main); border-radius: 4px; transition: var(--transition); }
.nav-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}
.nav-dd-icon {
    font-size: 0.6rem;
    transition: transform 0.3s var(--ease);
}
.nav-dropdown:hover .nav-dd-icon {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--emerald-rgb), 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 100;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(var(--emerald-rgb), 0.1);
    border-right: none;
    border-bottom: none;
    rotate: 45deg;
    border-radius: 2px;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--emerald);
    font-size: 0.85rem;
}
.nav-dropdown-item:hover {
    background: rgba(var(--emerald-rgb), 0.08);
    color: var(--emerald-dark);
    padding-left: 1.2rem;
}

/* ── 3. HERO SECTION ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 10rem 0 6rem 0;
    background-image: var(--hero-bg-img), var(--gradient-hero);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15, 60, 35, 0.55) 0%, rgba(10, 50, 30, 0.50) 50%, rgba(15, 60, 35, 0.60) 100%);
    pointer-events: none;
}
.hero-glow {
    position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite alternate;
}
.hero-glow-1 { width: 500px; height: 500px; background: rgba(var(--emerald-rgb), 0.10); top: -10%; right: 10%; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(var(--gold-rgb), 0.06); bottom: 0; left: 5%; animation-delay: 3s; }

@keyframes glowPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.hero-container { position: relative; z-index: 10; width: 100%; }
.hero-centered { display: flex; justify-content: center; align-items: center; }
.hero-content { animation: fadeUp 0.8s var(--ease) both; width: 100%; max-width: 850px; }
.pill-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 1.15rem; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    background: rgba(var(--emerald-rgb), 0.08);
    color: var(--emerald-dark);
    border: 1px solid rgba(var(--emerald-rgb), 0.15);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}
.hero .pill-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
}
.hero .hero-title { font-size: 3.8rem; line-height: 1.2; margin-bottom: 1.5rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--gold) 60%, #f5d680 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.hero .hero-description { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; text-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.hero-actions { display: flex; gap: 1.25rem; margin-bottom: 2rem; flex-wrap: wrap; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 5; }
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ── 4. REUSABLE SECTIONS & BUTTONS ── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4.5rem auto; }
.section-title { font-size: 2.6rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; color: var(--dark); }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    font-weight: 700; font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: none; cursor: pointer;
    transition: var(--transition);
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(var(--emerald-rgb), 0.25);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--emerald-rgb), 0.35);
    background: var(--gradient-gold);
    color: var(--dark);
}
.btn-glow::after {
    content: ''; position: absolute; inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit; z-index: -1;
    filter: blur(12px); opacity: 0.3;
    transition: var(--transition);
}
.btn-glow:hover::after { opacity: 0.6; filter: blur(18px); background: var(--gradient-gold); }

.btn-glass {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-link {
    color: var(--emerald-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-link:hover { color: var(--gold); text-decoration: underline; }

/* ── 5. MENGAPA HARUS MONDOK (KEUNGGULAN) ── */
.keunggulan { background: var(--bg-main); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover {
    border-color: rgba(var(--emerald-rgb), 0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(var(--emerald-rgb), 0.1) 0%, rgba(var(--gold-rgb), 0.08) 100%);
    color: var(--emerald-dark);
    border-radius: var(--radius-md);
    display: grid; place-items: center;
    font-size: 1.3rem; margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--emerald-rgb), 0.12);
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--dark); }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── 6. DOKUMENTASI KEGIATAN (8 PHOTOS) ── */
.kegiatan {
    background: linear-gradient(180deg, var(--bg-main) 0%, #D1FAE5 50%, var(--bg-section-alt) 100%);
}
.kegiatan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 992px) { .kegiatan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .kegiatan-grid { grid-template-columns: 1fr; } }

.kegiatan-card {
    position: relative;
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.kegiatan-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.kegiatan-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,46,22,0.85) 0%, rgba(5,46,22,0.3) 50%, transparent 100%);
    padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end;
    opacity: 0.9; transition: var(--transition);
}
.kegiatan-card h3 { font-size: 1.15rem; color: var(--gold-warm); margin-bottom: 0.25rem; transform: translateY(10px); transition: var(--transition); }
.kegiatan-card p { font-size: 0.82rem; color: rgba(255,255,255,0.85); opacity: 0; transform: translateY(20px); transition: var(--transition); }

.kegiatan-card:hover { border-color: var(--emerald); box-shadow: var(--shadow-emerald-glow); transform: translateY(-4px); }
.kegiatan-card:hover img { transform: scale(1.1); }
.kegiatan-card:hover h3 { transform: translateY(0); }
.kegiatan-card:hover p { opacity: 1; transform: translateY(0); }

/* ── 7. RINCIAN BIAYA ── */
.biaya {
    background: var(--bg-section-warm);
}
.biaya-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .biaya-wrapper { grid-template-columns: 1fr; } }

.biaya-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.biaya-card:hover { border-color: rgba(var(--emerald-rgb), 0.2); box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.biaya-card.card-highlighted {
    border-color: var(--emerald);
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 50%, #A7F3D0 100%);
    box-shadow: var(--shadow-emerald-glow);
}
.card-badge {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: var(--gradient-gold); color: var(--dark);
    padding: 0.3rem 0.9rem; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(var(--gold-rgb), 0.25);
}
.biaya-card h3 { font-size: 1.4rem; margin-bottom: 1.75rem; display: flex; align-items: center; gap: 0.5rem; color: var(--emerald-dark); }
.biaya-table-wrapper { width: 100%; overflow-x: auto; }
.biaya-table { width: 100%; border-collapse: collapse; text-align: left; }
.biaya-table th { padding: 0.75rem 0; font-size: 0.85rem; text-transform: uppercase; border-bottom: 2px solid rgba(var(--emerald-rgb), 0.15); color: var(--text-muted); letter-spacing: 0.03em; }
.biaya-table td { padding: 0.85rem 0; font-size: 0.92rem; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text-main); white-space: pre-wrap; }
.biaya-table tr:last-child td { border-bottom: none; }
.biaya-table td strong { color: var(--emerald-dark); }
.biaya-notice { display: flex; gap: 0.75rem; margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-muted); align-items: flex-start; background: rgba(var(--emerald-rgb), 0.06); padding: 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(var(--emerald-rgb), 0.1); }
.biaya-notice i { color: var(--emerald-dark); margin-top: 0.15rem; }

/* ── 8. PROGRAM UNGGULAN ── */
.program { background: var(--bg-section-alt); }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.program-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
}
.program-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--gold-rgb), 0.2);
    box-shadow: var(--shadow-card-hover);
}
.program-card:hover::before { opacity: 1; }
.program-card h3 { font-size: 1.35rem; margin-bottom: 1rem; color: var(--emerald-dark); display: flex; align-items: center; gap: 0.6rem; }
.program-card h3 i { color: var(--gold); }
.program-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── 9. JADWAL HARIAN ── */
.jadwal {
    background: linear-gradient(180deg, var(--bg-section-alt) 0%, #D1FAE5 50%, var(--bg-main) 100%);
}
.jadwal-filter-card {
    display: flex; gap: 2rem; justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem; margin-bottom: 3rem;
    box-shadow: var(--shadow-card);
}
@media (max-width: 576px) { .jadwal-filter-card { flex-direction: column; gap: 1rem; } }
.filter-group { flex: 1; max-width: 300px; display: flex; flex-direction: column; gap: 0.5rem; }
.filter-group label { font-size: 0.85rem; font-weight: 700; color: var(--emerald-dark); }
.filter-group label i { margin-right: 0.3rem; }

.form-control {
    width: 100%; padding: 0.75rem 1.1rem;
    background: var(--white);
    border: 1.5px solid rgba(var(--emerald-rgb), 0.18);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(var(--emerald-rgb), 0.1); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23059669'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.25rem; padding-right: 2.5rem; }
select.form-control option { background: var(--white); color: var(--text-main); }

.jadwal-timeline-wrapper {
    max-width: 800px; margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.jadwal-timeline { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.jadwal-item {
    display: flex; gap: 2rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(var(--emerald-rgb), 0.1);
    align-items: center;
}
.jadwal-item:last-child { border-bottom: none; }
.jadwal-time {
    width: 120px; flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 700;
    color: var(--emerald-dark); display: flex; align-items: center; gap: 0.5rem;
}
.jadwal-time i { font-size: 0.85rem; color: var(--gold); }
.jadwal-activity { font-size: 0.95rem; color: var(--text-main); font-weight: 500; }

/* ── 10. ALUR PENDAFTARAN ── */
.pendaftaran {
    background: var(--bg-section-warm);
}
.pendaftaran-timeline {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    position: relative; margin-bottom: 4rem;
}
@media (max-width: 992px) { .pendaftaran-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .pendaftaran-timeline { grid-template-columns: 1fr; } }

.pendaftaran-step {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem; text-align: center;
    position: relative; transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.pendaftaran-step:hover { border-color: rgba(var(--emerald-rgb), 0.2); box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-primary); color: var(--white);
    display: grid; place-items: center; font-size: 1.15rem; font-weight: 800;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 4px 15px rgba(var(--emerald-rgb), 0.25);
}
.pendaftaran-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--emerald-dark); }
.pendaftaran-step p { font-size: 0.85rem; color: var(--text-muted); }

.pendaftaran-cta p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ── 11. HUBUNGI KAMI / WHATSAPP FORM ── */
.kontak { background: var(--bg-main); }
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 992px) { .kontak-grid { grid-template-columns: 1fr; gap: 3rem; } }

.kontak-info h2 { font-size: 2.5rem; margin-bottom: 1.25rem; color: var(--dark); }
.kontak-info > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }

.contact-details-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem; display: flex; gap: 1.25rem; align-items: center;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.contact-item-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(var(--emerald-rgb), 0.15); }
.cic-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(var(--gold-rgb), 0.08); color: var(--gold);
    border-radius: var(--radius-sm); display: grid; place-items: center;
    font-size: 1.1rem; border: 1px solid rgba(var(--gold-rgb), 0.12);
}
.cic-icon.green { background: rgba(var(--emerald-rgb), 0.08); color: var(--emerald-dark); border-color: rgba(var(--emerald-rgb), 0.12); }
.cic-icon.purple { background: rgba(129, 140, 248, 0.08); color: #6366f1; border-color: rgba(129, 140, 248, 0.12); }
.contact-item-card strong { display: block; font-size: 0.88rem; color: var(--dark); margin-bottom: 0.15rem; }
.contact-item-card p { font-size: 0.88rem; color: var(--text-muted); }

.booking-form-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem; box-shadow: var(--shadow-md);
    border-top: 4px solid var(--emerald);
}
.form-card-title { font-size: 1.3rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; color: var(--emerald-dark); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 700;
    color: var(--text-main); margin-bottom: 0.4rem;
}
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 576px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ── 12. ADMIN STYLES (LOGIN & DASHBOARD) ── */
.admin-login-wrapper {
    position: fixed; inset: 0; background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 50%, #F0FDF4 100%);
    display: grid; place-items: center; z-index: 9999; padding: 1.5rem;
}
.admin-login-card {
    background: var(--white); border: 1px solid rgba(var(--emerald-rgb), 0.2);
    border-radius: var(--radius-xl); padding: 3rem; width: 100%; max-width: 450px;
    box-shadow: var(--shadow-xl);
    border-top: 4px solid var(--emerald);
}
.admin-logo {
    width: 80px; height: 80px; margin-bottom: 1.25rem;
    object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); background: var(--white);
    box-shadow: var(--shadow-sm);
}
.admin-login-card h2 { font-size: 1.6rem; color: var(--emerald-dark); margin-bottom: 0.25rem; }
.admin-login-card p { margin-bottom: 2rem; }
.admin-error-box {
    background: rgba(239, 68, 68, 0.08); color: #dc2626;
    padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Admin Dashboard layout */
.admin-dashboard-wrapper {
    position: fixed; inset: 0; background: #F0FDF4;
    z-index: 9990; overflow-y: auto; display: flex; flex-direction: column;
}
.admin-header {
    background: var(--white); border-bottom: 1px solid rgba(var(--emerald-rgb), 0.12);
    padding: 1rem 0; position: sticky; top: 0; z-index: 9995;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.admin-header-inner { display: flex; justify-content: space-between; align-items: center; }
.admin-header-logo { display: flex; align-items: center; gap: 0.75rem; }
.admin-header-logo img {
    width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--white); object-fit: cover;
}
.admin-header-logo h2 { font-size: 1.15rem; color: var(--emerald-dark); }
.admin-header-logo span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.admin-header-actions { display: flex; gap: 0.75rem; }
.btn-danger { background: #dc2626; border: none; color: var(--white); }
.btn-danger:hover { background: #ef4444; color: var(--white); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }

.admin-dashboard-content {
    display: grid; grid-template-columns: 280px 1fr; gap: 2rem;
    flex-grow: 1; padding-top: 2rem; padding-bottom: 3rem;
}
@media (max-width: 768px) { .admin-dashboard-content { grid-template-columns: 1fr; } }

.admin-sidebar {
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem;
    height: fit-content;
    box-shadow: var(--shadow-card);
}
.sidebar-tab {
    background: transparent; border: none; color: var(--text-muted);
    padding: 0.85rem 1.25rem; border-radius: var(--radius-sm);
    text-align: left; font-size: 0.88rem; font-weight: 600; cursor: pointer;
    transition: var(--transition); display: flex; align-items: center; gap: 0.75rem;
}
.sidebar-tab i { font-size: 1rem; width: 20px; }
.sidebar-tab:hover { background: rgba(var(--emerald-rgb), 0.05); color: var(--emerald-dark); }
.sidebar-tab.active { background: var(--gradient-primary); color: var(--white); }

.admin-main-panel {
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 2.5rem;
    box-shadow: var(--shadow-card);
}
.tab-header-row { border-bottom: 1px solid rgba(var(--emerald-rgb), 0.1); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.tab-header-row h3 { font-size: 1.5rem; color: var(--emerald-dark); }

.admin-notify-box {
    background: rgba(16, 185, 129, 0.08); color: var(--emerald-dark);
    padding: 0.85rem 1.25rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.15);
    animation: fadeUp 0.3s ease;
}

.dashboard-tab-content { display: none; }
.dashboard-tab-content.active { display: block; }

/* Admin Component Editors */
.admin-card-edit {
    background: #F8FAFC; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.25rem;
    position: relative;
}
.admin-card-edit h5 { color: var(--emerald-dark); font-size: 1rem; margin-bottom: 1rem; font-family: 'Plus Jakarta Sans'; }
.admin-card-edit-delete {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(239, 68, 68, 0.06); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.12);
    width: 32px; height: 32px; border-radius: var(--radius-sm); display: grid; place-items: center;
    cursor: pointer; transition: var(--transition);
}
.admin-card-edit-delete:hover { background: #ef4444; color: var(--white); }

.kegiatan-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 992px) { .kegiatan-admin-grid { grid-template-columns: 1fr; } }

.admin-table-scroll { width: 100%; overflow-x: auto; margin-top: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 0.75rem 1rem; font-size: 0.85rem; background: #F8FAFC; border-bottom: 2px solid rgba(var(--emerald-rgb), 0.1); text-align: left; color: var(--text-muted); }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-main); }
.admin-table tr:hover td { background: rgba(var(--emerald-rgb), 0.02); }

.jadwal-admin-filters { display: flex; gap: 1rem; flex-wrap: wrap; }
.jadwal-admin-filters .filter-group { max-width: 220px; }

.calc-divider { height: 1px; background: rgba(var(--emerald-rgb), 0.1); margin: 1.5rem 0; }

.biaya-admin-card {
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.biaya-admin-card h4 {
    color: var(--emerald-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans';
}

/* ── 13. FOOTER ── */
.footer {
    background: linear-gradient(180deg, #064E3B 0%, #022C22 100%);
    border-top: 3px solid var(--gold-warm);
    padding: 5rem 0 2rem 0;
    position: relative; z-index: 10;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (max-width: 992px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand p { color: #A7F3D0; font-size: 0.9rem; max-width: 320px; }
.footer-socials {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.25rem;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    color: #A7F3D0;
    border-radius: 50%;
    font-size: 1.05rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-socials a:hover {
    background: var(--gradient-gold);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.25);
    border-color: transparent;
}
.footer-links h4 { font-size: 1.15rem; color: var(--gold-warm); margin-bottom: 1.5rem; font-family: 'Playfair Display'; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #A7F3D0; font-size: 0.9rem; display: inline-block; }
.footer-links a:hover { color: var(--gold-warm); transform: translateX(3px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: #6EE7B7; }
.admin-hidden-trigger { font-size: 0.8rem; color: #6EE7B7; cursor: pointer; transition: var(--transition); }
.admin-hidden-trigger:hover { color: var(--gold-warm); }

/* ── 14. ANIMATIONS ── */
@keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.animate-bounce { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ── 14.5 SUBPAGES STYLE (PROFIL & STRUKTUR KEPENGURUSAN) ── */
.subpage-wrapper {
    padding: 5rem 0 7rem 0;
    min-height: 80vh;
    animation: fadeUp 0.6s var(--ease) both;
}
.subpage-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    position: relative;
}
.subpage-header h1 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.subpage-header h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}
.subpage-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Visi Misi Section */
.visimisi-section {
    max-width: 900px;
    margin: 0 auto 5rem auto;
    padding: 0 1rem;
}
.visimisi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 768px) {
    .visimisi-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .visimisi-section {
        margin-bottom: 3.5rem;
    }
}
.visimisi-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.visimisi-card:hover {
    border-color: rgba(var(--emerald-rgb), 0.2);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}
.visimisi-card h3 {
    font-size: 1.5rem;
    color: var(--emerald-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.visimisi-card h3 i {
    color: var(--emerald);
}
.visimisi-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
}
.visimisi-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.visimisi-card ul li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    position: relative;
    padding-left: 1.5rem;
}
.visimisi-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--emerald);
    font-weight: 700;
}
.visimisi-card ul li:last-child {
    margin-bottom: 0;
}

/* Timeline Sejarah Pondok */
.timeline-story {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}
.timeline-story::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, rgba(var(--emerald-rgb), 0.15), rgba(var(--emerald-rgb), 0.3), rgba(var(--emerald-rgb), 0.15));
    transform: translateX(-50%);
}
.timeline-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    width: 100%;
}
.timeline-node:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm), var(--shadow-emerald-glow);
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1rem;
    z-index: 5;
}
.timeline-node:hover .timeline-marker {
    background: var(--gradient-gold);
    border-color: var(--white);
    box-shadow: var(--shadow-gold-glow);
}
.timeline-info-card {
    width: 44%;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.timeline-info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--emerald-rgb), 0.2);
    box-shadow: var(--shadow-card-hover);
}
.timeline-year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--emerald-dark);
    margin-bottom: 0.5rem;
    display: block;
}
.timeline-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}
.timeline-info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Profil Pengasuh Card Layout */
.pengasuh-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}
.pengasuh-photo-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--gold);
}
.pengasuh-photo-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
}
.pengasuh-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pengasuh-photo-card h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}
.pengasuh-photo-card p {
    font-size: 0.85rem;
    color: var(--emerald-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pengasuh-biography {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}
.pengasuh-biography h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pengasuh-biography h2 i {
    color: var(--gold);
}
.bio-lead {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.6;
    border-left: 3px solid var(--emerald);
    padding-left: 1rem;
}
.bio-section {
    margin-bottom: 2rem;
}
.bio-section:last-child {
    margin-bottom: 0;
}
.bio-section h4 {
    font-size: 1.15rem;
    color: var(--emerald-dark);
    margin-bottom: 0.75rem;
    font-family: 'Plus Jakarta Sans';
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bio-section h4 i {
    color: var(--gold);
}
.bio-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.bio-section ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}
.bio-section li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.bio-section li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--emerald);
    font-size: 0.8rem;
}

/* Struktur Kepengurusan Organizational Chart */
.struktur-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}
.structure-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 3.5rem;
    position: relative;
}
.structure-level::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    width: 2px;
    height: 2rem;
    background: rgba(var(--emerald-rgb), 0.15);
}
.structure-level:last-child::after {
    display: none;
}
.structure-level-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--gradient-primary);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(var(--emerald-rgb), 0.2);
}
.structure-row-flex {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
}
.structure-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 300px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}
.structure-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--emerald-rgb), 0.2);
    box-shadow: var(--shadow-card-hover);
}
.structure-card-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    flex-shrink: 0;
    background: #F8FAFC;
}
.structure-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.structure-card-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.structure-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.15rem;
}
.structure-card-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── 15. RESPONSIVE MEDIA QUERIES (MOBILE & TABLET) ── */
@media (max-width: 768px) {
    /* Remove section decorative line on mobile */
    .section::before {
        width: 80px;
    }

    /* Top Bar */
    .top-bar {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    .top-bar-container {
        justify-content: center;
        text-align: center;
        gap: 0.25rem;
    }
    .top-bar-btn {
        display: none !important;
    }

    /* Navbar positioning & styling */
    .navbar {
        position: sticky !important;
        top: 0 !important;
        padding: 0.75rem 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(var(--emerald-rgb), 0.1);
        box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    }
    .navbar.scrolled {
        padding: 0.6rem 0;
    }

    /* Navigation logo scaling */
    .logo-img {
        width: 40px;
        height: 40px;
    }
    .logo-title {
        font-size: 1.15rem;
    }
    .logo-subtitle {
        font-size: 0.72rem;
    }

    /* Toggle hamburger menu button */
    .nav-toggle {
        display: flex !important;
        z-index: 1000;
        margin-right: 0.25rem;
    }
    
    /* Hamburger Line animations override for perfect symmetry */
    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Slide-in Navigation menu drawer — BRIGHT THEME */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(var(--emerald-rgb), 0.12);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 7rem 2rem 2rem 2rem;
        gap: 0.75rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.08);
        overflow-y: auto;
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-link {
        font-size: 1rem;
        width: 100%;
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        display: block;
        color: var(--text-main);
    }
    .nav-link::after {
        display: none !important;
    }
    .nav-link.active, .nav-link:hover {
        color: var(--emerald-dark);
        padding-left: 8px;
    }
    .btn-nav {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1.2rem;
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
    .nav-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 2px solid var(--emerald-light) !important;
        backdrop-filter: none !important;
        background: rgba(var(--emerald-rgb), 0.03) !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 0.25rem 0 0.25rem 0.75rem !important;
        margin: 0.5rem 0 0.5rem 0.5rem !important;
        min-width: auto !important;
        width: calc(100% - 0.5rem) !important;
        display: none;
        box-sizing: border-box;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .nav-dropdown-menu::before {
        display: none !important;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block !important;
    }
    .nav-dropdown.open .nav-dd-icon {
        transform: rotate(180deg);
    }
    .nav-dropdown-item {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
        color: var(--text-main) !important;
        background: transparent !important;
    }
    .nav-dropdown-item:hover, .nav-dropdown-item:active {
        color: var(--emerald-dark) !important;
        background: rgba(var(--emerald-rgb), 0.08) !important;
        padding-left: 0.75rem !important;
    }

    /* Hero section adjust */
    .hero {
        padding: 5rem 0 4.5rem 0 !important;
        min-height: auto;
    }
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Section adjustments */
    .section {
        padding: 4rem 0;
    }
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Grid structures forced to single column */
    .features-grid, .programs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    .feature-card, .program-card {
        padding: 1.75rem 1.25rem;
    }
    .feature-icon {
        margin-bottom: 1rem;
    }

    /* Rincian Biaya */
    .biaya-card {
        padding: 1.5rem;
    }
    .card-badge {
        position: static !important;
        display: inline-block !important;
        margin-bottom: 0.75rem !important;
        width: fit-content;
    }
    .biaya-card h3 {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }
    .biaya-table th {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
    .biaya-table td {
        font-size: 0.85rem;
        padding: 0.65rem 0;
    }

    /* Jadwal Harian */
    .jadwal-filter-card {
        padding: 1.25rem;
        margin-bottom: 2rem;
        gap: 1rem;
    }
    .jadwal-timeline-wrapper {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }
    .jadwal-item {
        gap: 1rem;
        padding: 0.6rem 0;
    }
    .jadwal-time {
        width: 90px;
        font-size: 0.88rem;
    }
    .jadwal-activity {
        font-size: 0.88rem;
    }

    /* Pendaftaran */
    .pendaftaran-timeline {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    .pendaftaran-step {
        padding: 1.5rem;
    }

    /* Kontak / WhatsApp form */
    .kontak-grid {
        gap: 2rem;
    }
    .kontak-info h2 {
        font-size: 1.9rem;
    }
    .booking-form-card {
        padding: 1.5rem;
    }
    .form-card-title {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }

    /* Footer adjustments */
    .footer {
        padding: 3.5rem 0 2rem 0;
    }
    .footer-inner {
        gap: 2rem;
    }

    /* Admin dashboard responsive enhancements */
    .admin-main-panel {
        padding: 1.25rem;
    }
    .admin-login-card {
        padding: 2.25rem 1.5rem;
    }
    .admin-sidebar {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.6rem;
    }
    .sidebar-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
        justify-content: center;
        flex-grow: 1;
        text-align: center;
    }
    .sidebar-tab i {
        font-size: 0.9rem;
        width: auto;
        margin-right: 2px;
    }

    /* Subpages Mobile styling */
    .subpage-header h1 {
        font-size: 2.2rem;
    }
    .timeline-story::before {
        left: 20px;
    }
    .timeline-node {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    .timeline-marker {
        left: 20px;
        top: 0;
        transform: none;
        width: 36px;
        height: 36px;
    }
    .timeline-info-card {
        width: calc(100% - 45px);
        margin-left: 45px;
        padding: 1.5rem;
    }
    .pengasuh-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pengasuh-photo-card {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
    .pengasuh-biography {
        padding: 1.5rem;
    }
    .pengasuh-biography h2 {
        font-size: 1.6rem;
    }
    .bio-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .structure-row-flex {
        gap: 1.25rem;
    }
    .structure-card {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    /* Extra small phone scaling */
    .logo-title {
        font-size: 1.1rem;
    }
    .logo-subtitle {
        font-size: 0.68rem;
    }
    .hero-title {
        font-size: 1.85rem !important;
    }
    .section-title {
        font-size: 1.65rem;
    }
    
    /* Jadwal stacked layout for readability on very narrow screens */
    .jadwal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.5rem 0;
    }
    .jadwal-time {
        width: 100%;
        border-bottom: 1px solid rgba(var(--emerald-rgb), 0.06);
        padding-bottom: 0.25rem;
    }
    .jadwal-activity {
        padding-left: 0.25rem;
    }
    
    .admin-header-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .admin-header-logo {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* ========== PRELOADER SCREEN ========== */
#preloader {
    position: fixed;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 999999;
    margin: 0 !important; padding: 0 !important;
    box-sizing: border-box;
    transition: opacity 0.5s ease, visibility 0.5s;
    overflow: hidden;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    width: 100%;
    max-width: 290px;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.preloader-logo {
    width: 95px;
    height: 95px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.35);
    animation: preloaderPulse 2.2s ease-in-out infinite alternate;
}
.preloader-spinner {
    width: 45px;
    height: 45px;
    border: 3.5px dashed var(--gold);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}
#preloader p {
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes preloaderPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.08); opacity: 1; }
}
