/* ========================================================
   KARANG TARUNA PESANGGERAHAN - DESIGN SYSTEM & STYLESHEET
   Smooth Animations · Fully Responsive (Desktop, iPad, Mobile)
   ======================================================== */

:root {
  --bg: #f8f7f2;
  --bg-card: #ffffff;
  --bg-soft: #f1efe7;
  --ink: #191c1a;
  --ink-light: #3d433f;
  --muted: #69706a;
  --muted-light: #9aa19b;
  --line: #e3dfd4;
  --line-light: #ece9df;
  
  --green: #234734;
  --green-dark: #183325;
  --green-light: #e8f0ea;
  --green-text: #1d3e2d;
  
  --red: #b8412e;
  --red-dark: #983322;
  --red-light: #faecea;
  
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(20,30,24,0.06), 0 1px 2px rgba(20,30,24,0.04);
  --shadow-md: 0 4px 16px -2px rgba(20,30,24,0.08), 0 2px 6px -1px rgba(20,30,24,0.04);
  --shadow-lg: 0 16px 36px -6px rgba(20,30,24,0.12), 0 6px 16px -2px rgba(20,30,24,0.06);
  --shadow-hover: 0 20px 42px -8px rgba(35,71,52,0.18), 0 8px 18px -4px rgba(35,71,52,0.08);
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

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

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================================
   KEYFRAME ANIMATIONS
   ======================================================== */

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 65, 46, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(184, 65, 46, 0);
  }
}

@keyframes pulseDotAnim {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* Scroll reveal classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   CONTAINER & LAYOUT
   ======================================================== */

.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-intro {
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease backwards;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.anim-badge {
  background: var(--red-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulseDotAnim 2s infinite ease-in-out;
}

.page-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
}

.page-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  max-width: 680px;
  line-height: 1.65;
  margin: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.link-arrow:hover {
  color: var(--red-dark);
  transform: translateX(4px);
}

/* ========================================================
   TOPBAR & HEADER
   ======================================================== */

.topbar {
  background: var(--green);
  color: #d8e5dc;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Smooth PJAX page transition & top progress bar */
#pjax-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red), #f59e0b);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: width 0.25s ease, opacity 0.25s ease;
}

#pjax-bar.active {
  opacity: 1;
}

#main-content {
  transition: opacity 0.18s ease;
}

#main-content.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.site-header:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

/* Desktop Horizontal Navigation (>= 1025px) */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.desktop-nav .nav-links a {
  color: var(--ink-light);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 6px;
  position: relative;
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.desktop-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.desktop-nav .nav-links a:hover,
.desktop-nav .nav-links a.active {
  color: var(--red);
}

.desktop-nav .nav-links a:hover::after,
.desktop-nav .nav-links a.active::after {
  width: 100%;
  left: 0;
}

.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 700;
  background: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-admin-link:hover {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(184, 65, 46, 0.25);
}

/* Mobile & Tablet Menu Toggle Button (Hamburger) */
.menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: var(--bg-soft);
  color: var(--red);
  border-color: rgba(184, 65, 46, 0.35);
}

.menu-toggle:active {
  transform: scale(0.94);
}

/* Fullscreen Mobile & Tablet Backdrop Overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 16, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modern Mobile & Tablet Slide-in Navigation Drawer (Slim & Compact) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 72vw);
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, visibility 0.32s;
  visibility: hidden;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.22);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

/* Body Scroll Lock when Drawer is open */
body.nav-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  flex-shrink: 0;
}

.drawer-header .brand {
  gap: 8px;
}

.drawer-header .brand-mark {
  width: 32px;
  height: 32px;
}

.drawer-header .brand-text strong {
  font-size: 14px;
}

.drawer-header .brand-text small {
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  cursor: pointer;
  color: var(--ink);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.nav-close:hover {
  background: #fee2e2;
  color: var(--red);
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.nav-close:active {
  transform: scale(0.92) rotate(90deg);
}

/* Drawer Scrollable Body */
.drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
  -webkit-overflow-scrolling: touch;
}

.drawer-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 4px 10px 8px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  min-height: 42px;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.drawer-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.drawer-nav-icon svg {
  width: 16px;
  height: 16px;
}

.drawer-nav-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.drawer-nav-arrow {
  font-size: 16px;
  color: #9ca3af;
  font-weight: 400;
  transition: transform var(--transition-fast);
}

.drawer-nav-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(184, 65, 46, 0.2);
}

.drawer-nav-item:hover {
  background: var(--bg-soft);
  color: var(--red);
}

.drawer-nav-item:hover .drawer-nav-icon {
  background: var(--red-light);
  color: var(--red);
}

.drawer-nav-item:hover .drawer-nav-arrow {
  color: var(--red);
  transform: translateX(2px);
}

