:root {
  --navy: #06285b;
  --navy-deep: #041f49;
  --gold: #d6a923;
  --maroon: #870400;
  --teal: #06484b;
  --text: #171717;
  --muted: #4d5561;
  --surface: #ffffff;
  --light: #f2f2f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.research-page { width: 100%; overflow: hidden; }
.research-wrap { width: min(1060px, calc(100% - 40px)); margin: 0 auto; }

.research-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  background: url("assets/header-3.jpg") center 44% / cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.research-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 27, 64, .92) 0%, rgba(2, 27, 64, .76) 48%, rgba(2, 27, 64, .52) 100%);
}
.research-hero__content { padding: 78px 0 112px; }
.back-home {
  display: inline-flex;
  margin-bottom: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.research-hero__university {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: clamp(17px, 2.1vw, 23px);
  font-weight: 800;
  letter-spacing: .28em;
}
.research-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 900;
}
.research-hero__subtitle {
  display: inline-block;
  margin: 12px 0 0;
  padding: 3px 14px 4px;
  background: var(--gold);
  color: #0b244b;
  font-size: clamp(14px, 1.9vw, 20px);
  letter-spacing: .15em;
}

.intro-wrap { position: relative; z-index: 4; }
.intro-card {
  margin-top: -72px;
  padding: 24px 42px 28px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 23px rgba(0,0,0,.22);
  text-align: center;
}
.intro-card h2 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}
.intro-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: justify;
}

