/* ==========================================================================
   MARHALA 36 — PONDOK PESANTREN DARULARAFAH RAYA
   Dokumentasi Resmi Angkatan 36 • Kelas Akhir
   Tema: Merah Crimson Elegan & Putih Bersih (Profesional Light Mode)
   ========================================================================== */

:root {
  /* Palet Warna Utama: Merah Marun & Putih Bersih */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-header: rgba(255, 255, 255, 0.95);
  
  --red-primary: #dc2626;
  --red-dark: #991b1b;
  --red-deeper: #7f1d1d;
  --red-light: #fef2f2;
  --red-subtle: rgba(220, 38, 38, 0.08);
  --red-border: rgba(220, 38, 38, 0.22);
  --red-glow: 0 4px 20px rgba(220, 38, 38, 0.16);

  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-hover: #cbd5e1;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-serif: "Cinzel", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.3;
}

.font-serif {
  font-family: var(--font-serif);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: transparent;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   HEADER & NAVIGATION (MULTI-PAGE)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.site-header .container {
  max-width: 1400px;
  width: 100%;
  padding: 0 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 72px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-badge {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: 0.03em;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto;
    flex: 1;
    max-width: 820px;
    white-space: nowrap;
  }

  .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    padding: 6px 7px;
    position: relative;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background 0.25s ease;
  }

  .nav-link:hover {
    color: var(--red-primary);
    background: rgba(220, 38, 38, 0.05);
  }

  .nav-link.active {
    color: var(--red-primary);
    font-weight: 700;
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 6px;
    right: 6px;
    height: 2.5px;
    background: var(--red-primary);
    border-radius: 2px;
  }
}

@media (min-width: 1200px) {
  .desktop-nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.89rem;
    padding: 7px 9px;
  }
}

@media (min-width: 1360px) {
  .desktop-nav {
    gap: 1.35rem;
  }

  .nav-link {
    font-size: 0.93rem;
    padding: 8px 12px;
  }
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-title);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.icon-btn:hover {
  background: var(--red-light);
  color: var(--red-primary);
  border-color: var(--red-border);
  transform: translateY(-2px);
}

.audio-btn.playing {
  background: var(--red-light);
  color: var(--red-primary);
  border-color: var(--red-primary);
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-waves span {
  width: 2.5px;
  background: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.sound-waves span:nth-child(1) { height: 6px; }
.sound-waves span:nth-child(2) { height: 14px; }
.sound-waves span:nth-child(3) { height: 8px; }

.audio-btn.playing .sound-waves span {
  animation: wave 1.2s ease-in-out infinite;
}

.audio-btn.playing .sound-waves span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.audio-btn.playing .sound-waves span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.audio-btn.playing .sound-waves span:nth-child(3) { height: 8px; animation-delay: 0.2s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ==========================================================================
   TRANSPARENT HERO NAVBAR (INDEX.HTML DENGAN VIDEO BACKGROUND)
   ========================================================================== */
.site-header.header-hero-transparent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  pointer-events: auto;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Posisi Di Paling Atas (Transparan Elegan Menampakkan Video Klip di Belakangnya - Ringan Tanpa Lag) */
.site-header.header-hero-transparent.header-on-top {
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.88) 0%, rgba(8, 12, 22, 0.5) 65%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.site-header.header-hero-transparent.header-on-top .brand-logo-img {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.75));
}

.site-header.header-hero-transparent.header-on-top .brand-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.site-header.header-hero-transparent.header-on-top .brand-subtitle {
  color: #fca5a5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.site-header.header-hero-transparent.header-on-top .desktop-nav .nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  pointer-events: auto;
}

.site-header.header-hero-transparent.header-on-top .desktop-nav .nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.site-header.header-hero-transparent.header-on-top .desktop-nav .nav-link.active {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(220, 38, 38, 0.8);
}

.site-header.header-hero-transparent.header-on-top .desktop-nav .nav-link.active::after {
  background: #ef4444;
}

.site-header.header-hero-transparent.header-on-top .icon-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  pointer-events: auto;
}

.site-header.header-hero-transparent.header-on-top .icon-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.55);
}

.site-header.header-hero-transparent.header-on-top .audio-btn.playing {
  background: rgba(220, 38, 38, 0.85);
  border-color: #ef4444;
  color: #ffffff;
}

/* 2. Saat Di-scroll ke Bawah (Transisi Halus Menjadi Putih Bersih Menyesuaikan Halaman) */
.site-header.header-hero-transparent.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.header-hero-transparent.header-scrolled .brand-logo-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.site-header.header-hero-transparent.header-scrolled .brand-title {
  color: var(--text-title);
  text-shadow: none;
}

.site-header.header-hero-transparent.header-scrolled .brand-subtitle {
  color: var(--red-primary);
  text-shadow: none;
}

