/* ==========================================================================
   TEMA TERANG BERSATU — SMK Wira Kesuma Jaya
   Dimuat terakhir di seluruh halaman (portal sekolah + CBT/admin).
   Menyamakan warna, tipografi, foto guru & prestasi, dan kotak detail berita.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Warna inti */
  --brand-50: #f2faff;
  --brand-100: #e2f4ff;
  --brand-200: #c2e6fd;
  --brand-300: #90d1f8;
  --brand-400: #4fb6ee;
  --brand-500: #2196dc;
  --brand-600: #1279c0;
  --brand-700: #0f5f9a;
  --brand-800: #134c76;
  --brand-900: #123c5c;

  --sun-100: #fff4dc;
  --sun-300: #ffd98a;
  --sun-500: #f2a91f;
  --sun-600: #d18a19;

  --mint-100: #e3f9f1;
  --mint-500: #16a97a;
  --rose-100: #ffeef1;
  --rose-500: #e0455f;

  /* Permukaan */
  --page: #f4fbff;
  --page-2: #eaf6ff;
  --surface: #ffffff;
  --surface-2: #f7fcff;
  --surface-3: #eaf6ff;

  /* Teks */
  --ink: #123c5c;
  --ink-2: #24567a;
  --ink-3: #5b7f99;
  --ink-4: #88a4b8;

  /* Garis & bayangan */
  --hairline: #d5e9f7;
  --hairline-2: #c2dff2;
  --ring: rgba(33, 150, 220, .18);
  --shadow-xs: 0 2px 6px rgba(18, 90, 140, .06);
  --shadow-sm: 0 8px 20px rgba(18, 90, 140, .08);
  --shadow-md: 0 16px 38px rgba(18, 90, 140, .11);
  --shadow-lg: 0 26px 60px rgba(18, 90, 140, .15);
  --shadow-brand: 0 14px 32px rgba(33, 150, 220, .22);

  /* Alur utama */
  --primary: #2196dc;
  --primary-light: #4fb6ee;
  --primary-dark: #1279c0;
  --primary-soft: #e2f4ff;
  --secondary: #1ba5c9;
  --accent: #f2a91f;

  /* Kompatibilitas nama variabel lama */
  --navy: #f4fbff;
  --navy-2: #eaf6ff;
  --blue: #2196dc;
  --cyan: #1ba5c9;
  --gold: #d18a19;
  --white: #123c5c;
  --text: #24567a;
  --muted: #5b7f99;
  --line: #d5e9f7;
  --card: #ffffff;
  --bg: #f4fbff;
  --bg-2: #eaf6ff;
  --bg-3: #ffffff;
  --card-solid: #ffffff;
  --panel: #f7fcff;
  --primary-light-soft: var(--primary-soft);
  --danger: #e0455f;
  --success-bg: #e3f9f1;
  --success-text: #0f7a58;
  --warning-bg: #fff4dc;
  --warning-text: #96590a;
  --error-bg: #ffeef1;
  --error-text: #b32b45;
  --shadow: var(--shadow-md);
  --shadow-hover: var(--shadow-lg);
  --radius: 22px;
}

/* ---------- Dasar ---------- */

html {
  color-scheme: light;
}

