/*
 * style.css — Stylesheet utama situs SMPN 26 Palembang.
 * Disusun dengan urutan: reset & token desain, komponen dasar (tombol,
 * navbar, hero), seksi konten (profil, SPMB, berita, kegiatan, kontak),
 * dasbor admin & manajemen, footer, animasi, lalu breakpoint responsif.
 */

/* ========================================
   CSS Reset / Normalize
   Penyetaraan box-sizing dan reset margin elemen blok-level.
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
  padding: 0;
}

/* ========================================
   Design Tokens (CSS Custom Properties)
   Google Store–inspired light palette.
   Token spacing, radii, palet warna, dan elevation diakses di seluruh
   stylesheet via var(--...) sehingga konsistensi visual terjaga.
======================================== */
:root {
  color-scheme: light;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-card: 30px;
  --radius-pill: 999px;

  /* Layout */
  --content-max: 1280px;
  --header-height: 62px;
  --section-space: clamp(4rem, 7vw, 5.5rem);
  --section-heading-space: clamp(2.25rem, 4vw, 3.25rem);
  --footer-bottom-spacing: clamp(1.5rem, 1.5vw, 1.5rem);

  /* Palette */
  --primary: #1967d2;
  --primary-soft: #e8f0fe;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --surface-strong: #ffffff;
  --text-primary: #191c1d;
  --text-secondary: #5f6368;
  --link: #1967d2;
  --border: rgba(25, 28, 29, 0.08);
  --border-strong: rgba(25, 28, 29, 0.14);
  --button-text: #191c1d;
  --button-border: #191c1d;
  --button-hover: rgba(25, 28, 29, 0.06);
  --filled-text: #ffffff;

  /* Elevation */
  --shadow-sm: 0 10px 28px rgba(25, 28, 29, 0.06);
  --shadow-md: 0 18px 48px rgba(25, 28, 29, 0.08);
  --shadow-focus: 0 0 0 3px rgba(138, 180, 248, 0.35);

  /* Hero full-width gradient (Google Store–style) */
  --hero-gradient: #ffffff;
}

/* ========================================
   Base Typography & Layout
======================================== */
body {
  background: #ffffff;
  color: var(--text-primary);
  font-family: "Google Sans", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
.hero__title {
  font-family: "Google Sans Flex", "Google Sans", Roboto, "Noto Sans", Arial, sans-serif;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

p,
li,
a,
button {
  font-size: 1rem;
}

a {
  color: var(--link);
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  opacity: 0.9;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.container {
  width: min(calc(100% - 32px), var(--content-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.section--compact {
  padding-block: var(--section-space);
}

.section--contact {
  padding-block: var(--section-space);
  background: #ffffff;
}

.section-label {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.section-heading {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--section-heading-space);
}

.section-heading--center {
  justify-items: center;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Buttons
   Komponen tombol dasar dan varian (filled, link, status loading).
======================================== */
.button,
.nav__toggle {
  min-height: 44px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--button-border);
  border-radius: var(--radius-pill);
  color: var(--button-text);
  padding: 12px 24px;
  background: transparent;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.button:hover {
  background: var(--button-hover);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button--filled {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--filled-text);
}

.button--filled:hover {
  background: color-mix(in srgb, var(--primary) 88%, #000);
  border-color: color-mix(in srgb, var(--primary) 88%, #000);
}

.button.is-loading {
  pointer-events: none;
  color: transparent;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--button-text);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.button.button--filled.is-loading::after {
  border-color: var(--filled-text);
  border-right-color: transparent;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.button-link:hover {
  opacity: 0.8;
}

.button-link::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* ========================================
   Header: Floating navbar overlay
   Navbar mengambang dengan blur, mendukung dropdown desktop & menu mobile.
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: var(--space-3);
  padding-bottom: 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% + 20px);
  background: transparent;
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
  padding: 7px 16px;
  border: 1px solid rgb(255, 255, 255);
  border-radius: var(--radius-pill);
  background: rgb(255, 255, 255);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.nav__brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-weight: 500;
  flex-shrink: 0;
}

.nav__brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav__brand-mark--footer {
  width: 52px;
  height: 52px;
}

.nav__brand-text {
  font-size: 0.95rem;
}

/* Mobile hamburger toggle */
.nav__toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
}

.nav__toggle:hover {
  background: var(--button-hover);
}

.nav__toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile menu panel (hidden until toggled) */
.js .nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: grid;
  gap: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.nav__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
}

.nav__links a,
.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-weight: 500;
}

.nav__dropdown-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-1);
}

.nav__dropdown-trigger {
  min-width: 0;
  text-align: left;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
}

.nav__dropdown-toggle:hover {
  background: var(--button-hover);
}

.nav__dropdown-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.nav__dropdown-menu {
  display: grid;
  gap: var(--space-1);
  max-height: 0;
  padding-left: var(--space-4);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    max-height 0.25s ease;
}

.nav__dropdown-item,
.nav__dropdown-menu a,
.nav__dropdown-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  appearance: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav__dropdown-menu a:active,
.nav__dropdown-menu button:active {
  background: transparent;
  color: var(--text-primary);
  opacity: 1;
}

.nav__dropdown-menu a:hover,
.nav__dropdown-menu a:focus-visible,
.nav__dropdown-menu a.is-active,
.nav__dropdown-menu button:hover,
.nav__dropdown-menu button:focus-visible {
  color: var(--text-primary);
  background: var(--button-hover);
}

.nav__item--dropdown.is-open .nav__dropdown-menu {
  max-height: 420px;
  padding-top: var(--space-1);
  opacity: 1;
  transform: translateY(0);
}

.nav__item--dropdown.is-open .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__login {
  width: 100%;
}

.nav__links a:hover,
.nav__links a.is-active,
.nav__dropdown-trigger:hover,
.nav__dropdown-trigger:focus-visible,
.nav__dropdown-trigger.is-active {
  color: var(--text-primary);
  background: var(--button-hover);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

body.menu-open .nav__toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav__toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   Hero Section: Full-width, edge-to-edge
   Slider gambar latar dengan judul besar dan kontrol prev/next.
======================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: max(80svh, 620px);
  display: grid;
  align-items: center;
  padding: clamp(7rem, 15vw, 10rem) var(--space-4) clamp(4.5rem, 10vw, 6.5rem);
  background: var(--hero-gradient);
  text-align: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease,
    transform 0.8s ease;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.62) 100%);
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  transform: translateX(-50%);
}

.hero__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hero__control:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: #ffffff;
}

.hero__control:active {
  transform: scale(0.97);
}

.hero__control svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
}

.hero__title {
  font-family: "Montserrat", "Google Sans Flex", "Google Sans", Roboto, "Noto Sans", Arial, sans-serif;
  display: grid;
  justify-items: center;
  gap: clamp(0.25rem, 1vw, 0.55rem);
  max-width: none;
  color: #000000;
  font-size: var(--hero-title-primary-size, clamp(2.7rem, 10vw, 6.2rem));
  line-height: 0.88;
  letter-spacing: -0.075em;
  margin: 0;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.hero__title-line {
  display: block;
  font-weight: 800;
}

.hero__title-line--secondary {
  font-size: var(--hero-title-secondary-size, clamp(1.7rem, 5.6vw, 3.55rem));
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero__copy {
  max-width: 42rem;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.home-page {
  --home-section-space: var(--section-space);
  --home-section-space-tight: 0px;
  --home-statistik-top-space: var(--home-section-space);
  --home-section-heading-space: var(--section-heading-space);
  --hero-title-primary-size: clamp(3.2rem, 11vw, 7rem);
  --hero-title-secondary-size: clamp(1.35rem, 4.6vw, 2.75rem);
}

.home-page .hero {
  min-height: max(74svh, 580px);
  padding: clamp(6.6rem, 13vw, 9rem) var(--space-4) clamp(2rem, 4.5vw, 3rem);
}

.home-page .section,
.home-page .section--compact,
.home-page .section--contact {
  padding-top: var(--home-section-space-tight);
  padding-bottom: var(--home-section-space);
}

.home-page .section-heading {
  margin-bottom: var(--home-section-heading-space);
}

.home-page #statistik {
  padding-top: var(--home-statistik-top-space);
}

.home-page .stat-card,
.home-page .mission-card,
.home-page .news-card,
.home-page .gallery-item,
.home-page .spmb-banner,
.home-page .contact-shell {
  box-shadow: none;
}

.home-page .stat-card:hover,
.home-page .mission-card:hover,
.home-page .news-card:hover,
.home-page .gallery-item:hover,
.home-page .spmb-banner:hover,
.home-page .spmb-banner:focus-within,
.home-page .contact-shell:hover,
.home-page .contact-shell:focus-within {
  box-shadow: none;
}

/* ========================================
   Page Hero & History Page
   Hero internal halaman (breadcrumb + judul) dan tata letak halaman Sejarah
   dengan sidebar info sekolah + linimasa.
======================================== */
.page-hero {
  position: relative;
  min-height: clamp(340px, 56vh, 450px);
  display: grid;
  align-items: end;
  padding: clamp(6.15rem, 11vw, 7.75rem) 0 clamp(2rem, 4vw, 2.7rem);
  overflow: hidden;
}

.page-hero__media,
.page-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__media img {
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.92) 100%),
    linear-gradient(90deg, rgba(25, 28, 29, 0.28) 0%, rgba(25, 28, 29, 0.08) 36%, rgba(25, 28, 29, 0) 75%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-3);
  max-width: 44rem;
  color: var(--text-primary);
}

