/* ==========================================================================
   PSB Al-Izhar — Penerimaan Siswa Baru
   Tema redesign yang sama dengan website utama Al-Izhar Pondok Labu.
   Berlapis di atas style.css + polish.css tanpa mengubah keduanya.
   ========================================================================== */

.psb {
  --psb-radius: 6px;
  --psb-radius-lg: 12px;
  --psb-shadow: 0 18px 44px rgba(16, 55, 45, 0.1);
  --psb-shadow-sm: 0 8px 22px rgba(16, 55, 45, 0.07);
}

/* ---------- Halaman umum ---------- */
.psb .section {
  padding-top: 92px;
  padding-bottom: 92px;
}
.psb .eyebrow {
  color: #5d7367;
}
.psb a:focus-visible,
.psb button:focus-visible,
.psb input:focus-visible,
.psb select:focus-visible,
.psb textarea:focus-visible {
  outline: 3px solid #9eab52;
  outline-offset: 3px;
}
.psb-header-apply {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 17px;
  border: 1px solid #fff;
  border-radius: 40px;
  background: #fff;
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.psb-header-apply:hover {
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}
.psb-home .header-actions {
  gap: 16px;
}

/* ---------- Hero PSB single ---------- */
.psb-hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  min-height: clamp(720px, 92svh, 900px);
  display: flex;
  align-items: flex-end;
}
.psb-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  animation: psb-hero-in 1.8s cubic-bezier(0.2, 0.65, 0.2, 1) both;
  will-change: transform;
}
@keyframes psb-hero-in {
  from {
    transform: scale(1.08);
    filter: brightness(0.7);
  }
  to {
    transform: scale(1);
    filter: brightness(1);
  }
}
.psb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 39, 31, 0.7) 0%,
    rgba(9, 39, 31, 0.35) 45%,
    rgba(9, 39, 31, 0.92) 100%
  );
}
.psb-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(100px, 12vw, 160px) 8.2% clamp(54px, 7vw, 96px);
}
.psb-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0 0 34px;
  max-width: 14ch;
}
.psb-hero h1 span,
.psb-hero h1 em {
  display: block;
}
.psb-hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: var(--lime);
  letter-spacing: -0.03em;
}
.psb-hero-eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
}

/* Intro animation — sama dengan hero web utama (copy-in) */
.psb-hero-intro {
  animation: psb-copy-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}
.psb-hero-eyebrow {
  animation-delay: 0.15s;
}
.psb-hero-title-1 {
  animation-delay: 0.25s;
}
.psb-hero-title-2 {
  animation-delay: 0.4s;
}
.psb-hero-intro-3 {
  animation-delay: 0.6s;
}

@keyframes psb-copy-in {
  from {
    opacity: 0;
    transform: translateY(36px);
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .psb-hero-intro {
    animation: none;
  }
}

.psb-hero-lead {
  max-width: 560px;
  margin: 0 0 38px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
  color: #e0ebe3;
}
.psb-hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}
.psb-hero .round-link b {
  border-color: rgba(255, 255, 255, 0.6);
}
.psb-hero .round-link:hover b {
  background: var(--lime);
  color: var(--deep);
}

/* Status pill */
.psb-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.psb-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(223, 237, 157, 0.7);
  animation: psb-pulse 2.4s infinite;
}
.psb-badge--dark {
  border-color: rgba(22, 62, 50, 0.2);
  background: rgba(223, 237, 157, 0.28);
  color: var(--ink);
}
.psb-badge--soft {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.psb-badge--soft::before {
  background: #7c903c;
}
@keyframes psb-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(223, 237, 157, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(223, 237, 157, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(223, 237, 157, 0);
  }
}

/* ---------- Fakta ringkas ---------- */
.psb-facts {
  background: var(--deep);
  color: #fff;
  padding: 58px 8.2%;
}
.psb-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.psb-fact strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.psb-fact span {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #cdd9cf;
}

/* ---------- Alur PSB ---------- */
.psb-steps {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  counter-reset: psb-step;
}
.psb-step {
  counter-increment: psb-step;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 26px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s var(--polish-ease, cubic-bezier(0.22, 0.68, 0.2, 1));
}
.psb-step::before {
  content: counter(psb-step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 1px;
  color: #6f8478;
  padding-top: 6px;
}
.psb-step h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.35;
}
.psb-step p {
  margin: 0;
  color: #52665d;
  font-size: 16px;
  line-height: 1.8;
}
.psb-step:hover {
  padding-left: 16px;
  padding-right: 16px;
}
.psb-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--polish-ease, cubic-bezier(0.22, 0.68, 0.2, 1));
}
.psb-step:hover::after {
  transform: scaleY(1);
}

