/* ========================================================================
 * Portal PKSK — Stylesheet
 * Tema Navy & Azure: hero gelap, kad cerah, aksen biru terang.
 * ==================================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #fbf3f5;
  --card:      #ffffff;
  --ink:       #2a2226;   /* teks tajuk gelap kehangatan */
  --ink-soft:  #7d7175;
  --line:      #f0e4e8;
  --accent:    #a41f45;   /* maroon utama (Foodera) */
  --accent-2:  #c33a61;   /* maroon cerah */
  --accent-dk: #7d1533;   /* maroon gelap (notch logo) */
  --accent-soft: #fbe7ee;
  --good:      #15803d;
  --good-bg:   #dcfce7;
  --bad:       #c02626;
  --bad-bg:    #fee2e2;
  --warn:      #b45309;
  --shadow:    0 12px 34px rgba(120, 20, 50, .10);
  --radius:    18px;
}

[data-theme="dark"] {
  --bg:        #081226;
  --bg-soft:   #0d1c39;
  --card:      #0f1e3d;
  --ink:       #e8edf7;
  --ink-soft:  #93a5c9;
  --line:      #1e3157;
  --navy:      #060f22;
  --navy-2:    #0d2448;
  --accent:    #4f8ef7;
  --accent-2:  #7fb0fa;
  --accent-soft: #12294f;
  --good:      #4ade80;
  --good-bg:   #12331e;
  --bad:       #f87171;
  --bad-bg:    #3a1414;
  --shadow:    0 10px 30px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; gap: 20px;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-logo { display: block; flex: 0 0 auto; }
.brand-logo svg { width: 118px; height: 43px; display: block;
  filter: drop-shadow(0 6px 14px rgba(124, 20, 50, .30)); }

.mainnav { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.mainnav::-webkit-scrollbar { display: none; }
.tab {
  border: none; background: none; cursor: pointer;
  color: var(--ink); font-size: 14.5px; font-weight: 700;
  padding: 6px 2px; white-space: nowrap; position: relative;
  transition: color .15s ease;
}
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); }
.tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2.5px; border-radius: 2px; background: var(--accent);
}
.nav-cta {
  flex: 0 0 auto; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(164, 31, 69, .28);
  transition: transform .14s ease, background .14s ease;
}
.nav-cta:hover { transform: translateY(-2px); background: var(--accent-dk); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.theme-btn, .icon-btn {
  font-size: 15px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: transform .15s ease; flex: 0 0 40px; position: relative;
}
.theme-btn:hover { transform: rotate(-15deg) scale(1.05); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--bad); border: 1.5px solid var(--card);
}
.avatar-chip {
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); white-space: nowrap;
}
.avatar-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 800;
}
.avatar-chip .chev { color: var(--ink-soft); font-size: 10px; }

/* ---------- Layout ---------- */
/* Kontena penuh; setiap seksyen dibalut .wrap supaya hero boleh full-bleed */
.container { padding: 0 0 60px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.view { padding-top: 26px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 18px;
}

/* ---------- Hero (full-bleed, futuristik: bintang + aurora) ---------- */
.hero {
  color: #fff; overflow: hidden; position: relative; margin-bottom: 26px;
  border-radius: 0 0 44px 44px;
  background:
    radial-gradient(900px 420px at 110% -8%, rgba(34, 166, 242, .16), transparent 55%),
    linear-gradient(118deg, #050f22 0%, #081c3d 52%, #0b2a58 100%);
}
/* Lapisan bintang halus (dua saiz, berjubin) */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 22px 34px, rgba(255,255,255,.55), transparent 100%),
    radial-gradient(1.2px 1.2px at 128px 96px, rgba(160,210,255,.45), transparent 100%),
    radial-gradient(1px 1px at 208px 22px, rgba(255,255,255,.35), transparent 100%),
    radial-gradient(1.4px 1.4px at 66px 178px, rgba(140,200,255,.4), transparent 100%),
    radial-gradient(1px 1px at 246px 150px, rgba(255,255,255,.3), transparent 100%);
  background-size: 280px 220px;
  opacity: .7;
}
/* Aurora biru-cyan bergerak perlahan */
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 900px; right: -260px; top: -420px;
  background: conic-gradient(from 190deg,
    transparent 0deg, rgba(34, 211, 238, .13) 70deg,
    rgba(46, 124, 246, .20) 140deg, rgba(124, 58, 237, .10) 210deg,
    transparent 300deg);
  border-radius: 50%; filter: blur(46px);
  animation: aurora 22s linear infinite;
}
@keyframes aurora { to { transform: rotate(360deg); } }

