/* ============================================================
   Universitas Iqra Buru (Uniqbu) — Front-end design system
   Identity: royal blue + Iqra gold. Maritime, modern, academic.
   Built from scratch for Uniqbu (no UMI/FAI green-gold heritage).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand:        #1653b8;   /* royal blue */
  --brand-dark:   #0d3a86;   /* deep navy-blue */
  --brand-2:      #2c80d3;   /* bright sky blue */
  --primary:      #1653b8;
  --link:         #1857c0;
  --gold:         #f5b71d;   /* Iqra gold */
  --gold-deep:    #d99a06;
  --accent:       var(--gold);
  --teal:         #10b5ad;

  /* Surfaces (light) */
  --bg:           #f4f7fc;
  --bg-alt:       #eaf1fb;
  --surface:      #ffffff;
  --paper:        #ffffff;
  --border:       #e2e9f4;
  --line:         #edf1f8;
  --ghost:        #f0f5fd;

  /* Text */
  --text:         #14213d;
  --text-soft:    #5a6b88;
  --text-mute:    #8493ac;

  /* Shape */
  --container:    1200px;
  --radius-sm:    9px;
  --radius:       16px;
  --radius-lg:    24px;

  /* Elevation (blue-tinted) */
  --shadow-sm:    0 1px 2px rgba(16,42,90,.06), 0 1px 3px rgba(16,42,90,.05);
  --shadow:       0 6px 20px -6px rgba(20,53,120,.16), 0 2px 8px rgba(20,53,120,.06);
  --shadow-lg:    0 24px 60px -18px rgba(13,42,110,.32);

  /* Type */
  --font:         'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head:    'Plus Jakarta Sans', var(--font);
  --transition:   .22s cubic-bezier(.4, 0, .2, 1);

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, #0d3a86 0%, #1653b8 55%, #2c80d3 100%);
  --grad-gold:    linear-gradient(135deg, #f5b71d, #ffcf4d);
}

:root[data-theme="dark"] {
  --bg:        #0a1526;
  --bg-alt:    #0e1c33;
  --surface:   #10203a;
  --paper:     #132745;
  --border:    #1e355c;
  --line:      #1a2f52;
  --ghost:     #142a4b;
  --text:      #e9eff9;
  --text-soft: #a8bad6;
  --text-mute: #7387a8;
  --brand:     #3f82e0;
  --brand-2:   #58a0f0;
  --link:      #6aa6ff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow:    0 8px 26px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  --grad-brand: linear-gradient(135deg, #0a1e3e 0%, #123163 55%, #1d4d97 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0a1526; --bg-alt:#0e1c33; --surface:#10203a; --paper:#132745; --border:#1e355c;
    --line:#1a2f52; --ghost:#142a4b; --text:#e9eff9; --text-soft:#a8bad6; --text-mute:#7387a8;
    --brand:#3f82e0; --brand-2:#58a0f0; --link:#6aa6ff;
    --shadow-sm:0 1px 2px rgba(0,0,0,.3); --shadow:0 8px 26px -8px rgba(0,0,0,.55);
    --shadow-lg:0 30px 70px -20px rgba(0,0,0,.7);
    --grad-brand:linear-gradient(135deg,#0a1e3e 0%,#123163 55%,#1d4d97 100%);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.18; font-weight: 800; color: var(--text); letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.22rem; }
ul, ol { padding-left: 1.1rem; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; }
.gap { gap: .55rem; }
.full { width: 100%; }
.mono { font-family: 'Inter', ui-monospace, monospace; letter-spacing: .01em; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2);
  margin-bottom: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad-gold); }
