/* ============================================================
   AKPS — WAWASAN RASMI
   Laman rasmi profesional: editorial, kemas, berwibawa.
   Palet jenama: Hijau Zaitun #3B4A2F · Biru Laut #1F3A5F
   Merah Malap #8B2E2E · Emas #FEBE10
   ============================================================ */

:root {
  --olive: #3B4A2F;
  --olive-deep: #2C3823;
  --olive-soft: #E7EBDD;
  --navy: #1F3A5F;
  --navy-deep: #14263F;
  --navy-soft: #E3EAF3;
  --red: #8B2E2E;
  --red-soft: #F5E4E2;
  --gold: #FEBE10;
  --gold-deep: #9A6B00;
  --gold-soft: #FFF4D6;

  /* Light (default) — kertas rasmi hangat */
  --bg: #F7F5F0;
  --bg-1: #FFFFFF;
  --bg-2: #EFEAE0;
  --bg-3: #E4DDCF;
  --panel: #FFFFFF;
  --panel-2: #F3F0E8;
  --ink: #1E2622;
  --ink-1: #43514A;
  --ink-2: #6E7A72;
  --ink-3: #9AA39B;
  --line: rgba(30,38,34,0.10);
  --line-1: rgba(30,38,34,0.16);
  --line-2: rgba(30,38,34,0.28);

  --accent: var(--olive);
  --accent-2: var(--navy);
  --accent-dim: rgba(59,74,47,0.08);
  --ok: #2E7D4F;
  --warn: #9A6B00;
  --err: #A63A32;
  --info: #1F5FA6;

  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --cw: 1200px;
  --cw-n: 820px;
  --r: 10px;
  --r-1: 6px;
  --ease: cubic-bezier(0.22,1,0.36,1);
  --dur: 0.35s;
  --dur-2: 0.18s;
  --shadow: 0 10px 36px rgba(31,58,95,0.12);
  --shadow-1: 0 2px 10px rgba(31,58,95,0.08);
}

