:root {
  --green-950: #06281f;
  --green-900: #0b3d31;
  --green-800: #11624d;
  --green-700: #168460;
  --green-100: #e7f5ee;
  --green-50: #f3fbf7;
  --gold-500: #d6a531;
  --gold-100: #fff3c7;
  --ink: #15201c;
  --muted: #5d6b65;
  --line: #dce7e1;
  --panel: #ffffff;
  --soft: #f6faf8;
  --danger: #b3261e;
  --warning: #9c6b00;
  --shadow: 0 18px 45px rgba(6, 40, 31, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--radius);
  background: var(--green-950);
  color: #fff;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(220, 231, 225, 0.75);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: #fff !important;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08) !important;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 9px 13px;
  transition: background 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green-100);
  color: var(--green-900);
}

.main-nav .admin-link {
  margin-left: 8px;
  background: var(--green-900);
  color: #fff;
}

.main-nav .admin-link:hover,
.main-nav .admin-link.active {
  background: var(--green-700);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--green-900);
}

.page {
  min-height: calc(100vh - 74px);
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--green-950);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(90deg, rgba(6, 40, 31, 0.9), rgba(6, 40, 31, 0.58) 42%, rgba(6, 40, 31, 0.08) 78%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 76px 0 92px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f6fffb;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 7px 12px;
}

.hero h1,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.06;
}

.hero h1 {
  max-width: 740px;
  margin-top: 22px;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
}

.hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.13rem;
}

.hero-actions,
.section-actions,
.form-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--green-800);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  padding: 11px 16px;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--green-700);
}

.btn.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--green-900);
}

.btn.secondary:hover {
  border-color: var(--green-100);
  background: var(--green-50);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn.danger {
  border-color: rgba(179, 38, 30, 0.18);
  background: #fff4f2;
  color: var(--danger);
}

.btn.small {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 0.88rem;
}

.section {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 74px 0;
}

.section.tight {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading.center {
  justify-items: center;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel,
.metric,
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card {
  padding: 22px;
}

.card h3,
.panel h3,
.metric strong,
.stat strong {
  margin: 0;
  color: var(--green-950);
}

.card p,
.panel p {
  color: var(--muted);
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.card-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 900;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.stat {
  padding: 18px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.91rem;
}

.highlight-band {
  background: #fff;
}

.announcement-list {
  display: grid;
  gap: 12px;
}

.announcement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.date-pill {
  min-width: 86px;
  border-radius: var(--radius);
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  padding: 8px;
}

.announcement h3,
.announcement p {
  margin: 0;
}

.announcement p {
  color: var(--muted);
}

.profile-layout,
.contact-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 1rem;
}

.prose p {
  margin: 0 0 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.list li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold-500);
  content: "";
}

.info-stack {
  display: grid;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}

.info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.info-item strong {
  color: var(--green-950);
  text-align: right;
}

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

.image-card {
  overflow: hidden;
  padding: 0;
}

.image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-card .card-body {
  padding: 18px;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-900);
  color: #fff;
  font-weight: 900;
}

.ppdb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--green-950);
  font-weight: 800;
}

.form-field small,
.help-text {
  color: var(--muted);
  font-size: 0.86rem;
}

.form-field input,
.form-field textarea,
.form-field select,
.search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border 140ms ease, box-shadow 140ms ease;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.search-input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(22, 132, 96, 0.14);
}

.form-actions {
  margin-top: 20px;
}

.success-panel {
  border: 1px solid rgba(22, 132, 96, 0.3);
  border-radius: var(--radius);
  background: var(--green-50);
  padding: 22px;
}

.registration-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.registration-card .card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 5px 10px;
  white-space: nowrap;
}

.badge.warning {
  background: #fff5d6;
  color: var(--warning);
}

.badge.danger {
  background: #fff0ef;
  color: var(--danger);
}

.admin-shell {
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding: 42px 0 74px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-content {
  min-width: 0;
}

.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.tab-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 16px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-btn:hover {
  background: #1c1c1c;
  color: #ffffff;
}

.tab-btn.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: #0f172a;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: translateX(0px);
}

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

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 1.8rem;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--green-50);
  color: var(--green-950);
  font-size: 0.86rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.danger-zone {
  border-color: rgba(179, 38, 30, 0.18);
  background: #fff8f7;
}

.login-wrap {
  display: grid;
  min-height: calc(100vh - 74px);
  place-items: center;
  padding: 32px 5vw;
}

.login-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-card h1 {
  margin: 0 0 8px;
  color: var(--green-950);
  line-height: 1.1;
}

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

.toast {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: var(--radius);
  background: var(--green-950);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
  padding: 13px 16px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 36px 0;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 10px;
  color: #fff;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 5vw;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 5vw;
    background: rgba(255, 255, 255, 0.98);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a,
  .main-nav .admin-link {
    margin: 0;
    border-radius: var(--radius);
    padding: 13px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 600px;
  }

  .stat-row,
  .grid.three,
  .feature-strip,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-layout,
  .contact-layout,
  .admin-layout,
  .ppdb-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 0 16px;
  }

  .hero {
    min-height: 560px;
  }

  .hero::before {
    background-image: linear-gradient(180deg, rgba(6, 40, 31, 0.72), rgba(6, 40, 31, 0.88)),
      var(--hero-image);
  }

  .hero-content {
    width: calc(100vw - 32px);
    padding-bottom: 54px;
  }

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

  .section {
    width: calc(100vw - 32px);
    padding: 52px 0;
  }

  .stat-row,
  .grid.two,
  .grid.three,
  .feature-strip,
  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-top,
  .registration-card .card-head {
    display: grid;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
  }
}