body {
  color: var(--ink);
  background-color: var(--page);
  background-image:
    radial-gradient(circle at 8% 6%, rgba(79, 182, 238, .18), transparent 32%),
    radial-gradient(circle at 94% 2%, rgba(144, 209, 248, .28), transparent 30%),
    linear-gradient(160deg, #fbfeff 0%, #f0f9ff 52%, #e8f5ff 100%);
  background-attachment: fixed;
}

::selection {
  color: #fff;
  background: var(--brand-500);
}

a {
  color: var(--brand-700);
}

/* ---------- Tipografi ---------- */

h1,
h2,
h3,
h4,
h5 {
  color: var(--ink);
  letter-spacing: -.03em;
}

h1 {
  text-shadow: none;
}

em {
  color: var(--brand-600);
  font-style: normal;
}

label,
.profile-label {
  color: var(--brand-700);
}

.muted,
.summary-grid span,
.teacher-card p,
.demo-box p {
  color: var(--ink-3);
}

/* ---------- Tombol ---------- */

.button,
.button.primary,
.brand-pill,
.login-back-button {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(135deg, var(--brand-400) 0%, var(--brand-500) 48%, var(--brand-600) 100%);
  box-shadow: var(--shadow-brand);
}

.button:hover,
.button.primary:hover,
.login-back-button:hover {
  background-image: linear-gradient(135deg, #63c2f2 0%, #2aa2e5 48%, #146fb2 100%);
  box-shadow: 0 18px 40px rgba(33, 150, 220, .3);
}

.button:focus-visible {
  border-color: transparent;
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(33, 150, 220, .16);
}

.button.danger {
  color: var(--rose-500);
  border-color: rgba(224, 69, 95, .24);
  background: var(--rose-100);
  box-shadow: none;
}

.button.danger:hover {
  color: #fff;
  border-color: transparent;
  background: var(--rose-500);
  box-shadow: 0 12px 26px rgba(224, 69, 95, .26);
}

/* ---------- Permukaan & kartu ---------- */

.card,
.panel,
.exam-card,
.question-card,
.summary-grid div,
.bank-card,
.teacher-card,
.teacher-directory-card,
.profile-detail-card,
.profile-tab-panel,
.achievement-card,
.school-news-card,
.public-news-card,
.announcement-panel,
.program-item,
.education-price-card,
.registration-card,
.vision-card,
.mission-card,
.indicator-card,
.feedback-form-card {
  border-color: var(--hairline);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card:hover,
.teacher-card:hover,
.achievement-card:hover,
.public-news-card:hover,
.school-news-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.table-wrap {
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

table {
  color: var(--ink-2);
  background: var(--surface);
}

th {
  color: var(--brand-800);
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
}

th,
td {
  border-bottom-color: var(--hairline);
}

tbody tr:hover {
  background: var(--brand-50);
}

.badge,
.timer {
  color: var(--brand-700);
  border-color: var(--hairline-2);
  background: var(--brand-50);
  box-shadow: none;
}

.badge.success {
  color: var(--success-text);
  border-color: rgba(22, 169, 122, .28);
  background: var(--success-bg);
}

.warning-badge {
  color: var(--warning-text);
  border-color: rgba(242, 169, 31, .3);
  background: var(--warning-bg);
}

.summary-grid strong {
  color: var(--brand-600);
  text-shadow: none;
}

.demo-box {
  border-color: var(--brand-200);
  background: linear-gradient(135deg, var(--brand-50), var(--surface));
}

/* ---------- Form ---------- */

input[type="email"],
input[type="password"],
.input,
textarea.input,
select.input,
input[type="text"],
input[type="number"],
.admission-form input,
.admission-form select,
.admission-form textarea,
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  color: var(--ink);
  border-color: var(--hairline-2);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-4);
}

input:focus,
select:focus,
textarea:focus,
.admission-form input:focus,
.admission-form select:focus,
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--ring);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-500);
}

/* ---------- Bagian halaman ---------- */

.hero h1,
.section-title h2,
.news-heading h2,
.welcome-content h2,
.admission h2,
.education-hero-copy h1,
.education-heading h2,
.education-subpage-hero h1,
.registration-heading h2,
.scholarship-grid h2,
.news-page-heading h1,
.teacher-page-heading h1,
.profile-detail-card h1,
.profile-information h2,
.feedback-copy h2,
.map-heading h2,
.accreditation-copy h2 {
  color: var(--ink);
}

.hero h1 em,
.section-title h2 em,
.news-heading h2 em,
.welcome-content h2 em,
.admission h2 em,
.education-hero-copy h1 em,
.education-heading h2 em,
.education-subpage-hero h1 em,
.registration-heading h2 em,
.scholarship-grid h2 em,
.news-page-heading h1 em,
.teacher-page-heading h1 em,
.feedback-copy h2 em,
.map-heading h2 em,
.accreditation-copy h2 em,
h2 em {
  color: var(--brand-600);
  font-style: normal;
}

