/* ============================================================
   MAIN CSS - Pondok Pesantren Al-Ukhuwah
   ============================================================ */
:root {
  --hijau:       #1B4332;
  --hijau-mid:   #2D6A4F;
  --hijau-light: #40916C;
  --emas:        #C9A84C;
  --emas-light:  #E9C46A;
  --krem:        #FAF7F0;
  --putih:       #FFFFFF;
  --abu:         #6B7280;
  --abu-gelap:   #1F2937;
  --merah:       #DC2626;
  --shadow:      0 4px 24px rgba(27,67,50,0.10);
  --radius:      12px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--krem); color: var(--abu-gelap); line-height: 1.6; overflow-x: hidden; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--krem); }
::-webkit-scrollbar-thumb { background: var(--hijau-light); border-radius: 3px; }

/* ===== TOPBAR ===== */
.topbar { background: var(--hijau); color: rgba(255,255,255,0.8); font-size: 0.78rem; padding: 6px 0; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 5vw; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-left { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.topbar-right a { color: var(--emas-light); font-size: 1rem; }

/* ===== HEADER ===== */
.site-header { background: var(--putih); box-shadow: 0 2px 12px rgba(27,67,50,0.08); position: sticky; top: 0; z-index: 900; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo-area { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.logo-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--hijau), var(--hijau-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; }
.logo-text h1 { font-family: var(--font-display); font-size: 1rem; color: var(--hijau); line-height: 1.2; font-weight: 700; }
.logo-text p { font-size: 0.68rem; color: var(--abu); letter-spacing: 0.03em; }

/* ===== NAV ===== */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { position: relative; color: var(--abu-gelap); font-size: 0.87rem; font-weight: 500; padding: 8px 11px; border-radius: 8px; transition: color 0.2s, background 0.2s; cursor: pointer; white-space: nowrap; display: inline-block; }
.nav-link:hover, .nav-link.active { color: var(--hijau); background: rgba(27,67,50,0.07); }
.nav-link.active::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 18px; height: 2.5px; background: var(--emas); border-radius: 2px; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--putih); border-radius: 10px; box-shadow: var(--shadow); min-width: 200px; overflow: hidden; border: 1px solid rgba(27,67,50,0.08); z-index: 999; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-item { display: block; padding: 10px 16px; font-size: 0.85rem; color: var(--abu-gelap); transition: background 0.2s; }
.dropdown-item:hover { background: var(--krem); color: var(--hijau); }

/* ===== HAMBURGER ===== */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--hijau); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV ===== */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; }
.mobile-overlay.open { display: block; }
.mobile-nav { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--hijau); z-index: 1001; overflow-y: auto; transition: right 0.3s; display: flex; flex-direction: column; }
.mobile-nav.open { right: 0; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--putih); font-weight: 700; }
.mobile-nav-head button { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.2rem; cursor: pointer; }
.mobile-link { color: rgba(255,255,255,0.85); padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.9rem; transition: background 0.2s; display: block; }
.mobile-link.sub { padding-left: 36px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.mobile-link:hover { background: rgba(255,255,255,0.07); color: var(--putih); }
.mobile-group-title { color: rgba(255,255,255,0.85); padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.9rem; cursor: pointer; user-select: none; }
.mobile-group-items { display: none; }
.mobile-group-items.open { display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 72px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.bg-white { background: var(--putih); }
.bg-krem { background: var(--krem); }
.bg-hijau { background: var(--hijau); color: var(--putih); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emas); margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--hijau); margin-bottom: 12px; }
.section-sub { font-size: 0.95rem; color: var(--abu); max-width: 540px; margin: 0 auto; }
.section-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 0; }
.section-divider::before,.section-divider::after { content:''; flex: 1; max-width: 60px; height: 2px; background: linear-gradient(to right, transparent, var(--emas)); }
.section-divider::after { background: linear-gradient(to left, transparent, var(--emas)); }
.section-divider span { font-size: 1rem; color: var(--emas); }

