/* ================================================================
   HIMMIA — style.css  v3.0  (Gold & Ink theme — sesuai logo)
   ================================================================ */

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --ink:         #0d0b08;
  --ink-deep:    #1a1714;
  --gold:        #C9A84C;
  --gold-light:  #E0BE6A;
  --gold-pale:   #F0D89A;
  --white:       #ffffff;
  --cream:       #FAF8F2;
  --cream-card:  #FFFEF9;
  --text-main:   #1a1714;
  --text-muted:  #7a7460;
  --radius-md:   18px;
  --shadow-sm:   0 4px 16px rgba(13, 11, 8, 0.08);
  --shadow-lg:   0 20px 50px rgba(13, 11, 8, 0.16);
  --transition:  all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* kept for backward compat — map to gold/ink palette */
  --blue-navy:   var(--ink-deep);
  --blue-benhur: #8B6914;
  --blue-sky:    var(--gold);
  --blue-turq:   var(--gold-light);
  --bg-light:    var(--cream);
  --bg-card:     var(--cream-card);
}

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--ink));
  z-index: 10000;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

body.dark-mode {
  --cream:       #0d0b08;
  --cream-card:  #1a1714;
  --text-main:   #f0ece0;
  --text-muted:  #a09880;
  --bg-light:    #0d0b08;
  --bg-card:     #1a1714;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
body.nav-open { overflow: hidden; }
a { text-decoration: none; }
h1, h2, h3, h4, .serif { font-family: 'Amiri', serif; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
header {
  position: fixed; top: 0; width: 100%;
  padding: 18px 5%;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000; transition: var(--transition);
}
/* Light mode scrolled — cream frosted glass */
header.scrolled {
  background: rgba(250, 248, 242, 0.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 12px 5%;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 8px 32px rgba(13,11,8,0.10);
}
/* Dark mode scrolled — dark frosted glass */
body.dark-mode header.scrolled {
  background: rgba(13, 11, 8, 0.85);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 8px 32px rgba(0,0,0,0.40);
}

/* Logo image */
.logo { display: flex; align-items: center; }

/* Light mode: original logo (black calligraphy) */
.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: filter 0.4s ease, height 0.3s ease;
}
/* Dark mode: gold logo */
body.dark-mode .logo-img {
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.25)) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(1.05);
}

/* Mobile nav brand logo */
.logo-img-mobile {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: none;
}
body.dark-mode .logo-img-mobile {
  filter: invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(1.05);
}

/* Footer logo */
.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  /* footer is always dark, so always gold */
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.20)) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(1.05);
  opacity: 0.90;
}

.logo-icon { color: var(--gold); }

/* Hamburger button — always visible on all screen sizes */
.hamburger-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(13,11,8,0.18);
  border-radius: 12px;
  background: rgba(13,11,8,0.07);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 8px;
}
.hamburger-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
body.dark-mode .hamburger-btn {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: white;
}
.hamburger-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.40);
  color: var(--gold);
}
body.dark-mode .hamburger-btn:hover {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.40);
  color: var(--gold-light);
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Keep old class for JS compat */
.mobile-menu-toggle { display: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
/* Light mode nav links */
.nav-links a {
  color: var(--ink); padding: 6px 12px; border-radius: 7px;
  font-weight: 500; font-size: 0.9rem; transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); background: rgba(201,168,76,0.10); }
/* Dark mode nav links */
body.dark-mode .nav-links a { color: var(--white); }
body.dark-mode .nav-links a:hover { color: var(--gold-light); background: rgba(201,168,76,0.12); }