[data-theme="dark"] {
  --bg: #11160F;
  --bg-1: #171D15;
  --bg-2: #1E251C;
  --bg-3: #28311F;
  --panel: #182019;
  --panel-2: #202820;
  --ink: #F0EEE4;
  --ink-1: #C3C9B8;
  --ink-2: #93A086;
  --ink-3: #5E6B55;
  --line: rgba(240,238,228,0.10);
  --line-1: rgba(240,238,228,0.16);
  --line-2: rgba(240,238,228,0.28);
  --accent: #B9CBA0;
  --accent-2: #8FB4DD;
  --accent-dim: rgba(185,203,160,0.10);
  --ok: #5FD695;
  --warn: #FEBE10;
  --err: #F08A80;
  --info: #8FB4DD;
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-1: 0 2px 10px rgba(0,0,0,0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body.rm *, body.rm *::before, body.rm *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 15.5px; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background var(--dur), color var(--dur); }
a { color: var(--navy); text-decoration: none; transition: color var(--dur-2); }
[data-theme="dark"] a { color: var(--accent-2); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
::selection { background: var(--gold); color: #1E2622; }

/* ===== LAYOUT ===== */
.cw, .container { max-width: var(--cw); margin: 0 auto; padding: 0 24px; }
.container { max-width: var(--cw); }
.cw-n { max-width: var(--cw-n); margin: 0 auto; padding: 0 24px; }

/* ===== JALUR JENAMA ===== */
.brand-stripe { display: flex; height: 5px; }
.brand-stripe span:nth-child(1) { flex: 3; background: var(--olive); }
.brand-stripe span:nth-child(2) { flex: 3; background: var(--navy); }
.brand-stripe span:nth-child(3) { flex: 2; background: var(--red); }
.brand-stripe span:nth-child(4) { flex: 2; background: var(--gold); }

/* ===== BAR UTILITI ===== */
.utilbar { background: var(--navy-deep); color: #DCE5F1; font-size: 12.5px; }
.utilbar-inner { max-width: var(--cw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; min-height: 36px; }
.utilbar .official { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.04em; }
.utilbar .official::before { content: ''; width: 8px; height: 8px; background: var(--gold); display: inline-block; }
.utilbar .spacer { margin-left: auto; }
.utilbar a { color: #DCE5F1; }
.utilbar a:hover { color: var(--gold); }
.utilbar .nav-lang a { padding: 2px 6px; border-radius: 4px; }
.utilbar .nav-lang a.active { background: rgba(254,190,16,0.2); color: var(--gold); font-weight: 700; }
.utilbar .u-btn { color: #DCE5F1; font-size: 13px; padding: 4px 8px; }
.utilbar .u-btn:hover { color: var(--gold); }
#sys-clock { font-variant-numeric: tabular-nums; color: #A9Bcd6; }

/* ===== MASTHEAD ===== */
.masthead { background: var(--bg-1); border-bottom: 1px solid var(--line); }
.masthead-inner { max-width: var(--cw); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 18px; }
.masthead img.logo { height: 64px; width: auto; }
.masthead .titles h1 { font-family: var(--display); font-size: clamp(1.05rem, 2.2vw, 1.45rem); font-weight: 800; line-height: 1.15; color: var(--ink); }
.masthead .titles h1 span { color: var(--olive); }
[data-theme="dark"] .masthead .titles h1 span { color: var(--accent); }
.masthead .titles p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.masthead .mast-act { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.masthead .akta { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--red); border: 1px solid currentColor; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 720px) { .masthead img.logo { height: 48px; } .masthead .mast-act { display: none; } }

/* ===== NAV UTAMA ===== */
.mainnav { position: sticky; top: 0; z-index: 800; background: var(--olive-deep); box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.mainnav-inner { max-width: var(--cw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { color: #EDEFE6 !important; font-size: 13.5px; font-weight: 600; padding: 14px 14px; white-space: nowrap; border-bottom: 3px solid transparent; display: inline-flex; gap: 7px; align-items: center; }
.nav-link .idx { font-size: 10.5px; color: var(--gold); font-weight: 700; }
.nav-link:hover { background: rgba(255,255,255,0.07); color: #fff !important; }
.nav-link.active { border-bottom-color: var(--gold); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-tool { color: #EDEFE6; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; border-radius: 8px; }
.nav-tool:hover { background: rgba(255,255,255,0.1); color: var(--gold); }
.nav-toggle { display: none; }
@media (max-width: 940px) { .nav-links { display: none; } .nav-toggle { display: inline-flex; } }
#search-form { display: flex; align-items: center; overflow: hidden; }
#search-form input { width: 0; opacity: 0; transition: all 0.3s var(--ease); }
#search-form.open input { width: 190px; opacity: 1; }

/* Overlay mudah alih */
.nav-overlay { position: fixed; inset: 0; z-index: 950; background: var(--navy-deep); color: #fff; padding: 72px 28px 28px; opacity: 0; visibility: hidden; transition: all var(--dur) var(--ease); overflow-y: auto; }
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay a { display: block; padding: 11px 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.12); }
.nav-overlay a:hover { color: var(--gold); }
.nav-overlay .close { position: absolute; top: 18px; right: 22px; font-size: 28px; color: #fff; }

/* ===== TICKER ===== */
.ticker { background: var(--red); color: #fff; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 12px; padding: 8px 24px; max-width: var(--cw); margin: 0 auto; }
.ticker-label { background: var(--gold); color: #2A2000; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.ticker-scroll { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker-scroll > span { display: inline-block; padding-left: 100%; animation: tick 45s linear infinite; }
.ticker-scroll a { color: #fff; margin-right: 30px; }
.ticker-scroll .dot { color: rgba(255,255,255,0.5); margin-right: 30px; }
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
body.rm .ticker-scroll > span { animation: none; padding-left: 0; }

/* ===== HERO EDITORIAL ===== */
.hero { position: relative; overflow: hidden; background: var(--bg-1); border-bottom: 1px solid var(--line); }
.hero-bgtex { position: absolute; inset: 0; background: url('../img/bg-brand-texture.jpg') center/cover; opacity: 0.10; pointer-events: none; }
[data-theme="dark"] .hero-bgtex { opacity: 0.16; }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 90% at 70% 10%, black 30%, transparent 75%); }
.hero-inner { position: relative; max-width: var(--cw); margin: 0 auto; padding: clamp(44px,7vh,84px) 24px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px,4vw,56px); align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); background: var(--olive-soft); border: 1px solid rgba(59,74,47,0.25); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
[data-theme="dark"] .hero-tag { color: var(--accent); background: var(--accent-dim); border-color: var(--line-1); }
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.015em; margin-bottom: 16px; }
.hero-title .accent { color: var(--olive); position: relative; }
[data-theme="dark"] .hero-title .accent { color: var(--gold); }
.hero-title .u { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 5px; text-underline-offset: 6px; }
.hero-sub { color: var(--ink-1); font-size: clamp(1rem,1.6vw,1.12rem); max-width: 34rem; margin-bottom: 26px; }
.hero-sub em { font-family: var(--serif); }
.hero-stats { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line-1); border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: var(--shadow-1); margin-bottom: 26px; }
.hero-stat { flex: 1 1 120px; padding: 16px 18px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: none; }
.hero-stat .val { font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1; }
[data-theme="dark"] .hero-stat .val { color: var(--ink); }
.hero-stat .val span { color: var(--olive); }
[data-theme="dark"] .hero-stat .val span { color: var(--gold); }
.hero-stat .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }

/* Kolaj visual hero */
.hero-visual { position: relative; }
.hero-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-1); box-shadow: var(--shadow); background: var(--navy-deep); }
.hero-frame img.main { width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 900px) { .hero-frame img.main { height: 280px; } }
.hero-frame .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(10,18,30,0.85)); color: #fff; font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.hero-frame .caption b { color: var(--gold); letter-spacing: 0.06em; font-size: 11px; }
.hero-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.hero-thumbs figure { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-1); background: var(--panel); box-shadow: var(--shadow-1); }
.hero-thumbs img { width: 100%; height: 120px; object-fit: cover; }
.hero-thumbs figcaption { font-size: 11.5px; font-weight: 700; padding: 8px 12px; color: var(--ink-1); }
.hero-badge { position: absolute; top: -16px; right: 18px; background: var(--navy); color: #fff; border: 2px solid var(--gold); border-radius: 12px; padding: 10px 16px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; }
.hero-badge img { height: 34px; }

/* ===== SEKSYEN ===== */
.sec { padding: clamp(56px,8vh,96px) 0; position: relative; }
.sec.alt { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.navy { background: var(--navy-deep); color: #E7EDF5; }
.sec.navy .sec-sub { color: #B9C6DA; }
.sec-head { margin-bottom: 36px; max-width: 46rem; }
.sec-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sec.navy .sec-kicker { color: var(--gold); }
.sec-kicker::before { content: ''; width: 30px; height: 3px; background: currentColor; border-radius: 2px; }
.sec-kicker .idx { color: var(--ink-3); font-weight: 700; }
.sec-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem,3.4vw,2.6rem); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 12px; }
.sec-title .accent { color: var(--olive); }
[data-theme="dark"] .sec-title .accent { color: var(--gold); }
.sec.navy .sec-title .accent { color: var(--gold); }
.sec-sub { color: var(--ink-1); font-size: 1.02rem; }
.sec-sub em { font-family: var(--serif); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
body.rm .reveal { opacity: 1; transform: none; }

/* ===== JALUR STAT ===== */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); }
.stat-cell { padding: 26px 24px; border-right: 1px solid rgba(255,255,255,0.12); }
.stat-cell:last-child { border-right: none; }
.stat-cell .v { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-cell .l { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #C6D2E3; margin-top: 8px; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2,1fr); } .stat-cell:nth-child(2) { border-right: none; } .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); } }

/* ===== PERKHIDMATAN ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--panel); border: 1px solid var(--line-1); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; transition: transform var(--dur-2), box-shadow var(--dur-2); }
.svc::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease); }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc:hover::after { transform: scaleY(1); }
.svc .n { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--gold-deep); }
[data-theme="dark"] .svc .n { color: var(--gold); }
.svc h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 800; margin: 6px 0; }
.svc p { font-size: 13.5px; color: var(--ink-1); }
.svc a { font-size: 13px; font-weight: 700; color: var(--navy); }
[data-theme="dark"] .svc a { color: var(--accent-2); }

/* ===== DOMAIN UDARA/DARAT/LAUT ===== */
.domains { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .domains { grid-template-columns: 1fr; } }
.domain { background: var(--panel); border: 1px solid var(--line-1); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur-2), box-shadow var(--dur-2); color: inherit; }
.domain:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.domain .band { height: 8px; background: var(--dom, var(--olive)); }
.domain .body { padding: 24px; }
.domain .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: #fff; background: var(--dom, var(--olive)); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.domain h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.domain .sub { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin-bottom: 10px; }
.domain p { font-size: 14px; color: var(--ink-1); margin-bottom: 16px; }
.domain .meta { border-top: 1px dashed var(--line-1); padding-top: 14px; font-size: 12.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; }
.domain .go { font-weight: 800; color: var(--red); white-space: nowrap; }

/* ===== ALIRAN PROSES ===== */
.flow { display: grid; grid-template-columns: repeat(7,1fr); gap: 0; border: 1px solid var(--line-1); border-radius: var(--r); overflow: hidden; background: var(--panel); }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(4,1fr); } .flow-step:nth-child(4) { border-right: none; } .flow-step:nth-child(n+5) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .flow { grid-template-columns: repeat(2,1fr); } }
.flow-step { padding: 18px 16px; border-right: 1px solid var(--line); position: relative; transition: background var(--dur-2); }
.flow-step:last-child { border-right: none; }
.flow-step .n { display: inline-block; font-size: 11px; font-weight: 800; color: var(--gold-deep); background: var(--gold-soft); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
[data-theme="dark"] .flow-step .n { color: var(--gold); background: rgba(254,190,16,0.12); }
.flow-step .t { font-family: var(--display); font-weight: 800; font-size: 0.98rem; }
.flow-step .d { font-size: 12px; color: var(--ink-1); margin-top: 4px; }
.flow-step.active { background: var(--olive-soft); }
[data-theme="dark"] .flow-step.active { background: rgba(185,203,160,0.08); }

/* ===== PANEL STATUS ===== */
.cpanel { background: var(--panel); border: 1px solid var(--line-1); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); }
.cpanel-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: var(--navy-deep); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.cpanel-head .live { width: 9px; height: 9px; border-radius: 50%; background: #43D68A; box-shadow: 0 0 0 4px rgba(67,214,138,0.2); }
.cpanel-head .dots { margin-left: auto; display: flex; gap: 5px; }
.cpanel-head .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.cpanel-body { padding: 18px; }
.status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width: 700px) { .status-grid { grid-template-columns: 1fr; } }
.status-cell { border: 1px solid var(--line-1); border-radius: var(--r-1); padding: 16px; background: var(--panel-2); }
.status-cell .k { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-2); margin-bottom: 6px; }
.status-cell .v { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--ok); }
.status-cell .v .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-cell .meta { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: linear-gradient(var(--olive), var(--gold), var(--navy)); opacity: 0.7; }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 5px; width: 13px; height: 13px; background: var(--bg-1); border: 3px solid var(--gold-deep); border-radius: 50%; }
.timeline-item .yr { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--red); }
.timeline-item .t { font-family: var(--display); font-weight: 800; font-size: 1.02rem; }
.timeline-item .d { font-size: 13.5px; color: var(--ink-1); }

/* ===== BERITA ===== */
.news-feature { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-1); border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-1); }
.news-feature-visual { min-height: 300px; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; letter-spacing: 0.08em; font-size: 12px; }
[data-theme="dark"] .news-feature-visual { background: var(--bg-3); color: var(--ink-2); }
.news-feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.news-feature-body { padding: clamp(22px,3.5vw,38px); }
.news-feature-body .cat { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--red); border-radius: 4px; padding: 4px 10px; margin-bottom: 12px; }
.news-feature-body h3 { font-family: var(--display); font-size: clamp(1.25rem,2.2vw,1.75rem); font-weight: 800; line-height: 1.12; margin-bottom: 10px; }
.news-feature-body h3 a { color: var(--ink); }
.news-feature-body h3 a:hover { color: var(--olive); }
.news-feature-body .ex { color: var(--ink-1); font-size: 14.5px; margin-bottom: 16px; }
.news-feature-body .meta { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 14px; align-items: center; }
@media (max-width: 700px) { .news-feature { grid-template-columns: 1fr; } }
.news-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 600px) { .news-list { grid-template-columns: 1fr; } }
.news-item { background: var(--panel); border: 1px solid var(--line-1); border-radius: 12px; padding: 18px; transition: box-shadow var(--dur-2), transform var(--dur-2); }
.news-item:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.news-item .date { font-size: 11.5px; color: var(--ink-2); margin-bottom: 6px; }
.news-item .cat { font-size: 10.5px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; }
.news-item h4 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.news-item h4 a { color: var(--ink); }