.hero-copy > p,
.section-content > p,
.welcome-copy p,
.admission-copy > p,
.admission-copy ul,
.education-hero-copy > p,
.education-heading > p,
.education-subpage-hero p,
.news-page-heading p,
.teacher-page-heading > p:last-child,
.feedback-copy > p,
.accreditation-copy > p {
  color: var(--ink-3);
}

.section-marker {
  color: var(--brand-600);
}

.section-marker::after {
  background: linear-gradient(90deg, var(--sun-500), transparent);
}

.section-marker-number {
  color: var(--brand-700);
  border-color: var(--brand-200);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.section-number,
.program-index,
.announcement time,
.principal-badge span,
.footer-grid h4,
.school-news-meta,
.public-news-meta,
.achievement-type,
.education-price-label {
  color: var(--brand-600);
}

.text-link,
.announcement-heading,
.announcement p,
.teacher-card h3,
.principal-signature strong,
.profile-value,
.news-attachment {
  color: var(--ink);
}

.text-link span,
.program-item > a,
.announcement-heading a,
.map-link,
.public-news-link {
  color: var(--brand-500);
}

.accreditation-kicker,
.profile-label,
.indicator-card h4 {
  color: var(--brand-700);
}

.accreditation-stat span,
.numbers-grid span,
.announcement span,
.teacher-card p,
.footer-grid p,
.footer-grid a:not(.brand),
.copyright {
  color: var(--ink-3);
}

.numbers-grid strong,
.accreditation-stat strong,
.achievement-copy h3,
.public-news-card h2,
.education-price-card strong,
.registration-card h3,
.registration-callout h3 {
  color: var(--ink);
}

/* ==========================================================================
   FOTO GURU — bingkai potret profesional
   ========================================================================== */

.teacher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.teacher-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background-image: linear-gradient(90deg, var(--brand-400), var(--brand-600), var(--sun-500));
  opacity: 0;
  transition: opacity .28s ease;
}

.teacher-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
}

.teacher-card:hover::before {
  opacity: 1;
}

.teacher-card .teacher-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(150deg, var(--brand-100), var(--brand-50) 55%, var(--sun-100));
}

.teacher-card .teacher-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.02);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1), filter .4s ease;
}

.teacher-card .teacher-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(10, 60, 96, .58), transparent);
  pointer-events: none;
}

.teacher-card:hover .teacher-photo img {
  transform: scale(1.09);
}

.teacher-card .teacher-photo .teacher-photo-tag {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-xs);
  color: var(--brand-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teacher-card .teacher-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 16px 16px 18px;
  border-top: 3px solid transparent;
  transition: border-color .28s ease;
}

.teacher-card:hover .teacher-body {
  border-top-color: var(--brand-200);
}

.teacher-card h3,
.teacher-page .teacher-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.45;
}

.teacher-card p,
.teacher-page .teacher-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.6;
}

.teacher-page .teacher-card {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.teacher-page .teacher-card img {
  height: auto;
  border: 0;
  background: transparent;
}

.teacher-directory-card {
  border-radius: 26px;
}

/* Kartu guru versi lama (tanpa .teacher-photo) tetap rapi */
.teacher-card > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  object-fit: cover;
  object-position: center 18%;
  background: linear-gradient(150deg, var(--brand-100), var(--brand-50));
}

.teacher-card > h3,
.teacher-card > h2,
.teacher-card > p {
  padding: 0 16px;
}

.teacher-card > h3,
.teacher-card > h2 {
  margin: 14px 0 0;
}

.teacher-card > p {
  margin: 6px 0 16px;
}

/* ==========================================================================
   FOTO PRESTASI — bingkai panggung + pita panelists
   ========================================================================== */

.achievement-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.achievement-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
}