.nav-actions { display: flex; align-items: center; }
.btn-icon {
  background: rgba(13,11,8,0.07);
  border: 1px solid rgba(13,11,8,0.12);
  color: var(--ink);
  padding: 8px 12px; border-radius: 20px; cursor: pointer;
  margin-left: 8px; transition: var(--transition);
}
.btn-icon:hover { background: rgba(201,168,76,0.15); color: var(--gold); border-color: rgba(201,168,76,0.35); }
body.dark-mode .btn-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: white;
}
body.dark-mode .btn-icon:hover { background: rgba(201,168,76,0.25); color: var(--gold-light); }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 8, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1090;
}
.mobile-nav-backdrop.active { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(88vw, 340px);
  height: 100vh;
  padding: 24px 20px;
  background: rgba(13, 11, 8, 0.95);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-left: 1px solid rgba(201,168,76,0.20);
  box-shadow: -20px 0 40px rgba(0,0,0,0.30);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
}
.mobile-nav-panel.active { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mobile-nav-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-close {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: var(--transition);
}
.mobile-nav-close:hover { color: var(--gold-light); border-color: rgba(201,168,76,0.30); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-links a {
  color: white;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  transition: var(--transition);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.nav-active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.28);
}
.mobile-nav-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-actions .btn-icon { margin-left: 0; flex: 1; min-height: 46px; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  /* Light mode — warm cream/gold gradient */
  background: linear-gradient(145deg, #FAF8F2 0%, #F0E8D4 40%, #E8D8B8 100%);
  color: var(--ink);
}
body.dark-mode .hero {
  background: linear-gradient(145deg, var(--ink) 0%, #1c1508 40%, #2a1d06 100%);
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  /* Light mode overlay — subtle warm glow */
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(139,105,20,0.08) 0%, transparent 60%);
  pointer-events: none;
}
body.dark-mode .hero::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(139,105,20,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 50% 90%, rgba(224,190,106,0.06) 0%, transparent 55%);
}
/* Arabic geometric pattern overlay */
.parallax-bg {
  position: absolute; width: 120%; height: 120%;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.05) 0px, rgba(201,168,76,0.05) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.05) 0px, rgba(201,168,76,0.05) 1px, transparent 1px, transparent 40px);
  z-index: 1; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
/* Basmalah: gold in both modes (always visible) */
.basmalah {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 20px;
}
body.dark-mode .basmalah {
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(201,168,76,0.4);
}
/* Light mode hero text — dark ink */
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; color: var(--ink-deep); }
.hero p  { font-size: 1.1rem; opacity: 0.80; margin-bottom: 30px; line-height: 1.6; color: var(--ink-deep); }
body.dark-mode .hero h1 { color: var(--white); }
body.dark-mode .hero p  { color: rgba(255,255,255,0.85); opacity: 1; }

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.btn-hero-video {
  background: rgba(201,168,76,0.10);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  padding: 15px 42px;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}
.btn-hero-video:hover {
  background: rgba(201,168,76,0.22);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.28);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink); border: none;
  padding: 15px 35px; border-radius: 30px;
  font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-pale));
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.50);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  padding: 13px 35px; border-radius: 30px;
  font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold-light);
  color: var(--white);
}

/* ─── SECTION SHARED ─────────────────────────────────────────── */
.section-light { padding: 80px 5%; text-align: center; background: var(--cream); }
.section-header .pre-title {
  display: block; color: var(--gold); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 8px;
}
.section-header h2 { font-size: 3rem; margin: 10px 0; color: var(--ink-deep); }
body.dark-mode .section-header h2 { color: var(--white); }
.line { width: 80px; height: 3px; background: var(--gold); margin: 14px auto 0; border-radius: 5px; }
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ─── PRAYER SECTION ─────────────────────────────────────────── */
.prayer-section {
  background: linear-gradient(170deg, var(--cream) 0%, rgba(201,168,76,0.06) 100%);
}
body.dark-mode .prayer-section {
  background: linear-gradient(170deg, var(--cream), rgba(139,105,20,0.12));
}

.prayer-date-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem; color: var(--text-muted);
  background: var(--cream-card);
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.30);
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.5; }
}

.prayer-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1160px;
  margin: 32px auto 24px;
}