/* ===== DISCOVERY & KUIZ ===== */
.dpoint { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--olive); padding: 9px 14px; border: 1.5px dashed currentColor; border-radius: 999px; background: #fff; transition: all var(--dur-2); }
[data-theme="dark"] .dpoint { background: var(--panel); color: var(--gold); }
.dpoint:hover { background: var(--olive); color: #fff; border-style: solid; }
.dpoint.found { opacity: 0.55; border-style: solid; }
.dpoint.found::after { content: ' ✓'; }
.dpoint .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.discovery-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(15,20,15,0.6); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: all var(--dur); }
.discovery-modal.open { opacity: 1; visibility: visible; }
.discovery-inner { max-width: 460px; background: var(--bg-1); border-top: 6px solid var(--gold); border-radius: 12px; padding: 30px; }
.discovery-inner .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--gold-deep); margin-bottom: 10px; }
.discovery-inner .txt { font-size: 15px; }
.discovery-inner .tag { font-size: 12px; color: var(--ink-2); margin-top: 16px; }
.dtrack { position: fixed; bottom: 18px; right: 18px; z-index: 800; background: var(--navy-deep); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity var(--dur); box-shadow: var(--shadow); }
.dtrack.visible { opacity: 1; }
.dtrack .n { color: var(--gold); }
.dtrack .bar { width: 54px; height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.dtrack .bar i { display: block; height: 100%; background: var(--gold); }
.quiz-panel { background: var(--panel); border: 1px solid var(--line-1); border-radius: 16px; padding: clamp(22px,4vw,40px); box-shadow: var(--shadow-1); }
.quiz-q-num { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--red); margin-bottom: 12px; }
.quiz-q { font-family: var(--display); font-size: clamp(1.25rem,2.6vw,1.8rem); font-weight: 800; margin-bottom: 22px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: left; border: 1.5px solid var(--line-1); border-radius: 12px; background: var(--panel-2); font-size: 15px; transition: all var(--dur-2); }
.quiz-opt:hover { border-color: var(--olive); }
.quiz-opt .letter { font-weight: 800; color: var(--ink-2); background: var(--bg-1); border: 1px solid var(--line-1); width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quiz-opt.correct { border-color: var(--ok); background: rgba(46,125,79,0.08); }
.quiz-opt.wrong { border-color: var(--err); background: rgba(166,58,50,0.07); }
.quiz-result { text-align: center; padding: 30px 0 10px; }
.quiz-result .pct { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-2); }
.quiz-result .rank { font-family: var(--display); font-size: clamp(1.8rem,5vw,3rem); font-weight: 800; color: var(--olive); margin: 10px 0; }
[data-theme="dark"] .quiz-result .rank { color: var(--gold); }
.quiz-result .msg { color: var(--ink-1); max-width: 26rem; margin: 0 auto 20px; }