.section-head.center .eyebrow { justify-content: center; }
.lede { color: var(--text-soft); font-size: 1.08rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 10px;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); box-shadow: var(--shadow-sm); }
.topbar { background: var(--grad-brand); color: #dce9ff; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.topbar-info a { color: #fff; }
.topbar-info a:hover { color: var(--gold); }
.topbar-social { display: flex; gap: .35rem; }
.topbar-social a {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  color: #cfe0ff; background: rgba(255,255,255,.09); transition: var(--transition);
}
.topbar-social a:hover { background: var(--gold); color: #14213d; transform: translateY(-1px); }

.navbar { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.brand > span { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; color: var(--brand-dark); line-height: 1.08; letter-spacing: -.02em; }
.brand > span small { font-family: var(--font); font-weight: 500; font-size: .68rem; color: var(--text-mute); letter-spacing: .02em; text-transform: uppercase; }
:root[data-theme="dark"] .brand > span { color: #eaf1ff; }

.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; padding: 0; margin: 0 auto 0 1rem; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: .3rem; padding: .6rem .85rem; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .94rem; color: var(--text);
  white-space: nowrap;
}
.nav-item > a:hover, .nav-item > a.active { color: var(--brand); background: var(--ghost); }
.nav-item.has-children > a::after { content: "▾"; font-size: .7rem; opacity: .6; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; list-style: none; padding: .5rem; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); z-index: 50;
}
.submenu::before { content: ""; position: absolute; top: -6px; left: 24px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.nav-item.has-children:hover > .submenu, .nav-item.has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: .55rem .8rem; border-radius: 9px; font-size: .9rem; font-weight: 500; color: var(--text-soft); }
.submenu li a:hover { background: var(--ghost); color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border);
  background: var(--surface); border-radius: 11px; font-size: 1.05rem; color: var(--text); transition: var(--transition);
}
.icon-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }
.nav-toggle { display: none; }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: .35rem; height: 42px; padding: 0 .8rem;
  border: 1px solid var(--border); background: var(--surface); border-radius: 11px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--text);
}
.lang-btn:hover { border-color: var(--brand); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; list-style: none; padding: .4rem; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); z-index: 60;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li a { display: block; padding: .5rem .7rem; border-radius: 9px; font-size: .9rem; color: var(--text-soft); }
.lang-menu li a:hover, .lang-menu li a.active { background: var(--ghost); color: var(--brand); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .btn--primary, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  background: var(--brand); color: #fff;
}
.btn:hover, .btn--primary:hover, .btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--gold, .btn-gold { background: var(--grad-gold); color: #17223c; border-color: transparent; }
.btn--gold:hover, .btn-gold:hover { color: #17223c; filter: brightness(1.04); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(245,183,29,.6); }
.btn--ghost, .btn-ghost {
  background: transparent; color: var(--brand); border-color: var(--border);
}
.btn--ghost:hover, .btn-ghost:hover { border-color: var(--brand); background: var(--ghost); color: var(--brand); transform: translateY(-2px); box-shadow: none; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-danger:hover { background: #c93b40; color: #fff; }
.btn--sm, .btn-sm { padding: .5rem 1rem; font-size: .84rem; }
.btn--lg, .btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block, .btn--block { width: 100%; }

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .02em;
  background: var(--ghost); color: var(--brand); border: 1px solid var(--border);
}
.badge--gold, .badge-gold { background: rgba(245,183,29,.16); color: var(--gold-deep); border-color: rgba(245,183,29,.4); }
.badge-published { background: rgba(16,181,109,.14); color: #0a8f52; border-color: rgba(16,181,109,.35); }
.badge-muted { background: var(--ghost); color: var(--text-mute); }
.badge-auto { background: rgba(44,128,211,.14); color: var(--brand-2); border: none; font-size: .62rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text-soft);
  transition: var(--transition);
}
.chip:hover, .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { position: relative; background: var(--grad-brand); color: #fff; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.4px, transparent 1.4px);
  background-size: 26px 26px; opacity: .5; -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 70%); mask-image: linear-gradient(to bottom right, #000, transparent 70%);
}
.hero::after { content: ""; position: absolute; right: -160px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(245,183,29,.35), transparent 68%); filter: blur(6px); }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-lede { color: #d5e3fb; font-size: 1.14rem; max-width: 46ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img, .hero-og img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.hero-og { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.hero-og__shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--surface); color: var(--text);
  border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.hero-badge b { font-family: var(--font-head); font-size: 2rem; color: var(--brand); line-height: 1; }
.hero-badge span { font-size: .78rem; color: var(--text-soft); font-weight: 600; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -3.5rem; position: relative; z-index: 5; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.2rem;
  text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--grad-gold); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--brand); line-height: 1; margin-bottom: .3rem; }
.stat span { font-size: .86rem; color: var(--text-soft); font-weight: 600; }

/* ============================================================
   GRIDS + CARDS
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card, .article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover, .article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--ghost); }
.card-media img, .card-media picture { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-cat { position: absolute; top: .8rem; left: .8rem; background: rgba(22,83,184,.92); color: #fff; padding: .3rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 700; font-family: var(--font-head); backdrop-filter: blur(4px); }
.card-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-mute); font-weight: 500; }
.card-body h3 { font-size: 1.1rem; line-height: 1.3; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { color: var(--text-soft); font-size: .92rem; }
.card-foot { margin-top: auto; padding-top: .3rem; }
.card-link { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--brand); display: inline-flex; align-items: center; gap: .35rem; }
.card-link::after { content: "→"; transition: transform var(--transition); }
.card-link:hover::after, .card:hover .card-link::after { transform: translateX(4px); }

/* Program / Faculty card */
.prog-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem;
  display: flex; flex-direction: column; gap: .3rem; transition: var(--transition); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.prog-card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--grad-brand); transform: scaleY(0); transform-origin: top; transition: transform var(--transition); }
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.prog-card:hover::before { transform: scaleY(1); }
.prog-card h3 { font-size: 1.12rem; color: var(--text); }
.prog-card:hover h3 { color: var(--brand); }
.prog-icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); margin-bottom: .9rem; box-shadow: var(--shadow-sm); padding: 5px; overflow: hidden; }
.prog-icon img { width: 100%; height: 100%; object-fit: contain; filter: none !important; }

.mini-post { display: flex; gap: .8rem; align-items: center; padding: .5rem 0; }
.mini-post img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mini-post h4 { font-size: .9rem; line-height: 1.35; }

/* ============================================================
   PAGE HERO / BREADCRUMB
   ============================================================ */
