/* ============================================
   PPTSB Wilayah Jakarta Baru — Main Stylesheet
   "Sinaga Jumpa"
   ============================================ */

/* Google Fonts loaded via <link> in HTML head for better performance */

/* ── CSS Custom Properties ── */
:root {
  --primary: #1A5C38;
  --primary-dark: #0F3D25;
  --secondary: #C8963E;
  --secondary-light: #D4A94E;
  --accent: #2E7D52;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text-primary: #1A2E20;
  --text-secondary: #4A6355;
  --border: #D4E6DC;
  --border-light: #EBF4EF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(26,92,56,0.08);
  --shadow-md: 0 4px 12px rgba(26,92,56,0.1);
  --shadow-lg: 0 8px 30px rgba(26,92,56,0.12);
  --shadow-xl: 0 12px 40px rgba(26,92,56,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

/* ── Gorga Pattern SVG Background ── */
.gorga-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231A5C38' fill-opacity='0.05'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3Cpath d='M30 10L50 30L30 50L10 30z' fill-opacity='0.03'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gorga-border {
  border-image: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--secondary) 8px,
    var(--accent) 16px,
    var(--secondary) 24px,
    var(--primary) 32px
  ) 4;
  border-style: solid;
  border-width: 4px 0 0 0;
}

/* ── Section Divider ── */
.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-divider.left {
  margin-left: 0;
}

/* ── HEADER & NAVIGATION ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  transition: all var(--transition);
}

.header.scrolled {
  height: 88px;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 104px;
  height: 104px;
  background: url('../img/logo-pptsb.png') center/contain no-repeat;
  border-radius: 0;
  flex-shrink: 0;
  text-indent: -9999px;
  overflow: hidden;
  transition: width var(--transition), height var(--transition), transform var(--transition);
}

.header.scrolled .logo-icon {
  width: 76px;
  height: 76px;
}

.logo:hover .logo-icon { transform: scale(1.05); }

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

.logo-text .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 500;
  font-style: italic;
}

/* Main Nav */
.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-main > li {
  position: relative;
}

.nav-main > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-main > li > a:hover,
.nav-main > li > a.active {
  color: var(--primary);
  background: rgba(26,92,56,0.06);
}

.nav-main > li > a .arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
}

.nav-main > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}

/* Mega-menu — used when a dropdown grows past 5 items.
   Add class="dropdown dropdown-mega" plus optional <li class="dd-section"><h5>...</h5></li> dividers. */
.dropdown-mega {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  min-width: 520px;
  padding: 12px;
}
.dropdown-mega .dd-section h5 {
  margin: 12px 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary, #6b7280);
}

.nav-main > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.dropdown a:hover {
  background: rgba(26,92,56,0.06);
  color: var(--primary);
  padding-left: 18px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-search {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.btn-search:hover {
  background: rgba(26,92,56,0.06);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,92,56,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,92,56,0.4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--secondary), #D4A94E);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(200,150,62,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200,150,62,0.4);
  color: var(--primary-dark);
}

.btn-white {
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-white:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--primary-dark);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

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

/* ── HERO SLIDER ── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  max-height: 750px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,40,24,0.88) 0%,
    rgba(10,40,24,0.55) 35%,
    rgba(10,40,24,0.15) 60%,
    transparent 80%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
  padding: 0 20px 48px;
}

.slide-content {
  max-width: 1160px;
  width: 100%;
  color: #fff;
  animation: slideUp 0.8s ease;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.slide-text {
  flex: 1;
}

.slide-content .slide-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(200,150,62,0.25);
  border: 1px solid rgba(200,150,62,0.5);
  border-radius: 50px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.slide-content h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  max-width: 560px;
}

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

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.05);
}

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

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--secondary);
  width: 32px;
  border-radius: 6px;
}

/* Slider Progress Bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--secondary);
  z-index: 10;
  transition: width linear;
}

@media (max-width: 768px) {
  .hero-slider {
    height: 55vh;
    min-height: 350px;
  }

  .slide-overlay {
    padding: 0 16px 32px;
  }

  .slide-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .slide-content h2 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 0.88rem;
    margin-bottom: 0;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

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

/* ── HERO SECTION ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, #1A4D2E 100%);
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8963E' fill-opacity='0.08'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3Cpath d='M40 15L65 40L40 65L15 40z' fill-opacity='0.05'/%3E%3Ccircle cx='40' cy='40' r='5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(200,150,62,0.2);
  border: 1px solid rgba(200,150,62,0.4);
  border-radius: 50px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--secondary);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero .description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  display: block;
  font-size: 1.4rem;
  margin-top: 4px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── STATS SECTION ── */
.stats {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

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

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-bottom: 3px solid var(--secondary);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* ── SECTION COMMON ── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface);
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-dark .section-divider {
  background: linear-gradient(90deg, var(--secondary), #D4A94E, var(--secondary));
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.75);
}

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 10px;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-content .highlight {
  color: var(--primary);
  font-weight: 600;
}

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

.about-image .placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 3rem;
  gap: 12px;
}