@media print {
  .site-header,
  .site-footer,
  .toast,
  .nav-toggle,
  .btn,
  .toolbar {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section,
  .admin-shell {
    width: 100%;
    padding: 0;
  }
}

/* Portal sekolah redesign */
:root {
  --green-950: #06251d;
  --green-900: #123f32;
  --green-800: #16634e;
  --green-700: #1d7a5d;
  --green-100: #dfeee7;
  --green-50: #f3f8f5;
  --gold-500: #b98928;
  --gold-100: #fff4cf;
  --ink: #17231f;
  --muted: #63726c;
  --line: #d4ddd8;
  --panel: #ffffff;
  --soft: #f4f7f3;
  --shadow: 0 10px 24px rgba(18, 63, 50, 0.1);
  --radius: 6px;
}

body {
  background:
    linear-gradient(90deg, rgba(18, 63, 50, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 63, 50, 0.035) 1px, transparent 1px),
    var(--soft);
  background-size: 42px 42px;
}

.topline {
  display: flex;
  justify-content: center;
  gap: 20px;
  min-height: 34px;
  padding: 7px 5vw;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
}

.topline span + span {
  position: relative;
}

.topline span + span::before {
  position: absolute;
  left: -12px;
  color: rgba(255, 255, 255, 0.38);
  content: "/";
}

.site-header {
  min-height: 68px;
  border-bottom: 1px solid rgba(18, 63, 50, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(18, 63, 50, 0.06);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(0,0,0,0.08) !important;
  background: #fff !important;
  color: #111;
  font-size: 0.82rem;
}

.brand strong {
  color: var(--green-950);
}

.main-nav a {
  border-radius: 0;
  border-bottom: 3px solid transparent;
  color: var(--green-950);
  padding: 22px 10px 19px;
}

.main-nav a:hover,
.main-nav a.active {
  background: transparent;
  border-bottom-color: var(--gold-500);
  color: var(--green-800);
}

.main-nav .admin-link {
  border-radius: var(--radius);
  margin-left: 12px;
  padding: 10px 14px;
  border-bottom: 0;
  background: var(--green-900);
}

.main-nav .admin-link:hover,
.main-nav .admin-link.active {
  background: var(--gold-500);
  color: var(--green-950);
}

.btn {
  min-height: 42px;
  border-radius: 4px;
  box-shadow: none;
  letter-spacing: 0;
}

.btn.secondary {
  background: var(--green-50);
}

.btn.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--green-900);
}

.section {
  width: min(1180px, 92vw);
}

.eyebrow {
  border: 1px solid rgba(29, 122, 93, 0.28);
  border-radius: 3px;
  background: #fff;
  color: var(--green-800);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  color: var(--green-950);
  line-height: 1.15;
}

.card,
.panel,
.metric,
.stat,
.form-panel,
.table-wrap,
.login-card {
  box-shadow: none;
}

.front-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdfb, #edf5ef);
}

.front-hero::before {
  position: absolute;
  right: 0;
  bottom: -80px;
  left: 0;
  height: 230px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
  filter: grayscale(1);
  opacity: 0.08;
}

.front-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: 34px;
  align-items: center;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 52px 0 42px;
}

.front-copy h1 {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--green-950);
  font-size: clamp(2.25rem, 5.2vw, 4.45rem);
  line-height: 1.04;
}

.front-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.front-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.identity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  background: #fff;
}

.identity-strip div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.identity-strip div:last-child {
  border-right: 0;
}

.identity-strip dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-strip dd {
  margin: 0;
  color: var(--green-950);
  font-size: 1.05rem;
  font-weight: 900;
}

.front-photo-card {
  overflow: hidden;
  border: 1px solid var(--green-900);
  background: #fff;
}

.front-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-note {
  display: grid;
  gap: 4px;
  border-top: 5px solid var(--gold-500);
  padding: 15px 17px 17px;
}

.photo-note strong {
  color: var(--green-950);
}

.photo-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.home-summary {
  background: var(--green-950);
}

.home-summary-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.summary-item {
  min-height: 92px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.summary-item:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-item strong {
  display: block;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.1;
}

.summary-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
}

.portal-section {
  padding-top: 58px;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.service-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row > span {
  display: block;
  width: 48px;
  height: 48px;
  border: 2px solid var(--green-800);
  background:
    linear-gradient(135deg, transparent 0 48%, var(--green-800) 49% 52%, transparent 53%),
    var(--green-50);
}

.service-row h3 {
  margin: 0 0 4px;
  color: var(--green-950);
}

.service-row p {
  margin: 0;
  color: var(--muted);
}

.ppdb-note {
  border: 1px solid var(--green-900);
  background: #fff;
  padding: 22px;
}

.ppdb-note h3 {
  margin: 16px 0 10px;
  color: var(--green-950);
  font-size: 1.55rem;
  line-height: 1.16;
}

.ppdb-note p {
  color: var(--muted);
}

.ppdb-note ul {
  margin: 16px 0 20px;
  padding-left: 18px;
  color: var(--green-900);
  font-weight: 800;
}

.notice-band {
  border-block: 1px solid var(--line);
  background: #fff;
}

.notice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
}