.page-hero { background: var(--grad-brand); color: #fff; padding-block: clamp(2.6rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.4px, transparent 1.4px); background-size: 24px 24px; opacity: .5; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #d5e3fb; max-width: 60ch; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }

.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .85rem 0; margin: 0; font-size: .86rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; color: var(--text-mute); }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--border); }
.breadcrumb a { color: var(--text-soft); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }

/* ============================================================
   PROSE (article body)
   ============================================================ */
.prose { color: var(--text); font-size: 1.04rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { font-size: 1.28rem; margin-top: 1.6rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.prose img { border-radius: var(--radius); margin-block: 1.4rem; box-shadow: var(--shadow); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-block: .35rem; }
.prose blockquote { border-left: 4px solid var(--gold); background: var(--bg-alt); padding: 1rem 1.3rem; border-radius: 0 12px 12px 0; font-style: italic; color: var(--text-soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--ghost); font-family: var(--font-head); }
.prose figure { margin-block: 1.4rem; }
.article-hero img, .article-hero picture { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============================================================
   FACULTY / PROGRAM DETAIL
   ============================================================ */
.prodi-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.prodi-main { min-width: 0; }
.prodi-side { display: flex; flex-direction: column; gap: 1.3rem; position: sticky; top: 96px; }
.prodi-block { margin-top: 2rem; }
.prodi-h { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin-bottom: 1rem; }
.prodi-ic { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--ghost); color: var(--brand); font-size: 1.1rem; }
.vmts-item { margin-bottom: 1.4rem; }

.prodi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.prodi-card .widget-list { margin: 0; }
.prodi-card-head { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--line); color: var(--text); }
.prodi-facts { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.prodi-facts li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .5rem; font-size: .9rem; padding-bottom: .7rem; border-bottom: 1px dashed var(--line); }
.prodi-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-ic { font-size: 1.05rem; }
.pf-label { color: var(--text-soft); }
.prodi-facts b { text-align: right; color: var(--text); font-family: var(--font-head); }
.prodi-facts b a { color: var(--brand); }

.prodi-head-card { display: flex; gap: 1rem; align-items: center; background: var(--grad-brand); color: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.prodi-head-card--text { display: block; }
.prodi-head-photo { width: 66px; height: 66px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid rgba(255,255,255,.35); }
.prodi-head-photo img, .prodi-head-photo picture { width: 100%; height: 100%; object-fit: cover; }
.prodi-head-info { display: flex; flex-direction: column; gap: .1rem; }
.prodi-head-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.prodi-head-info b { font-family: var(--font-head); font-size: 1.02rem; }
.prodi-head-role, .prodi-head-nidn { font-size: .8rem; color: #cfe0ff; }

/* Program tabs */
.ptab-nav { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; }
.ptab-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.1rem; border: none; background: transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text-soft); border-radius: 10px 10px 0 0;
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition);
}
.ptab-btn:hover { color: var(--brand); background: var(--ghost); }
.ptab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.ptab-panel { display: none; animation: fadeIn .3s ease; }
.ptab-panel.active { display: block; }

.prodi-cta { background: var(--grad-brand); color: #fff; margin-top: 3rem; padding-block: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.prodi-cta::after { content: ""; position: absolute; left: -100px; bottom: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(245,183,29,.3), transparent 68%); }
.prodi-cta-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.prodi-cta h2 { color: #fff; }
.prodi-cta p { color: #d5e3fb; }
.prodi-cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ============================================================
   STAFF
   ============================================================ */
.staff-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm); }
.staff-card--link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.staff-photo { aspect-ratio: 1; overflow: hidden; background: var(--grad-brand); }
.staff-photo img, .staff-photo picture { width: 100%; height: 100%; object-fit: cover; }
.photo-logo, .noimg { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad-brand); }
.photo-logo img, .noimg img { width: 58% !important; height: auto !important; aspect-ratio: 1 !important; max-width: 120px; object-fit: contain !important; background: #fff; border-radius: 50%; padding: 12px; filter: none; opacity: 1; box-shadow: 0 6px 18px rgba(8,20,50,.22); }
.noimg-glow { display: none; }
.staff-body { padding: 1.1rem; }
.staff-body h3 { font-size: 1rem; }
.staff-role { font-size: .82rem; color: var(--brand); font-weight: 600; margin-top: .2rem; }
.staff-nidn { font-size: .76rem; color: var(--text-mute); }
.staff-more { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--brand); font-weight: 700; margin-top: .6rem; }

/* ============================================================
   EVENTS
   ============================================================ */