.about-image .placeholder-img span {
  font-size: 0.9rem;
  font-weight: 500;
}

.about-filosofi {
  background: linear-gradient(135deg, rgba(26,92,56,0.05), rgba(200,150,62,0.08));
  border-left: 4px solid var(--secondary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* ── NEWS / BERITA SECTION ── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.news-featured {
  grid-row: span 2;
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}

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

.news-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--border-light);
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured .thumb {
  aspect-ratio: 16/10;
}

.news-card .thumb .category-badge,
.umkm-card .thumb .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card .content {
  padding: 20px;
}

.news-featured .content {
  padding: 24px;
}

.news-card .meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-featured h3 {
  font-size: 1.4rem;
}

.news-card .excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.news-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-card .read-more:hover {
  color: var(--secondary);
  gap: 8px;
}

/* ── ORGANISASI SECTION ── */
.org-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.org-node {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.org-node.highlight {
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(200,150,62,0.08), rgba(26,92,56,0.05));
  box-shadow: var(--shadow-md);
}

.org-node h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.org-node span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.org-connector {
  width: 2px;
  height: 30px;
  background: var(--border);
}

.org-branches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  padding-top: 20px;
}

.org-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}

.org-branch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.org-branch::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background: var(--border);
}

.org-branch:hover {
  border-color: var(--primary);
  background: rgba(26,92,56,0.03);
}

/* Pengurus Table */
.pengurus-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.pengurus-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.pengurus-table tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  background: var(--surface);
}

.pengurus-table tbody tr:hover td {
  background: rgba(26,92,56,0.03);
}

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

.jabatan-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(200,150,62,0.15);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
}

/* ── BIDANG SECTION ── */
.bidang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bidang-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

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

.bidang-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(26,92,56,0.1), rgba(200,150,62,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bidang-card h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.bidang-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ── UMKM SECTION ── */
.umkm-header-text {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.umkm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.umkm-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

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

.umkm-card .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--border-light);
}

.umkm-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.umkm-card .thumb .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
}

.umkm-card .content {
  padding: 20px;
}

.umkm-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 4px;
}

.umkm-card .owner {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.umkm-card .desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.umkm-card .links {
  display: flex;
  gap: 8px;
}

.umkm-card .links a {
  font-size: 0.78rem;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.umkm-card .links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── AGENDA SECTION ── */
.agenda-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.agenda-item {
  display: flex;
  gap: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.agenda-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.agenda-date {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.agenda-date .month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.agenda-date .year {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.agenda-info h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.agenda-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.agenda-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.agenda-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── GALERI SECTION ── */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.galeri-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.galeri-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition);
}

.galeri-item .placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  gap: 8px;
  transition: transform var(--transition);
}

.galeri-item .placeholder-img span {
  font-size: 0.8rem;
  font-weight: 500;
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,61,37,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.galeri-item:hover .galeri-overlay {
  opacity: 1;
}

.galeri-item:hover img,
.galeri-item:hover .placeholder-img {
  transform: scale(1.05);
}

.galeri-overlay p {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0;
}

/* ── CABANG SECTION ── */
.cabang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cabang-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

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

.cabang-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
}

.cabang-card h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cabang-card .status {
  font-size: 0.78rem;
  color: #2E7D32;
  font-weight: 500;
  margin-bottom: 4px;
}

.cabang-card .info {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ── CTA SECTION ── */
.cta-section {
  background: #EBF5EF;
  border-top: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231A5C38' fill-opacity='0.04'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--primary-dark);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  background: #F5F9F6;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 60px 0 0;
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo .logo-icon {
  width: 88px;
  height: 88px;
}

.footer-brand .logo .name {
  color: var(--primary-dark);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(26,92,56,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

.footer-col h4 {
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

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

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--primary);
}

/* ── WHATSAPP FLOATING ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--transition);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  color: #fff;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  color: #fff;
}

.lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  margin: 16px 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.lightbox-content .placeholder-img {
  width: 80vw;
  max-width: 800px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
  gap: 12px;
}

.lightbox-content .placeholder-img span {
  font-size: 1.1rem;
}

/* ── PAGE BANNER (subpages) ── */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C8963E' fill-opacity='0.06'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-banner > * {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.page-banner .breadcrumb a {
  color: var(--secondary);
}

/* ── PAGE CONTENT ── */
.page-content {
  padding: 60px 0 80px;
}

.page-content .content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content h3 {
  margin-top: 30px;
  margin-bottom: 12px;
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 1rem;
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
  margin: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-item .year {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.timeline-item p {
  font-size: 0.92rem;
  margin: 4px 0 0;
}

/* ── FORM STYLES ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group .required {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,56,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A6355' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  accent-color: var(--primary);
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  margin: 30px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ── CONTACT INFO ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(26,92,56,0.1), rgba(200,150,62,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── BERITA LISTING (page) ── */
.berita-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* ── BERITA DETAIL ── */
.berita-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}

.berita-hero img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.berita-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.berita-card-h {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  min-height: 180px;
}

.berita-card-h:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
}

.sidebar-widget h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.sidebar-widget ul li {
  margin-bottom: 10px;
}

.sidebar-widget ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-widget ul li a:hover {
  color: var(--primary);
}

.sidebar-widget ul li a .count {
  background: rgba(26,92,56,0.08);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── GALERI PAGE ── */
.galeri-albums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.album-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
}

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

.album-card .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.5);
  position: relative;
}

.album-card .thumb .count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 50px;
}

.album-card .content {
  padding: 16px;
}

.album-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.album-card .date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── MARS PAGE ── */
.mars-player {
  max-width: 600px;
  margin: 0 auto 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-light);
}