.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(25, 28, 29, 0.76);
  font-weight: 500;
}

.page-hero__breadcrumb span:last-child {
  color: var(--text-primary);
}

.page-hero__content h1 {
  font-family: "Montserrat", "Google Sans Flex", "Google Sans", Roboto, "Noto Sans", Arial, sans-serif;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.22em;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
}

.page-hero__title-strong {
  font-weight: 500;
}

.page-hero__title-regular {
  font-weight: 300;
  font-style: italic;
}

.page-hero__lead {
  max-width: 42rem;
  color: rgba(25, 28, 29, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

.history-section {
  position: relative;
  margin-top: 0;
  z-index: 1;
}

.history-layout {
  display: grid;
  gap: var(--space-5);
}

.history-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.history-article {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.history-article__header {
  display: grid;
  gap: var(--space-2);
}

.history-article__content {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.history-article__content p {
  color: var(--text-secondary);
  font-size: 0.985rem;
  line-height: 1.62;
}

.history-sidebar {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.history-panel {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-card);
  background: #ffffff;
  color: var(--text-primary);
}

.history-sidebar > .history-card:first-child .history-panel {
  min-height: clamp(360px, 34vw, 392px);
}

.history-panel__title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
}

.history-panel__title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 103, 210, 0.14);
}

.history-info-list {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.history-info-list li {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.45;
}

.history-info-list span,
.history-info-list strong {
  min-width: 0;
}

.history-info-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.history-info-list strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.history-timeline {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.history-sidebar > .history-card:last-child .history-timeline {
  align-content: start;
}

.history-timeline li {
  position: relative;
  display: grid;
  gap: var(--space-1);
  padding-left: 24px;
}

.history-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #ffffff;
}

.history-timeline li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.15rem;
  bottom: -1.2rem;
  width: 2px;
  background: rgba(25, 103, 210, 0.18);
}

.history-timeline li:last-child::after {
  display: none;
}

.history-timeline strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.history-timeline p {
  color: var(--text-secondary);
  font-size: 0.89rem;
  line-height: 1.55;
}

/* ========================================
   Informasi Umum SPMB
   Tata letak dua kolom (artikel utama, kontak, jalur pendaftaran).
======================================== */
.spmb-info-section {
  position: relative;
  z-index: 1;
}

.spmb-info-layout {
  display: grid;
  gap: var(--space-5);
  grid-template-areas:
    "article"
    "contact"
    "routes";
  align-items: start;
}

.spmb-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.spmb-card--article {
  grid-area: article;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.spmb-card--contact {
  grid-area: contact;
  padding: clamp(1.5rem, 3vw, 2rem);
  align-self: start;
}

.spmb-card--routes {
  grid-area: routes;
  padding: clamp(1.5rem, 3.2vw, 2rem);
}

.spmb-article {
  display: grid;
  gap: var(--space-4);
}

.spmb-article__header {
  display: grid;
  gap: var(--space-2);
}

.spmb-article__header h2,
.spmb-routes__header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.spmb-article__content {
  display: grid;
  gap: var(--space-4);
}

.spmb-article__content p,
.spmb-route__content p {
  color: var(--text-secondary);
  font-size: 0.985rem;
  line-height: 1.62;
}

.spmb-article__source {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.spmb-article__source a {
  color: var(--primary);
}

.spmb-contact {
  display: grid;
  gap: var(--space-4);
}

.spmb-contact-list {
  display: grid;
  gap: var(--space-2);
}

.spmb-contact-list li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-3);
  align-items: start;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.spmb-contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spmb-contact-list strong,
.spmb-contact-list a {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  justify-self: end;
  overflow-wrap: anywhere;
}

.spmb-contact-list strong {
  display: grid;
  gap: 2px;
}

.spmb-contact-list strong span {
  display: block;
}

.spmb-contact-list a {
  text-decoration: none;
}

.spmb-routes {
  display: grid;
  gap: var(--space-5);
}

.spmb-routes__header {
  display: grid;
  gap: var(--space-2);
}

.spmb-route-list {
  display: grid;
}

.spmb-route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.spmb-route:first-child {
  padding-top: 0;
  border-top: 0;
}

.spmb-route:last-child {
  padding-bottom: 0;
}

.spmb-route__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(25, 103, 210, 0.08);
  color: var(--primary);
}

.spmb-route__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spmb-route__content {
  display: grid;
  gap: var(--space-1);
}

.spmb-route__title {
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 600;
}

.spmb-route__meta {
  display: grid;
  gap: var(--space-2);
  align-items: center;
  justify-items: end;
  min-width: 118px;
}

.spmb-route__quota {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.spmb-route__quota strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ========================================
   Persyaratan Pendaftaran SPMB
   Tabel persyaratan dengan kolom kategori jalur pendaftaran.
======================================== */
.spmb-requirements-section {
  position: relative;
  z-index: 1;
}

.requirements-layout {
  align-items: start;
}

.requirements-card {
  display: grid;
  padding: 0;
}

.requirements-card__inner {
  display: grid;
  gap: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.requirements-card__header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.requirements-table-wrap {
  overflow-x: auto;
}

.requirements-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.requirements-table thead th {
  padding: 0 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-strong);
  color: rgba(95, 99, 104, 0.82);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.requirements-table thead th:first-child,
.requirements-table tbody td:first-child {
  width: 34px;
  padding-left: 0.7rem;
  text-align: left;
}

.requirements-table thead th:nth-child(2),
.requirements-table tbody td:nth-child(2) {
  width: auto;
  text-align: left;
}

.requirements-table thead th:nth-child(n + 3),
.requirements-table tbody td:nth-child(n + 3) {
  width: 72px;
  text-align: center;
}

.requirements-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.requirements-table tbody tr:last-child {
  border-bottom: 0;
}

.requirements-table tbody td {
  padding: 0.9rem 0.75rem;
  vertical-align: top;
}

.requirements-table tbody td:first-child {
  color: rgba(95, 99, 104, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
}

.requirements-table tbody td:nth-child(2) {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.58;
}

.requirements-table tbody td:nth-child(n + 3) {
  vertical-align: middle;
}

.requirements-table tbody tr:last-child td {
  padding-bottom: 0;
}

.requirements-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
}

.requirements-mark--muted {
  color: rgba(95, 99, 104, 0.32);
}

.requirements-source {
  margin-top: var(--space-4);
}

/* ========================================
   Jadwal Pelaksanaan SPMB
======================================== */
.spmb-schedule-section {
  position: relative;
  z-index: 1;
}

.schedule-layout {
  display: grid;
}

.schedule-card {
  display: grid;
  width: 100%;
  padding: 0;
}

.schedule-card__inner {
  display: grid;
  gap: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table thead th:first-child,
.schedule-table tbody td:first-child {
  width: 34px;
  padding-left: 0.7rem;
  text-align: left;
}

.schedule-table thead th:nth-child(2),
.schedule-table tbody td:nth-child(2) {
  width: auto;
  text-align: left;
}

.schedule-table thead th:nth-child(3),
.schedule-table tbody td:nth-child(3) {
  width: 220px;
  text-align: left;
}

.schedule-table tbody td:first-child {
  font-weight: 500;
}

.schedule-table tbody td:nth-child(3) {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.58;
  vertical-align: top;
}

/* ========================================
   Prosedur Pendaftaran SPMB
======================================== */
.spmb-procedure-section {
  position: relative;
  z-index: 1;
}

.procedure-card__inner {
  gap: var(--space-4);
}

.procedure-table thead th:nth-child(2),
.procedure-table tbody td:nth-child(2) {
  width: auto;
  text-align: left;
}

/* ========================================
   Hasil Seleksi SPMB
   Tab jalur, viewer PDF, dan tombol unduh berkas hasil seleksi.
======================================== */
.spmb-results-section {
  position: relative;
  z-index: 1;
}

.results-shell {
  width: 100%;
}

.results-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.results-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.results-tab:hover {
  background: var(--button-hover);
}

.results-tab:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.results-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--filled-text);
}

.results-tab.is-active:hover {
  background: color-mix(in srgb, var(--primary) 88%, #000);
  border-color: color-mix(in srgb, var(--primary) 88%, #000);
}

.results-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
}

.results-card__inner {
  display: grid;
  gap: 0;
  padding: 0;
}

.results-viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: clamp(520px, 72vw, 760px);
  overflow: hidden;
  border-radius: inherit;
  background: #ffffff;
}

.results-viewer__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


@media print {
  .results-viewer {
    height: auto;
    border: 0;
  }
}

.results-shell__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.results-download {
  width: 136.22px;
  min-width: 136.22px;
}

.supporting-docs__inner {
  display: grid;
  gap: var(--space-4);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.requirements-supporting-card .supporting-docs__inner {
  padding-bottom: 0;
}

.supporting-docs__list {
  display: grid;
}

.supporting-docs__meta {
  display: grid;
  gap: var(--space-2);
}

.supporting-docs__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.supporting-docs__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.supporting-docs__item:last-child {
  padding-bottom: 0;
}

.supporting-docs__item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.supporting-docs__download {
  min-width: 92px;
  min-height: 34px;
  padding: 8px 16px;
  border-color: var(--primary);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* ========================================
   Struktur Organisasi
======================================== */
.org-section {
  position: relative;
  z-index: 1;
  padding-block: var(--section-space);
}

.org-shell {
  width: 100%;
  display: grid;
  gap: clamp(1rem, 2vw, 1.25rem);
}

.org-board {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  min-height: clamp(470px, 50vw, 640px);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: #ffffff;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.org-board__media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.org-board__image {
  display: block;
  width: min(100%, 1080px);
  max-width: 100%;
  height: auto;
}

.org-shell__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.org-board__download {
  width: 136.22px;
  min-width: 136.22px;
}

/* ========================================
   Berita Sekolah: Search + list
======================================== */
.berita-section {
  position: relative;
  z-index: 1;
}

.berita-search {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 100%;
}

.berita-search__icon {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transform: translateY(-50%);
  pointer-events: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.berita-search__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 22px 14px 52px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.berita-search__input::placeholder {
  color: var(--text-secondary);
}

.berita-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.berita-search__input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.berita-grid .news-card[hidden] {
  display: none;
}

.berita-empty {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  text-align: center;
}

/* ========================================
   Kegiatan Sekolah: Search + list
======================================== */
.kegiatan-section {
  position: relative;
  z-index: 1;
}

.kegiatan-search {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 100%;
}

.kegiatan-search__icon {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transform: translateY(-50%);
  pointer-events: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kegiatan-search__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 22px 14px 52px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.kegiatan-search__input::placeholder {
  color: var(--text-secondary);
}

.kegiatan-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.kegiatan-search__input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.kegiatan-grid .gallery-item[hidden] {
  display: none;
}

.kegiatan-empty {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  text-align: center;
}

/* ========================================
   Berita Sekolah: Detail modal
   Dialog detail artikel, di-trigger dari kartu berita pada beranda & arsip.
======================================== */
.news-modal {
  width: min(calc(100% - 32px), 820px);
  max-width: 820px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  overflow: visible;
}

.news-modal[open] {
  display: grid;
}

.news-modal::backdrop {
  background: rgba(255, 255, 255, 0.62);
}

.news-modal__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(25, 28, 29, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(25, 28, 29, 0.14);
  overflow: hidden;
  max-height: calc(100svh - 32px);
  animation: news-modal-in 0.28s ease;
}

.news-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  box-shadow: 0 10px 24px rgba(25, 28, 29, 0.12);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.news-modal__close:hover {
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(25, 28, 29, 0.16);
}

.news-modal__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
}

.news-modal__media {
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
}

.news-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal__content {
  min-height: 0;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-5) var(--space-8);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.news-modal__date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
}

.news-modal__title {
  width: min(100%, 40rem);
  margin-inline: auto;
  font-size: clamp(1.2rem, 0.98rem + 0.55vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
}

.news-modal__body {
  display: grid;
  gap: var(--space-4);
  width: min(100%, 37rem);
  margin-inline: auto;
}

.news-modal__body p {
  color: var(--text-primary);
  line-height: 1.6;
}

@keyframes news-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================
   Guru dan Staf: Directory with filter
======================================== */
.staff-section {
  position: relative;
  z-index: 1;
}

.staff-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.staff-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.staff-filter:hover {
  background: var(--button-hover);
}

.staff-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--filled-text);
}

.staff-filter.is-active:hover {
  background: color-mix(in srgb, var(--primary) 88%, #000);
  border-color: color-mix(in srgb, var(--primary) 88%, #000);
}

.staff-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-card {
  display: grid;
  grid-template-rows: auto auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
}

.staff-card[hidden] {
  display: none;
}

.staff-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.staff-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card__body {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-4) var(--space-5);
  text-align: center;
}

.staff-card__name {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.staff-card__role {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* ========================================
   Statistik Sekolah
   5 kartu, ikon dua warna (primer + teks utama)
======================================== */
.stats-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.stat-card {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  backdrop-filter: blur(12px);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.stat-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.stat-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card__value {
  color: var(--text-primary);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-card__label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   Visi & Misi (Profil)
======================================== */
.mission-grid {
  display: grid;
  gap: var(--space-5);
}

.mission-card {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.mission-card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
}

.mission-card__copy,
.mission-card__list li {
  color: var(--text-secondary);
}

.mission-card__list {
  display: grid;
  gap: var(--space-3);
}

.mission-card__list li {
  position: relative;
  padding-left: 20px;
}

.mission-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ========================================
   Berita Sekolah: News cards grid
======================================== */
.news-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.news-card {
  display: grid;
  gap: 0;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-soft);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__body {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  align-content: start;
}

.news-card__date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.news-card__excerpt {
  color: var(--text-secondary);
}

/* ========================================
   Kegiatan Sekolah: Gallery grid w/ hover
======================================== */
.gallery-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
  margin: 0;
  background: var(--surface-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(25, 28, 29, 0) 0%,
    rgba(25, 28, 29, 0.7) 100%
  );
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item__caption h3 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-item__date {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin-bottom: var(--space-1);
}

/* ========================================
   SPMB Banner: Pengumuman utama + CTA
======================================== */
.spmb-banner {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  align-items: stretch;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.spmb-banner:hover,
.spmb-banner:focus-within {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.spmb-banner__media {
  position: relative;
  min-height: clamp(260px, 52vw, 360px);
  align-self: stretch;
  overflow: hidden;
  background: #ffffff;
}

.spmb-banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.spmb-banner__content {
  display: grid;
  align-content: center;
  gap: var(--space-4);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.spmb-banner__content h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
}

.spmb-banner__content p:not(.section-label) {
  color: var(--text-secondary);
}

.spmb-banner__list {
  display: grid;
  gap: var(--space-3);
}

.spmb-banner__list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
}

.spmb-banner__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ========================================
   Kontak Section: Form + info (bg minimal)
======================================== */
.contact-shell {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-shell:hover,
.contact-shell:focus-within {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.contact-shell__intro {
  display: grid;
  gap: var(--space-4);
}

.contact-shell__lead {
  color: var(--text-secondary);
}

.contact-points {
  display: grid;
  gap: var(--space-3);
}

.contact-points li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.contact-link {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.contact-form__grid {
  display: grid;
  gap: var(--space-4);
}

.form-field {
  display: grid;
  gap: var(--space-2);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text-primary);
  padding: 12px 14px;
  font-weight: 400;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

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

.form-field input::placeholder,
.form-field textarea::placeholder,
.form-note {
  color: var(--text-secondary);
}

.form-note {
  margin: 0;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #d93025;
}

.form-error {
  min-height: 1.25rem;
  color: #d93025;
  font-size: 0.875rem;
  font-weight: 400;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.contact-form__status {
  min-height: 1.5rem;
  color: var(--primary);
  font-weight: 500;
}

/* ========================================
   Login Page: Centered authentication card
   Tampilan kartu login admin yang dipusatkan di layar.
======================================== */
.login-page {
  min-height: 100svh;
  background: #ffffff;
}

.login-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 64px) var(--space-4);
}

.login-card {
  width: min(calc(100vw - 32px), 320px);
  min-height: 332px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 23px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
}

.login-card__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.login-card__title {
  margin-top: var(--space-4);
  color: var(--text-primary);
  font-family: "Google Sans Flex", "Google Sans", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

.login-form {
  width: 100%;
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.login-field {
  display: grid;
  gap: var(--space-2);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.login-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.login-field input:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.login-form__submit {
  justify-self: center;
  min-width: 104px;
  min-height: 40px;
  padding: 10px 24px;
}

.login-form__submit:hover {
  border-color: color-mix(in srgb, var(--primary) 88%, #000);
  background: color-mix(in srgb, var(--primary) 88%, #000);
}

@media (min-width: 1024px) {
  .login-card {
    width: min(calc(100vw - 48px), 420px);
    min-height: 410px;
    padding: 38px 40px 36px;
    border-radius: 22px;
  }

  .login-card__logo {
    width: 64px;
    height: 64px;
  }

  .login-card__title {
    margin-top: var(--space-5);
    font-size: 1.5rem;
  }

  .login-form {
    gap: var(--space-5);
    margin-top: var(--space-7);
  }

  .login-field input {
    min-height: 46px;
    padding-inline: 14px;
  }

  .login-form__submit {
    min-width: 122px;
    min-height: 44px;
    padding-inline: 28px;
  }
}

/* ========================================
   Admin Dashboard
   Tata letak dasbor admin: kartu statistik, panel pesan, dan log aktivitas.
======================================== */
.admin-dashboard-page {
  min-height: 100svh;
  background: #ffffff;
  color: var(--text-primary);
}

.admin-dashboard-page h1,
.admin-dashboard-page h2,
.admin-dashboard-page h3 {
  letter-spacing: 0;
}

.dashboard-main {
  padding-block: calc(var(--header-height) + 88px) 60px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 20px;
}

.dashboard-panel {
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #ffffff;
}

.dashboard-avatar,
.dashboard-activity__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dce8ff;
  color: #3568ff;
  flex: 0 0 auto;
}

.admin-dashboard-page .dashboard-stats .stat-card {
  box-shadow: none;
  transform: none;
  transition: none;
}

.admin-dashboard-page .dashboard-stats .stat-card *,
.admin-dashboard-page .dashboard-stats .stat-card::before,
.admin-dashboard-page .dashboard-stats .stat-card::after {
  animation: none;
  transition: none;
}

.admin-dashboard-page .dashboard-stats .stat-card:hover,
.admin-dashboard-page .dashboard-stats .stat-card:focus-within {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 22px;
  margin-top: 26px;
}

.dashboard-panel {
  overflow: hidden;
}

.dashboard-panel__header {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-strong);
}

.dashboard-panel__header h2 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.dashboard-message,
.dashboard-activity {
  display: grid;
  align-items: start;
  border-bottom: 1px solid var(--border-strong);
}

.dashboard-message:last-child,
.dashboard-activity:last-child {
  border-bottom: 0;
}

.dashboard-message {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 124px;
  padding: 18px 20px;
}

.dashboard-avatar {
  width: 36px;
  height: 36px;
  margin-top: 1px;
  font-size: 0.875rem;
  font-weight: 500;
}

.dashboard-message__body {
  min-width: 0;
}

.dashboard-message__topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
}

.dashboard-message__sender,
.dashboard-message__topline time {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
}

.dashboard-message__email {
  margin-left: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
  word-break: break-word;
}

.dashboard-message__topline time {
  white-space: nowrap;
}

.dashboard-message h3 {
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.dashboard-message p:not(.dashboard-message__sender) {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.985rem;
  font-weight: 400;
  line-height: 1.55;
}

.dashboard-message__body p + p {
  margin-top: 14px;
}

.dashboard-activity {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 100px;
  padding: 18px 26px;
}

.dashboard-activity__icon {
  width: 36px;
  height: 36px;
  margin-top: 1px;
}

.dashboard-activity__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dashboard-activity__body p,
.dashboard-activity__body time {
  font-size: 0.985rem;
  line-height: 1.45;
}

.dashboard-activity__body p {
  color: var(--text-primary);
  font-weight: 400;
}

.dashboard-activity__body time {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ----- Manajemen Halaman: shared layout & form components ----- */
.manajemen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.manajemen-column {
  display: grid;
  gap: 24px;
  align-content: start;
}

.dashboard-panel__header--with-action {
  justify-content: space-between;
  gap: var(--space-3);
}

.manajemen-panel__body {
  display: grid;
  gap: 20px;
  padding: 22px 24px 24px;
}

.manajemen-panel__body[hidden] {
  display: none;
}

.banner-dropzone {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 20px 30px;
  border: 2px dashed rgba(25, 28, 29, 0.18);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.banner-dropzone:hover,
.banner-dropzone:focus-visible {
  border-color: var(--primary);
}

.banner-dropzone.is-dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.banner-dropzone__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
}

.banner-dropzone__icon svg {
  width: 100%;
  height: 100%;
}

.banner-dropzone__text {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.banner-dropzone__browse {
  color: var(--primary);
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.banner-dropzone__browse:hover {
  text-decoration: underline;
}

.banner-dropzone__support {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.banner-files:empty {
  display: none;
}

.banner-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #ffffff;
}

.banner-file__thumb {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-soft);
}

.banner-file__thumb svg,
.banner-file__thumb img {
  width: 100%;
  height: 100%;
  display: block;
}

.banner-file__icon {
  padding: 9px;
  color: var(--primary);
}

.banner-file__thumb img {
  object-fit: cover;
}

.banner-file__info {
  min-width: 0;
}

.banner-file__name {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-file__size {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.3;
}

.banner-file__remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
}

.banner-file__remove svg {
  width: 20px;
  height: 20px;
}

.banner-file__remove:hover {
  color: var(--text-primary);
  background: var(--button-hover);
}

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

.stat-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.stat-row__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.stat-row__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-row__label {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.3;
}

.stat-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-counter__btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s ease;
}

.stat-counter__btn:hover {
  background: var(--button-hover);
}

.stat-counter__input {
  width: 64px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stat-counter__input::-webkit-outer-spin-button,
.stat-counter__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stat-counter__input:focus {
  outline: none;
  border-color: var(--primary);
}

.manajemen-textarea,
.misi-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
}

.manajemen-textarea {
  min-height: 200px;
  resize: vertical;
}

.manajemen-textarea:focus,
.misi-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.misi-list,
.info-list,
.tonggak-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.info-list,
.tonggak-list {
  gap: 0;
}

.misi-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.info-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.22fr) minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  grid-template-areas:
    "label value remove";
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  contain: layout paint;
}

.info-item:first-child {
  padding-top: 0;
}

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

.info-field,
.tonggak-item__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.info-field__label,
.tonggak-item__label {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.info-field > .misi-input,
.tonggak-item__field > .misi-input {
  min-width: 0;
  max-width: 100%;
}

.info-field--label {
  grid-area: label;
}

.info-field--value {
  grid-area: value;
}

.tonggak-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.22fr) minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  grid-template-areas:
    "tahun deskripsi remove";
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  contain: layout paint;
}

.tonggak-item:first-child {
  padding-top: 0;
}

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

.tonggak-item__head {
  display: grid;
  place-items: center;
  grid-area: remove;
  align-self: center;
  justify-self: end;
}

.tonggak-item__field--tahun {
  grid-area: tahun;
  min-width: 0;
}

.tonggak-item__field--deskripsi {
  grid-area: deskripsi;
  min-width: 0;
}

.misi-item__remove,
.info-item__remove,
.tonggak-item__remove {
  color: var(--text-secondary);
}

.info-item__remove {
  grid-area: remove;
  align-self: center;
  justify-self: end;
}

.misi-item__remove:hover,
.info-item__remove:hover,
.tonggak-item__remove:hover {
  color: var(--text-primary);
}

@media (max-width: 767px) {
  .info-item,
  .tonggak-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    row-gap: 12px;
  }

  .info-item {
    grid-template-areas:
      "label remove"
      "value value";
  }

  .tonggak-item {
    grid-template-areas:
      "tahun remove"
      "deskripsi deskripsi";
  }

  .info-item__remove,
  .tonggak-item__head {
    align-self: center;
  }

  .info-field > .misi-input,
  .tonggak-item__field > .misi-input {
    font-size: 1rem;
    line-height: 1.35;
    min-height: 48px;
  }
}

.manajemen-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
}

.manajemen-add svg {
  width: 16px;
  height: 16px;
}

.manajemen-table-wrapper {
  overflow-x: auto;
  padding: 4px 16px 16px;
}

.manajemen-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.manajemen-table th,
.manajemen-table td {
  padding: 18px 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.manajemen-table th:first-child,
.manajemen-table td:first-child {
  padding-left: 8px;
}

.manajemen-table th:last-child,
.manajemen-table td:last-child {
  padding-right: 8px;
}

.manajemen-table thead th {
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-top: 14px;
  padding-bottom: 14px;
}

.manajemen-table tbody td {
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}

.manajemen-table tbody tr:last-child td {
  border-bottom: 0;
}

.manajemen-table__thumb {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #dce8ff;
  overflow: hidden;
  vertical-align: middle;
}

.manajemen-table__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manajemen-table__truncate {
  max-width: 280px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.manajemen-table__action-col {
  width: 1%;
  white-space: nowrap;
}

.manajemen-table__no-col,
.manajemen-table__no-cell {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.manajemen-table__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.manajemen-table__action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text-primary);
  transition: color 0.2s ease, background 0.2s ease;
}

.manajemen-table__action:hover {
  background: var(--button-hover);
}

.manajemen-table__action svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-content-grid {
    grid-template-columns: minmax(0, 2.05fr) minmax(360px, 1fr);
    align-items: start;
  }

  .dashboard-panel--messages,
  .dashboard-panel--activity {
    min-height: 461px;
  }

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

@media (max-width: 639px) {
  .dashboard-main {
    padding-top: calc(var(--header-height) + 42px);
  }

  .dashboard-message,
  .dashboard-activity {
    padding-inline: 16px;
  }

  .dashboard-message__topline {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ========================================
   Site Footer: White bg, dark text
   Footer dengan empat kolom: brand, quicklinks, info SPMB, dan kontak.
======================================== */
.site-footer {
  background: #ffffff;
  color: var(--text-secondary);
  padding-top: var(--section-space);
  padding-bottom: var(--footer-bottom-spacing);
  border-top: 1px solid var(--border);
}

.site-footer__brand {
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.site-footer__brand .nav__brand {
  color: var(--text-primary);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}

.site-footer__column {
  display: grid;
  gap: var(--space-4);
  width: 100%;
}

.site-footer__column--quicklinks {
  max-width: 13rem;
}

.site-footer__column--spmb {
  max-width: 14rem;
}

.site-footer__column--contact {
  max-width: 19rem;
}

.site-footer__column h2 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}

.site-footer__column ul {
  display: grid;
  gap: var(--space-3);
}

.site-footer__column a {
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.site-footer__column a:hover {
  color: var(--text-primary);
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-footer__social a:hover {
  color: var(--primary);
  background: var(--button-hover);
  border-color: var(--border-strong);
  opacity: 1;
}

.site-footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.site-footer__bottom p {
  margin: 0;
}

/* ========================================
   Motion: reveal animation
   Animasi fade + translate untuk elemen .reveal saat masuk viewport.
   Dikendalikan oleh IntersectionObserver di script.js.
======================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Responsive Breakpoints
   Penyesuaian grid, navbar, modal, dan tipografi untuk tiap ukuran layar.
======================================== */
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 48px), var(--content-max));
  }

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

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

  .spmb-banner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .spmb-banner__media {
    min-height: clamp(360px, 34vw, 460px);
  }

  .contact-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .contact-form {
    padding-top: 0;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: space-between;
  }

  .site-footer__column--contact {
    grid-column: 2;
    justify-self: end;
  }

  .history-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    align-items: start;
  }

  .history-sidebar {
    position: static;
    top: auto;
    height: auto;
    grid-template-rows: none;
    align-content: start;
  }

  .spmb-info-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    grid-template-areas:
      "article contact"
      "routes contact";
  }

  .news-modal {
    width: min(calc(100% - 48px), 820px);
  }

  .news-modal__content {
    padding: var(--space-6) clamp(2rem, 5vw, 3rem) var(--space-8);
  }
}

@media (min-width: 900px) and (max-width: 1023px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 11.5rem) minmax(0, 12.5rem) minmax(0, 16rem);
    justify-content: space-between;
    gap: var(--space-5);
  }

  .site-footer__column--contact {
    grid-column: auto;
    justify-self: end;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .site-footer__column--contact {
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 959px) {
  .history-info-list li {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .history-info-list strong {
    justify-self: start;
    text-align: left;
  }

  .spmb-contact-list li {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .spmb-contact-list strong,
  .spmb-contact-list a {
    justify-self: start;
    text-align: left;
  }

  .supporting-docs__item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .supporting-docs__download {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .spmb-route {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .spmb-route__meta {
    grid-column: 2;
    justify-items: start;
    margin-top: var(--space-1);
  }

  .requirements-table {
    min-width: 640px;
  }

  .schedule-table {
    min-width: 640px;
  }

  .results-viewer {
    height: 540px;
  }


}

@media (min-width: 1024px) {
  .news-modal {
    width: min(calc(100% - 96px), 700px);
    max-width: 700px;
  }

  .news-modal__panel {
    max-height: calc(100svh - 72px);
  }

  /* Desktop navbar: logo left, links centered, nothing right */
  .nav__toggle {
    display: none;
  }

  .nav__menu,
  .js .nav__menu {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 1;
    align-items: center;
    gap: var(--space-5);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
  }

  .nav__dropdown-toggle {
    display: none;
  }

  .nav__dropdown-head {
    display: block;
  }

  .nav__item--dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
  }

  .nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    min-width: 272px;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: visible;
    max-height: none;
    transform: translateY(10px);
  }

  .nav__dropdown-menu a,
  .nav__dropdown-menu button {
    min-height: 44px;
  }

  .nav__dropdown-menu--wide {
    min-width: 320px;
  }

  .nav__item--dropdown:focus-within .nav__dropdown-menu,
  .nav__item--dropdown.is-open .nav__dropdown-menu {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__item--dropdown:focus-within .nav__dropdown-trigger,
  .nav__item--dropdown.is-open .nav__dropdown-trigger {
    color: var(--text-primary);
    background: var(--button-hover);
  }

  .nav__login {
    width: auto;
    justify-self: end;
  }

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

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

  .home-page [data-home-news-grid] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .site-footer__grid {
    grid-template-columns: minmax(0, 13rem) minmax(0, 14rem) minmax(0, 19rem);
    justify-content: space-between;
  }

  .site-footer__column--contact {
    grid-column: auto;
  }
}

@media (max-width: 639px) {
  .news-modal {
    width: calc(100% - 24px);
  }

  .news-modal__panel {
    border-radius: var(--radius-lg);
    max-height: calc(100svh - 24px);
  }

  .news-modal__close {
    top: var(--space-3);
    right: var(--space-3);
    width: 36px;
    height: 36px;
  }

  .news-modal__media {
    aspect-ratio: 4 / 3;
  }

  .news-modal__content {
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .news-modal__body {
    width: 100%;
  }

  .hero__controls {
    bottom: 1.25rem;
    gap: var(--space-2);
  }

  .hero__control {
    width: 46px;
    height: 46px;
  }

  .hero__control svg {
    width: 20px;
    height: 20px;
  }

  .page-hero {
    min-height: 330px;
    padding-top: 6.1rem;
  }

  .page-hero__content h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .page-hero__title--nowrap {
    flex-wrap: wrap;
    white-space: normal;
  }

  .history-section {
    margin-top: 0;
  }

  .org-board {
    min-height: 330px;
    border-radius: 22px;
    padding: 1rem;
  }

  .spmb-card--article,
  .spmb-card--contact,
  .spmb-card--routes {
    border-radius: 24px;
  }

  .requirements-card,
  .requirements-supporting-card {
    border-radius: 24px;
  }

  .spmb-route__icon {
    width: 42px;
    height: 42px;
  }

}

@media (min-width: 1024px) {
  .page-hero__title--nowrap {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: max-content;
    max-width: none;
  }

  .page-hero__title--nowrap > .page-hero__title-strong,
  .page-hero__title--nowrap > .page-hero__title-regular {
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (min-width: 1440px) {
  .container {
    width: min(calc(100% - 96px), 1360px);
  }

  .hero__title {
    font-size: clamp(3.5rem, 5vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 767px) {
  .history-layout {
    gap: var(--space-5);
    align-items: start;
  }

  .history-article,
  .history-panel {
    padding: clamp(1.5rem, 5vw, 1.9rem);
  }

  .requirements-card {
    padding: 0;
  }

  .requirements-card__inner {
    padding: clamp(1.5rem, 5vw, 1.9rem);
  }

  .schedule-card__inner {
    padding: clamp(1.5rem, 5vw, 1.9rem);
  }

  .results-card__inner {
    padding: 0;
  }

  .supporting-docs__inner {
    padding-top: clamp(1.5rem, 5vw, 1.9rem);
    padding-bottom: clamp(1.5rem, 5vw, 1.9rem);
  }

  .history-article {
    gap: var(--space-4);
    align-content: start;
  }

  .history-article__content {
    gap: var(--space-4);
    align-content: start;
  }

  .history-sidebar {
    gap: var(--space-5);
    position: static;
    top: auto;
    align-content: start;
  }

  .history-sidebar > .history-card:first-child .history-panel {
    min-height: clamp(360px, 92vw, 392px);
  }

  .history-info-list {
    gap: var(--space-2);
  }

  .history-info-list li {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: var(--space-2);
  }

  .history-info-list strong {
    justify-self: end;
    text-align: right;
  }

  .history-timeline {
    gap: var(--space-3);
  }

  .history-timeline li {
    padding-left: 22px;
  }

  .history-timeline li::after {
    bottom: -1rem;
  }

  .history-timeline strong {
    font-size: 0.93rem;
  }

  .history-timeline p {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .site-footer__social {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ----- Modal ----- */
body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(15, 23, 42, 0.14);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__body {
  padding: 20px 32px 32px;
}

#profil-add-modal .button--filled {
  background: #4f6ff5;
  border-color: #4f6ff5;
}

#profil-add-modal .button--filled:hover {
  background: #4664e6;
  border-color: #4664e6;
}

/* Profil avatar inside modal */
.profil-avatar {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 22px;
  position: relative;
}

.profil-avatar__frame {
  position: relative;
  width: min(250px, calc(100vw - 80px));
  height: min(250px, calc(100vw - 80px));
  border-radius: 13px;
  background: #4f6ff5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profil-avatar__placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}

.profil-avatar__placeholder svg {
  width: 72px;
  height: 72px;
  opacity: 0.85;
}

.profil-avatar__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profil-avatar__image[hidden],
.profil-avatar__video[hidden] {
  display: none;
}

.profil-avatar__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.profil-avatar__edit-wrap {
  position: relative;
}

.profil-avatar__edit {
  width: 100px;
  min-width: 100px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: var(--radius-pill);
  gap: 0;
}

.profil-avatar__edit svg {
  width: 14px;
  height: 14px;
}

.profil-avatar__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 5;
}

.profil-avatar__menu[hidden] {
  display: none;
}

.profil-avatar__menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.profil-avatar__menu-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.profil-avatar__menu-item:hover,
.profil-avatar__menu-item:focus-visible {
  background: rgba(79, 111, 245, 0.1);
  color: #4f6ff5;
  outline: none;
}

.profil-avatar__menu-item--danger {
  color: #c0392b;
}

.profil-avatar__menu-item--danger:hover,
.profil-avatar__menu-item--danger:focus-visible {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.profil-avatar__menu-item[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.profil-avatar__capture-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.profil-avatar__capture-bar[hidden] {
  display: none;
}

.profil-avatar__capture,
.profil-avatar__cancel {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.18s ease, background 0.18s ease;
}

.profil-avatar__capture {
  width: 54px;
  height: 54px;
  background: #ffffff;
  color: #4f6ff5;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.profil-avatar__capture svg {
  width: 32px;
  height: 32px;
}

.profil-avatar__capture:hover {
  transform: scale(1.05);
}

.profil-avatar__cancel {
  width: 38px;
  height: 38px;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
}

.profil-avatar__cancel svg {
  width: 18px;
  height: 18px;
}

.profil-avatar__cancel:hover {
  background: rgba(15, 23, 42, 0.78);
}

/* Profil form */
.profil-form {
  display: grid;
  gap: 16px;
}

.profil-field {
  display: grid;
  gap: 6px;
}

.profil-field__label {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.3;
}

.profil-field__input,
.profil-field__select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
}

.profil-field__input:focus,
.profil-field__select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.profil-field__select-wrap {
  position: relative;
  display: block;
}

.profil-field__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.profil-field__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.profil-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.profil-form__submit {
  min-width: 140px;
}

.profil-field__textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

/* Profil Guru & Staf modal: structured two-panel workflow */
#profil-add-modal .modal__dialog {
  max-width: 760px;
}

#profil-add-modal .modal__body {
  padding: 20px 24px 24px;
}

.profil-modal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.profil-photo-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.profil-photo-panel__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

#profil-add-modal .profil-avatar {
  gap: 12px;
  margin-bottom: 0;
  justify-items: stretch;
}

#profil-add-modal .profil-avatar__frame {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--primary);
}

#profil-add-modal .profil-avatar__edit-wrap {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  position: relative;
}

#profil-add-modal .profil-avatar__edit {
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  gap: 8px;
  border-radius: var(--radius-pill);
  justify-content: center;
}

#profil-add-modal .profil-avatar__edit svg {
  width: 17px;
  height: 17px;
}

#profil-add-modal .profil-avatar__menu {
  position: absolute;
  top: auto;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transform: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  z-index: 6;
}

#profil-add-modal .profil-avatar__menu-item {
  min-width: 0;
  padding: 9px 10px;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.25;
  white-space: nowrap;
}

#profil-add-modal .profil-avatar__menu-item svg {
  width: 16px;
  height: 16px;
}

#profil-add-modal .profil-form {
  min-width: 0;
  gap: 18px;
}

.profil-form__fields {
  display: grid;
  gap: 14px;
}

#profil-add-modal .profil-field__label {
  font-weight: 500;
}

#profil-add-modal .profil-field__input,
#profil-add-modal .profil-field__select {
  min-height: 48px;
}

#profil-add-modal .profil-form__actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

#profil-add-modal .profil-form__submit {
  min-width: 112px;
}

@media (max-width: 720px) {
  #profil-add-modal.modal {
    padding: 14px;
  }

  #profil-add-modal .modal__dialog {
    max-width: 520px;
    max-height: calc(100svh - 28px);
  }

  #profil-add-modal .modal__header {
    padding: 18px 18px 0;
  }

  #profil-add-modal .modal__body {
    padding: 18px;
  }

  .profil-modal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profil-photo-panel {
    gap: 12px;
  }

  #profil-add-modal .profil-avatar {
    grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
    align-items: end;
    gap: 14px;
  }

  #profil-add-modal .profil-avatar__frame {
    width: 100%;
  }

  #profil-add-modal .profil-avatar__edit-wrap {
    min-width: 0;
  }

  #profil-add-modal .profil-avatar__menu {
    position: static;
    inset: auto;
    width: 100%;
  }

  #profil-add-modal .profil-form__actions {
    justify-content: stretch;
  }

  #profil-add-modal .profil-form__submit {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  #profil-add-modal .profil-avatar {
    grid-template-columns: 1fr;
  }

  #profil-add-modal .profil-avatar__frame {
    max-width: 220px;
    justify-self: center;
  }
}