.event-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.event-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.event-date-big { background: var(--grad-brand); color: #fff; padding: 1rem; text-align: center; }
.event-date-big b { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.event-date-big span { font-size: .78rem; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.event-tile-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.event-tile-body h3 { font-size: 1rem; line-height: 1.35; }
.event-loc { font-size: .82rem; color: var(--text-soft); }

/* ============================================================
   WIDGETS / SIDEBAR
   ============================================================ */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.widget h3, .widget-title { font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--line); }
.widget-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.widget-list li { border-bottom: 1px dashed var(--line); }
.widget-list li:last-child { border-bottom: 0; }
.cat-link { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; color: var(--text-soft); font-weight: 500; }
.cat-link:hover { color: var(--brand); padding-left: .3rem; }
.cat-link.active { color: var(--brand); font-weight: 700; }
.cat-count { background: var(--ghost); color: var(--text-mute); font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0a1a33; color: #b7c7e0; padding-top: clamp(3rem, 5vw, 4.5rem); }
:root[data-theme="dark"] .site-footer { background: #060f1e; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { font-size: .9rem; margin-top: 1rem; line-height: 1.7; }
.footer-logo { height: 56px; width: auto; }
.footer-brand .footer-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.footer-social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.07); color: #cfe0ff; transition: var(--transition); }
.footer-social a:hover { background: var(--gold); color: #14213d; transform: translateY(-2px); }
.site-footer h5 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: .01em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #b7c7e0; font-size: .9rem; }
.footer-links a:hover { color: var(--gold); padding-left: .25rem; }
.footer-contact li { font-size: .88rem; display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact a { color: #b7c7e0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: #8ba0c2; }
.footer-bottom a { color: var(--gold); }

/* ============================================================
   PAGER / SHARE
   ============================================================ */
.pager { display: flex; justify-content: center; margin-top: 2.5rem; }
/* CI pager markup: .pager > ul.pagination > li > a */
.pagination { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; padding: 0; margin: 0; }
.pagination li { display: block; }
.pagination li a,
.pager > a, .pager > span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .85rem; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); font-family: var(--font-head); font-weight: 700;
  font-size: .92rem; color: var(--text-soft); transition: var(--transition); text-decoration: none;
}
.pagination li a:hover, .pager > a:hover { background: var(--ghost); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); transform: translateY(-1px); }
.pagination li.active a, .pagination li [aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-sm); }
.pagination li.active a:hover { transform: none; }

.share-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); transition: var(--transition); }
.share-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.share-btn.copied { background: #10b56d; color: #fff; border-color: #10b56d; }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 1.1rem; }
.field label, .field-label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--text); }
.field input, .field textarea, .field select, .form-grid input, .form-grid textarea, .form-grid select,
.contact-form input, .contact-form textarea, .contact-form select,
input[type=text], input[type=email], input[type=search], input[type=tel], input[type=url],
input[type=number], input[type=password], input[type=date], input[type="datetime-local"], input[type=time],
textarea, select {
  width: 100%; padding: .75rem .95rem; border: 1.5px solid var(--border); border-radius: 11px; background: var(--surface);
  font-family: inherit; font-size: .95rem; color: var(--text); transition: var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus, input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,83,184,.14); outline: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; }
