:root {
  --teal: #2F6F6D;
  --navy: #17324D;
  --terracotta: #17324D;
  --teal-dark: #245B59;
  --teal-light: #367C79;
  --ink: #000000;
  --muted: #000000;
  --line: #DDE3E2;
  --paper: #F6F3EE;
  --soft: #EAF4F3;
  --white: #fff;
  --rk-navy: var(--navy);
  --rk-primary: var(--teal);
  --rk-primary-strong: var(--teal);
  --rk-primary-dark: #245B59;
  --rk-primary-base: #2F6F6D;
  --rk-accent: var(--terracotta);
  --rk-accent-light: #2F6F6D;
  --rk-bg: var(--paper);
  --rk-surface: var(--white);
  --rk-surface-soft: #FCFBF8;
  --rk-line: var(--line);
  --rk-text: var(--ink);
  --rk-muted: var(--muted);
  --primary: var(--teal);
  --primary-hover: #245B59;
  --primary-light: #367C79;
  --cream: var(--paper);
  --bg: var(--paper);
  --surface: var(--white);
  --text: var(--ink);
}

html { scroll-behavior: smooth; }
* { letter-spacing: 0 !important; }
body {
  min-height: 100vh;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 15.5px;
  line-height: 1.6;
}
a { text-underline-offset: .22em; }

.site-header {
  background: rgba(255, 255, 250, .96) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line) !important;
  border-top: 3px solid var(--teal) !important;
  box-shadow: none !important;
}
.site-header .container { min-height: 68px; }
.brand-mark {
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px !important;
  background: var(--teal) !important;
  display: grid;
  place-items: center;
  color: #fff !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}
.site-header .fw-bold,
.login-card .fw-bold,
footer .fw-bold { font-weight: 650 !important; }
.text-success { color: var(--teal) !important; }
.site-header nav a,
.nav-link-rk {
  color: #3B4955 !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  padding: .35rem .25rem !important;
}
.site-header nav a:hover,
.site-header nav a:focus,
.nav-link-rk:hover { color: var(--teal) !important; background: transparent !important; }

.hero,
.search-hero,
.page-hero,
.listing-hero,
.topbar-card,
.detail-panel {
  background: linear-gradient(90deg, rgba(47,111,109, .055), rgba(47,111,109, .035)), #FCFBF8 !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(23,50,77, .045) !important;
}
.hero { padding: 3.7rem 0 3.15rem !important; }
.search-hero { padding: 3rem 0 !important; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; }
.page-shell { padding: 1.5rem 0 2.5rem !important; }

.hero h1,
.page-title,
.title-main,
.section-title,
.card-soft h1,
.card-soft h2,
.card-soft h3,
.panel-box h1,
.panel-box h2,
.panel-box h3,
.summary-panel h1,
.summary-panel h2,
.summary-panel h3,
.result-title,
.material-item h3,
.ai-review-item h3,
.fw-bold,
.fw-semibold {
  color: var(--ink) !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}
.hero h1,
.page-title,
.title-main {
  font-size: clamp(2rem, 4vw, 3.65rem) !important;
  line-height: 1.08 !important;
}
.section-title { font-size: clamp(1.25rem, 2.1vw, 2rem) !important; line-height: 1.16 !important; }
.summary-panel .section-title,
.panel-box .section-title,
.detail-panel .section-title { font-size: 1rem !important; color: var(--teal) !important; }
.hero p,
.section-copy,
.body-copy,
.summary,
.text-secondary,
.meta,
.meta-line,
.small.text-secondary { color: var(--muted) !important; }

.hero-kicker,
.section-note,
.section-label,
.chip,
.pill,
.helper-chip {
  display: inline-flex !important;
  align-items: center;
  gap: .42rem;
  border: 1px solid #CFE3E1 !important;
  background: #EAF4F3 !important;
  color: var(--teal) !important;
  border-radius: 999px !important;
  font-weight: 650 !important;
  font-size: .82rem !important;
  padding: .42rem .7rem !important;
}

.card-soft,
.taxonomy-card,
.material-card,
.material-item,
.summary-panel,
.related-card,
.meta-card,
.filter-panel,
.search-panel,
.result-card,
.hero-visual,
.panel-box,
.mini-stat,
.metric-tile,
.empty-state,
.ai-review-panel,
.ai-review-item,
.login-card {
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(23,50,77, .045) !important;
}
.card-soft,
.summary-panel,
.panel-box,
.filter-panel,
.material-card,
.material-item,
.ai-review-panel,
.ai-review-item { padding: 1rem !important; }
.taxonomy-card,
.material-card,
.material-item,
.related-card,
.ai-review-item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.taxonomy-card:hover,
.material-card:hover,
.material-item:hover,
.related-card:hover,
.ai-review-item:hover {
  transform: translateY(-2px) !important;
  border-color: #B5D0CE !important;
  box-shadow: 0 16px 34px rgba(23,50,77, .07) !important;
}

.taxonomy-icon,
.material-icon,
.ai-review-icon,
.source-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
  background: #EAF4F3 !important;
  color: var(--teal) !important;
  border: 1px solid #CFE3E1 !important;
  display: grid;
  place-items: center;
  font-size: 1.18rem !important;
}
.metric-value,
.display-6,
.fs-4.fw-bold { font-size: 1.55rem !important; font-weight: 700 !important; color: var(--ink) !important; }
.metric-label,
.meta-label { color: var(--muted) !important; font-weight: 650 !important; }
.meta-value { color: var(--ink) !important; font-weight: 650 !important; }

.btn-main,
.btn-primary {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
  padding: .82rem 1.05rem !important;
  box-shadow: none !important;
}
.btn-main:hover,
.btn-main:focus,
.btn-primary:hover,
.btn-primary:focus {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
}
.btn-accent,
.btn-warning {
  background: var(--terracotta) !important;
  border-color: var(--terracotta) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
  padding: .82rem 1.05rem !important;
}
.btn-light,
.btn-soft,
.btn-outline-rk,
.btn-outline-secondary {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
}
.btn-light:hover,
.btn-soft:hover,
.btn-outline-rk:hover,
.btn-outline-secondary:hover {
  border-color: var(--terracotta) !important;
  background: #EAF4F3 !important;
  color: #245B59 !important;
}

.form-control,
.form-select {
  border: 1px solid transparent !important;
  background: #F2F6F5 !important;
  border-radius: 8px !important;
  min-height: 50px;
  font-size: .94rem;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(47,111,109, .18) !important;
  box-shadow: 0 0 0 .16rem rgba(47,111,109, .12) !important;
}
.search-wrap { border-radius: 8px !important; box-shadow: 0 16px 36px rgba(23,50,77, .06) !important; }