.site-header.header-hero-transparent.header-scrolled .desktop-nav .nav-link {
  color: var(--text-body);
  text-shadow: none;
}

.site-header.header-hero-transparent.header-scrolled .desktop-nav .nav-link:hover {
  color: var(--red-primary);
}

.site-header.header-hero-transparent.header-scrolled .desktop-nav .nav-link.active {
  color: var(--red-primary);
  text-shadow: none;
}

.site-header.header-hero-transparent.header-scrolled .desktop-nav .nav-link.active::after {
  background: var(--red-primary);
  box-shadow: none;
}

.site-header.header-hero-transparent.header-scrolled .icon-btn {
  background: var(--bg-secondary);
  color: var(--text-title);
  border: 1px solid var(--border-color);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header.header-hero-transparent.header-scrolled .icon-btn:hover {
  background: var(--red-light);
  color: var(--red-primary);
  border-color: var(--red-border);
}

.site-header.header-hero-transparent.header-scrolled .audio-btn.playing {
  background: var(--red-light);
  color: var(--red-primary);
  border-color: var(--red-primary);
}

/* Penyesuaian Spasi Hero Banner saat Navigasi Transparan Melayang di Atas (Full Screen 100vh) */
body.has-hero-transparent-nav .home-hero-video-banner {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(72px + 2rem);
  padding-bottom: calc(56px + 2.5rem);
}

@media (max-width: 768px) {
  body.has-hero-transparent-nav .home-hero-video-banner {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(64px + 1.25rem);
    padding-bottom: calc(44px + 2rem);
  }
}

/* ==========================================================================
   PAGE HERO & HEADINGS
   ========================================================================== */
.page-hero {
  background: linear-gradient(to bottom, #ffffff 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.page-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.breadcrumb-nav a {
  color: var(--red-primary);
  font-weight: 600;
}

.breadcrumb-nav span {
  opacity: 0.6;
}

/* ==========================================================================
   HERO SECTION (HOME / INDEX.HTML)
   ========================================================================== */
/* ==========================================================================
   HERO VIDEO BANNER (HANYA SAMPAI KATA "SCHOOL")
   ========================================================================== */
.home-hero-video-banner {
  position: relative;
  overflow: hidden;
  background: #090d16;
  text-align: center;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: calc(72px + 2rem) 1.25rem calc(56px + 2.5rem);
  border-bottom: none;
}

.hero-video-transition {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 56px;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}

/* Indikator Gulir / Scroll ke Bawah (Full Screen Hero) */
.hero-scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.25s ease, opacity 0.25s ease;
  animation: heroBounce 2.4s ease-in-out infinite;
}

.hero-scroll-text {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.hero-scroll-indicator svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.hero-scroll-indicator:hover {
  color: #ffffff;
}

@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(7px);
  }
  60% {
    transform: translateX(-50%) translateY(3px);
  }
}

.hero-video-transition svg {
  position: relative;
  display: block;
  width: calc(100% + 2px);
  height: 100%;
  left: -1px;
}

.hero-video-transition::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.45));
  pointer-events: none;
}

.hero-video-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none; /* Menjamin scroll sentuh di ponsel/tablet lancar tanpa terhalang */
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 29, 0.65) 0%,
    rgba(10, 15, 29, 0.78) 45%,
    rgba(10, 15, 29, 0.90) 85%,
    #090d16 100%
  );
  pointer-events: none;
}

.hero-content-relative {
  position: relative;
  z-index: 2;
}

.home-hero-video-banner .hero-crest-badge {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.75rem;
}

.home-hero-video-banner .hero-main-title {
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.9);
  margin-bottom: 0;
}

.home-hero-video-banner .hero-main-title .serif-italic {
  color: #f87171;
  text-shadow: 0 4px 18px rgba(239, 68, 68, 0.5);
}

.home-hero-video-banner .hero-main-title .highlight-red-bar,
.home-hero-video-banner .hero-main-title .hero-title-accent {
  color: #ef4444;
  text-shadow: 0 2px 14px rgba(239, 68, 68, 0.45);
  font-weight: 900;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 0 1rem;
  }
  .header-inner {
    height: 64px;
    gap: 8px;
  }
  .brand-wrapper {
    gap: 8px;
    max-width: calc(100% - 92px);
  }
  .brand-logo-img {
    height: 38px;
    width: 38px;
  }
  .brand-title {
    font-size: 1.05rem;
    white-space: nowrap;
    line-height: 1.15;
  }
  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .home-hero-video-banner {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(64px + 1.25rem) 1rem calc(44px + 2rem);
  }
  .hero-video-transition {
    height: 40px;
  }
  .hero-scroll-indicator {
    bottom: 84px; /* Ditempatkan aman di atas .mobile-dock agar tidak tabrakan */
  }
  .hero-scroll-text {
    font-size: 0.68rem;
  }
  .home-hero-content-section {
    padding: 2.5rem 0 3.5rem;
  }
}