.development { padding: 36px 0 54px; }
.section-heading {
  margin: 0 0 30px;
  color: var(--navy);
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .18em;
  font-weight: 950;
  line-height: 1.25;
}
.section-heading span {
  display: inline-block;
  padding: 0 8px 2px;
  background: var(--navy);
  color: #fff;
  letter-spacing: .13em;
}
.phase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.phase-card { text-align: center; color: var(--navy); }
.phase-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
}
.phase-card strong {
  display: inline-block;
  padding: 2px 8px 3px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.phase-card h4 {
  margin: 12px 0 7px;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 950;
}
.phase-card p {
  margin: 0 auto;
  max-width: 170px;
  color: #4d5968;
  font-size: 12px;
  line-height: 1.12;
}

.program-band {
  padding: 26px 0 31px;
  border-radius: 12px;
  background: var(--navy);
}
.program-band h2 {
  margin: 0 0 24px;
  color: var(--gold);
  text-align: center;
  font-size: clamp(18px, 2.7vw, 26px);
  letter-spacing: .17em;
  font-weight: 950;
}
.program-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.program-tab {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #ececec;
  color: #111;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.program-tab:hover,
.program-tab:focus-visible { transform: translateY(-2px); background: #fff; }
.program-tab.is-active { box-shadow: inset 0 0 0 3px rgba(214,169,35,.7); }

.roadmap-section { padding: 30px 0 18px; }
.roadmap-title-wrap { text-align: center; margin-bottom: 18px; }
.roadmap-title-wrap p {
  margin: 0;
  font-size: 17px;
  letter-spacing: .27em;
}
.roadmap-title-wrap h2 {
  margin: 2px 0 5px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.05;
  letter-spacing: .1em;
  font-weight: 950;
}
.roadmap-title-wrap span {
  display: inline-block;
  padding: 3px 18px 4px;
  border-radius: 8px;
  background: var(--gold);
  font-weight: 900;
  line-height: 1;
}
.table-scroll { overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
.roadmap-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
  font-size: 8.8px;
  line-height: 1.08;
}
.col-focus { width: 17%; }
.col-theme { width: 17%; }
.col-year { width: 13.2%; }
.roadmap-table th,
.roadmap-table td {
  padding: 9px 8px;
  vertical-align: middle;
  text-align: center;
  border: 0;
}
.roadmap-table thead th {
  padding: 4px 7px;
  background: var(--maroon);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}
.roadmap-table tbody td,
.theme-cell {
  background: #eeeeee;
}
.theme-cell {
  font-size: 11px;
  font-weight: 900;
}
.focus-cell {
  padding: 12px 8px !important;
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.focus-cell img {
  width: 86px;
  max-height: 82px;
  object-fit: contain;
  margin: 0 auto 8px;
  filter: brightness(0) invert(1);
}
.focus-cell span { display: block; line-height: 1.05; }

.track-record { padding: 28px 0 50px; }
.track-record h2 {
  margin: 0 0 20px;
  text-align: center;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 950;
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}
.year-chip {
  display: grid;
  min-height: 51px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease;
}
.year-chip--teal { background: var(--teal); }
.year-chip:hover,
.year-chip:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }

@media (max-width: 900px) {
  .research-hero { min-height: 390px; }
  .research-hero__content { padding: 60px 0 105px; }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-card:last-child { grid-column: 1 / -1; }
  .program-tabs { grid-template-columns: repeat(2, 1fr); }
  .program-tab:last-child { grid-column: 1 / -1; }
  .year-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .research-wrap { width: min(100% - 24px, 1060px); }
  .research-hero { min-height: 360px; background-position: 58% center; }
  .research-hero__content { padding: 34px 0 100px; }
  .back-home { margin-bottom: 32px; }
  .research-hero h1 { font-size: 29px; }
  .research-hero__university { font-size: 14px; }
  .research-hero__subtitle { font-size: 12px; letter-spacing: .09em; }
  .intro-card { margin-top: -62px; padding: 22px 20px; border-radius: 22px; }
  .intro-card p { font-size: 12px; text-align: left; }
  .development { padding: 34px 0 40px; }
  .section-heading { font-size: 19px; letter-spacing: .1em; }
  .section-heading span { margin-top: 5px; letter-spacing: .08em; }
  .phase-grid { grid-template-columns: 1fr; gap: 24px; }
  .phase-card:last-child { grid-column: auto; }
  .phase-card p { max-width: 250px; }
  .program-band { border-radius: 0; }
  .program-band h2 { font-size: 17px; letter-spacing: .09em; }
  .program-tabs { grid-template-columns: 1fr 1fr; gap: 9px; }
  .program-tab { min-height: 48px; font-size: 13px; }
  .roadmap-title-wrap p { font-size: 13px; }
  .roadmap-title-wrap h2 { font-size: 19px; letter-spacing: .05em; }
  .roadmap-title-wrap span { font-size: 12px; }
  .table-scroll { margin-right: -12px; }
  .year-grid { grid-template-columns: repeat(2, 1fr); }
}

.roadmap-status {
  margin: 14px auto 0;
  max-width: 620px;
  color: #616875;
  font-size: 13px;
  line-height: 1.45;
}

/* Roadmap assets supplied for the Penelitian page */
.roadmap-overview-scroll,
.program-roadmap-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.roadmap-overview-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.roadmap-section {
  padding: 24px 0 18px;
}

.program-roadmap-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 1;
  transition: opacity .16s ease;
}

.program-roadmap-image.is-changing {
  opacity: .35;
}

.mobile-scroll-note {
  display: none;
  margin: 0 0 10px;
  color: #69717e;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .roadmap-overview-scroll,
  .program-roadmap-scroll {
    margin-right: -12px;
    padding-bottom: 8px;
  }

  .roadmap-overview-image {
    width: 900px;
    max-width: none;
  }

  .program-roadmap-image {
    width: 980px;
    max-width: none;
  }

  .mobile-scroll-note {
    display: block;
  }
}

/* Rekam Jejak Penelitian: kategori dan popup mengikuti pola Dokumen & Arsip. */
.year-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1060px; }
.year-chip {
  display: grid; place-items: center; flex: 0 1 190px; min-height: 56px; padding: 12px;
  border: 0; border-radius: 11px; background: var(--teal); color: #fff;
  font: 850 15px/1.3 Arial, Helvetica, sans-serif; text-align: center; cursor: pointer;
  box-shadow: 0 10px 22px rgba(6,72,75,.15);
}
.research-loading { width: 100%; margin: 0; padding: 21px; text-align: center; color: var(--muted); border: 1px dashed #d6dee9; border-radius: 13px; }
.research-loading--error { color: #a12d2d; }
body.research-modal-open { overflow: hidden; }
.research-modal { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s, visibility .2s; }
.research-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.research-modal__backdrop { position: absolute; inset: 0; background: rgba(0,16,43,.78); backdrop-filter: blur(6px); }
.research-modal__panel { position: relative; z-index: 1; width: min(760px,100%); max-height: 82vh; overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 90px rgba(0,14,40,.36); outline: none; }
.research-modal__close { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e0e5ed; background: #fff; color: var(--navy); font-size: 27px; cursor: pointer; }
.research-modal__head { padding: 28px 70px 20px 28px; background: linear-gradient(135deg,var(--navy),#0b326f); color: #fff; }
.research-modal__head span { font-size: 11px; color: #f1c542; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.research-modal__head h2 { margin: 5px 0 0; font-size: 30px; }
.research-modal__list { padding: 20px 24px 26px; }
.research-document { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #e0e5ed; border-radius: 13px; }
.research-document + .research-document { margin-top: 10px; }
.research-document h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.research-document p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.research-document a { display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border-radius: 9px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 900; }
.research-modal__empty { padding: 24px; text-align: center; color: var(--muted); }
@media (max-width: 560px) {
  .year-chip { flex-basis: 100%; }
  .research-modal { padding: 10px; align-items: end; }
  .research-modal__panel { max-height: 88vh; border-radius: 20px 20px 12px 12px; }
  .research-document { grid-template-columns: 1fr; }
  .research-document a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .research-modal, .year-chip { transition: none; } }