.checkbox-row input { width: auto; }
.hint { font-size: .8rem; color: var(--text-mute); margin-top: .3rem; }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: flex-start; transition: var(--transition); }
.contact-card:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); box-shadow: var(--shadow); }
.contact-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex-shrink: 0; font-size: 1.2rem; }
.contact-card b { font-family: var(--font-head); display: block; margin-bottom: .15rem; color: var(--text); }
.contact-card p { color: var(--text-soft); font-size: .9rem; margin: 0; line-height: 1.55; }
.contact-card a { color: var(--brand); }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.contact-map iframe { display: block; width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.2rem); position: sticky; top: 96px; }
.contact-form-wrap > h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; margin-bottom: 1.4rem; padding-bottom: .9rem; border-bottom: 2px solid var(--line); }
.contact-form-wrap > h2::before { content: "✉️"; }
.contact-form { display: flex; flex-direction: column; gap: 1.05rem; }
.contact-form > label { display: block; }
.contact-form label > span { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: .4rem; color: var(--text); }
.contact-form input, .contact-form textarea { width: 100%; margin: 0; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.captcha-row img { flex-shrink: 0; box-shadow: var(--shadow-sm); }
.contact-form .btn { margin-top: .3rem; justify-content: center; }

/* Flash / alerts */
.flash, .alert { padding: .9rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 500; border: 1px solid; }
.flash-success, .alert-success { background: rgba(16,181,109,.1); border-color: rgba(16,181,109,.35); color: #0a8f52; }
.flash-error, .alert-error { background: rgba(229,72,77,.1); border-color: rgba(229,72,77,.35); color: #c93b40; }

/* ============================================================
   ACCESSIBILITY WIDGET + BACK TO TOP
   ============================================================ */
.a11y { position: fixed; left: 18px; bottom: 18px; z-index: 90; }
#a11yFab, .a11y-fab { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--grad-brand); color: #fff; font-size: 1.4rem; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: var(--transition); }
#a11yFab:hover { transform: scale(1.08); }
.a11y-panel { position: absolute; left: 0; bottom: 64px; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); }
.a11y.open .a11y-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.a11y-opt { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .6rem .7rem; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; font-size: .84rem; color: var(--text); text-align: left; margin-bottom: .4rem; transition: var(--transition); }
.a11y-opt:hover { border-color: var(--brand); }
.a11y-opt.active { background: var(--brand); color: #fff; border-color: var(--brand); }

#toTop { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--grad-gold); color: #17223c; font-size: 1.2rem; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); }
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { transform: translateY(-3px); }

/* Accessibility body toggles */
.a11y-contrast { filter: contrast(1.35); }
.a11y-grayscale { filter: grayscale(1); }
.a11y-links a { text-decoration: underline !important; }
.a11y-readable, .a11y-readable * { font-family: Verdana, Tahoma, sans-serif !important; }
.a11y-spacing p, .a11y-spacing li { letter-spacing: .04em; word-spacing: .12em; line-height: 2 !important; }
.a11y-cursor, .a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%231653b8' d='M6 2l20 12-9 2 5 11-4 2-5-11-7 6z'/%3E%3C/svg%3E"), auto; }

/* ============================================================
   MISC / ANIMATIONS / TABLES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.empty { text-align: center; color: var(--text-mute); padding: 2rem; }

/* ============================================================
   HOME — Uniqbu-specific sections
   ============================================================ */
/* Sambutan Rektor */
.rector { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center; }
.rector-photo { position: relative; }
.rector-photo img, .rector-photo picture { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.rector-photo::before { content: ""; position: absolute; inset: -14px -14px 20px 20px; border: 3px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.rector-sign { position: absolute; right: -14px; bottom: 14px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--grad-gold); border-radius: 50%; font-size: 1.4rem; box-shadow: var(--shadow); }
.rector-body h2 { margin: .2rem 0 1rem; }
.rector-quote { font-size: 1.16rem; line-height: 1.7; color: var(--text-soft); font-style: italic; border-left: 4px solid var(--gold); padding-left: 1.2rem; margin-bottom: 1.3rem; }
.rector-name { margin-bottom: 1.3rem; }
.rector-name b { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--brand); }
.rector-name span { font-size: .9rem; color: var(--text-mute); }

/* Layanan Unggulan / Tridharma */
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; transition: var(--transition); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--grad-brand); transform: scaleX(0); transition: transform var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.service-card:hover::after { transform: scaleX(1); }
.service-ic { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: var(--grad-brand); font-size: 2rem; margin-bottom: .5rem; box-shadow: var(--shadow); }
.service-card h3 { font-size: 1.16rem; }
.service-card p { color: var(--text-soft); font-size: .92rem; }
.service-card .card-link { margin-top: .5rem; }

/* Pengumuman + Agenda columns */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.announce-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.announce-list a { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; transition: var(--transition); box-shadow: var(--shadow-sm); }
.announce-list a:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: var(--shadow); }
.announce-date { flex-shrink: 0; width: 54px; height: 54px; border-radius: 12px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; align-content: center; text-align: center; }
.announce-date b { font-family: var(--font-head); font-size: 1.3rem; line-height: 1; }
.announce-date small { font-size: .66rem; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.announce-title { font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--text); line-height: 1.4; }

/* ============================================================
   DETAIL PAGES — news / announcements / events
   ============================================================ */
.post-hero { background: var(--grad-brand); color: #fff; padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(5rem, 9vw, 8rem); position: relative; overflow: hidden; }
.post-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.4px, transparent 1.4px); background-size: 24px 24px; opacity: .5; }
.post-hero::after { content: ""; position: absolute; right: -140px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(245,183,29,.28), transparent 68%); }
.post-hero .container { position: relative; z-index: 2; }
.post-hero .crumbs, .dosen-hero .crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .84rem; margin-bottom: 1.2rem; color: #cfe0ff; padding: 0; }
.post-hero .crumbs a, .dosen-hero .crumbs a { color: #eaf2ff; }
.post-hero .crumbs a:hover, .dosen-hero .crumbs a:hover { color: var(--gold); }
.post-hero .crumbs li, .dosen-hero .crumbs li { list-style: none; display: flex; gap: .5rem; align-items: center; }
.post-hero .crumbs li:not(:last-child)::after, .dosen-hero .crumbs li:not(:last-child)::after { content: "/"; opacity: .5; }
.post-hero ol.crumbs { padding: 0; margin: 0 0 1.2rem; }
.post-cat { display: inline-flex; align-items: center; gap: .35rem; background: var(--grad-gold); color: #17223c; font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.post-hero h1 { color: #fff; font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; width: 100%; margin-bottom: 1.1rem; text-wrap: balance; }
.post-hero .article-meta { color: #cfe0ff; }

.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 500; background: rgba(255,255,255,.12); padding: .35rem .75rem; border-radius: 999px; }
.post-body { padding-top: 0; margin-top: clamp(-4rem, -6vw, -5.5rem); position: relative; z-index: 3; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 2.2rem; align-items: start; }
.article { min-width: 0; }
.article-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 0; }
.article-figure img, .article-figure picture { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.6rem); margin-top: -3.5rem; position: relative; }
.article-figure + .article-body { margin-top: -3.5rem; }
.article:not(:has(.article-figure)) .article-body, .article-body:first-child { margin-top: 0; }

