:root {
  --topbar-bg: #003b73;
  --nav-bg: #00539b;
  --nav-bg-dark: #003b73;
  --primary: #00539b;
  --primary-soft: #e5f0ff;
  --accent: #f6b71d;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --border: #e0e7ff;
  --border-soft: #e5e7eb;
  --text: #1f2933;
  --muted: #6b7280;
  --radius-lg: 12px;
  --radius-md: 10px;
  --shadow-soft: 0 2px 6px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: url("/assets/image/bg.jpg") no-repeat center top fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.topbar {
  background: var(--topbar-bg);
  color: #e5e7eb;
  font-size: 12px;
  padding: 6px 16px;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-links a {
  color: #e5e7eb;
  margin-left: 12px;
}

/* HEADER */
.header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--primary);
  background: #f9fafb;
  text-align: center;
  padding: 4px;
}
.branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.branding h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.branding h1 span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.branding p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* NAV */
.nav {
  background: var(--nav-bg);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.nav a:hover,
.nav a.active {
  background: var(--nav-bg-dark);
  text-decoration: none;
}

/* MAIN LAYOUT */
.main {
  max-width: 1200px;
  margin: 20px auto 32px;
  padding: 0 16px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

/* CARDS & CONTENT */
.hero-card {
  background: linear-gradient(135deg, #eef3ff, #ffffff);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.hero-tag {
  display: inline-flex;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.hero-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.hero-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15,23,42,0.16);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--nav-bg-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 12px 14px;
  font-size: 13px;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--primary);
}
.card p {
  margin: 0;
  color: var(--muted);
}

.section-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px 16px;
}
.section-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  border-left: 4px solid var(--accent);
  padding-left: 8px;
}
.section-card p {
  margin: 0 0 6px;
  font-size: 14px;
}
.section-card ul {
  margin: 0 0 6px 18px;
  padding: 0;
  font-size: 14px;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 12px 14px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}
.sidebar-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-card li + li {
  margin-top: 4px;
}
.sidebar-card a {
  color: var(--primary);
}
.sidebar-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-card p {
  margin: 0;
}

.page {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px 18px;
  font-size: 14px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb span {
  color: var(--text);
}
.page-header h1 {
  margin: 0 0 6px;
  font-size: 20px;
}
.page-header p {
  margin: 0 0 10px;
  color: var(--muted);
}
.page section {
  margin-top: 12px;
}

.footer {
  border-top: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 14px 0 18px;
  font-size: 12px;
  color: var(--muted);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.footer p { margin: 4px 0; }
.footer strong { color: var(--text); 
}
.news-page {
  max-width: 1200px;
  margin: 0 auto;
}

.news-search {
  margin: 12px 0 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.news-search input {
  min-width: 260px;
  max-width: 480px;
  flex: 1 1 auto;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
}

.news-search button {
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 5px rgba(15,23,42,0.25);
}

.news-search button:hover {
  background: var(--nav-bg-dark);
}

.news-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.news-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(15,23,42,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
}

.news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-date {
  font-size: 12px;
  color: var(--muted);
}

.news-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.news-title a {
  color: #4b0082;
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
}

.news-excerpt {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 4px;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.news-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #6b21a8;
  white-space: nowrap;
}

.news-readmore {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b21a8;
  text-decoration: none;
}

.news-readmore:hover {
  text-decoration: underline;
}

.news-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.news-pagination button {
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #e5e7eb;
  color: #374151;
  font-size: 13px;
  padding: 0 10px;
  cursor: pointer;
}

.news-pagination button.active {
  background: #6b21a8;
  color: #fff;
  box-shadow: 0 2px 4px rgba(15,23,42,0.25);
}

.news-pagination button[disabled] {
  opacity: .5;
  cursor: default;
}

.news-detail {
  max-width: 900px;
  margin: 0 auto;
}

.news-title {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.news-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.news-hero {
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
}

.news-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.news-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 16px;
  color: #3b3b3b;
}

.news-tags {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-tag {
  background: #f3e8ff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #6b21a8;
}

.news-nav {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #dcdcdc;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.news-nav a {
  color: #4b0082;
  text-decoration: none;
}

.news-nav a:hover {
  text-decoration: underline;
}

.sitemap-page {
  max-width: 900px;
  margin: 0 auto;
}
.sitemap-page h1 {
  font-size: 28px;
  margin-bottom: 10px;
}
.sitemap-section {
  margin-top: 25px;
}
.sitemap-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.sitemap-list ul {
  margin-left: 0;
  padding-left: 20px;
}
.sitemap-list ul li {
  margin: 4px 0;
  font-size: 14px;
}
.sitemap-list a {
  color: #4b0082;
  text-decoration: none;
}
.sitemap-list a:hover {
  text-decoration: underline;
}
.sitemap-loading {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.doc-page {
  max-width: 1000px;
  margin: 0 auto;
}
.doc-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.12);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border-soft, #e5e7eb);
}
.doc-cover img {
  display: block;
  width: 100%;
  height: auto;
}
.doc-body {
  padding: 16px 20px 18px;
  text-align: center;
}
.doc-title {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}
.doc-meta {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.doc-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.doc-btn {
  min-width: 110px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.doc-btn-view {
  background: #021b8a; /* biru lihat */
}
.doc-btn-download {
  background: #16a34a; /* hijau unduh */
}
.doc-btn:hover {
  opacity: .9;
}
.doc-preview {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
  padding: 16px 20px 20px;
  border: 1px solid var(--border-soft, #e5e7eb);
}
.doc-preview h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.doc-preview iframe,
.doc-preview object {
  width: 100%;
  height: 640px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
}
.doc-preview-fallback {
  margin-top: 10px;
  font-size: 14px;
  color: #4b5563;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .nav ul {
    flex-direction: column;
  }
  .card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .card-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .news-image img {
    height: 190px;
  }
}
@media (max-width: 768px) {
  .doc-preview iframe,
  .doc-preview object {
    height: 520px;
  }
}