.prayer-card {
  background: var(--cream-card);
  padding: 22px 12px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid transparent;
  border: 1px solid rgba(201,168,76,0.12);
  border-top-width: 3px;
  border-top-color: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: default;
  will-change: transform;
  position: relative;
}
.prayer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Syuruq card */
.prayer-card--syuruq {
  border-top-color: #C4773E !important;
  background: linear-gradient(160deg, rgba(196,119,62,0.06), var(--cream-card));
}
body.dark-mode .prayer-card--syuruq {
  background: linear-gradient(160deg, rgba(196,119,62,0.10), var(--bg-card));
}
.prayer-card--syuruq strong { color: #B5692A !important; }
body.dark-mode .prayer-card--syuruq strong { color: #E8A06A !important; }
.prayer-card--syuruq .prayer-name { color: #B5692A; }
body.dark-mode .prayer-card--syuruq .prayer-name { color: #E8A06A; }
.prayer-card--syuruq .prayer-icon-wrap { background: rgba(196,119,62,0.10); border-color: rgba(196,119,62,0.25); }

/* Active prayer */
@keyframes prayer-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(201,168,76,0.22); }
  50%       { box-shadow: 0 10px 36px rgba(201,168,76,0.38), 0 0 0 4px rgba(201,168,76,0.08); }
}
.prayer-card.active-prayer {
  border-top-color: var(--gold) !important;
  border-color: rgba(201,168,76,0.30);
  background: linear-gradient(160deg, rgba(201,168,76,0.09), var(--cream-card));
  animation: prayer-pulse 3s ease-in-out infinite;
  transform: translateY(-5px);
}
body.dark-mode .prayer-card.active-prayer {
  background: linear-gradient(160deg, rgba(201,168,76,0.12), var(--bg-card));
}
.prayer-card.active-prayer strong { color: var(--gold); }
body.dark-mode .prayer-card.active-prayer strong { color: var(--gold-light); }
.prayer-card.active-prayer .prayer-icon-wrap {
  background: rgba(201,168,76,0.14);
  border-color: rgba(201,168,76,0.35);
}
.prayer-card.active-prayer::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

/* Icon circle */
.prayer-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.prayer-icon { font-size: 1.25rem; line-height: 1; display: block; }

.prayer-name {
  font-size: 0.70rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted);
  margin-top: 2px;
}
.prayer-card strong {
  font-size: 2rem; color: var(--ink-deep);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
body.dark-mode .prayer-card strong { color: var(--white); }

.prayer-countdown-wrap {
  text-align: center;
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(201,168,76,0.30);
  border-radius: 20px;
  padding: 22px 32px;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(13,11,8,0.07),
              inset 0 1px 0 rgba(255,255,255,0.8);
}
body.dark-mode .prayer-countdown-wrap {
  background: rgba(13, 11, 8, 0.55);
  border-color: rgba(201,168,76,0.20);
  box-shadow: 0 8px 32px rgba(0,0,0,0.30),
              inset 0 1px 0 rgba(255,255,255,0.04);
}
.prayer-next-label { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 7px; }
.prayer-next-label strong { color: var(--gold); font-size: 0.95rem; }
body.dark-mode .prayer-next-label strong { color: var(--gold-light); }
.prayer-countdown {
  font-size: 2.4rem; font-weight: 700;
  color: var(--ink-deep); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: 2px; margin-bottom: 8px;
}
body.dark-mode .prayer-countdown { color: var(--gold-light); }
.prayer-status { font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }

/* ─── STRUKTUR ───────────────────────────────────────────────── */
.bph-wrapper { max-width: 1000px; margin: 0 auto; text-align: center; }
.bph-main {
  display: flex; gap: 30px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 30px;
}
.bph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px; margin-top: 30px;
}
.profile-card {
  background: var(--cream-card); padding: 20px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.profile-card.major {
  flex: 1; min-width: 280px; max-width: 320px;
  padding: 30px; border-bottom: 4px solid var(--gold);
}
.profile-card.major:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.profile-card.mini  { border-left: 4px solid var(--gold); text-align: left; }
.profile-img {
  width: 120px; height: 120px; background: #e8e4da;
  border-radius: 50%; margin: 0 auto 20px; border: 3px solid var(--gold);
}
.profile-card.major h3 { font-size: 1.2rem; margin-bottom: 4px; }
.profile-card.major .jabatan { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.profile-card.mini h4 { font-size: 0.95rem; margin-bottom: 4px; }
.profile-card.mini p  { font-size: 0.82rem; color: var(--text-muted); }

.grid-container {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 25px; max-width: 1200px; margin: 0 auto;
}
.dept-card {
  flex: 1 1 calc(33.333% - 25px); min-width: 300px; max-width: 400px;
  background: var(--cream-card); padding: 35px 25px; border-radius: var(--radius-md);
  transition: var(--transition); border: 1px solid rgba(201,168,76,0.12);
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold);
}
.dept-card.komisi { border-top-color: #c0392b; }
.dept-card:hover  {
  transform: translateY(-10px); box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.40);
}
.dept-icon  { font-size: 2rem; margin-bottom: 15px; }
.dept-card h4 { font-size: 1.3rem; margin-bottom: 5px; color: var(--ink-deep); }
body.dark-mode .dept-card h4 { color: var(--white); }
.koor { font-size: 0.9rem; margin-bottom: 15px; color: var(--text-muted); }
.komisi-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.dept-task-list {
  text-align: left; list-style: none; font-size: 0.9rem;
  border-top: 1px solid rgba(201,168,76,0.12); padding-top: 15px;
}
.dept-task-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dept-task-list li::before { content: "•"; color: var(--gold); font-weight: bold; flex-shrink: 0; }

/* ─── VISI MISI ──────────────────────────────────────────────── */
.section-vision {
  background: linear-gradient(145deg, var(--ink) 0%, #1c1508 60%, #2a1d06 100%);
  color: white;
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-vision::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(201,168,76,0.15), transparent 45%);
  pointer-events: none;
}
.section-vision .section-header { position: relative; z-index: 1; margin-bottom: 40px; }
.vision-pre  { color: var(--gold-light) !important; }
.vision-h2   { color: white !important; }
.vision-line { background: var(--gold) !important; }
.visi-misi-container { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.vision-box {
  padding: 40px; border-radius: 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-bottom: 28px;
}
.vision-box.visi {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.35);
  text-align: center;
}
.vision-box.misi {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
}
.vision-box h3   { font-size: 2rem; margin-bottom: 15px; }
.vision-box.visi h3 { color: var(--gold-light); }
.vision-box.misi h3 { color: var(--gold); text-align: center; margin-bottom: 20px; }
.vision-box p { font-size: 1.08rem; line-height: 1.85; color: rgba(240,236,224,0.88); }

/* Light mode vision text */
body:not(.dark-mode) .vision-box p { color: rgba(255,255,255,0.90); }

/* Elegant Roman numeral mission list */
.vision-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.vision-box ul li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: background 0.25s ease;
}
.vision-box ul li:last-child { border-bottom: none; padding-bottom: 0; }
.vision-box ul li:first-child { padding-top: 0; }

/* Gold Roman numeral badge */
.mission-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Amiri', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  background: rgba(201,168,76,0.08);
  margin-top: 2px;
}