/* ---------- Kartu jenjang ---------- */
.psb-units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.psb-unit {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--psb-radius-lg);
  background: #fff;
  transition:
    transform 0.45s var(--polish-ease, cubic-bezier(0.22, 0.68, 0.2, 1)),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}
.psb-unit:hover {
  transform: translateY(-5px);
  border-color: #b9c8bc;
  box-shadow: var(--psb-shadow);
}
.psb-unit:nth-child(odd) {
  background: linear-gradient(145deg, #fff 0%, #f8faf5 100%);
}
.psb-unit:nth-child(even) {
  background: linear-gradient(145deg, #f7faf2 0%, #fff 100%);
}
.psb-unit:first-child {
  grid-column: 1 / -1;
}
.psb-unit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.psb-unit-code {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.psb-unit-name {
  margin: 10px 0 0;
  font-size: 15px;
  color: #52665d;
}
.psb-unit-meta {
  margin: 0;
  color: #3f564b;
  font-size: 15.5px;
  line-height: 1.8;
}
.psb-unit-meta strong {
  color: var(--ink);
}
.psb-unit-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.psb-unit .text-link {
  gap: 22px;
}

/* ---------- Panel info / biaya ---------- */
.psb-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(34px, 4.4vw, 56px);
  border-radius: var(--psb-radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--psb-shadow-sm);
}
.psb-panel--dark {
  background: var(--deep);
  border-color: transparent;
  color: #fff;
}
.psb-panel--dark .eyebrow {
  color: var(--lime);
}
.psb-panel--dark p {
  color: #d7e3da;
}
.psb-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 46px);
}
.psb-panel p {
  margin: 0 0 18px;
  color: #52665d;
  line-height: 1.85;
}
.psb-panel p:last-child {
  margin-bottom: 0;
}

.psb-bank {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: var(--psb-radius);
  background: #eef3e6;
  border: 1px solid #dbe5cd;
}
.psb-panel--dark .psb-bank {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.psb-bank-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.psb-bank-row span {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6f8478;
}
.psb-panel--dark .psb-bank-row span {
  color: #a9bcae;
}
.psb-bank-row strong {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.psb-panel--dark .psb-bank-row strong {
  color: #fff;
}
.psb-copy {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.psb-copy:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.psb-copy[data-copied="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--deep);
}

/* ---------- Kontak ---------- */
.psb-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.psb-contact {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--psb-radius);
  background: #fff;
}
.psb-contact h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.psb-contact small {
  display: block;
  color: #6f8478;
  font-size: 13px;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.psb-contact a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease;
  overflow-wrap: anywhere;
}
.psb-contact a:hover {
  color: #315d41;
}
.psb-contact a span {
  color: #6f8478;
  display: inline-block;
  min-width: 58px;
}

/* ---------- Ajakan ---------- */
.psb-cta {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  text-align: center;
  padding: clamp(64px, 8vw, 116px) 8.2%;
}
.psb-cta .eyebrow {
  color: var(--lime);
}
.psb-cta h2 {
  margin: 18px auto 36px;
  max-width: 18ch;
  font-size: clamp(34px, 4.6vw, 72px);
}
.psb-cta h2 em {
  color: var(--lime);
}
.psb-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 34px;
  align-items: center;
}

/* ---------- Kelas bantu umum ---------- */
.psb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.psb-prose p {
  margin: 0 0 20px;
  line-height: 1.85;
  color: #405a4e;
}
.psb-prose h2 {
  margin: 40px 0 16px;
  font-size: clamp(26px, 2.6vw, 40px);
}
.psb-prose h3 {
  margin: 28px 0 12px;
  font-size: clamp(20px, 1.8vw, 26px);
}
.psb-prose ul,
.psb-prose ol {
  padding-left: 22px;
  margin: 0 0 20px;
  color: #405a4e;
}
.psb-prose li {
  margin-bottom: 10px;
  line-height: 1.8;
}
.psb-prose strong {
  color: var(--ink);
}
.psb-note {
  padding: 18px 22px;
  border-left: 3px solid var(--lime);
  background: #eef3e6;
  color: #405a4e;
  font-size: 15px;
  line-height: 1.75;
  border-radius: 0 var(--psb-radius) var(--psb-radius) 0;
}
.psb-note strong {
  color: var(--ink);
}

/* Tabel jadwal */
.psb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.psb-table caption {
  text-align: left;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6f8478;
  padding-bottom: 12px;
}
.psb-table th,
.psb-table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}
.psb-table th {
  background: #eef3e6;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.psb-table td:first-child {
  color: #52665d;
}
.psb-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--psb-radius);
}

