/* ============================================================
   Pondok Pesantren Tahfidzul Qur'an Azzahir — Complete Redesign
   Fonts: Plus Jakarta Sans · Amiri · Space Grotesk
   Palette: Islamic Gold / Emerald Teal / Cream
   ============================================================ */

/* ===== Imports ===== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  /* --- Brand Colors (Palette Sesuai Gambar) --- */
  --primary: #235347;
  --primary-dark: #163832;
  --primary-darker: #0B2B26;
  --primary-deepest: #051F20;
  --primary-light: #2E6A5B;
  --primary-lighter: #8EB69B;
  --primary-bg: #DAF1DE;
  --primary-glow: rgba(35, 83, 71, 0.25);

  /* --- Secondary & Sage/Mint Accents --- */
  --sage: #8EB69B;
  --sage-light: #B4D1BD;
  --mint: #DAF1DE;
  --mint-soft: #EEF8F1;

  /* --- Gold / Accent --- */
  --gold: #C89B3C;
  --gold-light: #E9D6A6;
  --gold-lighter: #F5EDD0;
  --gold-dark: #A67C28;
  --gold-darker: #7A5A1A;
  --gold-glow: rgba(200, 155, 60, 0.3);
  --gold-gradient: linear-gradient(135deg, #C89B3C, #E9D6A6);

  /* --- Text --- */
  --ink: #051F20;
  --ink-soft: #163832;
  --ink-muted: #53756C;
  --white: #FFFFFF;
  --white-soft: #F8FAFC;

  /* --- Backgrounds --- */
  --bg: #F7FAF8;
  --bg-card: #FFFFFF;
  --bg-alt: #EFF6F1;
  --bg-dark: #0B2B26;
  --bg-darker: #051F20;

  /* --- Borders --- */
  --border: #D3E5D8;
  --border-light: #E6F2EA;
  --border-gold: #E9D6A6;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 3px rgba(5,31,32,0.04), 0 1px 2px rgba(5,31,32,0.03);
  --shadow-sm: 0 2px 8px rgba(5,31,32,0.05), 0 1px 3px rgba(5,31,32,0.03);
  --shadow-md: 0 4px 20px rgba(5,31,32,0.06), 0 2px 8px rgba(5,31,32,0.04);
  --shadow-lg: 0 8px 32px rgba(5,31,32,0.08), 0 4px 16px rgba(5,31,32,0.05);
  --shadow-xl: 0 16px 48px rgba(5,31,32,0.1), 0 8px 24px rgba(5,31,32,0.06);
  --shadow-2xl: 0 24px 64px rgba(5,31,32,0.12), 0 12px 32px rgba(5,31,32,0.08);
  --shadow-gold: 0 4px 20px rgba(200,155,60,0.2);
  --shadow-gold-lg: 0 8px 32px rgba(200,155,60,0.25);
  --shadow-primary: 0 4px 20px rgba(11,43,38,0.2);
  
  /* --- Radius --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
  --transition-bounce: 0.5s cubic-bezier(0.34,1.56,0.64,1);

  /* --- Fonts --- */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Amiri', serif;
  --font-mono: 'Space Grotesk', sans-serif;

  /* --- Backward-compatible aliases (old variable names) --- */
  --text-dark: var(--ink);
  --text-body: var(--ink-soft);
  --text-muted: var(--ink-muted);
  --text-light: var(--white);
  --text-soft: var(--white-soft);
  --bg-body: var(--bg);
  --bg-section: var(--bg-alt);
  --bg-card: #FFFFFF;
  --bg-footer: var(--bg-dark);
  --accent-soft: var(--gold-light);

  /* --- Layout --- */
  --max-width: 1200px;
  --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; scroll-padding-top:calc(var(--header-height) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--gold); color: var(--white); }

a { color: var(--primary); text-decoration:none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width:100%; height:auto; display:block; }
ul { list-style:none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.calli-mark {
  font-family: var(--font-arabic);
  font-size: 32px;
  color: var(--gold);
  display: block;
  line-height: 1.4;
  font-style: italic;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { justify-content: center; }

.section-head h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.08rem;
  max-width: 620px;
  line-height: 1.8;
}

.section-head.center p { margin: 0 auto; }

/* ===== Ornament Divider ===== */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.ornament-divider .line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-divider svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.6s;
}