.achievement-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--brand-100), var(--brand-50) 60%, var(--sun-100));
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.achievement-media img {
  transition: transform .55s cubic-bezier(.2, .7, .3, 1), filter .4s ease;
  filter: saturate(1.05) contrast(1.02);
}

.achievement-card:hover .achievement-media img {
  transform: scale(1.07);
  filter: saturate(1.12) contrast(1.05);
}

.achievement-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 58, 92, .55) 0%, transparent 46%);
  opacity: .85;
  pointer-events: none;
}

.achievement-media .achievement-ribbon {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow-xs);
  color: var(--brand-800);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.achievement-media .achievement-ribbon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun-500);
  box-shadow: 0 0 0 3px rgba(242, 169, 31, .22);
}

.achievement-media .achievement-nameplate {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.achievement-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.achievement-type {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sun-100);
  color: var(--sun-600);
}

.achievement-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
}

.achievement-copy p {
  margin: 9px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.7;
}

/* Kartu berita sekolah: bingkai foto senada */
.school-news-card,
.public-news-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.school-news-card > img,
.public-news-image {
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(150deg, var(--brand-100), var(--brand-50));
}

.school-news-card:hover > img,
.public-news-card:hover .public-news-image {
  filter: saturate(1.08);
}

.school-news-card h3,
.public-news-card h2 {
  color: var(--ink);
}

/* ==========================================================================
   KOTAK DETAIL BERITA (pengganti halaman /berita.html)
   ========================================================================== */

.news-modal[hidden] {
  display: none;
}

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

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 48, 78, .55);
  backdrop-filter: blur(6px);
  animation: news-modal-fade .2s ease;
}

.news-modal__dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-lg);
  animation: news-modal-rise .26s cubic-bezier(.2, .7, .3, 1);
}

.news-modal__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.news-modal__close:hover {
  background: var(--brand-500);
  border-color: transparent;
  color: #fff;
  transform: rotate(90deg);
}

.news-modal__close:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.news-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--brand-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.news-modal__meta time {
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: .04em;
}

.news-modal__dialog h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.news-modal__image {
  display: block;
  width: 100%;
  max-height: 400px;
  margin: 22px 0 0;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  object-fit: cover;
  background: var(--brand-50);
}

.news-modal__excerpt {
  margin: 22px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand-500);
  border-radius: 0 12px 12px 0;
  background: var(--brand-50);
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.news-modal__content {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.95;
  white-space: pre-wrap;
}

.news-modal__attachment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 13px 20px;
  border-radius: 12px;
  background-image: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  box-shadow: var(--shadow-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-modal__attachment:hover {
  filter: brightness(1.06);
}

.news-modal__status {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
}

@keyframes news-modal-fade {
  from {
    opacity: 0;
  }
}

@keyframes news-modal-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
}

/* Kartu berita yang bisa diklik */
.school-news-card--clickable {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}

.school-news-card--clickable:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
}

/* ---------- responsif ---------- */

@media (max-width: 900px) {
  .news-modal {
    padding: 16px;
  }

  .news-modal__dialog {
    border-radius: 20px;
  }
}