/* Akordeon */
.psb-accordion {
  border-top: 1px solid var(--line);
}
.psb-accordion details {
  border-bottom: 1px solid var(--line);
}
.psb-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 500;
  color: var(--ink);
}
.psb-accordion summary::-webkit-details-marker {
  display: none;
}
.psb-accordion summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.psb-accordion details[open] summary::after {
  transform: rotate(45deg);
}
.psb-accordion .psb-accordion-body {
  padding: 0 0 26px;
  color: #52665d;
  line-height: 1.85;
  font-size: 16px;
}
.psb-accordion .psb-accordion-body p {
  margin: 0 0 16px;
}
.psb-accordion .psb-accordion-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Formulir ---------- */
.psb-form-shell {
  max-width: 880px;
  margin: 0 auto;
}
.psb-form {
  display: grid;
  gap: 6px;
}
.psb-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.psb-fieldset + .psb-fieldset {
  margin-top: 8px;
}
.psb-fieldset > legend {
  display: block;
  width: 100%;
  padding: 34px 0 6px;
  font-family: var(--display);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 500;
  color: var(--ink);
}
.psb-fieldset-note {
  margin: 0 0 22px;
  color: #6f8478;
  font-size: 15px;
  line-height: 1.7;
}
.psb-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}
.psb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.psb-field--full {
  grid-column: 1 / -1;
}
.psb-field > label {
  font-size: 14px;
  font-weight: 500;
  color: #3f564b;
}
.psb-field .psb-hint {
  font-size: 12.5px;
  color: #7c8f83;
  line-height: 1.5;
}
.psb-field input,
.psb-field select,
.psb-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8d0;
  border-radius: var(--psb-radius);
  padding: 13px 15px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.psb-field textarea {
  min-height: 120px;
  resize: vertical;
}
.psb-field input:focus,
.psb-field select:focus,
.psb-field textarea:focus {
  outline: none;
  border-color: #7c903c;
  box-shadow: 0 0 0 4px rgba(124, 144, 60, 0.16);
}
.psb-field input[aria-invalid="true"],
.psb-field select[aria-invalid="true"],
.psb-field textarea[aria-invalid="true"] {
  border-color: #b4453b;
  box-shadow: 0 0 0 4px rgba(180, 69, 59, 0.12);
}
.psb-error {
  font-size: 12.5px;
  color: #a3372e;
  min-height: 1em;
}

/* Pilihan kartu */
.psb-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.psb-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid #cfd8d0;
  border-radius: var(--psb-radius);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.psb-choice:hover {
  border-color: #9fb08f;
}
.psb-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.psb-choice strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.psb-choice span {
  font-size: 13px;
  color: #6f8478;
  line-height: 1.5;
}
.psb-choice:has(input:checked) {
  border-color: var(--ink);
  background: #eef3e6;
  box-shadow: 0 0 0 3px rgba(22, 62, 50, 0.08);
}
.psb-choice:has(input:focus-visible) {
  outline: 3px solid #9eab52;
  outline-offset: 3px;
}

/* Tombol toggle kata sandi */
.psb-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6f8478;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.25s ease;
}
.psb-pass-toggle:hover {
  color: var(--ink);
}
.psb-field--pass {
  position: relative;
}
.psb-field--pass input {
  padding-right: 96px;
}

/* Persetujuan */
.psb-consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--psb-radius);
  background: #fff;
  font-size: 14.5px;
  line-height: 1.7;
  color: #405a4e;
}
.psb-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ink);
}