.btn:hover::after { left: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(35,83,71,0.35);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-dark {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(11,43,38,0.4);
  color: var(--white);
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(232,226,212,0.5);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn { padding: 10px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-toggle:hover { background: var(--primary-bg); }

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 4px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #051F20 0%, #0B2B26 30%, #163832 65%, #235347 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-pattern-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(200,155,60,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(233,214,166,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(200,155,60,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-dome-wrap {
  position: absolute;
  right: -8%;
  top: 10%;
  width: 42%;
  height: 90%;
  opacity: 0.08;
  pointer-events: none;
}

@media (max-width: 992px) {
  .hero-dome-wrap { display: none; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-star {
  position: absolute;
  width: 18px;
  height: 18px;
  animation: starFloat 8s ease-in-out infinite;
  opacity: 0.5;
}

.hero-star:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; width: 14px; }
.hero-star:nth-child(2) { top: 25%; left: 25%; animation-delay: 1.5s; width: 10px; }
.hero-star:nth-child(3) { top: 60%; left: 8%; animation-delay: 3s; width: 16px; }
.hero-star:nth-child(4) { top: 75%; left: 20%; animation-delay: 0.8s; width: 12px; }
.hero-star:nth-child(5) { top: 35%; left: 60%; animation-delay: 2.2s; width: 11px; }
.hero-star:nth-child(6) { top: 70%; left: 55%; animation-delay: 4s; width: 15px; }
.hero-star:nth-child(7) { top: 45%; left: 75%; animation-delay: 1s; width: 13px; }
.hero-star:nth-child(8) { top: 20%; left: 80%; animation-delay: 3.5s; width: 9px; }

@keyframes starFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
  25% { transform: translateY(-12px) rotate(90deg); opacity: 0.8; }
  50% { transform: translateY(-6px) rotate(180deg); opacity: 0.6; }
  75% { transform: translateY(-18px) rotate(270deg); opacity: 0.9; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy { animation: fadeInUp 0.8s ease; }

.hero .calli-mark {
  font-size: 36px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 12px var(--gold-glow));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; animation: lineReveal 0.8s ease both; }
.hero h1 .line:nth-child(1) span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.25s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.4s; }

@keyframes lineReveal {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 520px;
}

.hero-stats .stat {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.hero-stats .stat:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Hero Visual Card ===== */
.hero-visual { animation: fadeInUp 0.8s ease 0.3s both; }

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(200,155,60,0.08);
  aspect-ratio: 3/4;
  max-height: 580px;
}

.hero-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.hero-card:hover .hero-card-bg { transform: scale(1.05); }

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,31,32,0.92) 100%);
}

.hero-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  color: var(--white);
}

.hero-card-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero-card-content h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.hero-card-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.about-gallery {
  position: absolute;
  bottom: 120px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.about-gallery-item {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.about-gallery-item:hover {
  transform: scale(1.15);
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.about-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.about-gallery-caption {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: var(--transition);
}

.about-gallery-item:hover .about-gallery-caption { opacity: 1; bottom: -26px; }

/* ===== Pattern Strip ===== */
.pattern-strip {
  height: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold), var(--gold-light));
  background-size: 300% 100%;
  animation: gradientMove 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.pattern-strip .track {
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.15) 20px,
    rgba(255,255,255,0.15) 22px
  );
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== About Section ===== */
#tentang {
  padding: 100px 0;
  position: relative;
  min-height: 500px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jenjang-frame-photo {
  max-height: 500px;
  border: 4px solid var(--gold-light);
}

.quote-chip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(11,43,38,0.92));
  color: var(--gold-light);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--font-arabic);
  text-align: center;
}

.about-body h2 { font-size: 2rem; }

