:root {
  --blue: #0057b8;
  --blue-deep: #003e86;
  --cyan: #0090d8;
  --purple: #8e24a8;
  --coral: #f15a4a;
  --ink: #1b2430;
  --muted: #5c6b7a;
  --line: #e3ebf4;
  --paper: #f3f6fb;
  --card: #ffffff;
  --soft: #e8f2fc;
  --danger: #f15a4a;
  --ok: #0e8f62;
  --shadow: 0 16px 40px rgba(0, 62, 134, 0.08);
  --radius: 16px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --brand: linear-gradient(90deg, #f15a4a 0%, #8e24a8 36%, #0057b8 68%, #0090d8 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 280px at 100% -80px, rgba(0, 144, 216, 0.08), transparent 60%),
    var(--paper);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topline {
  background: var(--blue-deep);
  color: #d6e7f8;
  font-size: 13px;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--brand);
}
.bar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 48px; width: auto; }
.menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.menu > li { list-style: none; position: relative; }
.menu > li::after {
  content: "";
  position: absolute;
  left: 0;
  width: 300px;
  top: 100%;
  height: 18px;
}
.menu > li > a, .menu > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
svg.hi {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  vertical-align: -0.18em;
  flex: 0 0 auto;
  stroke: currentColor;
}
svg.hi.hi-caret { width: 14px; height: 14px; opacity: .65; }
.sub a, .site-footer a, .stat span, .news time, .doc h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-panel a {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: center;
}
.hero-panel svg.hi { grid-row: span 2; width: 22px; height: 22px; color: var(--blue); }
.step em svg.hi { width: 18px; height: 18px; }
.feature h3 { display: flex; align-items: center; gap: 8px; }
.saring { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.saring input { width: min(280px, 100%); }
.menu > li > a:hover, .menu > li > button:hover, .menu > li > a.is-on, .menu > li > button.is-on {
  background: var(--soft);
  color: var(--blue);
}
.menu-login { display: none; }
.sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.menu > li:hover > .sub, .menu > li:focus-within > .sub, .menu > li.open > .sub { display: block; }
.sub a { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; }
.sub a:hover, .sub a.is-on { background: var(--soft); color: var(--blue); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}
.btn-login, .btn-primary { background: var(--blue); color: #fff; }
.btn-login:hover, .btn-primary:hover { background: var(--blue-deep); }
.hero .hero-actions .btn-primary,
.feature-aside .btn-primary { background: #fff; color: var(--blue-deep); }
.hero .hero-actions .btn-primary:hover,
.feature-aside .btn-primary:hover { background: var(--soft); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { background: #fff; color: var(--blue); border: 1px solid #c5daf3; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 10px; background: var(--ink); }

.hero {
  position: relative;
  background:
    radial-gradient(640px 280px at 92% 0%, rgba(0, 144, 216, .55), transparent 60%),
    radial-gradient(420px 220px at 0% 100%, rgba(142, 36, 168, .28), transparent 55%),
    linear-gradient(145deg, #003e86 0%, #0057b8 62%, #0077c8 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--brand);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 64px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9fd4ff;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
}
.hero p.lead { margin: 0 0 22px; max-width: 620px; color: #e4f1fb; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.search {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  max-width: 640px;
  box-shadow: 0 12px 30px rgba(0, 30, 70, .18);
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.search .btn-primary { border-radius: 10px; }
.hero-panel { display: grid; gap: 10px; }
.hero-panel a {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--cyan);
  box-shadow: 0 10px 24px rgba(0, 40, 90, .12);
  transition: transform .15s ease;
}
.hero-panel a:nth-child(2) { border-left-color: var(--purple); }
.hero-panel a:nth-child(3) { border-left-color: var(--blue); }
.hero-panel a:nth-child(4) { border-left-color: var(--coral); }
.hero-panel a:hover { transform: translateY(-2px); }
.hero-panel strong { display: block; font-size: 16px; color: var(--blue-deep); }
.hero-panel span { color: var(--muted); font-size: 13.5px; }

.section { padding: 56px 0; }
.section h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -.03em;
  line-height: 1.15;
  font-weight: 700;
}
.section .intro { color: var(--muted); margin: 0 0 22px; max-width: 640px; }
.head-row { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px 18px;
  box-shadow: 0 1px 0 rgba(0, 62, 134, .04);
  transition: transform .15s ease, border-color .15s ease;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--blue);
}
.stat:nth-child(4n+1)::before { background: var(--coral); }
.stat:nth-child(4n+2)::before { background: var(--purple); }
.stat:nth-child(4n+3)::before { background: var(--blue); }
.stat:nth-child(4n)::before { background: var(--cyan); }
.stat:hover { border-color: #c5daf3; transform: translateY(-2px); }
.stat b { display: block; font-size: 28px; letter-spacing: -.03em; color: var(--blue-deep); }
.stat span { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
}
.step em {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
}
.step h3 { margin: 14px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
}
.feature h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); }
.feature-aside {
  background:
    radial-gradient(280px 160px at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(160deg, #003e86, #0057b8 55%, #0090d8);
  color: #fff;
  border-radius: 22px;
  padding: 28px;
  min-height: 100%;
}
.feature-aside .kicker { color: #b9dcff; }
.feature-aside h3 { margin: 8px 0 10px; font-size: 28px; letter-spacing: -.03em; }
.feature-aside p { color: #e4f1fb; }

.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.news article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.news time { color: var(--cyan); font-size: 13px; font-weight: 700; }
.news h3 { margin: 6px 0; font-size: 18px; }
.news p { margin: 0; color: var(--muted); }
.news article a { display: block; color: inherit; text-decoration: none; }
.news article a:hover h3 { color: var(--blue); }
.news .more { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 700; font-size: 14px; }
.informasi-foto { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin: 0 0 16px; }
.prose a { color: var(--blue); font-weight: 700; }
.sheet .meta { color: var(--cyan); font-weight: 700; margin-top: 0; }

.page-hero {
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(0,144,216,.35), transparent 60%),
    linear-gradient(120deg, #003e86, #0057b8);
  color: #fff;
  padding: 34px 0 48px;
}
.page-hero h1 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; font-weight: 700; }
.crumb { color: #c5ddf5; font-size: 14px; }
.crumb a { color: #fff; }

.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-top: -28px;
  box-shadow: var(--shadow);
}
.years { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.years button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 700;
}
.years button.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.tools input, .field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.tools input { width: min(280px, 100%); }
.tools input:focus, .field input:focus, .field select:focus, .field textarea:focus, .search input:focus {
  outline: 2px solid rgba(0, 87, 184, .25);
  border-color: var(--blue);
}
.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; }
table.data th, table.data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 13px; color: var(--muted); font-weight: 700; background: #f7faff; }
table.data tr:hover td { background: #f4f8fd; }
.note { color: var(--muted); padding: 28px 8px; text-align: center; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.pager[hidden] { display: none; }
.pager > span { color: var(--muted); font-size: 14px; }
.pager-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager-nav button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  min-width: 36px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
}
.pager-nav button.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager-nav button:disabled { opacity: .45; cursor: default; }
.pager-gap { color: var(--muted); padding: 0 2px; }

.prose { color: var(--ink); }
.prose h2, .prose h3, .prose h4 { letter-spacing: -.02em; }
.prose img { border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.doc img { width: 100%; height: 170px; object-fit: cover; background: var(--soft); }
.doc div { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doc h3 { margin: 0; font-size: 17px; }
.doc p { margin: 0; color: var(--muted); font-size: 13.5px; }
.doc .btn { margin-top: auto; }

.profil {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-top: 16px;
}
.profil img, .avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: var(--soft);
}
.avatar { display: grid; place-items: center; font-size: 42px; font-weight: 700; color: var(--blue); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 12px 0 0; }
.meta div { font-size: 14.5px; }
.meta span { display: block; color: var(--muted); font-size: 12px; }
.karya-blok { margin-top: 14px; }
.karya-blok h4 { margin: 0 0 8px; color: var(--blue-deep); }
.karya-blok li { margin: 0 0 6px; color: var(--ink); }
.karya-blok li strong { color: var(--ink); font-weight: 700; }
.dialog-dosen { width: min(920px, 100%); padding: 0; display: flex; flex-direction: column; }
.dosen-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.dosen-top h3 { margin: 0; }
.dosen-top button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.dosen-isi { padding: 16px 18px 20px; }
.dosen-pilih { display: flex; gap: 8px; overflow: auto; margin-bottom: 14px; }
.dosen-pilih button, .dosen-tab { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.dosen-pilih button.is-on, .dosen-tab.is-on { background: var(--soft); color: var(--blue); border-color: transparent; font-weight: 700; }
.dosen-tabbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 12px; }
.dosen-tab b { font-weight: 700; margin-left: 6px; }
.karya-list { list-style: none; margin: 0; padding: 0; }
.karya-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.karya-list li strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.45; }
.karya-list li span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
body.is-modal { overflow: hidden; }
@media (max-width: 720px) {
  .profil { grid-template-columns: 1fr; }
  .profil img, .avatar { width: 96px; }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 32, 70, .5);
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 60;
}
.modal.is-on { display: grid; }
.dialog {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  max-height: min(90vh, 760px);
  overflow: auto;
}
.dialog h3 { margin: 0 0 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.stars { display: flex; gap: 8px; }
.stars label { position: relative; cursor: pointer; font-size: 22px; color: #d5dde6; }
.stars input { position: absolute; opacity: 0; }
.stars label.is-on { color: var(--coral); }
.hp-trap { position: absolute; left: -9999px; }

.site-footer { background: var(--blue-deep); color: #d6e7f8; padding: 40px 0 16px; margin-top: 48px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: 24px; }
.site-footer h3 { color: #fff; margin: 0 0 10px; font-size: 16px; }
.site-footer a { padding: 4px 0; color: #d6e7f8; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 8px 0; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 14px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }
.alert { background: #fff1ef; color: #b43328; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.ok { background: #e7f6ef; color: var(--ok); border-radius: 12px; padding: 10px 12px; }

.sah { background: var(--ok); color: #fff; border-radius: 20px 20px 0 0; padding: 18px 22px; }
.tahan { background: #c47b12; color: #fff; border-radius: 20px 20px 0 0; padding: 18px 22px; }
.kartu { width: min(720px, calc(100% - 32px)); margin: 28px auto; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.kartu table { width: 100%; }
.kartu td { padding: 8px 0; vertical-align: top; }
.kartu .isi { padding: 8px 22px 22px; }

@media (max-width: 980px) {
  .hero-grid, .features, .stats, .steps, .news, .docs, .foot-grid, .profil, .feature-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .menu, .btn-login { display: none; }
  .top.is-open .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    max-height: 70vh;
    overflow: auto;
    box-shadow: var(--shadow);
  }
  .top.is-open .btn-login { display: inline-flex; margin: 8px 16px 16px; }
  .menu > li::after { display: none; }
  .sub { position: static; box-shadow: none; display: none; min-width: 0; border: 0; padding: 0 0 0 8px; }
  .menu-login { display: block; }
  .menu-login a { background: var(--blue); color: #fff; text-align: center; border-radius: 12px; margin-top: 8px; }
  .bar { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .topline .wrap { flex-direction: column; }
  .search { flex-direction: column; }
  .copy { flex-direction: column; }
}

html:has(body.is-modal) { overflow: hidden; }
#modal-dosen.modal {
  z-index: 200;
  padding: 20px;
  background: rgba(7, 18, 36, .82);
}
#modal-dosen .dialog-dosen {
  width: min(1140px, 100%);
  height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  padding: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}
#modal-dosen .dosen-top {
  position: static;
  flex: none;
  padding: 18px 24px;
}
#modal-dosen #isi-dosen {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
#modal-dosen .dosen-isi {
  padding: 8px 28px 28px;
}
#modal-dosen .profil {
  margin-top: 0;
  grid-template-columns: 92px 1fr;
  align-items: center;
  padding: 16px 18px;
}
#modal-dosen .karya-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 14px 0;
}
#modal-dosen .karya-list li strong { font-size: 16.5px; letter-spacing: -.01em; }
#modal-dosen .karya-list em {
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
  background: var(--soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}
@media (max-width: 720px) {
  #modal-dosen.modal { padding: 0; }
  #modal-dosen .dialog-dosen {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  #modal-dosen .dosen-isi { padding: 8px 16px 24px; }
}
