/* 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: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Asas cerah: putih & perak */
  --bg: #ffffff;
  --bg-deep: #eef1f6;      /* perak: bahagian selang-seli */
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --line: #dfe4ec;
  --line-strong: #c6cedb;
  --text: #0f1d3d;
  --text-soft: #4f5d78;
  --accent: #c41e2c;       /* merah: aksen kecil */
  --accent-hover: #9f1420;
  --shadow: rgba(15, 29, 61, 0.12);

  /* Warna jenama tetap */
  --navy: #0d1f45;
  --navy-2: #13306b;
  --red: #c8202f;
  --red-bright: #e0323f;
  --gold: #e0b04a;

  --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: #0a1530;
  --bg-deep: #070f24;
  --surface: #101f42;
  --surface-2: #172b58;
  --line: rgba(160, 185, 235, 0.14);
  --line-strong: rgba(160, 185, 235, 0.3);
  --text: #e8edf7;
  --text-soft: #a9b6d3;
  --accent: #e0b04a;
  --accent-hover: #f2c661;
  --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: #f3f5f9; --text: #0f1d3d; --text-soft: #4f5d78; --line-strong: #c6cedb;
  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); color: #fff; }
.btn-red:hover { background: var(--red-bright); 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: #f2c661; color: var(--navy); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 136px; background: radial-gradient(1200px 600px at 50% 20%, #13306b 0%, #0a1530 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.1rem, 1.8vw, 1.5rem); font-weight: 500; font-style: italic; color: var(--accent); margin: 16px 0 18px; }
.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: 36px; }

.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(7, 15, 36, .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(7,15,36,.6); color: var(--text); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.arrows button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 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); margin: 12px 0 2px; font-size: 1.1rem; }
.admission-date { color: var(--text-soft); margin: 0 0 22px; }
.placeholder-mark { color: var(--text); background: #fff4d6; 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); 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: #e8edf7; stroke: var(--navy-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.track:nth-child(2) svg { background: #fbe9eb; 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); 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(7, 15, 36, .92)); }
.campus-caption h3 { font-size: 1.25rem; color: #fff; }
.campus-caption p { margin: 4px 0 0; font-size: 0.95rem; color: #d3dcee; }
.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); }
.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); 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: #e3e8f0; }
.skeleton span { display: block; height: 12px; border-radius: 6px; background: #e3e8f0; }
.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); }

/* 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); }
.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%, #13306b 0%, #0a1530 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); }
.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: #fbe9eb; stroke: var(--red); }
.vm-misi .vm-label svg { background: #e8edf7; stroke: var(--navy-2); }
.vm-label h3 { font-size: 0.95rem; letter-spacing: 0.08em; }
.vm-visi .vm-label h3 { color: var(--red); }
.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: #3b7d23; }
.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: #e8edf7; stroke: var(--navy-2); }
.obj-list li:nth-child(even) svg { background: #fbe9eb; stroke: var(--red); }
.obj-list li:nth-child(3) svg { background: #fff4d6; stroke: #a8780f; }
.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); }

@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: rgba(255,255,255,.85); }
.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); padding: 10px 18px; }
.tl-now .tl-card { border-top-color: var(--red); background: linear-gradient(180deg, #fff 0%, #fff7f7 100%); }
.tl-now .tl-card::before { background: var(--red); }
.tl-now .tl-card h3 { color: var(--red); }
.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); }
.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); 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; }
}

/* ---------- 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: #e8edf7; }
  .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: 56px 0 112px; }
  .slider { aspect-ratio: 16 / 9; }
  .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; }
}