@media (max-width: 700px) {
  .news-modal__dialog {
    padding: 20px 17px;
  }

  .news-modal__close {
    width: 36px;
    height: 36px;
  }

  .news-modal__content {
    font-size: 14.5px;
    line-height: 1.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-modal__backdrop,
  .news-modal__dialog,
  .news-modal__close {
    animation: none;
  }

  .teacher-card,
  .achievement-card,
  .teacher-card .teacher-photo img,
  .achievement-media img {
    transition: none;
  }
}

/* ==========================================================================
   KONSISTENSI TERANG — blok gelap yang masih bocor dari stylesheet dasar
   Ditulis ulang menjadi permukaan terang + teks gelap, sama seperti halaman
   lain. Bagian ini memakai !important hanya bila stylesheet dasar sudah
   memakainya (footer), supaya tidak perlu menimpa file aslinya.
   ========================================================================== */

/* ---------- 1. Beranda: peta, berita, dan saran ---------- */

.map-section {
  background: linear-gradient(180deg, var(--page) 0%, var(--page-2) 100%);
  border-top: 1px solid var(--hairline);
}

.map-heading h2,
.map-section h2 {
  color: var(--ink);
}

.map-heading h2 em {
  color: var(--brand-600);
}

.map-link {
  color: var(--brand-600);
}

.map-link:hover {
  color: var(--brand-800);
}

.map-frame {
  background: var(--surface);
  border-color: var(--hairline-2);
  box-shadow: var(--shadow-lg);
}

.map-frame iframe {
  filter: saturate(.92) contrast(1.02);
}

.school-news-section {
  background: linear-gradient(180deg, var(--page-2) 0%, var(--page) 100%);
  border-top-color: var(--hairline);
}

.school-news-card {
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.school-news-card:hover {
  background: var(--surface);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.school-news-copy h3 {
  color: var(--ink);
}

.school-news-copy p {
  color: var(--ink-3);
}

.school-news-meta {
  color: var(--brand-600);
}

.school-news-meta time {
  color: var(--ink-4);
}

.school-news-empty {
  color: var(--ink-3);
}

.school-news-placeholder {
  color: var(--ink-3);
  background: linear-gradient(150deg, var(--brand-100), var(--brand-50) 60%, var(--sun-100));
}

.feedback-section {
  background: linear-gradient(180deg, var(--page) 0%, var(--page-2) 100%);
  border-top: 1px solid var(--hairline);
}

.feedback-section h2,
.feedback-section h2 em {
  color: var(--ink);
}

.feedback-section h2 em {
  color: var(--brand-600);
}

.feedback-form label {
  color: var(--ink-2);
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--hairline-2);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--ink-4);
}

.feedback-form .form-status {
  color: var(--brand-600);
}

.feedback-form .form-status.error {
  color: var(--rose-500);
}

/* Opsi dropdown bawaan browser mengikuti tema terang. */
select option,
.feedback-form select option,
.admission-form select option {
  color: var(--ink);
  background: var(--surface);
}

/* ---------- 2. Footer portal: biru pekat + wave divider + aksen merah ---------- */

footer.site-footer,
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 0 !important;
  background: #0a4468 !important;
  color: #ffffff !important;
  box-shadow: none;
}

/* Wave divider digambar sebagai SVG vektor (bukan PNG/JPG) supaya tetap
   presisi dan tajam di layar HP maupun monitor sangat lebar.
   Lekukan asimetris: tinggi di kanan, rendah di kiri. Pita merah di atas,
   biru solid di bawahnya menyatu dengan latar footer. */
.site-footer::before {
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: clamp(64px, 8.5vw, 124px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath fill='%23e0455f' d='M0 100C240 100 360 92 520 70C700 44 860 12 1080 6C1220 2 1340 4 1440 0V140H0Z'/%3E%3Cpath fill='%230a4468' d='M0 108C240 108 360 100 520 78C700 52 860 20 1080 14C1220 10 1340 12 1440 8V140H0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
  content: '';
  pointer-events: none;
}

.site-footer .footer-grid {
  position: relative;
  z-index: 1;
  padding-top: clamp(84px, 10vw, 146px);
}

/* Kontras di atas biru pekat: putih murni untuk judul, abu-abu sangat
   terang untuk isi — semuanya di atas rasio WCAG AA 4.5:1. */
.site-footer,
.site-footer .footer-grid,
.site-footer .footer-grid p,
.site-footer .footer-tagline,
.site-footer .footer-grid a,
.site-footer .footer-grid a:not(.brand),
.site-footer .footer-navigation,
.site-footer .footer-navigation a,
.site-footer .footer-nav-groups,
.site-footer .footer-nav-group a,
.site-footer .footer-contact-column,
.site-footer .footer-contact-column > a,
.site-footer .footer-contact-list,
.site-footer .footer-contact-item,
.site-footer .footer-bottom,
.site-footer .footer-bottom .container,
.site-footer > .copyright {
  color: #dcecf7 !important;
}

.site-footer .brand,
.site-footer .footer-brand,
.site-footer .brand span,
.site-footer .footer-brand-copy strong {
  color: #ffffff !important;
}

/* Slogan sekolah: hierarki jelas di bawah judul kolom, warna putih. */
.site-footer .footer-grid .footer-slogan,
.site-footer .footer-brand-copy small {
  display: block;
  max-width: 34ch;
  margin: 14px 0 0;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.6;
}

/* Judul kolom: putih dengan garis aksen merah dari pita gelombang. */
.site-footer .footer-grid h2,
.site-footer .footer-grid h4,
.site-footer .footer-navigation h2 {
  position: relative;
  padding-bottom: 9px;
  color: #ffffff !important;
  font-size: 12.5px;
}

.site-footer .footer-grid h2::after,
.site-footer .footer-grid h4::after,
.site-footer .footer-navigation h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: #e0455f;
  content: '';
}

