:root {
  --primary: #2E9B6B;
  --primary-hover: #26845a;
  --secondary: #7CB300;
  --tertiary: #2BAEAD;
  --accent: #4A9E4E;
  --body-text: #576765;
  --heading: #1E3328;
  --page-bg: #F7FAF8;
  --section-bg: #FFFFFF;
  --border: #DDE8E3;
  --primary-bg: #EBF6F1;
  --secondary-bg: #F2F7E0;
  --tertiary-bg: #EAF6F5;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--body-text);
  background-color: var(--page-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--heading);
  margin-top: 0;
}

h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 14px; font-weight: 700; }

small, .text-meta {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: var(--body-text);
}

.label-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; }

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-brand:hover { text-decoration: none; }

.header-logo {
  width: auto;
  height: 40px;
  /* background: var(--primary); */
  /* border-radius: 8px; */
  display: block;
  /* align-items: center; */
  /* justify-content: center; */
  /* color: white; */
  /* font-family: 'Nunito', sans-serif; */
  /* font-weight: 800; */
  /* font-size: 14px; */
  flex-shrink: 0;
}

.header-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--heading);
  line-height: 1.2;
  display: block;
}

.header-subtitle {
  font-size: 10px;
  font-weight: 300;
  color: var(--body-text);
  margin-top: -1px;
  display: block;
}

.nav-link {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading) !important;
  padding: 0.5rem 0.75rem !important;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  text-decoration: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--primary);
}

/* Breadcrumb */
.breadcrumb-section {
  background: var(--section-bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-nav {
  padding: 0.5rem 0;
  font-size: 11px;
}

.breadcrumb-nav a { color: var(--body-text); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav span { color: var(--body-text); }
.breadcrumb-nav .separator {
  margin: 0 6px;
  color: var(--border);
}

/* Hero */
.hero-section {
  padding: 60px 0 50px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--primary-bg);
  opacity: 0.5;
  pointer-events: none;
}

.hero-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--body-text);
  max-width: 540px;
  line-height: 1.7;
}

.hero-illustration-placeholder {
  width: 100%;
  max-width: 340px;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-bg), var(--tertiary-bg));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto;
}

/* Stats Bar */
.stats-bar {
  background: var(--heading);
  padding: 30px 0;
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-family: 'Nunito', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* Cards */
.card-custom {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.card-custom:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}

.card-icon.primary { background: var(--primary-bg); color: var(--primary); }
.card-icon.secondary { background: var(--secondary-bg); color: var(--secondary); }
.card-icon.tertiary { background: var(--tertiary-bg); color: var(--tertiary); }

/* Document Cards */
.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}