.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share-bar strong { font-family: var(--font-head); font-size: .9rem; margin-right: .3rem; }
.share-wa, .share-fb, .share-x, .share-tg { color: #fff !important; border: none !important; }
.share-wa { background: #25d366 !important; }
.share-fb { background: #1877f2 !important; }
.share-x  { background: #111 !important; }
.share-tg { background: #29a9eb !important; }
.share-bar a { transition: var(--transition); }
.share-bar a:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: var(--shadow); }

.related-section { margin-top: 3rem; }
.related-section > h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; margin-bottom: 1.5rem; }
.related-section > h2::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: var(--grad-gold); }

.sidebar { display: flex; flex-direction: column; gap: 1.3rem; position: sticky; top: 96px; }
.sidebar .widget h4 { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: .5rem; }
.sidebar .widget h4::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--grad-brand); }
.sidebar .widget-list li { border-bottom: 1px dashed var(--line); padding: .3rem 0; }
.sidebar .widget-list li:last-child { border-bottom: 0; }
.mini-post b a { color: var(--text); font-family: var(--font-head); font-size: .9rem; line-height: 1.35; display: block; }
.mini-post b a:hover { color: var(--brand); }
.mini-post span { font-size: .76rem; color: var(--text-mute); }
.mini-post img { border-radius: 10px; }

/* Event detail specifics */
.event-hero-inner { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.event-bigdate { flex-shrink: 0; width: 92px; height: 92px; border-radius: var(--radius); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); display: grid; place-content: center; text-align: center; color: #fff; }
.event-bigdate b { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; }
.event-bigdate span { font-size: .78rem; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: -2.5rem 0 1.8rem; position: relative; z-index: 4; }
.event-fact { display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.event-fact-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.15rem; }
.event-fact small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); font-weight: 700; }
.event-fact b { font-family: var(--font-head); font-size: .96rem; color: var(--text); }
.event-map { margin-top: 1.75rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.event-date-badge { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background: var(--grad-brand); color: #fff; display: grid; place-content: center; text-align: center; }
.event-date-badge b { font-family: var(--font-head); font-size: 1.2rem; line-height: 1; }
.event-date-badge span { font-size: .64rem; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ============================================================
   LECTURER / STAFF DETAIL
   ============================================================ */
.dosen-hero { background: var(--grad-brand); color: #fff; padding: clamp(2.4rem, 4vw, 3.4rem) 0 clamp(5rem, 9vw, 7rem); position: relative; overflow: hidden; }
.dosen-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.4px, transparent 1.4px); background-size: 24px 24px; opacity: .5; }
.dosen-hero::after { content: ""; position: absolute; right: -140px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(245,183,29,.28), transparent 68%); }
.dosen-hero .container { position: relative; z-index: 2; }
.dosen-hero-inner { display: grid; grid-template-columns: 190px 1fr auto; gap: 2rem; align-items: center; }
.dosen-hero-photo { width: 190px; height: 230px; border-radius: var(--radius); overflow: hidden; border: 4px solid rgba(255,255,255,.3); box-shadow: var(--shadow-lg); background: rgba(255,255,255,.1); }
.dosen-hero-photo img, .dosen-hero-photo picture, .dosen-hero-photo .photo-logo, .dosen-hero-photo .noimg { width: 100%; height: 100%; object-fit: cover; }
.dosen-hero-info .eyebrow { color: var(--gold); }
.dosen-hero-info .eyebrow::before { background: var(--gold); }
.dosen-hero-info h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.dosen-position { color: #dbe8ff; font-size: 1.05rem; font-weight: 500; margin-bottom: 1rem; }
.dosen-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.dosen-meta li { display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: #eaf2ff; }
.dosen-meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.dosen-meta a:hover { color: var(--gold); }
.dosen-expertise { font-size: .95rem; color: #eaf2ff; margin-bottom: 1rem; }
.dosen-expertise .de-label { font-family: var(--font-head); font-weight: 700; color: var(--gold); }
.dosen-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.dosen-links .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.dosen-links .chip:hover { background: var(--gold); color: #17223c; border-color: var(--gold); }
.dosen-scores { display: flex; flex-direction: column; gap: .8rem; }
.ds-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 1rem 1.4rem; text-align: center; min-width: 120px; }
.ds-pill b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; }
.ds-pill span { font-size: .72rem; color: #dbe8ff; }

.post-body .dosen-layout, .dosen-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 2.2rem; align-items: start; margin-top: clamp(-4rem, -6vw, -5rem); position: relative; z-index: 3; }
.dosen-layout--full { grid-template-columns: 1fr; }
.dosen-main { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.4rem); }
.dosen-side { display: flex; flex-direction: column; gap: 1.3rem; position: sticky; top: 96px; }
.dosen-block { margin-bottom: 2rem; }
.dosen-h { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin-bottom: 1.1rem; }
.dosen-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--ghost); color: var(--brand); font-size: 1.05rem; }

/* Profile summary card (shown when SINTA/rich data is absent) */
.dosen-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dp-item { display: flex; gap: .8rem; align-items: center; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.dp-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.1rem; }
.dp-item small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); font-weight: 700; }
.dp-item b { font-family: var(--font-head); font-size: .95rem; color: var(--text); }
.dosen-note { display: flex; gap: .8rem; align-items: flex-start; background: rgba(245,183,29,.09); border: 1px solid rgba(245,183,29,.32); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--text-soft); font-size: .92rem; }

/* Metric cards */
.metric-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.metric-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.mc-head { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.mc-badge { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: .8rem; font-weight: 800; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mc-stat b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--brand); line-height: 1; }
.mc-stat span { font-size: .74rem; color: var(--text-mute); }