.notice-board h2 {
  margin: 14px 0 18px;
  color: var(--green-950);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.announcement {
  border-radius: 0;
  box-shadow: none;
}

.date-pill {
  border-radius: 3px;
}

.flow-box {
  border-left: 6px solid var(--gold-500);
  background: var(--green-50);
  padding: 22px;
}

.flow-box h3 {
  margin: 0 0 14px;
  color: var(--green-950);
}

.image-card {
  border-radius: 0;
}

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

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

  .main-nav {
    top: 68px;
  }

  .main-nav a,
  .main-nav .admin-link {
    border-bottom: 0;
    border-radius: var(--radius);
    padding: 13px 14px;
  }

  .front-hero-inner,
  .portal-grid,
  .notice-layout {
    grid-template-columns: 1fr;
  }

  .front-photo-card {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .front-hero-inner {
    width: calc(100vw - 32px);
    padding: 34px 0 30px;
  }

  .front-copy h1 {
    font-size: 2.35rem;
  }

  .identity-strip,
  .home-summary-inner {
    grid-template-columns: 1fr;
  }

  .identity-strip div,
  .summary-item,
  .summary-item:first-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-item {
    min-height: auto;
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .service-row {
    grid-template-columns: 36px 1fr;
    padding: 16px;
  }

  .service-row > span {
    width: 36px;
    height: 36px;
  }
}

/* Red school landing style inspired by the provided reference */
:root {
  --green-950: #202124;
  --green-900: #bb1826;
  --green-800: #cf202f;
  --green-700: #e23a48;
  --green-100: #ffe5e8;
  --green-50: #fff6f7;
  --gold-500: #cf202f;
  --gold-100: #fff0f1;
  --soft: #ffffff;
  --line: #e9e9e9;
  --shadow: 0 18px 40px rgba(38, 38, 38, 0.12);
}

body {
  background: #fff;
  color: #222;
}

.topline {
  display: none;
}

.site-header {
  min-height: 64px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 0.72rem;
}

.brand strong {
  color: #111;
  font-size: 0.95rem;
}

.brand small {
  font-size: 0.74rem;
}

.main-nav {
  gap: 18px;
}

.main-nav a {
  border: 0;
  border-radius: 0;
  color: #222;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 22px 0;
}

.main-nav a:hover,
.main-nav a.active {
  border: 0;
  background: transparent;
  color: var(--green-800);
}

.main-nav .admin-link {
  margin-left: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  padding: 8px 0;
}

.main-nav .admin-link:hover,
.main-nav .admin-link.active {
  background: transparent;
  color: var(--green-800);
}

.btn {
  border-radius: 999px;
  background: var(--green-800);
  box-shadow: 0 8px 18px rgba(207, 32, 47, 0.24);
}

.btn:hover {
  background: #b71826;
}

.btn.secondary {
  border-color: #e5e5e5;
  background: #fff;
  color: var(--green-800);
  box-shadow: none;
}

.oxford-home {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(207, 32, 47, 0.09) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 25%, rgba(0, 175, 145, 0.12) 0 3px, transparent 4px),
    radial-gradient(circle at 20% 68%, rgba(207, 32, 47, 0.08) 0 2px, transparent 3px),
    #fff;
}

.ox-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ox-hero {
  padding: 28px 0 20px;
}

.image-carousel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: end;
  min-height: 190px;
  padding: 0 36px;
}

.hero-slide {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  margin: 18px -8px 0;
  border-radius: 10px;
  background: #ddd;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.15);
}

.hero-slide.active {
  z-index: 2;
  min-height: 172px;
  margin-top: 0;
  transform: scale(1.04);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-slide:nth-child(1) img {
  object-position: 10% 45%;
}

.hero-slide:nth-child(2) img {
  object-position: 35% 55%;
}

.hero-slide:nth-child(3) img {
  object-position: center;
}

.hero-slide:nth-child(4) img {
  object-position: 86% 44%;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
  content: "";
}

.hero-slide div {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 13px;
  left: 14px;
  color: #fff;
}

.hero-slide strong {
  display: block;
  font-size: 1rem;
}

.hero-slide span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
}

.welcome-copy {
  max-width: 820px;
  margin: 26px auto 0;
  text-align: center;
}

.welcome-copy h1 {
  margin: 0;
  color: #151515;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.welcome-copy p {
  margin: 12px auto 18px;
  color: #6d6d6d;
  font-size: 0.95rem;
}

.apply-btn {
  min-height: 36px;
  padding: 8px 18px;
  font-size: 0.86rem;
}

.stats-glance {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  background: var(--green-800);
  color: #fff;
  padding: 34px 0 42px;
}

.confetti-layer,
.stats-glance::before,
.stats-glance::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.confetti-layer {
  background:
    radial-gradient(circle at 7% 22%, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 80%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 74%, rgba(255, 255, 255, 0.48) 0 2px, transparent 3px);
}

.stats-glance::before {
  background-image:
    linear-gradient(35deg, transparent 48%, rgba(255, 255, 255, 0.5) 49% 51%, transparent 52%),
    linear-gradient(120deg, transparent 48%, rgba(255, 255, 255, 0.35) 49% 51%, transparent 52%);
  background-size: 120px 90px, 160px 130px;
  opacity: 0.35;
}

.stats-title {
  position: relative;
  text-align: center;
}

.cap-icon {
  display: block;
  width: 48px;
  height: 22px;
  margin: 0 auto 12px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 40%, 50% 80%, 0 40%);
}

.stats-title h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.stats-title p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.stat-box {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.line-icon {
  position: relative;
  display: block;
  width: 46px;
  height: 42px;
  border: 4px solid #fff;
}

.trophy-icon {
  border-radius: 0 0 14px 14px;
}

.people-icon,
.building-icon,
.graduate-icon {
  border-radius: 8px;
}

.people-icon::before,
.building-icon::before,
.graduate-icon::before {
  position: absolute;
  inset: 8px;
  border: 3px solid #fff;
  content: "";
}

.stat-box strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.stat-box small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.photo-collage {
  display: grid;
  grid-template-columns: 1.15fr 1.7fr 0.9fr;
  grid-auto-rows: 160px;
  gap: 8px;
  padding: 48px 0 18px;
}

.collage-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #eee;
}