.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 56px 22px 64px;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 28px;
  position: relative; z-index: 1;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .24em;
  text-transform: uppercase; color: #9ed0ff; margin: 0 0 14px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(46, 124, 246, .10);
  border: 1px solid rgba(95, 160, 249, .35);
  backdrop-filter: blur(8px);
}
.hero .eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 10px #22d3ee;
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot { 50% { opacity: .35; } }
.hero h2 {
  margin: 0 0 8px; font-size: 54px; line-height: 1.02; letter-spacing: .01em;
  font-weight: 800; text-transform: uppercase; text-wrap: balance;
}
.hero h2 b {
  background: linear-gradient(100deg, #8fd4ff 0%, #4f94f8 48%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(56, 146, 255, .45));
}
.hero .sub { margin: 0 0 24px; font-size: 16px; opacity: .88; }
.hero .quote {
  display: flex; gap: 12px; font-size: 19px; font-weight: 700; line-height: 1.5;
  margin: 0 0 18px; max-width: 40ch;
}
.hero .quote .qm { color: #4f94f8; font-size: 40px; line-height: .9; font-family: Georgia, serif; }
.hero .lead {
  border-left: 3px solid var(--accent); padding: 5px 0 5px 15px;
  font-size: 14px; opacity: .82; margin: 0 0 28px; max-width: 46ch; line-height: 1.65;
}
.hero-art { display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; }
/* Foto hero sebenar (assets/hero-pksk.jpg) — dipapar automatik jika wujud,
   menggantikan perisai CSS di bawahnya */
.hero-art .hero-photo {
  width: 100%; max-width: 560px; border-radius: 24px; display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.hero-art .hero-photo ~ .pksk-hero-visual { /* disorok melalui onload */ }

/* Visual terapung terus atas hero — tiada kotak, lebih lapang & futuristik */
.pksk-hero-visual {
  position: relative;
  width: 100%;
  min-height: 455px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 52%, rgba(46, 124, 246, .18), transparent 58%);
}
.pksk-hero-visual::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px dashed rgba(125, 211, 252, 0.30);
  box-shadow: inset 0 0 90px rgba(59, 130, 246, 0.12);
  animation: rotateRing 30s linear infinite;
}
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.pksk-bg-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.18);
}
.ring-1 { width: 310px; height: 310px; }
.ring-2 { width: 390px; height: 390px; }
.ring-3 { width: 480px; height: 480px; }
.floating-card {
  position: absolute;
  z-index: 4;
  width: 74px;
  height: 74px;
  border-radius: 16px;
  background: rgba(14, 44, 88, 0.45);
  border: 1px solid rgba(147, 216, 253, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), inset 0 0 24px rgba(34, 211, 238, 0.10);
  backdrop-filter: blur(12px);
  animation: cardFloat 6s ease-in-out infinite;
}
.list-card { animation-delay: -3s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.chart-card {
  left: 14%;
  top: 29%;
  display: grid;
  place-items: center;
}
.chart-card svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #4fd6f2;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.70));
}
.list-card {
  right: 18%;
  top: 27%;
  padding: 18px 16px;
}
.list-card span {
  display: block;
  height: 7px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #7db7ff;
}
.list-card span:nth-child(1) {
  width: 16px;
  box-shadow: 24px 0 0 rgba(147, 197, 253, 0.65);
}
.list-card span:nth-child(2) { width: 48px; }
.list-card span:nth-child(3) { width: 38px; }
.pksk-shield {
  position: relative;
  z-index: 5;
  width: 240px;
  height: 282px;
  clip-path: polygon(50% 0%, 92% 16%, 86% 70%, 50% 100%, 14% 70%, 8% 16%);
  background: conic-gradient(from 210deg,
    #bfeaff, #4f94f8 22%, #123a77 46%, #22d3ee 58%, #4f94f8 78%, #bfeaff);
  padding: 3px;
  filter:
    drop-shadow(0 0 26px rgba(34, 211, 238, .38))
    drop-shadow(0 26px 44px rgba(0, 0, 0, .40));
  animation: shieldFloat 5s ease-in-out infinite;
}
@keyframes shieldFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.shield-inner {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 92% 16%, 86% 70%, 50% 100%, 14% 70%, 8% 16%);
  background:
    linear-gradient(150deg, rgba(40, 84, 158, 0.92), rgba(6, 24, 56, 0.97)),
    radial-gradient(circle at 50% 12%, rgba(147, 197, 253, 0.50), transparent 46%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shield-inner::before {
  content: "";
  position: absolute;
  inset: 16px;
  clip-path: polygon(50% 0%, 92% 16%, 86% 70%, 50% 100%, 14% 70%, 8% 16%);
  border: 1.5px solid rgba(165, 224, 255, 0.55);
}
/* Kilauan holografik menyapu perisai */
.shield-inner::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg,
    transparent 42%, rgba(255, 255, 255, .18) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 55%  { transform: translateX(-70%); }
  85%, 100% { transform: translateX(70%); }
}
.shield-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.4), transparent 70%);
  filter: blur(18px);
}
.shield-inner h1 {
  position: relative;
  z-index: 2;
  font-size: 48px;
  font-weight: 950;
  color: #f8fbff;
  letter-spacing: 2px;
  text-shadow: 0 4px 0 #0a2c66, 0 0 20px rgba(147, 197, 253, 0.7);
  margin: 0 0 10px;
}
.shield-inner p {
  position: relative;
  z-index: 2;
  color: #dbeafe;
  text-align: center;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 1.3px;
  margin: 0;
}
.graduate-cap {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 58px;
  margin-top: 18px;
}
.cap-top {
  position: absolute;
  left: 50%;
  top: 0;
  width: 70px;
  height: 38px;
  background: linear-gradient(145deg, #f8fbff, #94bdf5);
  transform: translateX(-50%) rotate(45deg) skew(-8deg, -8deg);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}
.cap-base {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 48px;
  height: 12px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #dbeafe, #7db7ff);
  transform: translateX(-50%);
}
.cap-string {
  position: absolute;
  bottom: -8px;
  width: 32px;
  height: 42px;
  border: 4px solid #dbeafe;
  border-top: none;
  border-radius: 0 0 30px 30px;
}
.cap-string.left { left: -5px; transform: rotate(16deg); }
.cap-string.right { right: -5px; transform: rotate(-16deg); }
.book-stack {
  position: absolute;
  z-index: 5;
  right: 19%;
  bottom: 27%;
  width: 120px;
  height: 70px;
}
.book-stack div {
  position: absolute;
  right: 0;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
}
.book-stack div:nth-child(1) {
  bottom: 44px;
  width: 88px;
  background: #0b3a78;
  border: 1px solid rgba(147, 197, 253, 0.35);
}
.book-stack div:nth-child(2) { bottom: 24px; width: 104px; }
.book-stack div:nth-child(3) { bottom: 4px; width: 92px; background: #1e40af; }
.pksk-platform {
  position: absolute;
  z-index: 3;
  bottom: 17%;
  width: 260px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.40), rgba(18, 55, 105, 0.8) 46%, transparent 72%);
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.45), 0 0 40px rgba(34, 211, 238, 0.18);
}
.pksk-platform::after {
  content: "";
  position: absolute;
  left: 35px;
  right: 35px;
  bottom: -20px;
  height: 38px;
  border-radius: 0 0 18px 18px;
  background: #09295d;
  box-shadow: 0 18px 25px rgba(0, 0, 0, 0.38);
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Butang ---------- */
.btn {
  border: none; cursor: pointer; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 10px; color: #fff;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(164, 31, 69, .30);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-dk); }
.btn .ico { font-size: 15px; }
.btn.ghost {
  background: #fff; color: var(--accent);
  border: 1.5px solid #e6c9d2; box-shadow: 0 8px 20px rgba(120,20,50,.08);
}
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-2px); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.card .btn.ghost { color: var(--ink); border-color: var(--line); }

/* ---------- Bar statistik ---------- */
.statbar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 26px; overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 15px; padding: 22px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .ic {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; background: var(--accent-soft); flex: 0 0 54px;
}
.stat .num { font-size: 25px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .lbl { font-size: 13px; color: var(--ink-soft); }

/* ---------- Kepala seksyen ---------- */
.section-head { display: flex; align-items: center; gap: 12px; margin: 30px 0 16px; }
.section-head .bar { width: 4px; height: 22px; border-radius: 2px; background: var(--accent); }
.section-head h2 { margin: 0; font-size: 21px; }
.section-head .muted { margin-left: auto; }
.muted { color: var(--ink-soft); font-size: 14px; }

/* ---------- Karusel sekolah ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.school {
  width: 252px; flex: 0 0 252px; scroll-snap-align: start;
  border-radius: 16px; overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.school .ph { height: 190px; position: relative; background: var(--bg-soft); }
.school .ph svg, .school .ph img { width: 100%; height: 190px; object-fit: cover; display: block; }
.school .ph img { position: absolute; inset: 0; } /* foto sebenar menutup ilustrasi jika wujud */
.school .rank {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #fff;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.school .rank.mrsm { background: #8a1f1f; border: 1px solid rgba(212,160,23,.7); }
.school .rank.sbp  { background: #12315e; border: 1px solid rgba(255,255,255,.45); }
.school .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: linear-gradient(180deg, rgba(8, 20, 42, .55), rgba(8, 20, 42, .92));
  color: #fff;
}
.school .crest { flex: 0 0 34px; }
.school .crest svg { width: 34px; height: 34px; display: block; }
.school h4 { margin: 0; font-size: 13px; line-height: 1.25; font-weight: 700; }
.school .school-rank { font-size: 10.5px; opacity: .78; font-weight: 800; letter-spacing: .02em; }
.school .loc {
  display: inline-block; font-size: 11px; opacity: .85; color: #fff;
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.school .loc:hover { opacity: 1; border-bottom-color: #fff; }

.cnav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; font-size: 17px;
  box-shadow: var(--shadow); display: grid; place-items: center;
  transition: transform .12s ease;
}
.cnav:hover { transform: translateY(-50%) scale(1.08); }
.cnav.prev { left: -14px; }
.cnav.next { right: -14px; }

.cdots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.cdots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--line); padding: 0; transition: background .15s ease, width .15s ease;
}
.cdots button.active { background: var(--accent); width: 22px; border-radius: 5px; }

/* ---------- Grid topik ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.topic {
  cursor: pointer; text-align: left; border: 1px solid var(--line);
  background: var(--bg-soft); border-radius: 16px; padding: 20px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.topic:hover { transform: translateY(-4px); border-color: var(--accent-2); background: var(--card); }
/* Kad topik di halaman utama: penerangan sahaja, bukan pautan */
.topic.static { cursor: default; }
.topic.static:hover { transform: none; border-color: var(--line); background: var(--bg-soft); }
.topic .t-icon {
  font-size: 24px; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--accent-soft); border-radius: 50%;
}
.topic h3 { margin: 14px 0 6px; font-size: 18px; text-align: left; text-wrap: balance; }
.topic p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; text-align: left; }
.topic .t-meta { margin-top: 14px; font-size: 13px; color: var(--accent); font-weight: 700; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge.done { background: var(--good-bg); color: var(--good); }
.badge.todo { background: var(--card); color: var(--ink-soft); }

/* ---------- Ciri-ciri ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: 28px; overflow: hidden;
}
.feature { padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; background: var(--accent-soft); flex: 0 0 44px;
}
.feature h4 { margin: 0 0 3px; font-size: 14.5px; }
.feature p { margin: 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Nota (flashcard) ---------- */
.note {
  border-left: 4px solid var(--accent); background: var(--bg-soft);
  padding: 14px 16px; border-radius: 10px; margin-bottom: 10px;
}

/* ---------- Kuiz / Latihan ---------- */
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.qcount { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s ease; }

.qtext { font-size: 19px; font-weight: 700; margin: 4px 0 14px; }
/* Rajah soalan direka untuk "kertas" putih — kekalkan latar cerah walau tema gelap */
.figure {
  background: #ffffff; color: #0e2a47; border: 1px solid #d8e2ef;
  border-radius: 12px; padding: 14px 16px; margin: 0 0 16px;
  overflow-x: auto; font-size: 15px; line-height: 1.6;
}
.figure table { border-collapse: collapse; margin: 0 auto; }
.figure th, .figure td { border: 1px solid #9fb6cf; padding: 6px 12px; }
.figure svg { max-width: 100%; height: auto; }

.opts { display: grid; gap: 10px; }
.opt {
  text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 500; transition: all .14s ease;
  display: flex; align-items: center; gap: 12px;
}
.opt .key {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); font-weight: 800; font-size: 13px; color: var(--accent);
}
.opt:hover:not(:disabled) { border-color: var(--accent-2); transform: translateX(3px); }
.opt.correct { border-color: var(--good); background: var(--good-bg); }
.opt.correct .key { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .key { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }

.explain {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-soft); border: 1px dashed var(--line); font-size: 14px;
  animation: fade .25s ease;
}
.explain b { color: var(--accent); }

.card .btn { margin-top: 18px; }
.card .btn.ghost { background: var(--card); }

/* ---------- Keputusan ---------- */
.result { text-align: center; padding: 30px 20px; }
.result .ring {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff;
}
.result h2 { margin: 0 0 6px; font-size: 24px; }

@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 30px 24px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 250px; }
  .pksk-hero-visual { min-height: 360px; }
  .pksk-shield { width: 185px; height: 220px; }
  .shield-inner h1 { font-size: 38px; }
  .floating-card { width: 58px; height: 58px; }
  .chart-card { left: 7%; }
  .list-card { right: 8%; }
  .book-stack { right: 8%; bottom: 22%; transform: scale(0.82); }
  .pksk-platform { width: 210px; }
  .hero h2 { font-size: 32px; }
  .statbar { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
  .feature + .feature { border-left: none; border-top: 1px solid var(--line); }
  .cnav.prev { left: 4px; }
  .cnav.next { right: 4px; }
}
@media (max-width: 720px) {
  .brand-sub { display: none; }
  .topbar { padding: 10px 14px; flex-wrap: wrap; }
  .mainnav { order: 3; width: 100%; justify-content: center; }
}

