:root {
  --primary: #005c55;
  --primary-dark: #003f3b;
  --mint: #8fddd6;
  --ink: #263b39;
  --muted: #647875;
  --paper: #ffffff;
  --surface: #f5f8f7;
  --gold: #d7b369;
  --border: #dce8e5;
  --shadow: 0 16px 42px rgba(0, 63, 59, .09);
  --radius: 20px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 15px; border-radius: 10px; color: white; background: var(--primary-dark); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--primary-dark); font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif; line-height: 1.18; }
h1 { font-size: clamp(2.25rem, 5vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); letter-spacing: -.025em; }
h3 { font-size: 1.12rem; letter-spacing: -.015em; }
p { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.2rem; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(68px, 7.5vw, 96px) 0; }
.section-soft { background: var(--surface); }
.section-dark { color: #d9eeeb; background: var(--primary-dark); }
.section-heading { max-width: 700px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading p { color: var(--muted); font-size: 1.06rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; background: currentColor; content: ""; }
.section-dark h2, .section-dark h3, .section-dark .eyebrow { color: white; }
.section-dark p { color: #bdd5d1; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: white;
  background: var(--primary);
  font-weight: 700;
  line-height: 1;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(0, 63, 59, .2); transform: translateY(-2px); }
.btn-light { border-color: white; color: var(--primary-dark); background: white; }
.btn-light:hover { border-color: var(--primary-dark); color: white; background: var(--primary-dark); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: white; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.btn-outline { color: var(--primary); background: transparent; }
.btn-sm { min-height: 44px; padding: 11px 21px; font-size: .92rem; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 700; }
.text-link .icon { width: 17px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }

/* Soft bubble feedback for interactive controls */
.ripple-ready { position: relative; overflow: hidden; isolation: isolate; }
.click-ripple {
  position: absolute;
  z-index: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(143,221,214,.38);
  box-shadow: 0 0 0 5px rgba(143,221,214,.12);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: clickBubble .68s ease-out forwards;
}
.ripple-light .click-ripple,
.faq-question .click-ripple,
.nav-menu a .click-ripple,
.filter-chip .click-ripple {
  border-color: rgba(0,92,85,.42);
  background: rgba(143,221,214,.32);
}
@keyframes clickBubble {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(0); }
  70% { opacity: .42; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(16); }
}

/* Header */
#site-header { position: relative; z-index: 100; }
.navbar { position: fixed; inset: 0 0 auto; border-bottom: 1px solid rgba(255,255,255,.16); color: white; transition: .3s; }
body:not(.has-hero) .navbar, .navbar.scrolled { border-color: var(--border); color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 8px 32px rgba(0,63,59,.08); backdrop-filter: blur(14px); }
.nav-wrap { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 13px; line-height: 1.18; }
.brand > span:last-child { min-width: 0; }
.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 700;
}
.brand-logo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: white;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0,63,59,.12);
}
.brand strong, .brand small { display: block; }
.brand strong { display: block; max-width: 320px; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.04rem; font-weight: 700; line-height: 1.2; }
.brand small { margin-top: 5px; font-size: .75rem; font-weight: 600; opacity: .84; }
.nav-menu { display: flex; align-items: center; gap: 28px; font-size: .94rem; font-weight: 700; }
.nav-menu > a:not(.btn) { position: relative; padding: 31px 0; }
.nav-menu > a:not(.btn)::after { position: absolute; right: 0; bottom: 24px; left: 0; height: 2px; background: currentColor; content: ""; transform: scaleX(0); transition: transform .2s; }
.nav-menu > a:hover::after, .nav-menu > a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; color: inherit; background: transparent; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px 0; background: currentColor; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: clamp(700px, 84vh, 820px);
  align-items: flex-end;
  padding: 132px 0 58px;
  overflow: hidden;
  color: white;
  background: var(--primary-dark);
}
.hero::before { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,35,34,.93) 0%, rgba(0,63,59,.72) 43%, rgba(0,37,56,.22) 78%), linear-gradient(0deg, rgba(0,30,29,.8), transparent 45%); content: ""; }
.hero::after { position: absolute; inset: auto -5% -150px; z-index: 3; height: 260px; border-radius: 50%; background: var(--paper); content: ""; transform: scaleY(.2); transform-origin: bottom; }
.hero-slideshow { position: absolute; inset: 0; z-index: 0; background: var(--primary-dark); }
.hero-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform-origin: center center;
  transition: opacity 1.9s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide:nth-child(1) { object-position: center 48%; }
