/* 
   Satosakaki Volunteer Team Web CSS
   Design System: Warm Emerald & Hope Gold
   Author: Antigravity Web Designer
*/

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

:root {
  /* Color Palette */
  --primary-rgb: 4, 120, 87; /* Emerald Green: rgba compatibility */
  --primary: hsl(162, 93%, 24%); /* Deep Emerald */
  --primary-hover: hsl(162, 93%, 18%);
  --primary-light: hsl(162, 93%, 95%);
  --secondary: hsl(37, 98%, 53%); /* Warm Orange/Gold */
  --secondary-hover: hsl(37, 98%, 46%);
  --secondary-light: hsl(37, 98%, 95%);
  
  --dark: hsl(220, 40%, 13%);
  --dark-soft: hsl(220, 20%, 30%);
  --light: hsl(220, 40%, 98%);
  --white: #ffffff;
  
  /* Status Colors */
  --success: hsl(142, 72%, 29%);
  --danger: hsl(0, 72%, 50%);
  --border: hsl(220, 15%, 90%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(4, 120, 87, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Fonts */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: hsl(162, 30%, 80%);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

p {
  color: var(--dark-soft);
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

@media (max-width: 768px) {
  .container {
    padding: 48px 0;
    width: 92%;
  }
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  transition: all 0.3s ease;
}


.logo-icon {
  background: var(--primary-light);
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-soft);
  position: relative;
  padding: 6px 0;
  transition: all 0.3s ease;
}

header.scrolled .nav-links a {
  color: var(--dark-soft);
}

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

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

header.scrolled .nav-links a::after {
  background-color: var(--primary);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none; /* Mobile navigation toggle logic in JS */
  }
  .hamburger {
    display: flex;
  }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-nav.open {
  height: 320px;
  border-bottom: 1px solid var(--border);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px;
  list-style: none;
}

.mobile-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  color: var(--white);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.8) 100%
  );
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -1px;
  max-width: 850px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 750px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 4px;
}

.hero-actions .btn {
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-actions .btn-secondary {
  box-shadow: 0 10px 20px -3px rgba(245, 158, 11, 0.3);
}

.hero-actions .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -3px rgba(245, 158, 11, 0.45);
}

.hero-actions .btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.hero-actions .btn-outline:hover {
  transform: translateY(-3px);
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  padding: 18px 22px;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
  z-index: 10;
  border: 1px solid rgba(226, 232, 240, 0.6);
  width: max-content;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge-icon {
  background-color: var(--secondary-light);
  color: var(--secondary);
  padding: 10px;
  border-radius: 12px;
  display: flex;
}

.hero-badge-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.hero-badge-text p {
  font-size: 0.8rem;
  color: var(--dark-soft);
  margin: 0;
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero-desc {
    font-size: 1.1rem;
  }
  .hero-badge {
    display: none;
  }
}

/* Impact Counter Section */
.impact {
  background-color: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.impact-card {
  background-color: var(--light);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  min-width: 0;
  overflow: hidden;
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(4, 120, 87, 0.1);
}

.impact-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.impact-card p {
  font-weight: 500;
  color: var(--dark-soft);
}

/* Impact Slideshow Styles (Dinamis & Hemat Ruang) */
.impact-photo-frame {
  width: 100%;
  max-width: 100%;
  height: 130px;
  overflow: hidden;
  position: relative;
  margin: 20px 0 0 0;
  background: transparent;
}

.impact-photo-slide-linear {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 16px;
  width: max-content;
  height: 100%;
  padding-right: 16px;
  animation: scrollLinear 20s linear infinite;
}

.impact-photo-slide-linear img,
.impact-photo-slide-linear video {
  width: 130px !important;
  height: 130px !important;
  max-width: none !important;
  object-fit: cover;
  flex-shrink: 0 !important;
  border-radius: 12px;
  border: 3px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  background: #fff;
  transition: transform 0.3s ease;
}

.impact-photo-slide-linear img:hover,
.impact-photo-slide-linear video:hover {
  transform: scale(1.05);
}



@keyframes scrollLinear {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-438px);
  }
}

