:root {
  color-scheme: light;
  --forest-950: #0f241d;
  --forest-900: #123629;
  --forest-800: #174835;
  --forest-700: #1e6047;
  --sage-100: #edf5ef;
  --sage-200: #dce8df;
  --navy-800: #17314d;
  --gold-500: #c7953a;
  --gold-100: #fff3cf;
  --clay-500: #b96b4f;
  --ink: #17231f;
  --muted: #5d6d67;
  --paper: #f8f6ef;
  --white: #ffffff;
  --line: rgba(18, 54, 41, 0.14);
  --shadow: 0 20px 58px rgba(18, 54, 41, 0.14);
  --radius: 8px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 8px max(18px, calc((100vw - var(--content)) / 2));
  color: rgba(255, 255, 255, 0.86);
  background: var(--forest-950);
  font-size: 0.86rem;
  font-weight: 720;
}

.topbar a {
  color: var(--gold-100);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px max(18px, calc((100vw - var(--content)) / 2));
  color: var(--forest-900);
  background: rgba(248, 246, 239, 0.92);
  border-bottom: 1px solid rgba(18, 54, 41, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 36, 29, 0.08);
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(18, 54, 41, 0.12);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.13;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--forest-900);
  font-size: 0.94rem;
  font-weight: 780;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: var(--white);
  background: var(--forest-800);
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 3px auto;
  background: var(--forest-900);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  overflow: clip;
  color: var(--white);
}

.hero-bg,
.hero-bg::after {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(15, 36, 29, 0.92) 0%, rgba(18, 54, 41, 0.75) 43%, rgba(18, 54, 41, 0.18) 100%),
    url("/assets/hero-pesantren.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  background: linear-gradient(180deg, transparent 72%, rgba(15, 36, 29, 0.44));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: end;
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 92px;
}

.hero-content {
  max-width: 790px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-100);
  font-size: 0.76rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 5.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  max-width: 655px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 860;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.btn-primary {
  color: var(--forest-950);
  background: var(--gold-100);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-panel {
  padding: 22px;
  color: var(--forest-950);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--clay-500);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  color: var(--forest-900);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-panel p {
  margin: 12px 0 18px;
  color: var(--muted);
}

.hero-panel a {
  color: var(--forest-800);
  font-weight: 900;
}

.quick-stats {
  position: relative;
  z-index: 3;
  width: min(var(--content), calc(100% - 36px));
  margin: -46px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 116px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--forest-800);
  font-size: 1.9rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 740;
}

.section {
  padding: 98px 0;
}

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

.section-inner {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
}

.section-kicker {
  color: var(--clay-500);
}

.section h2 {
  margin: 0;
  color: var(--forest-900);
  font-size: 3.2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 78px;
  align-items: start;
}

.profile-copy {
  display: grid;
  gap: 18px;
  color: #35433e;
  font-size: 1.07rem;
}

.profile-copy p {
  margin: 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
  margin-bottom: 36px;
}

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

.program-card,
.step,
.feature-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 54, 41, 0.06);
}

.program-card {
  min-height: 245px;
  padding: 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(18, 54, 41, 0.12);
}

.program-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  color: var(--forest-800);
  background: var(--sage-100);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.program-card h3,
.activity-item h3,
.step h3 {
  margin: 0;
  color: var(--forest-900);
  font-size: 1.14rem;
  line-height: 1.25;
}

.program-card p,
.activity-item p,
.step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-learning {
  background: var(--white);
}

.learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 70px;
  align-items: center;
}

.learning-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.learning-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.learning-copy p:not(.section-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.org-chart {
  display: grid;
  gap: 34px;
}

.org-level {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.org-level:not(.org-level-1) {
  padding-top: 26px;
}

.org-level:not(.org-level-1)::before {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  content: "";
  background: var(--line);
}

.org-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  width: min(100%, 330px);
  min-height: 132px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(18, 54, 41, 0.06);
}

.org-level:not(.org-level-1) .org-card::before {
  position: absolute;
  top: -27px;
  left: 50%;
  width: 1px;
  height: 26px;
  content: "";
  background: var(--line);
}

.org-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: var(--sage-100);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.org-card span,
.gallery-card span {
  color: var(--clay-500);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.org-card h3 {
  margin: 5px 0 0;
  color: var(--forest-900);
  font-size: 1.08rem;
  line-height: 1.25;
}

.org-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.gallery-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(18, 54, 41, 0.06);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card div {
  padding: 18px;
}

.gallery-card h3 {
  margin: 0;
  color: var(--forest-900);
  font-size: 1.12rem;
}

.gallery-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-split {
  background:
    linear-gradient(90deg, var(--sage-100), rgba(255, 255, 255, 0.68)),
    var(--white);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: center;
}

.split-copy p:not(.section-kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: grid;
  gap: 7px;
  padding: 22px;
}

.feature-item strong {
  color: var(--forest-900);
  font-size: 1.08rem;
}

.feature-item span {
  color: var(--muted);
}

.section-accent {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(15, 36, 29, 0.97), rgba(23, 49, 77, 0.94)),
    var(--navy-800);
}

.section-accent .section-kicker,
.section-accent h2 {
  color: var(--white);
}

.activities-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 78px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 112px;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.activity-item time {
  color: var(--gold-100);
  font-size: 1.1rem;
  font-weight: 900;
}

.activity-item h3 {
  color: var(--white);
}

.activity-item p {
  color: rgba(255, 255, 255, 0.76);
}

.schedule-heading {
  max-width: 840px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.schedule-item {
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.schedule-item time {
  color: var(--gold-100);
  font-size: 1.08rem;
  font-weight: 900;
}

.schedule-item h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.25;
}

.schedule-item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

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

.step {
  min-height: 230px;
  padding: 24px;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  color: var(--white);
  background: var(--forest-700);
  border-radius: 8px;
  font-weight: 900;
}

.registration-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.registration-cta .btn {
  min-width: 220px;
  color: var(--white);
  background: var(--forest-800);
}

.section-contact {
  color: var(--white);
  background: var(--navy-800);
}

.section-contact h2,
.section-contact .section-kicker {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: 78px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 740;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--gold-100);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--forest-900);
  font-size: 0.9rem;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fbf9;
  outline: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(30, 96, 71, 0.14);
}