/* Mission text */
.mission-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}
body:not(.dark-mode) .mission-text { color: rgba(255,255,255,0.90); }

/* Light mode: adjust vision box borders */
body:not(.dark-mode) .vision-box.misi {
  background: rgba(201,168,76,0.03);
  border-color: rgba(201,168,76,0.22);
}
body:not(.dark-mode) .vision-box ul li { border-bottom-color: rgba(201,168,76,0.15); }
body:not(.dark-mode) .mission-num { background: rgba(201,168,76,0.08); }

/* ─── GALERI ─────────────────────────────────────────────────── */
.galeri-caption { margin-top: 15px; color: var(--text-muted); font-size: 0.9rem; }
.galeri-link    { color: var(--gold); font-weight: 700; }
.galeri-link:hover { color: var(--gold-light); text-decoration: underline; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 32px auto 0;
}
.gallery-item { height: 250px; border-radius: 15px; cursor: pointer; transition: var(--transition); }
.gallery-item:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }
.g1 { background: linear-gradient(135deg, var(--ink-deep), #4a3210); }
.g2 { background: linear-gradient(135deg, #2a1d06, var(--gold)); }
.g3 { background: linear-gradient(135deg, var(--gold), var(--ink)); }
.g4 { background: linear-gradient(135deg, #4a3210, var(--gold-light)); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
#footer {
  background: linear-gradient(145deg, var(--ink) 0%, #1a1408 100%);
  color: rgba(255,255,255,0.75);
  padding: 64px 5% 0;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.footer-logo-text { font-size: 1.3rem; font-weight: 800; color: white; }
.footer-tagline {
  font-family: 'Amiri', serif; font-style: italic;
  font-size: 0.92rem; color: rgba(255,255,255,0.38); margin-bottom: 14px;
}
.footer-desc {
  font-size: 0.86rem; line-height: 1.8;
  color: rgba(255,255,255,0.42); max-width: 280px; margin-bottom: 22px;
}
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.50); transition: var(--transition);
}
.social-btn:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.social-btn svg { width: 17px; height: 17px; }
.footer-col-title {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.87rem; color: rgba(255,255,255,0.44); transition: var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,0.85); padding-left: 5px; }
.footer-address { font-style: normal; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.44);
}
.footer-contact-item a { color: rgba(255,255,255,0.44); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 18px 0 26px;
}
.footer-bottom p    { font-size: 0.8rem; color: rgba(255,255,255,0.20); }
.footer-made        { font-size: 0.8rem; color: rgba(255,255,255,0.18) !important; }

/* ─── MODAL & AUDIO ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.92); z-index: 2000;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal-content { width: 80%; max-width: 900px; position: relative; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe {
  position: absolute; top:0; left:0; width:100%; height:100%;
  border-radius: 15px;
}
.close-modal {
  position: absolute; top: -42px; right: 0;
  color: white; font-size: 2rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.30);
  cursor: pointer; border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.close-modal:hover { background: rgba(201,168,76,0.30); color: var(--gold-light); }

.audio-widget {
  background: rgba(13, 11, 8, 0.70);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.30),
              inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.audio-widget:hover {
  border-color: rgba(201,168,76,0.50);
  box-shadow: 0 12px 40px rgba(201,168,76,0.15),
              inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* ── LANGUAGE TRANSITION ── */
.lang-fade {
  animation: langSwitch 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes langSwitch {
  0%   { opacity: 0; transform: translateY(6px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

#langBtn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.30) !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
  transition: all 0.3s ease;
  min-width: 52px;
  text-align: center;
}
#langBtn:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold) !important;
  color: var(--gold-light);
}
#langBtn.lang-en {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold) !important;
  color: var(--gold-light);
}

/* ── SMOOTH SCROLL OFFSET ── */
[id] { scroll-margin-top: 90px; }

/* ── Selection color brand ── */
::selection {
  background: rgba(201,168,76,0.25);
  color: var(--ink);
}

/* ── Focus ring branded ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Navbar link active indicator ── */
.nav-links a.nav-active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.12);
}

/* ── Dept card border-top per kategori ── */
.dept-card:nth-child(1) { border-top-color: var(--gold); }
.dept-card:nth-child(2) { border-top-color: var(--gold-light); }
.dept-card:nth-child(3) { border-top-color: #8B6914; }
.dept-card:nth-child(4) { border-top-color: var(--ink-deep); }

.audio-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink); cursor: pointer; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.audio-btn:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(201,168,76,0.40); }
.audio-info strong { color: white; display: block; font-size: 0.85rem; }
.audio-info #audioStatus { font-size: 0.73rem; color: rgba(255,255,255,0.55); }

/* ═══════════════════════════════════════════
   STATS COUNTER SECTION
═══════════════════════════════════════════ */
.stats-section {
  padding: 96px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, var(--cream) 0%, rgba(201,168,76,0.05) 100%);
}
body.dark-mode .stats-section {
  background: linear-gradient(175deg, var(--cream) 0%, rgba(139,105,20,0.08) 100%);
}