/* Progress + navigasi form */
.psb-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.psb-progress button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: #fff;
  color: #6f8478;
  font-size: 13px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.psb-progress button b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef3e6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.psb-progress button[aria-current="step"] {
  border-color: var(--ink);
  background: var(--deep);
  color: #fff;
}
.psb-progress button[aria-current="step"] b {
  background: var(--lime);
  color: var(--deep);
}
.psb-form-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.psb-form-nav .psb-nav-right {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.psb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 13px 28px;
  border: 1px solid var(--ink);
  border-radius: 40px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.psb-button:hover {
  background: var(--deep);
  transform: translateY(-2px);
}
.psb-button--ghost {
  background: transparent;
  color: var(--ink);
}
.psb-button--ghost:hover {
  background: #eef3e6;
  transform: none;
}
.psb-button[disabled],
.psb-button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.psb-button--full {
  width: 100%;
}

.psb-alert {
  margin: 22px 0 0;
  padding: 18px 22px;
  border-radius: var(--psb-radius);
  font-size: 15px;
  line-height: 1.7;
}
.psb-alert[data-tone="success"] {
  background: #e7f2d8;
  border: 1px solid #c4d9a2;
  color: #33512c;
}
.psb-alert[data-tone="error"] {
  background: #fbe9e7;
  border: 1px solid #e7b6b0;
  color: #7d2b23;
}
.psb-alert[hidden] {
  display: none !important;
}

/* Ringkasan hasil */
.psb-summary {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--psb-radius);
  overflow: hidden;
  background: #fff;
}
.psb-summary-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) 1.4fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
}
.psb-summary-row:last-child {
  border-bottom: 0;
}
.psb-summary-row span {
  color: #6f8478;
}
.psb-summary-row strong {
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- Autentikasi (login) ---------- */
.psb-auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100svh - 88px);
}
.psb-auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  padding: clamp(40px, 5vw, 76px) 8.2%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.psb-auth-aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.psb-auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 39, 31, 0.75), rgba(9, 39, 31, 0.95));
}
.psb-auth-aside > * {
  position: relative;
  z-index: 2;
}
.psb-auth-aside h2 {
  font-size: clamp(30px, 3.4vw, 54px);
  margin: 0 0 18px;
}
.psb-auth-aside p {
  color: #d7e3da;
  max-width: 46ch;
  line-height: 1.8;
}
.psb-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 5vw, 80px) 6%;
  background: var(--paper);
}
.psb-auth-card {
  width: min(440px, 100%);
}
.psb-auth-card h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 46px);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.psb-auth-card > p {
  color: #52665d;
  margin: 0 0 32px;
  line-height: 1.75;
}
.psb-auth-form {
  display: grid;
  gap: 18px;
}
.psb-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.psb-auth-row a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.psb-auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #7c8f83;
  font-size: 13px;
  margin: 4px 0;
}
.psb-auth-divider::before,
.psb-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Halaman jenjang ---------- */
.psb-unit-hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  padding: clamp(48px, 6vw, 82px) 8.2% clamp(46px, 6vw, 78px);
}
.psb-unit-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.psb-unit-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 39, 31, 0.9), rgba(9, 39, 31, 0.62));
}
.psb-unit-hero-inner {
  position: relative;
  z-index: 2;
}
.psb-unit-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.75);
}
.psb-unit-hero .breadcrumbs a {
  color: #fff;
}
.psb-unit-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 90px);
  letter-spacing: -0.05em;
  line-height: 1.06;
  margin: 26px 0 20px;
}
.psb-unit-hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: var(--lime);
}
.psb-unit-hero p {
  max-width: 60ch;
  color: #d7e3da;
  line-height: 1.8;
  margin: 0 0 30px;
}
.psb-unit-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  align-items: center;
}

.psb-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.psb-info-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--psb-radius);
  background: #fff;
}
.psb-info-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}
.psb-info-card p,
.psb-info-card li {
  color: #52665d;
  line-height: 1.8;
  font-size: 15px;
}
.psb-info-card ul {
  margin: 0;
  padding-left: 20px;
}
.psb-info-card li {
  margin-bottom: 8px;
}

.psb-unitpage .psb-unit-hero {
  padding-top: calc(88px + clamp(24px, 4vw, 56px));
}

