/* ============================================================
   Yayasan Pendidikan Islam Al-Quds — alquds.id
   Palet warna diekstrak dari logo yayasan
   ============================================================ */

:root {
  --teal: #2e9e9e;
  --teal-dark: #1f7a7a;
  --teal-deep: #14595c;
  --teal-soft: #eaf6f6;
  --gold: #d4af37;
  --gold-dark: #b8942a;
  --red: #b83028;
  --ink: #1f2a2e;
  --ink-soft: #55666b;
  --line: #e4ebeb;
  --bg: #f7f9f9;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(31, 42, 46, 0.08);
  --shadow-lg: 0 18px 50px rgba(31, 42, 46, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1180px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.section { padding: 80px 0; }
.section--alt { background: var(--bg); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-head p { color: var(--ink-soft); font-size: 16.5px; }

.section-head--left { text-align: left; margin-left: 0; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.25s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--gold); color: #2b2205; }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }

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

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--teal-deep); }

.btn-ghost {
  border: 2px solid var(--line);
  color: var(--ink);
  background: var(--white);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

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

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px 0;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 22px;
}
.nav-links li { white-space: nowrap; }

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 89, 92, 0.94) 0%,
    rgba(46, 158, 158, 0.82) 48%,
    rgba(31, 122, 122, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 72px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 560px;
}

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

.hero-units {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 26px;
  padding: 22px 0;
  flex-wrap: wrap;
}

.hero-units .mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-units .mini img {
  height: 34px; width: 34px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
}

/* ---------- Carousel banner PPDB ---------- */
.banner-strip { padding: 40px 0 8px; }

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

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 21 / 7;
  overflow: hidden;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: 0.2s;
  z-index: 3;
}
.carousel-btn:hover { background: var(--gold); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: 0.25s;
}
.carousel-dots button.active {
  width: 26px;
  border-radius: 6px;
  background: var(--gold);
}

/* ---------- Tab Unit Pendidikan ---------- */
.unit-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: -1px;
}

.unit-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: 0.25s ease;
  text-align: center;
}

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

.unit-tab .logo-wrap {
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border-radius: 50%;
  transition: 0.25s;
}

.unit-tab .logo-wrap img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.unit-tab .tab-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.unit-tab .tab-level {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.unit-tab.active {
  background: var(--teal-soft);
  border-color: var(--line);
  border-bottom: 3px solid var(--gold);
}
.unit-tab.active .logo-wrap { background: var(--white); box-shadow: inset 0 0 0 2px var(--teal); }
.unit-tab.active .tab-name { color: var(--teal-deep); }

.unit-panel-wrap {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.unit-panel {
  display: none;
  grid-template-columns: 0.9fr 1.1fr;
  animation: fadeUp 0.4s ease;
}

.unit-panel.active { display: grid; }

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

.unit-panel .panel-media {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center;
}

.unit-panel .panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 89, 92, 0) 40%, rgba(20, 89, 92, 0.72) 100%);
}

.unit-panel .panel-media .media-label {
  position: absolute;
  left: 22px; bottom: 20px;
  z-index: 2;
  color: var(--white);
}
.unit-panel .panel-media .media-label strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
}
.unit-panel .panel-media .media-label span {
  font-size: 13.5px;
  opacity: 0.88;
}

.unit-panel .panel-body { padding: 36px 38px; }

.panel-body .unit-tag {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.panel-body h3 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.panel-body .unit-desc {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 20px;
}

.panel-body .unit-features {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.panel-body .unit-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.panel-body .unit-features li::before {
  content: "✓";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 33, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }

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

.modal {
  background: var(--white);
  width: min(880px, 100%);
  max-height: 88vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.modal-head .m-logo {
  width: 54px; height: 54px;
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line);
  flex: none;
}
.modal-head .m-logo img { max-width: 42px; max-height: 42px; object-fit: contain; }

.modal-head .m-title { flex: 1; }
.modal-head .m-title h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.modal-head .m-title span { font-size: 13.5px; color: var(--ink-soft); }

.modal-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 20px;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  transition: 0.2s;
  flex: none;
}
.modal-close:hover { background: var(--red); color: var(--white); box-shadow: none; }

.modal-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  background: var(--white);
}