/* ==========================================================================
   HERO KONTEN (PUTIH BERSIH: KUTIPAN KATA-KATA, TOMBOL, HITUNG MUNDUR)
   ========================================================================== */
.home-hero-content-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  padding: 2.8rem 0 4rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  margin-top: -1px;
}

.hero-crest-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}

.hero-crest-img {
  height: 36px;
  width: auto;
}

.hero-crest-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-title);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-main-title .serif-italic {
  font-style: italic;
  font-weight: 800;
  text-transform: none;
  color: var(--red-primary);
}

.hero-main-title .highlight-red-bar,
.hero-main-title .hero-title-accent {
  display: inline-block;
  color: var(--red-primary);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-card-quote {
  max-width: 780px;
  margin: 0 auto 2.25rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--red-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.hero-card-quote p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: #ffffff;
  box-shadow: var(--red-glow);
  border: 1px solid var(--red-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.28);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-title);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--red-light);
  color: var(--red-primary);
  border-color: var(--red-border);
  transform: translateY(-2px);
}

/* Countdown Card */
.countdown-box {
  max-width: 660px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.countdown-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 8px;
}

.countdown-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-box-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--red-light);
  color: var(--red-primary);
  border-radius: var(--radius-full);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-cell {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.countdown-digit {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--red-primary);
  line-height: 1;
}

.countdown-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   CONTENT SECTIONS & GRIDS
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  flex: 1;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 0.4rem;
}

.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.6rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Featured Overview Cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.overview-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.overview-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-border);
  box-shadow: var(--shadow-lg);
}

.overview-icon-box {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-md);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.overview-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.overview-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.overview-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.overview-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ALUMNI DIRECTORY (ALUMNI.HTML)
   ========================================================================== */
.alumni-search-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
  .alumni-search-bar {
    flex-direction: row;
  }
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-title);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.form-input:focus {
  border-color: var(--red-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--red-subtle);
}

.count-info-pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.alumni-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.alumni-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-border);
  box-shadow: var(--shadow-md);
}

.alumni-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Pimpinan Marhala 36 Special Card (Ketua Angkatan) */
.alumni-card-ketua {
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.22) !important;
  position: relative;
  overflow: visible;
}

.alumni-card-ketua:hover {
  transform: translateY(-6px) !important;
  border-color: #d97706 !important;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.35) !important;
}

.alumni-card-ketua::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f59e0b 0%, #dc2626 50%, #f59e0b 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.alumni-card-ketua .alumni-photo-box {
  border: 3px solid #f59e0b !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25) !important;
}

.alumni-leader-badge-pill {
  position: absolute;
  top: -12px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

/* ==========================================================================
   PANGGUNG KEHORMATAN KETUA MARHALA 36 (SPECIAL SPOTLIGHT SHOWCASE)
   ========================================================================== */
.alumni-leader-spotlight-area {
  margin: 0 auto 2.5rem;
  max-width: 860px;
  width: 100%;
}

.alumni-leader-spotlight-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 45%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.25rem;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.18), 0 4px 12px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 2rem;
  transition: all var(--transition);
  overflow: hidden;
}

.alumni-leader-spotlight-card:hover {
  transform: translateY(-4px);
  border-color: #d97706;
  box-shadow: 0 22px 50px rgba(245, 158, 11, 0.28), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.alumni-leader-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f59e0b 0%, #dc2626 50%, #f59e0b 100%);
}

.alumni-leader-spotlight-card::after {
  content: '';
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-avatar-wrap {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto;
}

.spotlight-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  background: #ffffff;
}

.spotlight-crown-badge-anchor {
  position: absolute;
  bottom: 0;
  right: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.spotlight-info-body {
  text-align: left;
}

.spotlight-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  margin-bottom: 0.65rem;
}

.spotlight-name-text {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 4px;
}

.spotlight-desc-text {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.spotlight-quote-text {
  font-size: 0.88rem;
  font-style: italic;
  color: #334155;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.75);
  border-left: 3px solid #f59e0b;
  padding: 8px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.15rem;
}

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

.spotlight-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.spotlight-like-btn:hover, .spotlight-like-btn.liked {
  color: var(--red-primary);
  background: var(--red-light);
  border-color: var(--red-border);
  transform: translateY(-2px);
}

.spotlight-like-btn.liked svg {
  fill: var(--red-primary);
  stroke: var(--red-primary);
}

.spotlight-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--red-glow);
}

.spotlight-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

@media (max-width: 680px) {
  .alumni-leader-spotlight-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.25rem 1.5rem;
    gap: 1.25rem;
  }

  .spotlight-info-body {
    text-align: center;
  }

  .spotlight-quote-text {
    border-left: none;
    border-top: 2px solid #f59e0b;
    border-radius: var(--radius-sm);
  }

  .spotlight-actions-row {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.alumni-subheading-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 2rem;
  position: relative;
}

