/* ═══════════════════════════════════════════
   PROGRAM STUDI PAGE STYLES - ITSI THEME
   Based on template prodi-bdp.html
═══════════════════════════════════════════ */

/* DESIGN SYSTEM VARIABLES */
:root {
  --ink: #010D1E; --navy: #04162E; --deep: #08274F; --royal: #0C3D7A;
  --cobalt: #1459B3; --azure: #1E72D4; --cerulean: #3B9AE8; --sky: #75C0F5;
  --pale: #BAE0FF; --frost: #E3F2FF; --surface: #F2F7FF; --white: #FFFFFF;
  --gold: #BF9B30; --gold-lt: #E8C558; --gold-dim: rgba(191,155,48,.15);
  --tx-dark: #030E1E; --tx-body: #162740; --tx-mid: #385270; --tx-soft: #6880A0;
  --gw: rgba(255,255,255,.05); --gb: rgba(255,255,255,.10); --gs: rgba(255,255,255,.18);
  --ease: cubic-bezier(.22,1,.36,1); --max: 1380px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px;
  --shadow-sm: 0 2px 12px rgba(12,61,122,.07);
  --shadow-md: 0 8px 32px rgba(12,61,122,.11);
  --shadow-lg: 0 18px 56px rgba(12,61,122,.16);
}

/* ANIMATIONS */
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

/* BASE STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--white);
  color: var(--tx-body);
  overflow-x: hidden;
  line-height: 1.65;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.8rem);
}

.sec-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: block;
  margin-bottom: .55rem;
}

.sec-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 2.7vw, 2.6rem);
  font-weight: 700;
  color: var(--tx-dark);
  line-height: 1.12;
}

.sec-title em {
  font-style: italic;
  color: var(--azure);
}

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.rv.on {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: .05s; }
.d2 { transition-delay: .12s; }
.d3 { transition-delay: .19s; }
.d4 { transition-delay: .26s; }
.d5 { transition-delay: .33s; }
.d6 { transition-delay: .40s; }

/* ─── PAGE HERO ─── */
#prodi-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(4.5rem, 9vh, 7.5rem) 0 clamp(3rem, 5.5vh, 5rem);
}

.prodi-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 55% 35%, rgba(12,61,122,.5), transparent 65%),
              radial-gradient(ellipse 35% 45% at 8% 85%, rgba(8,39,79,.65), transparent 55%),
              linear-gradient(170deg, var(--ink) 0%, var(--navy) 100%);
}

.prodi-hero-dots {
  position: absolute;
  inset: 0;
  opacity: .025;
  background-image: radial-gradient(circle, rgba(117,192,245,1) 1px, transparent 1px);
  background-size: 44px 44px;
}

.prodi-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.prodi-b1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(20,89,179,.2), transparent 70%);
  top: -15%;
  right: -5%;
  animation: floatA 13s ease-in-out infinite;
}

.prodi-b2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(8,39,79,.3), transparent 70%);
  bottom: -8%;
  left: 2%;
  animation: floatB 10s ease-in-out infinite;
}

.prodi-hero-inner {
  position: relative;
  z-index: 2;
}

.prodi-bc {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  color: rgba(255,255,255,.38);
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}

.prodi-bc a {
  transition: color .2s;
}

.prodi-bc a:hover {
  color: rgba(255,255,255,.82);
}

.prodi-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.07;
  margin-bottom: .85rem;
}

.prodi-title em {
  font-style: italic;
  color: var(--gold-lt);
}

.prodi-subtitle {
  font-size: .96rem;
  color: rgba(255,255,255,.54);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 1.7rem;
}

.prodi-chips {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.prodi-chip {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .88rem;
  border-radius: 30px;
  background: var(--gw);
  border: 1px solid var(--gb);
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 600;
}

.prodi-stats {
  display: grid;
  gap: .85rem;
}

.prodi-stat {
  background: rgba(10,38,88,.58);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 15px;
  padding: 1.1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.prodi-stat-n {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cerulean);
  line-height: 1;
}

.prodi-stat-l {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
  margin-top: .28rem;
}

/* ─── MAIN LAYOUT ─── */
.main-bg {
  background: var(--surface);
  padding: clamp(2.5rem, 4.5vw, 4.5rem) 0;
}

.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.4rem;
  align-items: start;
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: sticky;
  top: 84px;
}