.stats-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(201,168,76,0.07) 0%,
    rgba(224,190,106,0.04) 40%,
    transparent 70%);
  pointer-events: none; z-index: 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 960px;
  margin: 44px auto 0;
  position: relative; z-index: 1;
}

.stat-card {
  background: var(--cream-card);
  padding: 36px 20px 28px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,168,76,0.15);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), #8B6914);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px 3px 0 0;
}
.stat-card:hover::before { transform: scaleX(1); }

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(13,11,8,0.12);
  border-color: rgba(201,168,76,0.40);
}

.stat-icon {
  font-size: 1.8rem; margin-bottom: 12px; line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(201,168,76,0.25));
  transition: transform 0.3s ease;
}
.stat-card:hover .stat-icon { transform: scale(1.15) translateY(-2px); }

.counter {
  font-family: 'Amiri', serif;
  font-size: 3rem; font-weight: 700; line-height: 1;
  margin-bottom: 8px; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #8B6914, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark-mode .counter {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-label {
  font-size: 0.88rem; color: var(--text-muted);
  font-weight: 500; letter-spacing: 0.3px; margin-top: 4px;
}

/* ─── SECTION SUBTITLE ──────────────────────────────────────── */
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 8px auto 0;
  line-height: 1.7;
  text-align: center;
}