.drawer-nav-item:active {
  transform: scale(0.98);
}

.drawer-nav-item.active {
  background: linear-gradient(90deg, rgba(184, 65, 46, 0.08) 0%, rgba(184, 65, 46, 0.02) 100%);
  color: var(--red);
  border-left: 3px solid var(--red);
  padding-left: 10px;
}

.drawer-nav-item.active .drawer-nav-icon {
  background: var(--red);
  color: #ffffff;
}

.drawer-nav-item.active .drawer-nav-label {
  color: var(--red);
  font-weight: 700;
}

/* Drawer Footer */
.drawer-footer {
  padding: 12px 14px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fafafa;
  flex-shrink: 0;
}

.drawer-admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 14px;
  background: #143021;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(20, 48, 33, 0.22);
  transition: all var(--transition);
  min-height: 40px;
}

.drawer-admin-btn:hover {
  background: #1c4631;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(20, 48, 33, 0.3);
  color: #ffffff !important;
}

.drawer-admin-btn:active {
  transform: scale(0.98);
}

.drawer-meta-info {
  margin-top: 8px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.drawer-meta-info span {
  display: block;
  font-weight: 600;
  color: var(--ink-light);
}

.drawer-meta-info small {
  display: block;
  color: var(--green);
  font-weight: 600;
}

/* ========================================================
   BUTTONS & BADGES
   ======================================================== */

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
  border: 1px solid var(--red);
  box-shadow: 0 2px 8px rgba(184, 65, 46, 0.2);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 65, 46, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.badge-ok {
  background: #e3ecdf;
  color: #245624;
}

.badge-warn {
  background: #faeedf;
  color: #a35a1f;
}

.badge-muted {
  background: #ece9df;
  color: #555c56;
}

.badge-err {
  background: #fee2e2;
  color: #b91c1c;
}

/* ========================================================
   HERO SECTION (Modern Banner with Dark Green Gradient & Background)
   ======================================================== */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 560px;
  background-color: #143021;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 80px 0 72px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(90deg, 
      rgba(18, 44, 30, 0.95) 0%, 
      rgba(18, 44, 30, 0.91) 42%, 
      rgba(18, 44, 30, 0.62) 68%, 
      rgba(18, 44, 30, 0.22) 100%
    ),
    linear-gradient(180deg, 
      rgba(14, 34, 23, 0.35) 0%, 
      transparent 22%, 
      transparent 78%, 
      rgba(14, 34, 23, 0.45) 100%
    );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content-box {
  max-width: 640px;
  animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d1fae5;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  position: relative;
  display: inline-block;
}

.hero-badge .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #34d399;
  animation: pulseDotRing 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes pulseDotRing {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-main-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-main-desc {
  font-size: clamp(15px, 1.35vw, 17px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.68;
  max-width: 610px;
  margin: 0 0 32px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-terracotta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c04828;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(192, 72, 40, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-terracotta:hover {
  background: #a3381b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192, 72, 40, 0.52);
  color: #ffffff !important;
}

.btn-hero-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #143021 !important;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn-hero-white:hover {
  background: #f1f5f9;
  color: #0f2419 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hero-substrip-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 38px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Fallback for legacy .hero elements */
.hero {
  padding-top: 72px;
  padding-bottom: 56px;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content {
  max-width: 820px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
  color: var(--ink);
}

.text-highlight {
  color: var(--green);
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(35, 71, 52, 0.14);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 500px;
    padding: 64px 0 54px;
    background-position: 70% center;
  }
  .hero-overlay {
    background: 
      linear-gradient(180deg, 
        rgba(18, 44, 30, 0.96) 0%, 
        rgba(18, 44, 30, 0.88) 55%, 
        rgba(18, 44, 30, 0.78) 100%
      );
  }
  .hero-content-box {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: auto;
    padding: 48px 0 42px;
  }
  .hero-btn-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-hero-terracotta,
  .btn-hero-white {
    width: 100%;
    text-align: center;
  }
  .hero-substrip-text {
    font-size: 11.5px;
    margin-top: 28px;
  }
}

/* ========================================================
   STATS SECTION
   ======================================================== */

.stats-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 36px 0;
}

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

.stat-box {
  padding: 8px 12px;
  border-left: 3px solid var(--line);
  transition: transform var(--transition), border-color var(--transition);
}

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

.stat-number {
  display: block;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-light);
}

.stat-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ========================================================
   CARDS & GRIDS
   ======================================================== */

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

/* Card Agenda */
.card-agenda {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card-agenda::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transition: transform var(--transition);
}

.card-agenda:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #d1ccbf;
}

.card-agenda:hover::before {
  transform: scaleY(1);
}

.date-badge {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
  border: 1px solid var(--line-light);
  transition: background var(--transition);
}

.card-agenda:hover .date-badge {
  background: var(--red-light);
  color: var(--red);
}

.date-badge strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.date-badge span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}