.hero-slide:nth-child(2) { object-position: center 48%; }
.hero-slide:nth-child(3) { object-position: center 43%; }
.hero-slide:nth-child(4) { object-position: center 42%; }
.hero-content::before {
  position: absolute;
  top: -95px;
  left: -95px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(143,221,214,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(143,221,214,.035), 0 0 0 76px rgba(143,221,214,.025);
  content: "";
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 880px; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { color: white; }
.hero h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 4.15vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.hero h1 span { color: var(--mint); }
.hero-lead { max-width: 680px; color: #d9ebe8; font-size: clamp(.98rem, 1.7vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-point { min-width: 165px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(0,40,38,.42); backdrop-filter: blur(10px); }
.hero-point strong, .hero-point span { display: block; }
.hero-point strong { color: white; font-family: "Plus Jakarta Sans", Inter, sans-serif; }
.hero-point span { color: #bddbd7; font-size: .75rem; }
/* Information bar */
.announcement-bar { position: relative; z-index: 5; color: white; background: var(--primary); box-shadow: 0 12px 34px rgba(0,63,59,.15); }
.announcement-wrap { display: flex; min-height: 56px; align-items: center; gap: 22px; }
.announcement-label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding-right: 24px; border-right: 1px solid rgba(255,255,255,.25); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.announcement-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(143,221,214,.15); animation: pulse 1.8s ease-in-out infinite; }
.announcement-wrap p { min-width: 0; margin: 0; color: #eaf8f6; font-size: .86rem; }
.announcement-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; color: white; font-size: .82rem; font-weight: 700; }
.announcement-link span { transition: transform .2s; }
.announcement-link:hover span { transform: translateX(4px); }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Page banner */
.page-banner { position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; padding: 125px 0 58px; color: white; background: #164f49; isolation: isolate; }
.page-banner::before { position: absolute; inset: -3px; z-index: -2; background: url("../assets/images/apel-madrasah.jpg") center 42%/cover no-repeat; content: ""; filter: brightness(1.08) saturate(1.2) contrast(1.04); transform: scale(1.012); }
.page-banner::after { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 80% 24%, rgba(255,221,145,.17), transparent 34%), linear-gradient(90deg, rgba(0,39,37,.7) 0%, rgba(0,63,59,.38) 52%, rgba(0,63,59,.08) 100%), linear-gradient(0deg, rgba(0,31,29,.15), transparent 55%); content: ""; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: white; font-size: clamp(2.4rem, 5vw, 4rem); text-shadow: 0 3px 18px rgba(0,25,24,.42); }
.page-banner p { max-width: 680px; margin-bottom: 0; color: #f2fbfa; text-shadow: 0 2px 10px rgba(0,25,24,.55); }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 18px; color: #a9f0e8; font-size: .88rem; text-shadow: 0 2px 8px rgba(0,25,24,.5); }

/* Shared cards/layouts */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(38px, 6vw, 72px); }
.feature-image { position: relative; }
.feature-image img { aspect-ratio: 4/3; border-radius: 24px; object-fit: cover; object-position: center; }
.feature-image.landscape img { aspect-ratio: 16/11; }
.feature-image::after { position: absolute; right: -20px; bottom: -20px; z-index: -1; width: 65%; height: 65%; border-radius: 30px; background: var(--mint); content: ""; opacity: .45; }
.photo-caption {
  position: absolute;
  right: -26px;
  bottom: 28px;
  max-width: 245px;
  padding: 18px 21px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 17px;
  color: white;
  background: rgba(0,63,59,.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.photo-caption span, .photo-caption strong { display: block; }
.photo-caption span { margin-bottom: 3px; color: var(--mint); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.photo-caption strong { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: .9rem; }
.quote { padding: 24px 28px; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { position: absolute; top: .1em; left: 0; color: var(--primary); font-weight: 800; content: "✓"; }
.program-grid, .news-grid, .facility-grid, .teachers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.program-card, .facility-card, .teacher-card, .info-card { padding: 27px; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(0,63,59,.045); transition: transform .25s, box-shadow .25s, border .25s; }
.program-card { position: relative; overflow: hidden; }
.program-card::after { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--mint)); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.program-card:hover::after { transform: scaleX(1); }
.program-card:hover, .facility-card:hover, .teacher-card:hover { border-color: var(--mint); box-shadow: var(--shadow); transform: translateY(-6px); }
.program-card p, .facility-card p, .teacher-card p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }
.icon-box { display: grid; width: 54px; height: 54px; margin-bottom: 24px; place-items: center; border-radius: 17px; color: var(--primary); background: #e3f5f2; }
.icon-box .icon { width: 26px; height: 26px; }
.stats { position: relative; z-index: 3; margin-top: -1px; padding: 54px 0; color: white; background: var(--primary-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); }
.stat strong { display: block; color: var(--mint); font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.stat span { color: #c6dcda; font-size: .84rem; }
.school-facts { padding: clamp(68px, 7vw, 90px) 0; overflow: visible; color: var(--ink); background: var(--surface); }
.school-facts::after { display: none; }
.school-facts > .container {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 18px;
}
.school-facts > .container::before { display: none; }
.facts-heading {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  padding: clamp(32px, 4vw, 48px);
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0;
  border-radius: 27px;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  box-shadow: 0 18px 42px rgba(0,63,59,.15);
}
.facts-heading::after {
  position: absolute;
  right: -95px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.035);
  content: "";
  pointer-events: none;
}
.facts-heading > div { position: relative; z-index: 1; }
.facts-heading .eyebrow { color: var(--mint); }
.facts-heading h2 { position: relative; z-index: 1; max-width: 420px; margin: 0 0 18px; color: white; font-size: clamp(2rem, 3.2vw, 2.75rem); }
.facts-heading p { position: relative; z-index: 1; max-width: 390px; margin: 0; color: #c7e0dc; }
.school-facts .stats-grid { position: relative; z-index: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.school-facts .stat { position: relative; min-width: 0; min-height: 154px; padding: 25px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 10px 28px rgba(0,63,59,.055); transition: border-color .25s, box-shadow .25s, transform .25s; }
.school-facts .stat::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: linear-gradient(var(--primary), var(--mint)); content: ""; opacity: .72; }
.school-facts .stat::after { position: absolute; top: 17px; right: 19px; color: #d7e8e5; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.2rem; font-weight: 700; }
.school-facts .stat:nth-child(1)::after { content: "01"; }
.school-facts .stat:nth-child(2)::after { content: "02"; }
.school-facts .stat:nth-child(3)::after { content: "03"; }
.school-facts .stat:nth-child(4)::after { content: "04"; }
.school-facts .stat:nth-child(5)::after { content: "05"; }
.school-facts .stat:nth-child(6)::after { content: "06"; }
.school-facts .stat:hover { border-color: #b8dcd7; box-shadow: 0 17px 34px rgba(0,63,59,.1); transform: translateY(-4px); }
.school-facts .stat strong { margin: 7px 0 9px; color: var(--primary); font-size: clamp(1.45rem, 2.5vw, 2.05rem); }
.school-facts .stat > span:last-child { display: block; color: var(--muted); line-height: 1.5; }
.fact-label { display: block; color: var(--primary) !important; font-size: .66rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.news-card { position: relative; display: flex; overflow: hidden; min-width: 0; flex-direction: column; border: 1px solid #d8e6e3; border-radius: 24px; background: white; box-shadow: 0 12px 34px rgba(0,63,59,.065); transition: transform .25s, box-shadow .25s, border-color .25s; }
.news-card::after { position: absolute; right: 24px; bottom: 0; left: 24px; height: 3px; border-radius: 999px 999px 0 0; background: linear-gradient(90deg, var(--primary), var(--mint)); content: ""; opacity: 0; transition: opacity .25s; }
.news-card:hover { border-color: #b9dcd7; box-shadow: 0 20px 44px rgba(0,63,59,.12); transform: translateY(-5px); }
.news-card:hover::after { opacity: 1; }
.card-image { position: relative; display: flex; margin: 10px 10px 0; overflow: hidden; align-items: center; justify-content: center; border-radius: 17px; background: linear-gradient(145deg, #edf5f3, #f8fbfa); }
.card-image img { aspect-ratio: 16/10; padding: 8px; border-radius: 15px; object-fit: contain; object-position: center; }
.card-category { position: absolute; top: 17px; left: 17px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: white; background: rgba(0,63,59,.88); box-shadow: 0 6px 16px rgba(0,34,32,.18); backdrop-filter: blur(8px); font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 23px 24px 26px; }
.card-body h3 { margin-bottom: 12px; line-height: 1.3; }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--muted); font-size: .9rem; }
.card-body .text-link { margin-top: auto; padding-top: 8px; }
.home-news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-news .news-card:first-child { grid-row: auto; }
.home-news .news-card:first-child .card-image img { min-height: 0; }
.home-news .news-card:not(:first-child) { display: flex; }
.home-news .news-card:not(:first-child) .card-image img { height: auto; min-height: 0; aspect-ratio: 16/10; object-fit: contain; }
.home-news .news-card:not(:first-child) .card-body { padding: 23px 24px 26px; }
.home-news .news-card:not(:first-child) .card-body p { display: block; overflow: visible; }
.meta { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-bottom: 12px; color: var(--muted); font-size: .76rem; }
.meta span + span::before { margin-right: 9px; color: var(--mint); content: "•"; }
.facility-card { position: relative; min-height: 230px; overflow: hidden; color: white; background: var(--primary-dark); }
.facility-card::after { position: absolute; right: -40px; bottom: -50px; width: 150px; height: 150px; border: 1px solid rgba(143,221,214,.3); border-radius: 50%; content: ""; }
.facility-card h3, .facility-card p { position: relative; z-index: 1; color: white; }
.facility-card p { color: #bcd5d2; }
.facility-card .icon-box { color: white; background: rgba(143,221,214,.15); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px; }
.gallery-item { position: relative; grid-column: span 4; min-height: 290px; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; color: white; background: var(--primary-dark); box-shadow: 0 14px 34px rgba(0,45,42,.11); text-align: left; isolation: isolate; transition: border-color .3s, box-shadow .3s, transform .3s; }
.gallery-item:nth-child(6n + 1) { grid-column: span 7; min-height: 340px; }
.gallery-item:nth-child(6n + 2) { grid-column: span 5; min-height: 340px; }
.gallery-item:nth-child(6n + 6) { grid-column: span 12; min-height: 370px; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: filter .45s, transform .65s cubic-bezier(.2,.7,.2,1); }
.gallery-item::before { position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(255,255,255,.24); border-radius: 17px; content: ""; opacity: 0; pointer-events: none; transform: scale(.98); transition: opacity .3s, transform .3s; }
.gallery-item::after { position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(0,31,29,.94) 0, rgba(0,48,45,.5) 39%, transparent 72%); content: ""; }
.gallery-item > span { position: absolute; right: 72px; bottom: 24px; left: 24px; z-index: 1; font-family: "Plus Jakarta Sans", Inter, sans-serif; }
.gallery-item strong { display: block; color: white; font-size: clamp(.98rem, 1.6vw, 1.22rem); line-height: 1.35; text-wrap: balance; }
.gallery-item small { display: block; margin-bottom: 6px; color: var(--mint); font-family: Inter, sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.gallery-open { position: absolute; right: 22px; bottom: 22px; z-index: 2; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: rgba(0,63,59,.52); backdrop-filter: blur(8px); font-style: normal; transform: translateY(6px); transition: background .3s, transform .3s; }
.gallery-open .icon { width: 19px; height: 19px; }
.gallery-item:hover, .gallery-item:focus-visible { border-color: rgba(143,221,214,.72); box-shadow: 0 24px 54px rgba(0,45,42,.2); transform: translateY(-5px); }
.gallery-item:hover img, .gallery-item:focus-visible img { filter: saturate(1.06) contrast(1.03); transform: scale(1.045); }
.gallery-item:hover::before, .gallery-item:focus-visible::before { opacity: 1; transform: scale(1); }
.gallery-item:hover .gallery-open, .gallery-item:focus-visible .gallery-open { background: var(--primary); transform: translateY(0); }
.cta { position: relative; overflow: hidden; padding: clamp(38px, 7vw, 72px); border-radius: 30px; color: white; background: linear-gradient(125deg, var(--primary-dark), var(--primary)); }
.cta::after { position: absolute; top: -90px; right: -70px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.04); content: ""; }
.cta h2 { position: relative; z-index: 1; color: white; }
.cta p { position: relative; z-index: 1; max-width: 700px; color: #cee4e1; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Content pages */
.value-grid, .step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.profile-direction { align-items: stretch; }
.profile-direction .info-card { height: 100%; }
.direction-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.formal-list { display: grid; gap: 14px; margin: 0; padding-left: 1.4rem; }
.formal-list li { padding-left: 7px; color: var(--muted); }
.formal-list li::marker { color: var(--primary); font-weight: 700; }
.objectives-card {
  position: relative;
  margin-top: 28px;
  padding: clamp(30px, 4vw, 46px);
  overflow: hidden;
  border-color: #cfe3df;
  background:
    radial-gradient(circle at 100% 0, rgba(143,221,214,.24), transparent 31%),
    linear-gradient(145deg, #f3f9f8, #fff);
}
.objectives-card::after {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(0,92,85,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(0,92,85,.025);
  content: "";
  pointer-events: none;
}
.objectives-card > .direction-number {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: var(--primary);
}
.objectives-card > h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}
.objectives-list {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: objective;
  gap: 16px;
  padding: 0;
  list-style: none;
}
.objectives-list li {
  position: relative;
  min-height: 132px;
  padding: 22px 22px 22px 72px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(0,63,59,.045);
  counter-increment: objective;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.objectives-list li::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--primary);
  content: counter(objective, decimal-leading-zero);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: .76rem;
  font-weight: 700;
}
.objectives-list li:hover {
  border-color: var(--mint);
  box-shadow: 0 14px 30px rgba(0,63,59,.09);
  transform: translateY(-3px);
}
.value-card, .step-card { padding: 26px; border-radius: 18px; background: var(--surface); }
.value-card strong, .step-card strong { display: grid; width: 38px; height: 38px; margin-bottom: 20px; place-items: center; border-radius: 12px; color: white; background: var(--primary); }

/* PPDB */
.ppdb-hero { min-height: 720px; }
.ppdb-hero .hero-slide { object-position: center 46%; }
.ppdb-hero .hero-content { max-width: 920px; }
.ppdb-highlights .hero-point { min-width: 205px; }
.ppdb-overview { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(42px, 7vw, 88px); }
.ppdb-copy { max-width: 520px; }
.lead-copy { color: var(--ink); font-size: 1.06rem; }
.requirements-card { padding: clamp(28px, 4vw, 42px); border: 1px solid var(--border); border-radius: 26px; background: linear-gradient(145deg, #fff, #f3f8f7); box-shadow: var(--shadow); }
.requirements-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.requirements-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.requirements-head small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.requirements-number { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; border-radius: 16px; color: white; background: var(--primary); font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 700; }
.requirements-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 24px; }
.requirements-list li { color: var(--ink); font-size: .9rem; }
.requirements-note { margin: 25px 0 0; padding-top: 19px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.ppdb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ppdb-steps .step-card { display: flex; min-height: 190px; flex-direction: column; border: 1px solid var(--border); background: white; transition: transform .25s, border-color .25s, box-shadow .25s; }
.ppdb-steps .step-card:hover { border-color: var(--mint); box-shadow: var(--shadow); transform: translateY(-4px); }
.ppdb-steps .step-card h3 { margin-bottom: 8px; }
.ppdb-steps .step-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.ppdb-steps .step-card-final { color: white; background: var(--primary); }
.ppdb-steps .step-card-final strong { color: var(--primary); background: var(--mint); }
.ppdb-steps .step-card-final h3 { color: white; }
.ppdb-steps .step-card-final p { color: #cce4e0; }
.ppdb-schedule-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); align-items: start; gap: clamp(28px, 5vw, 58px); }
.ppdb-schedule { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 12px 32px rgba(0,63,59,.06); }
.ppdb-schedule th { padding: 15px 18px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.ppdb-schedule td { padding: 18px; font-size: .88rem; }
.status-pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--primary); background: #e6f4f2; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.ppdb-contact-card { position: relative; overflow: hidden; padding: 34px; border-radius: 26px; color: #d5e9e6; background: linear-gradient(145deg, var(--primary-dark), var(--primary)); box-shadow: var(--shadow); }
.ppdb-contact-card::after { position: absolute; top: -75px; right: -75px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.04); content: ""; }
.ppdb-contact-card h2 { position: relative; z-index: 1; color: white; font-size: 1.8rem; }
.ppdb-contact-card p { position: relative; z-index: 1; }
.contact-card-label { display: block; margin-bottom: 17px; color: var(--mint); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ppdb-contact-number { margin: 26px 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.ppdb-contact-number small, .ppdb-contact-number strong { display: block; }
.ppdb-contact-number small { margin-bottom: 2px; color: #afd2cd; font-size: .72rem; text-transform: uppercase; }
.ppdb-contact-number strong { color: white; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.25rem; }
.ppdb-contact-card .btn { position: relative; z-index: 1; width: 100%; }
.ppdb-programs .program-card { min-height: 245px; }
.ppdb-programs .icon-box { width: 48px; height: 48px; margin-bottom: 20px; font-size: .78rem; font-weight: 700; }
.ppdb-faq { display: grid; gap: 12px; }
.ppdb-faq .faq-item { padding: 0 24px; border: 1px solid var(--border); border-radius: 16px; background: white; }
.ppdb-faq .faq-answer { color: var(--muted); }
.ppdb-final-cta { display: flex; margin-top: 64px; padding: clamp(32px, 5vw, 52px); align-items: center; justify-content: space-between; gap: 36px; overflow: hidden; border-radius: 28px; color: white; background: linear-gradient(125deg, var(--primary-dark), var(--primary)); }
.ppdb-final-cta .eyebrow, .ppdb-final-cta h2 { color: white; }
.ppdb-final-cta h2 { margin-bottom: 10px; }
.ppdb-final-cta p { max-width: 620px; margin: 0; color: #cce4e0; }
.ppdb-final-cta .cta-actions { min-width: max-content; margin-top: 0; }

.org-chart { display: grid; max-width: 850px; margin-inline: auto; gap: 18px; text-align: center; }
.org-node { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(0,63,59,.06); }
.org-top { max-width: 330px; margin-inline: auto; color: white; background: var(--primary); }
.org-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.teacher-card { text-align: center; }
.teacher-avatar { display: grid; width: 90px; height: 90px; margin: 0 auto 20px; place-items: center; border: 5px solid #e4f3f0; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--primary), var(--primary-dark)); font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.35rem; font-weight: 700; }
.search-bar { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; margin-bottom: 30px; }
.field input, .field select, .field textarea, .search-bar input, .search-bar select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #cbdad7;
  border-radius: 13px;
  color: var(--ink);
  background: white;
}
.field textarea { min-height: 150px; resize: vertical; }
.empty-state { padding: 70px 20px; border: 1px dashed #b6cbc7; border-radius: var(--radius); text-align: center; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: var(--primary); }
.article { padding-top: 150px; }
.article-head { max-width: 850px; margin: 0 auto 44px; text-align: center; }
.article-head h1 { font-size: clamp(2.3rem, 6vw, 4.3rem); }
.article-head .meta { justify-content: center; }
.article-cover { max-width: 1100px; max-height: 620px; margin: 0 auto 55px; border-radius: 26px; object-fit: cover; }
.article-body { max-width: 760px; margin-inline: auto; font-size: 1.06rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.related { margin-top: 100px; }
.gallery-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: end; gap: 28px; max-width: none; }
.gallery-heading p { margin: 0 0 6px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-chip { padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.88); box-shadow: 0 5px 14px rgba(0,63,59,.045); font-weight: 600; transition: border-color .2s, box-shadow .2s, color .2s, background .2s, transform .2s; }
.filter-chip:hover, .filter-chip.active { border-color: var(--primary); color: white; background: var(--primary); box-shadow: 0 9px 22px rgba(0,63,59,.2); transform: translateY(-1px); }
.schedule { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 17px 20px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: white; background: var(--primary-dark); }
.faq-list { max-width: 850px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border: 0; color: var(--primary-dark); background: none; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 600; text-align: left; }
.faq-question::after { font-size: 1.4rem; content: "+"; }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer { display: none; padding: 0 0 22px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }
.home-faq-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(42px, 7vw, 90px); }
.home-faq-intro { position: sticky; top: 118px; }
.home-faq-intro p { max-width: 430px; color: var(--muted); }
.home-faq-list { display: grid; max-width: none; gap: 12px; }
.home-faq-list .faq-item { padding: 0 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.home-faq-list .faq-item.open { border-color: #b9dcd7; box-shadow: 0 12px 28px rgba(0,63,59,.07); }
.home-faq-list .faq-question { padding: 20px 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; }
.contact-cards { display: grid; gap: 15px; }
.contact-item { display: flex; gap: 15px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; }
.contact-item p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.contact-form { padding: 34px; border-radius: var(--radius); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; }
.field.full { grid-column: 1 / -1; }
.map { width: 100%; min-height: 400px; border: 0; border-radius: var(--radius); }
.field-hint { display: block; margin-bottom: 6px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.field-optional { color: var(--muted); font-size: .75rem; font-weight: 500; }

/* Footer and floating controls */
.footer-main { padding: 62px 0 50px; color: #c2d9d5; background: #002f2c; }
.footer-grid { display: grid; max-width: 1080px; grid-template-columns: minmax(0, 1.25fr) minmax(180px, .55fr) minmax(280px, 1fr); gap: clamp(42px, 7vw, 88px); }
.footer-grid h2 { margin-bottom: 20px; color: white; font-size: 1rem; }
.footer-grid > div > a { font-size: .88rem; }
.footer-grid a:hover { color: var(--mint); }
.footer-grid p { font-size: .88rem; }
.footer-about p { max-width: 430px; margin-bottom: 0; }
.brand-light { margin-bottom: 20px; color: white; }
.footer-links a { display: block; width: max-content; margin-bottom: 11px; }
.footer-contact-list { display: grid; gap: 15px; }
.footer-contact-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 11px; margin: 0; color: #c2d9d5; font-size: .88rem; }
.footer-contact-item .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--mint); }
.footer-contact-item span { overflow-wrap: anywhere; }
.footer-bottom { padding: 18px 0; color: #8fb2ad; background: #002723; font-size: .75rem; }
.footer-bottom .container { display: flex; max-width: 1080px; justify-content: space-between; gap: 20px; }
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; min-height: 52px; align-items: center; gap: 9px; padding: 12px 19px; border-radius: 999px; color: white; background: #1fa855; box-shadow: 0 10px 30px rgba(11,83,42,.3); font-weight: 700; }
.wa-float.ripple-ready { overflow: hidden; }
.wa-float::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 13% 125%, rgba(255,255,255,.24) 0 18px, transparent 19px),
    radial-gradient(circle at 91% -35%, rgba(255,255,255,.2) 0 24px, transparent 25px);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(.9);
  transition: opacity .25s, transform .35s;
}
.wa-float:hover { box-shadow: 0 14px 34px rgba(11,83,42,.38); transform: translateY(-2px); }
.wa-float:hover::before { opacity: 1; transform: scale(1); }
.wa-float > .icon,
.wa-float > span { position: relative; z-index: 1; }
.back-top { position: fixed; right: 30px; bottom: 90px; z-index: 79; width: 42px; height: 42px; border: 0; border-radius: 50%; color: white; background: var(--primary-dark); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; padding: 50px 80px; place-items: center; color: white; background: rgba(0,24,23,.94); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, 88vw); margin: 0; text-align: center; }
.lightbox img { max-height: 78vh; border-radius: 16px; object-fit: contain; }
.lightbox figcaption { display: grid; gap: 4px; max-width: 850px; margin: 16px auto 0; }
.lightbox figcaption strong { color: white; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.06rem; }
.lightbox figcaption span { color: #c7ddda; font-size: .86rem; line-height: 1.55; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; color: white; background: transparent; }
.lightbox-close { top: 18px; right: 24px; font-size: 2.5rem; }
.lightbox-nav { top: 50%; padding: 10px; font-size: 3rem; transform: translateY(-50%); }
.lightbox-nav.prev { left: 25px; }
.lightbox-nav.next { right: 25px; }
.page-loader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--primary-dark); transition: opacity .45s, visibility .45s; }
.page-loader::after { width: 45px; height: 45px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--mint); border-radius: 50%; content: ""; animation: spin .8s linear infinite; }
.page-loader.loaded { visibility: hidden; opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal {
  --reveal-x: 0px;
  --reveal-y: 28px;
  opacity: 0;
  backface-visibility: hidden;
  filter: blur(1px);
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(.992);
  transition:
    opacity .92s cubic-bezier(.16, 1, .3, 1),
    transform 1.08s cubic-bezier(.16, 1, .3, 1),
    filter .88s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-from-left { --reveal-x: -42px; --reveal-y: 0px; }
.reveal-from-right { --reveal-x: 42px; --reveal-y: 0px; }
.reveal-from-top { --reveal-x: 0px; --reveal-y: -32px; }
.reveal-from-bottom { --reveal-x: 0px; --reveal-y: 32px; }
.reveal.visible { opacity: 1; filter: none; transform: translate3d(0, 0, 0) scale(1); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-menu { position: absolute; top: 75px; right: 20px; left: 20px; display: grid; gap: 0; padding: 12px; border: 1px solid var(--border); border-radius: 18px; color: var(--ink); background: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s; }
  .nav-menu.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-menu > a:not(.btn) { padding: 11px 12px; }
  .nav-menu > a:not(.btn)::after { display: none; }
  .nav-menu > a.active { color: var(--primary); background: var(--surface); border-radius: 10px; }
  .nav-menu .btn { margin-top: 6px; }
  .program-grid, .news-grid, .facility-grid, .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .home-news { grid-template-columns: repeat(2, 1fr); }
  .home-news .news-card:first-child { grid-row: auto; }
  .home-news .news-card:first-child .card-image img { min-height: 0; }
  .home-news .news-card:not(:first-child) { display: flex; }
  .home-news .news-card:not(:first-child) .card-image img { min-height: 0; aspect-ratio: 16/10; }
  .home-news .news-card:last-child { grid-column: 1 / -1; }
  .value-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .ppdb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ppdb-schedule-grid { grid-template-columns: 1fr; }
  .ppdb-contact-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 34px; }
  .ppdb-contact-card .contact-card-label, .ppdb-contact-card h2, .ppdb-contact-card p { grid-column: 1; }
  .ppdb-contact-number { grid-column: 1; }
  .ppdb-contact-card .btn { grid-column: 2; grid-row: 2 / 5; width: auto; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .reveal-from-left { --reveal-x: -28px; }
  .reveal-from-right { --reveal-x: 28px; }
  .reveal-from-top { --reveal-y: -28px; }
  .reveal-from-bottom { --reveal-y: 28px; }
  .section { padding: 60px 0; }
  .section-heading { margin-bottom: 28px; }
  .nav-wrap { min-height: 72px; }
  .brand-mark, .brand-logo { width: 46px; height: 46px; }
  .brand { gap: 10px; }
  .brand strong { max-width: 240px; font-size: .78rem; line-height: 1.15; }
  .brand > span:last-child { max-width: 240px; }
  .brand small { font-size: .58rem; }
  .hero { min-height: 700px; padding: 112px 0 38px; background-position: 52% center; }
  .hero h1 { max-width: 560px; font-size: clamp(2.2rem, 7.3vw, 2.85rem); line-height: 1.13; }
  .hero::before { background: linear-gradient(90deg, rgba(0,38,36,.94), rgba(0,63,59,.72)), linear-gradient(0deg, rgba(0,30,29,.8), transparent); }
  .hero-slide { object-position: center; }
  .announcement-wrap { min-height: 0; flex-wrap: wrap; gap: 7px 14px; padding-top: 12px; padding-bottom: 12px; }
  .announcement-label { padding-right: 14px; }
  .announcement-wrap p { flex: 1 1 210px; }
  .announcement-link { margin-left: 0; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-point:last-child { grid-column: 1 / -1; }
  .page-banner { min-height: 310px; padding: 112px 0 44px; }
  .page-banner h1 { font-size: clamp(2.2rem, 9vw, 3.1rem); }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .ppdb-hero { min-height: 720px; }
  .ppdb-hero .hero-slide { object-position: 58% center; }
  .ppdb-highlights .hero-point { min-width: 0; }
  .ppdb-overview { grid-template-columns: 1fr; gap: 34px; }
  .ppdb-copy { max-width: none; }
  .requirements-list { grid-template-columns: 1fr; }
  .ppdb-steps .step-card { min-height: 170px; }
  .ppdb-contact-card { display: block; padding: 28px; }
  .ppdb-contact-card .btn { width: 100%; }
  .ppdb-final-cta { display: block; margin-top: 48px; }
  .ppdb-final-cta .cta-actions { min-width: 0; margin-top: 24px; }
  .feature-image { width: 100%; max-width: 540px; }
  .feature-image img, .feature-image.landscape img { aspect-ratio: 16/11; }
  .feature-image::after { right: -8px; bottom: -8px; }
  .photo-caption { right: 12px; bottom: 12px; max-width: min(245px, calc(100% - 24px)); padding: 14px 16px; }
  .school-facts > .container { grid-template-columns: 1fr; }
  .facts-heading { display: block; min-height: 0; margin-bottom: 0; }
  .facts-heading p { margin-top: 15px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 12px; }
  .school-facts .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .home-faq-intro { position: static; }
  .gallery-heading { grid-template-columns: 1fr; gap: 12px; }
  .program-grid, .news-grid, .facility-grid, .teachers-grid { grid-template-columns: 1fr; }
  .home-news { grid-template-columns: 1fr; }
  .home-news .news-card:last-child { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: auto; min-height: 220px; }
  .value-grid, .step-grid { grid-template-columns: 1fr; }
  .objectives-list { grid-template-columns: 1fr; }
  .org-row { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-contact { grid-column: auto; }
  .footer-contact-list { grid-template-columns: 1fr; }
  .footer-bottom .container { display: grid; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .back-top { right: 21px; bottom: 78px; }
  .lightbox { padding: 60px 15px; }
  .lightbox-nav { top: auto; bottom: 12px; }
}

@media (max-width: 430px) {
  .brand strong { max-width: 190px; font-size: .72rem; }
  .brand small { display: none; }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.15rem; letter-spacing: -.025em; }
  .hero-actions .btn { width: 100%; }
  .hero-points { grid-template-columns: 1fr; }
  .hero-point:last-child { grid-column: auto; }
  .school-facts .stats-grid { grid-template-columns: 1fr; }
  .school-facts .stat { padding: 21px; }
  .ppdb-steps { grid-template-columns: 1fr; }
  .ppdb-steps .step-card { min-height: 0; flex-direction: row; gap: 16px; padding: 21px; }
  .ppdb-steps .step-card strong { flex: 0 0 auto; margin-bottom: 0; }
  .ppdb-schedule { overflow-x: auto; }
  .ppdb-schedule table { min-width: 570px; }
  .ppdb-faq .faq-item { padding: 0 18px; }
  .announcement-wrap { display: grid; gap: 6px; }
  .announcement-label { padding-right: 0; border-right: 0; }
  .announcement-link { margin-top: 2px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-child(n) { min-height: 260px; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; filter: none; transform: none; }
}
