.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px 28px;
  padding: 18px 8px 8px;
  background-image: radial-gradient(circle, rgba(176, 198, 216, 0.55) 1px, transparent 1.15px);
  background-size: 20px 20px;
  border-radius: 22px;
}

.spark { position: absolute; }
.spark-tr { width: 18px; height: 18px; top: 8px; right: 8px; }
.spark-title { position: static; width: 16px; height: 16px; margin-top: 12px; }

.hero-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 18px;
}

.hero-copy { padding: 36px 12px 0 8px; position: relative; }

.bismillah {
  font-family: var(--arab);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.quote-card {
  position: absolute;
  left: 31%;
  top: 292px;
  z-index: 2;
  width: min(390px, 44%);
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(10, 40, 90, 0.25);
}

.quote-card img {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 42%;
  flex: none;
}

.quote-card p { min-width: 0; flex: 1; font-size: 14.5px; font-weight: 650; line-height: 1.35; }
.quote-card span { display: block; margin-top: 6px; font-weight: 500; font-size: 12px; opacity: 0.85; }

.hero-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 78px;
}
.hero-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 168px;
  padding: 24px 26px;
  border-radius: 18px;
  background-color: #0e3d8c;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(10, 40, 90, 0.16);
}
.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(8, 28, 68, 0.9) 0%, rgba(8, 28, 68, 0.62) 48%, rgba(8, 28, 68, 0.28) 100%);
}
.hero-btn-spmb { background-image: url("../assets/ilustrasi/landing-spmb.svg"); background-position: right center; }
.hero-btn-portal { background-image: url("../assets/ilustrasi/landing-portal.svg"); background-position: right center; }
.hero-btn span {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.hero-btn strong {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.hero-btn:hover { transform: translateY(-2px); }

.section { padding: 36px 8px 6px; }
.section h2 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 42px); }
.lead { color: #5c6e84; max-width: 68ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0 8px;
}

.stats div {
  background: #f4f8fc;
  border-radius: 16px;
  padding: 16px;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
  line-height: 1.1;
}

.stats span { color: var(--muted); font-size: 14px; }

.split-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 22px;
}

.split-text h3 { margin: 0 0 6px; font-size: 26px; }
.split-text p,
.split-text li { color: #41566e; }
.split-text ul { margin: 8px 0 0; padding-left: 18px; }
.split-text li + li { margin-top: 6px; }

.pengasuh {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: center;
  margin: 26px 0 0;
  background: #f7fafc;
  border-radius: 18px;
  overflow: hidden;
}

.pengasuh img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 35%;
}

.pengasuh figcaption { padding-right: 18px; }

.pengasuh strong { display: block; color: var(--navy); }
.pengasuh span { color: var(--muted); font-size: 14px; }
.pengasuh p { margin-top: 6px; color: #41566e; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.cards article {
  background: #f7fafc;
  border-radius: 18px;
  padding: 16px;
  min-height: 168px;
}

.cards h3 { margin: 0 0 8px; font-size: 24px; }
.cards p { color: #52657c; font-size: 15px; }

.gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 210px;
  gap: 12px;
}

.gallery figure { margin: 0; position: relative; }
.gallery figure:first-child { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.gallery figure:nth-child(4) img { object-position: center 22%; }
.gallery figure:nth-child(5) img { object-position: center 16%; }

.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(14, 61, 140, 0.88);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 28px 8px 8px;
  background-color: var(--navy);
  background-image: url("../assets/images/lapangan.JPG");
  background-position: center;
  background-size: cover;
  color: #fff;
  border-radius: 22px;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 28, 68, 0.78);
}

.cta h2 { color: #fff; margin: 0 0 6px; font-size: 34px; }
.cta p { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.eyebrow.light { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .split-text,
  .cards,
  .stats { grid-template-columns: 1fr 1fr; }
  .pengasuh { grid-template-columns: 1fr; }
  .pengasuh figcaption { padding: 4px 16px 16px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gallery figure:first-child { grid-column: 1 / span 2; grid-row: auto; height: 240px; }
  .gallery figure { height: 180px; }
  .quote-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: calc(100vw - 72px);
    min-width: 0;
    margin: 14px 0 4px;
    flex-direction: column;
    align-items: stretch;
  }
  .quote-card img {
    width: 100%;
    height: 140px;
  }
  .hero-actions { grid-template-columns: 1fr; margin-top: 8px; }
  .hero-btn { min-height: 140px; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .split-text,
  .cards,
  .stats,
  .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-rows: none; }
  .gallery figure,
  .gallery figure:first-child,
  .gallery figure:last-child { height: 200px; grid-column: auto; }
  .hero-photo img { height: 240px; }
  .hero-copy { padding-top: 8px; }
}
