/* ============================================================
   SISTEM INFORMASI MASJID — MAIN STYLESHEET
   Font: Playfair Display (headings) + Poppins (body)
   Palette: Deep Green #1a7a4a | Gold #d4a843 | Cream #fdfaf4
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --green-dark:   #0d4a2e;
    --green:        #1a7a4a;
    --green-light:  #2aaa67;
    --green-pale:   #e8f5ee;
    --gold:         #d4a843;
    --gold-dark:    #a8832e;
    --gold-light:   #f0d48a;
    --cream:        #fdfaf4;
    --white:        #ffffff;
    --text:         #1e2a1e;
    --text-muted:   #5a6a5a;
    --border:       #d8e8d8;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
    --shadow-md:    0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:    0 8px 40px rgba(0,0,0,.18);
    --radius-sm:    6px;
    --radius:       12px;
    --radius-lg:    20px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Poppins', system-ui, sans-serif;
    --font-arabic:  'Amiri', serif;
    --navbar-h:     70px;
    --topbar-h:     36px;
    --transition:   .25s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section Layout ─────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--green-dark); color: var(--white); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
    display: inline-block;
    font-size: .75rem; font-weight: 600; letter-spacing: .15em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: .5rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--green-dark);
    line-height: 1.3;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle { color: var(--text-muted); margin-top: .5rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.section-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    border-radius: 2px; margin: 1rem auto 0;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    background: var(--green-dark);
    color: rgba(255,255,255,.75);
    font-size: .78rem;
    height: var(--topbar-h);
    display: flex; align-items: center;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.topbar-left, .topbar-right { display: flex; gap: 1.2rem; align-items: center; }
.topbar a { color: rgba(255,255,255,.7); }
.topbar a:hover { color: var(--gold); }
.topbar-left span:first-child { font-weight: 600; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0; z-index: 1000;
    background: var(--white);
    height: var(--navbar-h);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.navbar-brand { display: flex; align-items: center; gap: .75rem; }
.navbar-brand img { height: 44px; width: auto; }
.brand-icon { font-size: 1.8rem; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-heading); font-size: 1.05rem; color: var(--green-dark); font-weight: 700; }
.brand-sub { font-size: .65rem; color: var(--text-muted); letter-spacing: .03em; }

.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-link {
    display: inline-flex; align-items: center;
    padding: .45rem .85rem;
    font-size: .85rem; font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--green-pale); }
.nav-link.btn-outline {
    border: 1.5px solid var(--green);
    color: var(--green); padding: .4rem 1rem;
    margin-left: .5rem;
}
.nav-link.btn-outline:hover { background: var(--green); color: var(--white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Hero Slider ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--green-dark); }
.hero-slides { display: flex; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.hero-slide {
    min-width: 100%;
    position: relative;
    min-height: 520px;
    display: flex; align-items: center;
    background: var(--green-dark);
    overflow: hidden;
}
.hero-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpolygon points='60,4 116,32 116,88 60,116 4,88 4,32' fill='none' stroke='rgba(212,168,67,.08)' stroke-width='1.5'/%3E%3Cpolygon points='60,20 100,40 100,80 60,100 20,80 20,40' fill='none' stroke='rgba(212,168,67,.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    opacity: .6;
}
.hero-slide-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .35;
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 680px; padding: 4rem 2rem;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}
.hero-arabic {
    font-family: var(--font-arabic);
    font-size: 1.8rem; color: var(--gold-light);
    margin-bottom: .5rem;
    opacity: .9;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2; margin-bottom: 1rem;
}
.hero-title span { color: var(--gold); }
.hero-desc { font-size: 1.05rem; opacity: .85; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 10; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
.hero-prev, .hero-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
    border: none; color: var(--white);
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; z-index: 10;
    transition: background var(--transition);
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.3); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.6rem;
    font-family: var(--font-body); font-size: .9rem; font-weight: 600;
    border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: var(--white); color: var(--green-dark); }
.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-full { width: 100%; }

/* ── Prayer Time Card ───────────────────────────────────────── */
.jadwal-strip {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    padding: 2.5rem 0;
}
.jadwal-strip .section-eyebrow { color: var(--gold-light); }
.jadwal-header { text-align: center; color: var(--white); margin-bottom: 1.5rem; }
.jadwal-header h2 { font-family: var(--font-heading); font-size: 1.5rem; }
.jadwal-header .date-today { font-size: .85rem; opacity: .75; margin-top: .25rem; }
.jadwal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: .75rem;
}
.jadwal-item {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 1rem .75rem;
    text-align: center;
    color: var(--white);
    transition: background var(--transition);
    backdrop-filter: blur(4px);
}
.jadwal-item.active {
    background: var(--gold);
    border-color: var(--gold);
}
.jadwal-item.active .jadwal-time { color: var(--white); }
.jadwal-name { font-size: .78rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.jadwal-time { font-size: 1.3rem; font-weight: 600; }
.jadwal-active-label {
    font-size: .65rem; background: rgba(255,255,255,.25);
    padding: .15rem .4rem; border-radius: 999px;
    margin-top: .25rem; display: inline-block;
}

/* ── News / Berita Cards ────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img-wrap { overflow: hidden; height: 200px; background: var(--green-pale); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img-wrap img { transform: scale(1.06); }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-tag {
    display: inline-block; padding: .25rem .7rem;
    font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    background: var(--green-pale); color: var(--green);
    border-radius: 999px; margin-bottom: .6rem;
}
.card-title {
    font-family: var(--font-heading); font-size: 1.1rem;
    color: var(--green-dark); line-height: 1.4;
    margin-bottom: .6rem;
}
.card-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: .75rem; }
.card-excerpt { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.card-read-more { font-size: .85rem; font-weight: 600; color: var(--green); }
.card-read-more:hover { color: var(--gold); }

/* ── Kegiatan List ──────────────────────────────────────────── */
.kegiatan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; gap: 1.25rem;
    padding: 1.25rem;
    transition: all var(--transition);
}
.kegiatan-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.kegiatan-date {
    background: var(--green-dark); color: var(--white);
    border-radius: var(--radius-sm);
    min-width: 60px; text-align: center;
    padding: .5rem .25rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.kegiatan-date .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.kegiatan-date .month { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.kegiatan-info { flex: 1; }
.kegiatan-status { font-size: .72rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.kegiatan-title { font-family: var(--font-heading); font-size: 1rem; color: var(--green-dark); margin-bottom: .35rem; }
.kegiatan-meta { font-size: .8rem; color: var(--text-muted); }

/* ── Gallery Grid ────────────────────────────────────────────── */
.galeri-grid { columns: 3; gap: 1rem; column-gap: 1rem; }
.galeri-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.galeri-item img { width: 100%; display: block; transition: transform .4s ease; }
.galeri-item:hover img { transform: scale(1.05); }
.galeri-overlay {
    position: absolute; inset: 0;
    background: rgba(13,74,46,.7);
    color: var(--white);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    opacity: 0; transition: opacity var(--transition);
    padding: 1rem; text-align: center;
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay-title { font-size: .9rem; font-weight: 600; }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; color: var(--white);
    font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-caption { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: var(--white); font-size: .9rem; text-align: center; }

/* ── Pengurus / Team Cards ───────────────────────────────────── */
.pengurus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.pengurus-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); text-align: center;
    padding: 2rem 1.25rem 1.5rem;
    transition: all var(--transition);
}
.pengurus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pengurus-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--green-pale); margin: 0 auto 1rem;
    border: 3px solid var(--green);
    overflow: hidden;
}
.pengurus-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pengurus-avatar-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: var(--white); font-size: 1.8rem;
    font-family: var(--font-heading);
}
.pengurus-name { font-family: var(--font-heading); font-size: 1rem; color: var(--green-dark); margin-bottom: .25rem; }
.pengurus-jabatan { font-size: .8rem; color: var(--gold-dark); font-weight: 600; margin-bottom: .5rem; }
.pengurus-period { font-size: .72rem; color: var(--text-muted); }