.card-agenda-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0;
  color: var(--ink);
  transition: color var(--transition-fast);
}

.card-agenda:hover .card-title,
.card-news:hover .card-title {
  color: var(--red);
}

.card-sub {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Card News */
.card-news {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.card-news:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #d1ccbf;
}

.thumb-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 190px;
  background: #eee;
}

.thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

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

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  max-width: 600px;
}

.cta-content h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  margin: 8px 0 16px;
  color: #fff;
}

.cta-content p {
  color: #d1ded5;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cta {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-cta-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-cta-outline:hover {
  background: #fff;
  color: var(--ink);
}

/* ========================================================
   PROFIL PAGE
   ======================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.visi-card {
  background: var(--green);
  color: #ffffff;
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

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

.visi-card p {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  margin: 12px 0 0;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.visi-quote-icon {
  position: absolute;
  right: 20px;
  bottom: -20px;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.08);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.misi-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.misi-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  transition: padding var(--transition-fast);
}

.misi-list li:hover {
  padding-left: 8px;
}

.misi-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-light);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.misi-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-light);
}

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

.pengurus-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.pengurus-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform var(--transition);
}

.pengurus-card:hover .pengurus-avatar {
  transform: scale(1.1);
  background: var(--red);
  color: #fff;
}

.pengurus-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.pengurus-role {
  margin-bottom: 6px;
  font-size: 11px;
}

.pengurus-meta {
  font-size: 11px;
  color: var(--muted);
}

.contact-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

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

.contact-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.contact-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
  flex: 1;
}

/* ========================================================
   AGENDA PAGE
   ======================================================== */

.featured-agenda {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.featured-agenda:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.featured-agenda-info h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin: 8px 0 12px;
  color: #fff;
}

.featured-agenda-info p {
  color: #d1ded5;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.filter-and-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-tabs a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--ink-light);
  transition: all var(--transition-fast);
}

.filter-tabs a:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.filter-tabs a.active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.search-form-inline {
  display: flex;
  align-items: center;
}

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

.search-input-wrap input {
  padding: 8px 40px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #fff;
  outline: none;
  width: 240px;
  transition: all var(--transition-fast);
}

.search-input-wrap input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(184, 65, 46, 0.12);
  width: 280px;
}

.btn-search {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-row {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.agenda-row:hover {
  transform: translateX(6px);
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}

.agenda-info .card-title {
  margin: 4px 0 6px;
}

.agenda-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  opacity: 0.8;
  transition: transform var(--transition-fast);
}

.agenda-row:hover .agenda-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Detail Card */
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.agenda-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin: 24px 0;
}

.meta-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.meta-icon {
  font-size: 24px;
}

.meta-item small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.meta-item strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.detail-body {
  margin: 28px 0;
}

.detail-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}

.detail-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-light);
}

.detail-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ========================================================
   BERITA PAGE
   ======================================================== */

.grid-2-1 {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 32px;
}

.featured-news-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  display: block;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.thumb-large {
  height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform var(--transition-slow);
}

.featured-news-card:hover .thumb-large {
  transform: scale(1.04);
}

.featured-news-body {
  padding: 28px;
}

.featured-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  margin: 10px 0 12px;
  color: var(--ink);
  transition: color var(--transition-fast);
}

.featured-news-card:hover .featured-title {
  color: var(--red);
}

.featured-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

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

.pengumuman-panel {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #d4e2d7;
  height: fit-content;
}

.pengumuman-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pengumuman-item {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: block;
}

.pengumuman-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.pengumuman-item .card-title {
  font-size: 14px;
  margin: 4px 0 0;
}

/* Article Reader View */
.article-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 24px;
}

