/* ==========================================================================
   [NAMA YAYASAN] — Stylesheet Utama
   Struktur: 1) Tokens  2) Reset  3) Base/Typografi  4) Layout helpers
             5) Komponen (navbar, button, card, dst)  6) Halaman spesifik
             7) Media queries
   Ganti nilai di :root untuk mengubah warna & tipografi di seluruh situs.
   ========================================================================== */

/* 1) DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Warna brand */
  --primary: #1f7a4d;        /* hijau utama */
  --primary-dark: #145c38;   /* hijau gelap (hover, teks di atas terang) */
  --primary-light: #e3f2e8;  /* hijau sangat muda (badge, background lembut) */
  --secondary: #1b3a5c;      /* navy pendukung */
  --secondary-dark: #12283f;

  --dark: #0f2438;           /* navy gelap — footer, CTA gelap */
  --light: #f6f8f7;          /* abu-abu lembut — section alternate */
  --white: #ffffff;

  --text: #202b28;           /* teks utama */
  --muted: #5c6b66;          /* teks sekunder */
  --border: #e3e8e5;         /* garis/divider halus */

  /* Tipografi */
  --font-base: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
  --fs-sm: clamp(0.88rem, 0.84rem + 0.2vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  --fs-lg: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  --fs-3xl: clamp(2.1rem, 1.6rem + 2vw, 3.2rem);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Lainnya */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(15, 36, 56, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 36, 56, 0.1);
  --shadow-lg: 0 20px 50px rgba(15, 36, 56, 0.14);
  --container: 1200px;
  --transition: 0.22s ease;
  --navbar-h: 76px;
}

/* 2) RESET ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}

p {
  margin: 0;
}

/* Fokus yang terlihat jelas untuk aksesibilitas keyboard */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link untuk keyboard/screen reader */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* 3) LAYOUT HELPERS -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section--sm {
  padding-block: var(--space-xl);
}

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

.section--dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
}

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

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 4) KOMPONEN UMUM --------------------------------------------------------- */

/* Eyebrow / Badge kecil */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 77, 0.15);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.badge--light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.badge--light::before {
  background: var(--white);
}

/* Section heading (eyebrow + judul + deskripsi) */
.section-heading {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-heading.text-center {
  margin-inline: auto;
}

.section-heading__eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.1rem;
}

.section-heading__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.7rem;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.section-heading h2 {
  font-size: var(--fs-2xl);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--muted);
  font-size: var(--fs-lg);
}

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

/* Tombol */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition),
    border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  min-height: 48px;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

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

.btn-secondary:hover {
  border-color: var(--secondary);
  background: rgba(27, 58, 92, 0.05);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  min-height: 40px;
  font-size: var(--fs-xs);
}

/* Link dengan panah, dipakai untuk "Selengkapnya" / "Baca Selengkapnya" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: gap var(--transition), color var(--transition);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.link-arrow:hover {
  gap: 0.65rem;
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb__sep {
  opacity: 0.6;
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
  font-weight: 600;
}

/* Bingkai foto khas — dua sudut membulat besar, dua sudut kecil.
   Ini elemen visual signature yang dipakai konsisten di seluruh situs. */
.img-frame {
  border-radius: 56px 12px 56px 12px;
  overflow: hidden;
  background: var(--light);
  border: 1px solid var(--border);
}

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

.img-frame--sm {
  border-radius: 32px 8px 32px 8px;
}

.img-frame--round {
  border-radius: 50%;
}

