@font-face {
  font-family: "Playfair Display";
  src: url("public/fonts/playfair-display-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --green: #0A3F2F;
  --green-dark: #083c30;
  --green-deep: #062f26;
  --green-soft: #e8f2ee;
  --gold: #f2b705;
  --gold-dark: #bf8e00;
  --ink: #12231e;
  --muted: #5b6b64;
  --line: #d6dfdb;
  --page: #f6f8f7;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(18, 47, 37, .08);
  --container: 1180px;
  --font-main: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--green-dark); background: #f8dfa0; }

.container { width: min(var(--container), calc(100% - 56px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); border-radius: 8px; background: var(--gold); color: var(--green-dark); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }

.topbar { min-height: 32px; background: var(--green-dark); color: rgba(255,255,255,.83); font-size: 11px; }
.topbar-inner { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-inner > a { display: inline-flex; align-items: center; gap: 8px; color: #f6d46d; font-weight: 700; }
.topbar-inner > a span { font-size: 15px; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(10,63,47,.12); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { position: relative; width: 44px; height: 44px; flex: 0 0 44px; color: var(--green); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.has-logo { background: transparent; color: transparent; }
.brand-mark.has-logo svg { display: none; }
.brand-logo-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.brand-logo-image[hidden] { display: none; }
.brand-name { display: flex; flex-direction: column; gap: 2px; }
.brand-name strong { color: var(--green); font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 1.1; letter-spacing: .02em; }
.brand-name > span { color: #66776f; font-size: 8px; font-weight: 750; line-height: 1.2; letter-spacing: .1em; white-space: nowrap; }
.primary-navigation { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 25px); }
.nav-link { position: relative; display: inline-flex; min-height: 44px; align-items: center; color: #34463e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.nav-link::after { position: absolute; right: 0; bottom: 8px; left: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--gold); content: ""; transition: transform .18s ease; }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.header-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border-radius: 9px; background: var(--gold); color: #172c24; font-size: 12px; font-weight: 800; transition: background .18s ease, transform .18s ease; }
.header-cta:hover { transform: translateY(-1px); background: #f8ca41; }
.header-cta span { font-size: 15px; }
.menu-toggle { display: none; }

.hero-section { position: relative; min-height: 485px; display: flex; align-items: center; overflow: hidden; padding: 62px 0 79px; background: var(--green-dark); color: #fff; }
.hero-slides, .hero-overlay { position: absolute; inset: 0; }
.hero-slides { overflow: hidden; }
.hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; opacity: 0; transform: scale(1.025); transition: opacity .45s ease, transform 4s ease; }
.hero-background.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(4, 30, 22, .91) 0%, rgba(4, 30, 22, .82) 34%, rgba(4, 30, 22, .42) 66%, rgba(4, 30, 22, .13) 100%), linear-gradient(0deg, rgba(3, 27, 19, .34), transparent 48%); }
.hero-grid { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; padding-inline: clamp(52px, 5vw, 72px); }
.hero-section .hero-slider-controls { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; transform: none; pointer-events: none; }
.hero-slider-controls[hidden] { display: none; }
.hero-arrow { position: absolute; top: 50%; width: 34px; height: 34px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(4,30,22,.22); color: rgba(255,255,255,.86); cursor: pointer; opacity: .78; pointer-events: auto; backdrop-filter: blur(4px); transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease, transform .18s ease; }
.hero-section .hero-slider-controls .hero-arrow-prev { top: 50%; right: auto; bottom: auto; left: clamp(13px, 3vw, 36px); transform: translateY(-50%); }
.hero-section .hero-slider-controls .hero-arrow-next { top: 50%; right: clamp(13px, 3vw, 36px); bottom: auto; left: auto; transform: translateY(-50%); }
.hero-arrow:hover { transform: translateY(-50%) scale(1.04); border-color: rgba(255,255,255,.72); background: rgba(4,30,22,.52); color: #fff; opacity: 1; }
.hero-arrow:active { transform: translateY(-50%) scale(.96); }
.hero-arrow svg { width: 17px; height: 17px; }
.hero-slide-count { position: absolute; bottom: 18px; left: 50%; min-width: 48px; transform: translateX(-50%); color: rgba(255,255,255,.78); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-align: center; text-shadow: 0 1px 5px rgba(0,0,0,.4); pointer-events: none; }
.hero-copy { max-width: 650px; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--green); font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: .12em; }
.eyebrow-rule, .section-label > span { width: 21px; height: 2px; flex: 0 0 auto; background: var(--gold-dark); }
.hero-section .eyebrow { color: rgba(255,255,255,.78); }
.hero-section .eyebrow-rule { background: var(--gold); }
.hero-copy h1 { max-width: 670px; margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(48px, 5.4vw, 70px); font-weight: 750; line-height: 1.04; letter-spacing: -.055em; }
.hero-section .hero-copy h1 em { color: var(--gold); font-style: normal; }
.section-title em, .values-heading h3 em, .ppdb-card h2 em { color: var(--green); font-style: normal; }
.hero-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 17px 0 0; color: rgba(255,255,255,.88); font-size: 10px; font-weight: 700; }
.hero-tagline strong { color: var(--gold); font-size: 11px; letter-spacing: .08em; }
.hero-tagline i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.7); }
.hero-description { max-width: 515px; margin: 16px 0 0; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 800; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-primary span, .button-yellow span { font-size: 16px; }
.button-secondary { border-color: #aab9b1; background: transparent; color: var(--green); }
.button-secondary:hover { border-color: var(--green); background: var(--green-soft); }
.hero-section .button-primary { background: var(--gold); color: var(--green-dark); }
.hero-section .button-primary:hover { background: #f8cc3e; }
.hero-section .button-secondary { border-color: rgba(255,255,255,.78); color: #fff; }
.hero-section .button-secondary:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.hero-location { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 600; }
.location-pin { color: var(--gold); font-size: 18px; line-height: 1; }

.facts-section { position: relative; z-index: 2; margin-top: -27px; padding-bottom: 31px; }
.facts-card { min-height: 102px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dce7e1; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.fact-item { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 14px 17px; border-right: 1px solid #e2e9e5; }
.fact-item:last-child { border-right: 0; }
.fact-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.fact-icon svg { width: 25px; height: 25px; }
.fact-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fact-value { color: var(--green); font-family: var(--font-display); font-size: 29px; font-weight: 780; line-height: 1; letter-spacing: -.045em; }
.fact-value.fact-program { font-size: 22px; letter-spacing: -.015em; }
.fact-copy strong { color: #253c31; font-size: 11px; line-height: 1.3; font-weight: 800; }
.fact-copy small { color: #75847c; font-size: 9px; line-height: 1.35; }

.cms-hidden { display: none !important; }
.section-space { padding-block: 79px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 29px; }
.section-heading-row > div { min-width: 0; }
.section-label { margin-bottom: 10px; }
.section-title { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(35px, 4.1vw, 52px); font-weight: 750; line-height: 1.12; letter-spacing: -.045em; }
.section-intro { max-width: 390px; margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.majors-section { background: #fff; }
.major-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.major-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 14px rgba(18, 47, 37, .035); transition: box-shadow .2s ease, transform .2s ease; }
.major-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.major-image { position: relative; height: 235px; overflow: hidden; background: #dce6e0; }
.major-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.major-card:hover .major-image img { transform: scale(1.025); }
.major-code { position: absolute; top: 14px; left: 14px; min-width: 39px; min-height: 39px; display: grid; place-items: center; border-radius: 9px; background: var(--green); color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.major-image-label { position: absolute; right: 12px; bottom: 12px; left: 12px; width: fit-content; padding: 7px 10px; border-radius: 6px; background: rgba(18, 35, 30, .82); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.major-content { padding: 22px 23px 21px; }
.major-kicker { margin: 0 0 7px; color: #7b8a82; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.major-content h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.major-content h3 span { display: inline-grid; min-width: 41px; min-height: 28px; place-items: center; margin-left: 5px; vertical-align: middle; border-radius: 6px; background: var(--green-soft); color: var(--green); font-family: var(--font-main); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.major-content > p:not(.major-kicker) { min-height: 52px; margin: 11px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-list span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: #42564b; font-size: 10px; line-height: 1.3; font-weight: 700; }
.major-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--green); font-size: 12px; font-weight: 800; }
.major-link span { color: var(--gold-dark); font-size: 17px; transition: transform .16s ease; }
.major-link:hover span { transform: translateX(4px); }
.asset-note { margin: 13px 0 0; color: #7e8b84; font-size: 10px; line-height: 1.6; }
.facilities-preview { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.facilities-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.facilities-preview-heading .section-label { margin-bottom: 6px; }
.facilities-preview-heading h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 26px; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.facilities-preview-heading > p { max-width: 330px; margin: 0 0 2px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.mini-facilities-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.mini-facility-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.mini-facility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-facility-card img { width: 100%; aspect-ratio: 1.56; object-fit: cover; background: var(--green-soft); }
.mini-facility-card > span { margin: 11px 12px 2px; color: #77877e; font-size: 9px; line-height: 1.3; font-weight: 800; letter-spacing: .1em; }
.mini-facility-card strong { margin: 0 12px 12px; color: #243d31; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.25; }

.about-section { background: var(--green-soft); }
.about-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 85px); }
.about-photo-wrap { position: relative; padding: 0 33px 29px 0; }
.about-photo-wrap > img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: var(--radius); }
.about-photo-caption { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 10px; background: var(--green); color: white; box-shadow: 0 5px 16px rgba(18, 47, 37, .17); font-size: 11px; font-weight: 700; line-height: 1.5; }
.about-photo-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--gold); font-size: 17px; }
.about-copy .section-title { max-width: 600px; }
.about-lead { margin: 16px 0 9px; color: #344f42; font-size: 16px; font-weight: 750; line-height: 1.7; }
.about-copy .section-intro { max-width: 540px; font-size: 14px; }
.school-details { display: grid; grid-template-columns: 1fr 1.3fr; gap: 15px; margin-top: 21px; padding-top: 16px; border-top: 1px solid rgba(10,63,47,.17); }
.school-details > div { display: flex; flex-direction: column; gap: 5px; }
.school-details span { color: #688074; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.school-details strong { color: #234136; font-size: 11px; line-height: 1.6; font-weight: 700; }
.pesantren-band { display: grid; grid-template-columns: 48px minmax(240px, .95fr) minmax(0, 1fr); align-items: center; gap: 17px; margin-top: 41px; padding: 19px 22px; border: 1px solid rgba(10,63,47,.13); border-radius: 12px; background: rgba(255,255,255,.64); }
.pesantren-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #d7e8e0; color: var(--green); }
.pesantren-icon svg { width: 30px; height: 30px; }
.pesantren-band > div p { margin: 0 0 3px; color: #698075; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.pesantren-band h3 { margin: 0; color: var(--green-dark); font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; }
.pesantren-description { padding-left: 18px; border-left: 1px solid #c7d8d0; color: #596d63; font-size: 12px; line-height: 1.7; }
.values-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 48px; margin-bottom: 19px; }
.values-heading .section-label { margin-bottom: 5px; }
.values-heading h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 29px; font-weight: 750; letter-spacing: -.04em; }
.values-heading > p { max-width: 330px; margin: 0; color: #61766b; font-size: 12px; line-height: 1.6; }
.values-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.value-card { min-height: 125px; display: flex; align-items: flex-start; gap: 11px; padding: 15px 12px; border: 1px solid rgba(10,63,47,.12); border-radius: 10px; background: rgba(255,255,255,.72); }
.value-letter { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--green); color: var(--gold); font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.value-card h4 { margin: 0 0 5px; color: #233e32; font-size: 13px; font-weight: 800; }
.value-card p { margin: 0; color: #68786f; font-size: 10px; line-height: 1.6; }

.teachers-section { background: #fff; }
.teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teacher-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(18,47,37,.035); transition: transform .18s ease, box-shadow .18s ease; }
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.teacher-photo { position: relative; height: 225px; overflow: hidden; background: var(--green-soft); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform .28s ease; }
.teacher-card:hover .teacher-photo img { transform: scale(1.025); }
.teacher-dept { position: absolute; left: 13px; bottom: 13px; min-width: 42px; min-height: 36px; display: grid; place-items: center; padding-inline: 8px; border-radius: 7px; background: var(--gold); color: var(--green-dark); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.teacher-info { padding: 16px 17px 18px; }
.teacher-info > p { margin: 0 0 4px; color: #78877f; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.teacher-info h3 { margin: 0 0 5px; color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 750; line-height: 1.3; }
.teacher-info > span { color: #66766e; font-size: 11px; line-height: 1.6; }

.news-section { background: #f6f8f7; }
.news-intro-actions { width: min(390px, 42%); display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.news-intro-actions .section-intro { max-width: 100%; }
.news-rss { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 800; }
.news-rss span { color: var(--gold-dark); font-size: 15px; }
.news-rss:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.news-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-image { position: relative; display: block; overflow: hidden; background: var(--green-soft); }
.news-image img { width: 100%; aspect-ratio: 1.72; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-image img { transform: scale(1.03); }
.news-category { position: absolute; left: 12px; bottom: 11px; padding: 6px 8px; border-radius: 5px; background: var(--green); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.news-content { padding: 16px 16px 18px; }
.news-meta { margin: 0 0 6px; color: #87958d; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.news-content h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.news-content h3 a:hover { color: var(--green); }
.news-content > p:not(.news-meta) { min-height: 66px; margin: 8px 0 10px; color: #68776f; font-size: 12px; line-height: 1.7; }
.news-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 800; }
.news-link span { color: var(--gold-dark); font-size: 16px; transition: transform .16s ease; }
.news-link:hover span { transform: translateX(4px); }

.media-section { background: #e8f2ee; }
.media-heading-row { align-items: end; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 800; }
.text-link span { color: var(--gold-dark); font-size: 16px; transition: transform .16s ease; }
.text-link:hover span { transform: translate(2px, -2px); }
.media-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 24px; align-items: stretch; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-item { position: relative; display: block; min-width: 0; overflow: hidden; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; background: #d1dfd8; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-plus { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: rgba(8,60,48,.88); color: #fff; font-size: 20px; line-height: 1; opacity: 0; transition: opacity .18s ease; }
.gallery-item:hover .gallery-plus, .gallery-item:focus-visible .gallery-plus { opacity: 1; }
.video-panel { padding: 18px; border: 1px solid rgba(10,63,47,.12); border-radius: 12px; background: rgba(255,255,255,.73); }
.video-panel .section-label { margin-bottom: 11px; }
.video-thumb { position: relative; overflow: hidden; border-radius: 9px; background: #253c31; aspect-ratio: 1.72; }
.video-thumb > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-shade { position: absolute; inset: 0; background: rgba(10,32,23,.3); }
.video-play { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: var(--gold); color: var(--green-dark); transition: transform .18s ease, background .18s ease; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); background: #f8cf50; }
.video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-duration { position: absolute; left: 9px; bottom: 9px; padding: 4px 7px; border-radius: 4px; background: rgba(9,34,25,.77); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.video-panel h3 { margin: 13px 0 5px; color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.3; }
.video-panel > p:not(.section-label) { margin: 0 0 11px; color: #63756b; font-size: 12px; line-height: 1.7; }
.video-panel .text-link { font-size: 11px; }

.impact-section { background: var(--green); color: white; }
.impact-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 29px; }
.section-label-light { color: rgba(255,255,255,.7); }
.section-label-light > span { background: var(--gold); }
.impact-section .section-title { color: #fff; }
.impact-section .section-title em { color: var(--gold); }
.impact-intro { max-width: 340px; margin: 0 0 4px; color: rgba(255,255,255,.73); font-size: 13px; line-height: 1.75; }
.impact-pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.055); }
.impact-pillars article { min-height: 113px; display: flex; align-items: center; gap: 16px; padding: 20px 23px; border-right: 1px solid rgba(255,255,255,.17); }
.impact-pillars article:last-child { border-right: 0; }
.impact-index { color: var(--gold); font-family: var(--font-display); font-size: 27px; font-weight: 700; }
.impact-pillars h3 { margin: 0 0 4px; color: white; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.impact-pillars p { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.6; }
.stories-row { display: grid; grid-template-columns: minmax(200px, .9fr) repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stories-heading { padding: 9px 15px 7px 0; }
.stories-label { color: #f2d77e; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.stories-heading h3 { margin: 7px 0 5px; color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.stories-heading p { margin: 0; color: rgba(255,255,255,.67); font-size: 11px; line-height: 1.7; }
.story-placeholder { min-height: 116px; display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid rgba(255,255,255,.19); border-radius: 10px; background: rgba(3,35,26,.22); }
.story-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: rgba(242,183,5,.16); color: var(--gold); font-size: 18px; }
.story-placeholder strong { display: block; margin: 2px 0 4px; color: #fff; font-size: 12px; font-weight: 800; }
.story-placeholder p { margin: 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.6; }
.impact-note { margin: 15px 0 0; color: rgba(255,255,255,.57); font-size: 10px; line-height: 1.6; }

.agenda-section { background: #fff; }
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .78fr); gap: clamp(40px, 7vw, 85px); align-items: start; }
.agenda-column > .section-title { max-width: 590px; }
.agenda-column > .section-intro { margin-top: 11px; }
.agenda-empty { display: flex; align-items: center; gap: 17px; margin-top: 23px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--page); }
.agenda-date { width: 58px; height: 58px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; background: var(--green); color: #fff; }
.agenda-date strong { font-family: var(--font-display); font-size: 18px; line-height: 1; }
.agenda-date small { margin-top: 3px; color: #f4cf62; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.agenda-category { color: #75857c; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.agenda-empty h3 { margin: 4px 0 2px; color: var(--ink); font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.35; }
.agenda-empty p { margin: 0; color: #697971; font-size: 11px; line-height: 1.6; }
.agenda-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--green); font-size: 11px; font-weight: 800; }
.agenda-link span { color: var(--gold-dark); }
.agenda-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ppdb-card { padding: 25px; border: 1px solid rgba(10,63,47,.12); border-radius: 13px; background: var(--green-soft); }
.ppdb-card .section-label { margin-bottom: 10px; font-size: 9px; }
.ppdb-card h2 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 29px; font-weight: 750; line-height: 1.13; letter-spacing: -.035em; }
.ppdb-card > p:not(.section-label):not(.ppdb-note) { margin: 11px 0 14px; color: #5e7167; font-size: 12px; line-height: 1.7; }
.ppdb-contact { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 11px; border: 1px solid rgba(10,63,47,.11); border-radius: 9px; background: rgba(255,255,255,.66); }
.ppdb-contact-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 7px; background: var(--green); color: var(--gold); font-size: 16px; }
.ppdb-contact > div { display: flex; flex-direction: column; gap: 2px; }
.ppdb-contact small { color: #75857c; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.ppdb-contact a { color: var(--green); font-size: 12px; font-weight: 800; }
.button-yellow { background: var(--gold); color: var(--green-dark); }
.button-yellow:hover { background: #f9cb39; }
.ppdb-card > .button { width: 100%; }
.ppdb-note { margin: 10px 0 0; color: #74837b; font-size: 9px; line-height: 1.5; }

.closing-banner { background: var(--green-dark); color: #fff; }
.closing-inner { min-height: 115px; display: flex; align-items: center; gap: 18px; padding-block: 20px; }
.closing-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; color: var(--gold); }
.closing-icon svg { width: 34px; height: 34px; }
.closing-inner > div { flex: 1; }
.closing-inner > div p { margin: 0 0 3px; color: #f3cf65; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.closing-inner h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(19px, 2.5vw, 28px); font-weight: 700; line-height: 1.2; }
.site-footer { background: var(--green-deep); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .85fr 1.15fr; gap: clamp(28px, 5vw, 65px); padding-top: 38px; padding-bottom: 32px; }
.footer-brand .brand-mark { color: #145c47; }
.footer-brand .brand-name strong { color: #fff; font-size: 14px; }
.footer-brand .brand-name > span { color: rgba(255,255,255,.6); }
.footer-about > p { max-width: 290px; margin: 13px 0 15px; color: rgba(255,255,255,.67); font-size: 12px; line-height: 1.7; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; color: #fff; font-size: 12px; font-weight: 800; transition: border-color .16s ease, background .16s ease; }
.social-links a:hover { border-color: var(--gold); background: rgba(242,183,5,.13); }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column h2 { margin: 3px 0 5px; color: #f2cc60; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a, .footer-column p { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.7; }
.footer-column a:hover { color: #f6d46d; }
.footer-contact p { margin-bottom: 2px; }
.footer-contact [data-cms="contact_address"] { white-space: pre-line; }
.footer-contact .map-link { color: #f3d47a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.53); font-size: 9px; }
.footer-bottom-inner a { color: rgba(255,255,255,.78); }
.footer-bottom-inner a:hover { color: var(--gold); }

.mobile-action-bar { display: none; }
.lightbox { width: min(900px, calc(100% - 28px)); max-width: 900px; max-height: calc(100% - 28px); padding: 18px; overflow: visible; border: 0; border-radius: 13px; background: #fff; box-shadow: 0 20px 70px rgba(0,0,0,.3); }
.lightbox::backdrop { background: rgba(3,24,17,.82); }
.lightbox > img { max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; background: #e9efeb; }
.lightbox > p { margin: 10px 0 0; color: #40574a; font-size: 13px; font-weight: 700; }
.lightbox-close { position: absolute; top: -13px; right: -13px; width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--green); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

@media (max-width: 1080px) {
  .container { width: min(var(--container), calc(100% - 44px)); }
  .header-inner { gap: 16px; }
  .primary-navigation { gap: 12px; }
  .nav-link { font-size: 11px; }
  .header-cta { padding-inline: 11px; font-size: 11px; }
  .fact-item { gap: 8px; padding-inline: 11px; }
  .fact-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
  .fact-icon svg { width: 22px; height: 22px; }
  .fact-value { font-size: 25px; }
  .fact-value.fact-program { font-size: 19px; }
  .fact-copy strong { font-size: 10px; }
  .fact-copy small { font-size: 8px; }
  .values-grid { gap: 8px; }
  .value-card { flex-direction: column; gap: 8px; min-height: 145px; }
  .major-image { height: 210px; }
  .gallery-grid { gap: 8px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  .container { width: min(var(--container), calc(100% - 40px)); }
  .header-inner { min-height: 70px; }
  .menu-toggle { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
  .menu-toggle span { width: 19px; height: 2px; border-radius: 2px; background: var(--green); transition: transform .16s ease, opacity .16s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .primary-navigation { position: fixed; inset: 102px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 24px; overflow-y: auto; border-top: 1px solid var(--line); background: #fff; opacity: 0; visibility: hidden; transform: translateY(-7px); transition: opacity .18s ease, visibility .18s ease, transform .18s ease; }
  .primary-navigation.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { min-height: 48px; border-bottom: 1px solid #e6ece8; font-size: 14px; }
  .nav-link::after { display: none; }
  .header-cta { min-height: 48px; justify-content: center; margin-top: 15px; font-size: 12px; }
  .hero-section { min-height: 470px; padding-block: 49px 70px; }
  .hero-grid { display: flex; padding-inline: 64px; }
  .hero-arrow { width: 33px; height: 33px; }
  .hero-copy h1 { font-size: clamp(40px, 6vw, 55px); }
  .hero-tagline { gap: 5px; font-size: 9px; }
  .hero-description { font-size: 14px; }
  .hero-location { font-size: 10px; }
  .facts-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-item { min-height: 80px; border-bottom: 1px solid #e2e9e5; }
  .fact-item:nth-child(2) { border-right: 0; }
  .fact-item:nth-child(3), .fact-item:nth-child(4) { border-bottom: 0; }
  .section-space { padding-block: 61px; }
  .section-heading-row { gap: 22px; }
  .section-title { font-size: clamp(33px, 5.3vw, 43px); }
  .section-intro { max-width: 320px; font-size: 13px; }
  .major-image { height: 175px; }
  .mini-facilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .major-content { padding: 18px; }
  .major-content h3 { font-size: 23px; }
  .major-content > p:not(.major-kicker) { font-size: 12px; }
  .skill-list span { font-size: 9px; }
  .about-layout { gap: 34px; }
  .about-photo-wrap { padding-right: 22px; }
  .about-photo-caption { padding: 10px 12px; font-size: 10px; }
  .about-copy .section-title { font-size: 35px; }
  .about-lead { font-size: 14px; }
  .about-copy .section-intro { font-size: 12px; }
  .school-details { grid-template-columns: 1fr; gap: 10px; }
  .pesantren-band { grid-template-columns: 43px 1fr; gap: 12px; }
  .pesantren-description { grid-column: 2; padding: 0; border: 0; }
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value-card { min-height: 132px; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-photo { height: 190px; }
  .news-grid { gap: 11px; }
  .news-content { padding: 13px; }
  .news-content h3 { font-size: 16px; }
  .news-content > p:not(.news-meta) { font-size: 11px; }
  .media-layout { grid-template-columns: 1fr; }
  .video-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 0 18px; }
  .video-panel .section-label { grid-column: 1 / -1; }
  .video-thumb { grid-row: span 3; }
  .video-panel h3 { margin-top: 0; }
  .impact-heading { gap: 22px; }
  .impact-intro { max-width: 280px; font-size: 12px; }
  .impact-pillars article { gap: 10px; padding: 16px; }
  .impact-pillars h3 { font-size: 16px; }
  .impact-pillars p { font-size: 10px; }
  .stories-row { grid-template-columns: 1fr 1fr; }
  .stories-heading { grid-column: 1 / -1; }
  .agenda-layout { grid-template-columns: 1fr 1fr; gap: 26px; }
  .ppdb-card { padding: 20px; }
  .ppdb-card h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 34px); }
  body { font-size: 16px; }
  .topbar { font-size: 9px; }
  .topbar-inner { min-height: 34px; }
  .topbar-inner > span { max-width: 55%; line-height: 1.4; }
  .topbar-inner > a { max-width: 45%; justify-content: flex-end; text-align: right; font-size: 9px; }
  .header-inner { min-height: 66px; }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-name strong { font-size: 14px; }
  .brand-name > span { font-size: 6.5px; }
  .primary-navigation { inset: 100px 0 0; padding-inline: 19px; }
  .hero-section { min-height: 0; padding-block: 42px 65px; }
  .hero-grid { display: flex; padding-inline: 52px; }
  .hero-arrow { width: 31px; height: 31px; }
  .hero-arrow svg { width: 15px; height: 15px; }
  .hero-slide-count { bottom: 12px; min-width: 40px; font-size: 9px; }
  .hero-copy { max-width: 520px; }
  .eyebrow, .section-label { font-size: 10px; }
  .hero-copy h1 { font-size: clamp(39px, 10vw, 54px); }
  .hero-tagline { margin-top: 14px; font-size: 9px; }
  .hero-description { max-width: 480px; margin-top: 13px; font-size: 16px; line-height: 1.7; }
  .hero-actions { gap: 9px; margin-top: 20px; }
  .button { min-height: 46px; padding-inline: 14px; font-size: 11px; }
  .hero-location { margin-top: 15px; font-size: 11px; }
  .facts-section { margin-top: -27px; padding-bottom: 22px; background: transparent; }
  .facts-card { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
  .fact-item { min-height: 82px; gap: 8px; padding: 10px 9px; }
  .fact-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
  .fact-icon svg { width: 20px; height: 20px; }
  .fact-value { font-size: 25px; }
  .fact-value.fact-program { font-size: 18px; }
  .fact-copy strong { font-size: 9px; }
  .fact-copy small { font-size: 8px; }
  .section-space { padding-block: 50px; }
  .section-heading-row { display: block; margin-bottom: 21px; }
  .section-title { font-size: clamp(33px, 8.5vw, 43px); }
  .section-intro { max-width: 480px; margin-top: 11px; font-size: 15px; }
  .news-intro-actions { width: 100%; margin-top: 11px; gap: 7px; }
  .news-intro-actions .section-intro { margin-top: 0; }
  .major-grid { grid-template-columns: 1fr; gap: 15px; }
  .major-image { height: auto; aspect-ratio: 1.55; }
  .facilities-preview { margin-top: 38px; padding-top: 23px; }
  .facilities-preview-heading { display: block; margin-bottom: 14px; }
  .facilities-preview-heading h3 { font-size: 22px; }
  .facilities-preview-heading > p { margin-top: 7px; font-size: 13px; }
  .mini-facilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .mini-facility-card > span { margin: 8px 9px 2px; font-size: 8px; }
  .mini-facility-card strong { margin: 0 9px 10px; font-size: 14px; }
  .major-content { padding: 18px; }
  .major-content h3 { font-size: clamp(22px, 6vw, 27px); }
  .major-content > p:not(.major-kicker) { min-height: auto; font-size: 14px; line-height: 1.7; }
  .skill-list span { padding: 7px 9px; font-size: 10px; }
  .major-link { min-height: 44px; margin-top: 12px; font-size: 12px; }
  .asset-note { font-size: 11px; }
  .about-layout { grid-template-columns: 1fr; gap: 24px; }
  .about-photo-wrap { padding: 0 25px 22px 0; }
  .about-photo-wrap > img { aspect-ratio: 1.38; }
  .about-copy .section-title { font-size: clamp(34px, 8.7vw, 44px); }
  .about-lead { font-size: 16px; }
  .about-copy .section-intro { max-width: 510px; font-size: 15px; }
  .school-details { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .school-details strong { font-size: 12px; }
  .pesantren-band { grid-template-columns: 42px 1fr; margin-top: 29px; padding: 15px; }
  .pesantren-band h3 { font-size: 17px; }
  .pesantren-description { font-size: 13px; }
  .values-heading { display: block; margin-top: 34px; }
  .values-heading h3 { font-size: 28px; }
  .values-heading > p { margin-top: 7px; font-size: 13px; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-card { min-height: 0; flex-direction: row; gap: 10px; padding: 13px 10px; }
  .value-letter { width: 32px; height: 32px; font-size: 20px; }
  .value-card h4 { font-size: 12px; }
  .value-card p { font-size: 11px; }
  .teacher-grid { grid-template-columns: 1fr; gap: 13px; }
  .teacher-photo { height: auto; aspect-ratio: 1.65; }
  .teacher-info { padding: 15px; }
  .teacher-info h3 { font-size: 20px; }
  .teacher-info > span { font-size: 12px; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-image img { aspect-ratio: 1.8; }
  .news-content { padding: 15px; }
  .news-content h3 { font-size: 19px; }
  .news-content > p:not(.news-meta) { min-height: 0; font-size: 14px; }
  .news-link { min-height: 44px; font-size: 12px; }
  .media-heading-row .text-link { margin-top: 13px; }
  .media-layout { gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .gallery-item { border-radius: 8px; }
  .gallery-plus { opacity: 1; }
  .video-panel { display: block; padding: 15px; }
  .video-panel h3 { margin-top: 12px; font-size: 20px; }
  .video-panel > p:not(.section-label) { font-size: 14px; }
  .video-panel .text-link { min-height: 44px; font-size: 12px; }
  .impact-heading { display: block; margin-bottom: 22px; }
  .impact-intro { max-width: 470px; margin-top: 10px; font-size: 15px; }
  .impact-pillars { grid-template-columns: 1fr; }
  .impact-pillars article { min-height: 83px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); padding: 14px 16px; }
  .impact-pillars article:last-child { border-bottom: 0; }
  .impact-index { width: 33px; font-size: 24px; }
  .impact-pillars h3 { font-size: 17px; }
  .impact-pillars p { font-size: 13px; }
  .stories-row { grid-template-columns: 1fr; gap: 10px; margin-top: 21px; }
  .stories-heading { grid-column: auto; padding: 4px 0 7px; }
  .stories-heading h3 { font-size: 22px; }
  .stories-heading p { font-size: 13px; }
  .story-placeholder { min-height: 95px; padding: 14px; }
  .story-placeholder strong { font-size: 13px; }
  .story-placeholder p { font-size: 12px; }
  .impact-note { font-size: 11px; }
  .agenda-layout { grid-template-columns: 1fr; gap: 25px; }
  .agenda-column > .section-intro { font-size: 15px; }
  .agenda-empty { align-items: flex-start; gap: 12px; padding: 13px; }
  .agenda-date { width: 52px; height: 52px; }
  .agenda-empty h3 { font-size: 16px; }
  .agenda-empty p { font-size: 12px; }
  .ppdb-card { padding: 20px; }
  .ppdb-card > p:not(.section-label):not(.ppdb-note) { font-size: 14px; }
  .ppdb-contact a { font-size: 13px; }
  .ppdb-note { font-size: 10px; }
  .closing-inner { display: grid; grid-template-columns: 43px 1fr; gap: 12px; padding-block: 18px; }
  .closing-icon { width: 42px; height: 42px; }
  .closing-inner > div p { font-size: 8px; }
  .closing-inner h2 { font-size: 19px; }
  .closing-inner > .button { grid-column: 1 / -1; width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; padding-block: 29px 25px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-column { gap: 7px; }
  .footer-column h2 { font-size: 9px; }
  .footer-column a, .footer-column p { font-size: 11px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom-inner { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-block: 12px; font-size: 8px; }
  .footer-bottom-inner > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .mobile-action-bar { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1.3fr .7fr; gap: 9px; padding: 9px max(15px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(10,63,47,.14); background: rgba(255,255,255,.98); box-shadow: 0 -5px 20px rgba(12,47,36,.09); }
  .mobile-action-bar a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; font-size: 12px; font-weight: 800; }
  .mobile-ppdb { background: var(--gold); color: var(--green-dark); }
  .mobile-contact { border: 1px solid var(--green); color: var(--green); }
  .mobile-contact span { font-size: 16px; }
  body { padding-bottom: 69px; }
  .lightbox { padding: 11px; }
  .lightbox-close { top: -11px; right: -7px; width: 40px; height: 40px; }
}

.ppdb-page-hero { padding: 54px 0 46px; background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; }
.ppdb-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: rgba(255,255,255,.72); font-size: 11px; }
.ppdb-breadcrumb a { color: #fff; }
.ppdb-page-hero .section-label { margin-bottom: 10px; color: rgba(255,255,255,.76); }
.ppdb-page-hero .section-label > span { background: var(--gold); }
.ppdb-page-hero h1 { max-width: 800px; margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 62px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.ppdb-page-hero h1 em { color: var(--gold); font-style: normal; }
.ppdb-page-hero p:not(.section-label):not(.ppdb-breadcrumb) { max-width: 650px; margin: 15px 0 0; color: rgba(255,255,255,.84); font-size: 15px; line-height: 1.8; }
.ppdb-page-main { padding: 42px 0 76px; background: var(--page); }
.ppdb-page-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 23px; }
.ppdb-side-content { display: grid; gap: 16px; }
.ppdb-info-card, .ppdb-form-card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 7px 22px rgba(18,47,37,.045); }
.ppdb-info-card h2, .ppdb-form-card h2 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.2; }
.ppdb-info-card > p:not(.ppdb-eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ppdb-eyebrow { margin: 0 0 8px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ppdb-major-row { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: start; gap: 12px; padding: 16px 0; border-bottom: 1px solid #edf1ee; }
.ppdb-major-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ppdb-major-code { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 850; }
.ppdb-major-row h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; }
.ppdb-major-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.ppdb-step-list { display: grid; gap: 13px; margin: 17px 0 0; padding: 0; list-style: none; }
.ppdb-step-list li { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; gap: 10px; }
.ppdb-step-index { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 850; }
.ppdb-step-list strong { display: block; color: #243d31; font-size: 12px; line-height: 1.45; }
.ppdb-step-list p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ppdb-info-note { padding: 15px 17px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: #fff9e8; color: #5d512e; font-size: 11px; line-height: 1.65; }
.ppdb-info-note strong { display: block; margin-bottom: 3px; color: #4b3f1e; }
.ppdb-info-note a { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.ppdb-info-note [data-cms] { white-space: pre-line; }
.ppdb-form-card { padding: 27px; }
.ppdb-form-card > p:not(.ppdb-eyebrow) { margin: 8px 0 19px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.ppdb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 14px; }
.ppdb-form-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ppdb-form-field.full { grid-column: 1 / -1; }
.ppdb-form-field label { margin: 0; color: #35483e; font-size: 11px; font-weight: 800; }
.ppdb-form-field input, .ppdb-form-field select, .ppdb-form-field textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #cfdbd4; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.ppdb-form-field textarea { min-height: 82px; resize: vertical; }
.ppdb-form-field input:focus, .ppdb-form-field select:focus, .ppdb-form-field textarea:focus { outline: 3px solid rgba(10,63,47,.13); border-color: var(--green); }
.ppdb-form-help { color: #75847c; font-size: 10px; line-height: 1.45; }
.ppdb-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; color: #53645a; font-size: 10px; line-height: 1.55; }
.ppdb-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--green); }
.ppdb-submit { width: 100%; margin-top: 16px; }
.ppdb-submit:disabled { cursor: wait; opacity: .68; transform: none; }
.ppdb-form-status { margin-top: 14px; padding: 11px 13px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 12px; line-height: 1.6; }
.ppdb-form-status.is-error { background: #fff0e9; color: #91421b; }
.ppdb-form-status[hidden] { display: none; }
.ppdb-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ppdb-footer { padding: 18px 0; border-top: 1px solid var(--line); background: #fff; color: #65756c; font-size: 11px; }
.ppdb-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ppdb-footer a { color: var(--green); font-weight: 800; }
@media (max-width: 820px) {
  .ppdb-page-grid { grid-template-columns: 1fr; }
  .ppdb-side-content { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
  .ppdb-info-note { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .ppdb-page-hero { padding: 39px 0 34px; }
  .ppdb-breadcrumb { margin-bottom: 18px; }
  .ppdb-page-hero h1 { font-size: clamp(36px, 9vw, 48px); }
  .ppdb-page-hero p:not(.section-label):not(.ppdb-breadcrumb) { font-size: 13px; }
  .ppdb-page-main { padding: 27px 0 53px; }
  .ppdb-side-content { grid-template-columns: 1fr; }
  .ppdb-info-note { grid-column: auto; }
  .ppdb-info-card, .ppdb-form-card { padding: 19px; }
  .ppdb-form-grid { grid-template-columns: 1fr; }
  .ppdb-form-field.full { grid-column: auto; }
  .ppdb-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