.modal-tabs button {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: 0.2s;
}
.modal-tabs button:hover { color: var(--teal); }
.modal-tabs button.active { color: var(--teal-deep); border-bottom-color: var(--gold); }

.modal-body {
  padding: 26px 24px 30px;
  overflow-y: auto;
}

.modal-pane { display: none; animation: fadeUp 0.3s ease; }
.modal-pane.active { display: block; }

.modal-pane h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--teal-deep);
  margin: 18px 0 8px;
}
.modal-pane h4:first-child { margin-top: 0; }
.modal-pane p { color: var(--ink-soft); font-size: 15.3px; margin-bottom: 10px; }

.modal-pane .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.modal-pane .info-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 13px 16px;
}
.modal-pane .info-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 3px;
}
.modal-pane .info-item strong { font-size: 15px; font-weight: 700; }

.program-list { display: grid; gap: 12px; }
.program-list li {
  display: flex;
  gap: 14px;
  background: var(--bg);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 14px 16px;
}
.program-list li strong { display: block; font-size: 15.3px; margin-bottom: 2px; }
.program-list li p { margin: 0; font-size: 14.3px; }

.org-list { display: grid; gap: 8px; }
.org-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 15px;
}
.org-list li span:first-child { color: var(--ink-soft); }
.org-list li span:last-child { font-weight: 700; text-align: right; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.25s;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg);
}

/* ---------- Sekilas Profil ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-text .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.about-text h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 16px;
}

.about-text p { color: var(--ink-soft); margin-bottom: 14px; font-size: 16.2px; }

.about-points {
  display: grid;
  gap: 14px;
  margin: 24px 0 28px;
}

.about-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-points .ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-size: 19px;
}

.about-points strong { display: block; font-size: 15.5px; }
.about-points span { font-size: 14.3px; color: var(--ink-soft); }

.about-media {
  position: relative;
}
.about-media .main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.about-media .float-card {
  position: absolute;
  left: -26px;
  bottom: 34px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.about-media .float-card .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.about-media .float-card .lbl { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Statistik ---------- */
.stats {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal) 65%, #37b0a8);
  color: var(--white);
  padding: 64px 0;
}

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