.alumni-subheading-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.alumni-subheading-text {
  position: relative;
  z-index: 2;
  background: var(--bg-body);
  padding: 5px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

@keyframes shimmerPulse {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spinPulse {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.alumni-photo-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--red-border);
  padding: 3px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #f8fafc 25%, #e2e8f0 50%, #f8fafc 75%);
  background-size: 200% 100%;
  animation: shimmerPulse 1.8s infinite linear;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alumni-photo-box.loaded {
  animation: none;
  background: #ffffff;
}

.alumni-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.alumni-photo-img.loaded {
  opacity: 1;
}

.alumni-student-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 2px;
  line-height: 1.3;
}

.alumni-status-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.alumni-card-action {
  width: 100%;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  margin-top: auto;
}

.btn-detail {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-primary);
  background: var(--red-light);
  border: 1px solid var(--red-border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.btn-detail:hover {
  background: var(--red-primary);
  color: #ffffff;
}

/* ==========================================================================
   PHOTO GALLERY (GALERI.HTML)
   ========================================================================== */
.gallery-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.pill-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.pill-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-title);
}

.pill-btn.active {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: #ffffff;
  border-color: var(--red-dark);
  box-shadow: var(--red-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: all var(--transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-border);
  box-shadow: var(--shadow-md);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-card-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.gallery-badge-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--red-primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-card-date {
  font-size: 0.75rem;
  color: #e2e8f0;
}

/* ==========================================================================
   VIDEO PAGE (VIDEO.HTML)
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-border);
  box-shadow: var(--shadow-md);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb-img {
  transform: scale(1.05);
}

.play-circle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--red-glow);
  transition: transform var(--transition);
}

.video-card:hover .play-circle-icon {
  transform: translate(-50%, -50%) scale(1.12);
}

.video-card-body {
  padding: 1.25rem;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.video-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS (LIGHTBOX, VIDEO, ALUMNI)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  z-index: 10001;
  transition: all var(--transition);
}

.modal-close-btn:hover {
  background: var(--red-primary);
  color: #ffffff;
}

.modal-inner-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.video-modal-inner {
  max-width: 900px;
  width: 95%;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.video-native-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-native-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* ==========================================================================
   MODERN RESPONSIVE SPLIT LIGHTBOX (Desktop, Tablet, Mobile)
   ========================================================================== */
.lightbox-container-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 390px);
  width: 95%;
  max-width: 1140px;
  max-height: 90vh;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 10001;
}

/* Stage Media (Tempat Foto + Kontrol Navigasi Terikat) */
.lightbox-media-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  padding: 1.5rem;
  overflow: hidden;
  min-height: 380px;
}

.lightbox-photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-stage-img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.lightbox-stage-img:hover {
  transform: scale(1.01);
}

/* Tombol Floating Preview Full pada Foto */
.lightbox-expand-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lightbox-expand-pill:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

.lightbox-expand-pill svg {
  stroke: currentColor;
}

/* Tombol Navigasi yang Terikat pada Stage Foto (Tidak Akan Bertabrakan dengan Teks) */
.lightbox-stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-stage-nav-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.lightbox-stage-nav-btn.prev-btn { left: 16px; }
.lightbox-stage-nav-btn.next-btn { right: 16px; }

/* Panel Sidebar Lightbox (Info, Aksi & Komentar) */
.lightbox-sidebar-panel {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 90vh;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.85rem;
}

.lightbox-counter-pill {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.lightbox-title-section {
  margin-bottom: 1rem;
}

.lightbox-title-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.lightbox-desc-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.lightbox-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

/* Responsivitas: Tablet & Layar Sedang */
@media (max-width: 1024px) and (min-width: 850px) {
  .lightbox-container-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 350px);
    max-height: 92vh;
  }
}

/* Responsivitas: Mobile (< 850px) */
@media (max-width: 849px) {
  #photo-modal {
    padding: 0.75rem;
  }

  .lightbox-container-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
  }

  .lightbox-media-stage {
    position: relative;
    width: 100%;
    min-height: 250px;
    max-height: 48vh;
    padding: 0.75rem;
    background: #000000;
    flex-shrink: 0;
  }

  .lightbox-stage-img {
    max-height: 44vh;
    width: 100%;
  }

  .lightbox-stage-nav-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-stage-nav-btn.prev-btn { left: 8px; }
  .lightbox-stage-nav-btn.next-btn { right: 8px; }

  .lightbox-sidebar-panel {
    padding: 1.15rem;
    overflow: visible;
    max-height: none;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lightbox-title-text {
    font-size: 1.1rem;
  }
}