.contact-form .btn-primary {
  color: var(--white);
  background: var(--forest-800);
  cursor: pointer;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--forest-800);
  font-size: 0.92rem;
  font-weight: 760;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px max(18px, calc((100vw - var(--content)) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: var(--forest-950);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold-100);
  font-weight: 820;
}

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

.admin-page {
  background: #f3f5ef;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.login-card {
  width: min(440px, 100%);
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(18, 54, 41, 0.1);
}

.login-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.login-card h1 {
  margin: 8px 0 18px;
  color: var(--forest-950);
  font-size: 1.72rem;
  line-height: 1.12;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--forest-900);
  font-size: 0.9rem;
  font-weight: 820;
}

.login-form input {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #f9fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.login-note {
  min-height: 22px;
  margin: 0;
  color: var(--forest-800);
  font-weight: 760;
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  color: var(--white);
  background: var(--forest-900);
  border-radius: var(--radius);
}

.admin-hero h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.08;
}

.admin-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.admin-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(18, 54, 41, 0.06);
}

.admin-card.full {
  grid-column: 1 / -1;
}

.admin-card h2 {
  margin: 0 0 16px;
  color: var(--forest-900);
  font-size: 1.35rem;
}

.admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.admin-section-title h2 {
  margin: 0;
}

.admin-help {
  margin: 0 0 16px;
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--forest-900);
  font-size: 0.9rem;
  font-weight: 820;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #f9fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.admin-form textarea {
  min-height: 130px;
  resize: vertical;
}

.admin-form textarea[data-json] {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.admin-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  background: rgba(243, 245, 239, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-weight: 740;
}

.image-editor {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #f9fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-editor img {
  width: 110px;
  height: 86px;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-editor.logo-editor img {
  object-fit: contain;
}

.repeat-editor {
  display: grid;
  gap: 12px;
}

.manager-editor,
.gallery-editor,
.schedule-editor {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: #f9fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-editor {
  grid-template-columns: 180px minmax(0, 1fr);
}

.schedule-editor {
  grid-template-columns: 1fr;
}

.schedule-editor .repeat-fields {
  grid-template-columns: 130px minmax(0, 1fr);
}

.manager-editor img,
.gallery-editor img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manager-editor img {
  border-radius: 50%;
}

.gallery-editor img {
  height: 130px;
}

.repeat-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.repeat-fields .wide {
  grid-column: 1 / -1;
}

.repeat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.mini-btn {
  min-height: 36px;
  padding: 0 12px;
  color: var(--forest-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 820;
}

.mini-btn.danger {
  color: #8f2f24;
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }

  .site-header {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .nav-cta {
    min-height: 0;
    padding: 12px;
    color: var(--forest-900);
    background: transparent;
    border-radius: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .hero-panel {
    max-width: 430px;
  }

  .quick-stats,
  .program-grid,
  .gallery-grid,
  .schedule-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-grid,
  .learning-grid,
  .split-grid,
  .activities-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sticky-heading {
    position: static;
  }

  .section h2 {
    font-size: 2.55rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(15, 36, 29, 0.9) 0%, rgba(18, 54, 41, 0.75) 58%, rgba(15, 36, 29, 0.45) 100%),
      url("/assets/hero-pesantren.png");
    background-position: 62% center;
    background-size: cover;
  }

  .hero-inner {
    width: min(100% - 28px, var(--content));
    padding: 46px 0 68px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.72rem;
  }

  .hero .eyebrow,
  .hero-lead {
    max-width: 20rem;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.06;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    display: none;
  }

  .quick-stats {
    margin-top: -28px;
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .program-grid,
  .gallery-grid,
  .schedule-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .org-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .org-card img {
    width: 62px;
    height: 62px;
  }

  .activity-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .contact-form {
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
  }

  .admin-hero,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-hero-actions {
    justify-content: stretch;
  }

  .admin-hero-actions .btn {
    justify-content: center;
  }

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

  .image-editor {
    grid-template-columns: 1fr;
  }

  .admin-section-title,
  .manager-editor,
  .gallery-editor,
  .schedule-editor {
    grid-template-columns: 1fr;
  }

  .admin-section-title {
    align-items: stretch;
    display: grid;
  }

  .repeat-fields {
    grid-template-columns: 1fr;
  }

  .schedule-editor .repeat-fields {
    grid-template-columns: 1fr;
  }
}