.about-body p {
  color: var(--ink-muted);
  line-height: 1.85;
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.pillar-mini {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.pillar-mini:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

.pillar-mini .ico {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--gold-lighter);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.pillar-mini h4 { font-size: 0.95rem; margin-bottom: 2px; }
.pillar-mini p { font-size: 0.82rem; color: var(--ink-muted); margin: 0; }

/* ===== Programs Section ===== */
.bg-alt {
  background: var(--bg-alt);
  padding: 100px 0;
}

.bg-alt:nth-child(even) { background: var(--bg); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.program-card:hover::before { transform: scaleX(1); }

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

.program-card .num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}

.program-card .ico {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(200,155,60,0.15);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-lighter);
}

.program-card .ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.program-card:hover .ico {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 6px 24px rgba(200,155,60,0.25);
}

.program-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.program-card p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 20px; }

.program-card .learn {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.program-card .learn:hover { gap: 10px; color: var(--gold-dark); }

/* ===== Impact Stats ===== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-item {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, var(--bg-card), var(--gold-lighter));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  transition: var(--transition);
}

.impact-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.impact-item .num {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.impact-item .label {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===== Tab Navigation ===== */
.curriculum-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: transparent;
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}

.tab-panel { display: none; animation: fadeInUp 0.5s ease; }
.tab-panel.active { display: block; }

/* ===== Jenjang Subhead ===== */
.jenjang-subhead {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.jenjang-subhead .badge {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: var(--gold-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.5rem;
}

.jenjang-subhead h3 { font-size: 1.5rem; margin-bottom: 6px; }
.jenjang-subhead p { color: var(--ink-muted); font-size: 0.95rem; }

/* ===== Section Label ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  margin-top: 48px;
}

.section-label span:first-child {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  white-space: nowrap;
}

.section-label .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

/* ===== Timeline / Schedule ===== */
.schedule-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.schedule-block h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--primary-bg));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--gold-lighter);
}

.timeline-item:last-child { margin-bottom: 0; }

.tl-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.tl-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.tl-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.tl-desc ul { padding-left: 20px; margin-top: 8px; }
.tl-desc ul li { list-style: disc; margin-bottom: 4px; font-size: 0.88rem; }

/* ===== Program Highlight ===== */
.program-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.program-highlight-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.program-highlight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ph-top .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.ph-top .freq {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-lighter);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.ph-body h4 { font-size: 1.05rem; margin-bottom: 8px; }
.ph-body p { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.7; }

/* ===== Activity Cards ===== */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.activity-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.activity-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 0;
}

.activity-card-head .icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.activity-card-head h4 { font-size: 1rem; margin-bottom: 2px; }
.activity-card-head .time { font-size: 0.78rem; color: var(--ink-muted); }

.activity-card-body {
  padding: 16px 20px 20px;
}

.activity-card-body p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ===== Ekstrakurikuler ===== */
.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ekskul-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.ekskul-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.ekskul-card .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: var(--gold-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.2rem;
}

.ekskul-card .info h5 { font-size: 1rem; margin-bottom: 2px; }
.ekskul-card .info .meta { font-size: 0.78rem; color: var(--gold); font-weight: 500; margin-bottom: 6px; }
.ekskul-card .info p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.6; }

/* ===== Achievement ===== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.achievement-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.achievement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.achievement-card .trophy {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255,165,0,0.3);
}

.ac-info h4 { font-size: 1rem; margin-bottom: 4px; }
.ac-event { font-size: 0.82rem; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.ac-desc { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.6; }

/* ===== Team / Structure ===== */
#struktur { padding: 100px 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 24px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--gold-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gold);
  transition: var(--transition);
  border: 3px solid var(--gold-light);
}

.team-card:hover .team-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-lighter);
}

.team-card h4 { font-size: 1.05rem; margin-bottom: 4px; }

.team-role {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-lighter);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.team-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: var(--transition);
}

.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item .gallery-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--gold-light);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.gallery-item span {
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.gallery-item.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.gallery-item.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 31, 32, 0.65), rgba(5, 31, 32, 0.05));
  z-index: 1;
}

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.news-thumb {
  height: 200px;
  background: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-thumb img { transform: scale(1.08); }

.news-body {
  padding: 24px;
}

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

.news-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--primary); }

.news-body p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ===== Donate / Infaq ===== */
#infaq { padding: 100px 0; }

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.donate-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 2px dashed var(--border-gold);
  transition: var(--transition);
}

.donate-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
  transform: translateY(-6px);
}

.donate-card .bank {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
}

