:root {
  /* Hijau dominan */
  --green-900: #0b3d1e;
  --green-800: #0a7a3e;
  --green-700: #0ea44f;
  --green-600: #22c55e;

  /* Kuning aksen */
  --yellow-500: #f4c21a;
  --yellow-600: #e0b10f;

  /* Tema cerah */
  --bg: #f6fbf7;
  --surface: #ffffff;
  --surface2: #f1fbf4;
  --line: rgba(10, 122, 62, 0.18);
  --text: #0b1f14;
  --muted: rgba(11, 31, 20, 0.7);

  --shadow: 0 14px 40px rgba(3, 28, 15, 0.12);
  --radius: 18px;

  /* Rhythm spacing (biar jarak konsisten) */
  --space-1: 10px;
  --space-2: 14px;
  --space-3: 18px;
  --space-4: 26px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1100px 520px at 10% 0%, rgba(34, 197, 94, 0.16), transparent 60%),
    radial-gradient(1000px 520px at 90% 10%, rgba(244, 194, 26, 0.12), transparent 62%),
    linear-gradient(180deg, #ffffff, var(--bg));
  color: var(--text);
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Decorative background */
.bg-orb {
  position: fixed;
  width: 560px;
  height: 560px;
  filter: blur(70px);
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}

.bg-orb--1 {
  left: -200px;
  top: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.55), transparent 62%);
}

.bg-orb--2 {
  right: -220px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(244, 194, 26, 0.45), transparent 62%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  box-shadow: 0 10px 26px rgba(3, 28, 15, 0.12);
  border: 1px solid rgba(10, 122, 62, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.brand-title {
  font-weight: 900;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* Hero */
.hero {
  padding: 34px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 122, 62, 0.07);
  border: 1px solid rgba(10, 122, 62, 0.16);
  color: rgba(11, 31, 20, 0.8);
  font-weight: 900;
  font-size: 13px;
}

.badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow-500), var(--yellow-600));
  box-shadow: 0 0 0 5px rgba(244, 194, 26, 0.14);
}

