:root {
  --primary: #b1001a;   /* merah marun khas instansi */
  --primary-dark: #7b0012;
  --secondary: #005b96; /* biru formal */
  --light: #f5f5f5;
  --border: #dddddd;
  --text: #222222;
  --muted: #666666;
  --accent: #f9f2d0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: var(--text);
  line-height: 1.6;
}

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

/* Top bar */
.top-bar {
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  padding: 6px 16px;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top-bar-links a {
  margin-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.4);
  padding-left: 10px;
}
.top-bar-links a:first-child {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

/* Header */
header {
  border-bottom: 4px solid var(--primary-dark);
  background: #ffffff;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-symbol {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: radial-gradient(circle at 30% 30%, #ffffff 0, #ffffff 40%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
}
.logo-text {
  line-height: 1.3;
}
.logo-text small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.logo-text .instansi {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}
.logo-text .negara {
  font-size: 13px;
  font-weight: 500;
}

.header-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.tagline {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.search-box {
  display: flex;
  gap: 4px;
  width: 260px;
  max-width: 100%;
}
.search-box input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 3px 0 0 3px;
  font-size: 13px;
}
.search-box button {
  padding: 6px 10px;
  font-size: 13px;
  border: none;
  border-radius: 0 3px 3px 0;
  background: var(--secondary);
  color: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
}
.search-box button:hover {
  background: #00426d;
}

/* Navigation */
nav {
  background: #f2f2f2;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #dddddd;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav-menu > li:hover > a,
.nav-menu > li > a.active {
  background: #ffffff;
  color: var(--primary-dark);
}
.nav-menu li ul {
  position: absolute;
  left: 0;
  top: 100%;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border);
  min-width: 220px;
  display: none;
  z-index: 20;
}
.nav-menu li:hover ul {
  display: block;
}
.nav-menu li ul li a {
  padding: 8px 12px;
  font-size: 13px;
  text-transform: none;
}
.nav-menu li ul li a:hover {
  background: var(--light);
}

/* Layout */
main {
  max-width: 1200px;
  margin: 16px auto 40px auto;
  padding: 0 16px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 18px;
  margin-bottom: 18px;
}
.hero-panel {
  padding: 18px 18px 20px 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffffff, #ffeef0);
  border: 1px solid var(--border);
}
.hero-label {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.hero-title {
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
}
.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-text {
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: #f8f8f8;
}

.hero-side {
  padding: 14px 16px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--border);
}
.hero-side-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}
.hero-side-item {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}
.hero-side-item:first-of-type {
  border-top: none;
  padding-top: 4px;
}
.hero-side-item-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}
.hero-side-item-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.hero-side-item a {
  font-size: 12px;
  color: var(--secondary);
}

/* Section title */
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px 0;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Layanan cepat */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.quick-card {
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 12px 14px 12px;
}
.quick-card-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.quick-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.quick-card-text {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.quick-card-link {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
}

/* Berita & Pengumuman */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 18px;
}
.card {
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 14px 14px 14px;
  margin-bottom: 14px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
}
.card-link-small {
  font-size: 12px;
  color: var(--secondary);
}
.list-berita {
  list-style: none;
  font-size: 13px;
}
.list-berita li {
  border-top: 1px dashed #e0e0e0;
  padding: 7px 0;
}
.list-berita li:first-child {
  border-top: none;
}
.berita-judul {
  font-weight: 500;
  margin-bottom: 2px;
}
.berita-meta {
  font-size: 11px;
  color: var(--muted);
}

.info-box {
  background: var(--accent);
  border: 1px solid #e0d7b0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 8px;
}

/* Footer */
footer {
  border-top: 4px solid var(--primary-dark);
  background: #222222;
  color: #dddddd;
  margin-top: 40px;
  font-size: 12px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 18px;
}
.footer-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-inner p {
  margin-bottom: 4px;
}
.footer-links a {
  display: block;
  margin-bottom: 4px;
  color: #cccccc;
}
.footer-bottom {
  border-top: 1px solid #444444;
  margin-top: 10px;
  padding: 8px 16px;
  text-align: center;
  font-size: 11px;
  color: #bbbbbb;
}

/* Halaman dalam */
.page-title {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 8px 0;
}
.page-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-section {
  margin-bottom: 18px;
}
.page-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.page-section p {
  font-size: 13px;
  margin-bottom: 6px;
}
.page-section ul {
  margin-left: 16px;
  font-size: 13px;
}

/* Tabel sederhana */
.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table-simple th,
.table-simple td {
  border: 1px solid var(--border);
  padding: 6px 8px;
}
.table-simple th {
  background: var(--light);
  text-align: left;
}

/* Form */
.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 8px;
  font-size: 13px;
}
.form-group textarea {
  min-height: 90px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero,
  .content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .header-right {
    align-items: flex-start;
    margin-left: 0;
  }
  .tagline {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    flex-direction: column;
  }
  .nav-menu > li > a {
    padding: 8px 10px;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