.article-cover {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: #2c332e;
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ========================================================
   GALERI PAGE & LIGHTBOX
   ======================================================== */

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

.album-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.badge-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.album-card-body {
  padding: 18px;
}

.album-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.album-meta-row {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  flex-wrap: wrap;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.gallery-photo-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.gallery-photo-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-photo-card:hover .photo-overlay {
  opacity: 1;
}

.zoom-btn {
  background: #ffffff;
  color: var(--ink);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(8px);
  transition: transform var(--transition);
}

.gallery-photo-card:hover .zoom-btn {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.lightbox-caption {
  color: #d8deda;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ========================================================
   INVENTARIS & ANGGOTA
   ======================================================== */

.stats-inv {
  margin-bottom: 24px;
}

.filter-bar {
  margin-bottom: 24px;
}

.filter-bar-inputs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(184, 65, 46, 0.12);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.data-table th {
  background: var(--bg-soft);
  color: var(--ink-light);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink-light);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #fbfaf6;
}

.code-badge {
  background: var(--bg-soft);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: var(--green);
}

.info-callout {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.info-callout-icon {
  font-size: 24px;
}

.info-callout-text {
  font-size: 13px;
  color: var(--green-text);
  line-height: 1.5;
}

/* Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.member-card:hover .member-avatar {
  transform: scale(1.1);
  background: var(--red-light);
  color: var(--red);
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.member-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin: 2px 0 6px;
}

.member-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ========================================================
   EMPTY STATE & ERROR
   ======================================================== */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  width: 100%;
}

.empty-state p {
  margin: 0 0 16px;
  font-size: 15px;
}

/* ========================================================
   FOOTER
   ======================================================== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding-top: 60px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

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

.footer-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--red);
  transform: translateX(4px);
}

.footer-address {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.footer-badge {
  font-size: 12px;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.back-to-top {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-to-top:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP, IPAD, MOBILE)
   ======================================================== */

/* --- IPAD / TABLET LANDSCAPE & PORTRAIT (768px - 1024px) --- */
@media (max-width: 1024px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pengurus-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }

  .cta-actions {
    flex-direction: row;
    width: 100%;
  }

  .cta-actions a {
    flex: 1;
  }
}

/* --- TABLET & MOBILE BREAKPOINT (<= 1024px) --- */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }

  .menu-toggle {
    display: flex !important;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pengurus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-box-grid {
    grid-template-columns: 1fr;
  }

  .agenda-meta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- MOBILE HANDPHONE (<= 640px) --- */
@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cards-3,
  .news-grid,
  .album-grid,
  .gallery-photo-grid,
  .members-grid {
    grid-template-columns: 1fr;
  }

  .thumb-large {
    height: 220px;
  }

  .article-cover {
    height: 240px;
  }

  .agenda-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .date-block {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: var(--bg-soft);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
  }

  .date-block strong {
    font-size: 18px;
  }

  .date-block span {
    margin: 0;
  }

  .filter-and-search {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrap input {
    width: 100%;
  }

  .search-input-wrap input:focus {
    width: 100%;
  }

  .filter-bar-inputs {
    flex-direction: column;
  }

  .filter-bar-inputs input,
  .filter-bar-inputs select,
  .filter-bar-inputs button {
    width: 100%;
  }

  .featured-agenda {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .featured-agenda-action,
  .featured-agenda-action a {
    width: 100%;
  }

  .detail-card {
    padding: 24px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .cta-actions {
    flex-direction: column;
  }
}


/* ========================================================
   INVENTARIS PAGE — MODERN INTERACTIVE UI & RESPONSIVE
   ======================================================== */

.inv-hero-section {
  padding-bottom: 28px;
}

.inv-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.inv-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  animation: fadeInUp 0.5s ease 0.1s backwards;
}

.inv-summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}

.inv-summary-pill strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.inv-summary-pill small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Interactive Stat Cards Grid */
.inv-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.inv-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.inv-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(35, 71, 52, 0.28);
}

.inv-stat-card.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 71, 52, 0.12), var(--shadow-md);
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

.inv-stat-warn.is-active {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14), var(--shadow-md);
}

.inv-stat-err.is-active {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14), var(--shadow-md);
}

.inv-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.inv-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.inv-stat-card:hover .inv-stat-icon {
  transform: scale(1.08) rotate(-3deg);
}