/* 5) NAVBAR ----------------------------------------------------------------- */
header {
  position: relative;
  z-index: 99999;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.navbar__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__brand img {
  height: 72px;
  width: auto;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.navbar__links a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  padding-block: 0.35rem;
  position: relative;
  transition: color var(--transition);
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 2px;
}

.navbar__links a:hover {
  color: var(--primary-dark);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__links a.is-active {
  color: var(--primary-dark);
}

.navbar__links a.is-active::after {
  width: 100%;
}

.navbar__cta {
  flex-shrink: 0;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  flex-shrink: 0;
}

.navbar__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 6) HERO --------------------------------------------------------------- */
.hero {
  padding-block: var(--space-xl) var(--space-2xl);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__content .badge {
  margin-bottom: var(--space-md);
}

.hero__content h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  color: var(--secondary);
}

.hero__content h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero__content p {
  font-size: var(--fs-lg);
  color: var(--muted);
  margin-bottom: var(--space-lg);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero__stat strong {
  display: block;
  font-size: var(--fs-xl);
  color: var(--secondary);
}

.hero__stat span {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.hero__media {
  position: relative;
}

.hero__media .img-frame {
  aspect-ratio: 4 / 4.4;
}

/* 7) PAGE BANNER (untuk halaman selain beranda) -------------------------- */
.page-banner {
  background: linear-gradient(155deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  padding-block: var(--space-xl) var(--space-lg);
  color: var(--white);
}

.page-banner h1 {
  color: var(--white);
  font-size: var(--fs-2xl);
  margin-top: var(--space-sm);
  max-width: 42ch;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.6rem;
  max-width: 55ch;
  font-size: var(--fs-base);
}

/* 8) CARDS ---------------------------------------------------------------- */

/* Card dasar */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

/* Program card */
.program-card {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.program-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-card__icon svg {
  width: 26px;
  height: 26px;
}

.program-card h3 {
  font-size: var(--fs-lg);
}

.program-card p {
  color: var(--muted);
  font-size: var(--fs-sm);
  flex-grow: 1;
}

/* Program card versi lengkap (halaman program.html) */
.program-card--full {
  overflow: hidden;
  padding: 0;
}

.program-card--full .program-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.program-card--full .program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card--full:hover .program-card__media img {
  transform: scale(1.05);
}

.program-card--full .program-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.program-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 0.3rem;
}

.program-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.program-card__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  width: fit-content;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-pill--berjalan {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.status-pill--berjalan::before {
  background: var(--primary);
}

.status-pill--selesai {
  background: #eef1f3;
  color: var(--muted);
}

.status-pill--selesai::before {
  background: var(--muted);
}

.status-pill--segera {
  background: #fff2e1;
  color: #9a6400;
}

.status-pill--segera::before {
  background: #d99a1f;
}

/* Team / profile card */
.team-card {
  text-align: center;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.team-card__photo {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1.1;
  margin-bottom: var(--space-sm);
}

.team-card h3 {
  font-size: var(--fs-base);
  margin-top: 0.3rem;
}

.team-card__role {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.4rem;
}

.team-card p:last-child {
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* News card */
.news-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-card__category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--white);
  color: var(--primary-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.news-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.news-card__date {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.news-card h3 {
  font-size: var(--fs-lg);
}

.news-card p {
  color: var(--muted);
  font-size: var(--fs-sm);
  flex-grow: 1;
}

/* Featured news (halaman berita) */
.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
  overflow: hidden;
}

.news-featured .news-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.news-featured .news-card__body {
  justify-content: center;
  padding: var(--space-lg);
}

.news-featured h3 {
  font-size: var(--fs-xl);
}

/* Document / publikasi list item */
.doc-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}

.doc-item__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #fdeceb;
  color: #c0392b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-item__icon svg {
  width: 24px;
  height: 24px;
}

.doc-item__info {
  flex-grow: 1;
  min-width: 0;
}

.doc-item__info h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.2rem;
}

.doc-item__meta {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.doc-item__action {
  flex-shrink: 0;
}

/* 9) TENTANG / VISI MISI --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split__label {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.split h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
}

.split > div > p {
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.vm-list {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.vm-item h4 {
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  color: var(--secondary);
}

.vm-item h4 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.vm-item p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.mission-list {
  display: grid;
  gap: 0.6rem;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.mission-list svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Nilai-nilai (values) grid */
.value-card {
  padding: var(--space-md);
  text-align: left;
}

.value-card .program-card__icon {
  margin-bottom: 0.4rem;
}

/* 10) STRUKTUR ORGANISASI --------------------------------------------------- */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-level {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.org-node {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.4rem;
  text-align: center;
  font-weight: 700;
  color: var(--secondary);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-sm);
  min-width: 160px;
}

.org-node--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

/* 11) CTA SECTION ---------------------------------------------------------- */
.cta {
  background: linear-gradient(155deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta h2 {
  color: var(--white);
  font-size: var(--fs-2xl);
  max-width: 32ch;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  font-size: var(--fs-base);
}

.cta__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* 12) FOOTER ---------------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--space-xl) var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand img {
  height: 82px; /* Ubah angka ini sesuai keinginan (misal: 48px, 52px, atau lebih besar) */
  width: auto;   /* Memastikan gambar tetap proporsional dan tidak gepeng */
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 32ch;
}

.footer h4 {
  color: var(--white);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: grid;
  gap: 0.65rem;
}

.footer__links a {
  font-size: var(--fs-sm);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact {
  display: grid;
  gap: 0.9rem;
}

.footer__contact-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
}

.footer__contact-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

.footer__social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

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

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--fs-xs);
}

.footer__bottom a {
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: var(--white);
}

/* 13) FORM (kontak) ---------------------------------------------------------- */
.form-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: #fff7e6;
  border: 1px solid #f3dfae;
  color: #7a5c05;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

.form-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-field {
  margin-bottom: var(--space-md);
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-md);
}

.form-grid .form-field--full {
  grid-column: 1 / -1;
}

.contact-info-list {
  display: grid;
  gap: var(--space-md);
}

.contact-info-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-item h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* 14) GALERI + LIGHTBOX ------------------------------------------------------ */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}