.side-card {
  background: #fff;
  border: 1px solid #CEE2FF;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.side-head {
  background: linear-gradient(135deg, var(--navy), var(--royal));
  padding: 1rem 1.25rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.side-nav {
  padding: .45rem .45rem .2rem;
}

.side-btn {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  border-radius: var(--r-sm);
  color: var(--tx-mid);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  line-height: 1.3;
}

.side-btn:hover {
  background: var(--frost);
  color: var(--royal);
}

.side-btn.on {
  background: linear-gradient(135deg, var(--cobalt), var(--azure));
  color: #fff;
  box-shadow: 0 4px 16px rgba(20,89,179,.28);
}

.side-sep {
  height: 1px;
  background: #D4E8FF;
  margin: .35rem .75rem;
}

.side-akred {
  margin: .75rem .9rem;
  background: linear-gradient(135deg, rgba(191,155,48,.09), rgba(232,197,88,.06));
  border: 1px solid rgba(191,155,48,.2);
  border-radius: var(--r-md);
  padding: .85rem;
  text-align: center;
}

.sa-lbl {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .25rem;
}

.sa-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.sa-sub {
  font-size: .67rem;
  color: var(--tx-soft);
  margin-top: .22rem;
}

.side-pmb {
  margin: .75rem .9rem 1rem;
}

.side-pmb a {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--azure), var(--royal));
  color: #fff;
  padding: .78rem;
  border-radius: var(--r-md);
  font-size: .82rem;
  font-weight: 700;
  transition: all .25s;
  box-shadow: 0 5px 18px rgba(30,114,212,.26);
}

.side-pmb a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30,114,212,.44);
}

/* ─── PANELS ─── */
.c-panel {
  display: none;
}

.c-panel.on {
  display: block;
}

.p-block {
  margin-bottom: 2.6rem;
}

.p-block:last-child {
  margin-bottom: 0;
}

/* ─── HISTORY ─── */
.hist-box {
  background: #fff;
  border: 1px solid #CEE2FF;
  border-radius: var(--r-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hist-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cobalt), var(--cerulean));
}

.hist-text {
  font-size: .93rem;
  color: var(--tx-mid);
  line-height: 1.87;
}

.hist-text p + p {
  margin-top: .88rem;
}

.timeline {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: flex;
  gap: 1.15rem;
}

.tl-yr {
  min-width: 50px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cobalt);
  padding-top: 2px;
  flex-shrink: 0;
  text-align: right;
}

.tl-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

.tl-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--azure);
  border: 2.5px solid var(--pale);
  flex-shrink: 0;
  margin-top: 2px;
}

.tl-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, var(--pale), transparent);
  min-height: 24px;
}

.tl-item:last-child .tl-line {
  display: none;
}

.tl-body {
  padding: .05rem 0 1.4rem;
}

.tl-body h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--tx-dark);
  margin-bottom: .22rem;
}

.tl-body p {
  font-size: .81rem;
  color: var(--tx-mid);
  line-height: 1.65;
}

/* ─── VISI MISI ─── */
.visi-card {
  background: linear-gradient(150deg, var(--royal), var(--cobalt) 60%, var(--azure));
  border-radius: var(--r-xl);
  padding: 2rem;
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
}

.visi-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -70px;
  right: -70px;
}

.vc-lbl {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
  margin-bottom: .55rem;
}

.vc-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #fff;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.misi-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.mi-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid #CEE2FF;
  border-radius: var(--r-md);
  transition: all .25s;
}

.mi-item:hover {
  border-color: var(--pale);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.mi-ic {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.mi-body .mi-n {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: .25rem;
}

.mi-t {
  font-size: .88rem;
  color: var(--tx-mid);
  line-height: 1.72;
}

/* ─── TUJUAN & KOMPETENSI ─── */
.tj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}

.tj-card {
  background: #fff;
  border: 1px solid #CEE2FF;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: all .28s var(--ease);
  position: relative;
  overflow: hidden;
}

.tj-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--cerulean));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}

.tj-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: #B0CCFF;
}

.tj-card:hover::after {
  transform: scaleX(1);
}

.tj-ic {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}

.tj-text {
  font-size: .85rem;
  color: var(--tx-mid);
  line-height: 1.73;
}

.km-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.km-card {
  display: flex;
  align-items: flex-start;
  gap: .88rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid #CEE2FF;
  border-radius: var(--r-md);
  transition: all .22s;
}

.km-card:hover {
  border-color: var(--pale);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.km-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--royal), var(--azure));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.km-num {
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: .25rem;
}

.km-name {
  font-size: .87rem;
  font-weight: 700;
  color: var(--tx-dark);
  line-height: 1.4;
}

/* ─── PROFIL LULUSAN ─── */
.lul-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.lul-card {
  background: #fff;
  border: 1px solid #CEE2FF;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all .28s var(--ease);
}

.lul-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: #B0CCFF;
}

.lul-ic {
  font-size: 2rem;
  margin-bottom: .65rem;
}

.lul-name {
  font-size: .87rem;
  font-weight: 700;
  color: var(--tx-dark);
  line-height: 1.4;
  margin-bottom: .5rem;
}