/* Dedicated Distraction-Free Fullscreen Photo Viewer */
.fullscreen-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10020;
  display: none;
  flex-direction: column;
  animation: fadeIn 0.25s ease-out;
}

.fullscreen-viewer-overlay.active {
  display: flex;
}

.fullscreen-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.fullscreen-viewer-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  margin-right: 12px;
}

.fullscreen-viewer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.btn-fs-download {
  background: rgba(34, 197, 94, 0.2);
  color: #ffffff;
  border: 1px solid rgba(34, 197, 94, 0.6);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-fs-download:hover {
  background: #16a34a;
  border-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.45);
}

.btn-fs-close {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.btn-fs-close:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: scale(1.08);
}

.fullscreen-viewer-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.fullscreen-viewer-img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  user-select: none;
  transition: transform 0.25s ease;
}

.fullscreen-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fullscreen-nav-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.fullscreen-nav-btn.prev-btn { left: 24px; }
.fullscreen-nav-btn.next-btn { right: 24px; }

@media (max-width: 768px) {
  .fullscreen-viewer-topbar {
    padding: 0.75rem 1rem;
  }
  .fullscreen-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .fullscreen-nav-btn.prev-btn { left: 10px; }
  .fullscreen-nav-btn.next-btn { right: 10px; }
  .fullscreen-viewer-title {
    font-size: 0.92rem;
  }
}

.fullscreen-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fullscreen-counter-text {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
}

.gallery-load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery-count-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   ABOUT & PROFILE (TENTANG.HTML)
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 860px) {
  .about-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.about-article {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.about-article h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-title);
  font-family: var(--font-serif);
}

.about-article p {
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.org-table-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.org-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}

.org-row-item:last-child {
  border-bottom: none;
}

.org-role-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red-primary);
}

.org-person-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-title);
}

/* ==========================================================================
   OPPDA INTERACTIVE LOGO CARD & MODAL
   ========================================================================== */
.oppda-interactive-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.oppda-interactive-card:hover {
  border-color: var(--red-primary);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.16);
  transform: translateY(-4px);
}

.oppda-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-primary);
  background: var(--red-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid var(--red-border);
}

.oppda-logo-showcase {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.oppda-interactive-logo {
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(220, 38, 38, 0.2));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oppda-interactive-card:hover .oppda-interactive-logo {
  transform: scale(1.08) rotate(-1deg);
}

.oppda-click-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-primary);
  background: #fff;
  border: 1.5px dashed var(--red-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  animation: pulseHint 2s infinite ease-in-out;
}

@keyframes pulseHint {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.oppda-card-title {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--text-title);
  margin-bottom: 4px;
}

.oppda-card-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.oppda-leader-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--red-primary);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 1.25rem;
  text-align: left;
}

.oppda-leader-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--red-primary);
  object-fit: cover;
  flex-shrink: 0;
  background: #ffffff;
}

.oppda-leader-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red-primary);
  letter-spacing: 0.05em;
  display: block;
}

.oppda-leader-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-title);
  margin: 1px 0;
}

.oppda-leader-batch {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.oppda-action-btn {
  width: 100%;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  padding: 10px 18px;
}

/* Modal Struktur OPPDA */
.oppda-modal-card {
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
}

.oppda-modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.oppda-modal-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(220, 38, 38, 0.2));
}

.oppda-modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-title);
  margin-bottom: 4px;
}

.oppda-modal-sub {
  font-size: 0.85rem;
  color: var(--red-primary);
  font-weight: 700;
}

.oppda-tree-section {
  margin-bottom: 1.75rem;
}

.oppda-tree-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-title);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.oppda-tree-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .oppda-tree-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.oppda-role-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all var(--transition);
}

.oppda-role-card:hover {
  background: #ffffff;
  border-color: var(--red-border);
  box-shadow: var(--shadow-sm);
}

.oppda-role-name {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 2px;
}

.oppda-holder-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-title);
}

.oppda-role-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

/* ==========================================================================
   GUESTBOOK / PESAN (PESAN.HTML)
   ========================================================================== */
.guestbook-container {
  max-width: 800px;
  margin: 0 auto;
}

.guestbook-card-form {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 600px) {
  .input-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-title);
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--red-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--red-subtle);
}

.message-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.message-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.message-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
}

.message-class-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-primary);
  background: var(--red-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 5.5rem;
  text-align: center;
  margin-top: auto;
}

.footer-school-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-nav-links a:hover {
  color: var(--red-primary);
}

.footer-copy-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE BOTTOM DOCK NAVIGATION
   ========================================================================== */
.mobile-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 95vw;
}

