/* ==========================================================================
   NahlMedia Edu - Halaman Pendukung & Dinding Kebaikan (pendukung.css)
   ========================================================================== */

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

:root {
  --bg-base: #aee1c4;
  --bg-gradient-top: #c2f0d6;
  --bg-gradient-bottom: #97d4b1;
  --brand-primary: #059669;
  --brand-primary-dark: #064e3b;
  --brand-honey: #f59e0b;
  --brand-honey-hover: #d97706;
  --text-main: #062b1b;
  --text-muted: #15573b;
  --card-radius: 24px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 18% 20%, rgba(167, 243, 208, 0.65) 0%, transparent 45%),
    radial-gradient(circle at 82% 16%, rgba(254, 243, 199, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-base) 45%, var(--bg-gradient-bottom) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}

.honeycomb-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath fill='%23064e3b' d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66ZM28 97L0 81L0 66L28 82L56 66L56 81L28 97Z'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px -2px rgba(6, 78, 59, 0.08);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #043f2e 0%, #059669 45%, #b45309 82%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links-desktop a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  transition: color 0.2s ease;
}

.nav-links-desktop a:hover {
  color: var(--brand-primary);
}

.nav-links-desktop a.active {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 2px;
}

.pendukung-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-sound-toggle {
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  border-radius: 9999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-sound-toggle:hover {
  transform: scale(1.05);
  border-color: #34d399;
}

.btn-donasi-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.btn-donasi-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* Hero Section */
.pendukung-hero-section {
  text-align: center;
  padding: 56px 0 36px 0;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #a7f3d0;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.06);
}

.pendukung-hero-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 900;
  color: #052417;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.pendukung-hero-subtitle {
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

/* Quick Impact Stat Row */
.stat-counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.stat-counter-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.06);
  text-align: center;
}

.stat-counter-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.stat-counter-number {
  font-size: 1.65rem;
  font-weight: 900;
  color: #065f46;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-counter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-top: 4px;
}

/* Section Common Styling */
.supporters-section {
  margin-bottom: 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 2px solid rgba(6, 78, 59, 0.1);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head-left h2 {
  font-size: 1.55rem;
  font-weight: 900;
  color: #064e3b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head-left p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Institutional / Key Partners Grid (PhET Pattern) */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(6, 78, 59, 0.06);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(6, 78, 59, 0.12);
  border-color: #6ee7b7;
}

.partner-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.partner-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.partner-title-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.partner-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-top: 4px;
}

.partner-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
}

.partner-impact-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

/* Community & School Partners */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.school-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.2s ease;
}

.school-card:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.08);
}

.school-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.school-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.school-location {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.school-role {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Individual Donors / Wall of Gratitude */
.wall-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

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

.chip-btn {
  padding: 7px 16px;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.search-input-box {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #059669;
}

.search-icon-inside {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #94a3b8;
  pointer-events: none;
}

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

.donor-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.donor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(6, 78, 59, 0.1);
  border-color: #a7f3d0;
}

.donor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.donor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.donor-info h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.donor-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.donor-tier-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #065f46;
}

.donor-date {
  font-size: 0.72rem;
  color: #94a3b8;
}

.donor-message {
  background: #f8fafc;
  border-left: 3px solid #10b981;
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  font-size: 0.83rem;
  color: #334155;
  font-style: italic;
  line-height: 1.45;
  margin-top: 4px;
}

/* Empty Donor State */
.empty-donor-state {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.88);
  border: 2px dashed #34d399;
  border-radius: 24px;
  padding: 46px 28px;
  text-align: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(6, 78, 59, 0.06);
  max-width: 680px;
  margin: 10px auto;
}

.empty-state-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
}

.empty-donor-state h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #064e3b;
  margin-bottom: 8px;
}

.empty-donor-state p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
}

.btn-donasi-first {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
}

.btn-donasi-first:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

/* Call to Action Banner */
.join-supporters-banner {
  background: linear-gradient(135deg, #064e3b 0%, #043f2e 100%);
  border-radius: 28px;
  padding: 44px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.25);
  margin-bottom: 60px;
}

.join-text h3 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.join-text p {
  font-size: 0.92rem;
  color: #a7f3d0;
  max-width: 620px;
  line-height: 1.5;
}

.btn-join-cta {
  padding: 14px 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-join-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.45);
}

/* Footer */
.main-footer {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #064e3b;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .stat-counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .schools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .join-supporters-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .join-text p {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    padding-bottom: 84px !important;
  }

  .main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 56px !important;
    max-height: 56px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1.5px solid #eef2f6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .main-header .container,
  .header-content {
    height: 100% !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .brand-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand-wrapper .brand-name {
    font-size: 1rem;
    font-weight: 900;
  }

  .nav-links-desktop {
    display: none;
  }

  .pendukung-header-donasi {
    display: none !important; /* Hide redundant button in mobile header (present in dock) */
  }

  .pendukung-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-sound-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
  }

  .stat-counters-grid {
    grid-template-columns: 1fr;
  }
  .schools-grid {
    grid-template-columns: 1fr;
  }
  .donors-grid {
    grid-template-columns: 1fr;
  }
  .wall-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-box {
    width: 100%;
  }

  /* Mobile Bottom Dock */
  .mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px;
    z-index: 9999;
  }

  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    gap: 1px;
  }

  .dock-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .dock-label {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }

  .dock-item.active {
    color: #059669;
  }

  .dock-pill {
    background: #d1fae5;
    padding: 2px 14px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
  }

  .dock-item:active {
    transform: scale(0.95);
  }
}