/* ===== BUTANG ===== */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; font-size: 13.5px; font-weight: 800; letter-spacing: 0.02em; border: 1.5px solid transparent; border-radius: 10px; transition: all var(--dur-2); cursor: pointer; }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-deep); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #2A2000; }
.btn-gold:hover { background: #E0A800; color: #2A2000; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--olive); color: var(--olive); }
[data-theme="dark"] .btn-outline:hover { color: var(--gold); border-color: var(--gold); }
.btn-ghost { color: var(--ink-1); padding: 9px 14px; }
.btn-ghost:hover { color: var(--red); }
.btn-sm { padding: 9px 16px; font-size: 12.5px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ===== BORANG ===== */
.field, .form-group { margin-bottom: 18px; }
.field label, .form-group label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-1); margin-bottom: 7px; }
.input, .form-control { width: 100%; padding: 12px 15px; border: 1.5px solid var(--line-1); border-radius: 10px; background: var(--bg-1); color: var(--ink); font-size: 15px; font-family: var(--sans); transition: border var(--dur-2), box-shadow var(--dur-2); }
.input:focus, .form-control:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px var(--accent-dim); }
textarea.input, textarea.form-control { min-height: 120px; resize: vertical; }
.field-row, .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row, .form-row { grid-template-columns: 1fr; } }