/* ----- Berita & Kegiatan modal ----- */
#berita-add-modal .modal__dialog,
#kegiatan-add-modal .modal__dialog {
  max-width: 560px;
}

#berita-add-modal .button--filled,
#kegiatan-add-modal .button--filled {
  background: #4f6ff5;
  border-color: #4f6ff5;
}

#berita-add-modal .button--filled:hover,
#kegiatan-add-modal .button--filled:hover {
  background: #4664e6;
  border-color: #4664e6;
}

.berita-image {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.berita-image__frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #4f6ff5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.berita-image__placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
}

.berita-image__placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.85;
}

.berita-image__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.berita-image__preview[hidden] {
  display: none;
}

.berita-image__upload {
  min-width: 180px;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  gap: 8px;
}

.berita-image__upload svg {
  width: 16px;
  height: 16px;
}

/* Berita/Kegiatan modal: structured media + form workflow */
#berita-add-modal .modal__dialog,
#kegiatan-add-modal .modal__dialog {
  max-width: 840px;
}

#berita-add-modal .modal__body,
#kegiatan-add-modal .modal__body {
  padding: 20px 24px 24px;
}

.berita-modal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
}

.berita-media-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.berita-media-panel__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

#berita-add-modal .berita-image,
#kegiatan-add-modal .berita-image {
  gap: 12px;
  margin-bottom: 0;
  justify-items: stretch;
  min-width: 0;
}

