:root {
  --navy: #071a38;
  --blue: #0a2a5c;
  --blue-2: #123a7a;
  --sky: #4aa3e8;
  --gold: #c9a227;
  --gold-soft: #e8d48a;
  --bg: #eef4fa;
  --text: #10243f;
  --muted: #4d6480;
  --line: #d5e3f0;
  --white: #fff;
  --shadow: 0 16px 36px rgba(7, 26, 56, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-strip {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-soft); padding: 8px 0; border-bottom: 1px solid rgba(201,162,39,.25);
}
.nav-bar { display: flex; align-items: center; gap: 18px; padding: 12px 0 14px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 12px; border: 1px solid rgba(201,162,39,.55); object-fit: contain; padding: 3px; background: #fff; }
.brand strong { display: block; font-size: 1.02rem; }
.brand small { color: var(--gold-soft); font-size: .78rem; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a, .has-sub > button {
  color: #eaf3ff; background: none; border: 0; font: inherit; cursor: pointer;
  padding: 9px 12px; border-radius: 10px;
}
.site-nav > a:hover, .has-sub > button:hover,
.site-nav > a.active, .has-sub.active > button { background: rgba(201,162,39,.18); color: #fff; }
.has-sub { position: relative; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; color: var(--text); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.has-sub:hover .submenu, .has-sub.open .submenu { display: grid; }
.submenu a { padding: 10px 12px; border-radius: 8px; }
.submenu a:hover, .submenu a.active { background: #eef4fa; color: var(--blue); }
.btn-masuk {
  background: linear-gradient(180deg, #1e6bb8, #0a2a5c) !important;
  border: 1px solid rgba(201,162,39,.45) !important;
  font-weight: 700;
}
.nav-toggle { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid var(--gold); border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; }

.hero {
  min-height: 78vh; color: #fff; display: grid; align-items: end;
  background:
    linear-gradient(90deg, rgba(7,26,56,.82), rgba(10,42,92,.28)),
    url("../img/poltekbang-login-bg.png") center/cover no-repeat;
}
.hero-inner { padding: 64px 0 56px; }
.kemenhub { color: var(--gold-soft); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 16ch; margin: 10px 0 12px; }
.hero p { max-width: 52ch; color: #dce8f5; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 16px; border-radius: 12px; font-weight: 700; border: 0; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-navy { background: linear-gradient(180deg, #1e6bb8, #0a2a5c); color: #fff; }

.section { padding: 56px 0; }
.section h2 { font-size: 1.7rem; color: var(--blue); margin-bottom: 8px; }
.lead { color: var(--muted); margin-bottom: 24px; max-width: 60ch; line-height: 1.6; }
.grid-3, .grid-2, .grid-4 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card .body { padding: 18px; }
.card h3 { color: var(--blue); margin-bottom: 8px; }
.card p, .prose p { color: var(--muted); line-height: 1.65; }
.card img, .news-cover { height: 170px; width: 100%; object-fit: cover; }
.meta { color: var(--gold); font-size: .8rem; font-weight: 700; margin-bottom: 6px; }

.page-hero {
  color: #fff; padding: 48px 0 36px;
  background:
    linear-gradient(90deg, rgba(7,26,56,.8), rgba(10,42,92,.4)),
    url("../img/poltekbang-banner.png") center/cover no-repeat;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 6px; }

.prose { background: #fff; border-radius: 18px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose h3 { color: var(--blue); margin: 18px 0 8px; }
.prose ol, .prose ul { color: var(--muted); line-height: 1.7; padding-left: 18px; }
.visi-box {
  background: linear-gradient(135deg, #0a2a5c, #1e6bb8); color: #fff;
  border-radius: 18px; padding: 28px; margin-bottom: 18px;
  border: 1px solid rgba(201,162,39,.4);
}
.visi-box small { color: var(--gold-soft); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.visi-box p { margin-top: 10px; font-size: 1.15rem; line-height: 1.6; }

.org { display: grid; gap: 14px; justify-items: center; text-align: center; }
.org-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.org-card {
  background: #fff; min-width: 180px; max-width: 240px; flex: 1;
  border-radius: 16px; padding: 16px 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.org-card.dir { background: var(--blue); color: #fff; border-color: var(--gold); max-width: 280px; }
.org-card.dir small { color: var(--gold-soft); }
.org-card small { display: block; color: var(--gold); font-size: .75rem; font-weight: 700; margin-bottom: 4px; }
.org-card b { display: block; color: var(--blue); }
.org-card.dir b { color: #fff; }
.org-note { color: var(--muted); font-size: .9rem; }

.form { display: grid; gap: 12px; }
.form label { font-weight: 700; color: var(--blue); display: grid; gap: 6px; font-size: .9rem; }
.form input, .form textarea, .form select {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }
.map { border: 0; width: 100%; height: 280px; border-radius: 16px; }

.site-foot { background: #071a38; color: #dce8f5; padding: 36px 0 18px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 24px; }
.site-foot img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; padding: 4px; background: #fff; margin-bottom: 10px; }
.site-foot h3, .site-foot h4 { color: #fff; margin-bottom: 8px; }
.site-foot a, .site-foot p { display: block; color: #c5d6ea; margin: 6px 0; line-height: 1.5; }
.copy { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(201,162,39,.2); font-size: .82rem; color: var(--gold-soft); }

.ok { background: #ecfeff; color: #075985; padding: 12px 14px; border-radius: 12px; border: 1px solid #bae6fd; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4, .foot-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 92px;
    background: #0a2a5c; padding: 12px; border-radius: 16px; flex-direction: column; align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .submenu { position: static; box-shadow: none; }
}