/* ─── HERO SCROLL INDICATOR ─────────────────────────────────── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
}
.hero-scroll-indicator span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(201,168,76,0.7);
  border-bottom: 2px solid rgba(201,168,76,0.7);
  transform: rotate(45deg);
  animation: chevron-fade 2s ease infinite;
}
.hero-scroll-indicator span:nth-child(1) { animation-delay: 0s; }
.hero-scroll-indicator span:nth-child(2) { animation-delay: 0.18s; }
.hero-scroll-indicator span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chevron-fade {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.9; }
}

/* ─── AYAT STRIP ─────────────────────────────────────────────── */
.ayat-strip {
  background: var(--ink-deep);
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  flex-wrap: wrap;
  min-height: 58px;
}
body:not(.dark-mode) .ayat-strip {
  background: #2a1d06;
}
.ayat-label {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 5px;
  padding: 3px 10px;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.ayat-rotate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}
.ayat-item {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ayat-item.active {
  display: flex;
  opacity: 1;
}
.ayat-ar {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  direction: rtl;
  line-height: 1.5;
  text-align: center;
}
.ayat-ref {
  font-size: 0.77rem;
  color: var(--gold);
  letter-spacing: 0.4px;
  font-weight: 500;
}

/* ─── PROGRAM UNGGULAN ───────────────────────────────────────── */
.program-section {
  padding: 88px 5%;
  background: var(--cream);
}
body.dark-mode .program-section {
  background: #100e0a;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 40px auto 0;
}
.program-card {
  background: white;
  border: 1px solid rgba(201,168,76,0.14);
  border-radius: 18px;
  padding: 30px 26px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.program-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.program-card:hover::after { opacity: 1; }
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(201,168,76,0.13);
  border-color: rgba(201,168,76,0.30);
}
body.dark-mode .program-card {
  background: rgba(255,255,255,0.035);
  border-color: rgba(201,168,76,0.10);
}
body.dark-mode .program-card:hover {
  background: rgba(255,255,255,0.065);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.program-icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  border: 1.5px solid rgba(201,168,76,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201,168,76,0.07);
  flex-shrink: 0;
}
.program-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-deep);
  margin: 0;
}
body.dark-mode .program-card h4 { color: rgba(255,255,255,0.93); }
.program-card p {
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.program-freq {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(201,168,76,0.09);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 4px 10px;
  border-radius: 99px;
  align-self: flex-start;
}


/* ─── CABINET CARDS ──────────────────────────────────────────── */
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 5%;
}

.cabinet-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.cabinet-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 56px rgba(13,11,8,0.18);
}
.cabinet-card:hover .cabinet-overlay {
  background: linear-gradient(to top, rgba(13,11,8,0.92) 0%, rgba(13,11,8,0.30) 60%, transparent 100%);
}
.cabinet-card:hover .cabinet-num {
  opacity: 0.55;
}

/* Gradient thumbs (replace with real photos later) */
.cabinet-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 18px;
  transition: transform 0.5s ease;
}
.cabinet-card:hover .cabinet-thumb { transform: scale(1.06); }