/* Education timeline / publications / certifications */
.edu-timeline { list-style: none; padding: 0; margin: 0; }
.edu-tl-item { display: flex; gap: 1rem; padding: 0 0 1.2rem 1.2rem; border-left: 2px solid var(--line); position: relative; }
.edu-tl-item::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.edu-tl-level { flex-shrink: 0; font-family: var(--font-head); font-weight: 800; color: var(--gold-deep); background: rgba(245,183,29,.14); padding: .1rem .6rem; border-radius: 6px; height: fit-content; font-size: .8rem; }
.edu-tl-body b { display: block; font-family: var(--font-head); }
.edu-tl-field { font-size: .85rem; color: var(--text-soft); }
.cert-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.cert-list li { display: flex; gap: .6rem; padding: .7rem .9rem; background: var(--bg-alt); border-radius: 10px; font-size: .92rem; }
.cert-list li::before { content: "📜"; }
.pub-list { list-style: none; padding: 0; margin: 0; counter-reset: pub; display: flex; flex-direction: column; gap: 1rem; }
.pub-item { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.pub-title { font-family: var(--font-head); font-weight: 700; color: var(--text); }
a.pub-title:hover { color: var(--brand); }
.pub-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; font-size: .8rem; }
.pub-badge { background: var(--ghost); color: var(--text-soft); padding: .12rem .55rem; border-radius: 999px; font-weight: 700; }
.pub-count { background: var(--brand); color: #fff; font-size: .68rem; padding: .05rem .45rem; border-radius: 999px; margin-left: .2rem; }
.sync-note { font-size: .8rem; color: var(--text-mute); margin-top: 1rem; }

/* Other-lecturers mini list */
.staff-mini { display: flex; gap: .8rem; align-items: center; padding: .5rem 0; }
.staff-mini-photo { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--grad-brand); }
.staff-mini-photo img, .staff-mini-photo picture, .staff-mini-photo .photo-logo, .staff-mini-photo .noimg { width: 100%; height: 100%; object-fit: cover; }
.staff-mini-info b { display: block; font-family: var(--font-head); font-size: .9rem; color: var(--text); line-height: 1.3; }
.staff-mini:hover .staff-mini-info b { color: var(--brand); }
.staff-mini-info small { font-size: .76rem; color: var(--text-mute); }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm); }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; display: block; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6,20,44,.28); transition: var(--transition); }
.video-card:hover .video-play { background: rgba(6,20,44,.12); }
.video-play svg { filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); transition: transform var(--transition); }
.video-card:hover .video-play svg { transform: scale(1.1); }
.video-title { padding: 1rem 1.2rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--text); }
.video-card:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* Single-row sliders (video / news / leadership) */
.video-slider-wrap, .slider-wrap { position: relative; }
.video-slider, .slider-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem .2rem 1rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.video-slider::-webkit-scrollbar, .slider-track::-webkit-scrollbar { height: 8px; }
.video-slider::-webkit-scrollbar-track, .slider-track::-webkit-scrollbar-track { background: transparent; }
.video-slider::-webkit-scrollbar-thumb, .slider-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.slider-track > * { scroll-snap-align: start; }
.video-slider .video-card { flex: 0 0 clamp(270px, 31%, 360px); scroll-snap-align: start; }
.slider-track--news > * { flex: 0 0 clamp(290px, 32%, 380px); }
.slider-track--lead > * { flex: 0 0 clamp(190px, 23%, 250px); }
.vslide-btn { position: absolute; top: calc(50% - 2.2rem); transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--brand); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 6; cursor: pointer; transition: var(--transition); }
.vslide-btn:hover:not(:disabled) { background: var(--brand); color: #fff; transform: translateY(-50%) scale(1.06); }
.vslide-btn:disabled { opacity: .3; cursor: default; box-shadow: var(--shadow-sm); }
.vslide-prev { left: -16px; }
.vslide-next { right: -16px; }
@media (max-width: 640px) {
  .video-slider .video-card { flex-basis: 84%; }
  .vslide-btn { display: none; }
}

/* ============================================================
   STAFF / LEADERSHIP LISTING
   ============================================================ */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem; }