.donate-card .acc {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.donate-card .acc:hover { color: var(--primary-light); }

.donate-card .owner {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.copy-btn {
  padding: 8px 20px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-btn:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}

/* ===== FAQ ===== */
#faq { padding: 100px 0; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-q:hover { color: var(--gold-dark); }

.faq-icon {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 300;
  transition: var(--transition);
  min-width: 30px;
  text-align: center;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.faq-item.open .faq-a {
  max-height: 2000px;
  padding-bottom: 24px;
}

.faq-a p {
  color: var(--ink-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-detail { font-size: 0.95rem; color: var(--ink-muted); }

.faq-intro { margin-bottom: 16px; }

.faq-jenjang {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

.faq-jenjang h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.faq-sub-label {
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.faq-jenjang ul { padding-left: 20px; }
.faq-jenjang ul li { list-style: disc; margin-bottom: 4px; font-size: 0.88rem; }

/* ===== Contact / Form ===== */
#kontak { padding: 100px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}

.contact-info-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.contact-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-row:hover { transform: translateX(6px); }

.contact-row .ico {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.contact-row div { display: flex; flex-direction: column; gap: 2px; }
.contact-row strong { font-size: 0.88rem; color: var(--ink); }
.contact-row span { font-size: 0.88rem; color: var(--ink-muted); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1rem;
  transition: var(--transition);
}

.social-row a:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ===== Form Card ===== */
.form-card {
  background: var(--bg-card);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,155,60,0.1);
  background: var(--bg-card);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-muted); }

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%238A8A9A' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-field textarea { resize: vertical; min-height: 100px; }

.err { font-size: 0.78rem; color: #dc3545; min-height: 18px; }

/* ===== Upload Box ===== */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.upload-box:hover { border-color: var(--gold); background: var(--gold-lighter); }

.upload-box input[type="file"] { display: none; }

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gold-lighter);
  color: var(--gold-dark);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.upload-btn:hover {
  background: var(--gold);
  color: var(--white);
}

.upload-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 12px;
}

.upload-list {
  margin-top: 12px;
  text-align: left;
}

.upload-list .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.upload-list .file-item .remove {
  color: #dc3545;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.upload-list .file-item .remove:hover { transform: scale(1.2); }

/* ===== Form Message ===== */
.form-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  display: none;
}

.form-msg.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-msg.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold), var(--gold-light));
  background-size: 300% 100%;
  animation: gradientMove 4s ease infinite;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-top: 12px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold-light);
  padding-left: 6px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }

.newsletter-form button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Utility Classes ===== */
.hidden { display: none !important; }

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast.show { transform: translateY(0); opacity: 1; }

.toast.success { background: var(--primary); }
.toast.error { background: #dc3545; }

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-gold-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(200,155,60,0.4); }

/* ===== Admin Dashboard Enhanced ===== */

/* --- Admin Layout --- */
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  animation: statFadeIn 0.6s ease both;
}

.admin-stat-card:nth-child(1) { animation-delay: 0.05s; }
.admin-stat-card:nth-child(2) { animation-delay: 0.15s; }
.admin-stat-card:nth-child(3) { animation-delay: 0.25s; }
.admin-stat-card:nth-child(4) { animation-delay: 0.35s; }

@keyframes statFadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.03;
  transition: var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--border-gold);
}

.admin-stat-card:hover .admin-stat-icon { transform: scale(1.12) rotate(-4deg); }

.admin-stat-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.admin-stat-icon.green  { background: #e8f5e9; color: #2e7d32; }
.admin-stat-icon.gold   { background: var(--gold-lighter); color: var(--gold-dark); }
.admin-stat-icon.blue   { background: #e3f2fd; color: #1565c0; }
.admin-stat-icon.red    { background: #fce4ec; color: #c62828; }

.admin-stat-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.1;
}

.admin-stat-info p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* --- Admin Table --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-soft);
  transition: var(--transition);
}