/* ── Finance Table ───────────────────────────────────────────── */
.finance-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.finance-card {
    padding: 1.5rem; border-radius: var(--radius);
    border-left: 4px solid;
}
.finance-card.masuk { background: #e8f5ee; border-color: var(--green); }
.finance-card.keluar { background: #fef0ef; border-color: #e05a4e; }
.finance-card.saldo { background: linear-gradient(135deg, var(--green-dark), var(--green)); border-color: var(--gold); color: var(--white); }
.finance-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .7; margin-bottom: .5rem; }
.finance-amount { font-size: 1.5rem; font-weight: 700; }
.finance-card.masuk .finance-amount { color: var(--green-dark); }
.finance-card.keluar .finance-amount { color: #c04438; }

/* ── Contact Form ─────────────────────────────────────────────── */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--green-dark); }
.form-control {
    width: 100%; padding: .65rem 1rem;
    font-family: var(--font-body); font-size: .9rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--white); color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,74,.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Schedule Table ──────────────────────────────────────────── */
.table-jadwal-wrap { overflow-x: auto; }
.table-jadwal {
    width: 100%; border-collapse: collapse; font-size: .88rem;
}
.table-jadwal th {
    background: var(--green-dark); color: var(--white);
    padding: .75rem 1rem; text-align: center; font-weight: 600; font-size: .8rem;
    letter-spacing: .03em;
}
.table-jadwal td { padding: .65rem 1rem; text-align: center; border-bottom: 1px solid var(--border); }
.table-jadwal tr:nth-child(even) td { background: var(--cream); }
.table-jadwal tr.today td { background: var(--green-pale); font-weight: 600; }
.table-jadwal tr.today td:first-child { border-left: 3px solid var(--green); }