/* Hormati tetapan kurang gerakan */
@media (prefers-reduced-motion: reduce) {
  .hero::after, .pksk-hero-visual::after, .pksk-shield,
  .floating-card, .shield-inner::after, .hero .eyebrow::before {
    animation: none;
  }
}

/* ======================================================================
 * FOODERA-STYLE HOME (tema maroon terang)
 * ==================================================================== */
.fhero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 360px at 92% 8%, var(--accent-soft), transparent 60%),
    #ffffff;
}
.fhero-inner {
  max-width: 1120px; margin: 0 auto; padding: 60px 40px 70px;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px;
}
.fhero-copy { max-width: 460px; }
.fhero-title {
  margin: 0 0 20px; font-size: 46px; line-height: 1.12; font-weight: 800;
  color: var(--ink); letter-spacing: -.5px; text-wrap: balance;
}
.fhero-title b { color: var(--accent); font-weight: 800; }
.fhero-sub {
  margin: 0 0 30px; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft);
}
.fhero-sub b { color: var(--accent); }
.fhero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Visual kanan: foto pelajar bergabung dengan latar */
.fhero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(6px); z-index: 0; }
.blob-1 { width: 300px; height: 300px; right: 4%; top: 2%;
  background: radial-gradient(circle, rgba(164,31,69,.16), transparent 66%); }