.stat-item .stat-num {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-num .suffix { color: var(--gold); }

.stat-item .stat-label {
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
}

.stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, 0.18); }

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

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.28s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.news-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.news-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.news-card:hover .thumb img { transform: scale(1.06); }

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

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.news-meta .cat {
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-card h3 {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}
.news-card:hover h3 { color: var(--teal); }

.news-card p {
  font-size: 14.6px;
  color: var(--ink-soft);
  flex: 1;
}

.news-card .read-more {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-card .read-more::after { content: "→"; transition: 0.25s; }
.news-card:hover .read-more::after { transform: translateX(4px); }

.news-foot { text-align: center; margin-top: 42px; }

/* ---------- Kontak (home) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.contact-card > p { color: var(--ink-soft); font-size: 15.2px; margin-bottom: 24px; }

.contact-list { display: grid; gap: 18px; margin-bottom: 26px; }

.contact-list li { display: flex; gap: 14px; align-items: flex-start; }

.contact-list .ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.contact-list strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-list span, .contact-list a { font-size: 15px; color: var(--ink-soft); }
.contact-list a:hover { color: var(--teal); }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  transition: 0.25s;
}
.social-row a:hover { background: var(--teal); color: var(--white); transform: translateY(-3px); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232e9e9e' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center 40% no-repeat;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  background: transparent;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .f-brand img { height: 52px; margin-bottom: 16px; }
.footer .f-brand p { font-size: 14.6px; line-height: 1.7; }

.footer h4 {
  color: var(--white);
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.footer .f-links { display: grid; gap: 11px; }
.footer .f-links a { font-size: 14.6px; transition: 0.2s; display: inline-block; }
.footer .f-links a:hover { color: var(--gold); transform: translateX(4px); }

.footer .f-contact li {
  display: flex; gap: 10px;
  margin-bottom: 12px;
  font-size: 14.6px;
  line-height: 1.6;
}
.footer .f-contact .ic { color: var(--gold); flex: none; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.6px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Floating WA ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 27px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  z-index: 90;
  transition: 0.25s;
}
.wa-float:hover { transform: scale(1.08) translateY(-3px); }

/* ---------- Halaman dalam (Profil / Kontak) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.page-hero .crumb {
  margin-top: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
}
.page-hero .crumb a:hover { color: var(--gold); }

.sub-nav {
  position: sticky;
  top: 74px;
  z-index: 80;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sub-nav .container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 6px;
  padding-bottom: 6px;
}
.sub-nav a {
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: 0.2s;
}
.sub-nav a:hover, .sub-nav a.active { background: var(--teal-soft); color: var(--teal-deep); }

.prose h2 {
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.prose h3 { font-size: 19px; font-weight: 800; margin: 22px 0 10px; }
.prose p { color: var(--ink-soft); font-size: 16.3px; margin-bottom: 14px; }
.prose ul.bullets { display: grid; gap: 9px; margin: 14px 0 18px; }
.prose ul.bullets li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15.8px;
}
.prose ul.bullets li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-size: 13px;
}

.vision-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.vision-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.vision-card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 14px;
}
.vision-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 7px; }
.vision-card p { font-size: 14.8px; color: var(--ink-soft); margin: 0; }

.timeline { position: relative; margin-top: 26px; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--teal);
}
.timeline .year {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.timeline strong { display: block; font-size: 16.5px; margin-bottom: 3px; }
.timeline p { font-size: 15px; color: var(--ink-soft); margin: 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 20px;
}
table.minimal {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.2px;
  min-width: 460px;
}
table.minimal th, table.minimal td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
table.minimal th {
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
table.minimal tr:last-child td { border-bottom: none; }
table.minimal tbody tr:hover { background: var(--bg); }

.unit-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.unit-mini {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: 0.25s;
}
.unit-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.unit-mini img {
  height: 72px; width: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}
.unit-mini h4 { font-size: 16.5px; font-weight: 800; margin-bottom: 5px; }
.unit-mini span { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: 0.08em; text-transform: uppercase; }
.unit-mini p { font-size: 14.4px; color: var(--ink-soft); margin-top: 8px; }
.unit-mini .unit-mini-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 20px;
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  transition: 0.2s;
}
.unit-mini:hover .unit-mini-cta { background: var(--teal-dark); }

/* Form kontak */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 158, 158, 0.14);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.alert-success {
  display: none;
  background: var(--teal-soft);
  border: 1px solid rgba(46, 158, 158, 0.4);
  color: var(--teal-deep);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14.8px;
  font-weight: 600;
}
.alert-success.show { display: block; }

.faq-list { display: grid; gap: 12px; margin-top: 20px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15.6px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 20px; font-weight: 600; }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { background: var(--teal-soft); color: var(--teal-deep); }
.faq-item .faq-a { padding: 14px 20px 18px; color: var(--ink-soft); font-size: 15.2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media .float-card { left: 16px; }
  .unit-panel { grid-template-columns: 1fr; }
  .unit-panel .panel-media { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }

  .unit-tabs { grid-template-columns: repeat(4, minmax(140px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .stat-item + .stat-item { border-left: none; }
  .stat-item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.18); }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .container { padding: 0 18px; }

  .hero { min-height: 460px; }
  .hero-content { padding: 54px 0; }
  .hero-actions .btn { width: 100%; }
  .hero-units { gap: 14px; }

  .carousel-slide { aspect-ratio: 16/9; }
  .carousel-btn { width: 36px; height: 36px; font-size: 16px; }

  .unit-tabs { grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; }
  .unit-tab { padding: 16px 8px 14px; }
  .unit-tab .logo-wrap { width: 58px; height: 58px; }
  .unit-tab .logo-wrap img { max-width: 46px; max-height: 46px; }
  .unit-tab .tab-name { font-size: 13px; }

  .unit-panel .panel-body { padding: 26px 22px; }
  .panel-body h3 { font-size: 23px; }
  .panel-actions .btn { width: 100%; }

  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }

  .modal { max-height: 92vh; border-radius: 16px 16px 0 0; align-self: flex-end; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-head { padding: 16px; }
  .modal-tabs { padding: 10px 12px 0; }
  .modal-body { padding: 20px 16px 24px; }
  .modal-foot { padding: 14px 16px; }
  .modal-foot .btn { flex: 1; }

  .about-media .float-card { position: static; margin-top: -40px; margin-left: 16px; max-width: none; }
}

/* ============================================================
   Komponen halaman dinamis (CodeIgniter)
   ============================================================ */

/* ---------- Dropdown menu ---------- */
.nav-links li { position: relative; }
.nav-links li.has-sub > a::before {
  content: "▾";
  font-size: 9px;
  margin-left: 7px;
  opacity: 0.65;
}
.nav-links .fa-caret-down { display: none; }
.nav-links .sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 225px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  display: none;
  z-index: 70;
}
.nav-links li.has-sub:hover .sub,
.nav-links li.has-sub:focus-within .sub { display: block; }
.nav-links .sub li a {
  display: block;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 0;
  white-space: nowrap;
}
.nav-links .sub li a::after { display: none; }
.nav-links .sub li a:hover { color: var(--teal-deep); background: var(--teal-soft); }

/* ---------- Grid konten + sidebar ---------- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: start;
  padding: 44px 0 64px;
}
.content-main { min-width: 0; }
.content-main > *:first-child { margin-top: 0; }

/* ---------- Artikel ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.article-meta .tag {
  background: var(--teal-soft);
  color: var(--teal-deep);
  padding: 4px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
}
.article-meta .tag:hover { background: var(--teal); color: #fff; }
.article-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}
.share-row { display: flex; justify-content: center; margin: 30px 0 8px; }

/* ---------- Teks kaya (konten CKEditor) ---------- */
.rich-text {
  font-size: 16.4px;
  line-height: 1.85;
  color: var(--ink);
}
.rich-text img,
.rich-text .img-responsive { max-width: 100%; height: auto; border-radius: var(--radius); }
.rich-text img.img-center,
.rich-text img.center { display: block; margin: 0 auto 22px; }
.rich-text p { margin-bottom: 15px; }
.rich-text h1 { font-size: 26px; margin: 26px 0 12px; }
.rich-text h2 { font-size: 23px; margin: 26px 0 12px; }
.rich-text h3 { font-size: 19.5px; margin: 22px 0 10px; }
.rich-text h4 { font-size: 17px; margin: 18px 0 8px; }
.rich-text a { color: var(--teal-deep); text-decoration: underline; }
.rich-text ul, .rich-text ol { padding-left: 24px; margin: 0 0 16px; }
.rich-text li { margin-bottom: 8px; }
.rich-text blockquote {
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  color: var(--ink);
  padding: 14px 20px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
}
.rich-text table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 9px 13px; }
.rich-text th { background: var(--teal-soft); }
.rich-text figure { margin: 18px 0; }
.rich-text figcaption { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.rich-text hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.rich-text pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow: auto;
  font-size: 14.5px;
}
.rich-text .embed-responsive { position: relative; padding-top: 56.25%; margin: 18px 0; }
.rich-text .embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Widget sidebar ---------- */
.side-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.side-title h2 { font-size: 15.5px; margin: 0; }
.side-title a { font-size: 12.5px; font-weight: 700; color: var(--teal); text-decoration: none; }
.side-title a:hover { color: var(--teal-deep); }
.side-body { padding: 16px 18px; }
.side-body--flush { padding: 0; }
.side-body iframe { width: 100%; border: 0; display: block; aspect-ratio: 16 / 11; }
.side-banner { padding: 16px 18px; display: grid; gap: 14px; }
.side-banner a { display: block; }
.side-banner img { width: 100%; border-radius: 14px; display: block; }
.side-social a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.side-social a:last-child { border-bottom: 0; }
.side-social a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.side-social img { width: 26px; height: 26px; }
.side-stat { padding: 8px 18px 14px; }
.side-stat table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.side-stat td { padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.side-stat tr:last-child td { border-bottom: 0; }
.side-stat td:last-child { text-align: right; font-weight: 800; color: var(--teal-deep); }

/* ---------- Kartu daftar ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h4, .card h3 { font-size: 17px; line-height: 1.45; margin: 0; }
.card h4 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h4 a:hover, .card h3 a:hover { color: var(--teal); }
.card .card-meta { font-size: 13px; color: var(--ink-soft); }
.card .read-more {
  margin-top: auto;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.card .read-more:hover { color: var(--teal-deep); }

/* ---------- Kartu Kanal Informasi (home) ---------- */
.kanal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.kanal-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.kanal-card .ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 16px;
  transition: background 0.25s;
}
.kanal-card h4 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--ink);
}
.kanal-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.kanal-card .go {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}
.kanal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.kanal-card:hover .ic { background: var(--teal); }
.kanal-card:hover .go { color: var(--teal-deep); }