/* Tautan unit */
.psb-unit-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.psb-unit-nav a {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 40px;
  font-size: 14px;
  background: var(--ink);
  color: #fff;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.psb-unit-nav a:hover,
.psb-unit-nav a[aria-current="page"] {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Header hijau PSB homepage ---------- */
.psb-home .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 88px;
  padding: 18px 4.6%;
  color: #fff;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  opacity: 0;
  transform: translateY(-100%);
  animation: psb-header-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  transition:
    height 0.4s var(--polish-ease, cubic-bezier(0.22, 0.68, 0.2, 1)),
    padding 0.4s var(--polish-ease, cubic-bezier(0.22, 0.68, 0.2, 1)),
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
@keyframes psb-header-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.psb-home .header.is-scrolled {
  height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--deep);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 26px rgba(9, 39, 31, 0.18);
}
.psb-home .header .brand img {
  filter: none;
  transition: width 0.4s var(--polish-ease), height 0.4s var(--polish-ease), filter 0.35s ease;
}
.psb-home .header.is-scrolled .brand img {
  width: 27px;
  height: 36px;
}
.psb-home .header .brand > span {
  font-size: 25px;
  transition: font-size 0.4s var(--polish-ease);
}
.psb-home .header.is-scrolled .brand > span {
  font-size: 21px;
}
.psb-home .header .desktop-nav a {
  position: relative;
}
.psb-home .header .desktop-nav a:after {
  content: "";
  display: block;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.psb-home .header .desktop-nav a:hover:after {
  transform: scaleX(1);
}
.psb-home .header .portal {
  border-color: rgba(255, 255, 255, 0.44);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.psb-home .header .portal:hover,
.psb-home .header .portal:focus-visible {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: #fff;
}
.psb-home .header a:focus-visible,
.psb-home .header button:focus-visible {
  outline-color: var(--lime);
}
.psb-home .psb-header-apply {
  background: #fff;
  color: var(--deep);
  border-color: #fff;
}
.psb-home .psb-header-apply:hover {
  background: var(--lime);
  border-color: var(--lime);
}
.psb-home #menu-open {
  background: transparent;
  color: inherit;
  border: 0;
}

/* ---------- Header hijau solid subpage PSB (masuk, daftar, dll) ---------- */
.psb-sub .header,
.psb-sub .header.is-scrolled,
.nav-ready .psb-sub .header,
.nav-ready .inner-page.psb-sub .header {
  color: #fff;
  background: var(--deep);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 22px rgba(16, 55, 45, 0.2);
}
.psb-sub .header .brand img,
.psb-sub .header.is-scrolled .brand img,
.inner-page.psb-sub .header.is-scrolled .brand img {
  filter: none;
}
.psb-sub .header .portal,
.psb-sub .header.is-scrolled .portal {
  border-color: rgba(255, 255, 255, 0.44);
}
.psb-sub .header .portal:hover,
.psb-sub .header .portal:focus-visible,
.psb-sub .header.is-scrolled .portal:hover,
.psb-sub .header.is-scrolled .portal:focus-visible {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: #fff;
}
.psb-sub .header a:focus-visible,
.psb-sub .header button:focus-visible,
.psb-sub .header.is-scrolled a:focus-visible,
.psb-sub .header.is-scrolled button:focus-visible {
  outline-color: var(--lime);
}
/* Navbar statis di halaman masuk — tidak mengikuti scroll */
.nav-ready .inner-page.psb-sub {
  padding-top: 0;
}
.nav-ready .psb-sub .header,
.nav-ready .inner-page.psb-sub .header,
.psb-sub .header {
  position: static;
}

/* ---------- Alur list ---------- */
.psb-alur-list {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-top: 26px;
}
.psb-alur-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--psb-radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}
.psb-alur-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---------- Sambutan section ---------- */
.psb-welcome {
  position: relative;
  overflow: hidden;
  background-color: var(--deep);
  color: #fff;
  padding: clamp(70px, 9vw, 120px) 8.2%;
}
.psb-welcome-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.psb-welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 39, 31, 0.92) 0%,
    rgba(9, 39, 31, 0.75) 100%
  );
}
.psb-welcome-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.psb-welcome h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.psb-welcome h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: var(--lime);
}
.psb-welcome p {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.95;
  color: #d7e3da;
  margin: 0 0 18px;
}
.psb-welcome ol {
  padding-left: 22px;
  margin: 22px 0 0;
  color: #d7e3da;
  font-size: 15px;
  line-height: 1.9;
}
.psb-welcome li {
  margin-bottom: 8px;
}

/* ---------- Jenjang cards (landing) ---------- */
.psb-jenjang {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.psb-jenjang-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  border-radius: var(--psb-radius-lg);
  background: var(--deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  isolation: isolate;
  transition:
    transform 0.45s var(--polish-ease, cubic-bezier(0.22, 0.68, 0.2, 1)),
    box-shadow 0.45s ease;
}
.psb-jenjang-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--psb-shadow);
}
.psb-jenjang-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: -2;
  transition: opacity 0.45s ease, transform 0.7s ease;
}
.psb-jenjang-card:hover img {
  opacity: 0.55;
  transform: scale(1.05);
}
.psb-jenjang-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 39, 31, 0.2) 0%,
    rgba(9, 39, 31, 0.92) 100%
  );
  z-index: -1;
}
.psb-jenjang-card span {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 8px;
}
.psb-jenjang-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  margin: 0 0 10px;
}
.psb-jenjang-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #d7e3da;
  margin: 0 0 18px;
}
.psb-jenjang-card .text-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.psb-jenjang-card:nth-child(-n+2) {
  grid-column: span 3;
  min-height: 320px;
}
.psb-jenjang-card:nth-child(n+3) {
  grid-column: span 2;
  min-height: 300px;
}