.collage-item.large {
  grid-row: span 2;
}

.collage-item.wide {
  grid-column: span 1;
  grid-row: span 2;
}

.collage-item.tall {
  grid-row: span 2;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-item:nth-child(1) img {
  object-position: 20% 50%;
}

.collage-item:nth-child(2) img {
  object-position: center;
}

.collage-item:nth-child(3) img {
  object-position: 78% 42%;
}

.collage-item:nth-child(4) img {
  object-position: 60% 68%;
}

.collage-item:nth-child(5) img {
  object-position: 44% 22%;
}

.collage-item:nth-child(6) img {
  object-position: 85% 62%;
}

.collage-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 34px 12px 10px;
}

.news-section {
  padding: 36px 0 42px;
}

.title-center {
  text-align: center;
}

.title-center h2 {
  margin: 0 0 22px;
  color: #111;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.news-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.news-card div {
  padding: 17px;
}

.news-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  padding: 7px 10px;
}

.news-card h3 {
  margin: 0 0 8px;
  color: #181818;
  font-size: 1rem;
}

.news-card p {
  min-height: 68px;
  margin: 0;
  color: #777;
  font-size: 0.86rem;
}

.news-card a {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 7px 12px;
}

.announcement-admin-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
}

.announcement-admin-card img {
  width: 118px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.announcement-admin-card h3 {
  margin-top: 10px;
}

.announcement-admin-card p {
  margin-bottom: 14px;
}

.announcement-detail-page {
  background:
    linear-gradient(180deg, rgba(243, 251, 247, 0.96), rgba(255, 255, 255, 0.98)),
    var(--hero-image);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.announcement-detail {
  overflow: hidden;
  max-width: 1040px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.announcement-detail-media img {
  width: 100%;
  height: clamp(240px, 42vw, 440px);
  object-fit: cover;
}

.announcement-detail-body {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 42px);
}

.announcement-detail-body h1 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
}

.announcement-detail-body p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
  white-space: pre-line;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.view-more {
  min-height: 38px;
  padding: 8px 24px;
}

.calendar-board {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 58px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--green-800);
  color: #fff;
  padding: 16px 24px;
}

.calendar-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
}

.download-btn {
  min-height: 32px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--green-800);
  padding: 6px 13px;
  box-shadow: none;
}

.announcement-panel {
  padding: 24px;
}

.announcement-panel h3 {
  margin: 0;
  color: #111;
  font-size: 1.5rem;
}

.announcement-panel p {
  margin: 6px 0 18px;
  color: #777;
}

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

.calendar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
  padding: 13px 16px 13px 22px;
}

.calendar-row strong {
  color: #222;
  font-size: 0.9rem;
}

.calendar-row span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.calendar-row a,
.calendar-row button {
  border: 0;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 7px 12px;
}

.site-footer {
  background: var(--green-800);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 980px) {
  .site-header {
    width: 100%;
    padding: 0 16px;
  }

  .main-nav {
    top: 64px;
    padding: 18px 16px;
  }

  .main-nav a,
  .main-nav .admin-link {
    padding: 12px;
  }

  .image-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .hero-slide,
  .hero-slide.active {
    min-height: 150px;
    margin: 0;
    transform: none;
  }

  .stats-grid,
  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .ox-hero {
    padding-top: 18px;
  }

  .image-carousel,
  .stats-grid,
  .news-card-grid,
  .photo-collage {
    grid-template-columns: 1fr;
  }

  .hero-slide:nth-child(n + 3) {
    display: none;
  }

  .welcome-copy {
    text-align: left;
  }

  .welcome-copy h1 {
    font-size: 2rem;
  }

  .stats-glance {
    padding: 28px 0 34px;
  }

  .stats-grid {
    gap: 20px;
  }

  .photo-collage {
    grid-auto-rows: 190px;
  }

  .collage-item,
  .collage-item.large,
  .collage-item.wide,
  .collage-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .calendar-header,
  .calendar-row {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 0;
  }

  .calendar-row span {
    justify-content: flex-start;
  }
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.achievement-card {
  overflow: hidden;
  padding: 0;
}

.achievement-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f1f1;
}

.achievement-media img,
.admin-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.achievement-body .card-number {
  position: static;
  width: fit-content;
}

.achievement-body h3 {
  margin: 0;
}

.achievement-body p {
  margin: 0;
  color: var(--muted);
}

.admin-media-section {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.admin-section-head h3 {
  margin: 0 0 4px;
  color: var(--green-950);
}

.admin-section-head p {
  margin: 0;
}

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

.admin-media-item,
.admin-gallery-item {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-50);
  padding: 14px;
}

.admin-media-item legend,
.admin-gallery-item legend {
  color: var(--green-950);
  font-weight: 900;
  padding: 0 8px;
}

.admin-media-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.admin-media-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.admin-media-preview {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-media-preview.compact {
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
}

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

.admin-gallery-item {
  display: grid;
  gap: 12px;
}

.admin-gallery-item textarea {
  min-height: 86px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--danger);
  font-weight: 800;
}

.check-field input {
  width: 18px;
  height: 18px;
}

@media (max-width: 980px) {
  .achievement-grid,
  .gallery-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .achievement-grid,
  .gallery-editor-grid,
  .admin-media-fields {
    grid-template-columns: 1fr;
  }
}