/* ===== ALERT ===== */
.alert, .alert-success, .alert-error, .alert-info { padding: 13px 16px; margin-bottom: 18px; font-size: 14px; border-radius: 10px; border: 1.5px solid; }
.alert-ok, .alert-success { background: #EAF5EE; color: #205C38; border-color: #BFE0CC; }
.alert-err, .alert-error { background: #F9ECEA; color: #8B2E2E; border-color: #EBC2BD; }
.alert-info { background: #E8F0FA; color: #1F3A5F; border-color: #C4D6EC; }
[data-theme="dark"] .alert-ok, [data-theme="dark"] .alert-success { background: rgba(95,214,149,0.1); color: var(--ok); border-color: rgba(95,214,149,0.3); }
[data-theme="dark"] .alert-err, [data-theme="dark"] .alert-error { background: rgba(240,138,128,0.1); color: var(--err); border-color: rgba(240,138,128,0.3); }
[data-theme="dark"] .alert-info { background: rgba(143,180,221,0.1); color: var(--info); border-color: rgba(143,180,221,0.3); }

/* ===== BREADCRUMB & HALAMAN ===== */
.breadcrumb { padding: 14px 0; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); background: var(--bg-1); }
.breadcrumb a { color: var(--ink-1); font-weight: 600; }
.breadcrumb .sep { margin: 0 8px; color: var(--ink-3); }
.page { padding: clamp(36px,6vh,64px) 0; min-height: 60vh; }
.page h1 { font-family: var(--display); font-size: clamp(1.7rem,3.8vw,2.7rem); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.page h2 { font-family: var(--display); font-size: clamp(1.2rem,2.4vw,1.6rem); font-weight: 800; margin: 34px 0 12px; }
.page h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; }
.page p { margin-bottom: 15px; color: var(--ink-1); }
.page ul, .page ol { margin-bottom: 15px; color: var(--ink-1); padding-left: 1.4em; }
.page li { margin-bottom: 7px; }
.lede { font-size: 1.08rem; color: var(--ink-1); border-left: 4px solid var(--gold); padding-left: 16px; }

/* ===== JADUAL ===== */
.tbl, .table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-1); border-radius: 12px; overflow: hidden; background: var(--panel); }
.tbl th, .tbl td, .table th, .table td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.tbl th, .table th { background: var(--navy-deep); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.tbl tr:last-child td, .table tr:last-child td { border-bottom: none; }
.tbl tr:nth-child(even) td, .table tr:nth-child(even) td { background: var(--panel-2); }

/* ===== TAB & AKORDION ===== */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line-1); margin-bottom: 26px; overflow-x: auto; }
.tabs button { padding: 11px 18px; font-size: 13px; font-weight: 800; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button:hover, .tabs button.active { color: var(--olive); border-bottom-color: var(--gold); }
[data-theme="dark"] .tabs button:hover, [data-theme="dark"] .tabs button.active { color: var(--gold); }
.acc-item, .accordion-item { border: 1px solid var(--line-1); border-radius: 12px; margin-bottom: 10px; background: var(--panel); overflow: hidden; }
.acc-head, .accordion-head { padding: 16px 18px; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 12px; }
.acc-head .sign, .accordion-head .sign { color: var(--gold-deep); font-size: 20px; transition: transform var(--dur); }
.acc-item.open .acc-head .sign, .accordion-item.open .accordion-head .sign { transform: rotate(45deg); }
.acc-body, .accordion-body { display: none; padding: 0 18px 18px; color: var(--ink-1); font-size: 14px; }
.acc-item.open .acc-body, .accordion-item.open .accordion-body { display: block; }

/* ===== GALERI ===== */
.masonry { columns: 3; column-gap: 14px; }
.masonry-item { break-inside: avoid; margin-bottom: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-1); }
.masonry-item img { width: 100%; transition: transform 0.5s var(--ease); }
.masonry-item:hover img { transform: scale(1.04); }
@media (max-width: 768px) { .masonry { columns: 2; } }
@media (max-width: 480px) { .masonry { columns: 1; } }
.gallery a { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-1); }
.gallery a img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(10,14,10,0.92); display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }

/* ===== FOOTER RASMI ===== */
.footer { background: var(--navy-deep); color: #D8E1EE; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; max-width: var(--cw); margin: 0 auto; padding: clamp(40px,6vh,60px) 24px 34px; }
.footer-brand p { font-size: 13.5px; color: #B9C6DA; margin: 14px 0; max-width: 22rem; }
.footer-brand .contact { font-size: 13px; color: #B9C6DA; line-height: 1.9; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; font-size: 13px; font-weight: 800; color: #fff; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #2A2000; }
.footer-col h4 { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: #C9D4E5; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 16px 24px; text-align: center; font-size: 12px; color: #93A5C0; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ===== LOG MASUK ===== */
.auth { display: flex; justify-content: center; align-items: center; min-height: 70vh; padding: 56px 24px; background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--olive-soft), transparent 70%); }
[data-theme="dark"] .auth { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(185,203,160,0.08), transparent 70%); }
.auth-card { background: var(--bg-1); border: 1px solid var(--line-1); border-top: 6px solid var(--olive); border-radius: 16px; padding: clamp(28px,4vw,44px); width: 100%; max-width: 430px; box-shadow: var(--shadow); }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { height: 60px; margin: 0 auto; }
.auth-card h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 800; text-align: center; }
.auth-sub { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-2); margin: 4px 0 28px; }