/* ---------- Animasi umum ---------- */
.psb-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.68, 0.2, 1),
    transform 0.9s cubic-bezier(0.22, 0.68, 0.2, 1);
  will-change: transform, opacity;
}
.psb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.psb-reveal-delay-1 { transition-delay: 0.1s; }
.psb-reveal-delay-2 { transition-delay: 0.2s; }
.psb-reveal-delay-3 { transition-delay: 0.3s; }
.psb-reveal-delay-4 { transition-delay: 0.4s; }

@keyframes psb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.psb-float {
  animation: psb-float 4s ease-in-out infinite;
}

/* ---------- Unit hero dengan foto asli ---------- */
.psb-unit-hero-photo {
  opacity: 0.55;
  object-position: center top;
}

/* ---------- Kontak utama ---------- */
.psb-contact-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items: center;
}
.psb-contact-hero .psb-contact-block {
  padding: 28px;
  border-radius: var(--psb-radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--psb-shadow-sm);
}
.psb-contact-hero .psb-contact-block h3 {
  margin: 0 0 16px;
  font-size: 22px;
}
.psb-contact-hero .psb-contact-block a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
}

/* Cegah flash putih saat transisi halaman */
html {
  background: var(--deep);
}
.psb {
  background: var(--paper);
}
.psb.psb-home {
  background: var(--deep);
}
.psb main {
  background: var(--paper);
  animation: psb-page-in 0.55s cubic-bezier(0.22, 0.68, 0.2, 1) both;
}
@keyframes psb-page-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* View transition yang lebih halus untuk navigasi antar halaman PSB */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: psb-vt-out 0.22s ease both;
}
::view-transition-new(root) {
  animation: psb-vt-in 0.4s cubic-bezier(0.22, 0.68, 0.2, 1) both;
}
@keyframes psb-vt-out {
  to {
    opacity: 0;
  }
}
@keyframes psb-vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .psb main {
    animation: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {
  .psb-units {
    grid-template-columns: minmax(0, 1fr);
  }
  .psb-unit:first-child {
    grid-column: auto;
  }
  .psb-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .psb-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .psb-auth {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .psb-auth-aside {
    padding: 48px 6%;
  }
}
@media (max-width: 760px) {
  .psb .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }
  .psb-hero {
    min-height: 640px;
  }
  .psb-hero-inner {
    padding: 90px 6% 64px;
  }
  .psb-hero h1 {
    font-size: clamp(40px, 11vw, 64px);
  }
  .psb-header-apply {
    display: none;
  }
  .psb-alur-item {
    font-size: 13px;
  }
  .psb-jenjang {
    grid-template-columns: minmax(0, 1fr);
  }
  .psb-jenjang-card:nth-child(-n+2),
  .psb-jenjang-card:nth-child(n+3) {
    grid-column: auto;
    min-height: 280px;
  }
  .psb-contact-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .psb-facts {
    padding: 44px 6%;
  }
  .psb-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .psb-step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }
  .psb-step p {
    grid-column: 2;
    margin-top: 10px;
  }
  .psb-step:hover {
    padding-left: 8px;
    padding-right: 8px;
  }
  .psb-unit {
    padding: 26px 22px 24px;
  }
  .psb-panel {
    padding: 26px 22px;
  }
  .psb-contacts {
    grid-template-columns: minmax(0, 1fr);
  }
  .psb-grid-2,
  .psb-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .psb-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .psb-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .psb-progress {
    gap: 8px;
  }
  .psb-progress button span {
    display: none;
  }
  .psb-progress button {
    padding: 8px;
  }
  .psb-form-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .psb-form-nav .psb-nav-right {
    margin-left: 0;
    flex-direction: column;
  }
  .psb-button {
    width: 100%;
  }
  .psb-summary-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .psb-cta {
    padding: 58px 6%;
  }
}
@media (max-width: 420px) {
  .psb-choices {
    grid-template-columns: minmax(0, 1fr);
  }
  .psb-hero-actions {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psb-badge::before {
    animation: none;
  }
  .psb-unit,
  .psb-button,
  .psb-step {
    transition: none;
  }
}