.cabinet-thumb--bph     { background: linear-gradient(135deg, #1a1408 0%, #4a3210 50%, var(--gold) 100%); }
.cabinet-thumb--tarbiyah{ background: linear-gradient(135deg, #1a1408 0%, #4a3210 50%, var(--gold) 100%); }
.cabinet-thumb--dakwah  { background: linear-gradient(135deg, #1a1408 0%, #4a3210 50%, var(--gold) 100%); }
.cabinet-thumb--pdd     { background: linear-gradient(135deg, #1a1408 0%, #4a3210 50%, var(--gold) 100%); }
.cabinet-thumb--sarpras { background: linear-gradient(135deg, #1a1408 0%, #4a3210 50%, var(--gold) 100%); }
.cabinet-thumb--majelis { background: linear-gradient(135deg, #1a1408 0%, #4a3210 50%, var(--gold) 100%); }

.cabinet-num {
  font-family: 'Amiri', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  line-height: 1;
  transition: opacity 0.3s ease;
  user-select: none;
}

.cabinet-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,11,8,0.80) 0%, rgba(13,11,8,0.10) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  transition: background 0.35s ease;
}

.cabinet-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ─── DEPT MODAL ─────────────────────────────────────────────── */
.dept-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,11,8,0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.dept-modal-overlay.active {
  opacity: 1; pointer-events: auto;
}

.dept-modal-card {
  background: var(--cream-card);
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.dept-modal-overlay.active .dept-modal-card {
  transform: translateY(0) scale(1);
}
body.dark-mode .dept-modal-card {
  background: #1a1714;
  border: 1px solid rgba(201,168,76,0.15);
}

.dept-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 1.4rem; line-height: 1;
  cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.dept-modal-close:hover { background: rgba(255,255,255,0.32); }

.dept-modal-banner {
  height: 200px;
  border-radius: 24px 24px 0 0;
  display: flex; align-items: flex-end;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.dept-modal-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,11,8,0.85) 0%, rgba(13,11,8,0.20) 60%, transparent 100%);
}
.dept-modal-num {
  position: absolute; top: 18px; left: 24px;
  font-family: 'Amiri', serif; font-size: 5rem; font-weight: 700;
  color: rgba(255,255,255,0.15); line-height: 1;
  z-index: 1; user-select: none;
}
.dept-modal-banner-text {
  position: relative; z-index: 2;
}
.dept-modal-banner-text h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: white; margin-bottom: 4px;
}
.dept-modal-banner-text p {
  font-size: 0.88rem; color: rgba(255,255,255,0.75);
  line-height: 1.5; max-width: 440px;
}

.dept-modal-body {
  padding: 24px 28px 28px;
}
.dept-modal-lead {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}

.dept-member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dept-member-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.dept-member-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif; font-size: 1.4rem; font-weight: 700;
  color: white; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.dept-member-name {
  font-size: 0.76rem; font-weight: 600;
  color: var(--text-main); line-height: 1.3;
}
.dept-member-role {
  font-size: 0.68rem; color: var(--gold);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ─── RESPONSIVE CABINET ─────────────────────────────────────── */
@media (max-width: 768px) {
  .cabinet-grid { grid-template-columns: repeat(2, 1fr); padding: 0 4%; gap: 14px; }
  .dept-member-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .cabinet-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dept-member-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-modal-banner { height: 160px; }
  .dept-modal-banner-text h3 { font-size: 1.3rem; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .prayer-container { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .prayer-container { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .prayer-container { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .nav-actions #langBtn { display: none; }
  .grid-container { flex-direction: column; align-items: center; }
  .dept-card { width: 100%; max-width: 100%; }
  .prayer-container { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-scroll-indicator { bottom: 20px; }
  .ayat-strip { padding: 12px 4%; }
}
@media (max-width: 480px) {
  .prayer-container { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; }
  .footer-socials { flex-wrap: wrap; }
  .stats-container { grid-template-columns: 1fr 1fr; gap: 14px; }
  .counter { font-size: 2.4rem; }
  .program-grid { grid-template-columns: 1fr; }
}
/* ─── GALLERY UPGRADE ─── */
.gallery-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 30px auto 0;
}

.gallery-feed-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-img-container {
  width: 100%;
  height: 100%;
}

.gallery-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(13, 11, 8, 0.7); /* Mengikuti warna --ink */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.overlay-info {
  color: var(--white);
  font-weight: 700;
  display: flex;
  gap: 20px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

/* Hover Effects */
.gallery-feed-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-feed-item:hover img {
  transform: scale(1.1);
}

.gallery-feed-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-feed-item:hover .overlay-info {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .gallery-feed-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
}
@media (max-width: 480px) {
  .gallery-feed-grid { grid-template-columns: 1fr; }
}

/* ─── PEMBERITAAN / ARTIKEL ─── */
.news-card {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--gold);
}

.news-content { padding: 20px; }

.news-date {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.news-title {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Modal Artikel Khusus */
.article-modal-content {
  max-width: 800px;
  padding: 0;
  overflow-y: auto;
  max-height: 90vh;
  background: var(--cream);
}

.article-hero-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.article-body { padding: 30px 40px; }

.article-meta {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 10px;
}

.article-main-title {
  font-family: 'Amiri', serif;
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 25px;
  line-height: 1.3;
}

.article-full-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-main);
  font-size: 1.05rem;
}

/* Sinkronisasi Mode Gelap */
body.dark-mode .news-card, body.dark-mode .article-modal-content {
  background: var(--ink-deep);
  border-color: rgba(201, 168, 76, 0.25);
}
body.dark-mode .news-title, body.dark-mode .article-main-title { color: var(--gold-pale); }
body.dark-mode .news-excerpt, body.dark-mode .article-full-content p { color: var(--white); }
#berita .section-header {
  text-align: center;
  margin-bottom: 40px;
}
#berita .section-header .line {
  margin: 15px auto; 
}
#program .section-header {
  text-align: center;
  margin-bottom: 40px;
}
#program .section-header .line {
  margin: 15px auto;
}