/* =========================================================
   Sekolah Kristen ORA et LABORA — tampilan website publik
   Warna & tipografi mengikuti desain (Avenir → Nunito Sans)
   ========================================================= */
:root {
  --navy: #003756;
  --navy-deep: #0a1a4a;
  --navy-btn: #1f4a5c;
  --cream: #f7e7a1;
  --blue: #0084ff;
  --blue-text: #1270a8;
  --band: #2995cc;
  --footer: #316d9f;
  --gray: #dbdbdb;
  --gray-soft: #efefef;
  --tile: #cfd5dc;
  --text: #1b1b1b;
  --muted: #555;
  --radius: 12px;
  --container: 1240px;
  --font: "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-heading: var(--font); /* bisa diganti di Pengaturan Website › Warna & Huruf */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2, h3, h4, h5, h6, .heading-blue, .lead-heading, .display-heading, .vm-title, .cb-title, .cb-heading, .cb-subheading { font-family: var(--font-heading); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }
.mb { margin-bottom: 1.5rem; }
.pt-0 { padding-top: 0 !important; }
.section { padding: 56px 0; }
.bg-gray { background: var(--gray); }

.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 800; padding: 10px 22px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.btn:hover { background: #006fe0; }

/* ---------------- Header ---------------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 24px; transition: top .25s ease; }
.header-card { max-width: var(--container); margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 0; gap: 20px; transition: padding .25s ease, box-shadow .25s ease, background .25s ease; }
/* Header sticky: saat halaman di-scroll, header menempel di atas dan sedikit mengecil */
.site-header.scrolled { top: 6px; }
.site-header.scrolled .header-card { padding-top: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.18); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.site-header.scrolled .brand { padding-bottom: 6px; }
.site-header.scrolled .brand img { width: 38px; }
.brand img { transition: width .25s ease; }
body.pad-top main { padding-top: 120px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-bottom: 10px; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; font-family: Arial, Helvetica, sans-serif; }
.brand-text small { font-size: 11px; color: #222; }
.brand-text strong { font-size: 17px; color: #000; letter-spacing: .2px; }
.brand-text em { font-style: normal; font-size: 11.5px; color: #0e74b5; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.header-top { display: flex; align-items: center; gap: 12px; }
.search-form { display: flex; align-items: center; }
.search-form input { width: 0; opacity: 0; border: 1px solid #c8d2dc; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 14px; transition: width .25s, opacity .25s; }
.search-form.open input, .search-form input:focus { width: 220px; opacity: 1; }
.search-btn { background: none; border: 0; color: #1a2a3a; cursor: pointer; padding: 6px; display: grid; place-items: center; }
.btn-psb { background: var(--navy-btn); color: var(--cream); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.btn-psb:hover { background: var(--navy); }
.btn-psb-alt { background: transparent; color: var(--navy-btn); box-shadow: inset 0 0 0 2px var(--navy-btn); }
.btn-psb-alt:hover { background: var(--navy-btn); color: var(--cream); }
.main-nav > ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 8px 10px 12px; font-size: 14.5px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; position: relative; }
.main-nav > ul > li.active > a::after, .main-nav > ul > li > a:hover::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 5px; border-radius: 3px 3px 0 0; background: var(--navy); }
.dropdown { list-style: none; margin: 0; padding: 8px 12px; position: absolute; top: 100%; left: -10px; min-width: 190px; background: #fff; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.15); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.dropdown li + li { border-top: 1.5px solid var(--navy); }
.dropdown a { display: block; padding: 5px 2px; font-size: 14px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.dropdown a:hover, .dropdown a.current { font-weight: 800; }
.has-sub:hover > .dropdown, .has-sub:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
/* Submenu dari submenu: muncul di samping kanan (atau kiri bila mepet tepi layar) */
.dropdown .has-sub { position: relative; }
.dropdown .has-sub > a { padding-right: 20px; position: relative; }
.dropdown .has-sub > a::after { content: "›"; position: absolute; right: 2px; top: 50%; transform: translateY(-55%); font-size: 20px; font-weight: 800; }
.dropdown .has-sub::after { content: ""; position: absolute; top: 0; left: 100%; width: 18px; height: 100%; } /* jembatan agar submenu tidak tertutup saat mouse berpindah */
.dropdown .dropdown { top: -8px; left: calc(100% + 14px); transform: translateX(-6px); }
.dropdown .has-sub.flip::after { left: auto; right: 100%; }
.dropdown .has-sub.flip > .dropdown { left: auto; right: calc(100% + 16px); transform: translateX(6px); }
.dropdown .has-sub:hover > .dropdown, .dropdown .has-sub:focus-within > .dropdown { transform: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-bottom: 10px; }
.nav-toggle span { display: block; height: 3px; background: var(--navy); border-radius: 2px; margin: 4px 0; transition: .2s; }

/* ---------------- Hero ---------------- */
.home-hero { height: min(100vh, 900px, calc(100vw * var(--hr, .5625))); background: #345; position: relative; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
/* Tinggi header = ukuran desain, tetapi tidak pernah lebih tinggi dari foto selebar layar.
   Jadi di layar kecil lebar foto tidak terpotong (foto hanya diperkecil). */
.home-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::before { z-index: 1; }
.home-hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.45)); }
.home-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 28px; padding-bottom: 7vh; }
.home-hero h1 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 900; max-width: 7.6em; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-quote { border-left: 2px solid #fff; padding: 6px 0 6px 18px; margin: 0; font-size: clamp(16px, 1.6vw, 22px); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-quote em { font-weight: 800; }
.page-hero { position: relative; height: min(clamp(340px, 46vw, 760px), calc(100vw * var(--hr, .5625))); background: #345 center/cover no-repeat; display: flex; align-items: flex-end; color: #fff; }
.page-hero.small { height: 340px; }
.page-hero .container { position: relative; padding-bottom: clamp(14px, 6vw, 90px); }
.page-hero h1 { font-size: clamp(28px, 5vw, 76px); font-weight: 900; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,.45); }

/* ---------------- Sub nav ---------------- */
.sub-nav { background: #fff; }
.sub-nav-inner { display: flex; align-items: stretch; border-bottom: 1.5px solid #8a8a8a; }
.sub-nav-label { font-weight: 800; color: var(--navy-deep); padding: 18px 40px 18px 0; border-right: 1.5px solid #8a8a8a; white-space: nowrap; min-width: 200px; }
.sub-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 40px; margin: 0; padding: 18px 0 18px 30px; }
.sub-nav a { color: var(--navy-deep); text-decoration: none; }
.sub-nav a:hover { text-decoration: underline; }
.sub-nav a.current { font-weight: 800; }
.bg-gray-nav .sub-nav { background: var(--gray); }

/* ---------------- Typo blocks ---------------- */
.heading-blue { color: var(--blue-text); font-weight: 800; font-size: clamp(22px, 2.1vw, 30px); }
.lead-heading { color: var(--blue-text); font-weight: 600; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.3; margin-bottom: 1.4em; }
.display-heading { color: var(--navy-deep); font-weight: 900; font-size: clamp(38px, 4.4vw, 64px); }
.section-title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; margin-bottom: .1em; }
.section-sub { font-size: 20px; margin-bottom: 26px; }
.prose { text-align: justify; hyphens: auto; }
.prose h3 { color: var(--navy-deep); font-weight: 900; font-size: 22px; margin: 0 0 .3em; text-align: left; }
.prose img { border-radius: 8px; margin: 1em 0; height: auto; }
.prose a { color: var(--blue-text); }
.prose ul, .prose ol { padding-left: 1.4em; text-align: left; }
.prose * + h3 { margin-top: 1.3em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--band); color: var(--navy); font-style: italic; text-align: left; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .post-caption { font-size: 14px; color: var(--muted); font-style: italic; text-align: left; border-top: 1px solid #e3e7ec; padding-top: 10px; margin-top: 1.4em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.split-img { margin: 0; }
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.img-grid img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.wide-images img { width: 100%; max-height: 900px; object-fit: cover; object-position: center 30%; }
.wide-images img + img { margin-top: 10px; }
.divider { border: 0; border-top: 1.5px solid #8a8a8a; margin: 46px 0; }
.big-link { display: flex; align-items: center; gap: 14px; color: var(--blue-text); font-weight: 800; font-size: clamp(20px, 2vw, 28px); text-decoration: none; margin: 10px 0 18px; }
.big-link:hover { text-decoration: underline; }
.arrow { flex: none; transition: transform .2s; }
a:hover > .arrow { transform: translateX(4px); }
.crumb a { color: var(--blue-text); text-decoration: none; font-weight: 700; }

/* ---------------- Blue bands ---------------- */
.band-blue { background: var(--blue); color: #fff; padding: 46px 0 60px; }
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; text-align: center; }
.campus h3 { font-size: 26px; font-weight: 800; margin-bottom: .6em; }
.campus h3 a { text-decoration: none; }
.campus p { font-size: 18px; min-height: 4.5em; }
.campus .map { width: 100%; height: 320px; border: 0; display: block; background: #e3e9ef; }
.prestasi-band .band-rule { display: block; width: 140px; border-top: 1.5px solid #fff; margin-bottom: 36px; }
.prestasi-band h3 { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.prestasi-band a { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 800; text-decoration: none; margin: 6px 0; }

/* ---------------- Visi Misi & Sejarah ---------------- */
/* ---------- Visi & Misi ---------- */
.vm { overflow: hidden; padding-bottom: 70px; }
.vm-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.vm-title { display: flex; align-items: center; gap: 12px; color: var(--blue-text); font-weight: 800; font-size: clamp(22px, 2vw, 28px); margin: 18px 0 14px; position: relative; }
.vm-title:first-child { margin-top: 0; }
.vm-ring { width: 40px; height: 40px; border: 7px solid var(--blue-text); border-radius: 50%; position: relative; flex: none; }
.vm-ring::before { content: ""; position: absolute; right: 100%; top: 50%; width: 100vw; border-top: 2px solid var(--blue-text); transform: translateY(-50%); margin-right: 7px; }
.vm-text { font-weight: 700; color: var(--navy-deep); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; max-width: 640px; margin-bottom: 28px; }
.vm-text p { margin: 0 0 .4em; }
.vm-text ol { padding-left: 1.3em; margin: 0; }
.vm-figure { margin: 0; background: #e6e8eb; border-radius: 28px; padding: 9% 12%; display: flex; align-items: center; justify-content: center; }
.vm-figure img { display: block; width: 100%; max-width: 360px; height: auto; }
/* ---------- Sejarah: accordion per tahun + kolase foto ---------- */
.history { background: #e6e6e6; padding-top: 70px; padding-bottom: 110px; }
.history-title { text-align: center; color: var(--blue-text); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.12; margin: 0 0 50px; }
.history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.history-grid.no-collage { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.history-list { position: relative; }
.history-list::before { content: ""; position: absolute; left: 14px; top: 26px; bottom: 26px; border-left: 3px solid #0a6fa8; }
.history-item { position: relative; margin-bottom: 26px; }
.history-item summary { position: relative; list-style: none; cursor: pointer; background: #0a6fa8; color: #fff; border-radius: 14px; padding: 8px 52px 8px 32px; user-select: none; }
.history-item summary::-webkit-details-marker { display: none; }
.history-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.history-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.history-item summary:hover { background: #0b7fc0; }
.history-item summary:focus-visible { outline: 3px solid #fff200; outline-offset: 2px; }
.history-year { font-family: var(--font-heading); font-weight: 800; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.history-desc { margin: -12px 0 0 24px; padding: 26px 26px 20px; background: #fff; border-radius: 0 0 14px 14px; color: #1f5f8f; line-height: 1.5; }
.history-desc p { margin: 0; }
.history-collage { margin: 0; position: sticky; top: 110px; }
.history-collage img { display: block; width: 100%; height: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
  .vm-grid, .history-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vm-figure { max-width: 320px; }
  .history-collage { position: static; max-width: 560px; }
}

/* ---------------- Framework ---------------- */
.framework-intro { margin-bottom: 50px; }
.framework-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.framework-grid img { width: 100%; max-width: 560px; }
.framework-list ul, .framework-list ol { list-style: none; margin: 0; padding: 0; }
.framework-list ol { border-left: 2px solid var(--navy-deep); padding-left: 18px !important; font-weight: 800; color: var(--navy-deep); font-size: clamp(18px, 1.6vw, 22px); position: relative; }
.framework-list ol li { position: relative; }
.framework-list ol li::before { content: ""; position: absolute; left: -23px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-deep); }
.framework-list ul { border-left: 2px solid var(--navy-deep); margin-left: 0 !important; padding: 40px 0 0 40px !important; color: var(--navy-deep); font-size: clamp(18px, 1.6vw, 22px); position: relative; }
.framework-list ul::before { content: ""; position: absolute; left: 0; top: 50px; width: 24px; border-top: 2px solid var(--navy-deep); }

/* ---------------- Testimoni ---------------- */
.testi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 18px; align-items: center; margin-bottom: 10px; }
.testi-row.full { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.testi-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,.22); padding: 14px 12px 12px; text-align: center; font-size: 12.5px; display: flex; flex-direction: column; align-items: center; min-height: 230px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.avatar-initials { display: grid; place-items: center; background: linear-gradient(135deg, #2b6ca8, #0a1a4a); color: #fff; font-weight: 800; font-size: 18px; }
.testi-card h4 { color: #1b2fa0; font-size: 13px; font-weight: 900; margin: 0 0 2px; }
.testi-role { color: #b06a1f; font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 6px; }
.testi-quote { font-style: italic; color: #222; margin: 0 0 6px; flex: 1; }
.testi-more { background: none; border: 0; color: #1270d0; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 2px; }
.see-all { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-deep); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.testi-dialog, .lightbox-dialog { border: 0; border-radius: 12px; padding: 32px; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.testi-dialog::backdrop, .lightbox-dialog::backdrop { background: rgba(0,0,0,.6); }
.testi-dialog h3 { color: #1b2fa0; }
.testi-full { font-style: italic; font-size: 18px; }
.dialog-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 30px; cursor: pointer; line-height: 1; color: #333; }
.lightbox-dialog { max-width: 1100px; padding: 16px; background: #111; color: #fff; }
.lightbox-dialog img { max-height: 80vh; margin: 0 auto; }
.lightbox-dialog p { margin: 10px 0 0; text-align: center; }
.lightbox-dialog .dialog-close { color: #fff; }

/* ---------------- Beranda ---------------- */
/* Jelajahi: foto penuh berlapis biru + pita judul biru di bawah */
.explore { padding: 80px 0 60px; }
.explore .section-title { font-size: clamp(26px, 3vw, 44px); color: #111; line-height: 1.15; }
.explore .section-sub { font-size: clamp(18px, 2vw, 30px); color: #111; margin-bottom: 30px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }
.tile { position: relative; display: block; aspect-ratio: 505 / 247; border-radius: 16px; overflow: hidden; background: var(--blue); text-decoration: none; color: #fff; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.tile-img { position: absolute; inset: 0; z-index: -1; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tile-img::after { content: ""; position: absolute; inset: 0; background: rgba(0, 92, 200, var(--shade, .38)); transition: opacity .3s ease; }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; min-height: 29%; padding: 8px 14px; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(0, 132, 255, .88); font-weight: 800; font-size: clamp(16px, 1.9vw, 28px); line-height: 1.15; text-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: background .25s; }
/* Efek saat disorot: Pengaturan › Beranda › Efek kotak "Jelajahi" saat disorot */
.tile-grid:not(.hover-none) .tile:hover .tile-label { background: rgba(0, 120, 240, .96); }
.tile-grid.hover-reveal .tile:hover, .tile-grid.hover-reveal-lift .tile:hover, .tile-grid.hover-lift .tile:hover, .tile-grid.hover-zoom .tile:hover { box-shadow: 0 16px 34px rgba(0, 60, 140, .3); }
.tile-grid.hover-reveal .tile:hover .tile-img::after, .tile-grid.hover-reveal-lift .tile:hover .tile-img::after { opacity: 0; }
.tile-grid.hover-reveal-lift .tile:hover, .tile-grid.hover-lift .tile:hover { transform: translateY(-4px); }
.tile-grid.hover-zoom .tile:hover .tile-img img { transform: scale(1.06); }
.home-testi { background: linear-gradient(180deg, #f2f2f2, #e2e2e2 80%); margin-top: 40px; position: relative; }
.home-testi-inner { display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding-top: 46px; position: relative; }
.home-testi-left { padding-bottom: 30px; }
.testi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: center; margin-top: 16px; }
.testi-grid .see-all { justify-self: center; }
.cta-student { align-self: end; width: 100%; max-width: 360px; margin-bottom: -150px; position: relative; z-index: 2; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.cta-band { background: var(--blue); color: #fff; padding: 26px 0 30px; position: relative; }
.cta-band h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { max-width: 62%; font-size: 18px; line-height: 1.35; margin: 0; }
.psb-home { background: linear-gradient(180deg, #fff, #e9e9e9); padding: 70px 0; }
.psb-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 50px; align-items: center; }
.psb-poster { width: 100%; max-width: 480px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.psb-title { text-align: center; font-weight: 900; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; color: #111; margin-bottom: 30px; }
.promo-box { border: 3px solid var(--navy-deep); border-radius: 18px; overflow: hidden; background: #fff; text-align: center; padding-bottom: 18px; }
.promo-box h3 { background: var(--navy-deep); color: #fff; font-weight: 800; font-size: clamp(20px, 2vw, 28px); padding: 16px; margin: 0 0 14px; }
.promo h4 { color: var(--navy-deep); font-weight: 900; font-size: clamp(20px, 2vw, 30px); margin: 4px 0 2px; }
.promo p { font-size: 13px; font-style: italic; margin: 0 12px 10px; line-height: 1.35; }
.daftar { padding: 20px 0 60px; }
.btn-daftar { display: inline-block; background: var(--blue); color: #fff; font-weight: 800; font-size: clamp(24px, 3vw, 44px); padding: 8px 34px; border-radius: 12px; text-decoration: none; letter-spacing: .5px; box-shadow: 0 6px 18px rgba(0,132,255,.35); transition: transform .2s; }
.btn-daftar:hover { transform: translateY(-2px); background: #0070e0; }
.graduates { padding: 30px 0 70px; }
.logo-text { font-weight: 900; font-size: 22px; color: #6a6a6a; white-space: nowrap; }

/* ---------------- Artikel, kartu ---------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; padding: 10px 2.5%; }
.post-card { border-top: 0; }
.post-card h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin: 14px 0 8px; }
.post-card h3 a { text-decoration: none; }
.post-card p { font-size: 13.5px; color: #334; margin-bottom: 8px; }
.post-thumb { display: block; aspect-ratio: 4/5; overflow: hidden; background: #c9cfd6; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.more-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 800; color: var(--navy-deep); text-decoration: none; }
.list-footer { border-bottom: 1.5px solid #8a8a8a; text-align: right; margin-top: 40px; padding-bottom: 2px; }
.list-footer a { display: inline-flex; align-items: center; gap: 12px; color: var(--blue-text); font-size: 20px; text-decoration: none; }
/* Kartu model berita (halaman Artikel) */
.news-grid { gap: 40px 6%; padding: 6px 0 0; }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 4px 16px rgba(10, 26, 74, .08); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(10, 26, 74, .14); }
.news-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.news-thumb { display: block; aspect-ratio: 302 / 165; overflow: hidden; background: #c9cfd6; }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-thumb img { transform: scale(1.03); }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 18px 8% 26px; }
.news-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #444; margin-bottom: 14px; }
.news-date svg { color: var(--navy); flex: none; }
.news-title { color: var(--blue-text); font-family: var(--font-heading); font-weight: 800; font-size: 17px; line-height: 1.2; margin-bottom: 10px; }
.news-excerpt { font-size: 14px; line-height: 1.3; color: #333; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.load-more-wrap { margin: 90px 0 40px; }
.btn-more { font-family: var(--font-heading); font-size: clamp(18px, 1.9vw, 26px); padding: 8px 14px; border-radius: 8px; line-height: 1.25; }
.btn-more[aria-busy="true"] { opacity: .6; cursor: progress; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #fff; text-decoration: none; font-weight: 700; }
.pagination .current { background: var(--blue); color: #fff; }
.post-title { color: var(--navy-deep); font-weight: 900; font-size: clamp(28px, 3vw, 42px); }
.post-date { color: var(--muted); font-weight: 700; }
.post-image { width: 100%; margin: 20px 0 30px; border-radius: 8px; }
.post-gallery { margin: 28px 0 0; }
.btn-gallery { font-size: 16px; padding: 11px 24px; border-radius: 10px; }
/* Halaman baca artikel: HP bersusun biasa; tablet & layar lebar 2 kolom (gambar | isi) */
.post-split-grid { max-width: 860px; }
.post-split-media { margin: 0; }
.post-split-media a { display: block; cursor: zoom-in; }
@media (min-width: 768px) {
  .post-split-grid { max-width: var(--container); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 5%;
    grid-template-areas: "crumb crumb" "media head" "media body"; grid-template-rows: auto auto 1fr; align-items: start; }
  .post-split-crumb { grid-area: crumb; }
  .post-split-head { grid-area: head; }
  .post-split-body { grid-area: body; }
  /* gambar tetap terlihat saat isi yang panjang digulir */
  .post-split-media { grid-area: media; position: sticky; top: 110px; }
  .post-split-media .post-image { margin: 6px 0 0; max-height: calc(100vh - 140px); object-fit: contain; object-position: top center; border-radius: 12px; }
  .post-split .post-title { margin-top: 0; }
}
@media (min-width: 768px) and (max-width: 1024px) { .post-split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; } }

/* Galeri */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.album-card { background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.album-cover { aspect-ratio: 4/3; background: #c9cfd6; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card strong { padding: 12px 14px 0; color: var(--navy); }
.album-card small { padding: 2px 14px 14px; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

/* Agenda */
.event-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); grid-template-rows: repeat(var(--rows, 3), auto); grid-auto-flow: column; gap: 6px 64px; align-items: start; }
.event-list summary { display: flex; background: var(--navy); color: #fff; cursor: pointer; list-style: none; font-size: 19px; }
.event-list summary::-webkit-details-marker { display: none; }
.ev-date { width: 100px; flex: none; padding: 6px 12px; border-right: 2px solid #fff; white-space: nowrap; }
.ev-title { padding: 6px 18px; }
.event-list .past summary { background: #5a6d7a; }
.ev-body { background: #fff; padding: 12px 16px 2px; font-size: 15px; }

/* Ekskul */
.ekskul { align-items: start; }
.ekskul .split-img img { aspect-ratio: 16/9; }

/* Search */
.search-page { display: flex; gap: 10px; }
.search-page input { flex: 1; font: inherit; padding: 10px 14px; border: 1.5px solid #b9c3cc; border-radius: 8px; }
.search-results { list-style: none; padding: 0; }
.search-results li { border-bottom: 1px solid #ddd; padding: 14px 0; }
.search-results a { color: var(--blue-text); font-weight: 800; font-size: 19px; text-decoration: none; }
.search-results p { margin: 4px 0 0; color: var(--muted); }

/* ---------------- Footer ---------------- */
.footer-band { height: 38px; background: var(--band); }
.footer-main { background: var(--footer); color: #fff; padding: 36px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.9fr; gap: 30px; }
.footer-title { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.footer-main p { margin: 0; line-height: 1.3; }
.social-row { display: flex; gap: 8px; margin-bottom: 12px; line-height: 1.3; }
.social-row svg { flex: none; margin-top: 1px; }
.footer-main a { color: #fff; text-decoration: none; }
.footer-main a:hover { text-decoration: underline; }
.footer-main hr { border: 0; border-top: 1px solid rgba(255,255,255,.75); margin: 34px 0 24px; }
.copyright { text-align: center; font-size: 13.5px; }

/* ---------------- Responsif ---------------- */
@media (max-width: 1100px) {
  .main-nav > ul > li > a { font-size: 13.5px; padding-inline: 7px; }
  .testi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testi-row .see-all { grid-column: 1 / -1; justify-self: end; }
  .home-testi-inner { grid-template-columns: 1fr 260px; }
  .testi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-header { top: 10px; padding: 0 12px; }
  .header-card { padding: 8px 12px; flex-wrap: wrap; }
  .brand { padding-bottom: 0; }
  .nav-toggle { display: block; margin: 0; }
  .header-right { display: none; width: 100%; align-items: stretch; padding: 8px 0 10px; }
  .header-card.open .header-right { display: flex; max-height: calc(100vh - 100px); overflow-y: auto; }
  /* Di HP/tablet foto header dimulai di bawah menu agar tidak tertutup */
  main { padding-top: 92px; }
  body.pad-top main { padding-top: 92px; }
  .header-card.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header-card.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header-card.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-top { justify-content: space-between; }
  .search-form { flex: 1; }
  .search-form input { width: 100%; opacity: 1; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: 10px 4px; font-size: 16px; border-bottom: 1px solid #e3e7ea; }
  .main-nav > ul > li.active > a::after, .main-nav > ul > li > a:hover::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 16px; display: none; }
  .has-sub.open > .dropdown { display: block; }
  .dropdown .dropdown { padding-left: 14px; transform: none; }
  .dropdown .has-sub > a { padding-right: 2px; }
  .dropdown .has-sub > a::after, .dropdown .has-sub::after { display: none; }
  .dropdown li + li { border-top: 0; }
  /* Tombol + / – buka-tutup submenu (lihat .sub-toggle di bawah) */
  .main-nav li.has-sub { position: relative; }
  .main-nav li.has-sub > a { padding-right: 52px; }
  .main-nav .sub-toggle { display: block; position: absolute; top: 0; right: 0; width: 46px; height: 44px; }
  .main-nav .dropdown .sub-toggle { height: 32px; width: 40px; }
  .home-hero-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-hero::before { background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.5)); }
  .split, .framework-grid, .campus-grid, .psb-grid, .img-grid { grid-template-columns: 1fr; }
  .img-grid { gap: 16px; }
  .sub-nav-inner { flex-direction: column; }
  .sub-nav-label { border-right: 0; padding: 14px 0 0; }
  .sub-nav ul { padding: 8px 0 14px; gap: 6px 22px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile { aspect-ratio: 16 / 10; border-radius: 12px; }
  .home-testi-inner { grid-template-columns: 1fr; }
  .cta-student { display: none; }
  .cta-band p { max-width: none; }
  .testi-grid, .testi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; padding: 0; }
  .event-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .psb-poster { margin: 0 auto; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .brand-text strong { font-size: 15px; }
  .tile-label { font-size: 15px; padding: 6px 8px; min-height: 32%; }
  .testi-grid, .testi-row, .post-grid { grid-template-columns: 1fr; }
  .vm-grid, .history-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vm-figure { max-width: 320px; }
  .history-collage { position: static; }
  .history-desc { margin-left: 16px; padding: 22px 18px 16px; }
  .search-form.open input, .search-form input:focus { width: 100%; }
}

/* Tombol admin melayang (hanya terlihat saat admin login) */
.admin-float { position: fixed; right: 18px; bottom: 18px; z-index: 200; background: #0a1a4a; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 99px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.admin-float:hover { background: #0084ff; }
.preview-badge { background: #b26a00; pointer-events: none; }

/* Layar kecil: foto beranda tampil utuh, teks pindah ke bawah foto */
@media (max-width: 700px) {
  .home-hero { height: auto; display: block; background: var(--navy-deep); }
  .home-hero .hero-img { position: static; height: auto; }
  .home-hero::before { display: none; }
  .home-hero-inner { padding-top: 20px; padding-bottom: 24px; }
  .home-hero h1 { max-width: none; font-size: 30px; text-shadow: none; }
  .hero-quote { font-size: 16px; text-shadow: none; }
}

/* Pilihan bahasa */
.lang-switch { display: inline-flex; border: 1.5px solid #c8d2dc; border-radius: 7px; overflow: hidden; font-size: 12.5px; font-weight: 800; }
.lang-switch a { padding: 4px 8px; text-decoration: none; color: var(--navy); }
.lang-switch a + a { border-left: 1.5px solid #c8d2dc; }
.lang-switch a.active { background: var(--navy-btn); color: #fff; }
.lang-switch a:not(.active):hover { background: #eef3f8; }

/* Tombol kembali ke atas */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 190; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--navy-btn); color: #fff; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.25); opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.to-top[hidden] { display: none; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover, .to-top:focus-visible { background: #0084ff; }
body:has(.admin-float) .to-top { bottom: 74px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Dropdown bahasa (terjemahan otomatis) */
.lang-menu { position: relative; font-size: 12.5px; font-weight: 800; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1.5px solid #c8d2dc; border-radius: 7px; color: var(--navy); cursor: pointer; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.lang-menu[open] summary, .lang-menu summary:hover { background: #eef3f8; }
.lang-menu ul { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 170px; max-height: 340px; overflow-y: auto; background: #fff; border-radius: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.lang-menu li a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--navy); font-weight: 700; white-space: nowrap; }
.lang-menu li a:hover { background: #eef3f8; }
.lang-menu li a.active { background: var(--navy-btn); color: #fff; }
@media (max-width: 900px) {
  .header-top { flex-wrap: wrap; }
  .lang-menu[open] { width: 100%; order: 9; }
  .lang-menu ul { position: static; margin-top: 6px; box-shadow: none; border: 1.5px solid #c8d2dc; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: none; }
}

/* =========================================================
   Bilah admin (hanya tampil untuk pengguna yang login)
   ========================================================= */
.adminbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 40px; display: flex; align-items: stretch; gap: 2px; padding: 0 10px; background: #0a1a4a; color: #dbe3f3; font: 600 13.5px/1 var(--font); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.adminbar a, .adminbar button { font: inherit; color: inherit; }
.ab-item { display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 11px; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; border-radius: 0; }
.ab-item:hover, .ab-item:focus-visible, .ab-menu.open > .ab-item { background: rgba(255,255,255,.12); color: #fff; }
.ab-item svg { flex: none; opacity: .9; }
.ab-brand { font-weight: 800; color: #fff; }
.ab-strong { color: #fff; background: #0084ff; margin: 6px 4px; height: auto; border-radius: 6px; }
.ab-strong:hover { background: #006fe0; }
.ab-spacer { flex: 1; }
.ab-menu { position: relative; display: flex; }
.ab-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #13275f; border-radius: 0 0 8px 8px; padding: 6px 0; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.ab-right .ab-drop { left: auto; right: 0; }
.ab-menu:hover > .ab-drop, .ab-menu:focus-within > .ab-drop, .ab-menu.open > .ab-drop { display: block; }
.ab-drop a, .ab-drop button { display: block; width: 100%; text-align: left; padding: 9px 16px; text-decoration: none; background: none; border: 0; cursor: pointer; line-height: 1.3; }
.ab-drop a:hover, .ab-drop button:hover { background: rgba(255,255,255,.12); color: #fff; }
.ab-drop form { margin: 0; border-top: 1px solid rgba(255,255,255,.12); }
/* Website bergeser ke bawah setinggi bilah admin */
body.has-adminbar { padding-top: 40px; }
body.has-adminbar .site-header { top: 54px; }
html:has(body.has-adminbar) { scroll-padding-top: 170px; }
@media (max-width: 900px) {
  body.has-adminbar .site-header { top: 50px; }
  .ab-item span { display: none; }
  .ab-brand span, .ab-strong span { display: inline; }
  .ab-hide-s { display: none; }
  .ab-item { padding: 0 10px; }
}
@media (max-width: 640px) {
  .ab-brand span, .ab-strong span { display: none; }
  .ab-strong { padding: 0 10px; }
}
.adminbar { overflow-x: clip; } /* bilah tidak pernah membuat halaman melebar di layar kecil */

/* =========================================================
   Testimoni: kartu sama tinggi + slider (beranda & {{testimoni}})
   ========================================================= */
.testi-card { height: 100%; box-sizing: border-box; }
.testi-quote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.testi-card .testi-more { margin-top: auto; }
.testi-row > .testi-card { align-self: stretch; }
.testi-foot { margin: 4px 0 0 4px; text-align: left; } /* link "Lihat Semua" di bawah slider testimoni */
.testi-carousel { position: relative; margin-top: 16px; }
.tc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 16px; scrollbar-width: none; }
.tc-track::-webkit-scrollbar { display: none; }
.tc-track > * { scroll-snap-align: start; min-height: 250px; }
.tc-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.tc-nav { position: absolute; top: calc(50% - 26px); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy-deep); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.22); display: grid; place-items: center; padding-bottom: 3px; }
.tc-nav:hover { background: var(--navy-deep); color: #fff; }
.tc-prev { left: -14px; }
.tc-next { right: -14px; }
.tc-nav[hidden] { display: none; }
@media (max-width: 1100px) { .tc-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 900px) { .tc-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .tc-track { grid-auto-columns: 82%; } .tc-prev { left: -6px; } .tc-next { right: -6px; } }

/* =========================================================
   Agenda / Event: per bulan + accordion
   ========================================================= */
.ev-section-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 10px; }
.ev-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 22px 32px; align-items: start; }
.ev-month-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 3px solid var(--navy); color: var(--navy); font-size: 20px; font-weight: 900; }
.ev-month-label small { font-size: 13px; font-weight: 700; color: var(--muted); }
.ev-items { display: grid; gap: 8px; }
.ev-item { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); overflow: hidden; }
.ev-item summary { display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; cursor: pointer; list-style: none; }
.ev-item summary::-webkit-details-marker { display: none; }
.ev-item summary:hover .ev-name, .ev-item[open] .ev-name { color: var(--blue-text); }
.ev-day { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 60px; border-radius: 8px; background: var(--navy); color: #fff; line-height: 1; box-sizing: border-box; overflow: hidden; }
.ev-day b { font-size: 26px; font-weight: 900; }
.ev-day small { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-top: 4px; opacity: .85; }
.ev-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-name { font-size: 17px; font-weight: 800; color: var(--navy-deep); line-height: 1.25; overflow-wrap: anywhere; }
.ev-loc { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.ev-loc::before { content: "📍 "; }
.ev-chev { width: 10px; height: 10px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); justify-self: center; transition: transform .2s; margin-top: -4px; }
.ev-item[open] .ev-chev { transform: rotate(-135deg); margin-top: 4px; }
.ev-desc { padding: 2px 16px 14px 88px; font-size: 15px; }
.ev-desc p { margin: 0 0 6px; }
.ev-item.past .ev-day { background: #8796a3; }
.ev-item.past .ev-name { color: #4b5866; }
@media (max-width: 560px) {
  .ev-item summary { grid-template-columns: 54px minmax(0, 1fr) 22px; gap: 10px; }
  .ev-day { width: 54px; height: 54px; }
  .ev-day b { font-size: 22px; }
  .ev-desc { padding-left: 14px; }
}

/* Tautan Halaman (menu Konten › Tautan Halaman) */
.page-links.section { padding: 36px 0; }
.pl-text { background: var(--gray); }
.pl-text .big-link + .big-link { margin-top: 10px; }
.pl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-buttons .heading-blue, .pl-text .heading-blue { margin-bottom: 14px; }

/* Header: logo saja / nama saja (Pengaturan › Identitas) */
.brand-logo img { width: auto; height: 58px; max-width: 260px; object-fit: contain; }
.site-header.scrolled .brand-logo img { width: auto; height: 46px; }
.brand-name { padding-top: 6px; }
@media (max-width: 560px) { .brand-logo img { height: 46px; max-width: 200px; } }

/* =========================================================
   Foto header: Slider / Video (Pengaturan › Beranda & › Foto Header Halaman)
   ========================================================= */
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: #345 center/cover no-repeat; }
.hero-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slider img.is-active { opacity: 1; }
.hero-dots { position: absolute; right: 24px; bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; opacity: .85; }
.hero-dots button.is-active { background: #fff; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-yt iframe { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 0; pointer-events: none; transform: translate(-50%, -50%) scale(var(--yt-scale, 1)); }
.page-hero.has-media::before { z-index: 1; }
.page-hero.has-media .container { z-index: 2; }
.has-media .hero-dots { pointer-events: auto; }
@media (max-width: 700px) {
  /* seperti foto statis di HP: media tampil utuh, teks di bawahnya */
  .home-hero.has-media .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: calc(1 / var(--hr, .5625)); }
  .hero-dots { right: 12px; bottom: 10px; }
}

/* Tombol buka/tutup submenu: hanya tampil di HP & tablet (≤900px) */
.sub-toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--navy); border-radius: 8px; }
.sub-toggle:hover, .sub-toggle:focus-visible { background: #eef3f8; }
.sub-toggle span { position: relative; display: block; width: 14px; height: 14px; margin: auto; }
.sub-toggle span::before, .sub-toggle span::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.sub-toggle span::after { transform: rotate(90deg); }
.has-sub.open > .sub-toggle span::after { transform: rotate(0deg); } /* "+" menjadi "–" saat terbuka */
/* Kolom testimoni beranda boleh menyempit (min-width: 0) supaya slider kartu tidak melebarkan halaman di HP */
.home-testi-inner > *, .testi-carousel { min-width: 0; }
/* Kartu pertama menempel tepat di awal slider (tombol ‹ tidak muncul sebelum digeser) */
.tc-track { scroll-padding-inline: 4px; }

/* ---------------- Karir: judul, 3 foto, lowongan (accordion) ---------------- */
.karir-intro { padding: 56px 0 30px; text-align: center; }
.karir-title { color: var(--blue-text); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; margin: 0; }
.karir-sub, .karir-sub p { color: var(--blue-text); font-family: var(--font-heading); font-weight: 800; font-size: clamp(18px, 2.1vw, 30px); line-height: 1.25; margin: .25em 0 0; }
.karir-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.3%; margin-top: 44px; }
.karir-photos img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 20px; }
.karir-jobs { padding: 70px 0 110px; }
.karir-jobs-title { text-align: center; color: var(--blue-text); font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); margin: 0 0 26px; }
.karir-empty { text-align: center; color: var(--muted); }
.karir-list { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.karir-item { border: 2px solid #1d6fa3; border-radius: 22px; background: #fff; scroll-margin-top: 120px; }
.karir-item summary { list-style: none; cursor: pointer; position: relative; padding: 13px 64px 13px 34px; }
.karir-item summary::-webkit-details-marker { display: none; }
.karir-item summary::after { content: ""; position: absolute; right: 30px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--blue-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s; }
.karir-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.karir-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 20px; }
.karir-item summary h3 { margin: 0; color: var(--blue-text); font-weight: 800; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; }
.karir-body { padding: 0 34px 30px; }
.karir-body .prose { color: #4a4a4a; text-align: left; line-height: 1.4; }
.karir-body .prose p { margin: 0 0 1em; }
.karir-body .prose ul { margin: .2em 0 0; padding-left: 1.2em; }
.karir-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.karir-apply, .karir-copy { border-radius: 999px; padding: 9px 34px; font-family: var(--font-heading); font-size: 18px; font-weight: 800; }
.karir-apply { background: #1c6ea4; color: #fff200; }
.karir-apply:hover { background: #155a88; }
.karir-copy { background: #dcdcdc; color: var(--blue-text); }
.karir-copy:hover { background: #cfcfcf; }
@media (max-width: 640px) {
  .karir-photos { grid-template-columns: 1fr; gap: 14px; }
  .karir-item summary { padding: 12px 52px 12px 20px; }
  .karir-item summary::after { right: 22px; }
  .karir-body { padding: 0 20px 24px; }
  .karir-apply, .karir-copy { padding: 9px 24px; font-size: 16px; }
}

/* ---------------- Widget {{agenda_komite}}: Agenda Komite (Orangtua) ---------------- */
.ortu-agenda-title { text-align: center; color: var(--blue-text); font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); margin: 0 0 26px; }
.ortu-ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1060px; margin: 0 auto; }
.ortu-ev { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 2px solid #d5e6f2; border-radius: 22px; padding: 18px 22px; }
.ortu-ev-date { flex: none; width: 76px; text-align: center; background: #2995cc; color: #fff; border-radius: 16px; padding: 10px 4px 9px; line-height: 1; }
.ortu-ev-date strong { display: block; font-family: var(--font-heading); font-size: 32px; font-weight: 800; }
.ortu-ev-date span { display: block; color: #fff200; font-weight: 800; font-size: 15px; letter-spacing: .06em; margin-top: 4px; }
.ortu-ev-date small { display: block; font-size: 12px; opacity: .85; margin-top: 3px; }
.ortu-ev-body { min-width: 0; }
.ortu-ev-body h3 { color: var(--blue-text); font-weight: 800; font-size: 19px; line-height: 1.25; margin: 2px 0 6px; }
.ortu-ev-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; color: #555; font-size: 14px; }
.ortu-ev-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ortu-ev-meta svg { color: var(--blue-text); flex: none; }
.ortu-ev-desc { margin: 0; color: #4a4a4a; font-size: 15px; line-height: 1.4; }
@media (max-width: 760px) {
  .ortu-ev-grid { grid-template-columns: 1fr; }
  .ortu-ev { padding: 16px; gap: 14px; }
  .ortu-ev-date { width: 64px; }
  .ortu-ev-date strong { font-size: 27px; }
}

/* ---------- Prestasi Siswa (/prestasi-siswa): credit roll + daftar lengkap ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pf-roll { background: radial-gradient(ellipse at 50% 0%, #0d3a5c 0%, #04172a 55%, #020b16 100%); color: #fff; text-align: center; padding: 140px 0 44px; }
body.has-adminbar .pf-roll { padding-top: 180px; }
.pf-roll-kicker { margin: 0 0 6px; color: var(--cream); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; }
.pf-roll-title { color: #fff; font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; margin: 0 0 22px; letter-spacing: .02em; }
.pf-roll-screen { position: relative; height: clamp(360px, calc(100vh - 340px), 640px); overflow: hidden; cursor: pointer; max-width: 760px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 16%, #000 84%, transparent 100%); }
.pf-roll-track { animation: pf-roll var(--pf-dur, 90s) linear infinite; will-change: transform; }
.pf-roll-screen:hover .pf-roll-track, .pf-roll-screen:focus-within .pf-roll-track, .pf-roll-screen.is-paused .pf-roll-track { animation-play-state: paused; }
@keyframes pf-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.pf-roll-list { list-style: none; margin: 0; padding: 120px 16px 40px; }
.pf-roll-month { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 34px auto 22px; max-width: 420px; color: #8fd0f2; font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.pf-roll-month::before, .pf-roll-month::after { content: ""; flex: 1; height: 1px; background: rgba(143, 208, 242, .35); }
.pf-roll-item { margin: 0 0 28px; }
.pf-roll-role { display: block; color: var(--cream); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.pf-roll-name { display: block; font-family: var(--font-heading); font-size: clamp(21px, 2.6vw, 29px); font-weight: 700; line-height: 1.25; }
.pf-roll-event { display: block; color: rgba(255, 255, 255, .62); font-size: 15px; font-style: italic; margin-top: 2px; }
.pf-roll-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pf-roll-toggle, .pf-roll-down { font: inherit; font-size: 14px; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 8px 20px; cursor: pointer; text-decoration: none; }
.pf-roll-toggle:hover, .pf-roll-down:hover { background: rgba(255, 255, 255, .12); }
/* Guliran sengaja tetap jalan walau perangkat memilih "kurangi animasi" (inti halaman ini); pengunjung bisa menekan Jeda */

.pf-head { text-align: center; max-width: 820px; margin: 0 auto 26px; }
.pf-intro { text-align: center; }
.pf-stats { color: var(--muted); margin: 0; }
.pf-stats b { color: var(--blue-text); font-size: 1.15em; }
.pf-tools { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 8px; }
.pf-search { width: 100%; max-width: 480px; }
.pf-search input { width: 100%; font: inherit; padding: 11px 20px; border: 2px solid #1d6fa3; border-radius: 999px; outline: none; }
.pf-search input:focus { box-shadow: 0 0 0 4px rgba(41, 149, 204, .2); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pf-chip { font: inherit; font-size: 14px; padding: 6px 15px; border-radius: 999px; border: 1px solid #1d6fa3; background: #fff; color: #1d6fa3; cursor: pointer; }
.pf-chip:hover { background: #eef6fb; }
.pf-chip.is-on { background: #1d6fa3; color: #fff; }
.pf-count { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.pf-group { margin-top: 30px; }
.pf-month { color: var(--blue-text); font-size: 20px; border-bottom: 2px solid #d4e6f2; padding-bottom: 8px; margin: 0 0 4px; }
.pf-rows { list-style: none; margin: 0; padding: 0; }
.pf-row { display: grid; grid-template-columns: 1.25fr 1fr 1.6fr 150px; gap: 6px 18px; align-items: center; padding: 13px 10px; border-bottom: 1px solid #e6ebf0; }
.pf-row:hover { background: #f3f8fc; }
.pf-row[hidden] { display: none; }
.pf-name { font-weight: 700; color: var(--navy); }
.pf-ach { color: #1d6fa3; font-weight: 600; }
.pf-event { color: var(--text); }
.pf-event small { display: block; color: var(--muted); font-size: 13.5px; }
.pf-level { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.pf-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef1f4; color: #4b5763; white-space: nowrap; }
.pf-badge-internasional { background: #fff1c9; color: #7a5200; }
.pf-badge-nasional { background: #e3f1fb; color: #0f5e9c; }
.pf-badge-provinsi { background: #e2f5ec; color: #116149; }
.pf-none, .pf-empty { text-align: center; color: var(--muted); margin: 30px 0; }
@media (max-width: 760px) {
  .pf-roll { padding: 110px 0 32px; }
  body.has-adminbar .pf-roll { padding-top: 150px; }
  .pf-roll-kicker { font-size: 11px; letter-spacing: .2em; }
  .pf-row { grid-template-columns: 1fr auto; padding: 12px 4px; }
  .pf-name { grid-column: 1; }
  .pf-level { grid-column: 2; grid-row: 1; }
  .pf-ach, .pf-event { grid-column: 1 / -1; }
  .pf-event { font-size: 15px; }
}

/* ===== Tombol WhatsApp melayang (lihat wa_float() di includes/site.php) ===== */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 195; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.wa-float > * { pointer-events: auto; }
.wa-fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .2s ease, background .2s ease; }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover, .wa-fab:focus-visible, .wa-fab[aria-expanded="true"] { background: #1ebe5b; transform: translateY(-2px); }
.wa-fab:focus-visible { outline: 3px solid #0a1a4a; outline-offset: 3px; }
.wa-card { position: relative; width: min(320px, calc(100vw - 36px)); background: #fff; color: #1d2b3a; border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 16px 40px rgba(10,26,74,.25); font-size: 15px; line-height: 1.5; }
.wa-card[hidden] { display: none; }
.wa-card-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #5a6b7d; font-size: 22px; line-height: 1; cursor: pointer; }
.wa-card-close:hover, .wa-card-close:focus-visible { background: #eef2f6; color: #0a1a4a; }
.wa-card-head { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.wa-card-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; }
.wa-card-ico svg { width: 24px; height: 24px; }
.wa-card-head strong { display: block; font-size: 15px; line-height: 1.3; color: #0a1a4a; }
.wa-card-head small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5a6b7d; }
.wa-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9aa7b4; }
.wa-dot.is-open { background: #1ebe5b; }
.wa-card-text { margin: 12px 0 0; }
.wa-card-off { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff6e0; color: #6b4a00; font-size: 14px; }
.wa-card-off[hidden] { display: none; }
.wa-card-hours { margin: 8px 0 0; font-size: 13px; color: #5a6b7d; }
.wa-card-btn { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 99px; background: #0f7f47; color: #fff; font-weight: 800; text-decoration: none; }
.wa-card-btn svg { width: 20px; height: 20px; }
.wa-card-btn:hover, .wa-card-btn:focus-visible { background: #0b6a3b; color: #fff; }
/* Tombol "kembali ke atas" naik di atas tombol WhatsApp; label admin pindah ke kiri */
body:has(.wa-float) .to-top { bottom: 84px; right: 22px; }
body:has(.wa-float) .admin-float { right: 86px; }
@media (max-width: 600px) {
  .wa-float { right: 14px; bottom: 14px; }
  .wa-fab { width: 50px; height: 50px; }
  body:has(.wa-float) .to-top { bottom: 76px; right: 16px; }
}
@media print { .wa-float { display: none; } }