#berita-add-modal .berita-image__frame,
#kegiatan-add-modal .berita-image__frame {
  max-width: none;
  border-radius: 14px;
}

#berita-add-modal .berita-image__upload,
#kegiatan-add-modal .berita-image__upload {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  justify-content: center;
}

#berita-add-modal .berita-form,
#kegiatan-add-modal .kegiatan-form {
  min-width: 0;
  gap: 18px;
}

.berita-form__fields {
  display: grid;
  gap: 14px;
}

#berita-add-modal .profil-field__label,
#kegiatan-add-modal .profil-field__label {
  font-weight: 500;
}

#berita-add-modal .profil-field__input,
#kegiatan-add-modal .profil-field__input {
  min-height: 48px;
}

#berita-add-modal .profil-field__textarea {
  min-height: 172px;
  resize: vertical;
}

#berita-add-modal .profil-form__actions,
#kegiatan-add-modal .profil-form__actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

#berita-add-modal .profil-form__submit,
#kegiatan-add-modal .profil-form__submit {
  min-width: 112px;
}

@media (max-width: 720px) {
  #berita-add-modal.modal,
  #kegiatan-add-modal.modal {
    padding: 14px;
  }

  #berita-add-modal .modal__dialog,
  #kegiatan-add-modal .modal__dialog {
    max-width: 520px;
    max-height: calc(100svh - 28px);
  }

  #berita-add-modal .modal__header,
  #kegiatan-add-modal .modal__header {
    padding: 18px 18px 0;
  }

  #berita-add-modal .modal__body,
  #kegiatan-add-modal .modal__body {
    padding: 18px;
  }

  .berita-modal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .berita-media-panel {
    padding: 14px;
    gap: 12px;
  }

  #berita-add-modal .berita-image__frame,
  #berita-add-modal .berita-image__upload,
  #kegiatan-add-modal .berita-image__frame,
  #kegiatan-add-modal .berita-image__upload {
    width: 100%;
    max-width: 320px;
    justify-self: center;
  }

  #berita-add-modal .profil-field__textarea {
    min-height: 150px;
  }

  #berita-add-modal .profil-form__actions,
  #kegiatan-add-modal .profil-form__actions {
    justify-content: stretch;
  }

  #berita-add-modal .profil-form__submit,
  #kegiatan-add-modal .profil-form__submit {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ========================================
   Manajemen Info SPMB
   Form daftar jalur, tabel persyaratan & jadwal yang dapat diedit langsung,
   serta daftar prosedur dan kategori hasil seleksi.