/* ===== PAGE BANNER ===== */
.page-banner { background: linear-gradient(135deg, var(--hijau), var(--hijau-mid)); color: var(--putih); padding: 52px 5vw; text-align: center; }
.page-banner h2 { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 8px; }
.page-banner p { font-size: 0.95rem; color: rgba(255,255,255,0.75); }

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--putih); padding: 12px 5vw; border-bottom: 1px solid rgba(27,67,50,0.08); font-size: 0.8rem; color: var(--abu); }
.breadcrumb a { color: var(--hijau); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== HERO ===== */
.hero { position: relative; background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-mid) 50%, #1a3a2a 100%); color: var(--putih); padding: 100px 5vw 80px; overflow: hidden; min-height: 520px; display: flex; align-items: center; }
.hero-bg-pattern { position: absolute; inset: 0; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='1'%3E%3Cpath d='M30 0l5.5 9.5L46 5l-4 10.5L53 18l-10 4 1.5 11L30 28l-14.5 5 1.5-11-10-4 11-3-4-10.5 10.5 4.5z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 60px; }
.hero-content { position: relative; max-width: 700px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,0.2); border: 1px solid rgba(201,168,76,0.4); color: var(--emas-light); padding: 6px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
.hero h2 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero h2 span { color: var(--emas-light); }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.82); margin-bottom: 28px; max-width: 560px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 8px; font-size: 0.92rem; font-weight: 700; cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--emas); color: var(--hijau); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(201,168,76,0.35); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: var(--putih); }
.btn-outline:hover { border-color: var(--putih); background: rgba(255,255,255,0.1); }
.btn-hijau { background: var(--hijau); color: var(--putih); }
.btn-hijau:hover { box-shadow: 0 8px 20px rgba(27,67,50,0.3); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; font-weight: 600; border-radius: 6px; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 4px; }
.btn-sm:hover { opacity: 0.85; }
.btn-edit { background: #DBEAFE; color: #1E40AF; }
.btn-del { background: #FEE2E2; color: #991B1B; }
.btn-success { background: #D1FAE5; color: #065F46; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--putih); box-shadow: var(--shadow); padding: 28px 5vw; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--hijau); line-height: 1; }
.stat-num span { color: var(--emas); }
.stat-label { font-size: 0.8rem; color: var(--abu); margin-top: 4px; }

/* ===== CARDS ===== */
.card-grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); }
.card { background: var(--putih); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,67,50,0.14); }
.card-img { width: 100%; height: 200px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; background: linear-gradient(135deg, var(--hijau), var(--hijau-light)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-tag { display: inline-block; background: rgba(27,67,50,0.08); color: var(--hijau); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--abu-gelap); margin-bottom: 8px; line-height: 1.4; }
.card p { font-size: 0.85rem; color: var(--abu); line-height: 1.65; }
.card-meta { font-size: 0.78rem; color: var(--abu); margin-top: 12px; }
.card-link { color: var(--hijau); font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; }
.card-link:hover { color: var(--emas); }
.program-card { background: linear-gradient(135deg, var(--hijau), var(--hijau-mid)); border-radius: var(--radius); padding: 28px; color: var(--putih); transition: transform 0.25s, box-shadow 0.25s; }
.program-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,67,50,0.25); }
.program-card .icon { font-size: 2.4rem; margin-bottom: 16px; }
.program-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.program-card p { font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.program-card .tag { display: inline-block; background: rgba(201,168,76,0.25); border: 1px solid rgba(201,168,76,0.4); color: var(--emas-light); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 14px; }

/* ===== BERITA ===== */
.berita-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.berita-mini { display: flex; gap: 14px; align-items: flex-start; background: var(--putih); padding: 14px; border-radius: 10px; box-shadow: 0 2px 12px rgba(27,67,50,0.07); margin-bottom: 14px; transition: transform 0.2s; }
.berita-mini:hover { transform: translateX(4px); }
.berita-mini-icon { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, var(--hijau), var(--hijau-light)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; overflow: hidden; }
.berita-mini-icon img { width: 100%; height: 100%; object-fit: cover; }
.berita-mini h4 { font-size: 0.88rem; color: var(--abu-gelap); line-height: 1.4; margin-bottom: 4px; font-weight: 600; }
.berita-mini span { font-size: 0.75rem; color: var(--abu); }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: linear-gradient(135deg, var(--hijau), var(--hijau-light)); display: flex; align-items: center; justify-content: center; font-size: 3rem; transition: transform 0.25s; }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(27,67,50,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; color: var(--putih); font-size: 1.5rem; z-index: 1; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); color: var(--putih); padding: 20px 14px 12px; font-size: 0.82rem; font-weight: 600; transform: translateY(100%); transition: transform 0.3s; z-index: 2; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ===== PENGUMUMAN ===== */
.pengumuman-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--putih); border-radius: 10px; box-shadow: 0 2px 12px rgba(27,67,50,0.07); border-left: 4px solid var(--hijau-light); margin-bottom: 12px; transition: border-color 0.2s, transform 0.2s; }
.pengumuman-item:hover { border-left-color: var(--emas); transform: translateX(4px); }
.pengumuman-date { background: var(--hijau); color: var(--putih); border-radius: 8px; padding: 8px 12px; text-align: center; flex-shrink: 0; min-width: 52px; }
.pengumuman-date .day { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.pengumuman-date .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--emas-light); }
.pengumuman-info h4 { font-size: 0.92rem; color: var(--abu-gelap); margin-bottom: 4px; font-weight: 600; }
.pengumuman-info p { font-size: 0.82rem; color: var(--abu); }
.badge-prioritas-penting { background: #FEE2E2; color: #991B1B; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-prioritas-urgent { background: #FEE2E2; color: #991B1B; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-prioritas-normal { background: #FEF3C7; color: #92400E; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }

/* ===== FORMS ===== */
.form-card { background: var(--putih); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--hijau); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--abu-gelap); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid #E5E7EB; border-radius: 8px; padding: 10px 14px;
  font-size: 0.9rem; font-family: var(--font-body); color: var(--abu-gelap);
  background: var(--krem); transition: border-color 0.2s; outline: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--hijau-light); background: var(--putih);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input[type="file"] { background: var(--putih); padding: 8px; }
