/* ========================================================
   MICROSITE RESMI PGRI CABANG LEUWIGOONG
   TEMA TERANG DENGAN MOTIF BATIK KUSUMA BANGSA
   Desain Khusus Tampilan HP / Smartphone (PWA Optimized)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Warna Identitas Resmi PGRI */
  --primary-red: #c51616;
  --primary-red-hover: #a81010;
  --primary-red-light: #fef2f2;
  --accent-gold: #b45309;
  --accent-gold-light: #fef3c7;
  --accent-green: #15803d;
  --accent-green-hover: #166534;
  --accent-green-light: #f0fdf4;
  --accent-blue: #1d4ed8;
  --accent-blue-hover: #1e40af;
  --accent-blue-light: #eff6ff;

  /* Tema Terang (Light Theme) */
  --bg-page: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-solid: #ffffff;
  --bg-batik-tint: rgba(255, 255, 255, 0.0);
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  
  --border-light: rgba(203, 213, 225, 0.85);
  --border-highlight: rgba(197, 22, 22, 0.25);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 8px 20px rgba(197, 22, 22, 0.25);
  --shadow-blue: 0 8px 20px rgba(29, 78, 216, 0.25);
  --shadow-green: 0 8px 20px rgba(21, 128, 61, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --phone-width: 440px;

  /* Opasitas Motif Batik: Jelas dan Terbaca */
  --batik-opacity: 0.28;
}

/* Dark Mode Theme Variables (Opsional) */
[data-theme="dark"] {
  --bg-page: #090d16;
  --bg-card: rgba(18, 24, 38, 0.90);
  --bg-card-solid: #151d30;
  --text-main: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(239, 68, 68, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  --accent-gold-light: rgba(217, 119, 6, 0.18);
  --primary-red-light: rgba(197, 22, 22, 0.2);
  --accent-blue-light: rgba(29, 78, 216, 0.2);
  --accent-green-light: rgba(21, 128, 61, 0.2);
  --batik-opacity: 0.20;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #f8fafc;
}

body {
  font-family: var(--font-main);
  background-color: #f8fafc;
  /* Latar belakang tema terang pada desktop dengan ornamen batik lembut */
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.95)),
    url('../assets/batik-pattern.jpg');
  background-repeat: repeat;
  background-size: 400px auto;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================================
   Desktop Frame Container (Simulasi Tampilan HP)
   ======================================================== */
.device-shell {
  width: 100%;
  max-width: var(--phone-width);
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 600px) {
  body {
    padding: 24px 0 60px;
  }

  .device-shell {
    margin: 0 auto;
    border-radius: 44px;
    border: 10px solid #1e293b; /* Bingkai smartphone elegan */
    outline: 2px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
    background: #ffffff;
  }

  .device-shell.full-width-mode {
    max-width: 640px;
    border-radius: 24px;
    border-width: 4px;
  }
}