.admin-table tbody tr {
  transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
  background: var(--primary-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.admin-table tbody tr:last-child td { border-bottom: none; }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-danger  { background: #fce4ec; color: #c62828; }

/* --- Admin Gallery Card --- */
.admin-card .gallery-item-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* --- Alert Messages --- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInAlert 0.4s ease;
}

@keyframes slideInAlert {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.alert-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
  box-shadow: 0 2px 12px rgba(46,125,50,0.1);
}

.alert-error {
  background: #fce4ec;
  color: #b71c1c;
  border: 1px solid #f8bbd0;
  box-shadow: 0 2px 12px rgba(198,40,40,0.1);
}

/* --- Form Controls --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,155,60,0.1);
  background: var(--bg-card);
}

/* --- Admin Card Title --- */
.admin-card h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Inner Page Hero ===== */
.page-hero {
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-darker) 0%, var(--bg-dark) 40%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(200,155,60,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(233,214,166,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(200,155,60,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.page-hero .hero-pattern-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Decorative top gold line */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}

.page-hero .container {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: heroFadeIn 0.8s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero .calli-mark {
  font-size: 26px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.9;
  filter: drop-shadow(0 2px 12px var(--gold-glow));
  animation: heroFadeIn 0.8s ease 0.1s both;
}

.page-hero .page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 16px;
  animation: heroFadeIn 0.8s ease 0.15s both;
}

.page-hero .page-kicker::before,
.page-hero .page-kicker::after {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.6;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  animation: heroFadeIn 0.8s ease 0.2s both;
}

.page-hero .page-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  animation: heroFadeIn 0.8s ease 0.25s both;
}

/* Floating decorative dots */
.page-hero .hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero .hero-dots span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.15;
  animation: dotFloat 6s ease-in-out infinite;
}

.page-hero .hero-dots span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.page-hero .hero-dots span:nth-child(2) { top: 60%; left: 5%; animation-delay: 1.2s; width: 4px; height: 4px; }
.page-hero .hero-dots span:nth-child(3) { top: 30%; right: 12%; animation-delay: 2.4s; }
.page-hero .hero-dots span:nth-child(4) { top: 70%; right: 8%; animation-delay: 0.8s; width: 4px; height: 4px; }
.page-hero .hero-dots span:nth-child(5) { top: 15%; right: 25%; animation-delay: 3.2s; width: 5px; height: 5px; }
.page-hero .hero-dots span:nth-child(6) { top: 80%; left: 20%; animation-delay: 2s; width: 5px; height: 5px; }

@keyframes dotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
  50% { transform: translateY(-15px) scale(1.5); opacity: 0.3; }
}

/* ===== Login Page ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #051F20, #0B2B26, #163832);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(200,155,60,0.08) 0%, transparent 60%);
}

.login-card {
  background: var(--bg-card);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  animation: fadeInScale 0.5s ease;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.login-card .text-center { text-align: center; margin-bottom: 32px; }

.login-card .text-center img {
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.login-card .text-center h2 { font-size: 1.5rem; color: var(--primary); }
.login-card .text-center p { color: var(--ink-muted); font-size: 0.9rem; }

.login-card .form-group { margin-bottom: 20px; }
.login-card .form-group label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.88rem; }

.login-card .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
  background: var(--bg);
}

.login-card .form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,155,60,0.1);
}

.login-card .btn { width: 100%; padding: 14px; font-size: 1rem; }

.login-footer { text-align: center; margin-top: 20px; color: var(--ink-muted); font-size: 0.85rem; }
.login-footer a { color: var(--primary); font-weight: 600; }
.login-footer a:hover { color: var(--primary-light); }

/* ===== Admin Panel ===== */
.admin-body { display: flex; min-height: 100vh; background: var(--bg); }

.admin-sidebar {
  width: 270px;
  background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0,0,0,0.12);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

.admin-sidebar-header {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.brand-mini-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.brand-full-text {
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.brand-full-text h3 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-full-text span {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  font-size: 0.85rem;
}

.sidebar-collapse-btn:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  transform: scale(1.05);
}

.admin-sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; overflow-x: hidden; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.admin-nav-item i {
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.admin-nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}

.admin-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-left-color: var(--gold);
}

.admin-nav-item.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-left-color: var(--gold);
  font-weight: 600;
}

.admin-sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  overflow: hidden;
}