.site-footer .footer-nav-group h3 {
  color: #c3dcec !important;
}

.site-footer .footer-bottom a {
  color: #ffffff !important;
}

.site-footer .footer-grid a:hover,
.site-footer .footer-navigation a:hover,
.site-footer .footer-grid .footer-nav-group a:hover,
.site-footer .footer-contact-column > a:hover,
.site-footer .footer-grid .footer-contact-item:hover {
  color: #ff8fa3 !important;
}

/* sky-theme.css memakai :not(.brand) sehingga spesifisitasnya lebih tinggi;
   aturan dengan spesifisitas sama agar hover merah tetap berlaku. */
.site-footer .footer-grid a:not(.brand):hover {
  color: #ff8fa3 !important;
}

/* ---------- 2a. Kolom "Temukan Kami": ikon + jarak seragam ---------- */

.site-footer .footer-grid .footer-contact-list {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-grid .footer-contact-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  max-width: none;
  margin: 0;
  color: #dcecf7 !important;
  font-size: 13px;
  line-height: 1.65;
  text-decoration: none;
}

.site-footer .footer-grid a.footer-contact-item {
  width: fit-content;
  border-radius: 8px;
}

.site-footer .footer-grid a.footer-contact-item:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ikon kontak memakai aksen merah dari pita gelombang. */
.site-footer .footer-grid .footer-contact-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: #ff8fa3;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-contact-column > a {
  text-decoration-color: rgba(255, 143, 163, .6);
}

/* ---------- 2b. Navigasi footer: dua sub-kolom ---------- */

/* Kolom navigasi diberi lebar ekstra supaya dua sub-kolom tetap lega. */
.site-footer .footer-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(240px, .9fr);
}

.site-footer .footer-navigation {
  display: block;
}

.site-footer .footer-grid .footer-nav-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px clamp(20px, 3vw, 40px);
  align-items: start;
  width: 100%;
}

.site-footer .footer-grid .footer-nav-group {
  display: grid;
  gap: 1px;
  align-content: start;
}

.site-footer .footer-grid .footer-nav-group h3 {
  margin: 0 0 9px;
  color: #c3dcec !important;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer .footer-grid .footer-nav-group a {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.95;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

/* ---------- 2c. Baris hak cipta ---------- */

/* Biru lebih gelap dari area footer utama + garis pemisah putih transparan. */
.site-footer .footer-bottom,
.site-footer > .copyright {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .2) !important;
  background: #073350 !important;
}

.site-footer .footer-bottom .container,
.site-footer > .copyright {
  justify-content: center;
  text-align: center;
  color: #c3dcec !important;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .01em;
}