.blob-2 { width: 240px; height: 240px; left: 2%; bottom: 0;
  background: radial-gradient(circle, rgba(246,197,209,.6), transparent 66%); }
.fdot { position: absolute; border-radius: 50%; z-index: 1; }
.fdot-1 { width: 12px; height: 12px; background: #f0b429; left: 8%;  top: 20%; }
.fdot-2 { width: 9px;  height: 9px;  background: var(--accent); right: 12%; top: 12%; }
.fdot-3 { width: 14px; height: 14px; background: #f6dbe3; right: 6%;  bottom: 16%; }
.fdot-4 { width: 8px;  height: 8px;  background: #f0b429; left: 14%; bottom: 10%; }

.photo-frame {
  position: relative; z-index: 2;
  width: 100%; max-width: 460px; aspect-ratio: 5 / 4;
  border-radius: 30px 30px 30px 90px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(120, 20, 50, .18);
  background: var(--accent-soft);
}
.photo-frame .hero-photo,
.photo-frame .photo-illus {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-frame .photo-illus svg { width: 100%; height: 100%; }
/* Bila foto sebenar dimuat, sorok ilustrasi & gabungkan foto dengan latar */
.photo-frame.has-photo .photo-illus { display: none; }
.photo-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 62%, rgba(255,255,255,.10)),
    radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(164,31,69,.10));
  mix-blend-mode: multiply;
}

/* ---- Jalur slider sekolah (maroon penuh) ---- */
.slider-band {
  background:
    radial-gradient(600px 300px at 90% 120%, var(--accent-2), transparent 60%),
    var(--accent);
  color: #fff; padding: 40px 0 46px; margin-top: 6px;
}
.slider-band .wrap { max-width: 1120px; }
.band-head { margin-bottom: 20px; }
.band-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.band-head p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.82); max-width: 60ch; }
.slider-band .cnav {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.30); color: #fff;
}
.slider-band .cnav:hover { background: rgba(255,255,255,.24); }
.slider-band .cdots button { background: rgba(255,255,255,.35); }
.slider-band .cdots button.active { background: #fff; }

@media (max-width: 880px) {
  .topbar { padding: 12px 18px; flex-wrap: wrap; gap: 12px; }
  .mainnav { order: 3; width: 100%; justify-content: center; gap: 20px; }
  .nav-cta { display: none; }
  .fhero-inner { grid-template-columns: 1fr; padding: 36px 22px 44px; gap: 30px; }
  .fhero-visual { order: -1; min-height: 300px; }
  .fhero-title { font-size: 34px; }
  .photo-frame { max-width: 380px; }
}