.doc-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.doc-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.doc-icon.pdf { background: #FEE2E2; color: #DC2626; }
.doc-icon.docx { background: #DBEAFE; color: #2563EB; }
.doc-icon.xlsx { background: #DCFCE7; color: #16A34A; }
.doc-icon.zip { background: #FEF3C7; color: #D97706; }

.doc-title {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
  line-height: 1.4;
}

.doc-meta {
  font-size: 10px;
  font-weight: 300;
  color: var(--body-text);
}

.doc-desc {
  font-size: 12px;
  color: var(--body-text);
  margin-top: 8px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Buttons */
.btn-primary-custom {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.btn-primary-custom:hover {
  background: var(--primary-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-outline-custom {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* Accordion */
.accordion-custom {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item-custom {
  border-bottom: 1px solid var(--border);
}

.accordion-item-custom:last-child { border-bottom: none; }

.accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.accordion-btn:hover { background: var(--page-bg); }

.accordion-btn .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  flex-shrink: 0;
  margin-right: 12px;
}

.accordion-btn .icon.penetapan { background: var(--primary-bg); color: var(--primary); }
.accordion-btn .icon.pelaksanaan { background: var(--secondary-bg); color: var(--secondary); }
.accordion-btn .icon.evaluasi { background: var(--tertiary-bg); color: var(--tertiary); }
.accordion-btn .icon.pengendalian { background: #FEF3C7; color: #D97706; }
.accordion-btn .icon.peningkatan { background: #FEE2E2; color: #DC2626; }

.accordion-btn .arrow {
  transition: transform 0.3s;
  font-size: 12px;
  color: var(--body-text);
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion-btn[aria-expanded="true"] .arrow { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.show {
  max-height: 600px;
}

.accordion-content-inner {
  padding: 0 20px 16px 60px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--body-text);
}

/* Sub Navigation */
.sub-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.sub-nav-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--body-text);
  transition: all 0.2s;
}

.sub-nav-item:last-child { border-bottom: none; }

.sub-nav-item:hover,
.sub-nav-item.active {
  color: var(--primary);
  background: var(--primary-bg);
  text-decoration: none;
}

.sub-nav-item.active {
  border-left: 3px solid var(--primary);
}

/* Badge */
.badge-custom {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-custom.primary { background: var(--primary-bg); color: var(--primary); }
.badge-custom.secondary { background: var(--secondary-bg); color: var(--secondary); }
.badge-custom.tertiary { background: var(--tertiary-bg); color: var(--tertiary); }
.badge-custom.success { background: #DCFCE7; color: #16A34A; }
.badge-custom.warning { background: #FEF3C7; color: #D97706; }

/* Page Header */
.page-header {
  padding: 40px 0 30px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-bottom: 8px; }

.page-header p {
  font-size: 13px;
  color: var(--body-text);
  max-width: 600px;
  margin-bottom: 0;
}

/* Section */
.section {
  padding: 50px 0;
}

.section-title {
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--body-text);
  max-width: 600px;
  margin-bottom: 30px;
}

.content-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 24px;
  margin-bottom: 8px;
}

.content-body p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-body ul,
.content-body ol {
  font-size: 13px;
  line-height: 2;
  padding-left: 20px;
}

/* Placeholder */
.placeholder-box {
  background: linear-gradient(135deg, var(--primary-bg), var(--tertiary-bg));
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  color: var(--body-text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

/* Table */
.table-custom {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.table-custom th {
  background: var(--primary-bg);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.table-custom td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.table-custom tr:last-child td { border-bottom: none; }

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

/* Background Variants */
.bg-white { background: var(--white) !important; }
.bg-offwhite { background: var(--page-bg) !important; }
.bg-primary-tint { background: var(--primary-bg); }
.bg-secondary-tint { background: var(--secondary-bg); }
.bg-tertiary-tint { background: var(--tertiary-bg); }

/* Footer */
.footer {
  background: var(--heading);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
}

.footer h5 {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  margin-top: 0;
}

.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  display: inline-block;
  margin-bottom: 6px;
}

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer p {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* Mobile Nav */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  display: none;
}

.mobile-nav-overlay.show { display: block; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  bottom: 0;
  background: var(--white);
  z-index: 1050;
  padding: 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.show { right: 0; }

.mobile-nav .nav-link {
  display: block;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .nav-link.active::after { display: none; }
.mobile-nav .nav-link.active { color: var(--primary) !important; }

/* SPA Loading State */
#app-main[aria-busy="true"] {
  opacity: 0.5;
  transition: opacity 0.2s;
  min-height: 300px;
}

/* Scroll to top after navigation */
html { scroll-behavior: smooth; }

/* Lightbox Dialog */
.lightbox-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
  overflow: visible;
}

.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-dialog img {
  max-width: 95vw;
  max-height: 95vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.4);
}

/* Skeleton Loading Animation */
@keyframes skeleton-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: calc(400px + 100%) 0; }
}

.skeleton-pulse {
  background: linear-gradient(90deg, var(--page-bg) 25%, #e0ece6 50%, var(--page-bg) 75%);
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-pulse-light {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-circle-light {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 575.98px) {
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }

  .hero-section { padding: 36px 0 28px; }
  .hero-title { font-size: 24px; }
  .hero-illustration-placeholder { height: 160px; }

  .section { padding: 30px 0; }
  .stat-number { font-size: 22px; }
  .stats-bar { padding: 20px 0; }
  .page-header { padding: 24px 0 20px; }
  .footer { padding: 24px 0; }

  .accordion-content-inner { padding-left: 20px; }

  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-illustration-placeholder { height: 180px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-illustration-placeholder { max-width: 280px; height: 200px; }
}

@media (min-width: 992px) {
  .hero-illustration-placeholder { max-width: 380px; height: 240px; }
}

@media (min-width: 1200px) {
  .hero-illustration-placeholder { max-width: 400px; height: 260px; }
}