.staff-grid--lead { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Rektor spotlight */
.lead-hero { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.6rem; margin-top: -4.5rem; margin-bottom: 2.5rem; position: relative; z-index: 4; overflow: hidden; }
.lead-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,183,29,.16), transparent 70%); }
.lead-hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); border: 3px solid var(--gold); }
.lead-hero-photo img, .lead-hero-photo picture { width: 100%; height: 100%; object-fit: cover; }
.lead-hero-info { position: relative; z-index: 2; }
.lead-hero-label { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); background: rgba(245,183,29,.14); padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem; }
.lead-hero-info h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: .3rem; color: var(--brand-dark); }
:root[data-theme="dark"] .lead-hero-info h2 { color: #eaf2ff; }
.lead-hero-info p { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 1.2rem; }

.lead-subhead { display: flex; align-items: center; gap: .7rem; font-size: 1.4rem; margin-bottom: 1.5rem; }
.lead-subhead span { width: 6px; height: 26px; border-radius: 3px; background: var(--grad-gold); }

/* Leadership card tweaks (name = role) */
.staff-grid--lead .staff-card { text-align: center; }
.staff-grid--lead .staff-photo { aspect-ratio: 3/3.4; }
.staff-grid--lead .staff-body h3 { font-size: 1rem; line-height: 1.3; }
.staff-grid--lead .staff-role { color: var(--text-mute); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; }

/* Lecturer filter bar */
.staff-filter { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.sf-search { position: relative; flex: 1; min-width: 200px; display: flex; align-items: center; }
.sf-search svg { position: absolute; left: .8rem; color: var(--text-mute); }
.sf-search input { padding-left: 2.5rem; margin: 0; }
.sf-prodi { width: auto; min-width: 190px; margin: 0; }
.staff-filter .btn { margin: 0; }
.staff-count { color: var(--text-soft); font-size: .92rem; margin-bottom: 1.2rem; }
.staff-count b { color: var(--brand); font-family: var(--font-head); }

/* Two-column content + sidebar layout (news/kategori/pages listing) */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.2rem; align-items: start; }
.news-grid { align-items: start; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .prodi-layout, .article-layout, .dosen-layout, .layout { grid-template-columns: 1fr; }
  .prodi-side, .sidebar, .dosen-side { position: static; }

  /* Card rows marked .mslide become swipeable sliders on tablet & phone.
     (Home sections opt in; listing pages stay normal wrapping grids.) */
  .mslide {
    display: flex; grid-template-columns: none; gap: 1.1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: .9rem; scroll-padding-inline: .2rem;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  .mslide > * {
    flex: 0 0 46%; min-width: 0; scroll-snap-align: start;
    opacity: 1 !important; transform: none !important;
  }
  .mslide::-webkit-scrollbar { height: 7px; }
  .mslide::-webkit-scrollbar-track { background: transparent; }
  .mslide::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

  /* Ordinary listing grids simply reduce their column count. */
  .grid--4:not(.mslide) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid--3:not(.mslide) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--2:not(.mslide), .grid--3:not(.mslide), .grid--4:not(.mslide) { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dosen-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .dosen-hero-photo { width: 170px; height: 205px; }
  .dosen-meta, .dosen-links, .dosen-hero-info .eyebrow { justify-content: center; }
  .dosen-scores { flex-direction: row; }
  .dosen-main, .article-body { padding: 1.3rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); flex-direction: column; align-items: stretch;
    background: var(--surface); box-shadow: var(--shadow-lg); padding: 5rem 1.2rem 2rem; margin: 0; gap: .2rem;
    transform: translateX(100%); transition: transform var(--transition); overflow-y: auto; z-index: 120;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-item > a { padding: .85rem 1rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--border); border-radius: 0; margin-left: .8rem; padding-left: .5rem; }
  .submenu::before { display: none; }
  .nav-item.has-children > .submenu { display: none; }
  .nav-item.has-children.open > .submenu { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 480px; }
  .hero-badge { left: auto; right: -8px; bottom: -16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar { display: none; }   /* declutter small screens; info repeats in footer */
  .rector { grid-template-columns: 1fr; gap: 2rem; }
  .rector-photo { max-width: 300px; }
  .info-cols { grid-template-columns: 1fr; gap: 2rem; }
  .lead-hero { grid-template-columns: 1fr; text-align: center; }
  .lead-hero-photo { max-width: 240px; margin: 0 auto; }
  .lead-hero-label { margin-inline: auto; }
  .prodi-cta-inner, .section-head[style*="space-between"] { flex-direction: column; align-items: flex-start; }
  .video-slider .video-card { flex-basis: 78%; }
  .slider-track--news > * { flex: 0 0 80%; }
  .slider-track--lead > * { flex: 0 0 46%; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .contact-form-wrap { position: static; }
}
@media (max-width: 600px) {
  .mslide > * { flex-basis: 82%; }
  .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat { padding: 1.1rem .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .prodi-cta-inner { flex-direction: column; align-items: flex-start; }
  .video-slider .video-card { flex-basis: 86%; }
  .slider-track--lead > * { flex: 0 0 60%; }
  h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section { padding-block: clamp(2.2rem, 8vw, 3.2rem); }
  .form-grid, .form-row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .prodi-cta-actions, .hero-actions { width: 100%; }
  .prodi-cta-actions .btn, .hero-actions .btn { flex: 1; justify-content: center; }
  /* Compact header: logo-only on phones so all action buttons fit */
  .navbar { gap: .4rem; min-height: 60px; flex-wrap: nowrap; }
  .brand { gap: .5rem; min-width: 0; flex-shrink: 1; }
  .brand img { height: 40px; }
  .brand > span { display: none; }
  .nav-actions { gap: .25rem; flex-shrink: 0; margin-left: auto; }
  .icon-btn { width: 36px; height: 36px; border-radius: 10px; font-size: .95rem; }
  .lang-btn { width: auto; min-width: 36px; height: 36px; border-radius: 10px; padding: 0 .4rem; font-size: .72rem; white-space: nowrap; }
  /* Keep the hero stat badge inside the viewport */
  .hero-badge { position: static; margin: .9rem auto 0; width: fit-content; flex-direction: row; align-items: center; gap: .7rem; padding: .7rem 1.1rem; }
  .hero-badge b { font-size: 1.6rem; }
}