======================================== */
.manajemen-stack {
  display: grid;
  gap: 24px;
}

.spmb-requirements-edit-table,
.spmb-jadwal-edit-table,
.spmb-prosedur-edit-table {
  table-layout: fixed;
}

.spmb-requirements-edit-table thead th,
.spmb-requirements-edit-table tbody td,
.spmb-jadwal-edit-table thead th,
.spmb-jadwal-edit-table tbody td,
.spmb-prosedur-edit-table thead th,
.spmb-prosedur-edit-table tbody td {
  vertical-align: middle;
  padding: 12px 8px;
}

.spmb-requirements-edit-table thead th:first-child,
.spmb-requirements-edit-table tbody td:first-child,
.spmb-jadwal-edit-table thead th:first-child,
.spmb-jadwal-edit-table tbody td:first-child,
.spmb-prosedur-edit-table thead th:first-child,
.spmb-prosedur-edit-table tbody td:first-child {
  padding-left: 8px;
}

.spmb-requirements-edit-table thead th:last-child,
.spmb-requirements-edit-table tbody td:last-child,
.spmb-jadwal-edit-table thead th:last-child,
.spmb-jadwal-edit-table tbody td:last-child,
.spmb-prosedur-edit-table thead th:last-child,
.spmb-prosedur-edit-table tbody td:last-child {
  padding-right: 8px;
}

