/* =========================================================
   site.css: kerangka situs resmi (menu utama, breadcrumb,
   hero halaman, kotak fakta, kartu tautan, footer 4 kolom).
   Dipakai di semua halaman, di atas base/formal/eyp.
   ========================================================= */

/* Lewati ke isi */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #FFFFFF; color: var(--navy); font-weight: 800; box-shadow: 0 8px 24px -10px rgba(0,0,0,.4); }
.skip-link:focus { left: 16px; }

/* ---------- Header dan menu utama ---------- */
.site-header .bar { position: static; min-height: 70px; }
.site-header .brand-sub { color: #4A5468; }
.site-nav { display: none; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-list > li > a, .nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 11px; border-radius: 8px;
  font: 700 0.93rem/1.2 "Lato", "Segoe UI", system-ui, sans-serif; color: #1E2A3A; text-decoration: none;
  background: transparent; border: 0; cursor: pointer; position: relative; white-space: nowrap;
}
.nav-list > li > a:hover, .nav-sub-toggle:hover { background: #F3F6FB; color: #132574; }
.nav-list > li > a[aria-current="page"], .has-sub.is-active > .nav-sub-toggle { color: #132574; }
.nav-list > li > a[aria-current="page"]::after, .has-sub.is-active > .nav-sub-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #132574, #1EADF0);
}
.nav-sub-toggle svg { transition: transform .25s ease; }
.has-sub { position: relative; }
.nav-sub { list-style: none; display: grid; gap: 2px; }
.nav-sub a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #1E2A3A; }
.nav-sub a b { font-family: "Raleway", sans-serif; font-weight: 800; color: #132574; font-size: 0.98rem; }
.nav-sub a span { font-size: 0.84rem; color: #4A5468; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: #EEF4FC; }
.nav-sub a[aria-current="page"] b { color: #0B6E9E; }
.btn-cta { --b-bg: #132574; --b-fg: #FFFFFF; }
.btn-cta:hover { --b-bg: #1A3290; }
.btn-cta[aria-current="page"] { --b-bg: #0B6E9E; }
.header-actions { gap: 10px; }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }
.eyp .btn.header-cta, .eyp .nav-mobile-cta .btn { font-family: "Lato", sans-serif; font-weight: 800; font-size: 0.92rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid #DCE3EE; background: #FFFFFF; color: #132574; font: 800 0.9rem/1 "Lato", sans-serif;
}
.nav-toggle:hover { border-color: #132574; }
.nt-bars { display: grid; gap: 4px; width: 20px; }
.nt-bars i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.nav-open .nt-bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nt-bars i:nth-child(2) { opacity: 0; }
.nav-open .nt-bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 380px) { .nt-label { display: none; } .nav-toggle { padding: 0 11px; } }

/* Ponsel dan tablet: menu sebagai panel */
@media (max-width: 1179px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 49;
    background: #FFFFFF; border-bottom: 1px solid #DCE3EE; box-shadow: 0 24px 40px -24px rgba(19, 37, 116, .45);
    max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
    padding: 10px max(16px, env(safe-area-inset-left, 0px)) 22px;
  }
  .nav-open .site-nav { display: block; animation: rise .3s var(--ease-out, ease) both; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; max-width: 720px; margin-inline: auto; }
  .nav-list > li { border-bottom: 1px solid #EEF2F8; }
  .nav-list > li > a, .nav-sub-toggle { width: 100%; min-height: 52px; font-size: 1.02rem; padding-inline: 4px; }
  .nav-list > li > a[aria-current="page"]::after, .has-sub.is-active > .nav-sub-toggle::after { left: 4px; right: auto; width: 28px; bottom: 6px; }
  .nav-sub-toggle { cursor: default; color: #4A5468; font-size: 0.8125rem; letter-spacing: .12em; text-transform: uppercase; min-height: 40px; padding-top: 14px; }
  .nav-sub-toggle:hover { background: transparent; color: #4A5468; }
  .nav-sub-toggle svg, .has-sub.is-active > .nav-sub-toggle::after { display: none; }
  .nav-sub { padding: 0 0 10px; }
  .nav-sub a { padding: 10px 12px; background: #F6F9FE; margin-bottom: 6px; }
  .nav-mobile-cta { display: grid; gap: 10px; max-width: 720px; margin: 16px auto 0; }
  .nav-mobile-cta .btn { width: 100%; }
}
@media (min-width: 1180px) {
  .site-nav { display: block; margin-left: auto; }
  .nav-toggle, .nav-mobile-cta { display: none; }
  .nav-sub {
    position: absolute; top: calc(100% + 8px); left: -8px; z-index: 60; width: 300px; padding: 8px;
    background: #FFFFFF; border: 1px solid #DCE3EE; border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(19, 37, 116, .5);
    opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .2s ease, translate .2s ease, visibility 0s .2s;
  }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub, .has-sub.open > .nav-sub {
    opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s ease, translate .2s ease, visibility 0s;
  }
  .has-sub:hover > .nav-sub-toggle svg, .has-sub.open > .nav-sub-toggle svg { transform: rotate(180deg); }
}
@media (min-width: 1180px) { .site-header .brand-name { white-space: nowrap; } }
@media (min-width: 1180px) and (max-width: 1365px) {
  .nav-list > li > a, .nav-sub-toggle { padding-inline: 8px; }
}
@media (min-width: 1180px) and (max-width: 1279px) {
  .nav-list > li > a, .nav-sub-toggle { font-size: 0.9rem; }
  .site-header .brand-sub { display: none; }
}
.site-header .bar { gap: 14px; }

/* ---------- Breadcrumb ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 0.875rem; font-weight: 700; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; opacity: .85; }
.crumbs a:hover { text-decoration: underline; opacity: 1; }
.crumbs [aria-current] { opacity: 1; }
.ps-hero .crumbs { color: #DCE3F5; }
.eyp .crumbs { color: var(--brown); margin-bottom: 4px; }

/* ---------- Hero halaman dalam ---------- */
.ps-hero.page-hero .wrap { padding-block: clamp(36px, 6vw, 76px) clamp(64px, 8vw, 104px); gap: 14px; }
.page-hero h1 { font-size: clamp(2.05rem, 1.4rem + 2.8vw, 3.5rem); max-width: 22ch; line-height: 1.08; }
.page-hero .support { max-width: 62ch; }
.ps-hero.page-hero::before { background: linear-gradient(90deg, rgba(19, 37, 116, .97) 0%, rgba(19, 37, 116, .9) 50%, rgba(19, 37, 116, .55) 100%); }
@media (max-width: 859px) {
  .ps-hero.page-hero .bg { bottom: 0; height: auto; }
  .ps-hero.page-hero::before { background: linear-gradient(180deg, rgba(19, 37, 116, .82) 0%, rgba(19, 37, 116, .95) 100%); }
  .ps-hero.page-hero .wrap { padding-top: 30px; }
}
.ps-hero .crumbs { margin-bottom: 6px; }
.ps-hero .wrap > .crumbs { animation: none; }

/* ---------- Kotak fakta (Sekilas) ---------- */
.facts { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--curve, 16px); overflow: hidden; box-shadow: 0 14px 34px -26px rgba(19, 37, 116, .5); }
.facts-head { display: flex; align-items: center; gap: 12px; padding: 18px clamp(18px, 3vw, 28px); background: var(--navy); color: #FFFFFF; background-image: var(--pat-white), radial-gradient(420px 200px at 100% 0%, rgba(30, 173, 240, .35), transparent 70%); background-size: 120px, auto; }
.facts-head h2, .facts-head h3 { color: #FFFFFF; font-size: var(--step-1); }
.facts-head img { height: 34px; width: auto; }
.facts dl { margin: 0; display: grid; }
.facts dl > div { display: grid; gap: 2px 18px; padding: 14px clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.facts dl > div:last-child { border-bottom: 0; }
.facts dl > div:nth-child(even) { background: #F8FAFD; }
@media (min-width: 720px) { .facts dl > div { grid-template-columns: 200px 1fr; } }
.facts dt { font-weight: 800; color: var(--navy); font-family: "Raleway", var(--f-body); }
.facts dd { margin: 0; color: var(--ink); }
.facts dd a { font-weight: 700; }

/* ---------- Kartu tautan (memakai gaya .prog) ---------- */
a.prog { text-decoration: none; color: inherit; }
a.prog h3 { color: var(--navy); }
.prog .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--link); font-size: 0.95rem; }
.prog .more svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out, ease); }
a.prog:hover .more svg { transform: translateX(4px); }
.prog-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.prog .media.wide { aspect-ratio: 16 / 9; }
.prog .levels-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.prog .levels-mini span { font-size: 0.8125rem; font-weight: 800; color: var(--navy); background: #EEF3FB; border-radius: 4px; padding: 3px 8px; }

/* Tombol di bawah bagian */
.more-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 32px); }
.more-row.center { justify-content: center; }

/* Kartu CTA navy (memakai .fee) */
.fee .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .fee .btn-row { flex-direction: column; align-items: stretch; } }
.fee .eyebrow { color: var(--spring); }
.fee .eyebrow::before { background: var(--spring); }

/* ---------- Menu jangkar halaman jenjang ---------- */
.subnav-band { display: block !important; position: relative; z-index: 2; }
.subnav { padding-block: 10px; }
@media (min-width: 1180px) { .subnav { justify-content: center; } }
.formal .subnav a:hover { background: #E3ECF8; }
.subnav .subnav-label { flex: 0 0 auto; align-self: center; font-size: 0.8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #4A5468; padding-right: 4px; }

/* ---------- Footer 4 kolom ---------- */
.site-footer .footer-h { font-family: "Raleway", "Segoe UI", sans-serif; font-weight: 800; font-size: 1rem; color: #FFFFFF; margin-bottom: 10px; letter-spacing: 0; text-shadow: none; }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { text-decoration: underline; }
.footer-grid li { line-height: 1.5; }
@media (min-width: 700px) { .footer-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid.cols-4 { grid-template-columns: 1.35fr 1fr 0.9fr 1.15fr; gap: 32px; } }
.footer-grid ul { gap: 8px; }

/* ---------- Kontak dan peta ---------- */
.map-embed { position: relative; border-radius: var(--curve, 16px); overflow: hidden; border: 1px solid var(--line); background: var(--mist); min-height: 320px; box-shadow: 0 14px 34px -26px rgba(19, 37, 116, .5); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-weight: 700; z-index: -1; }
.contact-split { display: grid; gap: 26px; align-items: stretch; }
@media (min-width: 960px) { .contact-split { grid-template-columns: 0.95fr 1.05fr; } }

/* ---------- Jenjang di halaman Penerimaan ---------- */
.age-all .tablist { margin-bottom: 4px; }
.age-panel.all { margin-top: 0; }
.level-links { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ---------- FAQ per kelompok ---------- */
.faq-groups { display: grid; gap: clamp(28px, 4vw, 44px); }
.faq-group { display: grid; gap: 14px; }
.faq-group > h2 { font-size: var(--step-2); }
.faq-layout { display: grid; gap: 28px; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: 1fr 340px; align-items: start; } .faq-layout .contact-card { position: sticky; top: 100px; } }
.faq-toc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); text-decoration: none; font-weight: 800; color: var(--navy); font-size: 0.92rem; }
.faq-toc a:hover { border-color: var(--navy); }

/* ---------- Halaman 404 ---------- */
.nf { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: clamp(64px, 10vw, 120px); }
.nf .num { font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; color: var(--navy); }

/* ---------- Teks ringkas siap kutip ---------- */
.summary-lead { font-size: var(--step-1); line-height: 1.6; max-width: 70ch; }
.summary-lead strong { color: var(--navy); }

/* ---------- Penyesuaian ponsel ---------- */
@media (max-width: 520px) {
  .site-header .bar { min-height: 62px; gap: 10px; }
  .facts dl > div { padding-block: 12px; }
}
@media (max-width: 1179px) { .site-header { position: sticky; } }

/* Kartu program di bagian Navy sebagai tautan */
a.sec-card { text-decoration: none; color: inherit; }
a.sec-card p { color: #DCE3F5; }
a.sec-card h3 { color: #FFFFFF; }
.formal .section-head.center .h2::after { margin-inline: auto; }
.home-top { padding-bottom: 0; }
.home .gate-help { margin-bottom: clamp(32px, 5vw, 56px); }
.facts.compact dl > div { grid-template-columns: 1fr; gap: 2px; padding-block: 12px; }
.facts.compact dt { font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.sekilas-photo { margin-top: 8px; }
.footer-grid a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 900px) { .formal .leaders-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   Blog (Kegiatan Sekolah, Blog Guru) dan Prestasi
   ========================================================= */
.blog-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blog-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: #FFFFFF; color: var(--ink); font-weight: 800; text-decoration: none; }
.blog-tabs a:hover { border-color: var(--navy); }
.blog-tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.blog-tabs .rss { margin-left: auto; border-style: dashed; color: var(--link); font-size: 0.88rem; }
.post-card .media { aspect-ratio: 16 / 10; }
.post-card .body p { color: var(--muted); font-size: 0.96rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.post-meta { margin-top: auto; padding-top: 6px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.post-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--pat-navy-soft) center / 120px, linear-gradient(160deg, #EEF4FC, #DCE8F8); }
.post-ph img { width: 64px; height: auto; opacity: .9; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; font-weight: 800; text-decoration: none; color: var(--navy); }
.pager span[aria-current] { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(28px, 6vw, 56px) 20px; border: 2px dashed #C8D5EA; border-radius: var(--curve, 16px); background: rgba(255, 255, 255, .85); }
.empty-state img { width: 64px; height: auto; }
.empty-state p { max-width: 56ch; color: var(--muted); }
.preview-bar { background: #FFF4E0; color: #7A4A00; padding: 10px max(16px, env(safe-area-inset-left, 0px)); text-align: center; font-weight: 700; }

/* Artikel */
.post-hero h1 { max-width: 26ch; }
.post-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.98rem; font-weight: 700; }
.post-byline span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--spring); margin-right: 18px; vertical-align: middle; }
.post-layout { display: grid; justify-items: center; }
.post-body { width: 100%; max-width: 760px; display: grid; gap: 28px; }
.post-content { font-size: clamp(1.04rem, 1rem + .2vw, 1.13rem); line-height: 1.8; display: grid; gap: 1em; overflow-wrap: anywhere; }
.post-content > * { margin: 0; }
.post-content h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); margin-top: .6em; }
.post-content h3 { font-size: 1.2rem; margin-top: .4em; }
.post-content ul, .post-content ol { padding-left: 1.4em; display: grid; gap: .4em; }
.post-content blockquote { border-left: 4px solid var(--cerulean); padding: 6px 0 6px 18px; color: var(--navy); font-family: var(--f-head); font-weight: 700; font-size: 1.15em; }
.post-content img { border-radius: 12px; width: 100%; height: auto; }
.post-content a { font-weight: 700; }
.post-gallery { display: grid; gap: 14px; }
.gal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gal-item { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--mist); aspect-ratio: 4 / 3; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out, ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-modal { width: min(1100px, calc(100% - 24px)); }
.gal-stage { position: relative; display: grid; place-items: center; background: #0B1440; border-radius: 16px; padding: 48px 12px 16px; max-height: calc(100dvh - 24px); }
.gal-stage img { max-height: calc(100dvh - 140px); width: auto; border-radius: 8px; }
.gal-cap { color: #DCE3F5; font-size: 0.92rem; margin-top: 10px; text-align: center; }
.gal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 2rem; line-height: 1; cursor: pointer; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-row span { font-weight: 800; color: var(--navy); margin-right: 4px; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: var(--curve, 16px); background: var(--mist); border: 1px solid var(--line); }
.author-photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #FFFFFF; }
.author-name { font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.author-name a { color: inherit; text-decoration: none; }
.author-title { color: var(--link); font-weight: 700; font-size: 0.92rem; }
.author-bio { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* Kabar terbaru di Beranda */
.latest-grid:empty { display: none; }

/* Prestasi */
.pr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pr-stats div { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.pr-stats b { font-family: var(--f-head); font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.pr-stats span { font-size: 0.84rem; color: var(--muted); }
.pr-thumbs { align-self: center; }
.pr-filters { display: grid; gap: 14px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #FFFFFF; font: 800 0.92rem var(--f-body); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.pr-selects { display: flex; flex-wrap: wrap; gap: 10px; }
.pr-selects label { display: grid; gap: 4px; font-weight: 700; font-size: 0.88rem; flex: 1 1 180px; max-width: 260px; }
.pr-selects select { font: inherit; font-weight: 400; min-height: 46px; padding: 8px 12px; border-radius: 8px; border: 2px solid var(--line); background: #FFFFFF; color: var(--ink); }
.pr-count { font-weight: 700; color: var(--muted); }
.pr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pr-card { appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 26px -22px rgba(19, 37, 116, .5); transition: translate .3s var(--ease-out, ease), box-shadow .3s ease; }
.pr-card:hover { translate: 0 -4px; box-shadow: 0 22px 40px -24px rgba(19, 37, 116, .5); }
.pr-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--mist); overflow: hidden; }
.pr-media img { width: 100%; height: 100%; object-fit: cover; }
.pr-card.no-photo .pr-media { aspect-ratio: 16 / 7; background: var(--pat-navy-soft) center / 120px, linear-gradient(160deg, #EEF4FC, #DCE8F8); }
.pr-medal { display: grid; place-items: center; height: 100%; }
.pr-medal svg { width: 64px; height: 64px; }
.pr-level { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-size: 0.78rem; font-weight: 800; }
.pr-body { display: grid; gap: 4px; align-content: start; padding: 14px 16px 16px; }
.pr-year { font-size: 0.8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.pr-title { font-family: var(--f-head); font-weight: 800; color: var(--navy); font-size: 1.06rem; line-height: 1.3; }
.pr-event, .pr-student { font-size: 0.92rem; color: var(--muted); }
.pr-card.is-featured { border: 2px solid var(--cerulean); }
@media (min-width: 900px) { .pr-card.is-featured { grid-column: span 2; grid-template-columns: 1.1fr 1fr; grid-template-rows: none; } .pr-card.is-featured .pr-media { aspect-ratio: auto; min-height: 240px; } }
.pr-modal .modal-card.no-photo { grid-template-columns: 1fr; height: auto; max-width: 640px; margin-inline: auto; }
.pr-photos { display: grid; gap: 6px; overflow-y: auto; align-content: start; }
.pr-photos img { width: 100%; height: auto; object-fit: contain; }
.pr-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.pr-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pr-facts dt { font-weight: 800; color: var(--navy); }
.pr-facts dd { margin: 0; }
@media (max-width: 520px) { .pr-stats { grid-template-columns: 1fr; } .pr-facts div { grid-template-columns: 1fr; gap: 0; } }
.post-cover { margin: 0; display: grid; gap: 8px; }
.post-cover img { width: 100%; height: auto; border-radius: var(--curve, 16px); }
.post-cover figcaption { font-size: 0.9rem; color: var(--muted); }
.post-section { padding-top: clamp(40px, 6vw, 72px); }

/* ===== Halaman Kurikulum (teks resmi Oktober 2026) ===== */
.reason h3 small { font-family: var(--f-body); font-weight: 700; font-size: 0.82rem; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.kur-first { display: grid; gap: 16px; align-items: center; padding: clamp(20px, 3vw, 30px); border-radius: var(--curve, 20px); background: var(--navy) var(--pat-white); color: #FFFFFF; }
.kur-first p { font-family: var(--f-head); font-weight: 700; font-size: var(--step-1); line-height: 1.5; max-width: 62ch; }
.kur-first strong { color: var(--spring); }
.kur-first .verify-link { background: #FFFFFF; }
@media (min-width: 900px) { .kur-first { grid-template-columns: 1fr auto; } }
.trait-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .trait-grid { grid-template-columns: repeat(3, 1fr); } }
.trait { display: grid; grid-template-rows: auto 1fr; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px -18px rgba(19, 37, 116, 0.35); }
.trait-head { background: var(--navy); color: #FFFFFF; padding: 18px 22px; display: grid; gap: 2px; border-bottom: 4px solid var(--cerulean); }
.trait-head span { color: var(--spring); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.trait-head h4 { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; color: #FFFFFF; }
.trait .checks { padding: 20px 22px; }
.def-grid { display: grid; gap: 10px; }
@media (min-width: 720px) { .def-grid { grid-template-columns: repeat(2, 1fr); } }
.def-item { display: grid; gap: 4px; padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--line); border-left: 4px solid var(--cerulean); border-radius: 8px; }
.def-item b { font-family: var(--f-head); font-weight: 800; color: var(--navy); line-height: 1.3; }
.def-item span { font-size: 0.95rem; color: var(--muted); }
.kur-closing-band { padding-block: clamp(36px, 6vw, 64px) 0; }
.kur-closing { text-align: center; display: grid; gap: 14px; justify-items: center; padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px); border-radius: var(--curve, 20px); background: #FFFFFF var(--pat-navy-soft); border: 1px solid var(--line); box-shadow: 0 8px 24px -18px rgba(19, 37, 116, 0.35); position: relative; }
.kur-closing::before { content: ""; position: absolute; inset: -1px -1px auto; height: 5px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, var(--navy), var(--cerulean), var(--spring)); }
.kur-closing h2 { font-family: var(--f-head); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--link); }
.kur-closing p { font-family: var(--f-head); font-weight: 700; font-size: var(--step-2); line-height: 1.45; max-width: 46ch; color: var(--navy); }

/* ---------- Prestasi: kartu ringkas tanpa foto, warna medali (revisi 7) ---------- */
.pr-card.rank-1 { --medal: #C9901A; --medal-ring: #FBE3A4; }
.pr-card.rank-2 { --medal: #8A97A8; --medal-ring: #E6EBF1; }
.pr-card.rank-3 { --medal: #A8612E; --medal-ring: #F2C9A6; }
.pr-card.no-photo:not(.is-featured) { grid-template-rows: none; grid-template-columns: 76px minmax(0, 1fr); align-items: stretch; }
.pr-card.no-photo:not(.is-featured) .pr-media { aspect-ratio: auto; min-height: 100%; background: linear-gradient(180deg, #EEF4FC, #DCE8F8); }
.pr-card.no-photo:not(.is-featured) .pr-medal svg { width: 48px; height: 48px; }
.pr-card.no-photo:not(.is-featured) .pr-level { left: 50%; top: auto; bottom: 8px; translate: -50% 0; width: max-content; max-width: 68px; padding: 2px 7px; border-radius: 8px; font-size: 0.66rem; line-height: 1.2; text-align: center; }
.pr-card.no-photo:not(.is-featured) .pr-body { padding: 12px 14px 14px; }
.pr-card.no-photo:not(.is-featured) .pr-title { font-size: 1rem; }
.pr-who { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: #E5F4EA; color: #17703F; font-size: 0.75rem; font-weight: 800; vertical-align: 1px; }
.pr-student { color: var(--ink); font-weight: 700; }
.pr-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.pr-more-row { display: flex; justify-content: center; }
.pr-card[hidden] { display: none; }

/* ---------- Karir (revisi 9) ---------- */
.job-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.job-card { display: grid; gap: 10px; align-content: start; padding: 22px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px -24px rgba(19, 37, 116, .5); }
.job-card h3 { font-size: 1.2rem; color: var(--navy); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job-qual b { color: var(--navy); }
.job-qual ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.job-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.job-deadline { font-size: .9rem; font-weight: 700; color: var(--muted); }
.job-empty { display: grid; gap: 8px; justify-items: start; padding: clamp(20px, 3vw, 30px); background: #FFFFFF; border: 1px dashed #B9C9E4; border-radius: 14px; max-width: 760px; }
.career-wrap { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 980px) { .career-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.career-aside { margin-top: 10px; padding: 16px 18px; border-left: 4px solid var(--cerulean); background: var(--mist); border-radius: 0 12px 12px 0; display: grid; gap: 6px; }
.career-aside h3 { font-size: 1.02rem; color: var(--navy); }
.career-box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 30px); box-shadow: 0 18px 40px -30px rgba(19, 37, 116, .55); }
.career-form .f-grid { display: grid; gap: 14px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .career-form .f-grid { grid-template-columns: 1fr 1fr; } .career-form .f-wide { grid-column: 1 / -1; } }
.career-form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); min-width: 0; }
.career-form input:not([type="checkbox"]), .career-form select, .career-form textarea {
  font: inherit; font-weight: 400; width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #FFFFFF; color: var(--ink);
}
.career-form textarea { min-height: 110px; resize: vertical; }
.career-form input:focus, .career-form select:focus, .career-form textarea:focus { outline: 3px solid rgba(30, 173, 240, .35); border-color: var(--cerulean); }
.career-form [aria-invalid="true"] { border-color: #B42318 !important; }
.career-form input[type="file"] { padding: 9px; background: var(--mist); }
.career-form .f-check { grid-template-columns: 22px 1fr; align-items: start; font-weight: 400; }
.career-form .f-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.career-form .f-check .f-err { grid-column: 2; }
.career-form .req { color: #B42318; }
.career-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-err { font-size: .84rem; font-weight: 700; color: #B42318; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.f-note { font-size: .85rem; color: var(--muted); }
.form-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; background: #FEF3F2; border: 1px solid #FDA29B; color: #7A271A; }
.form-done { display: grid; gap: 10px; justify-items: start; color: var(--ink); }
.form-done svg { color: #17703F; }
.form-done h3 { color: var(--navy); font-size: 1.3rem; }
.career-form label[hidden] { display: none; }

/* ---------- Kebijakan Privasi ---------- */
.policy { max-width: 820px; display: grid; gap: 14px; }
.policy h2 { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); color: var(--navy); margin-top: 18px; }
.policy ul { padding-left: 22px; display: grid; gap: 6px; }
.policy .policy-meta { color: var(--muted); font-size: .92rem; }
.policy table { width: 100%; border-collapse: collapse; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.policy th { color: var(--navy); }
.career-form .f-label { display: block; }
.job-meta .tag + .tag::before { content: "·"; margin-right: 6px; }
.policy thead th { color: #FFFFFF; }

/* ---------- Detail lowongan (Karir) ---------- */
.job-card h3 a { color: inherit; text-decoration: none; }
.job-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.job-thumb { display: block; margin: -22px -22px 4px; border-radius: 14px 14px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.job-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.job-facts div { display: grid; gap: 1px; padding: 8px 14px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 12px; }
.job-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.job-facts dd { margin: 0; font-weight: 800; color: var(--navy); }
.job-layout { display: grid; gap: clamp(24px, 4vw, 48px); }
.job-layout:not(.has-poster) .job-body { max-width: 760px; width: 100%; margin-inline: auto; }
@media (min-width: 980px) { .job-layout.has-poster { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .job-side { position: sticky; top: 110px; } }
.job-body { display: grid; gap: 18px; min-width: 0; }
.job-body > .h3 { color: var(--navy); margin-top: 8px; font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); }
.job-poster { margin: 0; }
.job-poster img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(19, 37, 116, .55); }
.job-closed { display: grid; gap: 8px; padding: 16px 18px; background: #FFF4E0; color: #5C3A00; border-radius: 12px; border: 1px solid #F4D49B; }
.job-closed b { font-size: 1.05rem; }
.job-closed p { margin: 0; }
.job-langnote { margin: 0; font-size: .92rem; color: var(--muted); font-style: italic; }
.job-posted { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 979px) { .job-side { order: -1; } .job-poster { max-width: 440px; } }