/* Horizontal hero carousel interactions */
.carousel-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.image-carousel {
  display: flex;
  grid-template-columns: none;
  gap: 18px;
  align-items: center;
  min-height: 230px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 54px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  padding: 12px 54px 30px;
}

.image-carousel::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 clamp(270px, 35vw, 440px);
  min-height: 154px;
  margin: 18px 0 0;
  cursor: pointer;
  outline: none;
  scroll-snap-align: center;
  user-select: none;
  transform: translateY(0) scale(0.96);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.hero-slide:hover,
.hero-slide:focus-visible {
  filter: saturate(1.08);
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.hero-slide.active {
  z-index: 2;
  min-height: 188px;
  margin-top: 0;
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.hero-slide.active::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-slide.pressed {
  animation: heroSlidePress 420ms ease;
}

.carousel-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-800);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.carousel-nav.prev {
  left: 4px;
}

.carousel-nav.next {
  right: 4px;
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  background: var(--green-800);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.94);
}

@keyframes heroSlidePress {
  0% {
    transform: translateY(-12px) scale(1.05);
  }
  45% {
    transform: translateY(-4px) scale(0.98);
  }
  100% {
    transform: translateY(-12px) scale(1.05);
  }
}

@media (max-width: 980px) {
  .image-carousel {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    padding: 8px 50px 28px;
  }

  .hero-slide,
  .hero-slide.active {
    flex-basis: min(76vw, 430px);
    min-height: 174px;
    margin: 0;
  }

  .hero-slide.active {
    transform: translateY(-8px) scale(1.03);
  }
}

@media (max-width: 680px) {
  .image-carousel {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    min-height: 198px;
    padding: 4px 42px 24px;
  }

  .hero-slide:nth-child(n + 3) {
    display: block;
  }

  .hero-slide,
  .hero-slide.active {
    flex-basis: 82vw;
    min-height: 160px;
  }

  .hero-slide.active {
    min-height: 176px;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 1.65rem;
  }

  .carousel-nav.prev {
    left: 0;
  }

  .carousel-nav.next {
    right: 0;
  }
}

/* PPDB registration card redesign */
.success-panel {
  background: linear-gradient(135deg, #fff, #fff7f8);
}

.ppdb-card {
  position: relative;
  overflow: hidden;
  gap: 18px;
  border: 1px solid #e4e8e5;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.09);
  padding: 24px;
}

.ppdb-card::after {
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border: 22px solid rgba(215, 25, 47, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.ppdb-card-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  border-bottom-left-radius: 14px;
  background: var(--green-800);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 10px 18px;
}

.ppdb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #f1d7dc;
  padding: 10px 0 18px;
}

.school-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.school-mark {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #202124;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.school-identity strong,
.school-identity span {
  display: block;
}

.school-identity strong {
  color: #202124;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
}

.school-identity span:last-child {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.status-panel {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reg-number-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 12px;
  background: #202124;
  color: #fff;
  padding: 15px 18px;
}

.reg-number-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.reg-number-panel strong {
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
  text-align: right;
}

.ppdb-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.ppdb-info-section {
  position: relative;
  z-index: 1;
  border: 1px solid #edf0ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.ppdb-info-section h4 {
  margin: 0 0 12px;
  color: var(--green-800);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ppdb-info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  border-bottom: 1px solid #eef1ef;
  padding: 9px 0;
}

.ppdb-info-row:last-child {
  border-bottom: 0;
}

.ppdb-info-row span,
.ppdb-message span {
  color: var(--muted);
  font-weight: 800;
}

.ppdb-info-row strong {
  color: #202124;
  text-align: right;
  overflow-wrap: anywhere;
}

.ppdb-message {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  border-radius: 10px;
  background: #fff0f1;
  padding: 12px;
}

.ppdb-message strong {
  color: #202124;
  overflow-wrap: anywhere;
}

.ppdb-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eef1ef;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding-top: 12px;
}

@media (max-width: 780px) {
  .ppdb-card {
    padding: 20px;
  }

  .ppdb-card-head,
  .reg-number-panel,
  .ppdb-card-footer {
    display: grid;
  }

  .status-panel {
    justify-items: start;
  }

  .ppdb-card-grid {
    grid-template-columns: 1fr;
  }

  .ppdb-info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ppdb-info-row strong,
  .reg-number-panel strong {
    text-align: left;
  }
}

/* Green, blue, and school-photo theme */
:root {
  --green-950: #06251f;
  --green-900: #0a4639;
  --green-800: #0f7054;
  --green-700: #159064;
  --green-100: #dff4ea;
  --green-50: #f3fbf7;
  --blue-900: #0b3b5c;
  --blue-700: #146fa3;
  --blue-100: #e3f3fb;
  --gold-500: #1d8fbd;
  --gold-100: #e9f7ff;
  --soft: #f5faf8;
  --line: #d8e7e0;
  --shadow: 0 18px 42px rgba(6, 37, 31, 0.13);
}

body {
  background:
    linear-gradient(180deg, rgba(243, 251, 247, 0.96), rgba(255, 255, 255, 0.98)),
    #f5faf8;
  color: #14231f;
}

.site-header {
  border-bottom: 1px solid rgba(15, 112, 84, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(6, 37, 31, 0.08);
}

.brand-mark {
  border-color: rgba(0,0,0,0.08) !important;
  background: #fff !important;
  color: #111;
}

.brand strong,
.main-nav a {
  color: var(--green-950);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-700);
}

.main-nav .admin-link {
  background: var(--green-800);
  color: #fff;
  padding: 9px 15px;
}

.main-nav .admin-link:hover,
.main-nav .admin-link.active {
  background: var(--blue-700);
  color: #fff;
}

.btn,
.news-card a,
.calendar-row a,
.calendar-row button {
  background: var(--green-800);
  box-shadow: 0 10px 24px rgba(15, 112, 84, 0.2);
}

.btn:hover,
.news-card a:hover {
  background: var(--blue-700);
}

.btn.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--green-800);
}