.spmb-requirements-edit-table thead th:first-child,
.spmb-requirements-edit-table tbody td.spmb-edit-cell--number {
  width: 48px;
  text-align: center;
}

.spmb-requirements-edit-table thead th:nth-child(2) {
  width: auto;
}

.spmb-requirements-edit-table thead th:nth-child(n + 3):not(.manajemen-table__action-col) {
  width: 92px;
  text-align: center;
}

.spmb-requirements-edit-table thead th.manajemen-table__action-col,
.spmb-requirements-edit-table tbody td.spmb-edit-cell--action {
  width: 56px;
}

.spmb-requirements-edit-table tbody td:nth-child(n + 3):not(.spmb-edit-cell--action) {
  text-align: center;
}

.spmb-jadwal-edit-table thead th:first-child,
.spmb-jadwal-edit-table tbody td.spmb-edit-cell--number {
  width: 48px;
  text-align: center;
}

.spmb-jadwal-edit-table thead th:nth-child(2) {
  width: auto;
}

.spmb-jadwal-edit-table thead th:nth-child(3) {
  width: 220px;
}

.spmb-jadwal-edit-table thead th.manajemen-table__action-col,
.spmb-jadwal-edit-table tbody td.spmb-edit-cell--action {
  width: 56px;
}

.spmb-prosedur-edit-table thead th:first-child,
.spmb-prosedur-edit-table tbody td.spmb-edit-cell--number {
  width: 48px;
  text-align: center;
}

