/* =========================================================
   Cendekia Nusantara — Page-specific layouts
   ========================================================= */

/* ---------- Home ---------- */
.home-material .material-card {
  min-height: 238px;
}

.home-news {
  display: grid;
  gap: 1.1rem;
}

.home-cta {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
}

.home-cta + .site-footer {
  margin-top: 0;
}

/* ---------- Materi page ---------- */
.materi-page .page-hero {
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.materi-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.results-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.results-label b {
  color: var(--ink);
  font-weight: 800;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.results-sort select {
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7794' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  appearance: none;
  outline: none;
  cursor: pointer;
}

.materi-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.materi-footnote .ico {
  width: 14px;
  height: 14px;
  color: var(--mint);
}

/* ---------- Ujian page ---------- */
.exam-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.overview-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.overview-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: var(--tone-soft, var(--brand-soft));
  color: var(--tone, var(--brand));
}

.overview-card__icon .ico {
  width: 19px;
  height: 19px;
}

.overview-card strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.overview-card span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.exam-panel--live {
  margin-bottom: 2rem;
  background: linear-gradient(120deg, #0a1533 0%, #152a68 58%, #1e3b8c 100%);
}

.live-exam__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
}

.live-exam__side .countdown {
  margin-top: 0.75rem;
}

.live-exam__side .btn {
  margin-top: 1rem;
}

.live-exam__side-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.66rem;
  color: #9fb0d6;
}

.live-exam__side-note .ico {
  width: 13px;
  height: 13px;
}

.live-exam__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb0d6;
}

.live-exam__label .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7d78;
  box-shadow: 0 0 0 4px rgba(255, 125, 120, 0.18);
  animation: pulse 1.8s infinite;
}

.exam-toolbar {
  margin-bottom: 1.4rem;
}

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

.exam-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.exam-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tone, var(--brand)) 30%, var(--line));
  box-shadow: var(--shadow-md);
}

.exam-card--done {
  background: linear-gradient(170deg, var(--surface), var(--surface-2));
}

.exam-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status--live {
  background: var(--coral-soft);
  color: var(--coral);
}

.status--live .dot {
  animation: pulse 1.6s infinite;
}

.status--open {
  background: var(--mint-soft);
  color: var(--mint);
}

.status--scheduled {
  background: var(--amber-soft);
  color: var(--amber);
}

.status--done {
  background: var(--surface-2);
  color: var(--muted);
}

.exam-card h3 {
  margin-top: 0.95rem;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.exam-card__subject {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.exam-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.exam-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.exam-card__meta .ico {
  width: 13px;
  height: 13px;
  opacity: 0.85;
}

.exam-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.exam-card__deadline {
  font-size: 0.67rem;
  color: var(--muted);
  line-height: 1.4;
}

.exam-score {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.exam-score span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
}

.exam-score strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--mint);
}

.exam-score--amber strong {
  color: var(--amber);
}

