/* KPM Beranang — draf laman utama v2
   Tema: biru gelap (navy), merah, emas. Moden, profesional, berteraskan siber & AI. */

/* Fon dihoskan sendiri (assets/fonts) */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Palet jenama: dark navy 60% · stone blue 15% · scarlet red 15% · yellow 10% */
  --bg: #ffffff;
  --bg-deep: #edf3f9;      /* rona stone blue sangat cerah: bahagian selang-seli */
  --surface: #ffffff;
  --surface-2: #f2f6fa;
  --line: #d9e4ee;
  --line-strong: #b9cde0;
  --text: #000540;
  --text-soft: #4a5a7a;
  --accent: #D42529;       /* scarlet red (versi kontras tinggi untuk teks & pautan) */
  --accent-hover: #b51d21;
  --shadow: rgba(0, 5, 64, 0.12);

  /* Warna jenama tetap */
  --navy: #000540;         /* dark navy */
  --navy-2: #000540;
  --navy-3: #0c1466;       /* navy sedikit cerah untuk hover / kecerunan */
  --stone: #639CC5;        /* stone blue */
  --stone-dark: #3f7aa6;
  --stone-tint: #e2eef7;
  --red: #EB2F33;          /* scarlet red: jalur, garisan, ikon & kawasan besar */
  --red-ui: #D42529;       /* scarlet red untuk butang & teks (kontras 5.1:1 dengan putih) */
  --red-bright: #f2484b;
  --red-tint: #fde8e8;
  --gold: #FCDD00;         /* yellow */
  --gold-tint: #fff8c7;

  --display: "Sora", "Segoe UI", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --r-s: 6px;
  --r-m: 14px;
}

/* Kawasan gelap: banner, statistik, bar atas, kaki */
.dark {
  --bg: #000540;
  --bg-deep: #00032e;
  --surface: #0a1258;
  --surface-2: #121b6a;
  --line: rgba(99, 156, 197, 0.2);
  --line-strong: rgba(99, 156, 197, 0.42);
  --text: #eef4fa;
  --text-soft: #b6cde2;
  --accent: #FCDD00;
  --accent-hover: #ffe94d;
  --shadow: rgba(0, 0, 0, 0.45);
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); color: var(--text); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

.draft-note { background: var(--gold); color: var(--navy); text-align: center; font-size: 0.875rem; font-weight: 600; padding: 6px 12px; }