.spmb-prosedur-edit-table thead th:nth-child(2) {
  width: auto;
}

.spmb-prosedur-edit-table thead th.manajemen-table__action-col,
.spmb-prosedur-edit-table tbody td.spmb-edit-cell--action {
  width: 56px;
}

.spmb-edit-cell {
  padding: 12px 8px;
}

.spmb-edit-input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
}

.spmb-edit-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.spmb-edit-select-wrap {
  display: inline-block;
  width: 100%;
  max-width: 80px;
}

.spmb-edit-select {
  padding: 9px 30px 9px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.spmb-edit-cell--action {
  width: 56px;
  white-space: nowrap;
}

.spmb-edit-cell--number {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.jalur-list {
  display: grid;
  gap: 16px;
}

.jalur-list:empty,
.jalur-list[hidden],
.jalur-list.is-empty {
  display: none !important;
}

.jalur-entry {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 56px 18px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #ffffff;
}

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

.jalur-entry__field {
  margin: 0;
}

.jalur-entry__remove {
  position: absolute;
  top: 14px;
  right: 12px;
  color: var(--text-secondary);
}

.jalur-entry__remove:hover {
  color: var(--text-primary);
}

.hasil-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.hasil-category {
  display: grid;
  grid-template-rows: auto minmax(150px, auto) auto;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #ffffff;
  contain: layout paint;
}

.hasil-category__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .jalur-entry__grid {
    grid-template-columns: minmax(0, 1fr) 160px;
  }
}

@media (min-width: 768px) {
  .hasil-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Guru dan Staf: edit table column widths ===== */
.guru-edit-table thead th:first-child,
.guru-edit-table tbody td.manajemen-table__no-cell {
  width: 48px;
  text-align: center;
}

.guru-edit-table thead th:nth-child(2),
.guru-edit-table tbody td.guru-edit-cell--photo {
  width: 72px;
  text-align: center;
}

.guru-edit-table thead th:last-child,
.guru-edit-table tbody td.guru-edit-cell--action {
  width: 88px;
}

/* ===== Berita: edit table column widths ===== */
.berita-edit-table thead th:first-child,
.berita-edit-table tbody td.manajemen-table__no-cell {
  width: 48px;
  text-align: center;
}

.berita-edit-table thead th:nth-child(2),
.berita-edit-table tbody td.berita-edit-cell--image {
  width: 72px;
  text-align: center;
}

.berita-edit-table thead th:last-child,
.berita-edit-table tbody td.berita-edit-cell--action {
  width: 88px;
}

/* ===== Kegiatan: edit table column widths ===== */
.kegiatan-edit-table thead th:first-child,
.kegiatan-edit-table tbody td.manajemen-table__no-cell {
  width: 48px;
  text-align: center;
}

.kegiatan-edit-table thead th:nth-child(2),
.kegiatan-edit-table tbody td.kegiatan-edit-cell--image {
  width: 72px;
  text-align: center;
}

.kegiatan-edit-table thead th:last-child,
.kegiatan-edit-table tbody td.kegiatan-edit-cell--action {
  width: 88px;
}

@media (max-width: 639px) {
  .manajemen-stack .manajemen-table-wrapper {
    overflow-x: visible;
    padding: 4px 12px 16px;
  }

  #panel-persyaratan .manajemen-table-wrapper,
  #panel-jadwal .manajemen-table-wrapper,
  #panel-prosedur .manajemen-table-wrapper {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  #panel-persyaratan .manajemen-table-wrapper:focus-visible,
  #panel-jadwal .manajemen-table-wrapper:focus-visible,
  #panel-prosedur .manajemen-table-wrapper:focus-visible {
    outline: none;
    box-shadow: inset var(--shadow-focus);
  }

  #panel-persyaratan .spmb-requirements-edit-table {
    min-width: 660px;
  }

  #panel-jadwal .spmb-jadwal-edit-table {
    min-width: 540px;
  }

  #panel-prosedur .spmb-prosedur-edit-table {
    min-width: 440px;
  }

  #panel-persyaratan .spmb-requirements-edit-table th,
  #panel-persyaratan .spmb-requirements-edit-table td,
  #panel-jadwal .spmb-jadwal-edit-table th,
  #panel-jadwal .spmb-jadwal-edit-table td,
  #panel-prosedur .spmb-prosedur-edit-table th,
  #panel-prosedur .spmb-prosedur-edit-table td {
    padding-block: 12px;
  }

  #panel-guru .manajemen-table-wrapper {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  #panel-guru .manajemen-table-wrapper:focus-visible {
    outline: none;
    box-shadow: inset var(--shadow-focus);
  }

  #panel-guru .guru-edit-table {
    min-width: 640px;
  }

  #panel-guru .guru-edit-table th,
  #panel-guru .guru-edit-table td {
    padding-block: 12px;
  }

  #panel-guru .guru-edit-table td {
    white-space: nowrap;
  }

  #panel-guru .guru-edit-table td:nth-child(3),
  #panel-guru .guru-edit-table td:nth-child(4) {
    white-space: normal;
  }

  #panel-berita .manajemen-table-wrapper {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  #panel-berita .manajemen-table-wrapper:focus-visible {
    outline: none;
    box-shadow: inset var(--shadow-focus);
  }

  #panel-berita .berita-edit-table {
    min-width: 760px;
  }

  #panel-berita .berita-edit-table th,
  #panel-berita .berita-edit-table td {
    padding-block: 12px;
  }

  #panel-berita .berita-edit-table td {
    white-space: nowrap;
  }

  #panel-berita .berita-edit-table td:nth-child(3),
  #panel-berita .berita-edit-table td:nth-child(4) {
    white-space: normal;
  }

  #panel-kegiatan .manajemen-table-wrapper {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  #panel-kegiatan .manajemen-table-wrapper:focus-visible {
    outline: none;
    box-shadow: inset var(--shadow-focus);
  }

  #panel-kegiatan .kegiatan-edit-table {
    min-width: 620px;
  }

  #panel-kegiatan .kegiatan-edit-table th,
  #panel-kegiatan .kegiatan-edit-table td {
    padding-block: 12px;
  }

  #panel-kegiatan .kegiatan-edit-table td {
    white-space: nowrap;
  }

  #panel-kegiatan .kegiatan-edit-table td:nth-child(3) {
    white-space: normal;
  }

  .manajemen-stack .dashboard-panel__header--with-action {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .manajemen-stack .manajemen-add {
    width: 100%;
    justify-content: center;
  }

  #panel-berita .dashboard-panel__header--with-action,
  #panel-kegiatan .dashboard-panel__header--with-action,
  .manajemen-stack #panel-info .dashboard-panel__header--with-action,
  .manajemen-stack #panel-tonggak .dashboard-panel__header--with-action,
  .manajemen-stack #panel-guru .dashboard-panel__header--with-action,
  .manajemen-stack #panel-visimisi .dashboard-panel__header--with-action,
  .manajemen-stack #panel-jalur .dashboard-panel__header--with-action,
  .manajemen-stack #panel-persyaratan .dashboard-panel__header--with-action,
  .manajemen-stack #panel-jadwal .dashboard-panel__header--with-action,
  .manajemen-stack #panel-prosedur .dashboard-panel__header--with-action {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  #panel-berita .dashboard-panel__header--with-action h2,
  #panel-kegiatan .dashboard-panel__header--with-action h2,
  .manajemen-stack #panel-info .spmb-panel__heading,
  .manajemen-stack #panel-tonggak .spmb-panel__heading,
  .manajemen-stack #panel-guru .spmb-panel__heading,
  .manajemen-stack #panel-visimisi .spmb-panel__heading,
  .manajemen-stack #panel-jalur .spmb-panel__heading,
  .manajemen-stack #panel-persyaratan .spmb-panel__heading,
  .manajemen-stack #panel-jadwal .spmb-panel__heading,
  .manajemen-stack #panel-prosedur .spmb-panel__heading {
    flex: 1 1 auto;
    min-width: 0;
  }

  #panel-berita .manajemen-add,
  #panel-kegiatan .manajemen-add,
  .manajemen-stack #panel-info .manajemen-add,
  .manajemen-stack #panel-tonggak .manajemen-add,
  .manajemen-stack #panel-guru .manajemen-add,
  .manajemen-stack #panel-visimisi .manajemen-add,
  .manajemen-stack #panel-jalur .manajemen-add,
  .manajemen-stack #panel-persyaratan .manajemen-add,
  .manajemen-stack #panel-jadwal .manajemen-add,
  .manajemen-stack #panel-prosedur .manajemen-add {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }

  #panel-berita .manajemen-add span,
  #panel-kegiatan .manajemen-add span,
  .manajemen-stack #panel-info .manajemen-add span,
  .manajemen-stack #panel-tonggak .manajemen-add span,
  .manajemen-stack #panel-guru .manajemen-add span,
  .manajemen-stack #panel-visimisi .manajemen-add span,
  .manajemen-stack #panel-jalur .manajemen-add span,
  .manajemen-stack #panel-persyaratan .manajemen-add span,
  .manajemen-stack #panel-jadwal .manajemen-add span,
  .manajemen-stack #panel-prosedur .manajemen-add span {
    display: none;
  }

  #panel-berita .manajemen-add svg,
  #panel-kegiatan .manajemen-add svg,
  .manajemen-stack #panel-info .manajemen-add svg,
  .manajemen-stack #panel-tonggak .manajemen-add svg,
  .manajemen-stack #panel-guru .manajemen-add svg,
  .manajemen-stack #panel-visimisi .manajemen-add svg,
  .manajemen-stack #panel-jalur .manajemen-add svg,
  .manajemen-stack #panel-persyaratan .manajemen-add svg,
  .manajemen-stack #panel-jadwal .manajemen-add svg,
  .manajemen-stack #panel-prosedur .manajemen-add svg {
    width: 18px;
    height: 18px;
  }
}