@media (min-width: 960px) {
  .mobile-dock {
    display: none;
  }
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile Menu Header Toggle & Dropdown Menu */
.mobile-menu-btn {
  display: flex;
}

@media (min-width: 960px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.mobile-nav-dropdown {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav-dropdown.active {
  display: block;
  animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mob-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-title);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition);
}

.mob-link:hover, .mob-link.active {
  background: var(--red-light);
  color: var(--red-primary);
  border-color: var(--red-border);
  font-weight: 700;
}

.dock-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.dock-btn:hover {
  color: var(--red-primary);
  background: var(--red-light);
}

/* Bulatan Aktif Berpindah Dinamis Sesuai Halaman yang Diklik */
.dock-btn.active {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5) !important;
  margin-top: -14px;
  transform: translateY(-2px);
}

.dock-btn.active svg {
  stroke: #ffffff !important;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dock-btn.active:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.6) !important;
}

/* ==========================================================================
   HALAMAN SEJARAH & BUMI ARAFAH STYLES
   ========================================================================== */
.sejarah-container {
  max-width: 1080px;
  margin: 0 auto;
}

.sejarah-banner-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.sejarah-banner-card:hover {
  box-shadow: var(--shadow-lg);
}

.sejarah-banner-media {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #1a1a1a;
}

.sejarah-banner-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.sejarah-banner-caption {
  padding: 1.25rem 1.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sejarah-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.sejarah-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.sejarah-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--red-border);
}

.sejarah-stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sejarah-stat-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.sejarah-stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Tokoh & Kepemimpinan Dual Card */
.leaders-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.leader-showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.leader-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-border);
}

.leader-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.leader-badge.founder {
  background: #fef2f2;
  color: var(--red-primary);
  border: 1px solid var(--red-border);
}

.leader-badge.current {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.leader-header-flex {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.leader-photo-frame {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--red-primary);
  box-shadow: var(--red-glow);
}

.leader-title-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-title);
  margin-bottom: 4px;
  line-height: 1.25;
}

.leader-role-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red-primary);
}

.leader-desc-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.leader-quote-callout {
  margin-top: auto;
  padding: 12px 16px;
  background: #fff8f8;
  border-left: 3px solid var(--red-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 0.82rem;
  color: #555555;
  line-height: 1.5;
}

/* Timeline Sejarah */
.timeline-section-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

.timeline-stream {
  position: relative;
  padding-left: 32px;
  margin-top: 1.75rem;
}

.timeline-stream::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--red-primary) 0%, rgba(224, 36, 36, 0.2) 100%);
}

.timeline-event-item {
  position: relative;
  margin-bottom: 2rem;
}

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

.timeline-marker-dot {
  position: absolute;
  top: 4px;
  left: -32px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--red-primary);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline-event-item.highlight .timeline-marker-dot {
  background: var(--red-primary);
  box-shadow: var(--red-glow);
}

.timeline-year-chip {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red-primary);
  background: var(--red-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.timeline-event-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-title);
  margin-bottom: 6px;
}

.timeline-event-body {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* Galih Agung Special Card */
.galih-agung-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

/* Alumni PTN & Internasional Tags */
.univ-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.univ-pill {
  font-size: 0.76rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--text-title);
}

@media (max-width: 768px) {
  .sejarah-banner-caption {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-section-wrapper {
    padding: 1.5rem 1rem;
  }
  .timeline-stream {
    padding-left: 24px;
  }
  .timeline-marker-dot {
    left: -24px;
    width: 16px;
    height: 16px;
  }
}

/* ==========================================================================
   INTERACTIVE LIKE & COMMENT FEATURES & PROFANITY WARNING
   ========================================================================== */
/* Alumni Like Button */
.alumni-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.alumni-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.alumni-like-btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: var(--red-light);
  transform: scale(1.05);
}

.alumni-like-btn.liked {
  border-color: var(--red-primary);
  background: var(--red-light);
  color: var(--red-primary);
}

.alumni-like-btn.liked svg {
  fill: var(--red-primary);
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Gallery Card Action Overlay / Footer */
.gallery-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border-color);
  flex-wrap: nowrap;
}

.gallery-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}

.gallery-action-pill:hover, .gallery-action-pill.liked {
  color: var(--red-primary);
  background: var(--red-light);
  border-color: var(--red-border);
}

.gallery-action-pill.liked svg {
  fill: var(--red-primary);
}

.gallery-card-preview-btn:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-1.5px);
}

/* Lightbox Modal Enhancements for Comments */
.lightbox-modal-inner {
  max-width: 820px;
  width: 94%;
  max-height: 92vh;
  overflow-y: auto;
  background: #111827;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: left;
}

.lightbox-modal-img {
  max-height: 55vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.25rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Tombol Unduh Foto Lightbox & Kartu */
.lightbox-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.2);
  color: #ffffff;
  border: 1px solid rgba(34, 197, 94, 0.5);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.lightbox-download-btn:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
}