.oxford-home,
.profile-page,
.program-page,
.contact-page {
  background:
    linear-gradient(180deg, rgba(245, 250, 248, 0.88), rgba(255, 255, 255, 0.97)),
    var(--hero-image);
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

.ox-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 58px;
  background:
    linear-gradient(180deg, rgba(6, 37, 31, 0.72), rgba(6, 37, 31, 0.56) 48%, rgba(245, 250, 248, 0.92)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.ox-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 71, 57, 0.22), rgba(20, 111, 163, 0.16));
  content: "";
  pointer-events: none;
}

.ox-hero > .ox-container,
.stats-glance > .ox-container {
  position: relative;
  z-index: 1;
}

.welcome-copy h1,
.welcome-copy p {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.welcome-copy p {
  color: rgba(255, 255, 255, 0.88);
}

.hero-slide {
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.carousel-nav {
  color: var(--green-800);
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  background: var(--blue-700);
}

.stats-glance {
  background:
    linear-gradient(135deg, rgba(6, 37, 31, 0.88), rgba(11, 59, 92, 0.78)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.stats-glance::before {
  background-image:
    linear-gradient(35deg, transparent 48%, rgba(255, 255, 255, 0.2) 49% 51%, transparent 52%),
    linear-gradient(120deg, transparent 48%, rgba(227, 243, 251, 0.22) 49% 51%, transparent 52%);
  opacity: 0.35;
}

.stat-box {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 12px;
  backdrop-filter: blur(8px);
}

.card,
.panel,
.form-panel,
.table-wrap,
.login-card {
  border-color: rgba(15, 112, 84, 0.15);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  border-color: rgba(20, 111, 163, 0.26);
  background: #fff;
  color: var(--blue-700);
}

.profile-hero-panel,
.program-hero-panel,
.contact-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(6, 37, 31, 0.84), rgba(11, 59, 92, 0.68)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow);
}

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

.profile-hero-panel h1,
.program-hero-panel h1,
.contact-hero-panel h1 {
  max-width: 760px;
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.profile-hero-panel p,
.program-hero-panel p,
.contact-hero-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.profile-identity-card,
.program-hero-badge {
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.profile-identity-card span,
.profile-identity-card small,
.program-hero-badge span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.profile-identity-card strong,
.program-hero-badge strong {
  display: block;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.1;
}

.profile-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -24px auto 28px;
  position: relative;
  z-index: 2;
}

.profile-summary-cards article {
  border: 1px solid rgba(15, 112, 84, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(6, 37, 31, 0.1);
  padding: 18px;
}

.profile-summary-cards span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-summary-cards strong {
  display: block;
  margin-top: 7px;
  color: var(--green-950);
}

.profile-main-stack {
  display: grid;
  gap: 18px;
}

.vision-card {
  border-left: 6px solid var(--green-800);
  background: linear-gradient(135deg, #fff, var(--green-50));
}

.mission-list,
.history-timeline {
  display: grid;
  gap: 12px;
}

.mission-item,
.history-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.mission-item span,
.history-step span,
.program-feature-card span,
.facility-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 900;
}

.mission-item p,
.history-step p {
  margin: 0;
  color: var(--muted);
}

.profile-side-card {
  overflow: hidden;
  align-self: start;
  padding: 0;
}

.profile-side-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.profile-side-card h3,
.profile-side-card p,
.profile-side-card .info-stack {
  margin-right: 20px;
  margin-left: 20px;
}

.profile-side-card .info-stack {
  margin-bottom: 20px;
}

.program-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.program-feature-card,
.facility-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 112, 84, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.program-feature-card h3,
.facility-card h3 {
  margin: 0;
  color: var(--green-950);
}

.program-feature-card p,
.facility-card p {
  margin: 0;
  color: var(--muted);
}

.program-band {
  background:
    linear-gradient(135deg, rgba(15, 112, 84, 0.1), rgba(20, 111, 163, 0.12)),
    #fff;
}

.program-split,
.program-bottom-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.ekskul-card {
  background: linear-gradient(135deg, #fff, var(--blue-100));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  border-radius: 999px;
  background: #fff;
  color: var(--green-900);
  font-weight: 800;
  padding: 9px 13px;
  box-shadow: 0 8px 18px rgba(6, 37, 31, 0.08);
}

.schedule-flow {
  counter-reset: schedule;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.schedule-flow li::before {
  counter-increment: schedule;
  content: counter(schedule);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-800);
  color: #fff;
  font-weight: 900;
}

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

.contact-info-card,
.social-panel {
  background: rgba(255, 255, 255, 0.94);
}

.social-panel p {
  margin-top: -4px;
  color: var(--muted);
}

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

.social-card {
  display: grid;
  gap: 5px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--green-50));
  color: var(--green-950);
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: var(--blue-700);
  box-shadow: 0 16px 30px rgba(20, 111, 163, 0.16);
  transform: translateY(-4px);
}

.social-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.social-card strong {
  color: var(--green-950);
}

.social-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ppdb-card {
  background: linear-gradient(135deg, #fff, var(--green-50));
}

.ppdb-card::after {
  border-color: rgba(20, 111, 163, 0.09);
}

.ppdb-card-ribbon,
.reg-number-panel {
  background: var(--green-800);
}

.ppdb-info-section h4 {
  color: var(--blue-700);
}

.ppdb-message {
  background: var(--blue-100);
}

.site-footer {
  background: linear-gradient(135deg, var(--green-950), var(--blue-900));
}

/* Clean full logo treatment */
.site-header {
  min-height: 82px;
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 60px !important;
  height: 60px !important;
  border: 1px solid rgba(15, 112, 84, 0.16) !important;
  border-radius: 50% !important;
  background: #fff !important;
  overflow: hidden;
  padding: 7px;
  box-shadow: 0 10px 24px rgba(6, 37, 31, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo {
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

/* PPDB schedule gate */
.ppdb-status-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  border: 1px solid rgba(15, 112, 84, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--green-50));
  box-shadow: var(--shadow);
  margin: 0 auto 24px;
  padding: 18px 20px;
}

.ppdb-status-panel h3,
.ppdb-status-panel p,
.ppdb-locked-panel h2,
.ppdb-locked-panel p {
  margin: 0;
}

.ppdb-status-panel p,
.ppdb-locked-panel p,
.ppdb-time-card small {
  color: var(--muted);
}

.ppdb-status-panel.upcoming {
  border-color: rgba(156, 107, 0, 0.28);
  background: linear-gradient(135deg, #fff, var(--gold-100));
}

.ppdb-status-panel.closed {
  border-color: rgba(179, 38, 30, 0.24);
  background: linear-gradient(135deg, #fff, #fff0f0);
}

.ppdb-locked-panel {
  display: grid;
  align-content: center;
  min-height: 340px;
  gap: 14px;
  border-color: rgba(15, 112, 84, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 251, 247, 0.96)),
    var(--hero-image, none);
}

.ppdb-time-card {
  display: grid;
  gap: 8px;
}

.ppdb-time-card small {
  display: block;
  line-height: 1.5;
}

/* Numberless cards, photo programs, full footer, and brand social icons */
.site-footer {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
}

.footer-inner {
  width: min(1240px, 90vw);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* Full-width header and footer bars */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-header {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-right: clamp(16px, 5vw, 72px) !important;
  padding-left: clamp(16px, 5vw, 72px) !important;
  border-radius: 0 !important;
}

.site-footer {
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Program schedule and facility showcase */
.program-showcase-section {
  padding-top: 30px;
  padding-bottom: 52px;
}

.program-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border-radius: 0 76px 76px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(241, 249, 255, 0.88)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 46px rgba(6, 37, 31, 0.08);
  padding: clamp(28px, 4vw, 50px);
}

.program-showcase::before,
.program-showcase::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.program-showcase::before {
  top: 26px;
  left: 90px;
  width: 56px;
  height: 92px;
  border: 8px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  transform: rotate(10deg);
}

.program-showcase::after {
  top: 0;
  right: 42px;
  width: 156px;
  height: 98px;
  opacity: 0.34;
  background-image: radial-gradient(var(--blue-700) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}

.routine-panel,
.facility-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.showcase-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.showcase-kicker {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px 7px 8px;
  box-shadow: 0 10px 24px rgba(6, 37, 31, 0.14);
}

.showcase-kicker.blue {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 10px 24px rgba(20, 111, 163, 0.16);
}

.showcase-kicker .program-line-icon {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  background: #fff;
  color: var(--green-800);
  padding: 5px;
  stroke: currentColor;
}

.showcase-kicker.blue .program-line-icon {
  color: var(--blue-700);
}

.showcase-heading h2 {
  position: relative;
  max-width: 720px;
  margin: 0;
  color: var(--green-950);
  font-size: clamp(2.4rem, 4.6vw, 4.7rem);
  line-height: 0.98;
}

.showcase-heading.blue h2 {
  color: var(--blue-900);
}

.showcase-heading h2::after {
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--green-800);
  margin-top: 14px;
  content: "";
}

.showcase-heading.blue h2::after {
  background: var(--blue-700);
}

.program-line-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.routine-list {
  display: grid;
  gap: 12px;
}

.routine-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  min-height: 80px;
  overflow: hidden;
  border: 1px solid rgba(15, 112, 84, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(6, 37, 31, 0.08);
  backdrop-filter: blur(10px);
}

.routine-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  box-shadow: 0 8px 18px rgba(6, 37, 31, 0.2);
  margin-left: 18px;
}

.routine-icon .program-line-icon {
  width: 28px;
  height: 28px;
}

.routine-item p {
  margin: 0;
  border-left: 1px solid rgba(15, 112, 84, 0.14);
  color: #415651;
  font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  line-height: 1.55;
  padding: 10px 18px;
}

.showcase-facility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.showcase-facility-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  min-height: 132px;
  border: 1px solid rgba(20, 111, 163, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(20, 111, 163, 0.11);
  backdrop-filter: blur(10px);
  padding: 18px;
}

.facility-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
}

.facility-icon .program-line-icon {
  width: 32px;
  height: 32px;
}

.showcase-facility-card > div {
  min-width: 0;
  border-left: 2px solid rgba(20, 111, 163, 0.22);
  padding-left: 16px;
}

.showcase-facility-card h3 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.18;
}

.showcase-facility-card p {
  margin: 0;
  color: #415d6b;
  font-size: 0.93rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .program-showcase {
    grid-template-columns: 1fr;
    border-radius: 0 54px 54px 0;
  }
}

@media (max-width: 680px) {
  .program-showcase {
    gap: 30px;
    border-radius: 0 34px 34px 0;
    padding: 24px 16px;
  }

  .showcase-heading h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .routine-item,
  .showcase-facility-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .routine-icon,
  .facility-icon {
    width: 44px;
    height: 44px;
    margin-left: 12px;
  }

  .showcase-facility-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mission-item,
.history-step {
  position: relative;
  display: block;
  padding-left: 44px;
}

.mission-item::before,
.history-step::before,
.schedule-item::before {
  position: absolute;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-800), var(--blue-700));
  box-shadow: 0 0 0 6px rgba(15, 112, 84, 0.1);
  content: "";
}

.mission-item::before,
.history-step::before {
  top: 21px;
}

.program-card-grid {
  align-items: stretch;
}

.program-feature-card {
  overflow: hidden;
  gap: 0;
  padding: 0;
}

.program-photo {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--green-100);
}

.program-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 37, 31, 0.05), rgba(6, 37, 31, 0.24));
  content: "";
}