/* News Section */
.news-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background-color: var(--white);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  color: var(--dark-soft);
}

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

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

@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

/* Portal Layout: Social Media Post Grid Feed (Facebook/LinkedIn Card Preview Style) */
.news-grid-portal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .news-grid-portal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid-portal {
    grid-template-columns: 1fr;
  }
}

/* Portal Layout: Split Modern News Media Grid (Kumparan/IDN Times style) */
.news-grid-portal {
  display: block !important;
  width: 100%;
}

/* News Portal Layout Custom Styling */
@media (max-width: 991px) {
  .news-portal-container {
    grid-template-columns: 1fr !important;
  }
  .active-tracker-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .active-tracker-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  .news-featured-card {
    flex-direction: column !important;
    min-height: auto !important;
  }
  .news-featured-card > div:first-child {
    width: 100% !important;
    padding: 24px !important;
  }
  .news-featured-card > div:last-child {
    width: 100% !important;
    height: 220px !important;
  }
}

.news-featured-card {
  transition: all 0.3s ease;
}

.news-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15) !important;
}

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

.news-sidebar-item {
  transition: all 0.3s ease;
}

.news-sidebar-item:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-2px);
}

.news-sidebar-item:hover .sidebar-news-title {
  color: var(--primary) !important;
}

.tracker-card {
  transition: all 0.3s ease;
}
.tracker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
  border-color: var(--primary) !important;
}

/* Ping animation for active tracker */
.ping-dot {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.news-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.news-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--white);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--dark-soft);
  font-weight: 500;
}

.news-body h3 {
  font-size: 1.25rem;
  color: var(--dark);
}

.news-body p {
  font-size: 0.95rem;
  color: var(--dark-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Transparency/Finance Section */
.transparency {
  background-color: var(--white);
}

.transparency-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 991px) {
  .transparency-grid {
    grid-template-cols: 1fr;
    gap: 40px;
  }
}

.transparency-charts {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.progress-group {
  margin-bottom: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 100px;
  width: 0%; /* Populated in JS or static */
  transition: width 1.5s ease-out;
}

.transparency-report {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background-color: var(--light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.report-card-icon {
  color: var(--primary);
}

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

.report-card-text p {
  font-size: 0.9rem;
}

/* Donation Form (Widget) */
.donation-widget {
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
  border-top: 1px solid var(--border);
}

.donation-grid {
  display: grid;
  grid-template-cols: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 991px) {
  .donation-grid {
    grid-template-cols: 1fr;
    gap: 40px;
  }
}

.donation-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.amount-buttons {
  display: grid;
  grid-template-cols: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.amount-btn {
  background-color: var(--light);
  border: 2px solid transparent;
  padding: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.05rem;
  text-align: center;
  color: var(--dark);
}

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

.amount-btn.active {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

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

.currency-prefix {
  position: absolute;
  left: 16px;
  font-weight: 700;
  color: var(--dark-soft);
}

.input-field {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  outline: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--primary);
}

.input-text {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.input-text:focus {
  border-color: var(--primary);
}

.donation-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Donor Wall (Dinding Kebaikan) */
.donor-wall-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 480px;
  display: flex;
  flex-direction: column;
}

.donor-wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.donor-wall-header h3 {
  font-size: 1.25rem;
}

.donor-wall-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 8px;
}

.donor-item {
  display: flex;
  gap: 12px;
  background-color: var(--light);
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--secondary);
  animation: slideIn 0.3s ease-out;
}

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

.donor-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-light);
  color: var(--secondary);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donor-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.donor-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.donor-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.donor-amount {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.donor-message {
  font-size: 0.85rem;
  color: var(--dark-soft);
  font-style: italic;
}

.donor-time {
  font-size: 0.75rem;
  color: var(--dark-soft);
  opacity: 0.7;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.modal-container {
  background: var(--white);
  width: 90%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(30px);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 24px;
  position: relative;
}

.modal-header h3 {
  color: var(--white);
  font-size: 1.4rem;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
}

.modal-close:hover {
  opacity: 1;
}

.modal-tabs {
  display: flex;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-soft);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary);
  background: var(--white);
  border-bottom: 2px solid var(--primary);
}

.modal-body {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.payment-panel {
  display: none;
}

.payment-panel.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease-out;
}

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

.qris-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.qris-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--white);
}