/* ===== ADMIN ===== */
.dash { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.dash-side, .dash-side { background: var(--navy-deep); color: #D8E1EE; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-side .brand { padding: 0 18px 18px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.dash-side .brand img { height: 30px; }
.dash-side .brand .t, .dash-side .t { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--gold); margin-top: 8px; }
.dash-side a { display: block; padding: 10px 18px; font-size: 13.5px; color: #C9D4E5; border-left: 3px solid transparent; }
.dash-side a:hover, .dash-side a.active { background: rgba(255,255,255,0.07); color: #fff; border-left-color: var(--gold); }
.dash-main { padding: 24px; background: var(--bg); }
.dash-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line-1); border-radius: 12px; margin-bottom: 22px; }
.dash-top .user { display: flex; align-items: center; gap: 10px; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 14px; margin: 22px 0; }
.dash-card, .stat-card { background: var(--panel); border: 1px solid var(--line-1); border-top: 4px solid var(--olive); border-radius: 12px; padding: 20px; }
.dash-card .v, .stat-card .stat-num { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--navy); }
[data-theme="dark"] .dash-card .v, [data-theme="dark"] .stat-card .stat-num { color: var(--ink); }
.dash-card .l, .stat-card .stat-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.panel { background: var(--panel); border: 1px solid var(--line-1); border-radius: 14px; padding: 26px; margin-bottom: 22px; }
.panel h2 { font-family: var(--display); font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.badge { display: inline-block; padding: 3px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 6px; }
.badge-ok, .badge-green { background: #EAF5EE; color: #205C38; }
.badge-err, .badge-red { background: #F9ECEA; color: #8B2E2E; }
.badge-info, .badge-blue { background: #E8F0FA; color: #1F3A5F; }
.badge-gray { background: var(--bg-2); color: var(--ink-2); }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } .dash-side { display: none; } }

/* ===== UTILITI & KESERASIAN ===== */
.tc { text-align: center; }
.muted { color: var(--ink-2); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.partner-row, .partner-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-row a, .partner-logos a { border: 1.5px solid var(--line-1); background: var(--panel); padding: 10px 18px; font-size: 13px; font-weight: 700; color: var(--ink-1); border-radius: 10px; }
.partner-row a:hover, .partner-logos a:hover { border-color: var(--olive); color: var(--olive); }
.tile, .card { background: var(--panel); border: 1px solid var(--line-1); border-radius: 14px; padding: 22px; }
.tile .num { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--olive); display: block; margin-bottom: 6px; line-height: 1; }
[data-theme="dark"] .tile .num { color: var(--gold); }
.tile h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.tile p { font-size: 13.5px; color: var(--ink-1); }
.card-body { padding: 4px 0 0; }
.card-body h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--olive); }
.card-body p { font-size: 13.5px; color: var(--ink-1); }
.card-date { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.header-search { display: flex; gap: 10px; margin-bottom: 20px; }
.header-search input { flex: 1; }
.coord-indicator { position: fixed; bottom: 18px; left: 18px; z-index: 800; font-size: 10.5px; font-weight: 700; color: var(--ink-3); opacity: 0; transition: opacity var(--dur); }
.coord-indicator.visible { opacity: 0.6; }
.border-marker { position: fixed; bottom: 0; left: 0; width: 100%; height: 3px; z-index: 500; cursor: crosshair; }
.border-marker:hover { background: var(--gold); opacity: 0.5; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #2A2000; padding: 8px 16px; z-index: 10000; font-weight: 800; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink); border-left: 4px solid var(--gold); padding-left: 18px; margin: 24px 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.quiz-next { display: inline-flex; }