.exam-rules {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.exam-rules .subject-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.exam-rules h4 {
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.exam-rules p {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Exam confirm sheet */
.confirm-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
}

.confirm-panel .subject-icon {
  margin: 0 auto 0.7rem;
}

.confirm-panel h4 {
  font-size: 1rem;
}

.confirm-panel p {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.confirm-panel__stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.confirm-panel__stats b {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
}

.confirm-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.confirm-actions .btn {
  flex: 1;
}

/* ---------- Berita page ---------- */
.berita-feature {
  margin-bottom: 1.1rem;
}

.berita-feature .news-feature__media {
  min-height: 400px;
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.news-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.news-filters .results-label {
  margin-left: auto;
}

.news-filters .search {
  background: var(--surface);
  border: 1px solid var(--line);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.gallery-head h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.3rem);
}

.gallery-head p {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.gallery-page-grid {
  grid-auto-rows: 190px;
}

.newsletter-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, var(--surface), var(--brand-soft));
}

.newsletter-band h3 {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  letter-spacing: -0.012em;
}

.newsletter-band p {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.newsletter-band__form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  min-width: min(360px, 100%);
}

.newsletter-band__form input {
  width: 100%;
  min-width: 0;
  padding-left: 0.8rem;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
}

.newsletter-band__form input::placeholder {
  color: var(--muted);
}

/* ---------- Responsive: pages ---------- */
@media (max-width: 1060px) {
  .exam-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-page-grid {
    grid-auto-rows: 165px;
  }
}

@media (max-width: 900px) {
  .exam-panel--live {
    grid-template-columns: 1fr;
  }

  .live-exam__side {
    padding: 1.1rem;
  }

  .berita-feature .news-feature__media {
    min-height: 260px;
  }

  .newsletter-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .newsletter-band__form {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .exam-grid {
    grid-template-columns: 1fr;
  }

  .exam-overview {
    grid-template-columns: 1fr 1fr;
  }

  .overview-card {
    padding: 0.8rem;
  }

  .overview-card__icon {
    width: 34px;
    height: 34px;
  }

  .overview-card strong {
    font-size: 1.05rem;
  }

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

  .gallery-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .gallery-page-grid {
    grid-auto-rows: 145px;
  }

  .news-filters {
    align-items: stretch;
  }

  .news-filters .results-label {
    display: none;
  }

  .news-filters .chip-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .news-filters .chip-row::-webkit-scrollbar {
    display: none;
  }

  .news-filters .chip {
    flex: none;
  }

  .newsletter-band {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .exam-overview {
    grid-template-columns: 1fr;
  }

  .gallery-page-grid {
    grid-auto-rows: 125px;
  }

  .materi-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.news-filters .results-sort {
  flex: none;
}

/* ---------- Kelas & Jurusan ---------- */
.jurusan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.jurusan-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
}

/* ---------- Tentang & Pendaftaran ---------- */
.ppdb-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: start; }
.ppdb-steps { display: grid; gap: 1rem; counter-reset: s; list-style: none; padding: 0; }
.ppdb-steps li { counter-increment: s; position: relative; padding-left: 3rem; }
.ppdb-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.ppdb-steps strong { display: block; }
.ppdb-steps span { font-size: 0.9rem; color: var(--muted); }
.ppdb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.ppdb-form .span-2 { grid-column: span 2; }
.ppdb-form .hp { position: absolute; left: -9999px; }
.ppdb-ok { padding: 1.25rem; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid var(--brand); }
.ppdb-ok strong { font-size: 1.4rem; display: block; margin: 0.25rem 0; }
@media (max-width: 800px) {
  .ppdb-layout { grid-template-columns: 1fr; }
  .ppdb-form { grid-template-columns: 1fr; }
  .ppdb-form .span-2 { grid-column: span 1; }
}



/* ---------- Tentang (halaman profil) ---------- */
.about-cover { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--line); box-shadow: var(--shadow-lg, 0 24px 60px rgba(13, 26, 56, 0.18)); }
.about-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 14, 36, 0.45)); }
.about-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: -3.2rem 1.5rem 3.5rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg, 0 18px 48px rgba(13, 26, 56, 0.14)); }
.about-stats.no-cover { margin-top: 0; }
.about-stat { display: flex; align-items: center; gap: 0.85rem; padding: 1.1rem 1.2rem; }
.about-stat + .about-stat { border-left: 1px solid var(--line); }
.about-stat strong { display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.about-stat span.lbl { font-size: 0.82rem; color: var(--muted); }
.about-icon { display: inline-grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #8b5cf6)); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 32%, transparent); }
.about-icon .ico { width: 22px; height: 22px; }
.about-head { margin-bottom: 1.4rem; }
.about-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin-top: 0.4rem; }
.about-block { margin-bottom: 4rem; }
.about-vm { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; margin-bottom: 4rem; }
.about-visi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.9rem; padding: 2rem; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #2f4cf6 0%, #5b5bff 55%, #8b6cff 100%); box-shadow: 0 24px 50px -18px rgba(70, 80, 255, 0.55); }
.about-visi::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, 0.12); }
.about-visi .about-icon { background: rgba(255, 255, 255, 0.2); box-shadow: none; }
.about-visi h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; }
.about-visi p { font-size: 1.25rem; line-height: 1.55; font-weight: 600; letter-spacing: -0.01em; }
.about-misi { padding: 2rem; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-sm); }
.about-misi h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.2rem; margin-bottom: 1.1rem; }
.about-misi ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; counter-reset: m; }
.about-misi li { counter-increment: m; display: flex; gap: 0.85rem; align-items: flex-start; color: var(--ink-soft); line-height: 1.6; }
.about-misi li::before { content: counter(m); flex: none; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.82rem; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.about-fac { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.about-fac:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 18px 40px -16px rgba(40, 60, 200, 0.28); }
.about-fac h3 { font-size: 1.05rem; }
.about-fac p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.about-photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 0.85rem; margin-bottom: 1.4rem; }
.about-photos figure { margin: 0; position: relative; overflow: hidden; border-radius: 20px; background: var(--line); box-shadow: var(--shadow-sm); }
.about-photos figure:first-child { grid-column: span 2; grid-row: span 2; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.about-photos figure:hover img { transform: scale(1.06); }
.about-photos figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem 0.8rem; color: #fff; font-size: 0.82rem; font-weight: 600; background: linear-gradient(transparent, rgba(8, 14, 36, 0.78)); }
.about-cta { margin-bottom: 0; }
@media (max-width: 900px) {
  .about-vm { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-photos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .about-stats { margin-inline: 0.75rem; }
  .about-stat + .about-stat { border-left: 0; }
  .about-cover { aspect-ratio: 16 / 9; border-radius: 22px; }
}

@media (max-width: 520px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0.9rem 0.35rem 2.5rem; }
  .about-stat { gap: 0.6rem; padding: 0.95rem 0.8rem; }
  .about-stat:nth-child(even) { border-left: 1px solid var(--line); }
  .about-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about-stat strong { font-size: 1.35rem; }
  .about-stat span.lbl { font-size: 0.74rem; line-height: 1.3; }
  .about-icon { width: 2.35rem; height: 2.35rem; border-radius: 11px; }
  .about-icon .ico { width: 18px; height: 18px; }
}

/* ---------- Poles umum halaman publik ---------- */
.page-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, var(--bg)) 0%, var(--bg) 100%); }
.page-hero::after { content: ""; position: absolute; right: 0; top: 0; width: 46%; height: 100%; background-image: radial-gradient(color-mix(in srgb, var(--brand) 28%, transparent) 1.3px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(270deg, #000, transparent 85%); mask-image: linear-gradient(270deg, #000, transparent 85%); opacity: 0.55; pointer-events: none; }
.page-hero .eyebrow { padding: 0.32rem 0.8rem; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.page-hero h1 { background: linear-gradient(120deg, var(--ink) 40%, var(--brand) 120%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.btn-primary { transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--brand) 60%, transparent); }
.material-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(40, 60, 200, 0.3); }
.home-cta .cta-band, .about-cta { box-shadow: 0 30px 60px -28px rgba(70, 80, 255, 0.6); }
.stat-strip .stat strong { background: linear-gradient(120deg, var(--ink), var(--brand)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 1rem; } .stat:nth-child(odd) { border-left: 0; padding-left: 0.75rem; } }

/* Pendaftaran */
.ppdb-aside { position: relative; overflow: hidden; padding: 2rem; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #2f4cf6 0%, #5b5bff 55%, #8b6cff 100%); box-shadow: 0 24px 50px -18px rgba(70, 80, 255, 0.55); }
.ppdb-aside::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 230px; height: 230px; border-radius: 50%; border: 38px solid rgba(255, 255, 255, 0.12); }
.ppdb-aside h2 { color: #fff; margin: 0.6rem 0 1.4rem !important; font-size: 1.5rem; }
.ppdb-aside .ppdb-steps { position: relative; z-index: 1; }
.ppdb-aside .ppdb-steps li::before { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.ppdb-aside .ppdb-steps span { color: rgba(255, 255, 255, 0.82); }
.ppdb-card { padding: 1.75rem; }
.ppdb-card__head { margin-bottom: 1.25rem; }
.ppdb-card__head h2 { font-size: 1.35rem; }
.ppdb-card__head p { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

/* ===== Situs publik: bahasa visual sama dengan login & panel admin ===== */
:root{--grad-login:linear-gradient(150deg,#0b1738 0%,#1a2b7c 48%,#2d4cf2 100%);--grad-bar:linear-gradient(90deg,var(--brand),var(--brand-2) 55%,var(--mint))}

/* Header: garis gradien tipis + logo gradien */
.site-header{border-bottom:0;box-shadow:0 1px 0 var(--line)}
.site-header::after{content:"";position:absolute;inset:auto 0 -1px;height:2px;background:var(--grad-bar);opacity:.55;pointer-events:none}
.brand-mark{background:linear-gradient(145deg,#6c5cff,#2d4cf2)}

/* Hero beranda: panel gradien biru tua dengan pola titik */
body[data-page="home"] .hero::before{display:none}
body[data-page="home"] .hero-grid{position:relative;isolation:isolate;overflow:clip;
  padding:clamp(1.5rem,4vw,3.2rem);border-radius:var(--radius-lg);color:#eef2ff;
  background:var(--grad-login);box-shadow:var(--shadow-md);gap:clamp(1.5rem,4vw,3rem)}
body[data-page="home"] .hero-grid::before{content:"";position:absolute;z-index:-1;right:-12%;bottom:-40%;width:520px;height:520px;
  border-radius:50%;background:radial-gradient(circle,rgba(108,92,255,.65),transparent 66%)}
body[data-page="home"] .hero-grid::after{content:"";position:absolute;z-index:-1;inset:0;opacity:.45;
  background-image:radial-gradient(rgba(255,255,255,.18) 1px,transparent 1px);background-size:22px 22px;
  -webkit-mask-image:linear-gradient(180deg,transparent 6%,#000 46%,transparent 96%);mask-image:linear-gradient(180deg,transparent 6%,#000 46%,transparent 96%)}
body[data-page="home"] .hero h1{color:#fff}
body[data-page="home"] .hero h1 em{color:#aebcff}
body[data-page="home"] .hero h1 em::after{display:none}
body[data-page="home"] .hero-lead{color:rgba(238,242,255,.78)}
body[data-page="home"] .hero-badge{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.12);box-shadow:none;color:#fff}
body[data-page="home"] .hero-badge b{background:rgba(255,255,255,.16);color:#fff}
body[data-page="home"] .hero-actions .btn-primary{background:#fff;color:#1a2b7c;box-shadow:none}
body[data-page="home"] .hero-actions .btn-ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:#fff}
body[data-page="home"] .hero-media::before{display:none}

/* Judul seksi: label kecil berbentuk pil */
.section-head .eyebrow,.gallery-head .eyebrow{display:inline-block;padding:.3rem .7rem;border-radius:999px;background:var(--brand-soft)}

/* Kartu: garis gradien di atas, sudut lebih bulat */
.news-card,.news-feature{position:relative;overflow:clip;border-radius:var(--radius-lg)}
.news-card::before,.news-feature::before{content:"";position:absolute;inset:0 0 auto;height:4px;z-index:2;background:var(--grad-bar)}

/* Banner ajakan & footer */
.cta-band{background:var(--grad-login);border-radius:var(--radius-lg)}
.site-footer{background:linear-gradient(170deg,#0b1738 0%,#14226b 100%)}
.site-footer::after{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--grad-bar)}
.about-fac{position:relative;overflow:clip;border-radius:var(--radius-lg)}
.about-fac::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--grad-bar)}

/* ===== Header halaman dalam (Tentang, Berita, dll.): panel gradien gaya login ===== */
.page-hero{background:none;border-bottom:0;overflow:visible;padding-block:clamp(1.2rem,2.5vw,2rem) 0}
.page-hero::before,.page-hero::after{display:none}
.page-hero__inner{isolation:isolate;overflow:clip;align-items:center;
  padding:clamp(1.5rem,4vw,2.8rem);border-radius:var(--radius-lg);color:#eef2ff;
  background:var(--grad-login);box-shadow:var(--shadow-md)}
.page-hero__inner::before{content:"";position:absolute;z-index:-1;right:-8%;bottom:-70%;width:460px;height:460px;
  border-radius:50%;background:radial-gradient(circle,rgba(108,92,255,.65),transparent 66%)}
.page-hero__inner::after{content:"";position:absolute;z-index:-1;inset:0;opacity:.45;
  background-image:radial-gradient(rgba(255,255,255,.18) 1px,transparent 1px);background-size:22px 22px;
  -webkit-mask-image:linear-gradient(90deg,transparent 25%,#000 100%);mask-image:linear-gradient(90deg,transparent 25%,#000 100%)}
.page-hero h1{background:none;-webkit-text-fill-color:#fff;color:#fff}
.page-hero .lead{color:rgba(238,242,255,.78)}
.page-hero .breadcrumb,.page-hero .breadcrumb a{color:rgba(238,242,255,.7)}
.page-hero .breadcrumb a:hover{color:#fff}
.page-hero .breadcrumb span:last-child{color:#fff}
.page-hero .eyebrow{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);color:#fff}
.page-hero .eyebrow::before{background:#aebcff}
.page-hero .badge,.page-hero .btn-ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}
.page-hero .btn-primary{background:#fff;color:#1a2b7c;box-shadow:none}

/* Halaman Tentang */
.about-visi{background:var(--grad-login);border-radius:var(--radius-lg)}
.about-misi,.about-stats,.about-cover{border-radius:var(--radius-lg)}
.about-misi,.about-stats{position:relative;overflow:clip;box-shadow:var(--shadow-md)}
.about-misi::before,.about-stats::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--grad-bar)}
.about-icon{background:linear-gradient(145deg,#6c5cff,#2d4cf2)}
.about-photos figure{border-radius:var(--radius-lg)}

/* Seksi Guru kami */
.teacher-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1.1rem}
.teacher-card{position:relative;overflow:clip;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);
  box-shadow:var(--shadow-sm);transition:transform .3s var(--ease),box-shadow .3s}
.teacher-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;z-index:2;background:var(--grad-bar)}
.teacher-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.teacher-card img,.teacher-card__ph{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:top}
.teacher-card__ph{display:grid;place-items:center;font-size:2.6rem;font-weight:800;color:#fff;background:var(--grad-login)}
.teacher-card__body{display:grid;gap:.5rem;justify-items:start;padding:1rem 1.1rem 1.2rem}
.teacher-card h3{font-size:1.02rem;line-height:1.3}

/* Sejarah kepala sekolah: garis waktu */
.about-timeline{list-style:none;margin:0;padding:0 0 0 1.6rem;position:relative;display:grid;gap:1rem}
.about-timeline::before{content:"";position:absolute;left:.45rem;top:.5rem;bottom:.5rem;width:3px;border-radius:3px;background:var(--grad-bar);opacity:.5}
.about-timeline__item{position:relative}
.about-timeline__dot{position:absolute;left:-1.6rem;top:1.25rem;width:15px;height:15px;border-radius:50%;background:var(--surface);border:3px solid var(--brand)}
.about-timeline__item.is-now .about-timeline__dot{background:var(--brand);box-shadow:0 0 0 5px color-mix(in srgb,var(--brand) 20%,transparent)}
.about-timeline__card{position:relative;overflow:clip;display:grid;gap:.45rem;justify-items:start;padding:1.15rem 1.3rem;
  border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm)}
.about-timeline__item.is-now .about-timeline__card{border-color:color-mix(in srgb,var(--brand) 35%,var(--line));box-shadow:var(--shadow-md)}
.about-timeline__card h3{font-size:1.08rem}
.about-timeline__card p{font-size:.92rem;line-height:1.6;color:var(--muted)}
.about-timeline__card{grid-auto-flow:column;grid-template-columns:auto 1fr;align-items:center;justify-items:stretch;gap:1rem}
.about-timeline__card:not(:has(.about-timeline__photo)){grid-template-columns:1fr}
.about-timeline__photo{width:76px;height:76px;border-radius:50%;object-fit:cover;object-position:top;border:3px solid var(--surface);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 40%,transparent)}
.about-timeline__text{display:grid;gap:.45rem;justify-items:start;min-width:0}