.program-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.program-feature-card:hover .program-photo img,
.program-feature-card:focus-within .program-photo img {
  filter: saturate(1.08);
  transform: scale(1.04);
}

.program-feature-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.program-feature-body span {
  justify-self: start;
  width: auto;
  height: auto;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 6px 10px;
}

.schedule-flow {
  counter-reset: none;
}

.schedule-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 14px 14px 14px 44px;
}

.schedule-item::before {
  top: 22px;
}

.facility-card {
  position: relative;
  padding-left: 44px;
}

.facility-card::before {
  position: absolute;
  top: 23px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue-700);
  box-shadow: 0 0 0 6px var(--blue-100);
  content: "";
}

.social-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.social-card {
  justify-items: center;
  align-content: center;
  min-height: 142px;
  border-width: 1px;
  background: #fff;
  text-align: center;
  padding: 18px 14px;
}

.social-card .social-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  padding: 12px;
  color: #fff;
  fill: currentColor;
}

.social-card span {
  display: grid;
  width: auto;
  height: auto;
  max-width: 100%;
  gap: 3px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
}

.social-card strong,
.social-card small {
  display: block;
  max-width: 100%;
}

.social-card strong {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.15;
}

.social-card small {
  white-space: nowrap;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.social-card.facebook .social-logo {
  background: #1877f2;
}

.social-card.youtube .social-logo {
  background: #ff0000;
}

.social-card.instagram .social-logo {
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 70%, #515bd4);
}

.social-card.tiktok .social-logo {
  background: #111;
}

/* Profile story, vision, mission, and full content admin editor */
.history-spotlight {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 112, 84, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(227, 243, 251, 0.72)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.history-spotlight::after {
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  border: 28px solid rgba(20, 111, 163, 0.08);
  border-radius: 50%;
  content: "";
}

.profile-card-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 20px;
}

.profile-card-heading span {
  width: max-content;
  border: 1px solid rgba(20, 111, 163, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
}

.profile-card-heading h2,
.profile-card-heading h3 {
  margin: 0;
  color: var(--green-950);
  font-weight: 750;
  line-height: 1.16;
}

.profile-card-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.profile-card-heading.compact {
  margin-bottom: 16px;
}

.profile-card-heading.compact h3 {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.profile-belief-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.profile-belief-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.profile-belief-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 112, 84, 0.1), rgba(20, 111, 163, 0.12));
  content: "";
}