/* ---------- Bar atas ---------- */
.utility { background: var(--bg-deep); color: var(--text-soft); font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility a { color: var(--text-soft); text-decoration: none; }
.utility a:hover { color: var(--accent); }
.utility-contact { display: flex; gap: 22px; }
.utility-right { display: flex; align-items: center; gap: 18px; }
.socials { display: flex; gap: 14px; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang button { font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-soft); background: transparent; border: 0; padding: 3px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }

/* ---------- Pengepala ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.navbar { background: var(--navy); border-top: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 60px; width: auto; }
.brand-name {
  white-space: nowrap; border-left: 1px solid var(--line-strong); padding-left: 14px; margin-left: 4px;
  font-family: var(--display); font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 600; color: var(--navy-2); letter-spacing: -0.005em;
}
.nav { display: flex; align-items: center; min-height: 52px; }
.nav > ul { display: flex; list-style: none; margin: 0 0 0 -12px; padding: 0; gap: 4px; }
.nav li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button {
  display: block; font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--text);
  text-decoration: none; background: none; border: 0; padding: 14px 12px; cursor: pointer; white-space: nowrap;
  border-radius: 0; box-shadow: inset 0 -3px 0 transparent;
}
.nav > ul > li > a:hover, .nav > ul > li > button:hover,
.nav > ul > li > button[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.06); box-shadow: inset 0 -3px 0 var(--red); }
.nav .caret { display: inline-block; margin-left: 6px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  --surface: #ffffff; --surface-2: #f2f6fa; --text: #000540; --text-soft: #4a5a7a; --line-strong: #b9cde0;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-m);
  box-shadow: 0 24px 48px var(--shadow);
  list-style: none; margin: 0; padding: 8px; display: none;
}
.submenu.open { display: block; }
.submenu a { display: block; padding: 9px 14px; border-radius: var(--r-s); color: var(--text); text-decoration: none; font-size: 0.95rem; }
.submenu a:hover { background: var(--surface-2); color: var(--navy-2); }
.submenu .ext::after { content: " ↗"; color: var(--text-soft); font-size: .85em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 12px 22px; border-radius: var(--r-s); border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-red { background: var(--red-ui); color: #fff; }
.btn-red:hover { background: var(--accent-hover); color: #fff; }
.btn-line { border-color: var(--navy-2); color: var(--navy-2); background: transparent; }
.btn-line:hover { background: var(--navy-2); color: #fff; }
.dark .btn-line { border-color: var(--line-strong); color: var(--text); }
.dark .btn-line:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.btn-navy { background: var(--navy-2); color: #fff; }
.btn-navy:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffe94d; color: var(--navy); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 44px 0 120px; background: radial-gradient(1200px 600px at 50% 20%, #000540 0%, #000540 65%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Susunan hero: nama, slogan, penerangan, banner, butang (semua di tengah) */
.hero-stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Nama kolej sentiasa satu baris: saiz ikut lebar skrin */
.hero h1 { font-size: min(4rem, 4.3vw); font-weight: 700; line-height: 1.05; white-space: nowrap; }
.slogan { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 600; font-style: italic; letter-spacing: -0.01em; color: var(--accent); margin: 0; }
.hero-intro { color: var(--text-soft); max-width: 68ch; margin: 0 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stack .hero-actions { justify-content: center; margin-top: 26px; }

.slider { position: relative; width: 100%; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 8 / 3;
  border: 1px solid var(--line-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); background: var(--surface); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: linear-gradient(transparent, rgba(0, 3, 40, .75)); }
.dots { display: flex; gap: 8px; }
.dots button { width: 26px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: var(--accent); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0,3,40,.6); color: var(--text); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.arrows button:hover { border-color: var(--accent); color: var(--accent); }

/* Banner utama penuh lebar: nisbah 2550 x 1000 */
.hero-banner { background: var(--navy); }
.hero-banner .slider { width: 100%; aspect-ratio: 2550 / 1000; border: 0; border-radius: 0; box-shadow: none; }
.hero-banner .slider-controls { padding: 18px max(24px, calc((100% - var(--wrap)) / 2)); }
.hero-banner .arrows button { color: #fff; border-color: rgba(255,255,255,.45); }
.hero-banner .arrows button:hover { color: var(--gold); border-color: var(--gold); }
.hero-banner .dots button[aria-current="true"] { background: var(--gold); }
@media (max-width: 600px) {
  .hero-banner .slider-controls { padding: 10px 16px; }
  .hero-banner .arrows button { width: 30px; height: 30px; font-size: 0.95rem; }
}

/* ---------- Kemasukan ---------- */
.admission { margin-top: -64px; position: relative; z-index: 2; }
.admission-card { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: 0 24px 56px var(--shadow); }
.admission-main { padding: 36px 40px; border-left: 4px solid var(--red); }
.admission-main h2 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.admission-session { font-weight: 600; color: var(--red-ui); margin: 12px 0 2px; font-size: 1.1rem; }
.admission-date { color: var(--text-soft); margin: 0 0 22px; }
.placeholder-mark { color: var(--text); background: var(--gold-tint); border-bottom: 1px dashed var(--gold); padding: 0 4px; }
.admission-side { padding: 36px 40px; background: var(--bg-deep); }
.admission-side h3 { margin-bottom: 10px; color: var(--navy-2); font-size: 1rem; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 0; }
.linklist a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--text); }
.linklist a:hover { color: var(--accent); }
.tag { font-size: 0.72rem; font-weight: 600; color: var(--navy-2); border: 1px solid var(--line-strong); background: var(--surface); border-radius: 4px; padding: 1px 7px; align-self: center; white-space: nowrap; }

/* ---------- Bahagian ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head p { margin: 10px 0 0; color: var(--text-soft); max-width: 60ch; }
.more { color: var(--red-ui); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Siber & AI */
.cyber { position: relative; }
.cyber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cyber-media { position: relative; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4 / 3; }
.cyber-media img { width: 100%; height: 100%; object-fit: cover; }
.cyber-media { box-shadow: 0 24px 56px var(--shadow); }
.cyber h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.cyber-lead { color: var(--text-soft); margin: 18px 0 30px; max-width: 54ch; }
.tracks { display: grid; gap: 12px; margin-bottom: 32px; }
.track { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.track svg { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--stone-tint); stroke: var(--navy-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.track:nth-child(2) svg { background: var(--red-tint); stroke: var(--red); }
.track h3 { font-size: 1.05rem; }
.track p { margin: 4px 0 0; color: var(--text-soft); font-size: 0.95rem; }

/* Program: senarai */
.programmes { border-top: 1px solid var(--line-strong); }
.programme { display: grid; grid-template-columns: 1.4fr 0.55fr 1.5fr auto; gap: 24px; align-items: center; padding: 24px 16px; border-bottom: 1px solid var(--line); border-radius: var(--r-s); transition: background-color .2s ease; }
.programme:hover { background: var(--surface); }
.programme.featured { background: var(--surface); box-shadow: inset 3px 0 0 var(--red), 0 8px 24px var(--shadow); }
.programme-level { font-size: 0.85rem; color: var(--text-soft); margin-top: 4px; }
.mqa { font-size: 0.875rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.addons { display: flex; flex-wrap: wrap; gap: 6px; }
.addons span { font-size: 0.8rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.programme a.go { color: var(--red-ui); font-weight: 600; text-decoration: none; white-space: nowrap; }
.programme a.go:hover { color: var(--accent-hover); }
.muted { color: var(--text-soft); font-size: 0.95rem; }

/* Statistik */
.stats { padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 4px 28px; border-left: 1px solid var(--line-strong); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--display); font-size: clamp(2.4rem, 3.8vw, 3.25rem); font-weight: 600; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stat-label { margin-top: 10px; color: var(--text-soft); }
.stats-note { margin-top: 22px; font-size: 0.8rem; color: var(--text-soft); }

/* Kehidupan kampus */
.campus-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 270px 270px; gap: 16px; }
.campus-tile { position: relative; border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: #fff; border: 1px solid var(--line); }
.campus-tile:first-child { grid-row: span 2; }
.campus-tile:nth-child(4) { grid-column: span 2; }
.campus-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.campus-tile:hover img { transform: scale(1.04); }
.campus-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 24px 22px; background: linear-gradient(transparent, rgba(0, 3, 40, .92)); }
.campus-caption h3 { font-size: 1.25rem; color: #fff; }
.campus-caption p { margin: 4px 0 0; font-size: 0.95rem; color: #c9deee; }
.campus-tile:hover h3 { color: var(--gold); }

/* Berita: 3 hantaran Facebook terkini */
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s ease, border-color .2s ease; }
a.news-card:hover { border-color: var(--line-strong); box-shadow: 0 14px 36px var(--shadow); }
a.news-card:hover h3 { color: var(--red-ui); }
.news-img { aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-img.noimg { display: grid; place-items: center; color: rgba(255,255,255,.7); font-family: var(--display); font-weight: 600; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.news-date { font-size: 0.85rem; color: var(--red-ui); font-weight: 600; }
.news-card h3 { font-size: 1.08rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-link { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--navy-2); font-size: 0.95rem; }
.skeleton .news-img { background: #dde9f3; }
.skeleton span { display: block; height: 12px; border-radius: 6px; background: #dde9f3; }
.skeleton span:nth-child(1) { width: 30%; }
.skeleton span:nth-child(2) { width: 90%; height: 16px; }
.skeleton span:nth-child(3) { width: 70%; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton .news-img, .skeleton span { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .55; } }
}
.news-cards[hidden], .news-fallback[hidden] { display: none; }
.news-fallback { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 32px; text-align: center; }
.news-fallback p { color: var(--text-soft); margin: 0 0 20px; }
.news-fallback .hero-actions { justify-content: center; }

/* Tab pengumuman */
.tabs { display: grid; grid-template-columns: 270px 1fr; gap: 40px; }
.tablist { display: flex; flex-direction: column; gap: 4px; }
.tablist button { font: inherit; text-align: left; background: none; border: 1px solid transparent; padding: 11px 16px; cursor: pointer; color: var(--text-soft); font-weight: 500; border-radius: var(--r-s); }
.tablist button:hover { color: var(--text); background: var(--surface-2); }
.tablist button[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--red); }
.tabpanel { min-height: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 28px; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { margin: 16px 0 8px; }
.tabpanel p { color: var(--text-soft); max-width: 65ch; }
.tender { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 12px 0; }
.tender th, .tender td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.tender th { color: var(--navy-2); background: var(--surface-2); font-weight: 600; font-size: 0.875rem; }

/* Sistem */
.systems { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.system { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--text); transition: border-color .2s ease, background-color .2s ease; }
.system strong { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.system span { font-size: 0.85rem; color: var(--text-soft); }
.system::after { content: "↗"; position: absolute; top: 16px; right: 18px; color: var(--text-soft); font-size: 0.9rem; }
.system:hover { border-color: var(--navy-2); box-shadow: 0 10px 28px var(--shadow); }
.system:hover strong, .system:hover::after { color: var(--red-ui); }

/* Hubungi */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: stretch; }
.contact-info dl { margin: 24px 0 0; display: grid; grid-template-columns: 130px 1fr; gap: 14px 16px; }
.contact-info dt { font-weight: 600; color: var(--navy-2); }
.contact-info dd { margin: 0; }
.contact-info a { color: var(--text); }
.contact-info a:hover { color: var(--red-ui); }
.contact-info .hero-actions { margin-top: 30px; }
.contact-info .btn-red { color: #fff; }
.contact-info .btn-line { color: var(--navy-2); }
.contact-info .btn-line:hover { color: #fff; }
.map { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line-strong); min-height: 400px; }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; filter: saturate(.85); }

/* Kaki */
.site-footer { background: var(--bg-deep); color: var(--text-soft); font-size: 0.95rem; border-top: 3px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 64px 0 44px; }
.site-footer h3 { color: var(--text); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--text); margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 0.8rem; text-align: center; }
.footer-bottom p { margin: 0 auto 6px; max-width: 110ch; }


/* ---------- Halaman dalaman ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: radial-gradient(900px 420px at 50% 0%, #0c1466 0%, #000540 70%); }
.page-hero-inner { position: relative; z-index: 1; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
.page-hero-sub { margin: 12px 0 0; color: var(--text-soft); font-size: 0.95rem; letter-spacing: 0.02em; }
.breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }
.page-jump { display: inline-flex; gap: 6px; margin-top: 28px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 999px; }
.page-jump a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.925rem; padding: 7px 16px; border-radius: 999px; }
.page-jump a:hover { background: rgba(255,255,255,.08); color: var(--accent); }

/* Visi & misi */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 36px 40px 40px; box-shadow: 0 18px 44px var(--shadow); overflow: hidden; }
.vm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red-ui); }
.vm-misi::before { background: var(--navy-2); }
.vm-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.vm-label svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vm-visi .vm-label svg { background: var(--red-tint); stroke: var(--red); }
.vm-misi .vm-label svg { background: var(--stone-tint); stroke: var(--navy-2); }
.vm-label h3 { font-size: 0.95rem; letter-spacing: 0.08em; }
.vm-visi .vm-label h3 { color: var(--red-ui); }
.vm-misi .vm-label h3 { color: var(--navy-2); }
.vm-statement { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--text); margin: 0; max-width: 28ch; }

/* Objektif */
.obj { margin-top: 64px; }
.obj-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.obj-head h2 { font-size: 1.05rem; letter-spacing: 0.08em; color: var(--stone-dark); }
.obj-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.obj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.obj-list li { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.obj-list li:nth-child(4), .obj-list li:nth-child(5) { grid-column: span 3; }
.obj-list svg { width: 42px; height: 42px; padding: 9px; border-radius: 10px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: var(--stone-tint); stroke: var(--navy-2); }
.obj-list li:nth-child(even) svg { background: var(--red-tint); stroke: var(--red); }
.obj-list li:nth-child(3) svg { background: var(--gold-tint); stroke: #8a7400; }
.obj-list p { margin: 0; font-weight: 500; line-height: 1.5; color: var(--text); }

/* Piagam pelanggan */
.charter { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.charter-side { position: sticky; top: 170px; }
.charter-side h2 { font-size: clamp(1.75rem, 2.8vw, 2.3rem); }
.charter-sub { color: var(--text-soft); font-size: 0.95rem; margin: 10px 0 28px; }
.charter-people { width: 100%; max-width: 320px; height: auto; display: block; }
.charter-list { list-style: none; counter-reset: pp; margin: 0; padding: 0; display: grid; gap: 12px; }
.charter-list li { counter-increment: pp; position: relative; padding: 20px 24px 20px 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); font-weight: 500; line-height: 1.55; }
.charter-list li::before {
  content: counter(pp); position: absolute; left: 22px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: #fff; background: var(--navy-2);
}
.charter-list li:nth-child(even)::before { background: var(--red-ui); }

@media (max-width: 960px) {
  .vm-grid, .charter { grid-template-columns: 1fr; }
  .obj-list { grid-template-columns: 1fr 1fr; }
  .obj-list li, .obj-list li:nth-child(4) { grid-column: span 1; }
  .obj-list li:nth-child(5) { grid-column: span 2; }
  .charter-side { position: static; }
  .charter-people { max-width: 240px; }
}
@media (max-width: 600px) {
  .vm-card { padding: 28px 24px 30px; }
  .obj-list { grid-template-columns: 1fr; }
  .obj-list li, .obj-list li:nth-child(5) { grid-column: span 1; }
  .page-jump { flex-direction: column; border-radius: var(--r-m); }
  .charter-list li { padding: 18px 18px 18px 66px; }
  .charter-list li::before { left: 16px; }
}


/* Sejarah: garis masa */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--line-strong), var(--navy-2) 15%, var(--navy-2) 75%, var(--red)); }
.tl-item { position: relative; display: flex; flex-direction: column; }
.tl-year { position: relative; align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; background: var(--navy-2);
  padding: 13px 18px; border-radius: 999px; line-height: 1; box-shadow: 0 0 0 6px var(--bg); }
.tl-year span { display: block; font-size: 0.62rem; letter-spacing: 0.08em; font-weight: 600; margin-top: 4px; color: #fff; }
.tl-card { position: relative; margin-top: 22px; flex: 1; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy-2); border-radius: var(--r-m); padding: 20px 20px 22px; box-shadow: 0 12px 30px var(--shadow); }
.tl-card::before { content: ""; position: absolute; top: -12px; left: 26px; width: 2px; height: 10px; background: var(--navy-2); }
.tl-card h3 { font-size: 0.92rem; line-height: 1.35; letter-spacing: 0.01em; margin-bottom: 10px; color: var(--navy-2); }
.tl-card p { margin: 0; font-size: 0.95rem; color: var(--text-soft); line-height: 1.55; }
.tl-now .tl-year { background: var(--red-ui); padding: 10px 18px; }
.tl-now .tl-card { border-top-color: var(--red); background: linear-gradient(180deg, #fff 0%, #fff5f5 100%); }
.tl-now .tl-card::before { background: var(--red-ui); }
.tl-now .tl-card h3 { color: var(--red-ui); }
.tl-now .tl-card p { color: var(--text); font-weight: 500; }

/* Sejarah: penerangan */
.story-title { margin-bottom: 32px; }
.story { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.story-row { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.story-year { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--navy-2); letter-spacing: -0.02em; line-height: 1.2; }
.story-now .story-year { color: var(--red-ui); }
.story-row p { margin: 0; max-width: 72ch; line-height: 1.75; }
.story-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.story-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; }
.story-stats strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--red-ui); line-height: 1; letter-spacing: -0.02em; }
.story-stats span { display: block; margin-top: 8px; color: var(--text-soft); font-size: 0.925rem; }

@media (max-width: 1100px) {
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 8px; }
  .timeline::before { left: 43px; right: auto; top: 10px; bottom: 60px; width: 2px; height: auto; background: linear-gradient(180deg, var(--navy-2) 80%, var(--red)); }
  .tl-item { flex-direction: row; gap: 20px; padding-bottom: 20px; align-items: flex-start; }
  .tl-year { width: 70px; flex-shrink: 0; text-align: center; padding: 12px 6px; font-size: 1rem; }
  .tl-now .tl-year { padding: 9px 6px; border-radius: 18px; }
  .tl-year span { font-size: 0.55rem; white-space: normal; line-height: 1.2; }
  .tl-card { margin-top: 0; }
  .tl-card::before { display: none; }
}
@media (max-width: 700px) {
  .story-row { grid-template-columns: 1fr; gap: 8px; }
  .story-stats { grid-template-columns: 1fr 1fr; }
}


/* Carta organisasi */
.org-row { --cw: 285px; --gap: 20px; --gw: min(100%, calc(var(--n) * var(--cw) + (var(--n) - 1) * var(--gap)));
  --col: calc((var(--gw) - (var(--n) - 1) * var(--gap)) / var(--n));
  position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, var(--cw))); justify-content: center; gap: var(--gap); padding-top: 36px; }
