:root {
  --biru: #0b57d0;
  --navy: #071a4d;
  --cyan: #22d3ee;
}

body {
  background: #eef3fb;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.navbar {
  background: white;
  box-shadow: 0 2px 14px rgba(7, 26, 77, .1);
}

.navbar-brand img { height: 46px; }

.navbar-brand b {
  display: block;
  font-size: 15px;
  color: var(--navy);
}

.navbar-brand small {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #334155 !important;
}

.nav-link:hover,
.nav-link.aktif {
  color: var(--biru) !important;
  font-weight: 600;
}

.btn-sia {
  background: var(--biru);
  color: white;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
}

.btn-sia:hover { color: white; opacity: .85; }

.hero {
  position: relative;
  color: white;
  background: var(--navy);
  padding: 90px 0 130px;
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 26, 77, .92) 25%, rgba(7, 26, 77, .35));
}

.hero .container { position: relative; }

.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.hero h1 span { color: #38bdf8; }

.hero .lead { max-width: 520px; }

.badge-hero {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50px;
  background: rgba(255, 255, 255, .15);
}

.slogan {
  position: absolute;
  right: 6%;
  bottom: 30%;
  font-style: italic;
  font-size: 1.3rem;
  text-align: right;
}

main {
  position: relative;
  margin-top: -70px;
  padding-bottom: 50px;
}

.halaman { display: none; }
.halaman.tampil { display: block; }

/* ===== KOTAK PUTIH (dipakai di mana-mana) ===== */
.panel,
.fitur {
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(7, 26, 77, .1);
}

.panel { padding: 26px; height: 100%; }
.fitur { padding: 18px; }

.judul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.judul::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 5px;
  background: var(--biru);
}

.judul-prodi { color: var(--navy); }

.fitur .item {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.ik {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 24px;
}

.ik.biru   { background: #dbeafe; color: #2563eb; }
.ik.oranye { background: #ffedd5; color: #ea580c; }
.ik.hijau  { background: #d1fae5; color: #059669; }
.ik.ungu   { background: #ede9fe; color: #7c3aed; }
.ik.merah  { background: #fee2e2; color: #dc2626; }
.ik.kuning { background: #fef3c7; color: #d97706; }

.grad-biru   { background: linear-gradient(135deg, #2563eb, #1e40af); }
.grad-hijau  { background: linear-gradient(135deg, #10b981, #047857); }
.grad-ungu   { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.grad-oranye { background: linear-gradient(135deg, #f59e0b, #d97706); }

.prodi,
.berita,
.org {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  height: 100%;
}

.prodi { padding: 18px; }
.org { padding: 16px; text-align: center; }
.berita { overflow: hidden; }

.prodi:hover,
.berita:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(11, 87, 208, .18);
  transition: .25s;
}

.berita .gb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: white;
}

.stat,
.fasilitas {
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  color: white;
}

.stat b {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.fasilitas i {
  display: block;
  margin-bottom: 6px;
  font-size: 30px;
}

.org i { font-size: 32px; color: var(--biru); }
.org small { display: block; font-size: 12px; color: #64748b; }


.foto-jurusan,
.foto-prodi {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.foto-jurusan { height: 210px; }
.foto-prodi { height: 130px; }
.foto-prodi.besar { height: 180px; }

.foto-org {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--biru);
}

.prodi-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.info-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.info-list li:last-child { border: 0; }

.info-list i {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #dbeafe;
  color: #2563eb;
  font-size: 18px;
}

.info-list small { display: block; font-size: 12px; color: #64748b; }
.info-list b,
.info-list a { font-size: 14px; color: var(--navy); word-break: break-word; }

.misi-list { padding-left: 1.2rem; margin: 0; }
.misi-list li { margin-bottom: 8px; color: #64748b; }

.ig-frame,
.pdf-frame,
.peta {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
}

.ig-frame { height: 560px; }
.pdf-frame { height: 80vh; }
.peta { height: 320px; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13px;
}
/* ===== Kartu Berita ===== */
.berita-kartu {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.berita-kartu:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}
.berita-gambar {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
}
.berita-gambar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.berita-kosong {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #cbd5e1;
}
.berita-video {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.berita-isi {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.berita-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.berita-teks {
  font-size: .9rem;
  color: #475569;
  margin: 0;
  flex: 1;
}
.berita-isi .btn {
  align-self: flex-start;
}