.gallery-filter button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.gallery-filter button:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.gallery-filter button.is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  border: 0;
  padding: 0;
  background: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
  display: block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 36, 56, 0) 40%, rgba(15, 36, 56, 0.75) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: left;
}

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

.gallery-item.is-hidden {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 33, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: var(--space-md);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox__content img {
  max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  top: var(--space-md);
  right: var(--space-md);
}

.lightbox__prev {
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev svg,
.lightbox__next svg,
.lightbox__close svg {
  width: 20px;
  height: 20px;
}

/* 15) DONASI ------------------------------------------------------------------ */
.donation-card {
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-md);
}

.donation-bank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--light);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.donation-bank__name {
  font-weight: 700;
  color: var(--secondary);
  font-size: var(--fs-sm);
}

.donation-bank__number {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.03em;
}

.donation-steps {
  display: grid;
  gap: var(--space-sm);
}

.donation-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.donation-steps__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 16) SCROLL REVEAL + BACK TO TOP -------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* 17) RESPONSIVE ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

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

  .split__media {
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }

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

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

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

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

  .news-featured {
    grid-template-columns: 1fr;
  }

  .news-featured .news-card__media {
    min-height: 220px;
  }
}

@media (max-width: 860px) {
  /* Berikan jarak atas pada body agar konten tidak tertutup navbar yang fixed */
  body {
    padding-top: var(--navbar-h);
  }

  /* Kunci navbar (logo & tombol hamburger/close) agar selalu menetap di atas */
  .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff;
  }

  /* Panel menu dropdown muncul tepat di bawah header fixed */
  .navbar__menu {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--navbar-h));
    background-color: #ffffff !important;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md) var(--space-md) var(--space-lg);
    gap: var(--space-sm);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 99999;
  }

  .navbar__menu.is-open {
    transform: translateX(0);
  }

  .navbar__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navbar__links a {
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-base);
  }

  .navbar__links a::after {
    display: none;
  }

  .navbar__cta {
    margin-top: 0.75rem;
  }

  .navbar__cta .btn {
    width: 100%;
  }

  .navbar__toggle {
    display: flex;
    position: relative;
    z-index: 100001;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 3.5rem;
    --space-xl: 2.75rem;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .org-level {
    flex-direction: column;
    align-items: center;
  }

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

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

  .hero__stats {
    gap: var(--space-md);
  }

  .cta {
    padding: var(--space-lg) var(--space-md);
  }

  .lightbox__prev,
  .lightbox__next {
    width: 38px;
    height: 38px;
  }
}

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

  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }

  .donation-bank {
    flex-direction: column;
    align-items: flex-start;
  }
}