.subnav-scroll { display: flex; gap: .6rem; overflow: auto; padding-bottom: .25rem; scrollbar-color: #B5D0CE transparent; }
.subnav-pill {
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-weight: 650 !important;
}
.subnav-pill.active,
.subnav-pill:hover {
  background: #EAF4F3 !important;
  border-color: #CFE3E1 !important;
  color: var(--teal) !important;
}
.lang-switch { padding: .16rem !important; background: #EAF4F3 !important; border: 1px solid var(--line) !important; border-radius: 999px !important; }
.lang-switch .btn { border-radius: 999px !important; border: 0 !important; box-shadow: none !important; min-width: 42px; font-weight: 600 !important; padding: .25rem .55rem !important; }
.lang-switch .btn.active { background: var(--terracotta) !important; color: #fff !important; }

.source-badge,
.badge { font-weight: 650 !important; letter-spacing: 0 !important; }
.source-badge { border-radius: 999px !important; padding: .28rem .52rem !important; font-size: .7rem !important; }
.source-badge.hardcopy { background: #EAF4F3 !important; color: var(--teal) !important; }
.source-badge.ir { background: #e7f2f3 !important; color: #1e6570 !important; }
.source-badge.elib { background: #EAF4F3 !important; color: #245B59 !important; }
.source-badge.ebook { background: #EAF4F3 !important; color: var(--teal) !important; }
.badge.bg-success-subtle,
.status-badge.bg-success-subtle { background: #EAF4F3 !important; color: var(--teal) !important; }
.alert-warning { border-color: #CFE3E1 !important; background: #EAF4F3 !important; color: #245B59 !important; }
.bg-warning,
.bg-warning-subtle { background-color: #EAF4F3 !important; }
.text-warning,
.text-warning-emphasis { color: #245B59 !important; }
.border-warning,
.border-warning-subtle { border-color: #CFE3E1 !important; }

.cover-frame { border-radius: 8px !important; background: #F2F6F5 !important; border-color: var(--line) !important; box-shadow: 0 10px 24px rgba(23,50,77, .08) !important; }
.cover-frame img { border-radius: 8px !important; }
.cover-frame::before,
.cover-frame::after { display: none !important; }
.related-card .thumb { border-radius: 8px !important; }


.related-list {
  display: grid;
  gap: 1rem;
}
.related-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.related-cover-link {
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
}
.rk-cover-related {
  width: 104px;
  min-width: 104px;
  box-shadow: none;
}
.related-list-body {
  min-width: 0;
  flex: 1;
}
.related-list-title {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
}
.related-list-title a {
  color: var(--ink);
  text-decoration: none;
}
.related-list-title a:hover {
  color: var(--teal);
}
.related-list-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 575.98px) {
  .related-list-item {
    gap: .8rem;
    padding: .85rem;
  }
  .rk-cover-related {
    width: 78px;
    min-width: 78px;
  }
  .rk-cover-related .rk-cover-title {
    font-size: .64rem;
    -webkit-line-clamp: 6;
  }
  .rk-cover-related .rk-cover-brand,
  .rk-cover-related .rk-cover-foot {
    font-size: .5rem;
  }
}

footer {
  background: var(--navy) !important;
  color: #F6F3EE !important;
  border-top: 4px solid var(--terracotta) !important;
}
footer a { color: #fff; }
.rk-footer-logo { background: #fff; }
.rk-footer-owner { color: #fff; font-weight: 650; }
.rk-footer-note { max-width: 430px; text-align: right; }
.rk-login-footer { background: var(--navy); color: #fff; }
@media (max-width: 575.98px) {
  .rk-official-footer .container { align-items: flex-start !important; }
  .rk-footer-note { width: 100%; text-align: left; }
}
.rk-skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--navy); color: #fff; border-radius: 999px; padding: .7rem 1rem; text-decoration: none; }
.rk-skip-link:focus { top: 1rem; }

@media (max-width: 767.98px) {
  body { font-size: 15px; }
  .site-header .container { min-height: auto; }
  .brand-mark { width: 48px !important; height: 48px !important; }
  .hero { padding-top: 2.75rem !important; }
  .card-soft,
  .summary-panel,
  .panel-box,
  .filter-panel,
  .material-card,
  .material-item,
  .ai-review-panel,
  .ai-review-item { border-radius: 8px !important; }
}


.rk-cover{position:relative;display:block;aspect-ratio:2/3;width:100%;overflow:hidden;border:1px solid var(--line,#DDE3E2);border-radius:8px;background:#F2F6F5;box-shadow:0 10px 24px rgba(23,50,77,.08)}
.rk-cover img{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:cover;border-radius:8px;background:#F2F6F5}
.rk-cover-mockup{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;gap:.6rem;padding:12%;background:linear-gradient(145deg,#2F6F6D 0%,#2F6F6D 42%,#2F6F6D 100%);color:#fff;overflow:hidden}
.rk-cover-mockup::after{content:"";position:absolute;inset:auto -18% 15% 28%;height:38%;background:rgba(47,111,109, .22);transform:rotate(-18deg);border-radius:999px;pointer-events:none}
.rk-cover-brand,.rk-cover-foot{position:relative;z-index:1;font-size:.72rem;font-weight:800;line-height:1;text-transform:uppercase;color:#C9DCDA}
.rk-cover-foot{font-size:.62rem;letter-spacing:0;color:rgba(255,255,255,.72)}
.rk-cover-title{position:relative;z-index:1;font-weight:800;line-height:1.12;font-size:clamp(.86rem,1.3vw,1.28rem);display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;overflow-wrap:anywhere;hyphens:auto;text-shadow:0 2px 12px rgba(0,0,0,.22)}
.rk-cover-rule{position:relative;z-index:1;width:44%;height:3px;border-radius:999px;background:#17324D}
.rk-cover-list{width:92px;min-width:92px;box-shadow:none}
.rk-cover-rank{width:58px;min-width:58px;box-shadow:none}
.rk-cover-rank .rk-cover-mockup{padding:10%}.rk-cover-rank .rk-cover-title{font-size:.5rem;-webkit-line-clamp:5}.rk-cover-rank .rk-cover-brand,.rk-cover-rank .rk-cover-foot{font-size:.42rem}.rk-cover-rank .rk-cover-rule{height:2px}
.result-card-with-cover{display:flex;gap:1rem;align-items:flex-start}.result-cover-link{display:block;flex:0 0 auto;text-decoration:none}.result-content{min-width:0;flex:1}
@media(max-width:575.98px){.result-card-with-cover{gap:.8rem}.rk-cover-list{width:76px;min-width:76px}.rk-cover-list .rk-cover-title{font-size:.68rem;-webkit-line-clamp:6}.rk-cover-list .rk-cover-brand,.rk-cover-list .rk-cover-foot{font-size:.5rem}}

/* ============================================================================
   Aksesibiliti & pengalaman pengguna tambahan
   ========================================================================== */

/* 1) Fokus papan kekunci yang jelas dan konsisten */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 2) Hormati pilihan pengguna untuk kurangkan gerakan */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 3) Pilihan teks agar kontras dengan jenama */
::selection {
  background: var(--teal);
  color: #fff;
}

/* 4) Scrollbar yang halus dan konsisten */
* {
  scrollbar-width: thin;
  scrollbar-color: #C9D6D4 transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #C9D6D4; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--teal); }
*::-webkit-scrollbar-track { background: transparent; }

/* 5) Pautan yang lebih ketara untuk pembaca skrin & penglihatan rendah */
a[aria-current="page"],
.nav-link-rk.active {
  font-weight: 700;
}

/* 6) Pautan lompat (skip-link) untuk navigasi papan kekunci */
.rk-skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 1080;
  padding: .6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: top .15s ease;
}
.rk-skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ============================================================================
   Mod sistem gelap — kekalkan permukaan cerah supaya teks hitam mudah dibaca
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #F6F3EE;
    --surface: #FFFFFF;
    --white: #FFFFFF;
    --ink: #000000;
    --muted: #000000;
    --line: #DDE3E2;
    --rk-bg: #F6F3EE;
    --rk-surface: #FFFFFF;
    --rk-surface-soft: #FCFBF8;
    --rk-text: #000000;
    --rk-muted: #000000;
    --rk-line: #DDE3E2;
    --bg: #F6F3EE;
    --surface: #FFFFFF;
    --text: #000000;
    --cream: #F6F3EE;
  }

  body { background: #F6F3EE !important; color: #000 !important; }

  .site-header { background: rgba(255, 255, 255, .96) !important; }

  .hero,
  .search-hero,
  .page-hero,
  .listing-hero,
  .topbar-card,
  .detail-panel {
    background: linear-gradient(90deg, rgba(47,111,109, .08), rgba(47,111,109, .05)), #FCFBF8 !important;
  }

  .card-soft,
  .taxonomy-card,
  .material-card,
  .material-item,
  .summary-panel,
  .related-card,
  .meta-card,
  .filter-panel,
  .search-panel,
  .result-card,
  .hero-visual,
  .panel-box,
  .mini-stat,
  .metric-tile,
  .empty-state,
  .ai-review-panel,
  .ai-review-item,
  .login-card,
  .rank-card,
  .source-card,
  .category-card,
  .alumni-card,
  .metric {
    background: #fff !important;
    border-color: #DDE3E2 !important;
    box-shadow: 0 10px 24px rgba(23, 50, 77, .06) !important;
  }

  .form-control,
  .form-select {
    background: #fff !important;
    color: #000 !important;
    border-color: #DDE3E2 !important;
  }
  .form-control::placeholder { color: #404040 !important; }

  .content-band { background: #fff; border-color: #DDE3E2; }

  .source-icon,
  .taxonomy-icon,
  .material-icon,
  .ai-review-icon { border-color: #DDE3E2 !important; }

  .btn-light,
  .btn-soft,
  .btn-outline-rk,
  .btn-outline-secondary {
    background: #fff !important;
    color: #000 !important;
    border-color: #DDE3E2 !important;
  }

  .rk-cover-mockup { background: linear-gradient(145deg, #245B59 0%, #245B59 100%) !important; }
}

/* ============================================================================
   Gaya khusus halaman utama (index.php)
   ========================================================================== */
.brand-lockup { text-decoration: none; color: var(--ink); }
.uitm-logo { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px; }
.brand-kicker { font-size: .72rem; font-weight: 650; color: var(--teal); text-transform: uppercase; }
.brand-title { font-size: 1rem; font-weight: 700; line-height: 1.18; }
.brand-subtitle { font-size: .8rem; color: var(--muted); }

.identity-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .72rem; border-radius: 999px; background: rgba(255,255,255,.78); border: 1px solid var(--line); color: var(--teal); font-weight: 650; font-size: .82rem; }
.hero-title { font-size: clamp(2rem, 4vw, 3.65rem); font-weight: 700; line-height: 1.08; max-width: 850px; }
.hero-copy { font-size: 1.02rem; line-height: 1.72; color: var(--muted); max-width: 730px; }
.hero-accent { color: var(--teal); }

.search-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .7rem; box-shadow: 0 16px 36px rgba(23,50,77,.06); }
.search-box .form-control, .search-box .form-select { border: 1px solid transparent; background: #F2F6F5; border-radius: 8px; min-height: 50px; font-size: .94rem; }

.hero-board { display: grid; grid-template-columns: 1.08fr .92fr; gap: 10px; }
.feature-tile { position: relative; min-height: 152px; border-radius: 8px; overflow: hidden; background: #e7eee8; border: 1px solid #d7dfd8; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.62), 0 12px 24px rgba(23,50,77,.11); }
.feature-tile:first-child { grid-row: span 2; min-height: 314px; }
.feature-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; position: absolute; inset: 0; }
.feature-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.55)); }
.feature-tile .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal); font-size: 1.85rem; }
.feature-label { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; font-weight: 650; line-height: 1.25; text-shadow: 0 1px 10px rgba(0,0,0,.28); }

.campus-strip { display: flex; gap: .7rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.campus-strip span { display: inline-flex; align-items: center; gap: .4rem; }

.metric { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(23,50,77,.045); padding: 1rem; border-top: 3px solid rgba(47,111,109, .78); }
.metric-value { font-size: 1.55rem; font-weight: 700; color: var(--ink); }
.metric-label { color: var(--muted); font-size: .84rem; line-height: 1.35; }

.section-label { display: inline-flex; align-items: center; gap: .42rem; font-weight: 650; font-size: .82rem; color: var(--teal); background: #EAF4F3; border: 1px solid #CFE3E1; border-radius: 999px; padding: .42rem .7rem; }
.section-copy { color: var(--muted); line-height: 1.66; }
.content-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.source-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(23,50,77,.045); padding: 1.05rem; height: 100%; display: flex; gap: .9rem; text-decoration: none; color: var(--ink); transition: box-shadow .18s ease, border-color .18s ease; }
.source-card:hover { border-color: #B5D0CE; box-shadow: 0 16px 34px rgba(23,50,77,.07); }
.source-card strong { font-weight: 650; }
.source-icon { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 1.18rem; flex: 0 0 auto; }
.source-icon.hardcopy, .source-icon.ir, .source-icon.ebook { background: var(--teal); }
.source-icon.elib { background: var(--terracotta); color: #fff; }

.alumni-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; color: inherit; box-shadow: 0 12px 28px rgba(23,50,77,.07); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.alumni-card:hover { transform: translateY(-2px); border-color: rgba(47,111,109, .58); box-shadow: 0 18px 40px rgba(23,50,77,.12); }
.alumni-photo { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; background: linear-gradient(145deg, #fff, #EAF4F3); border: 2px solid #fff; outline: 1px solid rgba(47,111,109, .42); box-shadow: 0 10px 18px rgba(23,50,77,.16), inset 0 0 0 1px rgba(255,255,255,.68); color: var(--teal); font-weight: 700; }
.alumni-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.category-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(23,50,77,.045); display: block; overflow: hidden; text-decoration: none; color: inherit; height: 100%; transition: .18s ease; }
.category-card:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(23,50,77,.12); }
.category-media { height: 136px; position: relative; background: linear-gradient(135deg, #e4eee8, #f6f4eb); overflow: hidden; border: 1px solid rgba(47,111,109, .18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 12px 22px rgba(23,50,77,.1); }
.category-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.category-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18)); }
.category-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal); font-size: 1.85rem; }
.category-body { padding: .95rem; }
.category-title { font-weight: 650; line-height: 1.3; min-height: 2.45rem; }

.mini-meta { display: flex; gap: .62rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.mini-meta span { display: inline-flex; align-items: center; gap: .32rem; }

.rank-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(23,50,77,.045); padding: 1rem; height: 100%; }
.rank-row { display: grid; grid-template-columns: 34px 58px 1fr; gap: .78rem; padding: .78rem 0; border-bottom: 1px solid #edf2ee; }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 30px; height: 30px; border-radius: 8px; background: #EAF4F3; display: grid; place-items: center; font-weight: 650; color: var(--teal); font-size: .88rem; }
.record-title { font-weight: 650; line-height: 1.36; text-decoration: none; color: var(--ink); }
.record-title:hover { color: var(--teal); }

.mobile-menu-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--teal); display: inline-grid; place-items: center; }
.mobile-nav-panel { width: min(88vw, 360px); }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; background: #fff; }
.mobile-nav-note { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; }

@media (max-width: 991.98px) {
  .hero-board { grid-template-columns: 1fr 1fr; }
  .feature-tile:first-child { grid-row: auto; min-height: 152px; }
  .site-header .container { flex-direction: row !important; align-items: center !important; flex-wrap: nowrap !important; }
  .site-header .brand-lockup { flex: 1 1 auto; width: auto !important; min-width: 0; }
  .site-header .brand-subtitle { display: none; }
  .site-header .mobile-menu-wrap { width: auto !important; margin-left: auto; display: inline-flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-end !important; }
  .site-header nav.desktop-nav { display: none !important; }
}
@media (max-width: 767.98px) {
  .hero { padding: 2.75rem 0; }
  .hero-board { grid-template-columns: 1fr; }
  .feature-tile, .feature-tile:first-child { min-height: 150px; }
  .hero-title { font-size: 2.12rem; }
  .category-title { min-height: 0; }
  .search-box .btn { width: 100%; }
  .uitm-logo { width: 48px; height: 48px; }
}

/* ============================================================================
   Gaya khusus halaman carian (search.php)
   ========================================================================== */
.search-hero { background: linear-gradient(90deg, rgba(47,111,109, .055), rgba(47,111,109,.035)), #FCFBF8; border-bottom: 1px solid var(--line); padding: 3rem 0; }
.page-title { font-weight: 700; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }

.result-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(23,50,77,.045); padding: 1.1rem; }
.result-title { font-weight: 650; line-height: 1.35; text-decoration: none; color: var(--ink); font-size: 1.08rem; }
.result-title:hover { color: var(--teal); }
.meta { display: flex; gap: .65rem; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
.meta span { display: inline-flex; align-items: center; gap: .32rem; }
.summary { color: var(--muted); line-height: 1.65; }

.facet-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(23,50,77,.045); padding: 1rem; overflow: hidden; }
.facet-scroll { max-height: calc(100vh - 148px); overflow-y: auto; overscroll-behavior: contain; padding-right: .15rem; scrollbar-width: thin; scrollbar-color: rgba(47,111,109, .35) transparent; }
.facet-scroll::-webkit-scrollbar { width: 8px; }
.facet-scroll::-webkit-scrollbar-thumb { background: rgba(47,111,109, .28); border-radius: 999px; }
.facet-scroll::-webkit-scrollbar-track { background: transparent; }
.facet-title { font-size: .82rem; text-transform: uppercase; font-weight: 800; color: var(--teal); margin-bottom: .65rem; }
.facet-list { display: grid; gap: .4rem; }
.facet-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .65rem; background: #fbfcf8; }
.facet-link:hover { border-color: rgba(47,111,109, .32); color: var(--teal); background: #fff; }
.facet-link.active { border-color: var(--teal); background: #EAF4F3; color: var(--teal); font-weight: 700; }
.facet-link.child { font-size: .9rem; padding: .48rem .6rem; background: #fff; }
.facet-count { font-size: .78rem; color: var(--muted); background: #eef2ec; border-radius: 999px; padding: .12rem .45rem; }
.facet-tree { display: grid; gap: .55rem; }
.facet-tree-node { display: grid; gap: .4rem; }
.facet-tree-children { display: grid; gap: .35rem; margin-left: .7rem; padding-left: .75rem; border-left: 2px solid #edf1ec; }
.facet-accordion { display: grid; gap: .65rem; }
.facet-accordion .accordion-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.facet-accordion .accordion-button { min-height: 46px; padding: .7rem .8rem; background: #fbfcf8; color: var(--teal); box-shadow: none; font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.facet-accordion .accordion-button:not(.collapsed) { background: #EAF4F3; color: var(--teal); }
.facet-accordion .accordion-button:focus { border-color: rgba(47,111,109, .32); box-shadow: 0 0 0 .2rem rgba(47,111,109, .12); }
.facet-accordion .accordion-body { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: .75rem .65rem .75rem .75rem; scrollbar-width: thin; scrollbar-color: rgba(47,111,109, .35) transparent; }
.facet-accordion .accordion-body::-webkit-scrollbar { width: 8px; }
.facet-accordion .accordion-body::-webkit-scrollbar-thumb { background: rgba(47,111,109, .28); border-radius: 999px; }
.facet-accordion .accordion-body::-webkit-scrollbar-track { background: transparent; }
.facet-accordion .accordion-body.facet-body-year, .facet-accordion .accordion-body.facet-body-source { max-height: 230px; }
.facet-accordion .accordion-body.facet-body-subject { max-height: 360px; }
.active-filter { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 999px; padding: .28rem .55rem; background: #fff; color: var(--ink); text-decoration: none; font-size: .82rem; }
.active-filter:hover { color: var(--teal); border-color: var(--teal); }

@media (max-width: 991.98px) {
  .facet-panel { position: static !important; }
  .facet-scroll { max-height: none; overflow: visible; overscroll-behavior: auto; padding-right: 0; }
  .facet-accordion .accordion-body, .facet-accordion .accordion-body.facet-body-year, .facet-accordion .accordion-body.facet-body-source, .facet-accordion .accordion-body.facet-body-subject { max-height: 300px; }
}
@media (max-width: 767.98px) {
  .search-panel .btn { width: 100%; }
}

/* Kad hero carian diselaraskan dengan Teroka, Profil dan Kolaborasi. */
.search-page .search-shell { max-width: 1240px; }
.search-page .search-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: linear-gradient(120deg, #17324d 0%, #245b59 68%, #2f6f6d 100%) !important;
  box-shadow: 0 24px 54px rgba(23, 50, 77, .2) !important;
}
.search-page .search-hero::after {
  position: absolute;
  z-index: -1;
  top: -170px;
  right: -70px;
  width: 410px;
  height: 410px;
  border: 78px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  content: "";
}
.search-page .search-hero .page-title,
.search-page .search-hero .fw-bold { color: #fff !important; }
.search-page .search-hero p,
.search-page .search-hero .text-secondary,
.search-page .search-hero .small { color: rgba(255, 255, 255, .82) !important; }
.search-page .search-hero .small.fw-bold.text-success { color: rgba(255, 255, 255, .9) !important; }
.search-page .search-hero .filter-panel {
  border-color: rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  box-shadow: 0 14px 30px rgba(8, 26, 39, .16);
  backdrop-filter: blur(10px);
}
.search-page .search-hero .filter-panel .fw-bold {
  color: var(--navy) !important;
  font-weight: 800 !important;
}
.search-page .search-hero .filter-panel .small,
.search-page .search-hero .filter-panel .text-secondary,
.search-page .search-hero .filter-panel span { color: var(--teal-dark) !important; }
.search-page .search-hero .search-panel {
  border-color: rgba(255, 255, 255, .28);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(8, 26, 39, .2);
}
.search-page #main-content > .container { max-width: 1240px; }

@media (max-width: 575.98px) {
  .search-page .search-shell { padding-top: 0 !important; }
  .search-page .search-hero {
    margin-right: -1rem;
    margin-left: -1rem;
    padding: 2.5rem 1.25rem !important;
    border-radius: 0 !important;
  }
  .search-page .search-hero .page-title { font-size: clamp(2rem, 10vw, 2.65rem) !important; }
}

/* ============================================================================
   Gaya khusus halaman butiran bahan (page.php)
   ========================================================================== */
.brand-mark { width: 52px; height: 52px; border-radius: 8px; background: var(--teal); display: grid; place-items: center; color: #fff; font-weight: 650; }
.btn-main { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 14px; padding: .85rem 1.1rem; font-weight: 700; }
.btn-main:hover, .btn-main:focus { background: #17324D; border-color: #17324D; color: #fff; }
.btn-soft { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1.1rem; font-weight: 700; color: var(--text); }
.detail-panel, .summary-panel, .related-card, .meta-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.detail-panel { padding: 1.4rem; }
.summary-panel { padding: 1.35rem; }
.meta-card { padding: 1rem; }
.cover-box { position: sticky; top: 24px; perspective: 1200px; }
.cover-frame { position: relative; width: 50%; margin-inline: auto; border-radius: 24px; overflow: visible; background: linear-gradient(135deg,#EDF5F4,#E6F0EF); border: 1px solid rgba(214,228,214,.95); padding: 16px; transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; box-shadow: 28px 26px 45px rgba(23,50,77,.18), 8px 8px 0 rgba(47,111,109,.08); transition: transform .28s ease, box-shadow .28s ease; }
.cover-frame::before { content: ""; position: absolute; top: 18px; bottom: 18px; right: -13px; width: 18px; border-radius: 0 14px 14px 0; background: linear-gradient(90deg,#D7E5E3,#f7faf5 48%,#C7DBD9); transform: translateZ(-18px) rotateY(78deg); transform-origin: left center; box-shadow: inset -4px 0 8px rgba(36,91,89,.12); }
.cover-frame::after { content: ""; position: absolute; inset: 16px; border-radius: 18px; pointer-events: none; background: linear-gradient(110deg,rgba(255,255,255,.34),rgba(255,255,255,0) 28%,rgba(0,0,0,.06) 76%,rgba(255,255,255,.16)); transform: translateZ(2px); }
.cover-frame:hover { transform: rotateY(-4deg) rotateX(2deg) translateY(-3px); box-shadow: 32px 30px 55px rgba(23,50,77,.2), 8px 8px 0 rgba(47,111,109,.08); }
.cover-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 18px; box-shadow: inset 10px 0 18px rgba(0,0,0,.12), 0 12px 26px rgba(23,50,77,.16); transform: translateZ(10px); background: #F8FAF9; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 999px; background: #EAF4F3; border: 1px solid #CFE3E1; color: var(--primary); font-size: .85rem; font-weight: 700; }
.title-main { font-size: clamp(1.9rem,3vw,3rem); font-weight: 850; line-height: 1.12; }
.meta-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.meta-value { font-weight: 700; color: var(--text); }
.meta-line { display: flex; gap: .65rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.meta-line span { display: inline-flex; align-items: center; gap: .35rem; }
.body-copy { line-height: 1.8; color: #56636E; }
.related-card { padding: 1rem; height: 100%; }
.related-card:hover { box-shadow: 0 18px 42px rgba(47,111,109,.11); }
.related-card .thumb { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 18px; }
.nav-link-rk.active { color: #2F6F6D !important; border-bottom: 2px solid var(--terracotta) !important; font-weight: 750; }
.mobile-nav-link.active { border-color: #CFE3E1; background: #EAF4F3; color: #2F6F6D; box-shadow: 0 8px 18px rgba(47,111,109, .12); }

/* ============================================================================
   Gaya khusus profil pemikir (profil.php)
   ========================================================================== */
.thinker-hero { background: linear-gradient(135deg,#17324D,#2F6F6D); color: #fff; border-radius: 20px; }
.profile-card, .content-card, .material-card { background: #fff; border: 1px solid #DDE3E2; border-radius: 14px; }
.profile-card { transition: .2s ease; }
.profile-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(23,50,77,.12); }
.profile-photo { aspect-ratio: 4/5; object-fit: cover; object-position: top; width: 100%; border-radius: 12px; }
.detail-photo { width: 100%; max-height: 520px; object-fit: cover; object-position: top; border-radius: 16px; }
.gallery-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }

/* ============================================================================
   Gaya khusus halaman kolaborasi (page_02.php)
   ========================================================================== */
.collab-hero { background: radial-gradient(circle at top right,rgba(47,111,109, .18),transparent 32%),linear-gradient(135deg,#fff,#f5f8f2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem,4vw,3rem); box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.collab-org-card, .collab-material-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 28px rgba(47,111,109,.06); height: 100%; }
.collab-org-card { display: block; padding: 1.25rem; text-decoration: none; color: inherit; transition: .2s ease; }
.collab-org-card:hover, .collab-org-card.active { transform: translateY(-3px); border-color: #2F6F6D; box-shadow: 0 16px 34px rgba(47,111,109,.11); color: inherit; }
.collab-logo { width: 88px; height: 68px; object-fit: contain; border: 1px solid #DDE3E2; border-radius: 14px; background: #fff; padding: 7px; }
.collab-cover { width: 112px; flex: 0 0 112px; }
.collab-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; }
.collab-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #69756d; font-weight: 700; }
@media (max-width: 575.98px) {
  .collab-material-card > .d-flex { flex-direction: column; }
  .collab-cover { width: 100%; max-width: 150px; }
}

/* ============================================================================
   Gaya khusus modul admin
   ========================================================================== */

/* --- Shell & login (admin/page.php, admin/login.php) --- */
.search-wrap { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: .9rem; box-shadow: 0 12px 34px rgba(47,111,109,.08); }
.search-wrap input { border: none; box-shadow: none; padding: .7rem 1rem; }
.hero-visual, .card-soft, .taxonomy-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.hero-visual { padding: 1.5rem; height: 100%; }
.pill { display: inline-flex; padding: .55rem .9rem; border-radius: 999px; background: #EAF4F3; border: 1px solid #CFE3E1; color: var(--primary); font-weight: 700; margin: .25rem; }
.btn-accent { background: var(--terracotta); border-color: var(--terracotta); color: #fff; border-radius: 14px; padding: .9rem 1.25rem; font-weight: 700; }
.btn-accent:hover, .btn-accent:focus { background: #245B59; border-color: #245B59; color: #fff; }
button:not(.btn-close), .btn { font-size: 12px !important; }
.btn { padding: .4rem .7rem !important; line-height: 1.35; border-radius: 8px; }
.btn-sm { padding: .28rem .55rem !important; }
.btn-lg { padding: .45rem .8rem !important; border-radius: 10px; }
.accordion-button { font-size: 12px !important; padding: .65rem .8rem !important; }
.section-note { display: inline-flex; padding: .45rem .85rem; border-radius: 999px; background: #EAF4F3; color: var(--primary); font-weight: 700; font-size: .85rem; }
.card-soft { padding: 1.4rem; height: 100%; }
.taxonomy-card { padding: 1.2rem; height: 100%; transition: .2s ease; text-decoration: none; color: inherit; }
.taxonomy-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(47,111,109,.11); }
.taxonomy-icon { width: 52px; height: 52px; border-radius: 16px; background: #EAF4F3; color: var(--primary); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.mini-stat { border: 1px dashed #D7E5E3; border-radius: 18px; padding: 1rem; background: #FBFCFC; }
.page-shell { padding: 1.5rem 0 2.5rem; }
.content-wrap { min-height: 58vh; }
.topbar-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 30px rgba(47,111,109,.06); }
.subnav-scroll { display: flex; gap: .65rem; overflow: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.subnav-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); font-weight: 700; white-space: nowrap; }
.subnav-pill.active { background: #EAF4F3; border-color: #CFE3E1; color: var(--primary); }
.db-status-ok { color: #0f7a3a; }
.db-status-bad { color: #b02a37; }
.desktop-nav .dropdown-toggle { background: none; border: 0; padding: .5rem 0; color: inherit; font: inherit; }
.desktop-nav .dropdown-toggle::after { margin-left: .45rem; vertical-align: .15rem; }
.desktop-nav .dropdown-menu { min-width: 240px; padding: .5rem; border-color: var(--line); border-radius: 14px; box-shadow: 0 14px 32px rgba(31,38,33,.12); }
.desktop-nav .dropdown-item { padding: .7rem .8rem; border-radius: 10px; font-weight: 600; }
.desktop-nav .dropdown-item.active, .desktop-nav .dropdown-item:active { background: var(--teal); color: #fff; }
.desktop-nav .nav-link-rk.active, .desktop-nav .dropdown-toggle.active { color: var(--primary-hover); }
.mobile-nav-group { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.mobile-nav-group-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 0; background: #fff; color: var(--text); font-weight: 700; text-align: left; }
.mobile-nav-group-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.mobile-nav-group-toggle .bi-chevron-down { transition: transform .2s ease; }
.mobile-nav-submenu { padding: 0 .55rem .55rem; }
.mobile-nav-submenu .mobile-nav-link { padding: .72rem .8rem; border: 0; background: var(--paper); font-size: .92rem; }
.mobile-nav-submenu .mobile-nav-link + .mobile-nav-link { margin-top: .35rem; }
.mobile-nav-link.active { background: #EAF4F3; color: #245B59; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(23,50,77,.045); padding: 1.5rem; }
.btn-main { background: var(--teal); border-color: var(--teal); color: #fff; border-radius: 8px; padding: .5rem .8rem !important; font-weight: 650; }
.btn-main:hover, .btn-main:focus { background: var(--navy); border-color: var(--navy); color: #fff; }
.soft-link { color: var(--teal); font-weight: 650; text-decoration: none; }

/* --- page_01.php — metrik & borang --- */
.page-hero { background: radial-gradient(circle at top right,rgba(47,111,109, .14),transparent 25%),radial-gradient(circle at left top,rgba(47,111,109,.12),transparent 28%),linear-gradient(180deg,#F8FAF9 0%,#F3F7F6 100%); border: 1px solid var(--line,#DDE3E2); border-radius: 28px; padding: 1.5rem; box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.page-hero p { color: #5e6e63; }
.metric-tile { border: 1px dashed #CFE3E1; border-radius: 20px; padding: 1rem; background: #FBFCFC; height: 100%; }
.metric-value { font-size: 1.65rem; font-weight: 800; color: var(--primary,#2F6F6D); }
.panel-box { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 24px; padding: 1.4rem; box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.form-soft .form-label { font-weight: 700; color: #245B59; margin-bottom: .45rem; }
.form-soft .form-control, .form-soft .form-select { border: 1px solid #CFE3E1; border-radius: 16px; padding: .8rem 1rem; box-shadow: none; background: #fff; }
.form-soft .form-control:focus, .form-soft .form-select:focus { border-color: #2F6F6D; box-shadow: 0 0 0 .18rem rgba(47,111,109,.12); }
.form-soft textarea.form-control { min-height: 120px; }
.helper-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: 999px; background: #EAF4F3; border: 1px solid #CFE3E1; color: var(--primary,#2F6F6D); font-weight: 700; font-size: .88rem; }
.mini-block { background: #FBFCFC; border: 1px dashed #CFE3E1; border-radius: 18px; padding: 1rem; }
.section-divider { height: 1px; background: linear-gradient(90deg,rgba(47,111,109, .2),rgba(47,111,109,.18),rgba(47,111,109, 0)); margin: 1.2rem 0 1.4rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: .75rem; }
.check-item { position: relative; }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-item label { display: flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid #CFE3E1; border-radius: 16px; padding: .8rem .9rem; min-height: 54px; cursor: pointer; transition: .2s ease; }
.check-item input:checked + label { background: #EAF4F3; border-color: #2F6F6D; color: #2F6F6D; box-shadow: 0 10px 25px rgba(47,111,109,.08); }
.sticky-summary { position: sticky; top: 88px; }
.lang-card-title { min-height: 48px; }
.rk-panel-toggle { border: 0; background: #EAF4F3; color: #2F6F6D; border-radius: 8px; width: 36px; height: 36px; display: inline-grid; place-items: center; }
.rk-panel-toggle i { transition: transform .18s ease; }
.panel-box.is-collapsed .rk-panel-toggle i { transform: rotate(-90deg); }
.panel-box.is-collapsed .rk-collapsible-body { display: none; }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: .65rem; }
.subject-empty { border: 1px dashed #CFE3E1; border-radius: 12px; padding: .8rem; color: #68736c; background: #FBFCFC; }
@media (max-width: 991.98px) {
  .sticky-summary { position: static; }
  .page-hero { border-radius: 16px; padding: 1.1rem; }
  .page-hero .section-title { font-size: 1.35rem; }
  .metric-tile { border-radius: 12px; padding: .75rem; }
  .metric-value { font-size: 1.25rem; }
  .panel-box { border-radius: 14px; padding: 1rem; }
}

/* --- page_03.php — senarai & penapis --- */
.listing-hero { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 24px; padding: 1.4rem; box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.filter-panel { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 22px; padding: 1.2rem; box-shadow: 0 12px 30px rgba(47,111,109,.05); }
.material-item { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 22px; padding: 1.2rem; box-shadow: 0 12px 28px rgba(47,111,109,.05); height: 100%; }
.material-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #EAF4F3; color: var(--primary,#2F6F6D); font-size: 1.45rem; flex: 0 0 auto; }
.status-badge { border-radius: 999px; padding: .35rem .65rem; font-weight: 700; font-size: .78rem; }
.empty-state { background: #fff; border: 1px dashed #CFE3E1; border-radius: 22px; padding: 2rem; text-align: center; }
.filter-panel .form-control, .filter-panel .form-select { border-radius: 14px; border-color: #CFE3E1; min-height: 46px; }
.edit-panel { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 22px; padding: 1.2rem; box-shadow: 0 12px 30px rgba(47,111,109,.05); }
.edit-panel .form-control, .edit-panel .form-select { border-radius: 14px; border-color: #CFE3E1; min-height: 44px; }
.action-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

/* --- page_07.php — semakan AI --- */
.ai-review-panel { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 22px; padding: 1.25rem; box-shadow: 0 12px 30px rgba(47,111,109,.05); }
.ai-review-item { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 22px; padding: 1.2rem; box-shadow: 0 12px 28px rgba(47,111,109,.05); }
.ai-review-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #EAF4F3; color: var(--primary,#2F6F6D); font-size: 1.35rem; flex: 0 0 auto; }
.ai-chip { display: inline-flex; align-items: center; border: 1px solid #CFE3E1; background: #F3F7F6; border-radius: 999px; padding: .28rem .58rem; margin: .15rem; font-size: .82rem; font-weight: 700; color: #245B59; }
.ai-status-badge { border-radius: 999px; padding: .35rem .65rem; font-weight: 700; font-size: .78rem; }
.ai-summary { background: #FBFCFC; border: 1px solid #edf2ec; border-radius: 16px; padding: .85rem; color: #526258; }
.ai-chip--removable { padding-right: .45rem; }
.ai-chip-remove { border: 0; background: transparent; color: #587163; padding: 0 0 0 .25rem; line-height: 1; font-size: .95rem; cursor: pointer; }
.ai-chip-remove:hover { color: var(--primary,#2F6F6D); }
.ai-review-panel .form-select { border-radius: 14px; border-color: #CFE3E1; min-height: 46px; }
.ai-tag-choice { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #CFE3E1; background: #fff; border-radius: 999px; padding: .32rem .6rem; margin: .15rem; font-size: .82rem; font-weight: 700; color: #245B59; }
.ai-tag-choice input { margin: 0; }

/* --- page_08.php — taksonomi --- */
.taxonomy-shell { padding: 2rem 0 3rem; }
.taxonomy-hero { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 14px; padding: 1.15rem; box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.taxonomy-hero p { color: #68736c; }
.tax-metric { border: 1px solid #DDE3E2; border-radius: 10px; background: #FBFCFC; padding: .75rem; }
.tax-metric strong { display: block; font-size: 1.35rem; color: var(--primary,#2F6F6D); }
.tax-card { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 14px; box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.tax-card-head { padding: 1rem 1rem .75rem; border-bottom: 1px solid #DDE3E2; }
.tax-card-body { padding: 1rem; }
.tax-card .form-control, .tax-card .form-select { border: 1px solid #CFE3E1; border-radius: 9px; padding: .62rem .75rem; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; text-overflow: clip; }
.tax-card input, .tax-card select { display: block; width: 100%; min-width: 0; }
.tax-toolbar > *, .tax-edit-grid > *, .tax-card .row > [class*="col-"] { min-width: 0; }
.tax-card .row { width: 100%; margin-left: 0; margin-right: 0; }
.tax-card .form-label { font-size: .82rem; font-weight: 700; color: #33424F; margin-bottom: .35rem; }
.tax-tabs { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 14px; padding: .55rem; box-shadow: 0 10px 28px rgba(47,111,109,.05); }
.tax-tabs .nav-link { border: 0; border-radius: 10px; color: #33424F; font-weight: 700; }
.tax-tabs .nav-link.active { background: #EAF4F3; color: var(--primary,#2F6F6D); }
.tax-toolbar { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: .75rem; }
.tax-list { display: flex; flex-direction: column; gap: .7rem; }
.tax-edit-row { border: 1px solid #DDE3E2; border-radius: 12px; background: #fff; padding: .85rem; }
.tax-edit-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: .6rem; align-items: end; }
.tax-edit-grid > div:nth-child(1) { grid-column: span 3; }
.tax-edit-grid > div:nth-child(2) { grid-column: span 4; }
.tax-edit-grid > div:nth-child(3) { grid-column: span 5; }
.tax-edit-grid > div:nth-child(4) { grid-column: span 6; }
.tax-edit-grid > div:nth-child(5) { grid-column: span 2; }
.tax-edit-grid > div:nth-child(6) { grid-column: span 3; }
.tax-edit-grid > div:nth-child(7) { grid-column: span 1; }
.tax-row-actions { display: flex; gap: .4rem; justify-content: flex-end; }
.tax-row-actions .btn { width: 2.25rem; min-width: 2.25rem; padding: .45rem .55rem !important; }
.tax-badge { display: inline-flex; align-items: center; gap: .25rem; background: #EAF4F3; border: 1px solid #CFE3E1; border-radius: 999px; padding: .28rem .5rem; font-size: .78rem; color: #5D6B76; }
.tax-empty { border: 1px dashed #CFE3E1; border-radius: 12px; padding: 1rem; color: #68736c; background: #FBFCFC; }
.tax-helper { font-size: .82rem; color: #68736c; }
.tax-image-current { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; margin-top: .35rem; }
.tax-image-current img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; border: 1px solid #CFE3E1; background: #FCFBF8; }
.tax-image-current .tax-image-tag { font-size: .72rem; font-weight: 700; color: #5D6B76; background: #EAF4F3; border: 1px solid #CFE3E1; border-radius: 999px; padding: .15rem .45rem; white-space: nowrap; }
.tax-duplicate-note { display: flex; gap: .5rem; align-items: flex-start; background: #EAF4F3; border: 1px solid #CFE3E1; color: #245B59; border-radius: 10px; padding: .65rem .75rem; font-size: .86rem; }
@media (max-width: 1199.98px) {
  .tax-edit-grid { grid-template-columns: 1fr 1fr; }
  .tax-edit-grid > div { grid-column: auto !important; }
  .tax-row-actions { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
  .tax-toolbar, .tax-edit-grid { grid-template-columns: 1fr; }
  .taxonomy-hero { padding: 1rem; }
}

/* ===== page_08.php — taksonomi v2 (tree view) ===== */
:root {
  --tax-cat: #2F6F6D;
  --tax-cat-soft: #EAF4F3;
  --tax-cat-line: #CFE3E1;
  --tax-sub: #3D6B8D;
  --tax-sub-soft: #E8F0F7;
  --tax-sub-line: #CDE0EE;
  --tax-ss: #B7791F;
  --tax-ss-soft: #FBF3E4;
  --tax-ss-line: #F0DFBC;
}

.tax-hero {
  background: linear-gradient(135deg, #ffffff 0%, #F3F9F8 100%);
  border: 1px solid var(--line,#DDE3E2);
  border-radius: 18px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 16px 40px rgba(47,111,109,.08);
}
.tax-hero-copy { color: #5D6B76; max-width: 640px; }
.tax-hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }

.tax-metric {
  position: relative;
  border: 1px solid #DDE3E2;
  border-radius: 12px;
  background: #fff;
  padding: .85rem 1rem;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tax-metric:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47,111,109,.12); }
.tax-metric__label { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #7A8A94; margin-bottom: .25rem; }
.tax-metric strong { display: block; font-size: 1.6rem; line-height: 1.1; color: #33424F; }
.tax-metric__icon { position: absolute; right: .6rem; top: .6rem; font-size: 1.1rem; opacity: .25; }
.tax-metric--cat strong { color: var(--tax-cat); }
.tax-metric--sub strong { color: var(--tax-sub); }
.tax-metric--ss strong { color: var(--tax-ss); }

.tax-side { position: sticky; top: 1rem; }

.tax-card--add .accordion-button { font-weight: 700; color: #33424F; }
.tax-card--add .accordion-button:not(.collapsed) { color: var(--primary,#2F6F6D); background: #F7FBFA; }
.tax-add-item--cat .accordion-button:not(.collapsed) { box-shadow: inset 4px 0 0 var(--tax-cat); }
.tax-add-item--sub .accordion-button:not(.collapsed) { box-shadow: inset 4px 0 0 var(--tax-sub); }
.tax-add-item--ss .accordion-button:not(.collapsed) { box-shadow: inset 4px 0 0 var(--tax-ss); }

.tax-legend-row { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: #33424F; }
.tax-legend-row > span:nth-child(2) { font-weight: 600; }

/* Level dots */
.tax-level-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 4px;
  flex: 0 0 auto;
}
.tax-level-dot--cat { background: var(--tax-cat); }
.tax-level-dot--sub { background: var(--tax-sub); }
.tax-level-dot--ss { background: var(--tax-ss); }

/* Tree toolbar */
.tax-tree-toolbar { display: inline-flex; gap: .4rem; }
.btn-soft { background: #F1F6F5; border: 1px solid #DDE3E2; color: #33424F; }
.btn-soft:hover { background: #E4EFED; border-color: #CFE3E1; color: var(--primary,#2F6F6D); }
.tax-result-count { font-size: .8rem; font-weight: 700; color: var(--primary,#2F6F6D); background: var(--tax-cat-soft); border: 1px solid var(--tax-cat-line); border-radius: 999px; padding: .3rem .7rem; white-space: nowrap; }

/* Tree */
.tax-tree { display: flex; flex-direction: column; gap: .4rem; }
.tax-node { border-radius: 12px; }
.tax-node-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tax-node-head:hover { background: #F7FAFA; box-shadow: 0 4px 14px rgba(47,111,109,.08); }

.tax-node--cat > .tax-node-head { background: var(--tax-cat-soft); border-color: var(--tax-cat-line); }
.tax-node--sub { margin-left: 1.6rem; border-left: 2px solid var(--tax-sub-line); }
.tax-node--ss { margin-left: 1.6rem; border-left: 2px solid var(--tax-ss-line); }
.tax-node--cat > .tax-node-head:hover { background: #DFF0EE; }
.tax-node--sub > .tax-node-head { border-color: #EAF1F6; }
.tax-node--sub > .tax-node-head:hover { background: var(--tax-sub-soft); }
.tax-node--ss > .tax-node-head { border-color: #F7F1E4; }
.tax-node--ss > .tax-node-head:hover { background: var(--tax-ss-soft); }

.tax-toggle {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #7A8A94;
  border-radius: 6px; cursor: pointer;
  flex: 0 0 auto;
  transition: transform .18s ease, background .15s ease;
}
.tax-toggle:hover { background: rgba(0,0,0,.05); color: #33424F; }
.tax-toggle i { transition: transform .18s ease; }
.tax-node--collapsed > .tax-node-head .tax-toggle i { transform: rotate(-90deg); }
.tax-node--collapsed > .tax-node-children { display: none; }

.tax-node-spacer { width: 24px; flex: 0 0 auto; }

.tax-node-main { flex: 1 1 auto; min-width: 0; }
.tax-node-title { font-weight: 700; color: #33424F; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tax-node--cat .tax-node-title { color: var(--tax-cat); font-size: .98rem; }
.tax-node-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .15rem; }
.tax-node-en { font-size: .78rem; color: #68736c; font-style: italic; }
.tax-node-code {
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  color: #7A8A94; background: #F1F4F3; border-radius: 5px; padding: .1rem .4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tax-node-icon { color: #9AA8AC; font-size: .9rem; }

.tax-node-counts { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.tax-node-actions { display: flex; gap: .3rem; flex: 0 0 auto; }
.tax-node-actions .btn { width: 30px; min-width: 30px; padding: .35rem .5rem !important; border-radius: 8px; }

.tax-node-children { margin-top: .3rem; display: flex; flex-direction: column; gap: .3rem; }
.tax-node-empty { padding: .5rem .75rem .5rem 2rem; font-size: .82rem; color: #9AA8AC; font-style: italic; }

.tax-badge--sub { background: var(--tax-sub-soft); border-color: var(--tax-sub-line); color: var(--tax-sub); }
.tax-badge--ss { background: var(--tax-ss-soft); border-color: var(--tax-ss-line); color: var(--tax-ss); }
.tax-badge--mat { background: #F1F4F3; border-color: #E3E9E7; color: #5D6B76; }

.tax-node--filtered-out { display: none !important; }

/* Accordion kategori */
.tax-accordion { display: flex; flex-direction: column; gap: .5rem; }
.tax-accordion .accordion-item { border-radius: 14px; overflow: hidden; border: 1px solid #DDE3E2; }
.tax-acc-item--cat { box-shadow: 0 6px 18px rgba(47,111,109,.05); }
.tax-acc-header { display: flex; align-items: stretch; gap: 0; }
.tax-acc-header .accordion-button {
  flex: 1 1 auto;
  min-width: 0;
  padding: .7rem .9rem;
  gap: .6rem;
  background: var(--tax-cat-soft);
  color: var(--tax-cat);
  font-weight: 700;
  box-shadow: none;
  border-radius: 0;
}
.tax-acc-header .accordion-button:not(.collapsed) {
  background: #DFF0EE;
  color: var(--tax-cat);
  box-shadow: inset 4px 0 0 var(--tax-cat);
}
.tax-acc-header .accordion-button::after {
  width: .9rem; height: .9rem; background-size: .9rem;
  flex: 0 0 auto;
  margin-left: 0;
}
.tax-acc-header .accordion-button .tax-node-main { flex: 1 1 auto; min-width: 0; }
.tax-acc-header .accordion-button .tax-node-counts { margin-left: auto; }
.tax-acc-header .accordion-button .tax-node-title { color: inherit; }
.tax-acc-header .tax-node-actions {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .7rem;
  background: #fff;
  border-left: 1px solid var(--tax-cat-line);
}
.tax-acc-body { padding: .7rem; background: #FBFCFC; }
.tax-acc-body .tax-node--sub { margin-left: 0; border-left: 2px solid var(--tax-sub-line); }

/* Responsif tree */
@media (max-width: 991.98px) {
  .tax-side { position: static; }
  .tax-hero-metrics { grid-template-columns: repeat(4, 1fr); }
  .tax-acc-header { flex-wrap: wrap; }
  .tax-acc-header .tax-node-actions { width: 100%; border-left: 0; border-top: 1px solid var(--tax-cat-line); justify-content: flex-end; }
}
@media (max-width: 767.98px) {
  .tax-hero { padding: 1.25rem; }
  .tax-hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .tax-node--sub, .tax-node--ss { margin-left: .75rem; }
  .tax-node-head { flex-wrap: wrap; }
  .tax-node-counts { width: 100%; margin-left: 2.4rem; }
  .tax-node-actions { margin-left: auto; }
  .tax-acc-header .accordion-button .tax-node-counts { margin-left: 0; }
}
@media (max-width: 991.98px) {
  .tax-side { position: static; }
  .tax-hero-metrics { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767.98px) {
  .tax-hero { padding: 1.25rem; }
  .tax-hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .tax-node--sub, .tax-node--ss { margin-left: .75rem; }
  .tax-node-head { flex-wrap: wrap; }
  .tax-node-counts { width: 100%; margin-left: 2.4rem; }
  .tax-node-actions { margin-left: auto; }
}

/* --- page_09.php — nombor panggilan --- */
.callno-shell { padding: 2rem 0 3rem; }
.callno-hero, .callno-card { background: #fff; border: 1px solid var(--line,#DDE3E2); border-radius: 14px; box-shadow: 0 14px 36px rgba(47,111,109,.07); }
.callno-hero { padding: 1.15rem; }
.callno-card { padding: 1rem; }
.callno-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: .85rem; align-items: end; }
.callno-grid > * { min-width: 0; }
.callno-grid .span-2 { grid-column: span 2; }
.callno-grid .span-3 { grid-column: span 3; }
.callno-grid .span-4 { grid-column: span 4; }
.callno-grid .span-6 { grid-column: span 6; }
.callno-grid .span-8 { grid-column: span 8; }
.callno-grid .span-12 { grid-column: span 12; }
.callno-card .form-control, .callno-card .form-select { border: 1px solid #CFE3E1; border-radius: 9px; padding: .62rem .75rem; }
.callno-card select[multiple], .callno-card .js-callno-focus { min-height: 12rem; }
.callno-card .form-label { font-size: .84rem; font-weight: 700; color: #33424F; }
.callno-muted { color: #66717C; }
.callno-summary { min-height: 42px; }
.callno-summary .badge { white-space: normal; text-align: left; }
.callno-current { border: 1px solid #DDE3E2; border-radius: 10px; background: #FBFCFC; padding: .75rem; }
.callno-filter { border: 1px solid #DDE3E2; border-radius: 12px; background: #FBFCFC; padding: 1rem; }
.accordion-button { box-shadow: none !important; }
@media (max-width: 991.98px) {
  .callno-grid { grid-template-columns: 1fr; }
  .callno-grid > * { grid-column: auto !important; }
}

/* --- page_10.php — profil pemikir --- */
.pm10-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.pm10-photo { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.pm10-list { max-height: 230px; }
.pm10-card textarea { min-height: 100px; }

/* Seksyen borang */
.pm10-section { border: 1px solid var(--line,#DDE3E2); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(47,111,109,.05); }
.pm10-section-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.15rem; background: #F7FBFA; border-bottom: 1px solid #E5ECEA; cursor: pointer; user-select: none; }
.pm10-section-head::after { content: "\F282"; margin-left: auto; color: var(--primary,#2F6F6D); font-family: "bootstrap-icons"; font-size: 1rem; transition: transform .2s ease; }
.pm10-section-head.is-collapsed { border-bottom-color: transparent; }
.pm10-section-head.is-collapsed::after { transform: rotate(-90deg); }
.pm10-section-head:focus-visible { outline: 3px solid rgba(47,111,109,.35); outline-offset: -3px; }
.pm10-work-head { align-items: center; cursor: pointer; user-select: none; }
.pm10-work-head::after { content: "\F282"; margin-left: auto; color: var(--primary,#2F6F6D); font-family: "bootstrap-icons"; transition: transform .2s ease; }
.pm10-work-head.is-collapsed::after { transform: rotate(-90deg); }
.pm10-work-head:focus-visible { outline: 3px solid rgba(47,111,109,.35); outline-offset: 3px; border-radius: 6px; }
.pm10-work-body { padding-top: .25rem; }
.pm10-section-icon { width: 36px; height: 36px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--tax-cat-soft,#EAF4F3); color: var(--primary,#2F6F6D); font-size: 1.05rem; }
.pm10-section-sub { font-size: .8rem; color: #7A8A94; }
.pm10-card-body { padding: 1.15rem; }

/* Pratinjau gambar */
.pm10-image-preview { display: flex; align-items: center; justify-content: center; min-height: 100%; border: 1px dashed #CFE3E1; border-radius: 12px; background: #FBFCFC; padding: .75rem; position: relative; overflow: hidden; }
.pm10-image-preview img { max-width: 100%; max-height: 110px; border-radius: 10px; object-fit: cover; }
.pm10-image-placeholder { font-size: 2.5rem; color: #CFDCD9; }
.pm10-image-tag { position: absolute; top: .5rem; right: .5rem; font-size: .68rem; font-weight: 700; color: #fff; background: var(--primary,#2F6F6D); border-radius: 999px; padding: .15rem .5rem; }

/* Tab bahasa */
.pm10-lang-pane { animation: pm10-fade .2s ease; }
@keyframes pm10-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Checkbox sorotan */
.pm10-check-featured { display: flex; align-items: center; gap: .4rem; padding: .55rem .75rem; border: 1px solid #E5ECEA; border-radius: 10px; background: #FBFCFC; margin: 0; }

/* Bar tindakan sticky */
.pm10-sticky-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; padding: .8rem 1rem; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border: 1px solid var(--line,#DDE3E2); border-radius: 14px; box-shadow: 0 -6px 24px rgba(47,111,109,.08); }

/* Status badge berwarna */
.pm10-status { display: inline-flex; align-items: center; font-size: .66rem; font-weight: 700; letter-spacing: .02em; border-radius: 999px; padding: .1rem .45rem; text-transform: uppercase; }
.pm10-status--published { background: #E4F3E7; color: #1E7A3A; border: 1px solid #C4E6CC; }
.pm10-status--verified { background: #E3F0FB; color: #1D5C96; border: 1px solid #C2DCF2; }
.pm10-status--reviewed { background: #EAF0F8; color: #3D5B84; border: 1px solid #D2DDEC; }
.pm10-status--in_review { background: #FBF3E4; color: #A06A13; border: 1px solid #F0DFBC; }
.pm10-status--draft { background: #F1F4F3; color: #5D6B76; border: 1px solid #E3E9E7; }
.pm10-status--archived { background: #F4E9E9; color: #A03A3A; border: 1px solid #EAD2D2; }

/* --- page_10.php — mod senarai (grid kad) --- */
.pm10-toolbar { display: flex; flex-direction: column; gap: .75rem; padding: .9rem 1rem; }
.pm10-filter-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.pm10-filter-group .btn.active { background: var(--primary,#2F6F6D); border-color: var(--primary,#2F6F6D); color: #fff; }

.pm10-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.pm10-grid-card { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid #E5E9E8; border-radius: 16px; box-shadow: 0 10px 28px rgba(47,111,109,.05); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pm10-grid-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(47,111,109,.1); border-color: #CFE3E1; }
.pm10-grid-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.pm10-grid-avatar { width: 52px; height: 52px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, var(--primary,#2F6F6D), #17324D); color: #fff; font-weight: 700; font-size: 1.4rem; overflow: hidden; }
.pm10-grid-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pm10-grid-badges { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.pm10-featured { color: #E8A317; font-size: 1rem; line-height: 1; }
.pm10-grid-body { flex: 1 1 auto; }
.pm10-grid-name { font-weight: 700; color: #23333F; font-size: 1.02rem; line-height: 1.3; }
.pm10-grid-cat { display: flex; align-items: center; font-size: .8rem; color: #7A8A94; margin-top: .3rem; }
.pm10-grid-foot { display: flex; gap: .35rem; padding-top: .65rem; border-top: 1px solid #F0F3F2; }
.pm10-grid-foot .btn { width: 32px; min-width: 32px; padding: .35rem .5rem !important; border-radius: 8px; }

.pm10-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: #9AA8AC; }
.pm10-empty i { font-size: 2.5rem; display: block; margin-bottom: .5rem; }

.pm10-count { border-top: 1px solid #F0F3F2; padding-top: .65rem; }
.pm10-pagination { display: none; align-items: center; justify-content: center; gap: .35rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pm10-pagination .btn { min-width: 34px; border-radius: 8px; }

@media (max-width: 575.98px) {
  .pm10-grid { grid-template-columns: 1fr; }
}

/* --- page_11.php — import TITLEID --- */
#titleImportTable th, #titleImportTable td { font-size: 14px; }
#titleImportTable th:nth-child(2), #titleImportTable td:nth-child(2) { width: 100px; max-width: 120px; white-space: nowrap; }
#titleImportTable th:nth-child(4), #titleImportTable td:nth-child(4) { width: 75px; max-width: 75px; white-space: nowrap; }

/* --- page_12.php — status sistem --- */
.rk12-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 24px rgba(20,30,24,.05); }
.rk12-metric { padding: 1.1rem; height: 100%; }
.rk12-metric .value { font-size: 1.8rem; font-weight: 750; line-height: 1; }
.rk12-code { max-height: 420px; overflow: auto; background: #111; color: #EAF4F3; border-radius: 10px; padding: 1rem; font-size: .8rem; white-space: pre-wrap; word-break: break-word; }

/* --- page_13.php — organisasi kolaborasi --- */
.rk13-logo { width: 64px; height: 48px; object-fit: contain; border: 1px solid #DDE3E2; border-radius: 10px; background: #fff; }
.rk13-card { border: 1px solid #DDE3E2; border-radius: 20px; background: #fff; }

/* --- page_14.php — pemikiran & sumber --- */
.pm14-stat { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; background: #fff; border: 1px solid #DDE3E2; border-radius: 12px; font-size: .85rem; font-weight: 650; color: #33424F; }
.pm14-stat-num { font-size: 1.15rem; font-weight: 750; color: var(--primary,#2F6F6D); }

.pm14-lang-pane { animation: pm10-fade .2s ease; }
.pm14-multi { min-height: 140px; }

.pm14-sidebar { position: sticky; top: 1rem; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(47,111,109,.05); }
.pm14-thought-avatar { font-size: 1.25rem; }
.pm14-sidebar-list { display: flex; flex-direction: column; max-height: 70vh; overflow: auto; }
.pm14-thought-item { padding: .8rem .95rem; border-bottom: 1px solid #F0F3F2; transition: background .15s ease; }
.pm14-thought-item:hover { background: #F7FBFA; }
.pm14-thought-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.pm14-thought-title { font-weight: 650; color: #23333F; line-height: 1.35; }
.pm14-thought-thinker { font-size: .8rem; color: #7A8A94; margin-top: .15rem; }
.pm14-thought-actions { margin-top: .55rem; }
.pm14-thought-actions .btn { border-radius: 8px; }

.pm14-source-list { display: flex; flex-direction: column; gap: .5rem; max-height: 60vh; overflow: auto; }
.pm14-source-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .85rem; border: 1px solid #E5E9E8; border-radius: 12px; background: #fff; transition: border-color .15s ease; }
.pm14-source-item:hover { border-color: #CFE3E1; }
.pm14-source-main { flex: 1 1 auto; min-width: 0; }
.pm14-source-title { font-weight: 650; color: #23333F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm14-source-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .2rem; }
.pm14-source-type { font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #5D6B76; background: #F1F4F3; border-radius: 999px; padding: .1rem .45rem; }
.pm14-source-actions { display: flex; gap: .25rem; flex: 0 0 auto; }
.pm14-source-actions .btn { width: 30px; min-width: 30px; padding: .35rem .5rem !important; border-radius: 8px; }
.pm14-active { font-size: .68rem; font-weight: 700; border-radius: 999px; padding: .1rem .45rem; }
.pm14-active--on { background: #E4F3E7; color: #1E7A3A; }
.pm14-active--off { background: #F1F4F3; color: #9AA8AC; }

@media (max-width: 991.98px) {
  .pm14-sidebar { position: static; }
  .pm14-sidebar-list { max-height: none; }
  .pm14-source-list { max-height: none; }
}

/* --- page_15.php — rantaian intelektual --- */
.pm15-tabs { display: inline-flex; gap: .35rem; padding: .3rem; background: #F1F4F3; border-radius: 999px; }
.pm15-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 650; color: #5D6B76; text-decoration: none; transition: background .15s ease, color .15s ease; }
.pm15-tab:hover { color: #33424F; }
.pm15-tab.active { background: var(--primary,#2F6F6D); color: #fff; }
.pm15-tab.active:hover { color: #fff; }

@media (max-width: 575.98px) {
  .pm15-tabs { flex-wrap: wrap; }
}

/* ============================================================================
   Landing (index.php) — animasi & penambahbaikan UI/UX
   ========================================================================== */

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.reveal-in {
  opacity: 1;
  transform: none;
}
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-scale { transform: scale(.96); }
.reveal-left.reveal-in,
.reveal-right.reveal-in,
.reveal-scale.reveal-in { transform: none; }

/* Stagger delay */
.reveal-delay-1 { transition-delay: .06s; }
.reveal-delay-2 { transition-delay: .12s; }
.reveal-delay-3 { transition-delay: .18s; }
.reveal-delay-4 { transition-delay: .24s; }
.reveal-delay-5 { transition-delay: .3s; }

/* Hormati pengguna yang mahu kurangkan pergerakan */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto !important; }
}

/* --- Smooth scroll --- */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }

/* --- Hero entrance + hiasan --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #F6FAF9 0%, #FCFBF8 48%, #EEF5F3 100%) !important;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,109,.14), rgba(47,111,109,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,50,77,.10), rgba(23,50,77,0) 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-title,
.hero-copy,
.hero .identity-pill,
.hero .search-box,
.hero .btn,
.hero-board { will-change: opacity, transform; }

.hero .identity-pill { animation: heroFadeIn .6s .05s both; }
.hero-title { animation: heroFadeUp .7s .15s both; }
.hero-copy { animation: heroFadeUp .7s .28s both; }
.hero .search-box { animation: heroFadeUp .7s .4s both; }
.hero .d-flex.flex-wrap.mb-4 { animation: heroFadeUp .7s .52s both; }
.hero-board { animation: heroFadeUp .8s .3s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Feature tiles — stagger entrance + hover zoom */
.feature-tile { transition: transform .35s ease, box-shadow .35s ease; }
.feature-tile:nth-child(1) { animation: heroFadeUp .6s .34s both; }
.feature-tile:nth-child(2) { animation: heroFadeUp .6s .42s both; }
.feature-tile:nth-child(3) { animation: heroFadeUp .6s .5s both; }
.feature-tile:nth-child(4) { animation: heroFadeUp .6s .58s both; }
.feature-tile:nth-child(5) { animation: heroFadeUp .6s .66s both; }
.feature-tile:nth-child(6) { animation: heroFadeUp .6s .74s both; }
.feature-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 40px rgba(23,50,77,.16); }
.feature-tile img { transition: transform .6s ease; }
.feature-tile:hover img { transform: scale(1.06); }
.feature-tile .feature-label { transition: transform .3s ease; }
.feature-tile:hover .feature-label { transform: translateY(-3px); }

/* --- Source card dinaik taraf --- */
.source-card { position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.source-card:hover { transform: translateY(-5px); border-color: rgba(47,111,109,.45); box-shadow: 0 22px 44px rgba(23,50,77,.1); }
.source-icon {
  border-radius: 50%;
  position: relative;
  transition: transform .3s ease;
}
.source-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color .3s ease, transform .3s ease;
}
.source-card:hover .source-icon::after { border-color: rgba(47,111,109,.28); transform: scale(1.06); }
.source-card:hover .source-icon { transform: scale(1.08); }

/* --- Category card dinaik taraf --- */
.category-card { position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.category-card:hover { transform: translateY(-5px); border-color: rgba(47,111,109,.42); box-shadow: 0 22px 44px rgba(23,50,77,.12); }
.category-media { transition: box-shadow .3s ease; }
.category-card:hover .category-media img { transform: scale(1.07); }
.category-media img { transition: transform .7s ease; }

/* Badge kiraan pada kategori */
.category-count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: rgba(23,50,77,.78);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* Shine effect */
.shine {
  position: relative;
  overflow: hidden;
}
.shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
  z-index: 1;
  pointer-events: none;
}
.shine:hover::before { left: 130%; }

/* --- Rank card dinaik taraf --- */
.rank-card { transition: transform .3s ease, box-shadow .3s ease; }
.rank-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(23,50,77,.1); }
.rank-row { transition: background .18s ease; }
.rank-row:hover { background: #F7FBFA; }

/* Warna ranking (1-3) */
.rank-no { transition: background .25s ease, color .25s ease, transform .25s ease; }
.rank-row:nth-child(1) .rank-no { background: #F7E9C3; color: #9a6b00; }
.rank-row:nth-child(2) .rank-no { background: #E6E9EC; color: #5b6672; }
.rank-row:nth-child(3) .rank-no { background: #F0DCC4; color: #8a5a28; }
.rank-row:hover .rank-no { transform: scale(1.1); }

/* Progress bar untuk rekod dilihat */
.view-meter {
  height: 5px;
  border-radius: 999px;
  background: #EDF2EE;
  overflow: hidden;
  margin-top: .45rem;
}
.view-meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #2F9B92);
  width: 0;
  transition: width 1.1s cubic-bezier(.22,.61,.36,1);
}

/* --- CTA butang lift + ripple --- */
.btn-main, .btn-outline-rk {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-main:hover, .btn-outline-rk:hover { transform: translateY(-2px); }
.btn-main:active, .btn-outline-rk:active { transform: translateY(0); }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: rippleAnim .6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(3.2); opacity: 0; }
}

/* --- Alumni card dinaik taraf --- */
.alumni-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.alumni-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(23,50,77,.12); }
.alumni-photo img { transition: transform .5s ease; }
.alumni-card:hover .alumni-photo img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-copy, .hero .identity-pill, .hero .search-box,
  .hero .d-flex.flex-wrap.mb-4, .hero-board, .feature-tile {
    animation: none !important;
  }
}

/* ============================================================================
   Page_08 — Gambar kategori (thumbnail + pratonton modal)
   ========================================================================== */
.tax-node-thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 9px;
  overflow: hidden;
  background: #EAF0EE;
  display: grid;
  place-items: center;
  color: #9AA8AC;
  font-size: 1rem;
  border: 1px solid #DDE3E2;
}
.tax-node-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tax-node-thumb--empty { color: #B6C2BF; }

.tax-edit-image { align-items: flex-start !important; }
.tax-edit-image-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #DDE3E2;
  background: #F1F4F3;
  display: grid;
  place-items: center;
}
.tax-edit-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tax-edit-image-empty { color: #B6C2BF; font-size: 1.6rem; }

/* ============================================================================
   Public shell — navigation, accessibility and responsive UX
   ========================================================================== */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f9f8;
}
body > main { flex: 1 0 auto; }
.site-header {
  border-bottom: 1px solid rgba(23, 50, 77, .1);
  box-shadow: 0 8px 28px rgba(23, 50, 77, .06) !important;
  backdrop-filter: blur(14px);
}
.site-header .container { max-width: 1320px; }
.brand-lockup { min-width: 0; color: var(--navy); text-decoration: none; }
.brand-title { color: var(--navy); line-height: 1.2; transition: color .2s ease; }
.brand-lockup:hover .brand-title,
.brand-lockup:focus-visible .brand-title { color: var(--teal-dark); }
.desktop-nav { flex-wrap: nowrap !important; }
.nav-link-rk {
  position: relative;
  padding: .55rem .2rem;
  white-space: nowrap;
}
.nav-link-rk::after {
  position: absolute;
  right: .2rem;
  bottom: .25rem;
  left: .2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--terracotta);
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .2s ease, transform .2s ease;
}
.nav-link-rk:hover::after,
.nav-link-rk:focus-visible::after,
.nav-link-rk.active::after { opacity: 1; transform: scaleX(1); }
.nav-link-rk.active { border-bottom: 0 !important; }
.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
}
.mobile-menu-toggle:hover { background: #eaf4f3; color: var(--teal); }
.mobile-nav-panel .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-nav-panel .offcanvas-body { background: #f7f9f8; }
.mobile-nav-link { min-height: 50px; }
.content-card,
.profile-card,
.material-card {
  box-shadow: 0 8px 24px rgba(23, 50, 77, .045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.content-card:hover,
.material-card:hover {
  border-color: #bfd7d4;
  box-shadow: 0 14px 32px rgba(23, 50, 77, .09);
}
.home-idea-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
}
.home-idea-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  content: "";
}
.home-idea-card .idea-status {
  padding: .3rem .65rem;
  border: 1px solid #cfe3e1;
  border-radius: 999px;
  background: #eaf4f3;
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}
.home-idea-card .idea-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.home-idea-card:hover { transform: translateY(-3px); }
.thinker-hero { box-shadow: 0 22px 52px rgba(23, 50, 77, .18); }
footer { margin-top: auto; }

@media (max-width: 1199.98px) {
  .site-header .container { max-width: 100%; }
  .desktop-nav { gap: .8rem !important; }
  .nav-link-rk { font-size: .9rem; }
}
@media (max-width: 575.98px) {
  .site-header .container { padding-top: .7rem !important; padding-bottom: .7rem !important; }
  .uitm-logo { max-width: 68px; }
  .brand-kicker { font-size: .62rem; letter-spacing: .07em; }
  .brand-title { max-width: 175px; font-size: .88rem; }
  .thinker-hero { border-radius: 0; }
  .thinker-hero .display-5 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .content-card { padding: 1.1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-link-rk::after,
  .content-card,
  .profile-card,
  .material-card { transition: none !important; }
}

/* ============================================================================
   Profil pemikir — directory and long-form detail experience
   ========================================================================== */
.profile-page .profile-shell { max-width: 1240px; }
.profile-page .thinker-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.25rem) !important;
}
.profile-page .thinker-hero::after {
  position: absolute;
  z-index: -1;
  top: -45%;
  right: -8%;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  content: "";
}
.profile-page .thinker-hero .lead { max-width: 720px; }
.profile-page .thinker-hero h1,
.profile-page .thinker-hero .fw-bold { color: #fff !important; }
.profile-page .thinker-hero .lead,
.profile-page .thinker-hero .small { color: rgba(255, 255, 255, .84) !important; }
.profile-directory-toolbar {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: -1.75rem;
  padding: .75rem;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 50, 77, .11);
}
.profile-search-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 1.1rem;
}
.profile-directory-toolbar .form-control {
  min-height: 44px;
  padding: .5rem 0;
  border: 0;
  box-shadow: none !important;
  font-size: 1rem;
}
.profile-result-count {
  min-width: 72px;
  padding-right: .55rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-align: right;
}
.profile-sort-control { flex: 0 0 155px; }
.profile-sort-control .form-select {
  min-height: 44px;
  border-color: var(--line);
  border-radius: 11px;
  background-color: #F8FAF9;
  color: var(--ink);
  font-weight: 650;
}
.profile-group-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .85rem;
}
.profile-group-stat {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 92px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(23, 50, 77, .05);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.profile-group-stat:hover { transform: translateY(-2px); border-color: #9fc5c1; box-shadow: 0 12px 28px rgba(23, 50, 77, .09); }
.profile-group-stat.is-active { border-color: var(--teal); background: #EAF4F3; box-shadow: 0 0 0 3px rgba(47, 111, 109, .1); }
.profile-group-stat:focus-visible { outline: 3px solid rgba(47, 111, 109, .35); outline-offset: 2px; }
.profile-group-stat-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 1.05rem;
}
.profile-group-stat strong { display: block; color: var(--navy); font-size: 1.45rem; line-height: 1; }
.profile-group-stat > span:last-child > span { display: block; margin-top: .35rem; color: var(--ink); font-size: .82rem; line-height: 1.25; }
.profile-directory-grid { align-items: stretch; }
.profile-directory-item[hidden] { display: none !important; }
.profile-page .profile-card {
  position: relative;
  overflow: hidden;
  padding: .75rem .75rem 1.2rem !important;
  border-radius: 18px;
}
.profile-page .profile-card::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal-dark);
  content: "\2192";
  font-size: 1.15rem;
  transition: transform .2s ease, background .2s ease;
}
.profile-page .profile-card:hover::after { transform: translateX(3px); background: #cfe3e1; }
.profile-page .profile-card .profile-photo {
  border-radius: 13px;
  background: linear-gradient(145deg, #eef4f2, #e2e9e7);
}
.profile-page .profile-card h2 { max-width: calc(100% - 42px); line-height: 1.3; }
.profile-detail-page main > .btn:first-of-type {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .45rem .8rem;
  border-color: #cfe3e1 !important;
  border-radius: 999px;
  background: #fff !important;
  color: var(--teal-dark);
  font-weight: 700;
}
.profile-detail-page main > .row:first-of-type > .col-lg-4 .content-card { position: sticky; top: 98px; border-radius: 20px; }
.profile-page .detail-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
}
.profile-detail-page main > .row:first-of-type > .col-lg-8 > .content-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.profile-detail-page main > .row:first-of-type > .col-lg-8 > .content-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  content: "";
}
.profile-detail-page main > .row:first-of-type .display-6 { color: var(--navy); line-height: 1.1; }
.profile-page main > section { scroll-margin-top: 100px; }
.profile-page main > section > .d-flex:first-child,
.profile-page main > section > .small:first-child { margin-bottom: .75rem; }
.profile-page main > section > .d-flex:first-child { padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.profile-page .content-card .body-copy { max-width: 78ch; }
.profile-page .content-card h4.h6 { color: var(--navy); }
.profile-page .content-card ol { padding-left: 1.2rem; }
.thinker-timeline-card{position:relative;overflow:hidden;border-color:#d3e4df!important;background:linear-gradient(145deg,#fbfefd 0%,#f2f9f7 100%)}
.thinker-timeline-card::before{content:"";position:absolute;top:0;right:0;width:140px;height:100%;background:radial-gradient(circle at top right,rgba(47,111,109,.11),transparent 66%);pointer-events:none}
.thinker-timeline-card .section-title{position:relative;display:flex;align-items:center;gap:.55rem;padding-bottom:.7rem;border-bottom:1px solid #d7e7e2}
.thinker-timeline-card .section-title::before{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:9px;color:#fff;font-family:"bootstrap-icons";font-size:1rem}
.thinker-timeline-card--education .section-title::before{content:"\F6EA";background:#30756e}
.thinker-timeline-card--career .section-title::before{content:"\F1CC";background:#315d80}
.thinker-timeline-card--career{border-color:#d5e0e9!important;background:linear-gradient(145deg,#fcfdff 0%,#f1f6fa 100%)}
.thinker-timeline-card--career::before{background:radial-gradient(circle at top right,rgba(49,93,128,.1),transparent 66%)}
.thinker-timeline-card--career .section-title{border-bottom-color:#d8e3ec}
.thinker-timeline{position:relative;margin:1.25rem 0 0;padding:0;list-style:none}
.thinker-timeline__item{position:relative;display:grid;grid-template-columns:5.1rem minmax(0,1fr);gap:1rem;padding:0 0 1.35rem}
.thinker-timeline__item:last-child{padding-bottom:0}
.thinker-timeline__item::before{content:"";position:absolute;left:5.58rem;top:2rem;bottom:0;width:2px;background:linear-gradient(#a9ccc3,#d7e9e4)}
.thinker-timeline__item:last-child::before{display:none}
.thinker-timeline__year{position:relative;z-index:1;align-self:start;padding:.4rem .35rem;border:1px solid #9cc8bd;border-radius:10px;background:#fff;color:#17655a;font-size:.78rem;font-weight:800;line-height:1.15;text-align:center;box-shadow:0 3px 8px rgba(33,92,82,.08)}
.thinker-timeline__year::after{content:"";position:absolute;right:-1.22rem;top:.67rem;width:.7rem;height:.7rem;border:3px solid #fff;border-radius:50%;background:var(--teal);box-shadow:0 0 0 2px #99c8bb}
.thinker-timeline__content{min-height:2.35rem;padding:.48rem .65rem;border:1px solid rgba(194,217,210,.8);border-radius:10px;background:rgba(255,255,255,.76);color:#365159;line-height:1.58;box-shadow:0 4px 11px rgba(35,82,74,.04)}
.thinker-timeline-card--career .thinker-timeline__item::before{background:linear-gradient(#a9c4d8,#d9e7f0)}
.thinker-timeline-card--career .thinker-timeline__year{border-color:#aac5d8;color:#2d6288}
.thinker-timeline-card--career .thinker-timeline__year::after{background:#315d80;box-shadow:0 0 0 2px #a5c4d8}
.thinker-timeline-card--career .thinker-timeline__content{border-color:#d3e0e9;color:#3e5564}
@media(max-width:575.98px){.thinker-timeline-card{padding:1.1rem!important}.thinker-timeline__item{grid-template-columns:4.45rem minmax(0,1fr);gap:.75rem}.thinker-timeline__item::before{left:4.88rem}.thinker-timeline__year::after{right:-1.02rem}.thinker-timeline__content{padding:.42rem .55rem;font-size:.92rem}}
.profile-page .gallery-img { box-shadow: 0 10px 24px rgba(23, 50, 77, .1); transition: transform .2s ease; }
.profile-page .gallery-img:hover { transform: scale(1.015); }
.profile-page .material-card { position: relative; padding: 1.15rem !important; }
.profile-page .material-card::after { margin-left: auto; color: var(--teal); content: "\2192"; font-size: 1.15rem; }

/* Repositori pengetahuan: karya daripada rekod karya dan bahan repositori dalam satu koleksi. */
.thinker-works-section{padding:1.5rem;border:1px solid #dce7e4;border-radius:20px;background:linear-gradient(135deg,#f7fbfa 0%,#fff 58%,#f4f8f7 100%)}
.thinker-work-count{flex:0 0 auto;padding:.35rem .65rem;border:1px solid #c8dcd6;border-radius:999px;background:#fff;color:#285d59;font-size:.8rem;font-weight:700;white-space:nowrap}
.thinker-works-intro{max-width:78ch;margin:0 0 1.35rem;padding:.85rem 1rem;border-left:3px solid var(--teal);border-radius:0 10px 10px 0;background:rgba(47,111,109,.07);color:#40545a;line-height:1.6}
.thinker-work-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(154px,1fr));gap:1.65rem 1.25rem}
.thinker-work-card{display:block;color:var(--navy);text-decoration:none;min-width:0;border-radius:10px;padding:.35rem;transition:background-color .25s ease,transform .25s ease}
.thinker-book-stage{perspective:900px;padding:6px 12px 14px}
.thinker-book-cover{display:block;width:100%;aspect-ratio:2 / 3;object-fit:cover;border-radius:3px 7px 7px 3px;box-shadow:-5px 5px 0 rgba(20,42,60,.22),-9px 9px 0 rgba(20,42,60,.11),12px 16px 22px rgba(19,50,77,.24);transform:rotateY(-15deg) rotateX(2deg);transform-origin:left center;transition:transform .28s ease,box-shadow .28s ease;overflow:hidden;background:#e5ece8}
.thinker-work-card:hover,.thinker-work-card:focus-visible{background:rgba(255,255,255,.84);transform:translateY(-3px)}
.thinker-work-card:hover .thinker-book-cover,.thinker-work-card:focus-visible .thinker-book-cover{transform:rotateY(-7deg) rotateX(0) translateY(-5px);box-shadow:-5px 5px 0 rgba(20,42,60,.25),-10px 10px 0 rgba(20,42,60,.13),16px 23px 27px rgba(19,50,77,.29)}
.thinker-work-card:focus-visible{outline:3px solid var(--teal);outline-offset:4px;border-radius:6px}
.thinker-book-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;padding:1rem;background:linear-gradient(145deg,#1b4c58,#19324d);color:#fff;text-align:center;font-size:.72rem;font-weight:700;letter-spacing:.04em}
.thinker-book-placeholder .bi{font-size:2.2rem}
.thinker-book-placeholder span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-height:1.35}
.thinker-work-title{margin-top:.25rem;font-weight:700;line-height:1.32;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.thinker-work-meta{min-height:1.25rem;margin-top:.3rem;color:#63777c;font-size:.73rem;line-height:1.25;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.thinker-work-id{margin-top:.25rem;color:#61727b;font-size:.72rem;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thinker-work-meta,.thinker-work-id{display:none}
@media (max-width:575.98px){.thinker-works-section{padding:1rem}.thinker-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem .65rem}.thinker-book-stage{padding-inline:10px}.thinker-work-title{font-size:.9rem}.thinker-works-intro{font-size:.92rem}}
@media (prefers-reduced-motion:reduce){.thinker-work-card,.thinker-book-cover{transition:none}.thinker-work-card:hover,.thinker-work-card:focus-visible{transform:none}.thinker-work-card:hover .thinker-book-cover,.thinker-work-card:focus-visible .thinker-book-cover{transform:rotateY(-15deg) rotateX(2deg)}}

@media (max-width: 991.98px) {
  .profile-detail-page main > .row:first-of-type > .col-lg-4 .content-card { position: static !important; }
  .profile-page .detail-photo { max-height: 560px; }
}
@media (max-width: 575.98px) {
  .profile-page .profile-shell { padding-right: 1rem; padding-left: 1rem; }
  .profile-page .thinker-hero { margin-right: -1rem; margin-left: -1rem; padding: 2.25rem 1.25rem !important; }
  .profile-directory-toolbar { align-items: stretch; flex-wrap: wrap; margin-top: -1rem; padding: .55rem; }
  .profile-directory-toolbar .flex-grow-1 { flex-basis: calc(100% - 1rem); }
  .profile-sort-control { flex: 1 0 100%; }
  .profile-sort-control .form-select { width: 100%; }
  .profile-group-stat-grid { grid-template-columns: 1fr; }
  .profile-search-icon { display: none; }
  .profile-result-count { display: none; }
  .profile-page .profile-card { display: grid !important; grid-template-columns: 92px 1fr; column-gap: 1rem; min-height: 124px; }
  .profile-page .profile-card .profile-photo { grid-row: 1 / span 4; width: 92px; height: 116px; margin-bottom: 0 !important; aspect-ratio: auto; }
  .profile-page .profile-card::after { right: .75rem; bottom: .75rem; width: 30px; height: 30px; }
  .profile-page .profile-card h2 { max-width: calc(100% - 30px); }
}

/* ============================================================================
   Teroka pengetahuan — search, facets and result scanning
   ========================================================================== */
.discover-page .thinker-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(120deg, #17324d 0%, #245b59 68%, #2f6f6d 100%);
  box-shadow: 0 24px 54px rgba(23, 50, 77, .2);
}
.discover-page .thinker-hero::after {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -80px;
  width: 440px;
  height: 440px;
  border: 85px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  content: "";
}
.discover-page .thinker-hero h1,
.discover-page .thinker-hero .fw-bold { color: #fff !important; }
.discover-page .thinker-hero .lead,
.discover-page .thinker-hero .small { color: rgba(255, 255, 255, .84) !important; }
.discover-page .thinker-hero form {
  min-height: 60px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 16px !important;
  box-shadow: 0 18px 38px rgba(8, 26, 39, .22);
}
.discover-page .thinker-hero form .form-control { min-width: 0; font-size: 1rem; box-shadow: none; }
.discover-page .thinker-hero form .btn { min-width: 54px; border-radius: 12px; }
.discover-page .discover-shell { max-width: 1240px; }
.discover-page .discover-results { padding: 0; }
.discover-page aside .content-card {
  top: 100px !important;
  overflow: hidden;
  padding: 1.25rem !important;
  border-radius: 18px;
}
.discover-page aside .content-card > .d-flex:first-child {
  margin: -1.25rem -1.25rem 1.25rem !important;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
}
.discover-page aside h2 { color: var(--navy); font-weight: 750; }
.discover-page aside .btn-sm {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .7rem;
  border-radius: 10px;
}
.discover-page aside .btn-primary {
  border-color: var(--teal);
  background: var(--teal);
}
.discover-page aside a.small.py-1 {
  padding: .4rem .25rem !important;
  border-bottom: 1px dashed rgba(102, 113, 124, .18);
  color: var(--ink);
}
.discover-page aside a.small.py-1:hover { color: var(--teal-dark); }
.discover-page main .col-lg-9 > .d-flex:first-child {
  min-height: 62px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.discover-page main .col-lg-9 article.content-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.discover-page main .col-lg-9 article.content-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
  content: "";
  opacity: .8;
}
.discover-page main .col-lg-9 article h3 a { color: var(--navy); }
.discover-page main .col-lg-9 article h3 a:hover { color: var(--teal-dark); }
.discover-page main .col-lg-9 article .body-copy { max-width: 78ch; line-height: 1.7; }
.discover-page main .col-lg-9 article .badge { padding: .4rem .6rem; border-radius: 999px; }
.discover-page .pagination { gap: .35rem; }
.discover-page .page-link {
  min-width: 40px;
  border: 1px solid var(--line);
  border-radius: 10px !important;
  color: var(--teal-dark);
  text-align: center;
}
.discover-page .page-item.active .page-link { border-color: var(--teal); background: var(--teal); }
.discovery-filter-toggle {
  width: calc(100% - 1.5rem);
  margin: 0 .75rem;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border: 1px solid #cfe3e1;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 750;
}
.discovery-filter-toggle .filter-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: .3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: .72rem;
}
.discovery-filter-toggle .bi-chevron-down { transition: transform .2s ease; }
.discovery-filter-toggle.is-open .bi-chevron-down { transform: rotate(180deg); }

@media (max-width: 991.98px) {
  .discovery-filter-toggle { display: flex; }
  .discover-page aside .content-card { position: static !important; margin-top: .75rem; }
  .discover-page aside[hidden] { display: none !important; }
}
@media (max-width: 575.98px) {
  .discover-page .discover-shell { padding-top: 0 !important; }
  .discover-page .thinker-hero { margin-right: -1rem; margin-left: -1rem; padding: 2.5rem 1.25rem !important; border-radius: 0; }
  .discover-page .thinker-hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .discover-page .thinker-hero form { min-height: 54px; }
  .discover-page .discover-results { padding-top: 0 !important; }
  .discover-page main .col-lg-9 > .d-flex:first-child { align-items: flex-start !important; }
  .discover-page main .col-lg-9 article.content-card > .d-flex { flex-direction: column; }
  .discover-page main .col-lg-9 article.content-card > .d-flex > .text-center { display: flex; align-items: center; gap: .4rem; text-align: left !important; }
  .discover-page main .col-lg-9 article.content-card > .d-flex > .text-center .bi { display: inline-block !important; font-size: 1rem !important; }
}

/* ============================================================================
   Halaman utama — landing hierarchy, repository overview and mobile browsing
   ========================================================================== */
.home-page .hero {
  border: 0 !important;
  border-radius: 0 !important;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem) !important;
}
.home-page .hero-title { max-width: 760px; text-wrap: balance; }
.home-page .hero-copy { max-width: 700px; }
.home-page .search-box {
  max-width: 830px;
  padding: .65rem;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(23, 50, 77, .1);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.home-page .search-box:focus-within {
  border-color: rgba(47, 111, 109, .55);
  box-shadow: 0 20px 50px rgba(23, 50, 77, .14), 0 0 0 4px rgba(47, 111, 109, .08);
}
.home-page .search-box .form-control,
.home-page .search-box .form-select { min-height: 52px; border-radius: 11px; }
.home-page .search-box .btn { min-height: 52px; border-radius: 11px; }
.home-page .hero-board {
  padding: .65rem;
  border: 1px solid rgba(47, 111, 109, .13);
  border-radius: 20px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 24px 54px rgba(23, 50, 77, .1);
  backdrop-filter: blur(10px);
}
.home-page .feature-tile { border-radius: 14px; }
.home-page .feature-tile:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.home-stats { position: relative; z-index: 3; margin-top: -2.1rem; }
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 50, 77, .1);
}
.home-stat {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .85rem;
  padding: 1.15rem 1.25rem;
}
.home-stat + .home-stat { border-left: 1px solid var(--line); }
.home-stat > i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 1.05rem;
}
.home-stat strong { display: block; overflow: hidden; color: var(--navy) !important; font-size: 1.25rem; line-height: 1.15; text-overflow: ellipsis; }
.home-stat span { display: block; margin-top: .2rem; color: var(--muted); font-size: .78rem; }
.home-manifesto { padding: clamp(2.25rem, 5vw, 4.5rem) 0 0; }
.home-manifesto-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  overflow: hidden;
  border: 1px solid rgba(47, 111, 109, .25);
  border-left: 6px solid var(--teal);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(224, 167, 66, .18), transparent 24%),
    linear-gradient(135deg, #fff 0%, #f1f8f6 72%, #edf5f3 100%);
  box-shadow: 0 24px 60px rgba(23, 50, 77, .13), 0 3px 0 rgba(47, 111, 109, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.home-manifesto-card:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(23, 50, 77, .17), 0 3px 0 rgba(47, 111, 109, .1); }
.home-manifesto-card::before {
  position: absolute;
  top: 0;
  left: 18%;
  width: 54%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), #e0a742, transparent);
  content: "";
}
.home-manifesto-card::after {
  position: absolute;
  right: -1.5rem;
  bottom: -4.8rem;
  color: rgba(47, 111, 109, .07);
  content: "\201D";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15rem;
  line-height: 1;
  pointer-events: none;
}
.home-manifesto-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--teal-dark));
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(23, 50, 77, .22), 0 0 0 7px rgba(47, 111, 109, .08);
}
.home-manifesto blockquote { position: relative; z-index: 1; }
.home-manifesto blockquote p {
  max-width: 850px;
  margin: 0;
  color: var(--navy) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}
.home-manifesto blockquote p strong {
  position: relative;
  color: var(--navy) !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(224, 167, 66, .65);
  text-decoration-thickness: .18em;
  text-underline-offset: .14em;
}
.home-manifesto figcaption { margin-top: 1rem; color: var(--teal-dark); font-size: .92rem; font-weight: 800; letter-spacing: .04em; }
.home-manifesto cite { font-style: normal; }
.home-page main > section { padding-top: clamp(3.5rem, 7vw, 5.5rem) !important; padding-bottom: clamp(3.5rem, 7vw, 5.5rem) !important; }
.home-page main > section .section-title { max-width: 780px; text-wrap: balance; }
.home-page .category-card { border-radius: 16px; }
.home-page .category-media { overflow: hidden; }
.home-page .category-body { min-height: 112px; }
.home-page .alumni-card,
.home-page .rank-card { border-radius: 16px; }
.home-page .rank-card { overflow: hidden; padding: 1.25rem; }
.home-page footer { border-top: 4px solid var(--teal); }

@media (max-width: 991.98px) {
  .home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .home-stat:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 767.98px) {
  .home-page .hero-board {
    display: flex;
    gap: .75rem;
    margin-right: -1rem;
    padding: .5rem 1rem .85rem .1rem;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-padding-left: .1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .home-page .feature-tile,
  .home-page .feature-tile:first-child { min-width: min(74vw, 300px); min-height: 180px; scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
  .home-page .hero { padding-top: 2.5rem !important; padding-bottom: 3.5rem !important; }
  .home-page .hero-title { font-size: clamp(2.2rem, 11vw, 3.1rem) !important; }
  .home-page .search-box { padding: .55rem; border-radius: 14px; }
  .home-stats { margin-top: -1.35rem; }
  .home-stats-grid { grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .home-stat { align-items: flex-start; gap: .55rem; padding: .85rem .7rem; }
  .home-stat > i { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; font-size: .9rem; }
  .home-stat strong { font-size: 1rem; }
  .home-stat span { font-size: .7rem; line-height: 1.3; }
  .home-manifesto { padding-top: 1.75rem; }
  .home-manifesto-card { grid-template-columns: 1fr; gap: .8rem; padding: 1.35rem 1.2rem; border-radius: 14px; }
  .home-manifesto-mark { width: 42px; height: 42px; font-size: 1.25rem; }
  .home-manifesto blockquote p { font-size: 1.13rem; line-height: 1.55; }
  .home-page main > section .d-flex.justify-content-between > .btn { width: 100%; }
  .home-page #kategori .row.g-4 {
    flex-wrap: nowrap;
    margin-right: -.75rem;
    overflow-x: auto;
    scroll-padding-left: .75rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .home-page #kategori .row.g-4 > [class*="col-"] { width: 84vw; max-width: 330px; flex: 0 0 auto; scroll-snap-align: start; }
}

/* ============================================================================
   Kolaborasi — strategic partners and shared material discovery
   ========================================================================== */
.collaboration-page #main-content { max-width: 1240px; }
.collaboration-page .collab-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 0;
  border-radius: 24px;
  background: linear-gradient(125deg, #17324d 0%, #245b59 66%, #2f6f6d 100%);
  box-shadow: 0 24px 54px rgba(23, 50, 77, .2);
}
.collaboration-page .collab-hero::after {
  position: absolute;
  z-index: -1;
  top: -155px;
  right: -60px;
  width: 390px;
  height: 390px;
  border: 75px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  content: "";
}
.collaboration-page .collab-hero .title-main,
.collaboration-page .collab-hero h1,
.collaboration-page .collab-hero .fw-bold { color: #fff !important; }
.collaboration-page .collab-hero .body-copy { max-width: 760px; color: rgba(255, 255, 255, .82) !important; font-size: 1.03rem; }
.collaboration-page .collab-hero > .row { position: relative; z-index: 1; }
.collaboration-page .collab-hero .chip {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .11);
  color: #fff;
}
.collaboration-page .collab-hero .meta-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  box-shadow: 0 14px 30px rgba(8, 26, 39, .16);
  backdrop-filter: blur(10px);
}
.collaboration-page .collab-hero .meta-value.collab-metric-value {
  color: var(--navy) !important;
  -webkit-text-fill-color: var(--navy);
  font-weight: 800 !important;
  line-height: 1.05;
  text-shadow: none;
}
.collaboration-page .collab-hero .meta-label,
.collaboration-page .collab-hero .meta-label span { color: var(--teal-dark) !important; }

/* ============================================================================
   Naratif gagasan — halaman khusus untuk sebuah idea dan perjalanannya
   ========================================================================== */
.idea-page .idea-shell { max-width: 1180px; }
.idea-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.25rem, 5.5vw, 5rem);
  border-radius: 24px;
  background:
    radial-gradient(1100px 500px at 88% -12%, rgba(237, 195, 106, .18), transparent 55%),
    linear-gradient(120deg, #17324d 0%, #245b59 68%, #2f6f6d 100%);
  box-shadow: 0 24px 54px rgba(23, 50, 77, .2);
  color: #fff;
}
.idea-hero::before,
.idea-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.idea-hero::before {
  top: -190px;
  right: -95px;
  width: 470px;
  height: 470px;
  border: 78px solid rgba(255, 255, 255, .06);
}
.idea-hero::after {
  bottom: -130px;
  left: -70px;
  width: 300px;
  height: 300px;
  border: 46px solid rgba(255, 255, 255, .045);
}
.idea-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.idea-hero-body { max-width: 820px; }
.idea-hero h1 {
  max-width: 760px;
  color: #fff !important;
  font-size: clamp(2.15rem, 4.4vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.idea-hero .lead {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .9) !important;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 400;
  line-height: 1.75;
}
.idea-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .85rem;
  border: 1px solid rgba(237, 195, 106, .4);
  border-radius: 999px;
  background: rgba(237, 195, 106, .12);
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.idea-kicker i { color: #edc36a; }
.idea-hero-ornament {
  flex: 0 0 auto;
  display: grid;
  width: clamp(104px, 12vw, 150px);
  height: clamp(104px, 12vw, 150px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: rgba(237, 195, 106, .9);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .04), 0 20px 40px rgba(8, 26, 39, .25);
  animation: idea-float 6s ease-in-out infinite;
}
.idea-hero-ornament i {
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(237, 195, 106, .45));
  animation: idea-glow 3s ease-in-out infinite;
}
@keyframes idea-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes idea-glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(237, 195, 106, .25));
    transform: scale(1);
    opacity: .78;
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(237, 195, 106, .75));
    transform: scale(1.12);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .idea-hero-ornament,
  .idea-hero-ornament i { animation: none; }
}
.idea-story { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.15rem; border-radius: 20px; }
.idea-story h2 { color: var(--navy); font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.idea-section-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #eaf4f3; color: var(--teal-dark); font-size: 1.2rem; }
.idea-timeline { position: relative; display: grid; gap: 1rem; margin-left: .55rem; padding-left: 1.75rem; border-left: 2px solid #cfe3e1; }
.idea-timeline-item { position: relative; padding: 1.35rem 1.45rem; border-radius: 18px; }
.idea-timeline-dot { position: absolute; top: 1.55rem; left: -2.19rem; width: .9rem; height: .9rem; border: 3px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px #cfe3e1; }
.idea-timeline-item h3 { color: var(--navy); }
.idea-impact { display: flex; gap: .75rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px; background: #f1f8f6; color: var(--ink); }
.idea-impact > i { color: #c48119; }
.idea-aside { position: sticky; top: 98px; }
.idea-aside .content-card { border-radius: 18px; }
.idea-aside h2 { color: var(--teal-dark); font-size: .77rem; font-weight: 850; letter-spacing: .07em; }
.idea-tag { padding: .3rem .6rem; border: 1px solid #cfe3e1; border-radius: 999px; background: #eaf4f3; color: var(--teal-dark); font-size: .78rem; font-weight: 700; }
.idea-context-card { border-left: 4px solid var(--teal) !important; }
.idea-sources { border-radius: 20px; }
.idea-sources li::marker { color: var(--teal); font-weight: 800; }

@media (max-width: 991.98px) {
  .idea-aside { position: static; }
}
@media (max-width: 575.98px) {
  .idea-page .idea-shell { padding-top: 0 !important; }
  .idea-hero { margin-right: -1rem; margin-left: -1rem; padding: 2.5rem 1.25rem; border-radius: 0; }
  .idea-hero-inner { flex-direction: column; align-items: flex-start; }
  .idea-hero-ornament {
    display: none;
  }
  .idea-story { grid-template-columns: 1fr; gap: .8rem; }
  .idea-timeline { margin-left: .3rem; padding-left: 1.35rem; }
  .idea-timeline-dot { left: -1.78rem; }
}
.collaboration-page #main-content > section:not(.collab-hero) { scroll-margin-top: 100px; }
.collaboration-page #main-content > section:not(.collab-hero) > .d-flex:first-child,
.collaboration-page #main-content > section:not(.collab-hero) > .mb-3:first-child {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.collaboration-page .section-title { color: var(--navy) !important; }
.collab-filter-bar {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: .75rem;
  padding: .4rem .55rem .4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 50, 77, .055);
  color: var(--teal-dark);
}
.collab-filter-bar:focus-within { border-color: rgba(47, 111, 109, .55); box-shadow: 0 0 0 4px rgba(47, 111, 109, .08); }
.collab-filter-bar .form-control { min-width: 0; border: 0; box-shadow: none !important; }
.collab-filter-count { min-width: 68px; color: var(--muted); font-size: .78rem; font-weight: 700; text-align: right; }
.collaboration-page .collab-org-card {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 1rem;
  border-radius: 16px;
}
.collaboration-page .collab-org-card::after {
  position: absolute;
  right: 1rem;
  bottom: .8rem;
  color: var(--teal);
  content: "\2192";
  font-size: 1.15rem;
  transition: transform .2s ease;
}
.collaboration-page .collab-org-card:hover::after { transform: translateX(3px); }
.collaboration-page .collab-org-card.active {
  border-color: var(--teal);
  background: linear-gradient(120deg, #fff, #eef7f5);
}
.collaboration-page .collab-org-card.active::before {
  position: absolute;
  top: .65rem;
  right: .65rem;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  content: "\2713";
  font-size: .72rem;
  font-weight: 800;
}
.collaboration-page .collab-logo { width: 78px; height: 72px; flex: 0 0 78px; border-radius: 12px; }
.collaboration-page .collab-material-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem !important;
  border-radius: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.collaboration-page .collab-material-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
  content: "";
}
.collaboration-page .collab-material-card:hover { transform: translateY(-3px); border-color: #bfd7d4; box-shadow: 0 18px 40px rgba(23, 50, 77, .1); }
.collaboration-page .collab-material-card h2 a { color: var(--navy) !important; }
.collaboration-page .collab-material-card h2 a:hover { color: var(--teal-dark) !important; }
.collaboration-page .collab-cover { overflow: hidden; border-radius: 14px; background: #eef2f1; }
.collaboration-page .collab-cover img { transition: transform .35s ease; }
.collaboration-page .collab-material-card:hover .collab-cover img { transform: scale(1.035); }
.collaboration-page .collab-role { display: inline-flex; padding: .2rem .45rem; border-radius: 999px; background: var(--soft); color: var(--teal-dark); }

@media (max-width: 767.98px) {
  .collaboration-page #main-content { padding-top: 1rem !important; }
  .collaboration-page .collab-hero { margin-right: -.75rem; margin-left: -.75rem; padding: 2.25rem 1.25rem; border-radius: 0; }
  .collaboration-page .collab-hero .meta-card { min-height: 96px; }
  .collaboration-page .collab-logo { width: 64px; height: 62px; flex-basis: 64px; }
  .collab-filter-bar { padding-left: .75rem; }
  .collab-filter-count { display: none; }
}
@media (max-width: 575.98px) {
  .collaboration-page .collab-material-card > .d-flex { flex-direction: row; }
  .collaboration-page .collab-cover { width: 88px; min-width: 88px; }
  .collaboration-page .collab-material-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
}

/* ============================================================================
   PROFIL PEMIKIR — penambahbaikan UI/UX (detail + direktori)
   Halus & profesional, mengekalkan identiti jenama UiTM (teal/navy)
   ========================================================================== */

/* ---------- 1. Bar kemajuan bacaan (reading progress) ---------- */
.rk-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1035;
  width: 100%;
  height: 3px;
  pointer-events: none;
}
.rk-progress-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  box-shadow: 0 0 8px rgba(47, 111, 109, .45);
  transition: width .08s linear;
}

/* ---------- 2. Kad metrik statistik tokoh (detail) ---------- */
.profile-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.25rem 0 0;
}
.profile-metric {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--rk-surface-soft, #FCFBF8);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.profile-metric:hover {
  transform: translateY(-2px);
  border-color: #cfe3e1;
  box-shadow: 0 10px 24px rgba(23, 50, 77, .07);
}
.profile-metric > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 1.05rem;
}
.profile-metric .pm-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--muted);
  line-height: 1.2;
}
.profile-metric .pm-value {
  display: block;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  font-size: .94rem;
  overflow-wrap: anywhere;
}
@media (max-width: 575.98px) {
  .profile-metric-strip { grid-template-columns: 1fr 1fr; }
  .profile-metric { padding: .7rem .75rem; }
}

/* ---------- 3. Jadual kandungan (TOC) profil ---------- */
.profile-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 50, 77, .06);
}
.profile-toc__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 .25rem .65rem;
  margin-bottom: .4rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.profile-toc__title i { color: var(--teal); }
.profile-toc__link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  border-left: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.profile-toc__link i { font-size: .95rem; color: var(--teal-dark); width: 16px; text-align: center; }
.profile-toc__link:hover { background: var(--soft); color: var(--navy); }
.profile-toc__link.is-active {
  background: var(--soft);
  color: var(--teal-dark);
  border-left-color: var(--teal);
  font-weight: 700;
}

/* ---------- 4. Tabs seksyen kandungan panjang ---------- */
.profile-tabs-nav {
  display: flex;
  gap: .35rem;
  padding: .3rem;
  margin: 1.5rem 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--rk-surface-soft, #FCFBF8);
  scrollbar-width: thin;
}
.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .95rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.profile-tab i { font-size: .95rem; }
.profile-tab:hover { color: var(--navy); background: rgba(47, 111, 109, .07); }
.profile-tab.active {
  background: var(--teal);
  color: #fff;
}
.profile-tab-pane { display: none; }
.profile-tab-pane.is-active { display: block; animation: profileTabFade .28s ease; }
@keyframes profileTabFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 5. Butang back-to-top terapung ---------- */
.rk-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  font-size: 1.1rem;
  box-shadow: 0 12px 28px rgba(23, 50, 77, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.rk-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.rk-back-to-top:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- 6. Header detail: pemisah & hierarki lebih jelas ---------- */
.profile-detail-page .display-6 { letter-spacing: -.01em; }
.profile-detail-page main > .row:first-of-type .lead {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--muted);
}
.profile-detail-page .section-title {
  position: relative;
  padding-bottom: .45rem;
  margin-bottom: .9rem;
}
.profile-detail-page .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

/* ---------- 7. Seksyen kandungan: tajuk lebih konsisten ---------- */
.profile-page main > section h2.h3,
.profile-page main > section h2.h4 {
  color: var(--navy);
  font-weight: 750;
}
.profile-page main > section > .small.text-uppercase {
  font-weight: 750;
  letter-spacing: .04em;
  color: var(--teal-dark);
}

/* ---------- 8. Kad pemikiran & gagasan: aksen halus ---------- */
.profile-page .content-card h3.h5 { color: var(--navy); line-height: 1.3; }
.profile-page .content-card .border-top { border-color: var(--line) !important; }

/* Pemikiran utama: satu rekod bagi setiap baris, ditutup secara lalai */
.profile-thought-accordion {
  display: grid;
  width: 100%;
  gap: .85rem;
}
.profile-thought-accordion .accordion-item {
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 50, 77, .045);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.profile-thought-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: #bfd7d4;
  box-shadow: 0 14px 32px rgba(23, 50, 77, .09);
}
.profile-thought-accordion .accordion-button {
  min-height: 76px;
  padding: 1rem 1.2rem !important;
  background: #fff;
  color: var(--navy);
  box-shadow: none !important;
  text-transform: none;
}
.profile-thought-accordion .accordion-button::before {
  width: 4px;
  align-self: stretch;
  margin: -.15rem .9rem -.15rem -.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
  content: "";
}
.profile-thought-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, rgba(47, 111, 109, .07), rgba(47, 111, 109, .025));
  color: var(--navy);
}
.profile-thought-accordion .accordion-button:focus-visible {
  outline: 3px solid rgba(47, 111, 109, .32);
  outline-offset: -3px;
}
.profile-thought-heading {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: .4rem;
  padding-right: .75rem;
}
.profile-thought-title {
  color: var(--navy);
  font-size: 1.04rem;
  font-weight: 750;
  line-height: 1.35;
}
.profile-thought-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .85rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}
.profile-thought-meta span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
}
.profile-thought-meta i { color: var(--teal); }
.profile-thought-accordion .accordion-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--rk-surface-soft, #FCFBF8);
}
.profile-thought-summary {
  max-width: 90ch;
  padding: .9rem 1rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: var(--soft);
}
.profile-thought-detail {
  max-width: 90ch;
  padding: .65rem 0;
}
.profile-thought-detail + .profile-thought-detail { border-top: 1px dashed var(--line); }
.profile-thought-detail h4 { color: var(--navy); font-weight: 750; }
.profile-thought-sources { max-width: 90ch; }

@media (max-width: 575.98px) {
  .profile-thought-accordion .accordion-button { min-height: 68px; padding: .85rem .9rem !important; }
  .profile-thought-accordion .accordion-button::before { margin-left: -.35rem; margin-right: .65rem; }
  .profile-thought-accordion .accordion-body { padding: 1rem; }
  .profile-thought-title { font-size: .96rem; }
}

/* ---------- 9. Direktori: bar carian & kiraan lebih mesra ---------- */
.profile-directory-toolbar .form-control { font-weight: 500; }
.profile-directory-toolbar .form-control::placeholder { color: #a8b3b0; }

/* ---------- 10. Empty & not-found states ---------- */
.profile-page .content-card.p-5.text-center { border-radius: 18px; }

/* Mod sistem gelap — kandungan kekal pada permukaan cerah dengan teks hitam */
@media (prefers-color-scheme: dark) {
  .profile-toc,
  .profile-tabs-nav,
  .profile-metric,
  .rk-back-to-top,
  .profile-thought-accordion .accordion-item,
  .profile-thought-accordion .accordion-button { background: #fff; border-color: #DDE3E2; }
  .profile-toc__title { color: #000; border-color: #DDE3E2; }
  .profile-toc__link { color: #000; }
  .profile-toc__link:hover,
  .profile-toc__link.is-active { background: #F2F6F5; color: #000; }
  .profile-tab { color: #000; }
  .profile-tab:hover { color: #000; }
  .profile-metric .pm-value { color: #000; }
  .rk-back-to-top { color: #000; }
  .profile-metric > i { background: #F2F6F5; }
  .profile-thought-title,
  .profile-thought-accordion .accordion-button:not(.collapsed),
  .profile-thought-detail h4 { color: #000; }
  .profile-thought-accordion .accordion-button:not(.collapsed),
  .profile-thought-accordion .accordion-body { background: #FCFBF8; }
  .profile-thought-accordion .accordion-body { border-color: #DDE3E2; }
  .profile-thought-summary { background: #F2F6F5; }
}

/* Penanda visual konsisten untuk semua dropdown pilihan tunggal. */
select:not([multiple]):not([size]),
select.form-select:not([multiple]):not([size]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23245B59' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .85rem center !important;
  background-size: 16px 12px !important;
}

.pm10-gallery-existing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.pm10-gallery-existing-item {
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.pm10-gallery-existing-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: .75rem;
  border-radius: 9px;
  object-fit: cover;
}

/* Galeri gagasan (page_15) — paparan lebih kecil & kemas */
.pm15-idea-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
}
.pm15-idea-gallery .pm10-gallery-existing-item {
  display: flex;
  flex-direction: column;
  padding: .6rem;
  border-radius: 10px;
  background: var(--rk-surface-soft);
  border: 1px solid var(--line);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pm15-idea-gallery .pm10-gallery-existing-item:hover {
  border-color: #bfd7d4;
  box-shadow: 0 6px 16px rgba(23, 50, 77, .08);
}
.pm15-idea-gallery .pm15-gallery-thumb {
  position: relative;
  margin-bottom: .6rem;
}
.pm15-idea-gallery .pm10-gallery-existing-item img {
  width: 100%;
  height: 90px;
  aspect-ratio: auto;
  margin-bottom: 0;
  border-radius: 7px;
  object-fit: cover;
}
.pm15-idea-gallery .pm15-gallery-badge {
  position: absolute;
  top: .4rem;
  left: .4rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(19, 57, 40, .28);
}
.pm15-idea-gallery .pm10-gallery-existing-item .form-check {
  font-size: .82rem;
}
.pm15-idea-gallery .pm10-gallery-existing-item .form-label {
  font-size: .78rem;
}