.mars-player .play-btn {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.mars-player .play-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.lirik-section {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.lirik-section h3 {
  text-align: center;
  margin-bottom: 24px;
}

.lirik-verse {
  margin-bottom: 24px;
  text-align: center;
}

.lirik-verse p {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.lirik-verse .verse-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15,61,37,0.95);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay .search-box {
  width: 90%;
  max-width: 600px;
}

.search-overlay input {
  width: 100%;
  padding: 20px 24px;
  border: none;
  border-bottom: 3px solid var(--secondary);
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.5rem;
  outline: none;
}

.search-overlay input::placeholder {
  color: rgba(255,255,255,0.4);
}

.search-overlay .close-search {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bidang-grid { grid-template-columns: repeat(3, 1fr); }
  .cabang-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .berita-layout { grid-template-columns: 1fr; }
  .galeri-albums { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .container { padding: 0 16px; }

  /* Header */
  .logo-icon { width: 64px; height: 64px; }
  .header.scrolled { height: 68px; }
  .header.scrolled .logo-icon { width: 52px; height: 52px; }
  .logo-text .name { font-size: 1rem; }
  .logo-text .tagline { font-size: 0.7rem; }

  .mobile-toggle { display: flex; }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--surface);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    padding: 80px 24px 24px;
    transition: right 0.35s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-wrapper.active {
    right: 0;
  }

  .nav-main {
    flex-direction: column;
    gap: 0;
  }

  .nav-main > li > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    width: 100%;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
    min-width: auto;
  }

  .dropdown.active {
    display: block;
  }

  .dropdown a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .header-actions .btn { display: none; }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
    padding: 100px 16px 60px;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1.3rem; }
  .hero .description { font-size: 1rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-scroll { display: none; }

  /* Stats */
  .stats { margin-top: -40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 2rem; }

  /* Sections */
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 30px; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-featured { grid-row: auto; }

  /* Bidang */
  .bidang-grid { grid-template-columns: repeat(2, 1fr); }

  /* UMKM */
  .umkm-grid { grid-template-columns: 1fr; }

  /* Galeri */
  .galeri-grid { grid-template-columns: repeat(2, 1fr); }

  /* Cabang */
  .cabang-grid { grid-template-columns: 1fr 1fr; }

  /* CTA */
  .cta-content h2 { font-size: 1.6rem; }
  .cta-buttons { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  /* Page */
  .page-banner { padding: 110px 0 40px; }
  .page-banner h1 { font-size: 1.8rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Berita — stack on mobile */
  .berita-card-h {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .berita-thumb { aspect-ratio: 16/9; }
  .berita-body { padding: 16px; }

  /* Org */
  .org-branches { flex-direction: column; align-items: center; }
  .org-branches::before { display: none; }

  /* Galeri page */
  .galeri-albums { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bidang-grid { grid-template-columns: 1fr; }
  .cabang-grid { grid-template-columns: 1fr; }
  .galeri-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── UTILITY CLASSES ── */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }

/* ── SKIP LINK (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
  color: #fff;
}

/* ── FOCUS VISIBLE ── */
*:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ── TIMELINE (tentang-sejarah) ── */
.timeline-date {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.timeline-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-content strong {
  color: var(--text-primary);
}

/* ── BERITA PAGE ── */
.berita-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-red, #c8102e) 0%, #9b0c23 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.berita-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.berita-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.6);
}

.berita-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* prevent overflow on long titles */
}

.berita-body .read-more {
  margin-top: auto;
  padding-top: 8px;
}

.berita-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.berita-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.berita-title a {
  color: inherit;
}
.berita-title a:hover {
  color: var(--secondary);
}

.berita-ringkasan {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
}

.berita-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-warta {
  background: rgba(139,26,26,0.12);
  color: var(--accent);
}

.badge-kegiatan {
  background: rgba(200,150,62,0.15);
  color: #8B6914;
}

.badge-pendidikan {
  background: rgba(46,125,50,0.12);
  color: #2E7D32;
}

.badge-umkm {
  background: rgba(26,92,56,0.12);
  color: var(--primary);
}

.badge-budaya {
  background: rgba(91,26,58,0.12);
  color: #5B1A3A;
}

.badge-pemuda {
  background: rgba(21,101,192,0.12);
  color: #1565C0;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 6px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: all var(--transition);
  text-decoration: none;
}

.share-wa {
  background: rgba(37,211,102,0.12);
  color: #25D366;
}
.share-wa:hover {
  background: #25D366;
  color: #fff;
}

.share-fb {
  background: rgba(24,119,242,0.12);
  color: #1877F2;
}
.share-fb:hover {
  background: #1877F2;
  color: #fff;
}

/* Read more standalone */
.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}
.read-more:hover {
  color: var(--secondary);
  gap: 8px;
}

/* Sidebar widget title */
.widget-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* Category list & archive list */
.category-list,
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li,
.archive-list li {
  margin-bottom: 10px;
}

.category-list li a,
.archive-list li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.category-list li a:hover,
.archive-list li a:hover {
  color: var(--primary);
}

.category-list li a .count,
.archive-list li a .count {
  background: rgba(26,92,56,0.08);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary);
}

/* Pagination page-link & page-next */
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-next {
  width: auto;
  padding: 0 14px;
  font-size: 0.85rem;
}

/* ── KEGIATAN GRID (aktivitas-agenda) ── */
.kegiatan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.kegiatan-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

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

.kegiatan-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(26,92,56,0.1), rgba(200,150,62,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kegiatan-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.kegiatan-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

.kegiatan-freq {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(200,150,62,0.12);
  color: #8B6914;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  margin-top: 8px;
}

/* Agenda h3 support (some pages use h3 instead of h4) */
.agenda-info h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.agenda-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.agenda-year {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

/* ── CONTACT PAGE ── */
.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(26,92,56,0.1), rgba(200,150,62,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--primary-dark);
}

.contact-detail p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-detail a {
  color: var(--primary);
  font-weight: 500;
}

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.contact-form h3 {
  margin-bottom: 24px;
}

/* ── FORM RADIO/CHECKBOX GROUPS (gabung page) ── */
.form-radio-group,
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-radio,
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-radio input[type="radio"],
.form-checkbox input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ── GALLERY FILTER BUTTONS ── */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active,
.btn-outline:hover,
.btn-outline.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── CABANG DETAIL CARDS (cabang-sektor page) ── */
.cabang-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.cabang-detail-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

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

.cabang-detail-card .card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cabang-detail-card .card-header h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

.cabang-detail-card .card-header .status-badge {
  padding: 4px 12px;
  background: rgba(46,125,50,0.3);
  color: #A5D6A7;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
}

.cabang-detail-card .card-body {
  padding: 20px;
}

.cabang-detail-card .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.cabang-detail-card .info-row:last-child {
  border-bottom: none;
}

.cabang-detail-card .info-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.cabang-detail-card .info-value {
  color: var(--text-primary);
  font-weight: 600;
}

.cabang-detail-card .card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}

/* ── RESPONSIVE TABLE WRAPPER ── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero-scroll { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── RESPONSIVE ADDITIONS ── */
@media (max-width: 768px) {
  .berita-thumb {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    min-height: 160px;
  }

  .kegiatan-grid {
    grid-template-columns: 1fr;
  }

  .cabang-detail-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    gap: 6px;
  }

  .filter-btn,
  .btn-outline {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 20px;
  }

  .form-radio-group,
  .form-checkbox-group {
    flex-direction: column;
    gap: 8px;
  }

  .share-buttons {
    gap: 4px;
  }
}

/* Print */
@media print {
  .header, .wa-float, .back-to-top, .search-overlay { display: none; }
  .hero { min-height: auto; padding: 40px 20px; }
  .section { padding: 30px 0; }
  body { background: #fff; color: #000; }
  * { box-shadow: none !important; }
}

/* ── Fix: page content always visible (no fade-in animation needed) ── */
/* fade-in animation uses IntersectionObserver to trigger opacity:0 → 1 on scroll.
   Below-fold elements show empty space until scrolled. Override on listing pages
   so all cards are visible immediately (no jarring empty space on initial load). */
.page-static-content .fade-in,
.page-content .content-wrap .fade-in,
.page-berita .berita-card-h.fade-in,
.page-berita .fade-in,
.page-galeri .album-card.fade-in,
.page-galeri .fade-in,
.page-videos .fade-in,
.page-anggota .fade-in,
.page-pengurus .fade-in,
.berita-list .fade-in {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Fix: page-content tables — better default styling ── */
.page-content table,
.content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.page-content table th,
.content-wrap table th {
  background: linear-gradient(135deg, var(--brand-red, #c8102e) 0%, #a00d23 100%);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.page-content table td,
.content-wrap table td {
  padding: 11px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.page-content table tbody tr:nth-child(even),
.content-wrap table tbody tr:nth-child(even) {
  background: #fafafa;
}
.page-content table tbody tr:hover,
.content-wrap table tbody tr:hover {
  background: #fff8e1;
}

/* ── Fix: jabatan-badge if not styled ── */
.jabatan-badge {
  display: inline-block;
  background: var(--secondary, #c8963e);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Fix: section-header inside static page content — tighten spacing ── */
.page-static-content .section-header {
  margin-top: 48px;
  margin-bottom: 16px;
  text-align: left;
}
.page-static-content .section-header:first-child {
  margin-top: 0;
}
.page-static-content .section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.page-static-content .section-divider {
  display: none; /* full-width divider doesn't suit narrow article column */
}

/* ── Fix: org-hierarchy mobile responsive ── */
@media (max-width: 768px) {
  .org-hierarchy { gap: 16px; }
  .org-node { padding: 10px 16px; min-width: 220px; }
  .org-branches { flex-direction: column; align-items: stretch; gap: 8px; }
  .org-branches::before { display: none; }
  .org-branch { width: 100%; }
  .org-branch::before { display: none; }
  .page-content table { font-size: 0.85rem; display: block; overflow-x: auto; }
}

/* ── Static page: cabang & sektor cards ── */
.page-static-content .cabang-detail-grid {
  margin: 16px 0 32px;
}
.page-static-content .cabang-detail-card .card-header h3 {
  color: #fff;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.page-static-content .cabang-detail-card .card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-static-content .cabang-detail-card .card-body li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed var(--border-light, #e5e9ef);
  font-size: 0.92rem;
  color: var(--text-primary, #222);
  position: relative;
}
.page-static-content .cabang-detail-card .card-body li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary, #c8963e);
}
.page-static-content .cabang-detail-card .card-body li:last-child {
  border-bottom: none;
}

/* ── Static page: org tree variant (root → wilayah → cabang) ── */
.page-static-content .org-node h4 { margin: 0 0 4px; }
.page-static-content .org-branch strong {
  display: block;
  color: var(--secondary, #c8963e);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
}

/* ── SK / Surat Keputusan card ── */
.sk-card {
  background: #fff;
  border: 1px solid var(--border-light, #e5e9ef);
  border-left: 4px solid var(--secondary, #c8963e);
  border-radius: var(--radius-md, 8px);
  padding: 24px 28px;
  margin: 16px 0 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sk-card p { margin: 0 0 12px; }
.sk-card p:last-child { margin-bottom: 0; }
.sk-meta {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light, #e5e9ef);
}
.sk-meta strong { color: var(--primary, #1A3A5B); font-size: 1.02rem; }
.sk-issuer { font-size: 0.92rem; color: var(--text-secondary, #555); }
.sk-date {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-secondary, #555);
  margin-top: 8px;
}
.sk-signers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light, #e5e9ef);
}
.sk-signer {
  text-align: center;
}
.sk-signer-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary, #777);
  font-weight: 600;
  margin-bottom: 8px;
}
.sk-signer-name {
  font-weight: 700;
  color: var(--primary, #1A3A5B);
  font-size: 1rem;
}
@media (max-width: 568px) {
  .sk-card { padding: 20px 18px; }
  .sk-signers { grid-template-columns: 1fr; gap: 18px; }
}

/* ── Galeri filter UI ── */
.galeri-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
}
.galeri-filter-bar input[type="search"],
.galeri-filter-bar select {
  flex: 1;
  min-width: 180px;
  padding: 9px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}
.galeri-filter-bar label {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

/* ── Search overlay results ── */
.search-results {
  margin-top: 24px;
  max-height: 60vh;
  overflow-y: auto;
}
.search-result-item {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.search-result-item:hover { background: #fff8e1; }
.search-result-item .result-type {
  display: inline-block;
  background: var(--brand-red, #c8102e);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-result-item h4 {
  margin: 6px 0 4px;
  font-size: 1rem;
  display: inline;
}
.search-result-item p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}
.search-result-empty,
.search-result-loading {
  padding: 32px;
  text-align: center;
  color: #888;
}
.search-result-loading { color: var(--brand-red, #c8102e); }

/* ── Search results inside dark overlay (override earlier rules) ── */
.search-overlay .search-box {
  width: 90%;
  max-width: 720px;
}
.search-overlay .search-results {
  margin-top: 16px;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.search-overlay .search-result-item {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
}
.search-overlay .search-result-item:last-child { border-bottom: none; }
.search-overlay .search-result-item:hover {
  background: rgba(200,150,62,0.18);
}
.search-overlay .search-result-item h4 {
  margin: 6px 0 4px;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
  display: inline;
}
.search-overlay .search-result-item p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.search-overlay .result-type {
  display: inline-block;
  background: var(--secondary, #c8963e);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-overlay .search-result-empty {
  padding: 32px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}
.search-overlay .search-result-loading {
  padding: 32px;
  text-align: center;
  color: var(--secondary, #c8963e);
}

/* ── Video gallery ── */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.video-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.video-card .video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-card .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  pointer-events: none;
  transition: background 0.2s;
}
.video-card:hover .video-play-icon {
  background: var(--brand-red, #c8102e);
}
.video-card .video-info {
  padding: 16px;
}
.video-card .video-info h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.4;
}
.video-card .video-info .meta {
  color: #888;
  font-size: 0.85rem;
}
.video-embed-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
}
.video-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Anggota directory ── */
.anggota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.anggota-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.anggota-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}
.anggota-photo {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--brand-red, #c8102e), #a00d23);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
}
.anggota-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.anggota-info {
  padding: 16px;
}
.anggota-info h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.anggota-info .sub {
  color: #666;
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.marga-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 6px;
}
.marga-badge.sinaga   { background: #c8102e; color: #fff; }
.marga-badge.boru     { background: #c8963e; color: #fff; }
.marga-badge.bere     { background: #2196f3; color: #fff; }
.marga-badge.ibebere  { background: #4caf50; color: #fff; }
.marga-badge.dongan   { background: #757575; color: #fff; }

.anggota-meta {
  color: #555;
  font-size: 0.88rem;
  margin: 8px 0 0;
}

.anggota-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
}
.anggota-filter-bar input,
.anggota-filter-bar select {
  flex: 1;
  min-width: 140px;
  padding: 9px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}

/* ── Anggota table (ciamik) ── */
.anggota-table-wrap {
  margin: 24px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  border: 1px solid #eef0f3;
}
.anggota-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0;
  background: #fff;
}
.anggota-table thead {
  background: linear-gradient(135deg, var(--brand-red, #c8102e) 0%, #9b0c23 100%);
}
.anggota-table thead th {
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  white-space: nowrap;
}
.anggota-table thead th.col-no { width: 56px; text-align: center; }
.anggota-table thead th.col-photo { width: 64px; }
.anggota-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f3;
  vertical-align: middle;
}
.anggota-table tbody tr:last-child td { border-bottom: none; }
.anggota-table tbody tr {
  transition: background 0.15s ease;
}
.anggota-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.anggota-table tbody tr:hover {
  background: #fff8e1;
}
.anggota-table .col-no {
  text-align: center;
  color: #888;
  font-weight: 600;
  font-size: 0.88rem;
  width: 56px;
}
.anggota-table .col-photo { width: 64px; }
.anggota-table .anggota-avatar {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red, #c8102e), #a00d23);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.anggota-table .anggota-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.anggota-table .col-nama strong {
  display: block;
  font-size: 0.96rem;
  color: #222;
  font-weight: 600;
}
.anggota-table .col-nama .sub-marga {
  display: block;
  margin-top: 2px;
  color: #888;
  font-size: 0.82rem;
  font-style: italic;
}
.anggota-table .role-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.anggota-table .role-badge.role-pengurus { background: #e3f2fd; color: #1565c0; }
.anggota-table .role-badge.role-anggota  { background: #e8f5e9; color: #2e7d32; }
.anggota-table .role-badge.role-pemuda   { background: #fff3e0; color: #e65100; }
.anggota-table tbody td.col-domicile,
.anggota-table tbody td.col-profession {
  color: #555;
  font-size: 0.9rem;
}
.anggota-table .muted { color: #c0c0c0; }

@media (max-width: 920px) {
  .anggota-table {
    min-width: 760px;
  }
  .anggota-table thead th {
    padding: 12px 12px;
    font-size: 0.76rem;
  }
  .anggota-table tbody td {
    padding: 12px;
    font-size: 0.88rem;
  }
}

/* ── UMKM detail page ── */
.umkm-detail {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.umkm-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.umkm-detail-media {
  position: relative;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.umkm-detail-logo {
  width: 100%; height: 100%; object-fit: cover;
}
.umkm-detail-placeholder {
  font-size: 5rem; color: #9ca3af;
}
.umkm-detail-cat-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(26,58,91,.92); color: #fff;
  padding: 6px 14px; border-radius: 20px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .02em;
}
.umkm-detail-info .pptsb-badge {
  display: inline-block;
  background: var(--gold, #C8963E);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 12px; letter-spacing: 0.02em;
}
.umkm-detail-name {
  font-size: 1.85rem;
  margin: 0 0 8px;
  color: var(--primary, #1A3A5B);
}
.umkm-detail-owner {
  color: #6b7280; font-size: 0.95rem; margin: 0 0 18px;
}
.umkm-detail-desc {
  color: #374151; font-size: 1rem; line-height: 1.7;
  margin: 0 0 24px;
}
.umkm-detail-desc p:first-child { margin-top: 0; }
.umkm-detail-desc p:last-child { margin-bottom: 0; }
.umkm-detail-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 28px;
}
.umkm-detail-contact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 18px 20px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 0.93rem;
}
.umkm-detail-contact dt {
  font-weight: 600; color: #6b7280;
}
.umkm-detail-contact dd {
  margin: 0; color: #1f2937;
}
.umkm-detail-contact dd a {
  color: var(--primary, #1A3A5B);
  text-decoration: none;
}
.umkm-detail-contact dd a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .umkm-detail { padding: 20px; }
  .umkm-detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .umkm-detail-media { max-width: 320px; margin: 0 auto; }
  .umkm-detail-name { font-size: 1.5rem; }
  .umkm-detail-contact {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 16px;
  }
  .umkm-detail-contact dt {
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.04em; margin-top: 8px;
  }
  .umkm-detail-contact dt:first-of-type { margin-top: 0; }
}

.page-umkm-detail .fade-in {
  opacity: 1 !important;
  transform: none !important;
}

/* ════ TOKOH INSPIRATIF ════ */
.tokoh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.tokoh-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tokoh-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.tokoh-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tokoh-photo-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tokoh-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.tokoh-card:hover .tokoh-photo { transform: scale(1.04); }

.tokoh-card-body { padding: 20px; }

.tokoh-cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.tokoh-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.35;
}

.tokoh-title {
  font-size: .9rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 10px;
}

.tokoh-excerpt {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Detail page */
.tokoh-detail { max-width: 820px; margin: 0 auto; }

.tokoh-detail-header {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
}

.tokoh-detail-photo-wrap {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-card);
}
.tokoh-detail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tokoh-detail-meta { flex: 1; min-width: 0; }

.tokoh-detail-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0 8px;
  line-height: 1.25;
}

.tokoh-detail-title {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 14px;
}

.tokoh-detail-excerpt {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.tokoh-content { margin-top: 8px; }
.tokoh-content h2 { color: var(--primary-dark); margin-top: 2rem; }

@media (max-width: 640px) {
  .tokoh-detail-header { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .tokoh-detail-photo-wrap { flex: 0 0 140px; width: 140px; height: 140px; }
  .tokoh-detail-name { font-size: 1.4rem; }
}

.page-tokoh .fade-in,
.page-tokoh-detail .fade-in { opacity: 1 !important; transform: none !important; }

/* ════════════════════════════════════════════════════════════════════════════
   PENGURUS PAGE (DB-driven /pages/pengurus)
   ════════════════════════════════════════════════════════════════════════════ */

/* Filter cabang */
.pengurus-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.pengurus-filter .filter-btn {
  padding: 8px 22px;
  border: 2px solid var(--primary, #1A3A5B);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  color: var(--primary, #1A3A5B);
  transition: all .2s;
}
.pengurus-filter .filter-btn:hover {
  background: rgba(26, 58, 91, 0.08);
}
.pengurus-filter .filter-btn.active {
  background: var(--primary, #1A3A5B);
  color: #fff;
}

/* Info box masa bakti */
.pengurus-info-box {
  max-width: 800px;
  margin: 0 auto 36px;
  padding: 20px 24px;
  background: #f7f9fc;
  border-left: 4px solid var(--primary, #1A3A5B);
  border-radius: 6px;
}
.pengurus-info-box h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--primary, #1A3A5B);
}
.pengurus-info-box p {
  margin: 0 0 6px;
  color: #555;
  line-height: 1.7;
}
.pengurus-info-box p:last-child { margin-bottom: 0; }

/* Empty state */
.pengurus-empty {
  max-width: 600px;
  margin: 40px auto;
  padding: 32px;
  text-align: center;
  background: #f7f9fc;
  border-radius: 8px;
  color: #555;
}
.pengurus-empty p { margin: 0 0 8px; }
.pengurus-empty p:last-child { margin: 0; color: #777; }

/* Sub-heading antar grup (Penasehat / BPH / Komisi-komisi) */
.pengurus-subsection {
  max-width: 1100px;
  margin: 32px auto 12px;
  padding: 0 4px;
}
.pengurus-subhead {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary, #1A3A5B);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary, #C8963E);
  display: inline-block;
  letter-spacing: 0.01em;
}

/* Blok komisi */
.pengurus-komisi-block {
  max-width: 1100px;
  margin: 0 auto 36px;
}
.pengurus-komisi-title {
  margin: 22px 0 14px;
  font-size: 1.05rem;
  color: var(--primary, #1A3A5B);
  font-weight: 700;
  padding-left: 14px;
  border-left: 4px solid var(--secondary, #C8963E);
  line-height: 1.3;
}

/* Grid kartu pengurus */
.pengurus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 36px;
}

/* Kartu pengurus */
.pengurus-card {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform .2s, box-shadow .2s;
}
.pengurus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.pengurus-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1A3A5B, #3a5d82);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.pengurus-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pengurus-initials {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.pengurus-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pengurus-position {
  display: inline-block;
  background: var(--secondary, #C8963E);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  align-self: flex-start;
  text-transform: uppercase;
}
.pengurus-name {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--primary, #1A3A5B);
  font-weight: 700;
}
.pengurus-bidang {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #666;
}
.pengurus-bio {
  margin: 6px 0 10px;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
}
.pengurus-contact {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eef1f5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.pengurus-contact a {
  color: var(--primary, #1A3A5B);
  text-decoration: none;
}
.pengurus-contact a:hover {
  text-decoration: underline;
}
.pengurus-contact span {
  color: #555;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .pengurus-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
  .pengurus-subsection { margin: 24px auto 10px; }
  .pengurus-subhead { font-size: 1.1rem; }
  .pengurus-komisi-title { font-size: 0.98rem; margin: 18px 0 10px; }
  .pengurus-info-box { padding: 16px 18px; margin-bottom: 24px; }
  .pengurus-info-box h2 { font-size: 1.05rem; }
  .pengurus-filter .filter-btn { padding: 6px 16px; font-size: 0.82rem; }
  .pengurus-name { font-size: 0.95rem; }
  .pengurus-position { font-size: 0.65rem; padding: 2px 8px; }
  .pengurus-initials { font-size: 2rem; }
}
@media (max-width: 380px) {
  .pengurus-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pengurus-body { padding: 12px 12px 14px; }
}

/* ── Struktur Organisasi page (rework v2) ── */
.struktur-hierarki .org-branches.struktur-branches {
  gap: 18px;
  align-items: stretch;
}
.struktur-branch {
  width: 100%;
  max-width: 340px;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.struktur-branch h4 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  color: var(--primary, #1A3A5B);
}
.struktur-branch-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent, #C8963E);
}
.struktur-branch-ketua {
  font-size: 0.88rem;
  color: #444;
  margin-bottom: 6px;
}
.struktur-branch-ketua.muted { color: #999; font-style: italic; }
.struktur-branch-pending {
  background: #f5f5f5;
  border-color: #ccc;
  opacity: 0.75;
}
.struktur-branch-pending h4 { color: #777; }
.struktur-sektor-list {
  list-style: disc;
  padding-left: 20px;
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #555;
}
.struktur-sektor-list li { margin-bottom: 3px; line-height: 1.45; }
.struktur-sektor-ketua { color: #888; font-size: 0.92em; }

.struktur-branch-title {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 2px solid var(--border, #e7e2d8);
  color: var(--primary, #1A3A5B);
}
.struktur-section-title {
  margin: 22px 0 10px;
  font-size: 1.02rem;
  color: var(--primary, #1A3A5B);
  font-weight: 600;
}
.struktur-ketua-line {
  margin: 8px 0 14px;
  color: #444;
  font-size: 0.95rem;
}
.struktur-ketua-line.muted { color: #999; font-style: italic; }

@media (max-width: 720px) {
  .struktur-branch { max-width: 100%; }
  .struktur-branch-title { margin-top: 32px; }
}