.bank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bank-item {
  background: var(--light);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-info h4 {
  font-size: 1rem;
}

.bank-account {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin: 4px 0;
}

.bank-holder {
  font-size: 0.8rem;
  color: var(--dark-soft);
  text-transform: uppercase;
}

.btn-copy {
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-copy:hover {
  background-color: var(--primary);
  color: var(--white);
}

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

.wallet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.wallet-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-phone {
  font-weight: 600;
  color: var(--dark-soft);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  z-index: 3000;
  transition: var(--transition);
}

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

.toast-icon {
  color: var(--secondary);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-cols: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-cols: 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand .logo-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
  position: absolute;
  bottom: 0;
  left: 0;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-item-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Gallery Section Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }
}

body.admin-mode-active .gallery-direct-admin-controls {
  display: flex !important;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-item:hover {
  transform: scale(0.98) translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

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

.gallery-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.65rem;
  font-weight: 700;
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  max-width: 90%;
  line-height: 1.35;
}

.gallery-overlay i {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  backdrop-filter: blur(4px);
}

/* Lightbox Modal Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.lightbox-container {
  width: 90%;
  max-width: 1100px;
  height: 80vh;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: row;
  position: relative;
}

.lightbox-img-panel {
  flex: 1.25;
  position: relative;
  background: #0f172a; /* Sleek dark theme for image preview */
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-info-panel {
  flex: 0.75;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  overflow-y: auto;
}

.lightbox-mini-map {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 220px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  z-index: 20;
  background: var(--white);
  transition: var(--transition);
}

.lightbox-mini-map:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

/* Instagram-Style Comments */
.comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.comment-content {
  flex-grow: 1;
}

.comment-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.comment-text {
  font-size: 0.85rem;
  color: var(--dark-soft);
  line-height: 1.4;
}

.comment-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--dark-soft);
}

.btn-comment-reply {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
}

.btn-comment-like {
  background: none;
  border: none;
  color: var(--dark-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  font-size: 0.75rem;
  transition: var(--transition);
}

.btn-comment-like.liked {
  color: var(--danger);
  font-weight: 600;
}

.replies-container {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.6);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 768px) {
  .lightbox-container {
    flex-direction: column !important;
    height: 90vh !important;
    width: 95% !important;
  }
  .lightbox-img-panel {
    flex: 1 !important;
    min-height: 40vh !important;
  }
  .lightbox-info-panel {
    flex: 1 !important;
    padding: 20px !important;
  }
  .lightbox-mini-map {
    position: relative !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 160px !important;
    margin-top: 15px !important;
    border: 1px solid var(--border) !important;
  }
  .lightbox-close {
    background: rgba(15, 23, 42, 0.8) !important;
  }
}

/* Crisis Dashboard Styles */
.crisis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .crisis-grid {
    grid-template-cols: 1fr;
    gap: 30px;
  }
}