.org-row + .org-row { margin-top: 56px; }
/* garis penyambung: mendatar merentas kad, menegak ke baris atas */
.org-row::before { content: ""; position: absolute; top: 0; height: 2px; background: var(--line-strong);
  left: calc((100% - var(--gw)) / 2 + var(--col) / 2); right: calc((100% - var(--gw)) / 2 + var(--col) / 2); }
.org-row[style*="--n:1"]::before { display: none; }
.org-row[style*="--n:6"] { --cw: 1fr; grid-template-columns: repeat(6, minmax(0, 1fr)); --gw: 100%; --col: calc((100% - 5 * var(--gap)) / 6); }
.org-row + .org-row::after { content: ""; position: absolute; left: 50%; top: -56px; width: 2px; height: 56px; background: var(--line-strong); }
.org-row:first-child::before { display: none; }
.org-row:first-child { padding-top: 0; }
.org-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: visible; box-shadow: 0 12px 30px var(--shadow); }
.org-row:not(:first-child) .org-card::before { content: ""; position: absolute; left: 50%; top: -36px; width: 2px; height: 36px; background: var(--line-strong); }
.org-photo { aspect-ratio: 4 / 5; border-radius: var(--r-m) var(--r-m) 0 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(120% 90% at 50% 100%, #d6e6f2 0%, #ecf3f9 55%, #f6f9fc 100%); border-bottom: 3px solid var(--navy-2); }
.org-photo img { height: 94%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.org-lead .org-photo { border-bottom-color: var(--red); background: radial-gradient(120% 90% at 50% 100%, #c9deee 0%, var(--stone-tint) 55%, #f3f8fc 100%); }
.org-info { padding: 16px 16px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.org-role { margin: 0; font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--red-ui); line-height: 1.35; }
.org-name { font-size: 0.98rem; line-height: 1.3; margin: 4px 0 2px; color: var(--navy-2); }
.org-email { font-size: 0.82rem; color: var(--text-soft); text-decoration: none; overflow-wrap: break-word; }
.org-email:hover { color: var(--red-ui); text-decoration: underline; }
.org-quals { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); width: 100%; display: grid; gap: 4px; }
.org-quals li { font-size: 0.8rem; color: var(--text-soft); line-height: 1.45; }
.org-row[style*="--n:6"] .org-name { font-size: 0.9rem; }
.org-row[style*="--n:6"] .org-info { padding: 14px 12px 18px; }
.org-row[style*="--n:6"] .org-email { font-size: 0.76rem; }

@media (max-width: 1180px) {
  .org-row[style*="--n:6"] { grid-template-columns: repeat(3, 1fr); }
  .org-row[style*="--n:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); --col: calc((100% - 2 * var(--gap)) / 3); }
  .org-row[style*="--n:6"] .org-card:nth-child(n+4)::before { display: none; }
}
@media (max-width: 900px) {
  .org-row, .org-row[style*="--n:6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-row[style*="--n:1"] { grid-template-columns: minmax(0, 50%); }
  .org-row::before, .org-row::after, .org-row .org-card::before { display: none !important; }
  .org-row { padding-top: 0; }
  .org-row + .org-row { margin-top: 20px; }
}
@media (max-width: 480px) {
  .org-row, .org-row[style*="--n:6"], .org-row[style*="--n:1"] { grid-template-columns: 1fr; }
  .org-card { flex-direction: row; }
  .org-photo { width: 120px; flex-shrink: 0; aspect-ratio: auto; border-radius: var(--r-m) 0 0 var(--r-m); border-bottom: 0; border-right: 3px solid var(--navy-2); }
  .org-lead .org-photo { border-right-color: var(--red); }
  .org-info { text-align: left; align-items: flex-start; }
}


/* Direktori */
.dir-search { position: relative; max-width: 560px; margin: 28px auto 0; }
.dir-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #8fb4d4; stroke-width: 2; stroke-linecap: round; }
.dir-search input { width: 100%; font: inherit; font-size: 1rem; color: #000540; background: #fff; border: 1px solid transparent; border-radius: 999px; padding: 14px 20px 14px 48px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.dir-search input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.dir-result { min-height: 1.4em; margin: 12px 0 0; font-size: 0.875rem; color: var(--text-soft); }
.dir-jump-bar { position: sticky; top: 146px; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.dir-jump { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.dir-jump a { flex-shrink: 0; text-decoration: none; color: var(--navy-2); font-weight: 600; font-size: 0.925rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.dir-jump a:hover { border-color: var(--navy-2); }
.dir { padding-top: 56px; }
.dir-section { scroll-margin-top: 220px; }
.dir-section + .dir-section { margin-top: 64px; }
.dir-section h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: 0.02em; display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dir-section h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--red-ui); }
.dir-section h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.pej-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pej-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 12px 30px var(--shadow); }
.pej-card:first-child .org-photo { border-bottom-color: var(--red); }
.pej-tel { margin: 8px 0 0; font-weight: 600; font-size: 0.875rem; color: var(--navy-2); background: var(--surface-2); border-radius: 999px; padding: 4px 12px; }

.dir-units { display: grid; gap: 10px; }
.dir-unit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.dir-unit summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--display); font-weight: 600; color: var(--navy-2); }
.dir-unit summary::-webkit-details-marker { display: none; }
.dir-unit summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; margin-left: 4px; opacity: .6; }
.dir-unit[open] summary::after { transform: rotate(45deg); }
.dir-unit summary:hover { background: var(--surface-2); }
.dir-unit[open] summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dir-unit-name { flex: 1; }
.dir-count { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: var(--text-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.dir-table-wrap { overflow-x: auto; }
.dir-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dir-table th { text-align: left; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--navy-2); padding: 14px 22px; border-bottom: 2px solid var(--line); vertical-align: bottom; }
.dir-table th span { display: block; font-family: var(--sans); font-weight: 500; color: var(--text-soft); }
.dir-table td { padding: 12px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dir-table tbody tr:last-child td { border-bottom: 0; }
.dir-table tbody tr:hover td { background: #f6f9fc; }
.dir-table td a { color: var(--text); text-decoration: none; }
.dir-table td a:hover { color: var(--red-ui); text-decoration: underline; }
.dir-table .c-nama { font-weight: 600; color: var(--text); }
.dir-table .c-bil { color: var(--text-soft); width: 56px; }
.dir-table .c-ext { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-2); white-space: nowrap; }
.dir-table tr.is-hit td { background: #fffbe0; }
.dir-empty { text-align: center; color: var(--text-soft); padding: 40px 0; }
.is-hidden { display: none !important; }

@media (max-width: 1180px) { .dir-jump-bar { top: 84px; } .dir-section { scroll-margin-top: 150px; } }
@media (max-width: 960px) { .pej-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .dir-table thead { display: none; }
  .dir-table, .dir-table tbody, .dir-table tr, .dir-table td { display: block; width: 100%; }
  .dir-table tr { padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .dir-table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
  .dir-table td::before { content: attr(data-label); color: var(--text-soft); font-size: 0.8rem; font-weight: 500; }
  .dir-table .c-bil { display: none; }
  .dir-unit summary { padding: 16px 18px; }
}
@media (max-width: 480px) { .pej-grid { grid-template-columns: 1fr; } .pej-card { flex-direction: row; } .pej-card .org-photo { width: 110px; flex-shrink: 0; aspect-ratio: auto; border-radius: var(--r-m) 0 0 var(--r-m); border-bottom: 0; border-right: 3px solid var(--navy-2); } .pej-card .org-info { text-align: left; align-items: flex-start; } }


/* Carta organisasi: bingkai + paparan zum */
.carta-frame { margin: 0; }
.carta-open { position: relative; display: block; width: 100%; padding: 14px; border: 0; cursor: zoom-in; border-radius: var(--r-m);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: 0 24px 60px var(--shadow); }
.carta-open img { width: 100%; height: auto; border-radius: 8px; background: #fff; }
.carta-hint { position: absolute; right: 30px; bottom: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(0,5,64,.88); color: #fff; font-weight: 600; font-size: 0.9rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: background-color .2s ease; }
.carta-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.carta-open:hover .carta-hint { background: var(--red-ui); }
.carta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.zoomer { position: fixed; inset: 0; z-index: 200; background: #00032e; display: flex; flex-direction: column; }
.zoomer[hidden] { display: none; }
.zoomer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.zoomer-title { font-family: var(--display); font-weight: 600; }
.zoomer-tools { display: flex; align-items: center; gap: 6px; }
.zoomer-tools button { font: inherit; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-s); min-width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }
.zoomer-tools button:hover { border-color: var(--gold); color: var(--gold); }
.zoomer-tools .zoomer-text { font-size: 0.875rem; padding: 0 12px; }
.zoomer-tools .zoomer-close { background: var(--red-ui); border-color: var(--red-ui); margin-left: 8px; }
.zoomer-tools .zoomer-close:hover { color: #fff; background: var(--red-bright); }
.zoomer-level { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.9rem; color: #c2d9ea; }
.zoomer-stage { position: relative; flex: 1; overflow: hidden; cursor: grab; touch-action: none; }
.zoomer-stage.dragging { cursor: grabbing; }
.zoomer-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; background: #fff; }
.zoomer-help { margin: 0; padding: 8px 20px 12px; text-align: center; color: #a2c1dc; font-size: 0.8rem; }
@media (max-width: 600px) {
  .carta-open { padding: 6px; }
  .carta-hint { right: 14px; bottom: 14px; font-size: 0.8rem; padding: 7px 12px; }
  .zoomer-title { display: none; }
  .zoomer-bar { justify-content: center; }
}


/* Menu peringkat ketiga */
.menu-multi span { display: block; }
.menu-multi small { display: block; font-size: 0.84em; color: var(--text-soft); line-height: 1.4; margin-top: 2px; }
.menu-multi:hover small { color: inherit; opacity: .85; }
.submenu .has-sub { position: relative; display: flex; align-items: center; }
.submenu .has-sub > a { flex: 1; padding-right: 30px; }
.submenu .has-sub > a::after { content: "›"; position: absolute; right: 14px; color: var(--text-soft); font-size: 1.1rem; line-height: 1; }
.sub-toggle { display: none; }
.submenu-2 { position: absolute; left: calc(100% + 8px); top: -8px; min-width: 300px; max-width: 380px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-m); box-shadow: 0 24px 48px var(--shadow); display: none; }
.submenu-2::before { content: ""; position: absolute; left: -10px; top: 0; bottom: 0; width: 10px; } /* hover bridge */
.submenu .has-sub:hover > .submenu-2, .submenu .has-sub:focus-within > .submenu-2, .submenu-2.open { display: block; }
.submenu-2 a { white-space: normal; line-height: 1.4; }
.utility-links { display: flex; gap: 16px; padding-right: 16px; border-right: 1px solid var(--line); }
.utility-links a { font-weight: 500; }
@media (max-width: 1180px) {
  .submenu .has-sub { flex-wrap: wrap; }
  .submenu .has-sub > a::after { content: none; }
  .sub-toggle { display: block; width: 44px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--stone-tint); border-bottom: 2px solid var(--stone-tint); transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s ease; }
  .sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -30%) rotate(-135deg); }
  .submenu-2 { position: static; width: 100%; max-width: none; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--gold); border-radius: 0; margin: 0 0 6px 10px; padding: 2px 0; background: transparent; --surface-2: rgba(255,255,255,.06); --text: var(--stone-tint); --text-soft: #b3cce1; }
  .submenu-2::before { content: none; }
  .submenu .has-sub:hover > .submenu-2, .submenu .has-sub:focus-within > .submenu-2 { display: none; }
  .submenu .has-sub > .submenu-2.open { display: block; }
}
@media (max-width: 1100px) { .utility-links { display: none; } }


/* Pengiktirafan */
.accr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.accr-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 28px 28px 32px; box-shadow: 0 14px 36px var(--shadow); border-top: 4px solid var(--navy-2); }
.accr-card:nth-child(2) { border-top-color: var(--red); }
.accr-card:nth-child(3) { border-top-color: var(--gold); }
.accr-logo { position: relative; width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  border-radius: 12px; background: radial-gradient(70% 60% at 50% 45%, #f2f7fb 0%, #ffffff 70%); }
/* bayang di lantai (tetap, tidak bergerak) */
.accr-logo::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 58%; height: 16px; margin-left: -29%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,5,64,.30), rgba(0,5,64,0)); }
/* logo pegun, sedikit terangkat dengan bayang */
.accr-float { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding-bottom: 34px;
  filter: drop-shadow(0 10px 8px rgba(0,5,64,.16)) drop-shadow(0 2px 2px rgba(0,5,64,.12)); }
.accr-float img { display: block; max-width: 78%; max-height: 150px; width: auto; height: auto; object-fit: contain; }


.accr-card h2 { font-size: 1.5rem; color: var(--navy-2); }
.accr-card p { margin: 10px 0 0; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; color: var(--text-soft); line-height: 1.5; }
@media (max-width: 960px) { .accr-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }


/* Halaman program */
.prog-title { max-width: 22ch; margin: 0 auto; line-height: 1.12; }
.prog-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.prog-chips span { font-size: 0.85rem; font-weight: 600; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 14px; }
.prog-chips span:first-child { color: var(--accent); border-color: rgba(252,221,0,.5); }
.prog-intro-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.prog-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 40px; display: flex; justify-content: center; box-shadow: 0 18px 44px var(--shadow); }
.prog-logo img { width: 100%; max-width: 340px; height: auto; }
.prog-lead p { font-size: 1.12rem; line-height: 1.8; margin: 0 0 28px; max-width: 64ch; }
.prog-kicker { font-family: var(--display); font-weight: 600; color: var(--red-ui); font-size: 0.95rem; margin: 0 0 10px; }
.prog-about h2 { max-width: 30ch; }
.prog-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
.prog-cols p { margin: 0; line-height: 1.75; color: var(--text); }
.prog-sub { color: var(--text-soft); font-size: 0.95rem; margin: 8px 0 24px; }
.prog-path-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.pathway { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.pathway::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 30px; width: 2px; background: var(--line-strong); }
.pathway li { counter-increment: step; position: relative; display: grid; gap: 2px; padding: 16px 20px 16px 68px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.pathway li::before { content: counter(step); position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--stone-tint); color: var(--navy-2); font-family: var(--display); font-weight: 700; font-size: 0.9rem; box-shadow: 0 0 0 4px var(--bg); }
.pathway strong { font-family: var(--display); color: var(--navy-2); }
.pathway span { color: var(--text-soft); font-size: 0.95rem; }
.pathway em { font-style: normal; font-weight: 600; font-size: 0.85rem; color: var(--red-ui); }
.pathway li.here { border-color: var(--navy-2); box-shadow: 0 10px 28px var(--shadow); }
.pathway li.here::before { background: var(--navy-2); color: #fff; }
.pathway li.goal { background: var(--navy); border-color: var(--navy); }
.pathway li.goal strong { color: #fff; }
.pathway li.goal::before { content: "★"; background: var(--gold); color: var(--navy); }
.req-card { position: sticky; top: 170px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--r-m); padding: 28px; box-shadow: 0 18px 44px var(--shadow); }
.req-card h2 { font-size: 1.5rem; }
.req-box { background: var(--navy); color: #fff; border-radius: 10px; padding: 20px 24px; }
.req-head { margin: 0 0 10px; font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.req-box ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.prog-gallery { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prog-gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; height: 100%; }
.prog-gallery img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.prog-gallery figcaption { padding: 14px 16px 16px; font-size: 0.875rem; color: var(--text-soft); line-height: 1.5; }
/* tanpa gambar buat sementara: keterangan sebagai kad */
.prog-gallery.no-photos figure { border-top: 3px solid var(--navy-2); }
.prog-gallery.no-photos li:nth-child(even) figure { border-top-color: var(--red); }
.prog-gallery.no-photos figcaption { padding: 20px 20px 22px; font-size: 0.95rem; color: var(--text); }
.pathway span .en { font-style: italic; font-weight: 400; color: var(--text-soft); font-size: inherit; }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px 30px; }
.partner h3 { color: var(--navy-2); margin-bottom: 12px; font-size: 1.1rem; }
.partner p { line-height: 1.7; margin: 0 0 12px; }
.partner-src { font-size: 0.8rem; color: var(--text-soft); }
.partner-src a, .icaew-contact a { color: var(--navy-2); }
.icaew-contact { margin-top: 24px; text-align: center; color: var(--text-soft); font-size: 0.925rem; }
.icaew-contact h3 { color: var(--navy-2); font-size: 1rem; margin-bottom: 6px; }
.icaew-contact p { margin: 2px 0; }
@media (max-width: 960px) {
  .prog-intro-grid, .prog-cols, .prog-path-grid, .partner-grid { grid-template-columns: 1fr; gap: 28px; }
  .req-card { position: static; }
  .prog-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .prog-gallery { grid-template-columns: 1fr; } .prog-logo { padding: 28px; } }


/* Halaman DIA */
.prog-intro-video { grid-template-columns: 1fr 1fr; align-items: start; }
.prog-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: var(--navy); box-shadow: 0 18px 44px var(--shadow); }
.prog-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prog-intro-video .prog-lead p { font-size: 1.02rem; margin-bottom: 18px; }
.plo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plo-grid li { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; border-top: 3px solid var(--navy-2); }
.plo-grid li:nth-child(even) { border-top-color: var(--red); }
.plo-no { font-family: var(--display); font-weight: 700; color: var(--navy-2); font-size: 1.05rem; }
.plo-grid p { margin: 0; flex: 1; line-height: 1.6; font-size: 0.95rem; }
.plo-tag { align-self: flex-start; font-size: 0.8rem; font-weight: 600; color: var(--navy-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.plo-tag i { font-weight: 500; color: var(--text-soft); }
.peo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.peo-list li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 22px; }
.peo-no { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; background: var(--navy-2); border-radius: 10px; text-align: center; padding: 12px 0; }
.peo-list li:nth-child(even) .peo-no { background: var(--red-ui); }
.peo-list p { margin: 0 0 8px; font-weight: 500; font-size: 1.02rem; }
.peo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.peo-tags span { font-size: 0.8rem; font-weight: 600; color: #5e5000; background: var(--gold-tint); border-radius: 999px; padding: 3px 10px; }
.prog-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.prog-two .req-card { position: static; }
.prog-two .req-card > p { margin: 12px 0; line-height: 1.6; }
.req-pass { margin: 18px 0 6px !important; }
.req-pass-list { margin: 0; padding-left: 20px; line-height: 1.6; }
.career-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--navy-2); border-radius: var(--r-m); padding: 28px; box-shadow: 0 18px 44px var(--shadow); }
.career-card h2 { font-size: 1.5rem; margin-bottom: 16px; }
.career-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.career-list li { font-weight: 500; font-size: 0.95rem; color: var(--navy-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.plo-legend { margin: 18px 0 0; font-size: 0.85rem; color: var(--text-soft); }
.req-note { margin: 10px 0 0 !important; font-size: 0.925rem; color: var(--text-soft); }
.ps-empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: 32px; text-align: center; }
.ps-empty p { margin: 0; font-weight: 500; }
.ps-empty .ps-date { margin-top: 6px; font-weight: 400; }
.ps-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ps-tabs button { font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--navy-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.ps-tabs button[aria-selected="true"] { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.ps-panel[hidden] { display: none; }
.ps-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ps-label { margin: 0; font-family: var(--display); font-weight: 600; color: var(--navy-2); font-size: 1.1rem; }
.ps-date { margin: 2px 0 0; font-size: 0.875rem; color: var(--text-soft); }
.ps-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-sheet { display: block; width: 100%; max-width: 980px; margin: 0 auto; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; cursor: zoom-in; box-shadow: 0 18px 44px var(--shadow); }
.ps-sheet img { width: 100%; height: auto; display: block; }
@media (max-width: 1100px) { .plo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .prog-intro-video, .prog-two { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .plo-grid { grid-template-columns: 1fr; } .peo-list li { grid-template-columns: 1fr; gap: 10px; } .peo-no { justify-self: start; padding: 6px 14px; } .ps-sheet { padding: 8px; } }


/* DCS: laluan pensijilan */
.track-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.track { font: inherit; text-align: left; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
.track svg { grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 12px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: var(--stone-tint); stroke: var(--navy-2); }
.track.t-ai svg { background: var(--red-tint); stroke: var(--red); }
.track.t-cs svg { background: var(--gold-tint); stroke: #8a7400; }
.track-code { font-family: var(--display); font-weight: 700; color: var(--navy-2); }
.track-name { font-size: 0.875rem; color: var(--text-soft); line-height: 1.35; }
.track:hover { border-color: var(--line-strong); }
.track[aria-selected="true"] { border-color: var(--navy-2); box-shadow: 0 12px 30px var(--shadow), inset 0 -3px 0 var(--red); }
.track-panel[hidden] { display: none; }
.track-body { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 32px; box-shadow: 0 18px 44px var(--shadow); }
.track-body h3 { font-size: 1.2rem; color: var(--navy-2); margin-bottom: 12px; }
.track-body p { margin: 0 0 12px; line-height: 1.75; }
.track-body .btn { margin-top: 6px; }
.track-logo { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; display: flex; justify-content: center; }
.track-logo img { width: 100%; max-width: 200px; height: auto; }
.track-pending { grid-template-columns: 1fr; text-align: center; border-style: dashed; box-shadow: none; }
.track-pending p { color: var(--text-soft); margin: 0; }
@media (max-width: 960px) { .track-tabs { grid-template-columns: 1fr; } .track-body { grid-template-columns: 1fr; gap: 20px; padding: 24px; } .track-logo { max-width: 260px; } }


/* Sauh dalam halaman tidak terlindung oleh pengepala melekit */
main section[id] { scroll-margin-top: 150px; }
@media (max-width: 1180px) { main section[id] { scroll-margin-top: 96px; } }

/* DCS: sinopsis program */
.syn-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.syn-head .prog-sub { margin-bottom: 0; }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.course { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.course summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; }
.course summary::-webkit-details-marker { display: none; }
.course summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft); transform: rotate(45deg); margin: 0 4px 4px 0; transition: transform .2s ease; }
.course summary { grid-template-columns: auto 1fr auto auto; }
.course[open] summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.course summary:hover { background: var(--surface-2); }
.course[open] summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.course-code { font-family: var(--display); font-weight: 700; font-size: 0.8rem; color: #fff; background: var(--navy-2); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.course:nth-child(4n+2) .course-code, .course:nth-child(4n+3) .course-code { background: var(--red-ui); }
.course-name { font-weight: 600; color: var(--navy-2); line-height: 1.35; }
.course-cr { font-size: 0.8rem; color: var(--text-soft); white-space: nowrap; }
.course p { margin: 0; padding: 16px 20px 20px; line-height: 1.75; font-size: 0.95rem; }
@media (max-width: 960px) { .course-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .course summary { grid-template-columns: auto 1fr auto; } .course-cr { grid-column: 2; grid-row: 2; } }


/* Jadual kuliah & data pensyarah */
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tt-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--navy-2); border-radius: var(--r-m); padding: 22px; box-shadow: 0 12px 30px var(--shadow); }
.tt-card:nth-child(even) { border-top-color: var(--red); }
.tt-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.tt-head .dir-count { white-space: nowrap; }
.tt-head h3 { font-size: 1.05rem; color: var(--navy-2); line-height: 1.35; }
.tt-classes { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; }
.tt-classes a { font-size: 0.82rem; font-weight: 600; color: var(--navy-2); text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; }
.tt-classes a:hover { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.tt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-actions .btn { padding: 10px 16px; font-size: 0.9rem; }
.lec-search { margin: 0 0 6px; max-width: 520px; }
.lec-search input { box-shadow: 0 6px 18px var(--shadow); border-color: var(--line); }
.dir-table .c-init { font-family: var(--display); font-weight: 700; color: var(--red-ui); white-space: nowrap; width: 110px; }
.role-tag { display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 600; color: var(--navy-2); background: var(--stone-tint); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.kal-note { text-align: center; margin-top: 22px; }
@media (max-width: 1100px) { .tt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tt-grid { grid-template-columns: 1fr; } }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .systems { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
  .utility-contact span.hide-sm { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; font: inherit; font-weight: 600; color: var(--navy-2); background: transparent; border: 1px solid var(--navy-2); border-radius: var(--r-s); padding: 8px 16px; cursor: pointer; }
  .navbar { position: absolute; top: 100%; left: 0; right: 0; }
  .nav { display: none; flex-direction: column; align-items: stretch;
    padding: 8px 0 20px; max-height: calc(100vh - 140px); overflow: auto; }
  .nav > ul { margin: 0; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a, .nav > ul > li > button { width: 100%; text-align: left; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 4px; }
  .submenu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--red); border-radius: 0; margin: 4px 0 8px 4px; background: transparent;
    --surface-2: rgba(255,255,255,.06); --text: var(--stone-tint); }
  .submenu a:hover { color: #fff; }
}
@media (max-width: 960px) {
  .hero h1 { font-size: 5vw; }
  .news-cards { grid-template-columns: 1fr; max-width: 560px; }
  .admission-card, .tabs, .contact-grid, .cyber-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 104px; }
  .cyber-grid { gap: 36px; }
  .programme { grid-template-columns: 1fr; gap: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .campus-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px 240px; }
  .campus-tile:first-child { grid-row: span 1; grid-column: span 2; }
  .tablist { flex-direction: row; flex-wrap: wrap; }
  .tablist button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--red); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero h1 { font-size: 5.1vw; }
  .utility-contact { display: none; }
  .utility .wrap { justify-content: flex-end; }
  .brand img { height: 42px; }
  .brand-name { display: none; }
  .header-actions .btn-red { display: none; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .admission-main, .admission-side { padding: 26px; }
  .systems { grid-template-columns: 1fr 1fr; }
  .contact-info dl { grid-template-columns: 1fr; gap: 2px; }
  .contact-info dd { margin-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tabpanel { padding: 8px 18px; }
}

/* Borang pindah kredit */
.pk-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pk-steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; box-shadow: 0 12px 30px var(--shadow); }
.pk-steps h3 { font-size: 1.05rem; color: var(--navy-2); margin: 2px 0 6px; }
.pk-steps p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.pk-no { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: var(--navy-2); }
.pk-steps li:nth-child(2) .pk-no { background: var(--red-ui); }
.pk-table { max-width: 760px; }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pk-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text); }
@media (max-width: 860px) { .pk-steps, .pk-grid { grid-template-columns: 1fr; } }

/* Fasiliti kampus (under Kehidupan kampus) */
.fac-block { margin-top: 44px; }
.fac-title { font-size: 1.35rem; color: var(--navy-2); margin: 0 0 16px; }
.fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fac-tile { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: 0 10px 26px var(--shadow); }
.fac-media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(135deg, #edf3f9, #dbe8f3); }
.fac-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fac-media svg { width: 40px; height: 40px; fill: none; stroke: #8fb0cc; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fac-tile figcaption { padding: 14px 16px; font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--navy-2); border-top: 3px solid var(--navy-2); line-height: 1.35; }
.fac-tile:nth-child(even) figcaption { border-top-color: var(--red); }
@media (max-width: 860px) { .fac-grid { grid-template-columns: repeat(2, 1fr); } }

/* Program Bahasa Mandarin (MLC) */
.mlc-logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--r-m); padding: 18px 22px; margin: 6px auto 22px; box-shadow: 0 14px 34px rgba(0,0,0,.25); text-decoration: none; }
.mlc-logo img { display: block; height: 150px; width: auto; max-width: 70vw; object-fit: contain; }
.mlc-logo-text { display: none; font-family: var(--display); font-weight: 700; color: var(--navy-2); font-size: 1.1rem; }
.mlc-logo.no-img img { display: none; }
.mlc-logo.no-img .mlc-logo-text { display: block; }
.mlc-intro { max-width: 860px; text-align: center; }
.mlc-intro p { font-size: 1.12rem; line-height: 1.8; margin: 0 auto 18px; }
.mlc-intro .hero-actions, .mlc-cta .hero-actions { justify-content: center; margin-top: 26px; }
.mlp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.mlp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--navy-2); border-radius: var(--r-m); padding: 28px; box-shadow: 0 18px 44px var(--shadow); }
.mlp-card:nth-child(2), .mlp-card:nth-child(3) { border-top-color: var(--red); }
.mlp-tag { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-ui); }
.mlp-card h3 { font-size: 1.35rem; color: var(--navy-2); margin: 0 0 14px; }
.mlp-card h4 { font-size: .95rem; color: var(--navy-2); margin: 16px 0 6px; }
.mlp-card > p { margin: 0; line-height: 1.65; color: var(--text); }
.mlp-facts { list-style: none; margin: 0 0 16px; padding: 12px 16px; display: grid; gap: 6px; background: var(--surface-2); border-radius: 10px; font-size: .95rem; }
.mlp-facts span { display: inline-block; min-width: 72px; font-weight: 700; color: var(--navy-2); }
.mlp-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; line-height: 1.5; }
.mlp-card .go { margin-top: auto; padding-top: 20px; font-weight: 700; color: var(--red-ui); text-decoration: none; }
.mlp-card .go:hover { text-decoration: underline; }
.mlc-cta { max-width: 760px; text-align: center; }
@media (max-width: 860px) { .mlp-grid { grid-template-columns: 1fr; } .mlc-logo img { height: 120px; } }
.career-list li { font-style: italic; }

/* Fasiliti: tiles with photos + gallery viewer */
.fac-tile.has-photos .fac-media { position: relative; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #dbe8f3; }
.fac-tile.has-photos .fac-media img { transition: transform .5s ease; }
.fac-tile.has-photos .fac-media:hover img { transform: scale(1.04); }
.fac-tile.has-photos .fac-media:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.fac-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(0,3,40,.78); border-radius: 999px; padding: 5px 11px; }
.fac-count svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; }
.gal { position: fixed; inset: 0; z-index: 210; background: rgba(0,3,40,.96); display: flex; flex-direction: column; }
.gal[hidden] { display: none; }
.gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; color: #fff; }
.gal-title { font-family: var(--display); font-weight: 600; }
.gal-count { color: #c3d8ea; font-size: .9rem; margin-left: 10px; font-weight: 400; }
.gal-close { font: inherit; color: #fff; background: var(--red-ui); border: 0; border-radius: var(--r-s); width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }
.gal-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.gal-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 1.4rem; cursor: pointer; }
.gal-nav:hover { background: rgba(255,255,255,.2); }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 18px; justify-content: safe center; }
.gal-thumbs button { flex: none; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .6; }
.gal-thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .gal-stage { padding: 0 8px; } .gal-nav { width: 40px; height: 40px; background: rgba(0,3,40,.6); } .gal-thumbs button { width: 64px; height: 44px; } }
.gal.single .gal-nav, .gal.single .gal-thumbs { display: none; }
.slide > a { display: block; width: 100%; height: 100%; }
/* Phones: banner arrows and dots sit below the banner so they don't cover it */
@media (max-width: 600px) {
  .hero-banner .slider { overflow: visible; margin-bottom: 46px; }
  .hero-banner .slide { overflow: hidden; }
  .hero-banner .slider-controls { bottom: -46px; height: 46px; padding: 0 16px; background: var(--navy); }
}
/* Programme descriptions: justified on desktop, centred on phones */
.prog-lead p, .mlc-intro p { text-align: justify; }
@media (max-width: 960px) {
  .prog-lead p, .mlc-intro p { text-align: center; margin-left: auto; margin-right: auto; }
  .prog-lead .hero-actions { justify-content: center; }
}

/* ---------- Palet baharu: aksen stone blue ---------- */
.prog-chips span { border-color: rgba(99,156,197,.55); }
.prog-chips span:first-child { color: var(--gold); border-color: rgba(252,221,0,.55); }
.page-hero-sub { color: #b6cde2; }
.programme-level, .mqa { color: var(--stone-dark); }
.dots button { background: rgba(99,156,197,.45); }
.dots button[aria-current="true"] { background: var(--gold); }
.site-footer h3 { color: var(--stone); }
.site-footer a:hover { color: var(--gold); }
.btn-line:hover { background: var(--navy); border-color: var(--navy); }
.vm-misi .vm-label svg, .track svg { stroke: var(--stone-dark); }
.fac-tile:nth-child(even) figcaption { border-top-color: var(--stone); }
.fac-tile:nth-child(4n) figcaption { border-top-color: var(--red); }
.mlp-card:nth-child(2) { border-top-color: var(--stone); }
.mlp-card:nth-child(3) { border-top-color: var(--red); }
.mlp-card:nth-child(4) { border-top-color: var(--gold); }
.dir-search input:focus, .fac-tile.has-photos .fac-media:focus-visible { outline-color: var(--stone); }

/* Desktop: all explanatory text justified (centred labels, contact lines and captions stay as they are) */
@media (min-width: 961px) {
  main p:not(:is(.page-hero, .hero, .org-info, .accr-card, .icaew-contact, .news-fallback, .ps-empty, .zoomer, .track-pending) p):not(.dir-empty, .dir-result, .plo-legend, .ps-date),
  main .charter-list li, main .req-pass-list li { text-align: justify; }
}

/* ---------- Kenali KPM Beranang (utama) ---------- */
.kenali .track-link { grid-template-columns: 48px 1fr 24px; grid-template-rows: auto; align-items: center; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kenali .track-link > svg:first-child { grid-row: auto; }
.kenali .track-link:nth-child(2) > svg:first-child { background: var(--red-tint); stroke: var(--red); }
.kenali .track-link:nth-child(3) > svg:first-child { background: var(--gold-tint); stroke: #8a7400; }
.kenali .track-link h3 { color: var(--navy); }
.kenali .track-go { grid-row: auto; width: 22px; height: 22px; padding: 0; background: none; stroke: var(--stone-dark); fill: none; stroke-width: 2; transition: transform .2s, stroke .2s; }
.kenali .track-link:hover { border-color: var(--stone); box-shadow: 0 12px 28px var(--shadow); transform: translateY(-2px); }
.kenali .track-link:hover .track-go { transform: translateX(3px); stroke: var(--red); }
.kenali .track-link:focus-visible { outline: 3px solid var(--stone); outline-offset: 2px; }

/* ---------- Program yang ditawarkan: kad bergambar ---------- */
.prog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prog-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; background: var(--navy); box-shadow: 0 18px 40px var(--shadow); isolation: isolate; }
.prog-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -1; }
.prog-card::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, rgba(0,5,64,0) 0%, rgba(0,5,64,.75) 100%); z-index: -1; }
.prog-card:hover img { transform: scale(1.05); }
.prog-card-level { position: absolute; top: 18px; left: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--gold); border-radius: 999px; padding: 5px 12px; }
.prog-card-pill { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: 16px; background: rgba(0,5,64,.55); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.prog-card-pill svg { flex: none; width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s, stroke .25s; }
.prog-card-pill svg circle { fill: var(--red-ui); stroke: var(--red-ui); }
.prog-card:hover .prog-card-pill svg { transform: translateX(4px); }
.prog-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 960px) { .prog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .prog-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 2px 18px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
  .prog-card { scroll-snap-align: start; }
}

/* ---------- Kehidupan kampus (utama): satu gambar besar ---------- */
.campus-feature { position: relative; display: block; border-radius: 24px; overflow: hidden; min-height: 460px; color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 24px 56px var(--shadow); }
.campus-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.campus-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,5,64,.92) 0%, rgba(0,5,64,.72) 38%, rgba(0,5,64,.1) 70%); }
.campus-feature:hover img { transform: scale(1.04); }
.campus-feature-text { position: relative; max-width: 520px; padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; min-height: 460px; }
.campus-feature-text h2 { color: #fff; margin: 0 0 14px; }
.campus-feature-text p { color: #d8e6f2; margin: 0 0 26px; line-height: 1.7; text-align: left; }
.campus-feature .btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; }
.campus-feature .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.campus-feature:hover .btn svg { transform: translateX(4px); }
.campus-feature:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 760px) {
  .campus-feature, .campus-feature-text { min-height: 520px; }
  .campus-feature::before { background: linear-gradient(0deg, rgba(0,5,64,.95) 0%, rgba(0,5,64,.75) 45%, rgba(0,5,64,.05) 80%); }
  .campus-feature-text { justify-content: flex-end; padding: 28px 24px; text-align: center; }
  .campus-feature-text p { text-align: center; }
  .campus-feature .btn { align-self: center; }
}
main .campus-feature-text p { text-align: left !important; }
@media (max-width: 760px) { main .campus-feature-text p { text-align: center !important; } }
@media (max-width: 760px) { .campus-feature::before { background: linear-gradient(0deg, rgba(0,5,64,.96) 0%, rgba(0,5,64,.88) 58%, rgba(0,5,64,.25) 88%); } }