.lightbox-download-btn svg {
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.lightbox-download-btn:hover svg {
  transform: translateY(2px);
}

.gallery-card-download-btn:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.gallery-card-download-btn:hover svg {
  transform: translateY(1.5px);
}

.lightbox-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-like-btn svg {
  fill: none;
  stroke: currentColor;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-like-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: translateY(-2px);
}

.lightbox-like-btn.liked {
  background: var(--red-primary);
  border-color: var(--red-primary);
  box-shadow: var(--red-glow);
}

.lightbox-like-btn.liked svg {
  fill: #ffffff;
  stroke: #ffffff;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Lightbox Comments Section */
.lightbox-comments-wrap {
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-comments-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.comment-count-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.lightbox-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}

.lightbox-comment-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  border-left: 3px solid var(--red-primary);
}

.comment-author-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-time-text {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
}

.comment-body-text {
  font-size: 0.86rem;
  color: #f1f5f9;
  line-height: 1.5;
  margin-top: 3px;
}

.lightbox-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lightbox-comment-input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 0.85rem;
  width: 100%;
  font-family: inherit;
}

.lightbox-comment-input:focus {
  outline: none;
  border-color: var(--red-primary);
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-comment-input::placeholder {
  color: #94a3b8;
}

/* Profanity Alert Modal */
.profanity-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.profanity-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.profanity-modal-box {
  background: #ffffff;
  border: 2px solid var(--red-primary);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.35);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profanity-modal-overlay.active .profanity-modal-box {
  transform: scale(1);
}

.profanity-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--red-glow);
}

.profanity-alert-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-title);
  margin-bottom: 0.75rem;
}

.profanity-alert-msg {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #991b1b;
  background: #fff1f2;
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px dashed #f87171;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.profanity-close-btn {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--red-glow);
}

.profanity-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

/* Empty State Guestbook */
.guestbook-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* Footer Version Tag */
.footer-version-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.footer-version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  transition: all var(--transition);
}

.footer-version-tag:hover {
  border-color: var(--red-border);
  color: var(--red-primary);
  background: var(--red-light);
}

/* Sembunyikan badge & drawer otomatis Netlify (Powered by Netlify / Ads) */
netlify-drawer,
#netlify-drawer,
.netlify-drawer,
#netlify-badge,
.netlify-badge,
[data-netlify-badge],
[data-netlify-deploy-id],
iframe[src*="netlify"],
iframe[title*="Netlify"],
div[class*="netlify"],
div[id*="netlify"],
a[href*="netlify.com"],
[class*="feedback-drawer"],
[id*="feedback-drawer"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -9999 !important;
}

/* Toast Notifikasi Like */
.like-toast-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(220, 38, 38, 0.45);
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-toast-pill.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   DYNAMIC SPOTLIGHT BANNER PESANTREN (IKLAN / WARTA BERPUTAR OTOMATIS)
   ========================================================================== */
.pesantren-banner-slot {
  margin: 2rem 0;
  width: 100%;
}

.pesantren-spotlight-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: all var(--transition);
}

.pesantren-spotlight-card:hover {
  border-color: var(--red-border);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
}

.spotlight-media-wrap {
  position: relative;
  width: 320px;
  min-width: 280px;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.4s ease;
}

.pesantren-spotlight-card:hover .spotlight-media-img {
  transform: scale(1.06);
}

.spotlight-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.pesantren-spotlight-card:hover .spotlight-play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: #b91c1c;
}

.spotlight-duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.spotlight-content-body {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.spotlight-badge.badge-youtube {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.spotlight-badge.badge-alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  animation: pulseLight 2s infinite;
}

.spotlight-badge.badge-instagram {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.spotlight-actions-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spotlight-shuffle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.spotlight-shuffle-btn:hover {
  background: var(--bg-body);
  color: var(--text-title);
  transform: rotate(180deg);
}

.spotlight-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 6px;
}

.spotlight-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.spotlight-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.spotlight-author-info img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.spotlight-cta-group {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   YOUTUBE CARDS GRID
   ========================================================================== */
.youtube-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.youtube-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red-primary);
  background: var(--red-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.youtube-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.youtube-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.youtube-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-border);
  box-shadow: var(--shadow-md);
}

.youtube-thumb-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.youtube-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.youtube-card:hover .youtube-thumb-img {
  transform: scale(1.06);
}

.youtube-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.youtube-card:hover .youtube-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #b91c1c;
}

.youtube-duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.youtube-card-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.youtube-category-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--red-primary);
  background: var(--red-light);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.youtube-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.youtube-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.youtube-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.youtube-play-link-btn {
  color: var(--red-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   VIDEO FILTER TABS (VIDEO.HTML)
   ========================================================================== */
.video-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.video-filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.video-filter-pill:hover {
  border-color: var(--red-border);
  color: var(--text-title);
}

.video-filter-pill.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #ffffff;
  box-shadow: var(--red-glow);
}

/* ==========================================================================
   YOUTUBE THEATER MODAL PLAYER
   ========================================================================== */
.youtube-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.youtube-player-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-modal-info {
  background: #1e293b;
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-align: left;
}

.youtube-modal-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-top: 6px;
  margin-bottom: 8px;
}