@media (max-width: 900px) {
  .kanal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .kanal-grid { grid-template-columns: 1fr; }
}

/* ---------- Daftar pos (kanal) ---------- */
.post-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 18px; }
.post-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}
.post-item .pi-thumb { display: block; overflow: hidden; border-radius: 14px; }
.post-item .pi-thumb img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; display: block; }
.post-item h3 { font-size: 18.5px; line-height: 1.45; margin-bottom: 6px; }
.post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item h3 a:hover { color: var(--teal); }
.post-item .pi-meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.post-item p { color: var(--ink-soft); font-size: 15.2px; }

/* ---------- Artikel terkait ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.related-card {
  display: flex;
  gap: 13px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: 0.2s;
}
.related-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.related-card img { width: 76px; height: 58px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.related-card span { font-weight: 700; font-size: 14.3px; line-height: 1.4; }

/* ---------- Judul bagian dalam konten ---------- */
.block-title {
  font-size: 20px;
  margin: 34px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.block-title:first-child { margin-top: 0; }

/* ---------- Alert ---------- */
.alert {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  margin: 16px 0;
  line-height: 1.65;
}
.alert.alert-success { display: block; background: #e9f8ef; color: #14663a; border: 1px solid #bde8cc; }
.alert.alert-info { display: block; background: var(--teal-soft); color: var(--teal-deep); border: 1px solid #c9eaea; }

/* ---------- Progress donasi ---------- */
.progress {
  height: 9px;
  background: var(--teal-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 999px;
  min-width: 4px;
}
.progress-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.progress-meta div:last-child { text-align: right; }
.progress-meta strong { display: block; color: var(--teal-deep); font-size: 17.5px; }
.detail-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin: 22px 0 24px;
}

/* ---------- Tab (program donasi) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin: 32px 0 24px;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
}
.tabs button:hover { color: var(--teal-deep); }
.tabs button.active { color: var(--teal-deep); border-color: var(--teal); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- Item media (berita/donatur program) ---------- */
.media-list { display: grid; }
.media-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.media-item:last-child { border-bottom: 0; }
.media-item .m-ic {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.media-item h4 { font-size: 16.5px; margin-bottom: 3px; }
.media-item small { color: var(--ink-soft); font-size: 13px; }
.media-item .amount { color: var(--gold-dark); font-weight: 800; }
.media-item blockquote {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}
.media-item p { margin-top: 4px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Formulir ---------- */
.form-wrap { max-width: 640px; }
.form-note { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.15s;
}
.choice:hover { border-color: var(--teal); background: var(--teal-soft); }
.choice input { margin-top: 4px; accent-color: var(--teal); }
.input-group { display: flex; }
.input-group .addon {
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 800;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  padding: 0 17px;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.input-group .form-field { flex: 1; }
.input-group input { border-radius: 0 12px 12px 0; }
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14.3px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.check input { margin-top: 4px; accent-color: var(--teal); }
.bank-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 17px 21px;
  margin-bottom: 24px;
}
.bank-box p { font-weight: 700; margin-bottom: 8px; }
.bank-box ul { list-style: none; padding: 0; margin: 0; }
.bank-box li strong { color: var(--teal-deep); }
.bank-box li { font-size: 15.5px; line-height: 1.7; }
.view-finish {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 42px 34px;
  box-shadow: var(--shadow);
}
.view-finish .fin-ic {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  font-size: 30px;
}
.view-finish h2 { font-size: 25px; margin-bottom: 12px; }
.view-finish .fin-body { color: var(--ink-soft); font-size: 15.6px; max-width: 560px; margin: 0 auto; }
.view-finish .fin-body p { margin-bottom: 12px; }

/* ---------- Payment ---------- */
.pay-wrap { max-width: 660px; margin: 0 auto; }
.pay-intro { text-align: center; font-size: 15.6px; color: var(--ink-soft); margin-bottom: 22px; }
.pay-intro strong { color: var(--ink); font-size: 17.5px; }
.pay-step { display: none; }
.pay-step.active { display: block; }
.pay-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pay-head {
  background: var(--teal-soft);
  color: var(--teal-deep);
  padding: 15px 20px;
  font-weight: 800;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pay-head .pay-back {
  background: none;
  border: 0;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 14.3px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.pay-list { display: grid; }
.pay-list button {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 0;
  border-top: 1px solid var(--line);
  padding: 15px 20px;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.pay-list button:hover { background: var(--teal-soft); }
.pay-list button img { height: 36px; }
.pay-list button .chev { margin-left: auto; color: var(--teal); font-weight: 800; }
.pay-body { padding: 22px; }
.pay-chosen {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 20px;
}
.pay-chosen img { height: 40px; }
.pay-chosen strong { font-size: 16px; }
.pay-chosen .pay-back { margin-left: auto; }

/* ---------- Invoice ---------- */
.invoice-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 660px;
  margin: 0 auto;
}
.invoice-card .inv-label { color: var(--ink-soft); font-size: 15px; }
.invoice-card .inv-total { font-size: 35px; font-weight: 800; color: var(--teal-deep); margin: 6px 0 18px; }
.invoice-card .inv-no { font-size: 14.5px; color: var(--ink-soft); }
.invoice-card .inv-no strong { display: block; font-size: 17px; color: var(--ink); letter-spacing: 0.4px; }
.bank-row {
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px auto;
  max-width: 440px;
}
.bank-row img { height: 46px; }
.bank-row strong { font-size: 16.5px; display: block; }
.bank-row small { color: var(--ink-soft); }

/* ---------- Embed video ---------- */
.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Galeri album ---------- */
.gallery-inline { margin-bottom: 20px; }

/* ---------- Tombol tambahan ---------- */
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: 14px; }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-default { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.btn-default:hover { border-color: var(--teal); color: var(--teal-deep); }

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 44px 16px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  font-size: 15.5px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 32px 0 6px;
  justify-content: center;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  transition: 0.15s;
}
.pagination a:hover { border-color: var(--teal); color: var(--teal-deep); }
.pagination .active a, .pagination .active > span {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.pagination .disabled a, .pagination .disabled > span { opacity: 0.45; pointer-events: none; }

/* ---------- Footer berlangganan ---------- */
.footer-subscribe { display: grid; gap: 9px; max-width: 330px; }
.footer-subscribe input {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14.5px;
}
.footer-subscribe input::placeholder { color: rgba(255, 255, 255, 0.55); }
.footer-subscribe input:focus { outline: 2px solid var(--teal); background: rgba(255, 255, 255, 0.1); }

/* ---------- Responsive halaman dinamis ---------- */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; gap: 34px; }
  .content-side { order: 2; }
}

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr; }
  .post-item .pi-thumb img { min-height: 200px; height: 200px; }
  .related-grid { grid-template-columns: 1fr; }
  .invoice-card { padding: 26px 20px; }
  .invoice-card .inv-total { font-size: 28px; }
  .pay-body { padding: 18px 16px; }
}

@media (max-width: 900px) {
  .nav-links li.has-sub > a::before { display: none; }
  .nav-links .sub {
    position: static;
    display: block;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 6px 16px;
  }
  .nav-links .sub li a { padding: 9px 0; white-space: normal; }
}

/* ---------- Info grid (halaman unit, di luar modal) ---------- */
.section .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0 4px;
}
.section .info-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
}
.section .info-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 3px;
}
.section .info-item strong { font-size: 15px; font-weight: 700; }

/* ---------- Kartu unit sebagai tautan ---------- */
a.unit-mini { text-decoration: none; color: inherit; display: block; }
a.unit-mini:hover h4 { color: var(--teal); }