/* ── Article / Profil ────────────────────────────────────────── */
.article-content {
    font-size: 1rem; line-height: 1.9; color: var(--text);
}
.article-content h2, .article-content h3 { font-family: var(--font-heading); color: var(--green-dark); margin: 1.5rem 0 .75rem; }
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-content li { margin-bottom: .4rem; }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 .75rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: .88rem; color: var(--text); transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ── Stats Strip ─────────────────────────────────────────────── */
.stats-strip { background: var(--green); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-item { color: var(--white); }
.stat-number { font-family: var(--font-heading); font-size: 2.4rem; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: .8rem; opacity: .8; margin-top: .3rem; }

/* ── CTA Donasi ──────────────────────────────────────────────── */
.cta-donasi {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0a3a24 100%);
    padding: 3rem 0;
}
.cta-donasi-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-text h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--white); }
.cta-text p { color: rgba(255,255,255,.7); margin-top: .25rem; }
.cta-rekening {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius); padding: 1rem 1.5rem;
    color: var(--white); text-align: center;
}
.rek-bank { display: block; font-size: .75rem; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.rek-nomor { display: block; font-size: 1.4rem; font-weight: 700; color: var(--gold-light); letter-spacing: .08em; margin: .25rem 0; }
.rek-name { display: block; font-size: .8rem; opacity: .75; }
.btn-cta { display: inline-flex; align-items: center; padding: .75rem 1.75rem; background: var(--gold); color: var(--white); border-radius: 999px; font-weight: 600; font-size: .9rem; transition: all var(--transition); }
.btn-cta:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: #0a1a10; color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr; gap: 3rem; }
.footer-heading { font-family: var(--font-heading); font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; }
.footer-col p { font-size: .875rem; margin-bottom: .5rem; line-height: 1.6; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer-col a:hover { color: var(--gold); }
.footer-nav { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav a { font-size: .84rem; }
.footer-jadwal { width: 100%; font-size: .82rem; border-collapse: collapse; }
.footer-jadwal td { padding: .3rem .5rem; }
.footer-jadwal td:last-child { text-align: right; color: var(--gold-light); font-weight: 600; }
.social-links { display: flex; flex-direction: column; gap: .6rem; }
.social-btn {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem .75rem; border-radius: var(--radius-sm);
    font-size: .82rem; color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.07); transition: all var(--transition);
}
.social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-btn:hover { color: var(--white); transform: translateX(4px); }
.social-btn.fb:hover { background: #1877f2; }
.social-btn.ig:hover { background: linear-gradient(45deg, #405de6,#833ab4,#fd1d1d,#fcb045); }
.social-btn.yt:hover { background: #ff0000; }
.social-btn.wa:hover { background: #25d366; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0; margin-top: 3rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .8rem; opacity: .5; }

/* ── WhatsApp Float ──────────────────────────────────────────── */
.wa-float {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,.55); color: var(--white); }

/* ── Flash Messages ──────────────────────────────────────────── */
.flash {
    padding: .9rem 1.25rem; border-radius: var(--radius-sm);
    margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: .75rem;
    font-size: .9rem;
}
.flash-icon { font-weight: 700; flex-shrink: 0; }
.flash-success { background: #d1fae5; color: #065f46; }
.flash-danger  { background: #fee2e2; color: #991b1b; }
.flash-warning { background: #fef3c7; color: #92400e; }
.flash-info    { background: #dbeafe; color: #1e40af; }

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white); padding: 4rem 0 3rem;
    text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='15' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.breadcrumb { font-size: .85rem; opacity: .75; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--gold); }

/* ── Info Box / Sidebar ──────────────────────────────────────── */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.sidebar-box { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.sidebar-box-title { font-family: var(--font-heading); font-size: 1rem; color: var(--green-dark); border-bottom: 2px solid var(--green-pale); padding-bottom: .5rem; margin-bottom: 1rem; }
.sidebar-list-item { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .84rem; }
.sidebar-list-item:last-child { border-bottom: none; }
.sidebar-list-img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sidebar-list-info p { color: var(--text-muted); font-size: .75rem; margin-top: .2rem; }

/* ── Berita Detail ───────────────────────────────────────────── */
.article-hero-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--green-dark); line-height: 1.3; margin-bottom: .75rem; }
.article-meta-bar { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); }

/* ── Maps Embed ──────────────────────────────────────────────── */
.maps-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.maps-embed iframe { display: block; width: 100%; }

/* ── Filter/Tab ──────────────────────────────────────────────── */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: center; }
.filter-btn {
    padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid var(--border);
    background: var(--white); font-size: .82rem; font-weight: 500; cursor: pointer;
    transition: all var(--transition); color: var(--text);
}
.filter-btn:hover, .filter-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ── Month Selector ──────────────────────────────────────────── */
.month-nav { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.month-nav select { padding: .5rem .75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .9rem; }
.month-nav label { font-weight: 600; font-size: .9rem; color: var(--green-dark); }

/* ── Utility Classes ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-green  { color: var(--green); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-danger { color: #e05a4e; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.d-none { display: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .galeri-grid { columns: 2; }
}

@media (max-width: 768px) {
    .topbar-left span:last-child { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: calc(var(--topbar-h) + var(--navbar-h)); left: 0; right: 0;
        background: var(--white); flex-direction: column; align-items: stretch;
        padding: 1rem; gap: .25rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%); opacity: 0; pointer-events: none;
        transition: transform .3s ease, opacity .3s ease;
        z-index: 999;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-link.btn-outline { margin-left: 0; margin-top: .25rem; }
    .hero-slide { min-height: 400px; }
    .hero-title { font-size: 1.8rem; }
    .jadwal-grid { grid-template-columns: repeat(3, 1fr); }
    .kontak-grid { grid-template-columns: 1fr; }
    .cta-donasi-inner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom .container { flex-direction: column; gap: .5rem; text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid-2 { grid-template-columns: 1fr; }
    .pengurus-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
    .galeri-grid { columns: 1; }
    .jadwal-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }
    .pengurus-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