/* Program yang ditawarkan: satu baris kad tinggi, seperti reka bentuk rujukan */
#program .prog-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: 20px; max-width: 1920px; margin: 0 auto; padding: 0 20px; }
#program .prog-card { aspect-ratio: 360 / 550; border-radius: 26px; box-shadow: none; }
#program .prog-card::after { inset: 70% 0 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.28) 100%); }
#program .prog-card-pill { left: 14px; right: auto; bottom: 18px; max-width: calc(100% - 28px); display: inline-flex; gap: 10px; padding: 9px 10px 9px 14px; border-radius: 12px;
  background: rgba(20,20,28,.5); border: 0; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
#program .prog-card-pill svg { width: 26px; height: 26px; }
#program .prog-card-pill svg circle { fill: #fff; stroke: #fff; }
#program .prog-card-pill svg path { stroke: #14141c; stroke-width: 2.4; }
@media (max-width: 1200px) { #program .prog-card-pill { font-size: .9rem; } }
@media (max-width: 960px) {
  #program .prog-cards { grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px; -webkit-overflow-scrolling: touch; }
  #program .prog-card { scroll-snap-align: start; }
}
@media (max-width: 600px) { #program .prog-cards { grid-auto-columns: 72%; gap: 14px; } #program .prog-card-pill { font-size: .95rem; } }
.cyber-media.media-empty { display: grid; place-items: center; background: linear-gradient(135deg, #eef4fa, #dbe8f3); }
.cyber-media.media-empty svg { width: 64px; height: 64px; fill: none; stroke: #8fb0cc; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* Kad program tanpa gambar (gambar akan dimuat naik kemudian) */
#program .prog-card-empty { background: linear-gradient(160deg, #e6eff7 0%, #cfe0ee 100%); border: 1px solid var(--line); }
#program .prog-card-empty::after { display: none; }
#program .prog-card-ph { position: absolute; top: 42%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); fill: none; stroke: #8fb0cc; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; z-index: -1; }
#program .prog-card-empty .prog-card-pill { background: rgba(0,5,64,.88); text-shadow: none; }
#program .prog-card-empty:hover { border-color: var(--stone); }
/* Program yang ditawarkan: tajuk & penerangan lebih besar, di tengah */
#program .section-head { justify-content: center; text-align: center; margin-bottom: 44px; }
#program .section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
#program .section-head p { font-size: 1.05rem; line-height: 1.6; max-width: 62ch; margin: 14px auto 0; text-align: center !important; }
#program .prog-card-pill > span { font-style: italic; }

/* Phones & tablets: all explanatory text centred (desktop stays justified) */
@media (max-width: 960px) {
  main p:not(:is(.track, .sys-card, .dir-unit, .zoomer, .gal) p):not(.dir-empty, .dir-result, .ps-date),
  main .charter-list li, main .req-pass-list li { text-align: center !important; }
}
@media (max-width: 960px) {
  main :is(h2, h3, h4):not(:is(.track, .dir-unit, .gal, .zoomer, .tt-head, .prog-card) *) { text-align: center; }
  main .section-head { justify-content: center; text-align: center; }
  main .hero-actions, main .ps-actions { justify-content: center; }
  main .mlp-card .go, main .obj-head, main .vm-label { text-align: center; justify-content: center; }
}
@media (max-width: 960px) { main .story-year, main .plo-no { text-align: center; display: block; } }

/* ---------- Kebolehcapaian: sasaran sentuh sekurang-kurangnya 44 px (rupa kekal sama) ---------- */
.socials a, .lang button, .arrows button, .dots button { position: relative; }
.socials a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.lang { overflow: visible; }
.lang button { min-height: 32px; border-radius: 999px; }
.lang button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.dots { gap: 0; }
.dots button { width: 44px; height: 44px; background: none !important; border-radius: 0; }
.dots button::before { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(99,156,197,.45); }
.dots button[aria-current="true"]::before { background: var(--gold); }
.arrows button { width: 44px; height: 44px; }

/* ---------- Telefon: nama kolej di bawah logo (satu baris) ---------- */
.brand-strip { display: none; }
@media (max-width: 600px) {
  .brand-strip { display: block; border-top: 1px solid var(--line); background: var(--surface); }
  .brand-strip span { display: block; max-width: var(--wrap); margin: 0 auto; padding: 7px 16px; text-align: center; white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .01em; color: var(--navy); }
}
/* Banner: elemen <picture> isi ruang slaid */
.slide picture { display: block; width: 100%; height: 100%; }
.slide picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arrows button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
@media (max-width: 600px) { .hero-banner .arrows { gap: 14px; } }
main .org-role, main .org-name, main .org-email, main .org-info { text-align: center !important; }
main .org-info { align-items: center !important; } main .org-role { width: 100%; }

/* Butang kembali ke atas */
.to-top { position: fixed; right: 20px; bottom: 22px; z-index: 150; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--stone); background: var(--red-ui); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px rgba(0,5,64,.3); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s, background .2s, border-color .2s; }
.to-top[hidden] { display: none; }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--stone-dark); border-color: var(--red-ui); }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 18px; width: 48px; height: 48px; } }

