/* =========================================================
   CAE Indonesia – Gaya A "Hangat & Menenangkan"
   Warna dari logo: ungu #752A8F, biru #1561AC, kuning #F5B623
   ========================================================= */
:root {
  --cream: #FFFBF5;
  --ink: #2B2433;
  --muted: #5B5462;
  --line: #F1ECE4;
  --purple: #752A8F;
  --purple-dark: #5A1F6E;
  --purple-soft: #F3EAF7;
  --blue: #1561AC;
  --blue-dark: #0F4C88;
  --blue-soft: #E6F0FA;
  --yellow: #F5B623;
  --yellow-soft: #FFE7A8;
  --yellow-ink: #5C4300;
  --amber-ink: #8A5A00;
  --green: #1F7A44;
  --shadow: 0 6px 20px rgba(43, 36, 51, .06);
  --shadow-lg: 0 20px 48px rgba(43, 36, 51, .14);
  --radius: 28px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-sm { padding-top: 48px; padding-bottom: 48px; }
.bg-white { background: #fff; }
.rounded-top { border-radius: 48px 48px 0 0; }

/* ---------- Typography helpers ---------- */
.pill {
  display: inline-block; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--purple-soft); color: var(--purple);
}
.pill-blue { background: var(--blue-soft); color: var(--blue-dark); }
.pill-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.h1 { font-size: 56px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.h2 { font-size: 40px; font-weight: 800; line-height: 1.15; }
.h3 { font-size: 26px; font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.text-purple { color: var(--purple); }
.text-blue { color: var(--blue); }
.section-head { margin-bottom: 32px; }
.section-head .h2 { margin-top: 14px; }
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.row-between { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.link-more { font-weight: 700; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 0; line-height: 1.2;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(43,36,51,.08); }
.btn-white:hover { color: var(--purple); }
.btn-yellow { background: var(--yellow-soft); color: var(--ink); }
.btn-yellow:hover { background: #FFDB80; color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #17633A; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid #E2DAE6; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 251, 245, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s, padding .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(43, 36, 51, .08); }
.site-header.scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }
.site-header.scrolled .brand img { height: 46px; }
.header-inner, .brand img { transition: padding .2s, height .2s; }
html { scroll-padding-top: 110px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow); font-weight: 600; font-size: 15px; }
.nav > a, .nav-item > button {
  font: inherit; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; display: flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-item > button:hover, .nav > a.active, .nav-item.active > button { background: var(--purple-soft); color: var(--purple); }
.nav-item { position: relative; }
.nav-item .dropdown {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 24px; padding: 16px; box-shadow: var(--shadow-lg); min-width: 300px;
}
.nav-item .dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; }
.dropdown a:hover { background: var(--purple-soft); color: var(--purple); }
.dropdown-wide { display: none; width: min(920px, 90vw); }
.nav-item:hover .dropdown-wide, .nav-item:focus-within .dropdown-wide, .nav-item.open .dropdown-wide { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.dropdown-col { border-radius: 18px; padding: 14px; background: var(--purple-soft); }
.dropdown-col.blue { background: var(--blue-soft); }
.dropdown-col .col-title { display: block; font-weight: 800; font-size: 18px; color: var(--purple); padding: 2px 14px 8px; text-decoration: none; }
.dropdown-col.blue .col-title { color: var(--blue); }
.dropdown-col a:not(.col-title) { font-size: 14px; }
.dropdown-col a:not(.col-title):hover { background: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: none; align-items: center; justify-content: center; background: var(--purple-soft); color: var(--purple);
}
.icon-btn.solid { background: var(--purple); color: #fff; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-text .h1 { margin: 18px 0; }
.hero-text .lead { margin: 0 0 30px; max-width: 560px; }
.hero-visual { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.arch {
  width: 100%; max-width: 440px; height: 480px; border-radius: 220px 220px 32px 32px; overflow: hidden;
  background: var(--purple-soft); border: 10px solid #fff; box-shadow: 0 24px 48px rgba(117,42,143,.12);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; padding: 24px; }
.arch-placeholder img { width: 70%; height: auto; object-fit: contain; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); background: #fff; border-radius: var(--radius); box-shadow: 0 12px 36px rgba(43,36,51,.08); overflow: hidden; }
.stat { padding: 28px; display: flex; gap: 16px; align-items: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.stat-value { font-weight: 800; font-size: 28px; line-height: 1.15; }
.stat-value.small { font-size: 19px; line-height: 1.25; }
.stat-label { font-weight: 600; color: var(--muted); font-size: 15px; }
.tint-purple { background: var(--purple-soft); color: var(--purple); }
.tint-blue { background: var(--blue-soft); color: var(--blue); }
.tint-yellow { background: #FFF1CC; color: var(--amber-ink); }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); }
.card-pad { padding: 28px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.split > .half { flex: 1 1 420px; min-width: 0; }

.link-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.link-card:hover { color: var(--purple); }
.link-card strong { font-size: 18px; font-weight: 800; }
.link-card span { color: var(--muted); font-size: 15px; }

.program-card { border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; background: var(--purple-soft); }
.program-card.blue { background: var(--blue-soft); }
.program-card .badge-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; }
.program-card.blue .badge-icon { background: var(--blue); }
.program-card h3 a { color: inherit; text-decoration: none; }
.program-list { display: flex; flex-direction: column; gap: 8px; }
.program-list a {
  display: flex; justify-content: space-between; gap: 12px; background: #fff; color: var(--ink); text-decoration: none;
  border-radius: 16px; padding: 12px 18px; font-weight: 600; font-size: 15px;
}
.program-list a span { color: var(--purple); }
.program-card.blue .program-list a span { color: var(--blue); }
.program-list a:hover { color: var(--purple); }

/* ---------- Events ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  font: inherit; font-weight: 600; font-size: 15px; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  background: var(--purple-soft); color: var(--purple-dark); text-decoration: none;
}
.filter-btn.active, .filter-btn[aria-pressed="true"] { background: var(--purple); color: #fff; }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; background: var(--cream); border-radius: 22px; padding: 18px 22px; }
.bg-cream .event, .event.on-white { background: #fff; box-shadow: var(--shadow); }
.event-date { width: 80px; text-align: center; background: var(--yellow-soft); border-radius: 16px; padding: 10px 4px; flex: none; }
.event-date .d { font-weight: 800; font-size: 24px; line-height: 1; }
.event-date .m { font-size: 13px; color: var(--yellow-ink); }
.event-body { flex: 1 1 320px; min-width: 0; }
.event-cat { font-size: 13px; font-weight: 700; }
.event-cat.mh { color: var(--purple); }
.event-cat.sn { color: var(--blue); }
.event-cat.event { color: var(--amber-ink); }
.event-title { font-weight: 800; font-size: 19px; line-height: 1.35; }
.event-meta { color: var(--muted); font-size: 15px; }
.month-label { font-weight: 800; font-size: 20px; margin: 28px 0 12px; }

/* ---------- Articles ---------- */
.article-card { text-decoration: none; color: var(--ink); background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.article-card .thumb { aspect-ratio: 16 / 10; background: var(--purple-soft); overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.article-card .date { font-size: 13px; font-weight: 700; color: var(--purple); }
.article-card .title { font-weight: 800; font-size: 19px; line-height: 1.35; }
.article-card .excerpt { color: var(--muted); font-size: 15px; }
.article-card:hover .title { color: var(--purple); }

/* ---------- Prose (isi artikel/halaman) ---------- */
.prose { font-family: 'Lora', Georgia, serif; font-size: 19px; line-height: 1.8; color: #34303A; }
.prose.sans { font-family: inherit; font-size: 17px; line-height: 1.75; }
.prose h2, .prose h3, .prose h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--ink); margin: 1.6em 0 .6em; line-height: 1.3; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 22px; } .prose h4 { font-size: 20px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose figure { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 18px; margin: 1em 0; height: auto !important; }
.prose blockquote { background: #fff; border-radius: 22px; padding: 20px 26px; font-style: italic; color: var(--purple-dark); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid #E8E1EC; padding: 8px 10px; vertical-align: top; }
.prose a { word-break: break-word; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 1em 0; }
.prose .embed iframe, .prose video { width: 100%; height: 100%; border: 0; border-radius: 18px; }

/* Format dari editor dashboard */
.prose .color { color: var(--color); }
.prose .lead { font-size: 1.2em; line-height: 1.6; }
.prose small, .prose .small { font-size: .85em; }
.prose mark { background: #FFE7A8; color: inherit; padding: 0 .15em; border-radius: 4px; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.prose details { background: #fff; border-radius: 16px; padding: 14px 18px; margin: 0 0 1em; }
.prose summary { cursor: pointer; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.prose img[style*="width"] { display: inline-block; }
.prose p[style*="center"] img, .prose img.center { margin-left: auto; margin-right: auto; }

/* ---------- Breadcrumb & page header ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero { background: var(--purple-soft); border-radius: 36px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.page-hero.blue { background: var(--blue-soft); }
.page-hero .h1 { font-size: 46px; margin: 16px 0 12px; }
.page-hero .lead { color: #4A4452; margin: 0 0 24px; }

/* ---------- Program detail ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.fact { background: #fff; border-radius: 22px; padding: 18px 22px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.fact .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fact .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.fact .val { font-weight: 800; font-size: 16px; line-height: 1.35; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion details { background: #fff; border-radius: 18px; }
.accordion summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; color: var(--purple); font-weight: 800; font-size: 20px; line-height: 1; }
.accordion details[open] summary::after { content: '–'; }
.accordion .num { color: var(--purple); margin-right: 10px; }
.accordion .content { padding: 0 20px 18px 20px; color: var(--muted); }
.sticky-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 36px rgba(43,36,51,.08); display: flex; flex-direction: column; gap: 14px; }
.side-box { background: var(--purple-soft); border-radius: var(--radius); padding: 24px; }
.side-box a { display: block; text-decoration: none; font-weight: 600; padding: 7px 0; line-height: 1.4; }
.person { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 22px; padding: 18px; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--purple-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--purple); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Teachers / team ---------- */
.teacher-card { background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; box-shadow: var(--shadow); }
.teacher-photo { width: 148px; height: 168px; border-radius: 74px 74px 22px 22px; background: var(--purple-soft); border: 6px solid #fff; box-shadow: 0 10px 24px rgba(43,36,51,.08); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--purple); font-weight: 800; font-size: 32px; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card .name { font-weight: 800; font-size: 18px; line-height: 1.35; }
.teacher-card .role { color: var(--muted); font-size: 14px; }
.teacher-card details { width: 100%; text-align: left; font-size: 15px; color: var(--muted); }
.teacher-card summary { cursor: pointer; font-weight: 700; color: var(--purple); text-align: center; }
.contact-chip { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--cream); border-radius: 999px; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; width: 100%; overflow-wrap: anywhere; }
.contact-chip:hover { color: var(--purple); }

/* ---------- Testimonials ---------- */
.quote-card { margin: 0; background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.quote-card blockquote { margin: 0; font-size: 16px; color: var(--ink); }
.quote-card figcaption { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.quote-card .avatar { width: 46px; height: 46px; font-size: 16px; }
.quote-card .who { font-weight: 700; line-height: 1.3; }
.quote-card .role { font-size: 14px; color: var(--muted); }
.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }

/* Testimoni satu kolom */
.quote-list { display: flex; flex-direction: column; gap: 20px; max-width: 880px; margin: 0 auto; }
.quote-list .quote-card { flex-direction: row; align-items: flex-start; gap: 22px; padding: 30px 32px; }
.quote-list .quote-card .q-avatar { flex: none; }
.quote-list .quote-card .avatar { width: 72px; height: 72px; font-size: 26px; }
.quote-list .quote-card .q-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.quote-list .quote-card blockquote { font-size: 17px; line-height: 1.7; }
.quote-list .quote-card .who { font-size: 17px; }
.quote-list .quote-mark { color: var(--purple); opacity: .35; }
@media (max-width: 600px) {
  .quote-list .quote-card { flex-direction: column; padding: 22px; gap: 14px; }
  .quote-list .quote-card .avatar { width: 56px; height: 56px; }
}

/* ---------- Partners ---------- */
.partner { text-decoration: none; border-radius: 22px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; box-shadow: var(--shadow); min-height: 120px; }
.partner img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(.2); }
.partner span { color: #4A4452; font-weight: 600; font-size: 12px; line-height: 1.35; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--purple); color: #fff; border-radius: 32px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band .t { font-weight: 800; font-size: 28px; line-height: 1.25; }
.cta-band .s { color: #F1E3F6; font-size: 17px; margin-top: 6px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 36px rgba(43,36,51,.06); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.input {
  font: inherit; font-weight: 400; padding: 13px 16px; border: 1px solid #E2DAE6; border-radius: 14px; background: var(--cream); color: var(--ink); width: 100%;
}
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
textarea.input { resize: vertical; min-height: 120px; }
.error { color: #B42318; font-size: 14px; font-weight: 600; }
.alert { border-radius: 16px; padding: 14px 18px; font-weight: 600; }
.alert-success { background: #E7F6EC; color: #14532D; }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); }
.alert-warning { background: #FFF4D6; color: #6B4A00; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line svg { flex: none; margin-top: 3px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }
.pagination .current { background: var(--purple); color: #fff; }
.pagination .disabled { opacity: .45; }

/* ---------- Member portal ---------- */
.portal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 28px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; }
.table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); }
.badge.green { background: #E7F6EC; color: #14532D; }
.badge.gray { background: #F1EEF3; color: var(--muted); }
.auth-wrap { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; min-height: calc(100vh - 120px); }
.auth-side { flex: 1 1 420px; min-width: 0; background: var(--purple-soft); border-radius: 36px; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.auth-main { flex: 1 1 420px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.auth-main .form-card { width: 100%; max-width: 440px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #DDD6E2; border-radius: 48px 48px 0 0; margin-top: 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 64px; padding-bottom: 32px; }
.footer-grid > div { flex: 1 1 170px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-grid > div:first-child { flex: 2 1 280px; }
.footer-grid .t { font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-grid a { color: #DDD6E2; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-logo { background: #fff; border-radius: 16px; padding: 10px 14px; align-self: flex-start; }
.footer-logo img { height: 46px; width: auto; }
.footer-bottom { border-top: 1px solid #443C4C; padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: #B3AABB; }
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 30; background: var(--green); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 14px 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 24px rgba(31,122,68,.3);
}
.wa-float:hover { color: #fff; background: #17633A; }
button.wa-float { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.wa-menu { position: fixed; right: 24px; bottom: 88px; z-index: 31; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 10px; width: min(320px, calc(100vw - 32px)); }
.wa-menu .wa-head { font-weight: 800; padding: 8px 12px 6px; }
.wa-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.wa-menu a:hover { background: #E7F6EC; }
.wa-menu .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.wa-menu .lbl2 { font-weight: 700; line-height: 1.3; }
.wa-menu .num { font-size: 13px; color: var(--muted); }
.wa-picker-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(28, 20, 36, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wa-picker-backdrop .wa-picker { position: static; width: min(360px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.wa-picker .wa-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wa-close { border: 0; background: var(--line, #eee); width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.to-top {
  position: fixed; left: 24px; bottom: 24px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--purple); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--purple); color: #fff; }
.to-top svg { transform: rotate(180deg); }

/* =========================================================
   Responsif
   ========================================================= */
@media (max-width: 1100px) {
  .nav, .header-actions .btn-login { display: none; }
  .icon-btn { display: flex; }
  .mobile-nav.open {
    display: block; position: absolute; left: 14px; right: 14px; top: 100%;
    background: #fff; border-radius: 24px; padding: 8px 20px 20px; box-shadow: var(--shadow-lg); max-height: 80vh; overflow-y: auto;
  }
  .mobile-nav a, .mobile-nav summary { display: block; color: var(--ink); text-decoration: none; padding: 14px 4px; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--line); cursor: pointer; }
  .mobile-nav summary { list-style: none; display: flex; justify-content: space-between; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { content: '+'; color: var(--purple); font-size: 22px; line-height: 1; }
  .mobile-nav details[open] summary::after { content: '–'; }
  .mobile-nav .sub a { font-weight: 600; font-size: 15px; padding: 10px 4px 10px 16px; border-bottom: 0; line-height: 1.4; }
  .mobile-nav .sub .grp { font-weight: 800; font-size: 14px; padding: 10px 4px 2px 16px; color: var(--purple); }
  .mobile-nav .sub .grp.blue { color: var(--blue); }
  .mobile-nav .btn { margin-top: 16px; border-bottom: 0; color: #fff; }
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0,1fr); }
  .grid-4, .grid-5, .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .h1 { font-size: 40px; } .h2 { font-size: 32px; }
  .page-hero .h1 { font-size: 34px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .arch { height: 340px; }
}
@media (max-width: 600px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .h1 { font-size: 32px; line-height: 1.18; } .h2 { font-size: 26px; line-height: 1.25; }
  .lead { font-size: 17px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .hero { gap: 28px; padding-top: 24px; padding-bottom: 44px; }
  .arch { height: 260px; border-radius: 130px 130px 24px 24px; }
  .brand img { height: 44px; }
  .stats, .grid-4, .facts { grid-template-columns: minmax(0,1fr); }
  .stat { border-left: 0 !important; padding: 18px 22px; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .program-card, .card-pad, .form-card, .cta-band, .sticky-card { padding: 22px; }
  .page-hero { padding: 26px; border-radius: 26px; }
  .page-hero .h1 { font-size: 28px; }
  .event .btn { width: 100%; }
  .prose { font-size: 17px; }
  .cta-band .t { font-size: 22px; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .wa-menu { right: 16px; bottom: 80px; }
  .to-top { left: auto; right: 16px; bottom: 84px; width: 44px; height: 44px; }
  .wa-open ~ .to-top, body.wa-menu-open .to-top { display: none; }
  .wa-float .lbl { display: none; }
  .auth-side { padding: 28px; border-radius: 26px; }
  .auth-wrap { padding: 12px; }
}
@media (max-width: 420px) {
  .grid-5 { grid-template-columns: minmax(0,1fr); }
}

/* =========================================================
   Hero slider beranda (gambar penuh + header transparan)
   ========================================================= */
.site-header.over-hero { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.over-hero.scrolled { background: rgba(255, 251, 245, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header.over-hero:not(.scrolled) .brand { background: #fff; border-radius: 22px; padding: 6px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.site-header.over-hero:not(.scrolled) .nav { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.brand { transition: background .2s, padding .2s; }

.hero-slider { position: relative; min-height: clamp(580px, 92vh, 820px); background: #2a1638; color: #fff; overflow: hidden; display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 14, 44, .92) 0%, rgba(58, 24, 82, .78) 38%, rgba(40, 30, 90, .35) 72%, rgba(20, 30, 70, .2) 100%),
    linear-gradient(0deg, rgba(20, 10, 30, .55) 0%, rgba(20, 10, 30, 0) 40%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: 150px; padding-bottom: 180px; }
.hero-content .pill { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.hero-title { font-size: clamp(34px, 5vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 18px; max-width: 820px; color: #fff; }
.hero-accent { display: block; color: var(--yellow); }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 600px; margin: 0 0 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.btn-hero { background: var(--yellow); color: #2B2433; border: 2px solid var(--yellow); }
.btn-hero:hover { background: #ffc94a; border-color: #ffc94a; color: #2B2433; }
.btn-hero-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn-hero-ghost:hover { background: #fff; color: var(--purple); border-color: #fff; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 2; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.hero-dot.is-active { width: 36px; background: var(--yellow); }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.hero-arrow:hover { background: #fff; color: var(--purple); }
.hero-slider + section[aria-label="CAE dalam angka"] { position: relative; z-index: 3; margin-top: -56px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-bg { transition: none !important; }
  .hero-bg { transform: none !important; }
}
@media (max-width: 900px) {
  .hero-content { padding-top: 130px; padding-bottom: 160px; }
  .hero-shade { background: linear-gradient(180deg, rgba(30, 14, 44, .55) 0%, rgba(40, 20, 60, .82) 55%, rgba(30, 14, 44, .95) 100%); }
  .hero-arrows { display: none; }
}
@media (max-width: 600px) {
  .hero-slider { min-height: 600px; }
  .hero-slide { align-items: flex-end; }
  .hero-content { padding-top: 120px; padding-bottom: 130px; }
  .hero-content .btn { flex: 1 1 auto; justify-content: center; }
  .hero-controls { bottom: 76px; justify-content: center; }
  .site-header.over-hero:not(.scrolled) .brand { padding: 4px 10px; border-radius: 16px; }
}

/* =========================================================
   Member Area: kartu profil & foto
   ========================================================= */
.profile-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 36px; align-items: center; }
.profile-main { display: flex; gap: 24px; align-items: center; }
.profile-photo { position: relative; flex: none; width: 132px; height: 132px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; text-decoration: none; border: 5px solid #fff; box-shadow: 0 10px 28px rgba(117, 42, 143, .18); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-photo-edit { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; }
.profile-id .h1 { font-size: 34px; margin: 12px 0 4px; line-height: 1.15; }
.profile-code { margin: 0 0 16px; color: var(--muted); }
.profile-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; background: var(--cream); border-radius: 20px; padding: 20px 22px; }
.profile-facts dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.profile-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.profile-hint { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--yellow-soft); color: var(--yellow-ink); border-radius: 16px; padding: 12px 16px; font-weight: 600; }
.profile-hint a { color: var(--purple); font-weight: 800; text-decoration: none; margin-left: auto; }
.photo-field { display: flex; gap: 20px; align-items: center; margin: 8px 0 20px; }
.photo-field .profile-photo { width: 104px; height: 104px; font-size: 34px; }
@media (max-width: 900px) {
  .profile-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .profile-card { padding: 22px; }
  .profile-main { flex-direction: column; text-align: center; }
  .profile-main .btn-row { justify-content: center; }
  .profile-photo { width: 112px; height: 112px; }
  .profile-id .h1 { font-size: 26px; }
  .profile-facts { grid-template-columns: minmax(0, 1fr); }
  .profile-hint a { margin-left: 0; }
}

.score-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 22px 0 8px; }
.score-head:first-of-type { margin-top: 6px; }
.score-head h3 { font-size: 17px; margin: 0; color: var(--purple); }
.score-head .muted { font-size: 14px; }

.social-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.social-links a { font-weight: 700; }