h1 {
  margin: var(--space-2) 0 var(--space-1);
  font-size: clamp(28px, 4.3vw, 44px);
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.accent {
  color: var(--green-800);
  text-shadow: 0 10px 30px rgba(34, 197, 94, 0.12);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Centering hero copy (badge, teks, tombol) */
.hero-copy {
  text-align: center;
}

.hero-copy .badge {
  margin-left: auto;
  margin-right: auto;
}

/* KUNCI: jarak atas-bawah tombol dibuat simetris + semua elemen setelah tombol tidak “ngindent” */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: var(--space-3) auto var(--space-3); /* atas & bawah sama */
}

/* kalau kamu pakai class tambahan ini, tetep konsisten */
.cta-row--center {
  justify-content: center;
  margin: var(--space-3) auto var(--space-3);
}

.hero-copy .lead,
.hero-copy .hint {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.hint {
  margin: 0 auto; /* biar tidak turun dengan “indent” aneh */
  color: rgba(11, 31, 20, 0.6);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

/* Hero media (video card) */
.hero-media {
  width: 100%;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(10, 122, 62, 0.1);
  background: rgba(10, 122, 62, 0.04);
  text-align: center;
}

.video-title {
  font-weight: 1000;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: rgba(11, 31, 20, 0.92);
  text-align: center;
}

.video-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.video-wrap {
  padding: 12px;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(10, 122, 62, 0.12);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Sections */
.section {
  padding: 26px 0 34px;
}

.section-alt {
  padding-top: 20px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Compare table */
.compare-table-wrap {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.compare-table thead th {
  background: rgba(10, 122, 62, 0.06);
  border-bottom: 1px solid rgba(10, 122, 62, 0.14);
  padding: 14px;
  text-align: left;
  font-weight: 900;
}

.compare-table tbody th,
.compare-table tbody td {
  border-top: 1px solid rgba(10, 122, 62, 0.12);
  padding: 14px;
  vertical-align: top;
}

.compare-table tbody th {
  width: 28%;
  font-weight: 900;
  color: rgba(11, 31, 20, 0.92);
  background: rgba(244, 194, 26, 0.06);
}

.compare-table tbody td {
  width: 36%;
}

.tlist {
  margin: 0;
  padding-left: 18px;
  color: rgba(11, 31, 20, 0.86);
  line-height: 1.65;
  font-weight: 700;
}

.tlist li + li {
  margin-top: 6px;
}

.table-note {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid rgba(10, 122, 62, 0.1);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Responsive: stack table on small screens */
@media (max-width: 760px) {
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table th,
  .compare-table td,
  .compare-table tr {
    display: block;
    width: 100%;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody tr {
    padding: 10px 12px;
    border-top: 1px solid rgba(10, 122, 62, 0.12);
  }

  .compare-table tbody th {
    background: transparent;
    border: 0;
    padding: 6px 2px 10px;
    width: 100%;
  }

  .compare-table tbody td {
    border: 0;
    padding: 8px 2px;
    width: 100%;
  }

  .compare-table tbody td::before {
    display: block;
    font-weight: 900;
    margin-bottom: 6px;
    color: rgba(11, 31, 20, 0.85);
  }

  .compare-table tbody td:nth-of-type(1)::before {
    content: "Kelas Tahfidz";
  }
  .compare-table tbody td:nth-of-type(2)::before {
    content: "Kelas Sains";
  }
}

/* Contacts grid */
.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(244, 194, 26, 0.18));
  border: 1px solid rgba(10, 122, 62, 0.16);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: rgba(11, 31, 20, 0.85);
}

.contact-name {
  font-weight: 1000;
}

.contact-phone {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

/* Address box */
.address-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--line);
}

.addr-title {
  font-weight: 1000;
  margin-bottom: 6px;
}

.addr-text {
  color: var(--muted);
  line-height: 1.6;
}

.map-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  padding: 18px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: rgba(11, 31, 20, 0.75);
  font-weight: 700;
}

/* Buttons */
.btn {
  border: 1px solid rgba(10, 122, 62, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(244, 194, 26, 0.55);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  border-color: rgba(10, 122, 62, 0.25);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-wa {
  width: 100%;
  margin-top: auto;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: rgba(11, 31, 20, 0.88);
}

.btn-wa:hover {
  filter: brightness(1.03);
}

/* Efek redup-terang (glow/pulse) */
.btn-glow {
  animation: glowPulse 1.8s ease-in-out infinite;
  will-change: filter, box-shadow;
}

@keyframes glowPulse {
  0%,
  100% {
    filter: brightness(0.92);
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.18);
  }
  50% {
    filter: brightness(1.12);
    box-shadow: 0 14px 34px rgba(34, 197, 94, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-glow {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

  .address-box {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Optional: jika ada section khusus program */
#program {
  padding-bottom: 24px;
}
/* === FIX: Tabel tetap menyamping di HP (pakai horizontal scroll) === */
.compare-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* biar ada lebar minimum untuk 3 kolom, jadi tetap side-by-side */
.compare-table{
  width: 100%;
  min-width: 0;
}


/* Override aturan lama yang mengubah tabel jadi block pada <=760px */
@media (max-width: 760px){
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr{
    display: table !important;
    width: 100% !important;
  }

  .compare-table thead{
    display: table-header-group !important;
  }

  .compare-table tbody{
    display: table-row-group !important;
  }

  .compare-table tr{
    display: table-row !important;
  }

  .compare-table th,
  .compare-table td{
    display: table-cell !important;
    width: auto !important;
    border: 1px solid rgba(10, 122, 62, .12) !important;
    padding: 12px !important;
    vertical-align: top !important;
  }

  /* Matikan label otomatis ::before yang sebelumnya dipakai untuk mode stack */
  .compare-table tbody td::before{
    content: none !important;
    display: none !important;
  }
}
/* === HP: tetap 3 kolom menyamping TANPA scroll === */
@media (max-width: 620px){
  .compare-table-wrap{
    overflow-x: hidden;            /* matikan scroll samping */
  }

  .compare-table{
    table-layout: fixed;           /* paksa kolom muat layar */
    width: 100%;
    min-width: 0;
  }

  /* perkecil ruang & font */
  .compare-table thead th,
  .compare-table tbody th,
  .compare-table tbody td{
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: top;
    overflow-wrap: anywhere;       /* teks panjang tetap membungkus */
    word-break: break-word;
    hyphens: auto;
  }

  /* proporsi kolom: Aspek lebih kecil, 2 kolom lainnya lebih besar */
  .compare-table thead th:first-child,
  .compare-table tbody th{
    width: 24%;
  }
  .compare-table thead th:nth-child(2),
  .compare-table tbody td:nth-child(2){
    width: 38%;
  }
  .compare-table thead th:nth-child(3),
  .compare-table tbody td:nth-child(3){
    width: 38%;
  }

  /* list lebih rapat */
  .tlist{
    padding-left: 14px;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
  }
  .tlist li + li{
    margin-top: 4px;
  }
}
.text-center {
  text-align: center;
}

.cta-center {
  justify-content: center;
}
/* Center header text in compare table */
.compare-table thead th {
  text-align: center;
  vertical-align: middle;
}
/* Tombol Cek Status Pendaftaran */
.btn-outline-green {
  background: linear-gradient(180deg, #f1fbf4, #e8f8ee);
  border: 2px solid var(--green-700);
  color: var(--green-800);
  font-weight: 900;
}

.btn-outline-green:hover {
  background: linear-gradient(180deg, #e6f6ec, #dcf3e4);
  filter: brightness(1.03);
}