.vision-card.profile-belief-card {
  border-left: 0;
  background: linear-gradient(135deg, #fff, var(--green-50));
}

.vision-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  border-left: 4px solid var(--green-800);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-950);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
  font-weight: 650;
  line-height: 1.45;
  padding: 18px 20px;
}

.mission-card.profile-belief-card {
  background: linear-gradient(135deg, #fff, var(--blue-100));
}

.mission-card .mission-list,
.history-spotlight .history-timeline {
  position: relative;
  z-index: 1;
}

.mission-card .mission-item,
.history-spotlight .history-step {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  border-color: rgba(15, 112, 84, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(6, 37, 31, 0.05);
  padding: 16px 18px;
}

.mission-card .mission-item::before,
.history-spotlight .history-step::before {
  display: none;
  content: none;
}

.mission-card .mission-item p,
.history-spotlight .history-step p {
  color: #40514b;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.72;
}

.mission-card .mission-item {
  border-left: 4px solid var(--blue-700);
}

.history-spotlight .history-step {
  border-left: 4px solid var(--green-800);
}

.admin-content-stack {
  display: grid;
  gap: 18px;
}

.admin-edit-section {
  min-width: 0;
  border: 1px solid rgba(15, 112, 84, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--green-50));
  padding: 20px;
}

.admin-edit-section legend {
  border-radius: 8px;
  background: var(--green-800);
  color: #fff;
  font-weight: 900;
  padding: 8px 12px;
}

.admin-edit-section > p {
  margin: 4px 0 16px;
  color: var(--muted);
}

.admin-edit-section .form-grid {
  margin-top: 0;
}

.admin-edit-section textarea {
  min-height: 92px;
}

@media (max-width: 980px) {
  .profile-hero-panel,
  .program-hero-panel,
  .profile-layout,
  .program-split,
  .program-bottom-layout {
    grid-template-columns: 1fr;
  }

  .profile-summary-cards,
  .program-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .profile-belief-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 74px;
  }

  .brand-mark {
    width: 52px !important;
    height: 52px !important;
    padding: 6px;
  }

  .profile-hero-panel,
  .program-hero-panel,
  .contact-hero-panel {
    padding: 28px 18px;
  }

  .ppdb-status-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-summary-cards,
  .program-card-grid,
  .facility-grid,
  .social-card-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary-cards {
    margin-top: 16px;
  }

  .program-photo,
  .program-photo img {
    min-height: 190px;
  }
}