.lul-desc {
  font-size: .78rem;
  color: var(--tx-soft);
  line-height: 1.6;
}

/* ─── STRUKTUR ─── */
.org-wrap {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.org-chart {
  min-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.org-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.conn-v {
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, var(--cobalt), var(--pale));
  flex-shrink: 0;
}

.hline {
  height: 2px;
  background: var(--pale);
}

.org-box {
  border-radius: var(--r-md);
  padding: .9rem 1.3rem;
  text-align: center;
  transition: all .22s;
}

.org-box:hover {
  transform: translateY(-2px);
}

.ob-role {
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}

.ob-name {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.35;
}

.oL0 {
  background: linear-gradient(135deg, var(--deep), var(--cobalt));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(4,22,46,.4);
}

.oL0 .ob-role {
  color: rgba(255,255,255,.52);
}

.oL1 {
  background: linear-gradient(135deg, var(--royal), var(--azure));
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  min-width: 170px;
  box-shadow: 0 6px 22px rgba(12,61,122,.28);
}

.oL1 .ob-role {
  color: rgba(255,255,255,.52);
}

.oL1b {
  background: linear-gradient(135deg, #0a2a5e, var(--royal));
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  min-width: 200px;
  box-shadow: 0 6px 22px rgba(12,61,122,.28);
}

.oL1b .ob-role {
  color: rgba(255,255,255,.52);
}

.oL2 {
  background: var(--surface);
  border: 1.5px solid #CEE2FF;
  color: var(--tx-dark);
  min-width: 150px;
  box-shadow: var(--shadow-sm);
}

.oL2 .ob-role {
  color: var(--cobalt);
}

.org-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.oi-card {
  background: #fff;
  border: 1px solid #CEE2FF;
  border-radius: var(--r-md);
  padding: 1.1rem;
}

.oi-ttl {
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: .45rem;
}

.oi-text {
  font-size: .82rem;
  color: var(--tx-mid);
  line-height: 1.65;
}

/* ─── DOSEN ─── */
.df-wrap {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.df-chip {
  padding: .36rem .9rem;
  border-radius: 30px;
  font-size: .76rem;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid #CEE2FF;
  color: var(--tx-mid);
  cursor: pointer;
  transition: all .2s;
}

.df-chip.on {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.df-chip:hover:not(.on) {
  border-color: var(--azure);
  color: var(--cobalt);
}

.dosen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dc {
  background: #fff;
  border: 1px solid #CEE2FF;
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-align: center;
  transition: all .28s var(--ease);
}

.dc:hover {
  border-color: #B0CCFF;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dc-av {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto .8rem;
  background: linear-gradient(135deg, var(--royal), var(--azure));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border: 3px solid var(--frost);
}

.dc-name {
  font-size: .81rem;
  font-weight: 700;
  color: var(--tx-dark);
  line-height: 1.38;
  margin-bottom: .28rem;
}

.dc-nidn {
  font-size: .66rem;
  color: var(--tx-soft);
  margin-bottom: .4rem;
}

.dc-univ {
  font-size: .72rem;
  color: var(--tx-mid);
  line-height: 1.4;
  margin-bottom: .4rem;
}

.dc-tags {
  display: flex;
  gap: .3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dc-bid {
  font-size: .63rem;
  font-weight: 700;
  background: var(--frost);
  color: var(--royal);
  padding: .16rem .5rem;
  border-radius: 5px;
}

.dc-deg {
  font-size: .63rem;
  font-weight: 700;
  background: rgba(12,61,122,.09);
  color: var(--cobalt);
  padding: .16rem .5rem;
  border-radius: 5px;
}

/* ─── MATA KULIAH ─── */
.mk-tabs {
  display: flex;
  gap: .35rem;
  padding: .28rem;
  background: var(--surface);
  border: 1px solid #CEE2FF;
  border-radius: var(--r-md);
  width: fit-content;
  margin-bottom: 2rem;
}

.mk-tab {
  padding: .5rem 1.3rem;
  border-radius: var(--r-sm);
  font-size: .81rem;
  font-weight: 700;
  color: var(--tx-mid);
  cursor: pointer;
  transition: all .22s;
  white-space: nowrap;
  border: none;
  background: transparent;
  font-family: inherit;
}

.mk-tab.on {
  background: #fff;
  color: var(--royal);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.mk-tab:hover:not(.on) {
  color: var(--azure);
}

.mk-panel {
  display: none;
}

.mk-panel.on {
  display: block;
}

.mk-sem {
  margin-bottom: 2rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid #CEE2FF;
  background: #fff;
}

.mk-sem-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.3rem;
}

.msh-g {
  background: linear-gradient(135deg, var(--navy), var(--deep));
}

.msh-e {
  background: linear-gradient(135deg, #02200e, #065a2c);
}

.mk-sem-ic {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.mk-sem-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.mk-sem-sub {
  font-size: .69rem;
  color: rgba(255,255,255,.46);
  margin-top: .05rem;
}

.mk-sks-total {
  margin-left: auto;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  line-height: 1;
}

.mk-sks-total span {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
  text-align: right;
}

.mk-tbl-wrap {
  overflow-x: auto;
}

.mk-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.mk-tbl thead th {
  background: var(--surface);
  color: var(--tx-mid);
  font-size: .72rem;
  font-weight: 700;
  padding: .68rem .95rem;
  text-align: left;
  border-bottom: 2px solid #D4E8FF;
  white-space: nowrap;
}

.mk-tbl thead th:nth-child(3) {
  text-align: center;
  width: 60px;
}

.mk-tbl tbody tr {
  border-bottom: 1px solid var(--frost);
  transition: background .15s;
}

.mk-tbl tbody tr:last-child {
  border-bottom: none;
}

.mk-tbl tbody tr:hover {
  background: var(--frost);
}

.mk-tbl td {
  padding: .66rem .95rem;
  font-size: .83rem;
  color: var(--tx-body);
  vertical-align: middle;
}

.mk-tbl td:nth-child(3) {
  text-align: center;
}

.mk-kode {
  font-weight: 700;
  color: var(--cobalt);
  font-size: .73rem;
  white-space: nowrap;
  font-family: monospace;
  letter-spacing: .02em;
}

.sks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
}

.sks-g {
  background: linear-gradient(135deg, var(--royal), var(--azure));
}

.sks-e {
  background: linear-gradient(135deg, #02420f, #0a7a3a);
}

.mk-badge {
  display: inline-block;
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .17rem .5rem;
  border-radius: 5px;
}

.mkw {
  background: rgba(12,61,122,.1);
  color: var(--royal);
}

.mkp {
  background: rgba(120,70,0,.1);
  color: #7a4500;
}

.mkl {
  background: rgba(8,92,50,.1);
  color: #065c35;
}

.mk-legend {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--frost);
}

.mk-leg-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  color: var(--tx-soft);
}

.mk-total {
  margin-left: auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--royal);
}

/* ─── BERITA ─── */
.bn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.bn-card {
  background: #fff;
  border: 1px solid #CEE2FF;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all .28s var(--ease);
  display: flex;
  flex-direction: column;
}

.bn-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: #B0CCFF;
}

.bn-img {
  height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  position: relative;
}

.bn-cat {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .63rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--cobalt);
  color: #fff;
}

.bn-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bn-date {
  font-size: .68rem;
  color: var(--tx-soft);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.bn-title {
  font-size: .86rem;
  font-weight: 700;
  color: var(--tx-dark);
  line-height: 1.5;
  flex: 1;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bn-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  padding-top: .75rem;
  border-top: 1px solid var(--frost);
}

.bn-meta {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  color: var(--tx-soft);
}

.shr {
  margin-left: auto;
  display: flex;
  gap: .28rem;
}

.shr-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--frost);
  font-size: .74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  border: none;
  cursor: pointer;
}

.shr-btn:hover {
  background: var(--azure);
  color: #fff;
}

/* ─── SCROLL TO TOP ─── */
#scrollTop {
  position: fixed;
  bottom: 1.7rem;
  right: 1.7rem;
  z-index: 800;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cobalt), var(--royal));
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: .95rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(20,89,179,.44);
  transition: all .22s var(--ease);
}

#scrollTop.show {
  display: flex;
}

#scrollTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 28px rgba(20,89,179,.6);
}

/* ─── RESPONSIVE DESIGN ─── */
@media (max-width: 1080px) {
  .page-layout {
    grid-template-columns: 235px 1fr;
  }
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .page-layout > div:last-child {
    order: 1;
  }

  .tj-grid, .km-grid, .lul-grid, .org-info {
    grid-template-columns: 1fr;
  }

  .dosen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bn-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .prodi-stats {
    grid-template-columns: 1fr;
  }

  .dosen-grid {
    grid-template-columns: 1fr;
  }

  .mk-tabs {
    flex-direction: column;
    width: 100%;
  }

  .mk-tab {
    width: 100%;
    text-align: center;
  }

  .tj-grid {
    grid-template-columns: 1fr;
  }

  .km-grid {
    grid-template-columns: 1fr;
  }

  .lul-grid {
    grid-template-columns: 1fr;
  }

  .org-info {
    grid-template-columns: 1fr;
  }
}

/* ─── ADDITIONAL UTILITIES ─── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--tx-soft);
}

.empty-state > div:first-child {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state > div:nth-child(2) {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tx-mid);
}

/* Fix for template consistency */
.c-panel {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}