/* Smartphone Top Bezel / Speaker */
.phone-notch {
  display: none;
  height: 24px;
  background-color: #1e293b;
  position: relative;
  z-index: 100;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) {
  .phone-notch {
    display: flex;
  }
  .phone-notch .speaker {
    width: 60px;
    height: 5px;
    background: #334155;
    border-radius: 4px;
  }
  .phone-notch .camera {
    width: 9px;
    height: 9px;
    background: #0f172a;
    border-radius: 50%;
    margin-left: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* ========================================================
   BATIK BACKGROUND LAYER (Motif Resmi Batik PGRI Kusuma Bangsa)
   Diatur agar sangat jelas terlihat di seluruh latar belakang
   ======================================================== */
.batik-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('../assets/batik-pattern.jpg');
  background-repeat: repeat;
  background-size: 320px auto;
  background-position: center top;
  opacity: var(--batik-opacity, 0.28);
  filter: contrast(1.2) brightness(0.96);
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .batik-background {
  filter: invert(1) brightness(0.85);
  opacity: 0.18;
}

.microsite-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px; /* Ruang untuk floating bottom dock */
}

/* ========================================================
   Desktop Mode Switcher Floating Controls
   ======================================================== */
.desktop-controls {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  gap: 10px;
}

@media (min-width: 600px) {
  .desktop-controls {
    display: flex;
  }
}

.desktop-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

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

/* ========================================================
   Top Navigation Header (Brand, Audio, Share, Batik, Theme)
   ======================================================== */
.top-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .top-header-bar {
  background: rgba(18, 24, 38, 0.92);
}

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

.brand-mini-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

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

.icon-btn {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.icon-btn:hover {
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-color: var(--primary-red);
  transform: scale(1.06);
}

/* Audio Player Pulse & Wave Indicator */
.icon-btn.playing {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(197, 22, 22, 0.25);
}

.audio-waves {
  display: none;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.icon-btn.playing .audio-icon {
  display: none;
}

.icon-btn.playing .audio-waves {
  display: flex;
}

.audio-bar {
  width: 2.5px;
  height: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite alternate;
}

.audio-bar:nth-child(1) { animation-delay: 0.1s; height: 60%; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; height: 100%; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; height: 40%; }
.audio-bar:nth-child(4) { animation-delay: 0.4s; height: 80%; }

@keyframes wave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ========================================================
   SLIDER ATAS (Top Carousel / Banner Slider)
   ======================================================== */
.top-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slider-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.slider-slide.active img {
  transform: scale(1.04);
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
}

.slider-badge {
  align-self: flex-start;
  background: var(--primary-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slider-badge.gold {
  background: var(--accent-gold);
}

.slider-badge.blue {
  background: var(--accent-blue);
}

.slider-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.slider-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background: var(--primary-red);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }

/* Slider Dots Pagination & Autoplay Indicator */
.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 22px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Slider Play/Pause control */
.slider-pause-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

/* ========================================================
   ORGANIZATION PROFILE HEADER (Matching Gambar 1)
   Latar transparan agar motif Batik PGRI terlihat jelas!
   ======================================================== */
.profile-section {
  text-align: center;
  padding: 24px 20px 16px;
  position: relative;
  background: transparent;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.logo-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary-red), #eab308, var(--accent-green), var(--primary-red));
  animation: rotateGlow 8s linear infinite;
  opacity: 0.65;
  filter: blur(6px);
}

@keyframes rotateGlow {
  to { transform: rotate(360deg); }
}

.pgri-main-logo {
  position: relative;
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(197, 22, 22, 0.22), 0 0 0 4px #ffffff;
  transition: transform 0.3s ease;
}

.pgri-main-logo:hover {
  transform: scale(1.05) rotate(2deg);
}

.org-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid rgba(180, 83, 9, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ========================================================
   KARTU INFORMASI PROFIL & TULISAN RESMI
   Diberikan background bertema agar 100% terbaca sangat jelas
   ======================================================== */
.profile-text-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(197, 22, 22, 0.25);
  border-top: 3px solid var(--primary-red);
  border-radius: var(--radius-md);
  padding: 14px 16px 12px;
  margin: 10px auto 14px;
  max-width: 390px;
  box-shadow: 0 4px 16px rgba(197, 22, 22, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
}

[data-theme="dark"] .profile-text-card {
  background: rgba(24, 32, 50, 0.95);
  border-color: rgba(239, 68, 68, 0.4);
  border-top-color: #ef4444;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.org-name-title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #0f172a !important;
  line-height: 1.2;
  margin-bottom: 6px;
}

[data-theme="dark"] .org-name-title {
  color: #ffffff !important;
}

.org-name-title span {
  color: var(--primary-red) !important;
}

.org-branch-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-red) 0%, #991212 100%);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(197, 22, 22, 0.25);
}

.org-tagline {
  background: var(--primary-red-light);
  border-left: 3.5px solid var(--primary-red);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #1e293b !important;
  margin: 0 auto;
  text-align: center;
  font-weight: 500;
}

[data-theme="dark"] .org-tagline {
  background: rgba(197, 22, 22, 0.15);
  color: #f1f5f9 !important;
}

.org-tagline strong {
  color: var(--primary-red) !important;
}

/* Info Badges Row */
.badge-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

/* ========================================================
   FEATURED ACTION BUTTONS (Matching Gambar 1)
   ======================================================== */
.action-buttons-group {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

/* 1. TOMBOL MERAH BESAR (Pengurus Cabang / Pengurus Besar) */
.btn-featured-red {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-featured-red::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0%, 70% { left: -100%; }
  100% { left: 160%; }
}

.btn-featured-red:hover, .btn-featured-red:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(183, 28, 28, 0.4);
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.btn-content-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.btn-title-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-subtext {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

/* ========================================================
   VIDEO SECTION EMBED (Matching Gambar 1)
   ======================================================== */
.video-card-container {
  padding: 0 16px;
  margin-bottom: 18px;
}

.video-card {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.video-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.video-title-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-badge {
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.video-player-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #111;
}

.video-player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Thumbnail Placeholder */
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.85)), url('../assets/slider-1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.play-pulse-btn {
  width: 58px;
  height: 40px;
  background: #ff0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.video-thumb-overlay:hover .play-pulse-btn {
  transform: scale(1.15);
}

.video-caption-text {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ========================================================
   SLOGAN & SIFAT PGRI SECTION (Matching Gambar 1)
   ======================================================== */
.slogan-divider-section {
  padding: 4px 16px 12px;
  text-align: center;
  background: transparent;
}

.slogan-lead-text {
  font-size: 12px;
  font-weight: 800;
  color: #1e293b !important;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sifat-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sifat-pill {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.sifat-pill:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-2px);
}

/* ========================================================
   PRIMARY ACTION BUTTONS (BLUE & GREEN from Gambar 1)
   ======================================================== */
/* Tombol Biru: Transformasi Digital PGRI */
.btn-featured-blue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-featured-blue:hover, .btn-featured-blue:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.4);
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

/* Tombol Hijau: Mendaftar Anggota */
.btn-featured-green {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-featured-green:hover, .btn-featured-green:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.4);
  background: linear-gradient(135deg, #22c55e 0%, #166534 100%);
}

/* ========================================================
   SEARCH / QUICK FILTER FOR MENUS
   ======================================================== */
.menu-search-box {
  padding: 6px 16px 14px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(197, 22, 22, 0.15);
  background: #ffffff;
}

/* ========================================================
   ORGANIZED MENU CATEGORIES (Based on Gambar 4)
   Cards dibuat elegan transparan agar batik terlihat di sekelilingnya
   ======================================================== */
.menu-group-section {
  padding: 0 16px;
  margin-bottom: 18px;
}

.section-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.menu-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Menu Item Button (Card Link style matching Gambar 1 & Gambar 4) */
.menu-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: left;
}

.menu-link-card:hover {
  background: #ffffff;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-link-card:active {
  transform: scale(0.98);
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.menu-link-card:hover .menu-item-icon {
  background: var(--primary-red);
  color: #ffffff;
  transform: scale(1.08);
}

.menu-item-text {
  display: flex;
  flex-direction: column;
}

.menu-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.menu-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 2px;
}

.menu-item-arrow {
  color: var(--text-light);
  font-size: 16px;
  margin-left: 8px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu-link-card:hover .menu-item-arrow {
  color: var(--primary-red);
  transform: translateX(3px);
}

/* ========================================================
   BOTTOM ILLUSTRATION & FOOTER (Matching Gambar 1)
   ======================================================== */
.footer-illustration-box {
  padding: 0 16px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.illustration-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.illustration-card img {
  width: 100%;
  height: auto;
  display: block;
}

.illustration-caption {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
}

.chant-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-red) 0%, #991212 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(197, 22, 22, 0.3);
}

.chant-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 500;
}

.microsite-footer {
  text-align: center;
  padding: 16px 20px 24px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.footer-social-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.social-circle-btn:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
  transform: translateY(-2px);
}

/* ========================================================
   FLOATING BOTTOM NAVIGATION DOCK (Mobile App Experience)
   ======================================================== */
.bottom-dock-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--phone-width);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px 12px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .bottom-dock-nav {
  background: rgba(18, 24, 38, 0.94);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.dock-item i, .dock-item svg {
  font-size: 18px;
}

.dock-item:hover, .dock-item.active {
  color: var(--primary-red);
}

.dock-center-action {
  background: linear-gradient(135deg, var(--primary-red) 0%, #991212 100%);
  color: #fff !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  margin-top: -18px;
  border: 3px solid #ffffff;
  transition: transform 0.2s ease;
}

.dock-center-action:hover {
  transform: scale(1.1);
}

/* ========================================================
   MODAL / POPUP DIALOGS (Native <dialog> Elements)
   ======================================================== */
dialog.custom-modal {
  margin: auto;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: 90%;
  max-width: 440px;
  max-height: 85vh;
  background: var(--bg-card-solid);
  color: var(--text-main);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

dialog.custom-modal::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

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

.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(85vh - 70px);
  font-size: 13.5px;
  line-height: 1.6;
}

.modal-body h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--primary-red);
  margin-top: 14px;
  margin-bottom: 6px;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 12px;
  color: var(--text-main);
}