.youtube-modal-desc-box {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.youtube-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .pesantren-spotlight-card {
    flex-direction: column;
  }
  .spotlight-media-wrap {
    width: 100%;
    min-width: 100%;
    aspect-ratio: 16 / 9;
  }
  .spotlight-content-body {
    padding: 1.15rem;
  }
  .spotlight-title {
    font-size: 1.05rem;
  }
  .youtube-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SURAT TANDA TERIMA & JAWABAN OTOMATIS RESMI SEKRETARIAT MARHALA 36
   ========================================================================== */
.secretariat-response-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  animation: fadeInSecretariat 0.4s ease-out;
}

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

.secretariat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid #e2e8f0;
}

.secretariat-card-crest {
  display: flex;
  align-items: center;
  gap: 14px;
}

.secretariat-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.secretariat-sub-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #059669;
  text-transform: uppercase;
}

.secretariat-main-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
  margin: 1px 0;
  letter-spacing: 0.02em;
}

.secretariat-inst-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.secretariat-stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stamp-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.secretariat-ticket-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 1.2rem 0;
}

.ticket-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ticket-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ticket-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--red-primary);
  font-family: monospace;
}

.ticket-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
}

.secretariat-message-box {
  background: #f8fafc;
  border-left: 4px solid #059669;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.secretariat-salutation {
  font-size: 0.95rem;
  color: #047857;
  margin-bottom: 6px;
}

.secretariat-intro {
  font-size: 0.9rem;
  color: var(--text-title);
  margin-bottom: 6px;
}

.secretariat-text {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

.secretariat-text:last-child {
  margin-bottom: 0;
}

.secretariat-summary-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--bg-body);
  margin-bottom: 1.4rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.84rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-color);
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-row.summary-message-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.s-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.s-val {
  color: var(--text-title);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.s-val.message-quote {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.55;
  width: 100%;
  font-style: italic;
}

.secretariat-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-wa-autosend {
  background: #25D366;
  color: #ffffff !important;
  border: none;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-wa-autosend:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.secretariat-secondary-actions {
  display: flex;
  gap: 10px;
}

.btn-outline-receipt {
  flex: 1;
  background: var(--bg-surface);
  color: var(--text-title);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-receipt:hover {
  background: var(--bg-body);
  border-color: #cbd5e1;
}

@media (max-width: 640px) {
  .secretariat-response-card {
    padding: 1.15rem;
  }
  .secretariat-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .secretariat-stamp-badge {
    align-self: flex-start;
  }
  .secretariat-secondary-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   STRUKTUR MARHALA 36 PUSAT (HIERARKI RESMI)
   ========================================================================== */
.m36-org-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.m36-org-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-primary), #991b1b);
}

.m36-org-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem auto;
}

.m36-org-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  color: var(--red-primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--red-border);
  margin-bottom: 10px;
}

.m36-org-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.m36-org-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tree Flow */
.m36-tree-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* Connectors */
.m36-tree-connector {
  width: 2px;
  height: 24px;
  background: #cbd5e1;
  position: relative;
  margin: 4px 0;
}

.m36-tree-connector::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #cbd5e1;
}

/* Node Cards */
.m36-node-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  text-align: left;
}

.m36-node-card.clickable {
  cursor: pointer;
}

.m36-node-card.clickable:hover {
  transform: translateY(-2px);
  border-color: var(--red-primary);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.12);
}

/* Pimpinan Node */
.m36-node-pimpinan {
  border: 2px solid #047857;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  padding: 14px 22px;
  min-width: 290px;
}

/* Pembimbing Row */
.m36-node-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 620px;
}

/* Ketua Marhala Node */
.m36-node-ketua {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  padding: 14px 24px;
  min-width: 300px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

/* Two Wings Grid */
.m36-tree-wings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 740px;
}

.m36-wing-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.m36-wing-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-title);
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.m36-wing-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.m36-wing-card.clickable {
  cursor: pointer;
}

.m36-wing-card.clickable:hover {
  transform: translateY(-2px);
  border-color: var(--red-primary);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.12);
}

/* Avatars */
.m36-node-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  background: var(--bg-body);
}

.m36-node-role {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-primary);
  display: block;
}

.m36-node-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.3;
}

.m36-node-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Bottom Nodes */
.m36-node-bottom-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 380px;
}

.m36-node-bottom {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid var(--border-color);
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 680px) {
  .m36-node-row-2,
  .m36-tree-wings {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .m36-node-card,
  .m36-wing-card {
    min-width: auto;
    width: 100%;
  }
}