.inv-icon-neutral { background: var(--bg-soft); color: var(--green); }
.inv-icon-ok      { background: #e3f2e7; color: var(--green); }
.inv-icon-warn    { background: #fef3c7; color: #b45309; }
.inv-icon-err     { background: #fee2e2; color: #b91c1c; }

.inv-stat-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line-light);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.inv-stat-number {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.inv-stat-ok .inv-stat-number   { color: var(--green); }
.inv-stat-warn .inv-stat-number { color: #b45309; }
.inv-stat-err .inv-stat-number  { color: #b91c1c; }

.inv-stat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.inv-stat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: 14px;
}

.inv-stat-bar {
  height: 5px;
  width: 100%;
  background: var(--line-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: auto;
}

.inv-stat-bar span {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--green);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.inv-stat-total .inv-stat-bar span { background: linear-gradient(90deg, var(--green), #3b7a57); }
.inv-stat-ok .inv-stat-bar span    { background: #22863a; }
.inv-stat-warn .inv-stat-bar span  { background: #d97706; }
.inv-stat-err .inv-stat-bar span   { background: #dc2626; }

/* Toolbar */
.inv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.inv-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  min-width: 0;
}

.inv-search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.inv-search-ico {
  position: absolute;
  left: 14px;
  color: var(--muted-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.inv-search-box input {
  width: 100%;
  padding: 10px 36px 10px 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.inv-search-box input:focus {
  background: #ffffff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 71, 52, 0.12);
}

.inv-search-box:focus-within .inv-search-ico {
  color: var(--green);
}

.inv-search-clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--line-light);
  transition: var(--transition-fast);
}

.inv-search-clear:hover {
  background: var(--red-light);
  color: var(--red);
}

.inv-search-btn {
  padding: 10px 18px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.inv-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inv-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}

.inv-pill {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.inv-pill:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.inv-pill.active {
  background: var(--green);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.inv-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
}

.inv-view-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.inv-view-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.inv-view-btn.is-active {
  background: #ffffff;
  color: var(--green);
  box-shadow: var(--shadow-sm);
}

/* Meta Strip & Smooth Results Container */
#inv-results-region {
  min-height: 220px;
  transition: opacity 0.18s ease;
}

#inv-results-region.is-updating {
  opacity: 0.45;
  pointer-events: none;
}

.inv-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 0 4px;
}

.inv-active-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inv-filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.inv-reset-link {
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
}

.inv-reset-link:hover {
  text-decoration: underline;
}

.inv-hint-text {
  font-size: 12px;
  color: var(--muted-light);
}

/* View Mode Switching */
.inv-data-shell[data-view-mode="table"] .inv-table-wrap { display: block; }
.inv-data-shell[data-view-mode="table"] .inv-cards-grid { display: none; }
.inv-data-shell[data-view-mode="cards"] .inv-table-wrap { display: none; }
.inv-data-shell[data-view-mode="cards"] .inv-cards-grid { display: grid; }

/* Sleek Table */
.inv-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.inv-table thead th {
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.inv-table tbody tr.inv-row {
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  animation: fadeInUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.inv-table tbody tr.inv-row td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: middle;
  transition: background var(--transition-fast);
}

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

.inv-table tbody tr.inv-row:hover td,
.inv-table tbody tr.inv-row:focus-visible td {
  background: #f5f8f5;
}

.inv-table tbody tr.inv-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.inv-item-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.inv-item-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  max-width: 340px;
}

.inv-qty-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line-light);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.inv-qty-pill strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

/* Status Pill with Live Dot */
.inv-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.inv-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.inv-status-ok    { background: #e6f4ea; color: #1e6032; }
.inv-status-ok .inv-status-dot { background: #22c55e; }
.inv-status-warn  { background: #fef3c7; color: #92400e; }
.inv-status-warn .inv-status-dot { background: #f59e0b; }
.inv-status-info  { background: #e0f2fe; color: #075985; }
.inv-status-info .inv-status-dot { background: #0ea5e9; }
.inv-status-muted { background: #ece9df; color: #4b5563; }
.inv-status-muted .inv-status-dot { background: #6b7280; }

.inv-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-light);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.inv-loc svg {
  color: var(--muted);
  flex-shrink: 0;
}

.inv-row-arrow-cell {
  text-align: right;
}

.inv-row-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted-light);
  background: transparent;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.inv-row:hover .inv-row-arrow {
  transform: translateX(3px);
  background: var(--green-light);
  color: var(--green);
}

/* Cards Grid View */
.inv-cards-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.inv-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.inv-card:hover,
.inv-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(35, 71, 52, 0.35);
  outline: none;
}

.inv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.inv-card-body {
  margin-bottom: 16px;
}

.inv-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}

.inv-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inv-card-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: auto;
  margin-bottom: 14px;
}

.inv-card-qty {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.inv-card-qty strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.inv-card-qty span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.inv-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.inv-card-more {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  transition: transform var(--transition-fast);
}

.inv-card:hover .inv-card-more {
  transform: translateX(3px);
}

/* Empty State */
.inv-empty {
  padding: 56px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.inv-empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.inv-empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}

.inv-empty p {
  margin: 0 auto 20px;
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
}

/* Procedure Callout Banner */
.inv-callout {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.inv-callout-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 680px;
}

.inv-callout-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #d1e7dd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inv-callout-text h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.inv-callout-text p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.inv-callout-btn {
  background: #ffffff;
  color: var(--green);
  border-color: #ffffff;
  flex-shrink: 0;
  white-space: nowrap;
}

.inv-callout-btn:hover {
  background: var(--bg);
  color: var(--green-dark);
  border-color: var(--bg);
  transform: translateY(-2px);
}

/* Detail Modal */
.inv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 18, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.inv-modal-overlay[hidden] {
  display: none;
}

.inv-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.inv-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px -12px rgba(10, 20, 14, 0.35);
  padding: 26px;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.inv-modal-overlay.is-open .inv-modal-card {
  transform: translateY(0) scale(1);
}

.inv-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.inv-modal-head h2 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.inv-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.inv-modal-close:hover {
  background: var(--red-light);
  color: var(--red);
  border-color: transparent;
}

.inv-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.inv-modal-metric {
  background: var(--bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.inv-modal-metric small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.inv-modal-metric strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.inv-modal-notes {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.inv-modal-notes small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.inv-modal-notes p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
}

.inv-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Responsive Breakpoints for Inventaris */
@media (max-width: 1024px) {
  .inv-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .inv-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inv-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .inv-toolbar-right {
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .inv-hero-section {
    padding-bottom: 20px;
  }

  .inv-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .inv-summary-pill {
    width: 100%;
  }

  .inv-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .inv-stat-card {
    padding: 15px 14px;
    border-radius: var(--radius);
  }

  .inv-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .inv-stat-number {
    font-size: 26px;
  }

  .inv-stat-label {
    font-size: 13px;
  }

  .inv-stat-sub {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .inv-toolbar {
    padding: 12px;
    border-radius: var(--radius);
  }

  .inv-search-form {
    width: 100%;
  }

  .inv-filter-pills {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .inv-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .inv-view-toggle {
    display: none;
  }

  /* Automatic clean card layout on mobile */
  .inv-data-shell[data-view-mode="table"] .inv-table-wrap,
  .inv-data-shell[data-view-mode="cards"] .inv-table-wrap {
    display: none;
  }

  .inv-data-shell[data-view-mode="table"] .inv-cards-grid,
  .inv-data-shell[data-view-mode="cards"] .inv-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .inv-hint-text {
    display: none;
  }

  .inv-callout {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }

  .inv-callout-btn {
    justify-content: center;
    width: 100%;
  }

  .inv-modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .inv-modal-card {
    padding: 20px;
    border-radius: 18px;
  }

  .inv-modal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .inv-modal-actions {
    flex-direction: column-reverse;
  }

  .inv-modal-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inv-stat-card,
  .inv-row,
  .inv-card,
  .inv-summary-pill,
  .inv-modal-card,
  .inv-stat-bar span {
    animation: none !important;
    transition: none !important;
  }
}


/* ========================================================
   CROSS-DEVICE RESPONSIVE BEST PRACTICES
   Desktop · iPad (Portrait & Landscape) · Android · iOS
   ======================================================== */

/* Eliminate 300ms tap delay on mobile & prevent accidental overflow in CSS Grids */
a, button, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

.grid-2 > *,
.grid-2-1 > *,
.cards-3 > *,
.news-grid > *,
.album-grid > *,
.gallery-photo-grid > *,
.members-grid > *,
.pengurus-grid > *,
.contact-box-grid > *,
.inv-stats-grid > *,
.inv-cards-grid > * {
  min-width: 0;
}

.page-title,
.card-title,
.featured-title,
.member-name,
.pengurus-name,
.breadcrumb,
.detail-text,
.article-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* iOS Notch / Dynamic Island & Landscape Safe Areas */
.topbar {
  padding-top: max(8px, env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-header {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-footer {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

.inv-modal-card {
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* iPad / Tablet Landscape & Portrait (768px – 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .mobile-nav-drawer {
    width: 290px;
    max-width: 48vw;
  }
}

/* Mobile & iPad Form Zoom & Touch Targets (<= 1024px) */
@media (max-width: 1024px) {
  /* Prevent iOS Safari auto-zoom on form inputs */
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px;
  }

  /* Accessible touch targets */
  .menu-toggle,
  .nav-close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Mobile Smartphones — Android & iOS (<= 640px) */
@media (max-width: 640px) {
  .topbar {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  /* Smooth horizontal scroll for Agenda & Berita category tabs on phones */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tabs a {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Full-width stacked actions on detail pages */
  .detail-footer,
  .article-actions,
  .album-detail-header {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-footer a,
  .article-actions a,
  .album-detail-header > a {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }

  .btn-primary,
  .btn-outline {
    min-height: 44px;
  }

  /* Safe lightbox close button inside viewport on mobile phones */
  .lightbox-content {
    max-width: 94vw;
    max-height: 86dvh;
  }

  .lightbox-content img {
    max-height: 72dvh;
  }

  .lightbox-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
  }

  .pengurus-card {
    padding: 18px 14px;
  }

  .inv-modal-overlay {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* Ultra-narrow screens (iPhone SE / small Android <= 380px) */
@media (max-width: 380px) {
  .mobile-nav-drawer {
    width: min(250px, 78vw);
  }

  .stats-container,
  .inv-stats-grid,
  .pengurus-grid {
    grid-template-columns: 1fr;
  }

  .brand-text small {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
}

/* Touch devices: prevent sticky hover jump & provide crisp tap feedback */
@media (hover: none) {
  .card-agenda:hover,
  .card-news:hover,
  .album-card:hover,
  .pengurus-card:hover,
  .member-card:hover,
  .inv-stat-card:hover,
  .inv-card:hover,
  .stat-box:hover {
    transform: none;
  }

  .card-agenda:active,
  .card-news:active,
  .album-card:active,
  .inv-stat-card:active,
  .inv-card:active,
  .btn-primary:active,
  .btn-outline:active {
    transform: scale(0.985);
  }
}


/* ========================================================
   REAL PHOTO AVATARS — PENGURUS INTI & ANGGOTA
   ======================================================== */

.pengurus-avatar.has-photo {
  width: 88px;
  height: 88px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--green-light), 0 8px 20px -4px rgba(35, 71, 52, 0.22);
  cursor: pointer;
}

.pengurus-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pengurus-card:hover .pengurus-avatar.has-photo {
  background: var(--bg-soft);
  box-shadow: 0 0 0 2.5px var(--red), 0 12px 24px -4px rgba(184, 65, 46, 0.28);
  transform: scale(1.04);
}

.pengurus-card:hover .pengurus-avatar.has-photo img {
  transform: scale(1.06);
}

.member-avatar.has-photo {
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-soft);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 1.5px var(--green-light), 0 4px 12px rgba(20, 30, 24, 0.14);
  flex-shrink: 0;
  cursor: pointer;
}

.member-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover .member-avatar.has-photo {
  background: var(--bg-soft);
  box-shadow: 0 0 0 2px var(--red), 0 6px 16px rgba(184, 65, 46, 0.22);
  transform: scale(1.04);
}

.member-card:hover .member-avatar.has-photo img {
  transform: scale(1.07);
}


/* ========================================================
   AGENDA SOCIAL SHARING (CHAT WA, STATUS WA, STORY IG)
   ======================================================== */

.agenda-title-link {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.agenda-title-link:hover {
  color: var(--red);
}

.agenda-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.agenda-view-detail {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.agenda-view-detail:hover {
  background: var(--red-light);
  transform: translateX(3px);
}

.agenda-share-pills {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: 1px solid transparent;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.pill-wa {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.pill-wa:hover {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
  transform: translateY(-1px);
}

.pill-status {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.pill-status:hover {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
  transform: translateY(-1px);
}

.pill-ig {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}
.pill-ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* Featured Agenda Share Buttons */
.featured-share-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 10px;
}

.feat-share-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d1fae5;
  opacity: 0.9;
}

.feat-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.feat-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  font-family: inherit;
}
.feat-share-pill:hover {
  background: #ffffff;
  color: var(--green);
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* Detail Page Share Section */
.agenda-share-section {
  margin: 32px 0 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fcfdfc 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.06);
}

.share-section-head {
  margin-bottom: 18px;
}

.share-section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #166534;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.share-section-title {
  margin: 4px 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #14532d;
}

.share-section-sub {
  margin: 0;
  font-size: 13.5px;
  color: #166534;
  opacity: 0.9;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.btn-share-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  text-align: left;
}

.share-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.share-btn-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
}

.share-btn-text small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Detail Chat WA */
.btn-wa-chat {
  border-color: #86efac;
}
.btn-wa-chat .share-btn-icon {
  background: #ecfdf5;
  color: #15803d;
}
.btn-wa-chat strong {
  color: #15803d;
}
.btn-wa-chat:hover {
  background: #15803d;
  border-color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.25);
}
.btn-wa-chat:hover .share-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.btn-wa-chat:hover strong,
.btn-wa-chat:hover small {
  color: #ffffff;
}

/* Detail Status WA */
.btn-wa-status {
  border-color: #a7f3d0;
}
.btn-wa-status .share-btn-icon {
  background: #f0fdf4;
  color: #047857;
}
.btn-wa-status strong {
  color: #047857;
}
.btn-wa-status:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.25);
}
.btn-wa-status:hover .share-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.btn-wa-status:hover strong,
.btn-wa-status:hover small {
  color: #ffffff;
}

/* Detail Story IG */
.btn-ig-story {
  border-color: #fbcfe8;
}
.btn-ig-story .share-btn-icon {
  background: #fdf2f8;
  color: #db2777;
}
.btn-ig-story strong {
  color: #be185d;
}
.btn-ig-story:hover {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
}
.btn-ig-story:hover .share-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.btn-ig-story:hover strong,
.btn-ig-story:hover small {
  color: #ffffff;
}

/* Detail Copy Link */
.btn-copy-link {
  border-color: #cbd5e1;
}
.btn-copy-link .share-btn-icon {
  background: #f1f5f9;
  color: #334155;
}
.btn-copy-link strong {
  color: var(--ink);
}
.btn-copy-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}
.btn-copy-link:hover .share-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.btn-copy-link:hover strong,
.btn-copy-link:hover small {
  color: #ffffff;
}

/* ========================================================
   INSTAGRAM STORY STUDIO MODAL (9:16)
   ======================================================== */
.story-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 18, 13, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.story-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  max-height: 94vh;
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #fcfdfc;
  gap: 16px;
}

.story-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #be185d;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.story-modal-title {
  margin: 4px 0 2px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.story-modal-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.story-modal-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.story-modal-close:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.story-modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* Phone Frame with 9:16 aspect ratio */
.story-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-phone-frame {
  width: 250px;
  height: 444px;
  background: #0d281a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(13, 40, 26, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
}

.story-phone-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.story-preview-caption {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* Action buttons and guidance */
.story-actions-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-agenda-badge-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.story-agenda-badge-info strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
}

.story-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-story-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-story-download {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
}
.btn-story-download:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 101, 52, 0.35);
}

.btn-story-copy {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
}
.btn-story-copy:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-story-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.3);
}
.btn-story-ig:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.story-guide-card {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 14px 16px;
}

.guide-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  margin-bottom: 8px;
}

.guide-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.55;
}

.guide-steps li {
  margin-bottom: 5px;
}
.guide-steps li:last-child {
  margin-bottom: 0;
}

/* Floating Toast */
.share-toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
}

.share-toast-notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments for share elements */
@media (max-width: 900px) {
  .share-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
  }

  .story-preview-container {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .share-buttons-grid {
    grid-template-columns: 1fr;
  }

  .agenda-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    margin-top: 4px;
  }

  .agenda-share-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .share-pill {
    padding: 7px 11px;
    font-size: 12px;
  }

  .featured-share-group {
    align-items: flex-start;
    width: 100%;
  }

  .feat-pills-row {
    display: flex;
    width: 100%;
    gap: 6px;
  }

  .feat-share-pill {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
  }

  .story-modal-card {
    border-radius: 16px;
    max-height: 96vh;
    max-height: 96dvh;
  }

  .story-phone-frame {
    width: 210px;
    height: 373px;
  }
}


/* ========================================================
   AGENDA PAMPHLET & PHOTO STYLES
   ======================================================== */

.badge-pamflet {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-pamflet-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Agenda List Row Pamphlet Thumbnail */
.agenda-thumb-media {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
  background: #0f172a;
}

.agenda-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.agenda-row:hover .agenda-thumb-media img {
  transform: scale(1.08);
}

.thumb-date-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 25, 18, 0.84);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  padding: 2px 4px;
  text-align: center;
  line-height: 1.1;
}

.thumb-date-badge strong {
  font-size: 11px;
  display: block;
  font-weight: 800;
}

.thumb-date-badge span {
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: #a7f3d0;
  text-transform: uppercase;
}

/* Pamphlet Showcase in Detail Page */
.agenda-pamphlet-showcase {
  margin: 24px 0 28px;
}

.pamphlet-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a140f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.pamphlet-main-img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #0b1510;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.pamphlet-main-img:hover {
  opacity: 0.94;
}

.pamphlet-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
}

.pamphlet-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
}

.btn-pamphlet-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-pamphlet-action:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* Pamphlet Lightbox Viewer */
.pamphlet-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.pamphlet-lightbox-card {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pamphlet-lightbox-card img {
  max-width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  background: #000;
}

.pamphlet-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

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

.pamphlet-lightbox-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  color: #ffffff;
  font-size: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-pamphlet-download {
  color: #ffffff;
  background: var(--green);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-pamphlet-download:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* Featured Agenda with Pamphlet */
.featured-agenda.has-pamphlet-banner {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
}

.featured-pamphlet-cover {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: block;
  flex-shrink: 0;
  background: #06180f;
}

.featured-pamphlet-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-pamphlet-cover:hover img {
  transform: scale(1.06);
}

.pamphlet-badge-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Homepage Agenda Card with Pamphlet Cover */
.card-agenda.has-cover {
  padding-top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-agenda-media {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #0f172a;
}

.card-agenda-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card-agenda:hover .card-agenda-media img {
  transform: scale(1.08);
}

.media-date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--green);
  border-radius: 8px;
  padding: 5px 9px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  line-height: 1.05;
}

.media-date-badge strong {
  font-size: 15px;
  display: block;
  font-weight: 800;
}

.media-date-badge span {
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .featured-agenda.has-pamphlet-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .featured-pamphlet-cover {
    width: 100%;
    height: 190px;
  }
}