.site-footer .footer-bottom a {
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 2d. Logo: wadah putih tetap dipertahankan ---------- */

.site-footer .footer-logo,
.site-footer .footer-logo-frame {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  box-shadow: 0 10px 26px rgba(3, 22, 38, .32) !important;
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer .footer-navigation {
    display: block;
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-footer::before {
    height: clamp(56px, 12vw, 76px);
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    padding-top: clamp(70px, 16vw, 96px);
    padding-bottom: 34px;
  }

  .site-footer .footer-grid .footer-contact-list {
    gap: 11px;
  }

  .site-footer .footer-bottom .container {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-grid .footer-nav-groups {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- 3. Sidebar CBT ---------- */

/* Atribut hidden harus mengalahkan display:flex dari .dashboard-nav a
   (dashboard.html menyembunyikan nav lewat style.display sampai role terpetakan). */
.dashboard-sidebar .dashboard-nav a[hidden] {
  display: none !important;
}

.dashboard-sidebar {
  background: linear-gradient(180deg, var(--surface) 0%, var(--page-2) 100%);
  border-right-color: var(--hairline);
  box-shadow: 4px 0 32px -22px rgba(18, 90, 140, .3);
  scrollbar-color: var(--brand-200) transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: var(--brand-200);
}

.dashboard-sidebar .dashboard-nav a {
  color: var(--ink-3);
}

.dashboard-sidebar .dashboard-nav a::before {
  background: var(--brand-300);
  box-shadow: none;
}

.dashboard-sidebar .dashboard-nav a:hover {
  color: var(--brand-800);
  background: var(--brand-50);
  border-color: var(--brand-200);
}

.dashboard-sidebar .dashboard-nav a:hover::before {
  background: var(--brand-500);
  box-shadow: 0 0 0 4px var(--ring);
}

.dashboard-sidebar .dashboard-nav a:focus-visible {
  outline-color: var(--brand-400);
}

.dashboard-sidebar .dashboard-nav a[aria-current="page"] {
  color: var(--brand-900);
  background: linear-gradient(135deg, var(--brand-100), var(--primary-soft));
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.dashboard-sidebar .dashboard-nav a[aria-current="page"]::before {
  background: var(--brand-500);
  box-shadow: 0 0 0 4px var(--ring);
}

.dashboard-sidebar .dashboard-nav a[aria-current="page"]::after {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: none;
}

.dashboard-sidebar .dashboard-nav a:last-child {
  color: var(--ink-3);
}

.dashboard-sidebar .dashboard-nav a:last-child:hover {
  color: var(--brand-800);
}

.admin-shortcut,
.admin-list-item {
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.admin-shortcut:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.admin-shortcut:focus-visible {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--ring);
}

.admin-shortcut strong,
.admin-list-item strong {
  color: var(--ink);
}

.admin-shortcut span,
.admin-list-item span {
  color: var(--ink-3);
}

.sidebar-heading strong {
  color: var(--ink);
}

.sidebar-heading span {
  color: var(--brand-600);
}

.admin-shortcut-mark {
  color: var(--brand-500);
}

/* ---------- 4. Kotak ajakan (PPDB, beasiswa, biaya) ---------- */

.registration-callout {
  background: linear-gradient(150deg, var(--brand-50) 0%, var(--surface) 55%, var(--sun-100) 130%);
  border-color: var(--hairline-2);
  box-shadow: var(--shadow-md);
}

.registration-callout h3 {
  color: var(--ink);
}

.registration-callout p {
  color: var(--ink-3);
}

.registration-callout .section-marker {
  color: var(--brand-600);
}

.registration-callout .section-marker::after {
  background: linear-gradient(90deg, var(--brand-400), transparent);
}

.registration-callout .section-marker-number {
  color: var(--brand-700);
  background: var(--surface);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-xs);
}

.registration-callout .button {
  color: var(--ink);
  background: var(--sun-500);
  border-color: transparent;
  box-shadow: 0 12px 26px -12px rgba(209, 138, 25, .55);
}

.registration-callout .button:hover {
  background: var(--sun-600);
  color: #fff;
}

/* ---------- 5. Teks beranda yang masih memakai hex gelap ---------- */
/* styles.css memakai warna putih/abu terang langsung (bukan variabel),
   jadi ditulis ulang agar ikut terang. */

.welcome-copy p {
  color: var(--ink-3);
}

.welcome-copy p:first-child,
.welcome-copy p:nth-child(2) {
  color: var(--ink-2);
}

.accreditation-copy > p {
  color: var(--ink-3);
}

.accreditation-copy > p strong {
  color: var(--ink);
}

.accreditation-copy .text-link {
  color: var(--brand-600);
}

.accreditation-copy .text-link span {
  color: var(--brand-500);
}

.accreditation-stats {
  border-top-color: var(--hairline-2);
  border-bottom-color: var(--hairline-2);
}

.accreditation-stat + .accreditation-stat {
  border-left-color: var(--hairline-2);
}

.accreditation-stat span,
.profile-accreditation-label {
  color: var(--ink-3);
}

.accreditation-stat strong {
  color: var(--ink);
}

.feedback-copy > p {
  color: var(--ink-3);
}

.feedback-points li {
  color: var(--ink-3);
}

.feedback-points li::before {
  color: var(--sun-600);
}

.feedback-contact {
  border-top-color: var(--hairline);
}

.feedback-contact span {
  color: var(--ink-3);
}

.feedback-contact a {
  color: var(--brand-600);
}

.feedback-contact a:hover {
  color: var(--brand-800);
}

.feedback-meta {
  color: var(--ink-4);
}

.feedback-reply {
  color: var(--ink-3);
}

.feedback-form-card {
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--shadow-md);
}

.feedback-form-card .form-heading span {
  color: var(--ink);
}

.feedback-form-card .form-heading small {
  color: var(--ink-3);
}

/* ---------- 6. Panel kiri login ---------- */
/* Halaman ini sudah terang; panel merek di sisi kiri ikut disamakan
   agar tidak ada lagi blok biru pekat di tengah tema. */

.auth-visual {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 78%, rgba(144, 209, 248, .32), transparent 34%),
    linear-gradient(155deg, var(--brand-50) 0%, var(--surface) 52%, var(--brand-100) 100%);
}

.auth-visual::before {
  opacity: .5;
  background-image:
    linear-gradient(rgba(33, 150, 220, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 220, .07) 1px, transparent 1px);
}

.auth-brand {
  color: var(--ink);
}

.auth-brand-mark {
  background: var(--surface);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.auth-visual-copy .section-marker {
  color: var(--brand-600);
}

.auth-visual-copy .section-marker::after {
  background: linear-gradient(90deg, var(--brand-400), transparent);
}

.auth-visual-copy .section-marker-number {
  color: var(--brand-700);
  background: var(--surface);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-xs);
}

.auth-visual-copy h1 {
  color: var(--ink);
  text-shadow: none;
}

.auth-visual-copy h1 em {
  color: var(--brand-600);
}

.auth-visual-copy > p:last-child {
  color: var(--ink-3);
}

.auth-highlights div {
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--shadow-xs);
}

.auth-highlights strong {
  color: var(--brand-600);
}

.auth-highlights span {
  color: var(--ink-3);
}

.auth-orbit {
  border-color: rgba(33, 150, 220, .14);
}

/* Pengaman: elemen form tanpa kelas pun tetap terang. */
input,
select,
textarea {
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-4);
}

/* Di layar kecil sidebar menjadi baris horizontal; pil navigasinya
   masih memakai latar gelap dari mobile.css, jadi ditimpa di sini. */
@media (max-width: 900px) {
  .dashboard-sidebar {
    border-bottom-color: var(--hairline);
    box-shadow: 0 6px 18px -12px rgba(18, 90, 140, .3);
  }

  .dashboard-sidebar .dashboard-nav a {
    color: var(--ink-3);
    background: var(--surface);
    border-color: var(--hairline-2);
  }

  .dashboard-sidebar .dashboard-nav a:hover {
    color: var(--brand-800);
    background: var(--brand-50);
    border-color: var(--brand-300);
  }

  .dashboard-sidebar .dashboard-nav a[aria-current="page"] {
    color: var(--brand-900);
    background: linear-gradient(135deg, var(--brand-100), var(--primary-soft));
    border-color: var(--brand-300);
  }
}