/* =========================================================
   KESAN (efek): muncul semasa skrol, pengepala mengecil,
   bar kemajuan bacaan, hover konsisten.
   Semua berhenti jika pengguna memilih "kurangkan gerakan".
   ========================================================= */
/* 1. Muncul semasa skrol (hanya apabila JS aktif) */
.fx .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }
.fx .reveal.is-in { opacity: 1; transform: none; }

/* 2. Pengepala mengecil apabila skrol */
.site-header { transition: box-shadow .3s, background .3s; }
.header-row { transition: min-height .3s ease; }
.brand img { transition: height .3s ease; }
.brand-name { transition: font-size .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,5,64,.12); background: rgba(255,255,255,.97); }
.site-header.is-scrolled .header-row { min-height: 62px; }
.site-header.is-scrolled .brand img { height: 42px; }
.site-header.is-scrolled .brand-name { font-size: clamp(.95rem, 1.2vw, 1.1rem); }
@media (max-width: 600px) { .site-header.is-scrolled .brand img { height: 36px; } .site-header.is-scrolled .brand-strip span { padding: 4px 16px; font-size: .82rem; } }

/* 3. Bar kemajuan bacaan */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red-ui), var(--red)); }

/* 4. Hover konsisten untuk kotak yang boleh diklik */
.system { transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
.system:hover { background: var(--stone-tint); transform: translateY(-2px); }
.system::after { transition: transform .2s, color .2s; }
.system:hover::after { transform: translate(2px, -2px); }
.campus-tile { transition: transform .25s, box-shadow .25s; }
.campus-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px var(--shadow); }
.mlp-card .go { display: inline-flex; align-items: center; gap: 6px; }
.mlp-card .go::after { content: "→"; transition: transform .2s; }
.mlp-card:hover .go::after { transform: translateX(4px); }
.dir-unit > summary { transition: background .2s; }
.dir-unit > summary:hover { background: var(--stone-tint); }
.prog-card { transition: transform .3s, box-shadow .3s; }
.prog-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  .fx .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .header-row, .brand img, .brand-name, .system, .campus-tile, .prog-card { transition: none !important; }
}