.modal-body ul, .modal-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.modal-body li {
  margin-bottom: 6px;
  color: var(--text-main);
}

/* Modal Table / List styling */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.info-table th, .info-table td {
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.info-table th {
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-weight: 700;
}

.modal-callout {
  background: #f8fafc;
  border-left: 3px solid var(--primary-red);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-main);
}

/* Interactive Form in Modal (Aspirasi Anggota) */
.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(197, 22, 22, 0.15);
}

.form-submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--primary-red) 0%, #991212 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: all 0.2s ease;
  margin-top: 8px;
}

.form-submit-btn:hover {
  background: #a81010;
  transform: translateY(-1px);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================
   ZONA TEMA GELAP: 8 ISI WAJIB ORGANISASI DAN SETERUSNYA
   Sesuai pilihan pengguna, area menu dan ke bawah menggunakan
   background tema gelap elegan seperti sebelumnya dengan motif batik
   ======================================================== */
.dark-zone-section {
  position: relative;
  background-color: #0b1120;
  margin-top: 18px;
  padding-top: 24px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Latar Motif Batik Gelap Khusus di Zona Menu Bawah */
.dark-zone-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/batik-pattern.jpg');
  background-repeat: repeat;
  background-size: 320px auto;
  filter: invert(1) brightness(0.65);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

/* Aksen Garis Handle di Bagian Atas Zona Gelap */
.dark-zone-section::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  z-index: 2;
}

.dark-zone-content {
  position: relative;
  z-index: 1;
}

/* Header Kategori Menu di Zona Gelap */
.dark-zone-section .section-category-header {
  background: rgba(18, 24, 38, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.dark-zone-section .category-title {
  color: #f87171;
}

.dark-zone-section .category-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Kartu Tombol Menu Tema Gelap Seperti Sebelumnya */
.dark-zone-section .menu-link-card {
  background: rgba(18, 24, 38, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.dark-zone-section .menu-link-card:hover {
  background: #1e293b;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dark-zone-section .menu-item-title {
  color: #f8fafc !important;
  font-weight: 700;
}

.dark-zone-section .menu-item-desc {
  color: #94a3b8 !important;
}

.dark-zone-section .menu-item-arrow {
  color: #64748b;
}

.dark-zone-section .menu-link-card:hover .menu-item-arrow {
  color: #f87171;
  transform: translateX(3px);
}

.dark-zone-section .menu-item-icon {
  background: rgba(197, 22, 22, 0.22);
  color: #f87171;
  border: 1px solid rgba(197, 22, 22, 0.3);
}

.dark-zone-section .menu-link-card:hover .menu-item-icon {
  background: var(--primary-red);
  color: #ffffff;
}

/* Ilustrasi Ruang Kelas di Zona Gelap */
.dark-zone-section .illustration-card {
  background: #151d30;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark-zone-section .illustration-caption {
  background: rgba(18, 24, 38, 0.95);
}

.dark-zone-section .chant-sub {
  color: #cbd5e1;
}

/* Footer di Zona Gelap */
.dark-zone-section .microsite-footer {
  color: #94a3b8;
}

.dark-zone-section .social-circle-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.dark-zone-section .social-circle-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

/* Floating Bottom Dock Nav (Tema Gelap seperti sebelumnya) */
.bottom-dock-nav {
  background: rgba(15, 23, 42, 0.96) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.45) !important;
}

.bottom-dock-nav .dock-item {
  color: #94a3b8 !important;
}

.bottom-dock-nav .dock-item:hover,
.bottom-dock-nav .dock-item.active {
  color: #f87171 !important;
}

.bottom-dock-nav .dock-center-action {
  border-color: #0f172a !important;
}

/* Modals Tema Gelap Elegan */
dialog.custom-modal {
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

dialog.custom-modal .modal-header {
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

dialog.custom-modal .modal-title {
  color: #f8fafc;
}

dialog.custom-modal .modal-subtitle {
  color: #94a3b8;
}

dialog.custom-modal .modal-close-btn {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

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

dialog.custom-modal .modal-body {
  color: #e2e8f0;
}

dialog.custom-modal .modal-body p,
dialog.custom-modal .modal-body li {
  color: #e2e8f0;
}

dialog.custom-modal .modal-body h4 {
  color: #f87171;
}

dialog.custom-modal .info-table th {
  background: rgba(197, 22, 22, 0.25);
  color: #fca5a5;
  border-color: rgba(255, 255, 255, 0.15);
}

dialog.custom-modal .info-table td {
  border-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

dialog.custom-modal .modal-callout {
  background: rgba(30, 41, 59, 0.7);
  border-left-color: #ef4444;
  color: #f1f5f9;
}

dialog.custom-modal .form-label {
  color: #f1f5f9;
}

dialog.custom-modal .form-input,
dialog.custom-modal .form-textarea,
dialog.custom-modal .form-select {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