/* Crisis Map Column */
.crisis-card-map {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-viewport {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: hsl(210, 40%, 93%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-svg-bg {
  width: 100%;
  height: 100%;
}

.map-pin {
  cursor: pointer;
  transition: var(--transition);
}

.map-pin circle.pulse-ring {
  transform-origin: center;
  animation: svgPinPulse 2s infinite;
}

@keyframes svgPinPulse {
  0% { r: 6px; opacity: 1; stroke-width: 1; }
  100% { r: 20px; opacity: 0; stroke-width: 0; }
}

.map-details {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-status.warning {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.badge-status.danger {
  background-color: hsl(0, 72%, 95%);
  color: var(--danger);
}

/* Live Ticker Column */
.crisis-card-ticker {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ticker-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 8px;
  max-height: 400px;
}

.ticker-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.ticker-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.ticker-item:last-child::before {
  display: none;
}

.ticker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border);
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ticker-dot.pulse {
  background-color: var(--secondary);
  box-shadow: 0 0 0 rgba(249, 115, 22, 0.4);
  animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.ticker-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticker-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-soft);
}

.ticker-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.ticker-desc {
  font-size: 0.85rem;
  color: var(--dark-soft);
}

/* Logistics Status Column */
.crisis-card-logistics {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.logistics-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.logistics-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.logistics-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.logistics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logistics-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.logistics-pct {
  font-weight: 800;
  font-size: 0.85rem;
}

.logistics-pct.urgent {
  color: var(--danger);
}

.logistics-pct.medium {
  color: var(--secondary);
}

.logistics-pct.fulfilled {
  color: var(--primary);
}

.logistics-bar-bg {
  width: 100%;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.logistics-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease-out;
}

.logistics-bar-fill.urgent {
  background-color: var(--danger);
}

.logistics-bar-fill.medium {
  background-color: var(--secondary);
}

.logistics-bar-fill.fulfilled {
  background-color: var(--primary);
}

.btn-donate-logistics {
  font-size: 0.8rem;
  padding: 6px 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  align-self: flex-start;
  font-weight: 700;
  transition: var(--transition);
}

.logistics-item:hover .btn-donate-logistics {
  background-color: var(--primary);
  color: var(--white);
}

/* Admin Mode & Edit Button Styles */
.admin-toggle-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1500;
  background-color: var(--dark);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none; /* Hide by default */
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.admin-toggle-btn:hover {
  background-color: var(--primary);
  transform: rotate(45deg) scale(1.05);
}

body.admin-mode-active .admin-toggle-btn {
  display: flex !important;
}

.admin-badge-indicator {
  position: fixed;
  bottom: 84px;
  left: 24px;
  background-color: var(--danger);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  z-index: 1499;
  display: none;
  align-items: center;
  gap: 6px;
}

body.admin-mode-active .admin-badge-indicator {
  display: inline-flex;
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.98); }
}

.edit-trigger {
  display: none !important; /* Hide by default from visitors */
  background-color: var(--secondary-light);
  color: var(--secondary);
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  gap: 6px;
  flex-shrink: 0;
}

.edit-trigger:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-1px);
}

body.admin-mode-active .edit-trigger {
  display: inline-flex !important;
}

/* Admin Form Modal adjustments */
.admin-form-group {
  margin-bottom: 16px;
}

.admin-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

/* Delete button styling */
.delete-trigger {
  display: none !important; /* Sembunyikan dari pengunjung umum */
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delete-trigger:hover {
  background-color: var(--danger);
  color: var(--white);
  transform: scale(1.1);
}

body.admin-mode-active .delete-trigger {
  display: inline-flex !important;
}

.delete-trigger:focus-visible {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

.delete-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* News Lightbox Overlay styles */
#news-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1400;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#news-lightbox-overlay.active {
  display: flex;
}

@media (max-width: 768px) {
  #news-lightbox-overlay .news-lightbox-card {
    width: 95% !important;
    max-height: 90vh !important;
  }
  #news-lightbox-overlay .news-lightbox-card > div {
    grid-template-columns: 1fr !important;
    grid-template-rows: 200px 1fr !important;
    overflow-y: auto !important;
  }
}

/* ==========================================================================
   Navigation Dropdowns & Mega Menu
   ========================================================================== */
.nav-links li {
  position: relative;
}

.dropdown {
  position: relative;
}

/* Trigger mega menu on hover */
.dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-dropdown {
  position: absolute;
  top: calc(100% + 15px); /* Added offset to avoid gap */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  width: 540px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1500;
}