.admin-main {
  flex: 1;
  margin-left: 270px;
  padding: 32px;
  min-height: 100vh;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== COLLAPSED SIDEBAR STATE (Dikecilkan) ===== */
body.sidebar-collapsed .admin-sidebar {
  width: 78px;
}

body.sidebar-collapsed .admin-main {
  margin-left: 78px;
}

body.sidebar-collapsed .admin-sidebar-header {
  padding: 20px 10px;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

body.sidebar-collapsed .brand-full-text {
  display: none;
}

body.sidebar-collapsed .sidebar-collapse-btn i {
  transform: rotate(180deg);
}

body.sidebar-collapsed .admin-nav-item {
  padding: 14px 0;
  justify-content: center;
  gap: 0;
}

body.sidebar-collapsed .admin-nav-item span {
  display: none;
}

body.sidebar-collapsed .user-info-text,
body.sidebar-collapsed .security-badge {
  display: none !important;
}

body.sidebar-collapsed .user-profile-row {
  justify-content: center !important;
  padding: 10px 0 !important;
}

/* Mobile top bar */
.mobile-admin-bar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  margin: -32px -32px 24px -32px;
}

.mobile-sidebar-toggle-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 95;
  backdrop-filter: blur(2px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 { font-size: 1.8rem; letter-spacing: -0.03em; }

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.admin-stat-icon.green { background: var(--primary-bg); color: var(--primary); }
.admin-stat-icon.gold { background: var(--gold-lighter); color: var(--gold-dark); }
.admin-stat-icon.blue { background: #E3F2FD; color: #1565C0; }
.admin-stat-icon.red { background: #FFEBEE; color: #C62828; }

.admin-stat-info h3 { font-size: 1.8rem; margin-bottom: 2px; }
.admin-stat-info p { color: var(--ink-muted); font-size: 0.85rem; }

/* ===== Tables ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--gold-lighter);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.admin-table tbody tr:hover { background: var(--bg-alt); }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }

.action-buttons { display: flex; gap: 8px; }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-icon:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-icon.danger:hover { background: #dc3545; border-color: #dc3545; color: var(--white); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination ul { display: flex; gap: 6px; list-style: none; }

.page-item.disabled .page-link { opacity: 0.4; cursor: not-allowed; }

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
}

.page-item:not(.disabled) .page-link:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.page-item.active .page-link { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ===== Alert ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.9rem;
}

.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .page-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-lead { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { margin: 0 auto; max-width: 400px; gap: 10px; }
  .hero-stats .stat-num { font-size: 1.3rem; }
  .hero h1 { font-size: 2.4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
  body.sidebar-collapsed .admin-sidebar { width: 78px; }
  body.sidebar-collapsed .admin-main { margin-left: 78px; }
  .section-head h2 { font-size: 1.9rem; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 2.2rem; }
  .page-hero .page-desc { font-size: 1rem; }
  .page-hero { min-height: 32vh; padding: 90px 0 50px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    padding: 90px 28px 28px;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    gap: 4px;
  }

  .nav-links.active .nav-link { width: 100%; padding: 14px 18px; border-radius: var(--radius-sm); }

  .hero h1 { font-size: 1.9rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero .calli-mark { font-size: 28px; }

  .section-head h2 { font-size: 1.6rem; }
  .about-pillars { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .mobile-admin-bar { display: flex; }
  .admin-sidebar {
    width: 270px !important;
    position: fixed !important;
    top: 0; left: -290px !important; bottom: 0;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000;
  }
  body.sidebar-mobile-open .admin-sidebar {
    left: 0 !important;
  }
  body.sidebar-mobile-open .sidebar-backdrop {
    display: block !important;
  }
  .admin-main { margin-left: 0 !important; padding: 20px 16px; }
  .admin-body { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }

  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .impact-item .num { font-size: 2.2rem; }

  .curriculum-nav { gap: 6px; }
  .tab-btn { padding: 10px 20px; font-size: 0.82rem; }

  .faq-q { font-size: 0.95rem; }

  .contact-info-card { padding: 28px 24px; }
  .form-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .program-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .impact-grid { grid-template-columns: 1fr; }
  .ekskul-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .program-highlight-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero { min-height: 24vh; padding: 70px 0 32px; }
  .page-hero .page-kicker { font-size: 0.7rem; letter-spacing: 2px; }
  .page-hero .page-kicker::before,
  .page-hero .page-kicker::after { width: 16px; }
}