/* ========================================
   Manajemen Info SPMB — refined layout
======================================== */
/* ----- Tabs ----- */
.spmb-tabs-frame {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  z-index: 4;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background-clip: padding-box;
}

.spmb-tabs-frame::after {
  content: "";
  position: absolute;
  inset-block: 0;
  right: 0;
  z-index: 2;
  width: clamp(42px, 8vw, 72px);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.82) 58%,
    rgba(255, 255, 255, 0.97) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.spmb-tabs-frame.has-scroll-cue::after {
  opacity: 1;
}

.spmb-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.spmb-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.spmb-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  min-height: 0;
}

.spmb-tab:hover {
  background: var(--button-hover);
  color: var(--text-primary);
}

.spmb-tab.is-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.spmb-tab.is-active:hover {
  background: color-mix(in srgb, var(--primary) 88%, #000);
}

.spmb-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.spmb-tab.is-active .spmb-tab__count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Visually hide tabs row when JS is disabled — fall back to anchor labels */
html:not(.js) .spmb-tabs-frame {
  display: none;
}

html:not(.js) .spmb-panel[hidden] {
  display: block !important;
}

/* ----- Panel header refinements ----- */
.spmb-panel {
  scroll-margin-top: calc(var(--header-height) + 64px);
}

.spmb-panel[hidden] {
  display: none;
}

.spmb-panel__header {
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.spmb-panel__heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.spmb-panel__heading h2 {
  margin: 0;
}

.spmb-panel__hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}

.spmb-panel__head-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.spmb-panel__pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.spmb-panel__pill.is-over {
  background: #fde9e6;
  color: #b3261e;
}

.spmb-empty {
  margin: 0;
  padding: 18px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-align: center;
  background: rgba(25, 28, 29, 0.015);
}

.spmb-empty--padded {
  margin: 16px 24px;
}

.spmb-empty strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ----- Jalur entry: index badge + better quota field ----- */
.jalur-list {
  counter-reset: jalur-step;
}

.jalur-entry {
  counter-increment: jalur-step;
  padding: 18px 56px 18px 64px;
}

.jalur-entry__index {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.jalur-entry__index::before {
  content: counter(jalur-step);
}

.jalur-entry__quota-wrap {
  position: relative;
  display: block;
}

.jalur-entry__quota-input {
  padding-right: 38px;
}

.jalur-entry__quota-suffix {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.95rem;
  pointer-events: none;
}

/* ----- Persyaratan: chip-style checkbox ----- */
.spmb-edit-cell--chip {
  text-align: center;
}

.spmb-req-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.spmb-req-chip__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.spmb-req-chip__indicator {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.spmb-req-chip__indicator svg {
  width: 18px;
  height: 18px;
}

.spmb-req-chip__input:hover + .spmb-req-chip__indicator,
.spmb-req-chip:hover .spmb-req-chip__indicator {
  border-color: var(--primary);
}

.spmb-req-chip__input:focus-visible + .spmb-req-chip__indicator {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.spmb-req-chip__input:checked + .spmb-req-chip__indicator {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.spmb-req-chip__text {
  display: none;
  margin-left: 10px;
  color: var(--text-primary);
  font-size: 0.92rem;
}

/* Override stale select-wrap rules from previous design (no-op when empty) */
.spmb-edit-cell--chip .spmb-edit-select-wrap {
  display: none;
}

/* Compact persyaratan column widths */
.spmb-requirements-edit-table thead th:nth-child(n + 3):not(.manajemen-table__action-col),
.spmb-requirements-edit-table tbody td.spmb-edit-cell--chip {
  width: 88px;
}

/* ----- Jadwal: native date input styling ----- */
.spmb-edit-input--date {
  color-scheme: light;
  font-variant-numeric: tabular-nums;
}

.spmb-edit-input--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.18s ease;
}

.spmb-edit-input--date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ----- Hasil Seleksi: category header ----- */
.hasil-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hasil-category__title {
  margin: 0;
}

/* 4-up grid for hasil seleksi on wide screens */
@media (min-width: 1080px) {
  .manajemen-stack .hasil-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ----- Tighter dropzone on small cards ----- */
.hasil-category .banner-dropzone {
  min-height: 150px;
  padding: 18px 14px;
}

.hasil-category .banner-dropzone__icon {
  width: 56px;
  height: 56px;
}

.hasil-category .banner-files {
  min-height: 0;
  align-content: start;
  gap: 8px;
  overflow: hidden;
}

.hasil-category .banner-files:empty {
  display: none;
}

.hasil-category .banner-file {
  grid-template-columns: auto minmax(0, 1fr) 32px;
  gap: 10px;
  min-height: 56px;
  height: 56px;
  padding: 8px 10px;
  border-radius: 12px;
}

.hasil-category .banner-file__thumb {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.hasil-category .banner-file__remove {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.hasil-category .banner-file__name {
  font-size: 0.86rem;
  line-height: 1.25;
}

.hasil-category .banner-file__size {
  margin-top: 1px;
  font-size: 0.74rem;
}

/* ----- Generic 2-column form grid (Kontak Panitia, Sumber Referensi, dll.) ----- */
.spmb-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
}

.spmb-kontak-jam {
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .spmb-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----- Informasi Umum: keterangan tunggal ----- */
.infoumum-content__input {
  min-height: 320px;
  resize: vertical;
}

/* ----- Manajemen Beranda: Visi & Misi (step badge per misi) ----- */
.manajemen-stack .misi-list {
  counter-reset: misi-step;
  display: grid;
  gap: 12px;
}

.manajemen-stack .misi-item {
  counter-increment: misi-step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.manajemen-stack .misi-item__step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.manajemen-stack .misi-item__step::before {
  content: counter(misi-step);
}

.manajemen-stack .misi-item__input {
  width: 100%;
  min-width: 0;
}

.manajemen-stack .misi-item__remove {
  color: var(--text-secondary);
}

.manajemen-stack .misi-item__remove:hover {
  color: var(--text-primary);
}

/* Stat-list inside the Statistik panel — slightly looser to match other panels */
.manajemen-stack .manajemen-panel__body--stat {
  padding-block: 22px 24px;
}

/* ----- Mobile adjustments for chip cells ----- */
@media (max-width: 639px) {
  .spmb-panel__head-meta {
    width: auto;
    margin-left: auto;
  }

  .spmb-tabs-frame {
    position: static;
    margin: 0 0 16px;
  }

  .jalur-entry {
    padding: 18px 18px 18px 18px;
  }

  .jalur-entry__index {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 4px;
  }
}