/* Overlay bridge to prevent mouseout when hovering down to mega menu */
.mega-dropdown::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.mega-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mega-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition) !important;
  text-decoration: none;
  color: var(--dark) !important;
  background: transparent;
  border: 1px solid transparent;
}

.mega-item:hover {
  background: var(--light) !important;
  color: var(--primary) !important;
  border-color: var(--border);
}

.mega-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-text strong {
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 700;
}

.mega-text span {
  font-size: 0.72rem;
  color: var(--dark-soft);
  line-height: 1.4;
}

/* ==========================================================================
   Statistik Dashboard Modal & Panels
   ========================================================================== */
.stat-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--dark-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: auto !important; /* Ensure buttons can receive click events */
  position: relative;
  z-index: 5;
}

/* Visibility rules for dynamic admin action buttons and sidebar add buttons */
#btn-add-incident,
#btn-add-tabulation,
#btn-add-resource,
.btn-action-edit,
.btn-action-delete,
.btn-tab-edit,
.btn-tab-delete,
.btn-res-edit,
.btn-res-delete,
.btn-news-delete {
  display: none !important;
}

body.admin-mode-active #btn-add-incident,
body.admin-mode-active #btn-add-tabulation,
body.admin-mode-active #btn-add-resource {
  display: flex !important;
}

body.admin-mode-active .btn-action-edit,
body.admin-mode-active .btn-action-delete,
body.admin-mode-active .btn-tab-edit,
body.admin-mode-active .btn-tab-delete,
body.admin-mode-active .btn-res-edit,
body.admin-mode-active .btn-res-delete,
body.admin-mode-active .btn-news-delete {
  display: inline-block !important;
}

/* Complete Column Hiding Rules for "Aksi" to maintain visual integrity for normal visitors */
.admin-only-column {
  display: none !important;
}

body.admin-mode-active .admin-only-column {
  display: table-cell !important;
}

.stat-tab-btn:hover {
  background: var(--light);
  color: var(--dark);
}

.stat-tab-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-left: 3px solid var(--primary);
}

.stat-panel {
  display: none;
  flex-direction: column;
}

.stat-panel.active {
  display: flex;
}

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

.stat-table th {
  background: #f1f5f9;
  color: var(--dark);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.stat-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dark-soft);
}

.stat-table tr:hover {
  background: #f8fafc;
}

.stat-card {
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

@media (max-width: 900px) {
  .mega-dropdown {
    width: 320px;
  }
  .mega-dropdown-grid {
    grid-template-columns: 1fr;
  }
  .mega-item[style*="grid-column"] {
    grid-column: span 1 !important;
  }
}

/* Responsive charts grid collapse */
@media (max-width: 768px) {
  .charts-container {
    grid-template-columns: 1fr !important;
  }
  .charts-container > div {
    height: 300px !important;
  }
}

/* Subpage Navigation Bar Styles */
.subpage header {
  box-shadow: var(--shadow-sm) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.subpage header .nav-links a {
  color: var(--dark-soft) !important;
}

.subpage header .nav-links a:hover,
.subpage header .nav-links a.active {
  color: var(--primary) !important;
}

.subpage header .logo {
  color: var(--primary) !important;
}

.subpage header .dropdown-toggle {
  color: var(--dark-soft) !important;
}

.subpage header .dropdown-toggle:hover {
  color: var(--primary) !important;
}

/* Subpage tagline & title overrides */
.subpage .tagline {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(4, 120, 87, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* News Hero layout setup */
.news-hero {
  padding-top: 140px;
  padding-bottom: 40px;
  background: radial-gradient(circle at 10% 20%, rgba(4, 120, 87, 0.06) 0%, rgba(255, 255, 255, 0) 90%);
  color: var(--dark);
}

.news-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--dark) !important;
  line-height: 1.2;
}

.news-hero p {
  color: var(--dark-soft) !important;
  margin-top: 12px;
  font-size: 1.1rem;
  max-width: 750px;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}


