/* =========================================================
   campus.id — Design tokens
   Palet: kertas akademik + navy pustaka + emas wisuda
   Tipografi: Fraunces (display, serif berkarakter ijazah)
              Source Sans 3 (body, netral & mudah dibaca)
========================================================= */
:root {
  --paper:      #F2EEE3;   /* dasar halaman: kertas */
  --paper-dim:  #E7E1D1;   /* panel/kartu */
  --navy:       #14213D;   /* teks utama, header */
  --navy-soft:  #2A3B5C;   /* sub-teks navy */
  --gold:       #B8892B;   /* aksen: pita wisuda */
  --gold-soft:  #E7C878;   /* aksen lembut */
  --ink-muted:  #5B5748;   /* teks sekunder di atas kertas */
  --line:       #CFC6AC;   /* garis pemisah */
  --white:      #FFFDF8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, Segoe UI, sans-serif;

  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand span { color: var(--gold-soft); }

.brand small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B9C0D4;
  margin-left: 4px;
}

.site-nav a {
  color: #DCE1EE;
  font-size: 0.92rem;
  margin-left: 22px;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(184,137,43,0.16), transparent 55%),
    var(--navy);
  color: var(--white);
  padding: 64px 24px 76px;
  text-align: center;
  position: relative;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin: 0 0 14px;
  line-height: 1.15;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 34px;
  color: #C7CDE0;
  font-size: 1.05rem;
}

/* Search bar as "signature" element: styled like a card catalog / ijazah stamp */
.search-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.search-box input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: transparent;
}

.search-box select {
  border: none;
  border-left: 1px solid var(--line);
  outline: none;
  padding: 12px 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy-soft);
  background: transparent;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--gold-soft); }
.btn:active { transform: translateY(1px); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Stats ribbon ---------- */
.stats {
  max-width: 1100px;
  margin: -34px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 26px rgba(20,33,61,0.10);
}
.stats__item {
  flex: 1 1 160px;
  text-align: center;
  padding: 22px 12px;
  border-right: 1px solid var(--line);
}
.stats__item:last-child { border-right: none; }
.stats__num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 700;
}
.stats__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ---------- Main content ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
}

.section-head .count {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 14px 30px rgba(20,33,61,0.14);
  transform: translateY(-2px);
}

.card__top {
  padding: 20px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.badge--negeri   { background: #E4ECE1; color: #3B5C33; }
.badge--swasta   { background: #E9E3F5; color: #4A3B7A; }
.badge--kedinasan{ background: #FBE7D6; color: #8A4B1D; }

.badge--akred-a { background: var(--gold-soft); color: #5C3E06; }
.badge--akred-b { background: #EDEADC; color: var(--ink-muted); }
.badge--akred-c { background: #EDEADC; color: var(--ink-muted); }

.card__body { padding: 14px 20px 20px; flex: 1; display: flex; flex-direction: column; }

.card__title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 4px 0 6px;
  color: var(--navy);
}

.card__meta {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--navy-soft);
  flex: 1;
  margin-bottom: 14px;
}

.card__foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card__link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.empty h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 6px; }

/* ---------- Detail page ---------- */
.detail-hero {
  background: var(--navy);
  color: var(--white);
  padding: 44px 24px;
}
.detail-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.82rem;
  color: #AEB6CB;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold-soft); }

.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 10px;
}

.detail-hero .meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #C7CDE0;
  font-size: 0.92rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.panel h3 {
  font-family: var(--font-display);
  margin-top: 0;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.jurusan-list { list-style: none; margin: 0; padding: 0; }
.jurusan-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.jurusan-list li:last-child { border-bottom: none; }
.jurusan-list .jenjang {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--ink-muted); }
.info-list .value { font-weight: 600; text-align: right; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #9AA3BD;
  padding: 34px 24px;
  margin-top: 60px;
  font-size: 0.85rem;
  text-align: center;
  border-top: 4px solid var(--gold);
}
.site-footer a { color: var(--gold-soft); }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert--error { background: #F6DEDE; color: #7A2323; border: 1px solid #E3B4B4; }

/* Accessibility: focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