.btn-submit { width: 100%; background: linear-gradient(135deg, var(--hijau), var(--hijau-light)); color: var(--putih); border: none; padding: 13px; border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s, transform 0.2s; margin-top: 4px; }
.btn-submit:hover { opacity: 0.92; transform: translateY(-1px); }

/* ===== BUKU TAMU ===== */
.tamu-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.info-icon { font-size: 1.3rem; margin-top: 2px; }
.info-text strong { display: block; font-size: 0.85rem; color: var(--abu-gelap); }
.info-text span { font-size: 0.82rem; color: var(--abu); }

/* ===== PROFIL ===== */
.profil-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.profil-card-side { background: linear-gradient(135deg, var(--hijau), var(--hijau-mid)); border-radius: var(--radius); padding: 32px; color: var(--putih); text-align: center; }
.profil-avatar { font-size: 5rem; margin-bottom: 12px; }
.profil-card-side h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 4px; }
.profil-divider { border: none; border-top: 1px solid rgba(255,255,255,0.2); margin: 18px 0; }
.profil-stat { display: flex; justify-content: space-between; margin-bottom: 10px; }
.profil-stat span:first-child { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.profil-stat span:last-child { font-size: 0.85rem; font-weight: 700; color: var(--emas-light); }
.profil-content h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--hijau); margin-bottom: 16px; }
.profil-content p { color: var(--abu); font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; }
.vm-item { background: var(--putih); border-radius: 10px; padding: 20px; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(27,67,50,0.06); border-left: 4px solid var(--emas); }
.vm-item h4 { color: var(--hijau); font-size: 0.95rem; margin-bottom: 6px; }
.vm-item p { font-size: 0.85rem; color: var(--abu); line-height: 1.6; }

/* ===== CTA ===== */
.cta-strip { background: linear-gradient(135deg, var(--emas), #D4A017); padding: 52px 5vw; text-align: center; }
.cta-strip h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--hijau); margin-bottom: 10px; }
.cta-strip p { color: rgba(27,67,50,0.75); margin-bottom: 24px; font-size: 0.95rem; }

/* ===== MAP ===== */
.map-placeholder { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border-radius: var(--radius); height: 320px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--hijau); font-size: 3rem; border: 2px solid rgba(27,67,50,0.1); }

/* ===== TABLE ===== */
.table-wrap { background: var(--putih); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 12px 16px; text-align: left; font-size: 0.85rem; }
th { background: #F9FAFB; font-weight: 600; color: var(--abu); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #F3F4F6; }
tr:not(:last-child) td { border-bottom: 1px solid #F3F4F6; }
tr:hover td { background: #FAFAFA; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-yellow { background: #FEF3C7; color: #92400E; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.badge-gray { background: #F3F4F6; color: #374151; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border: 1.5px solid #E5E7EB; border-radius: 8px; font-size: 0.85rem; color: var(--abu-gelap); transition: all 0.2s; display: inline-flex; align-items: center; }
.page-btn:hover { border-color: var(--hijau); color: var(--hijau); }
.page-btn.active { background: var(--hijau); border-color: var(--hijau); color: var(--putih); }

/* ===== FLASH ===== */
.flash-msg { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 900px; width: 100%; background: var(--putih); border-radius: 16px; overflow: hidden; max-height: 90vh; display: flex; flex-direction: column; }
.lightbox-close { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.15); border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; z-index: 1; }
.lightbox-img-wrap { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #111; min-height: 240px; font-size: 6rem; }
.lightbox-img-wrap img { max-height: 60vh; width: 100%; object-fit: contain; }
.lightbox-caption { padding: 20px 24px; }
.lightbox-caption h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.lightbox-caption p { font-size: 0.85rem; color: var(--abu); }

/* ===== FILTER BTN ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { padding: 8px 18px; border-radius: 8px; border: 1.5px solid #E5E7EB; background: var(--putih); color: var(--abu-gelap); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--hijau); border-color: var(--hijau); color: var(--putih); }

/* ===== FOOTER ===== */
.site-footer { background: var(--abu-gelap); color: rgba(255,255,255,0.7); padding: 56px 5vw 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; margin-top: 16px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-logo-area .logo-text h1 { color: var(--putih); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background 0.2s; cursor: pointer; }
.social-btn:hover { background: var(--emas); }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--putih); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-link { display: block; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 9px; transition: color 0.2s; }
.footer-link:hover { color: var(--emas-light); }
.footer-contact-item { font-size: 0.82rem; margin-bottom: 8px; line-height: 1.5; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px; }

/* ===== KONTAK ===== */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .berita-grid, .tamu-wrap, .kontak-grid, .profil-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 5vw 48px; min-height: 420px; }
  .section { padding: 48px 0; }
  .stats-inner { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .card-img { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
