/**
 * JDIH Midnight Dark Theme
 * Inspired by modern governmental JDIH portal design system
 */

:root {
  --jdih-bg-main: #070d1d;
  --jdih-bg-surface: #0f182e;
  --jdih-bg-surface-2: #14223f;
  --jdih-bg-card: #0f182e;
  --jdih-border: rgba(255, 255, 255, 0.08);
  --jdih-border-hover: rgba(255, 152, 0, 0.4);
  --jdih-primary-orange: #ff9800;
  --jdih-primary-orange-hover: #f57c00;
  --jdih-accent-blue: #00c2ff;
  --jdih-accent-green: #10b981;
  --jdih-accent-purple: #8b5cf6;
  --jdih-text-white: #ffffff;
  --jdih-text-muted: #94a3b8;
  --jdih-text-subtle: #64748b;
}

body {
  background-color: var(--jdih-bg-main) !important;
  color: var(--jdih-text-muted) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ============================================================
   NAVBAR & HEADER (DARK OVERLAY)
   ============================================================ */
#header {
  height: 80px;
  background: rgba(7, 13, 29, 0.95) !important;
  border-bottom: 1px solid var(--jdih-border) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease;
}

#header.header-scrolled {
  background: rgba(6, 11, 24, 0.98) !important;
  border-bottom-color: rgba(255, 152, 0, 0.2) !important;
}

#navbar .navbar-menu-desktop ul li a {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

#navbar .navbar-menu-desktop ul li a:hover,
#navbar .navbar-menu-desktop ul li.active > a {
  color: var(--jdih-primary-orange) !important;
}

#navbar .navbar-menu-desktop ul ul {
  background: var(--jdih-bg-surface) !important;
  border: 1px solid var(--jdih-border) !important;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5) !important;
  padding: 10px 0;
}

#navbar .navbar-menu-desktop ul ul li a {
  color: #e2e8f0 !important;
  font-size: 0.88rem;
  padding: 8px 20px;
}

#navbar .navbar-menu-desktop ul ul li a:hover {
  background: rgba(255, 152, 0, 0.12) !important;
  color: var(--jdih-primary-orange) !important;
}

.mobile-nav-toggle {
  color: #ffffff !important;
  font-size: 1.8rem;
}

/* ============================================================
   HERO BANNER & SEARCH
   ============================================================ */
.jdih-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  background: radial-gradient(circle at 50% 30%, rgba(20, 34, 63, 0.7) 0%, rgba(7, 13, 29, 0.96) 80%),
              url('/images/hero-bg.webp') center center / cover no-repeat;
  overflow: hidden;
}

.jdih-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--jdih-bg-main), transparent);
  pointer-events: none;
}

.jdih-hero__badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.35);
  color: var(--jdih-primary-orange);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.jdih-hero__title {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.jdih-hero__instansi {
  color: var(--jdih-primary-orange);
  font-weight: 800;
  display: block;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  text-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
}

.jdih-hero__subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 1rem auto 2.5rem;
}

.jdih-search-box {
  width: 100%;
  max-width: 760px;
  background: rgba(15, 24, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 10px 8px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.jdih-search-box:focus-within {
  border-color: var(--jdih-primary-orange);
  box-shadow: 0 12px 40px rgba(255, 152, 0, 0.25);
}

.jdih-search-box__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.05rem;
  padding: 8px 12px;
}

.jdih-search-box__input::placeholder {
  color: #64748b;
}

.jdih-search-box__select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  margin-right: 8px;
}

.jdih-search-box__select option {
  background: #0f182e;
  color: #ffffff;
}

.jdih-btn-orange {
  background: linear-gradient(135deg, #ff9800, #f57c00) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.jdih-btn-orange:hover {
  background: linear-gradient(135deg, #ffa726, #fb8c00) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 124, 0, 0.5) !important;
}

.jdih-hero__quick-links {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.jdih-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.jdih-hero__chip:hover {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.4);
  color: var(--jdih-primary-orange);
  text-decoration: none;
  transform: translateY(-2px);
}

.jdih-hero__chip .chip-count {
  background: var(--jdih-primary-orange);
  color: #070d1d;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
}

/* ============================================================
   COMMON SECTION STYLING
   ============================================================ */
.jdih-section {
  padding: 80px 0;
  position: relative;
}

.jdih-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.jdih-badge-overline {
  color: var(--jdih-primary-orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.jdih-section-title {
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.jdih-section-subtitle {
  color: var(--jdih-text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.jdih-accent-line {
  height: 3px;
  width: 50px;
  background: var(--jdih-primary-orange);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============================================================
   PIMPINAN DAERAH CARDS
   ============================================================ */
.leader-card {
  background: var(--jdih-bg-surface);
  border: 1px solid var(--jdih-border);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.leader-card:hover {
  transform: translateY(-6px);
  border-color: var(--jdih-border-hover);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.leader-card__photo-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.leader-card__photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.leader-card__badge-icon {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  background: var(--jdih-primary-orange);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(245, 124, 0, 0.4);
  z-index: 2;
}

.leader-card__name {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 4px;
}

.leader-card__title {
  color: var(--jdih-primary-orange);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ============================================================
   TATA KELOLA / VIDEO PROFIL SHOWCASE
   ============================================================ */
.showcase-mockup {
  background: var(--jdih-bg-surface);
  border: 1px solid var(--jdih-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.showcase-mockup::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.4), transparent, rgba(0, 194, 255, 0.3));
  border-radius: 22px;
  z-index: -1;
}

.showcase-mockup__screen {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.showcase-mockup__screen img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   STATISTIK SECTION & CHARTS
   ============================================================ */
.stat-metric-card {
  background: var(--jdih-bg-surface);
  border: 1px solid var(--jdih-border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--jdih-border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

a.stat-metric-card {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

a.stat-metric-card:hover {
  text-decoration: none !important;
  color: inherit !important;
  border-color: rgba(255, 152, 0, 0.45);
}

a.stat-metric-card:hover .stat-metric-card__value {
  color: #ffffff;
}

a.stat-metric-card:hover .stat-metric-card__label {
  color: var(--jdih-primary-orange);
}

.stat-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--jdih-primary-orange);
}

.stat-metric-card__icon-wrap {
  width: 58px;
  height: 58px;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--jdih-primary-orange);
  flex-shrink: 0;
}

.stat-metric-card__value {
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-metric-card__label {
  color: var(--jdih-text-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.jdih-chart-card {
  background: var(--jdih-bg-surface);
  border: 1px solid var(--jdih-border);
  border-radius: 18px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.jdih-chart-card__title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.jdih-chart-card__title i {
  color: var(--jdih-primary-orange);
}

/* ============================================================
   PRODUK HUKUM TERBARU CARDS
   ============================================================ */
.doc-product-card {
  background: var(--jdih-bg-surface);
  border: 1px solid var(--jdih-border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.doc-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--jdih-border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.doc-product-card__badge {
  display: inline-block;
  color: var(--jdih-primary-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.doc-product-card__title {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
}

.doc-product-card__title a {
  color: #ffffff;
  text-decoration: none;
}

.doc-product-card__title a:hover {
  color: var(--jdih-primary-orange);
}

.doc-product-card__desc {
  color: var(--jdih-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.doc-product-card__footer {
  padding-top: 14px;
  border-top: 1px solid var(--jdih-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--jdih-text-subtle);
}

.doc-product-card__action {
  color: var(--jdih-primary-orange);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.doc-product-card__action:hover {
  color: #ffa726;
  text-decoration: underline;
}

/* ============================================================
   PEMBENTUKAN PUU / TAHAPAN SECTION
   ============================================================ */
.puu-banner-section {
  position: relative;
  padding: 100px 0;
  background: radial-gradient(circle at 75% 40%, rgba(20, 34, 63, 0.7) 0%, rgba(7, 13, 29, 0.96) 80%),
              url('/images/hero-bg.webp') center center / cover no-repeat;
  overflow: hidden;
}

.puu-step-card {
  background: rgba(15, 24, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.puu-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--jdih-primary-orange);
  box-shadow: 0 12px 30px rgba(255, 152, 0, 0.2);
}

.puu-step-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 152, 0, 0.15);
  border: 2px solid var(--jdih-primary-orange);
  color: var(--jdih-primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.puu-step-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--jdih-primary-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.puu-step-card__title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.puu-step-card__desc {
  color: var(--jdih-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================================
   NEWS / PENGUMUMAN HORIZONTAL CARDS
   ============================================================ */
.news-horizontal-card {
  background: var(--jdih-bg-surface);
  border: 1px solid var(--jdih-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.news-horizontal-card:hover {
  transform: translateY(-3px);
  border-color: var(--jdih-border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.news-horizontal-card__thumb {
  width: 220px;
  min-width: 220px;
  position: relative;
  background: linear-gradient(135deg, #1b2848, #0f182e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-horizontal-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-horizontal-card__thumb-badge {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.news-horizontal-card__body {
  padding: 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-horizontal-card__category {
  color: var(--jdih-primary-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.news-horizontal-card__title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-horizontal-card__title a {
  color: #ffffff;
  text-decoration: none;
}

.news-horizontal-card__title a:hover {
  color: var(--jdih-primary-orange);
}

.news-horizontal-card__excerpt {
  color: var(--jdih-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.news-horizontal-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--jdih-text-subtle);
}

@media (max-width: 768px) {
  .news-horizontal-card {
    flex-direction: column;
  }
  .news-horizontal-card__thumb {
    width: 100%;
    min-width: 100%;
    height: 180px;
  }
}

/* ============================================================
   JDIH MODERN NEWS CARD GRID (GRID SUSUNAN BERITA)
   ============================================================ */
.jdih-news-card {
  background: #0b1528;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.jdih-news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 152, 0, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(255, 152, 0, 0.15);
}

.jdih-news-card__thumb {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #0e182e, #142242);
  overflow: hidden;
}

.jdih-news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.jdih-news-card:hover .jdih-news-card__thumb img {
  transform: scale(1.06);
}

.jdih-news-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.jdih-news-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #1e315b 0%, #0d172e 100%);
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

.jdih-news-card__fallback i {
  font-size: 2.5rem;
  color: #ff9800;
  margin-bottom: 8px;
}

.jdih-news-card__body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.jdih-news-card__meta {
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.jdih-news-card__meta i {
  color: #ff9800;
  margin-right: 6px;
}

.jdih-news-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9rem;
}

.jdih-news-card__title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.jdih-news-card__title a:hover {
  color: #ff9800;
}

.jdih-news-card__excerpt {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.jdih-news-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jdih-news-card__action {
  color: #ff9800;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.jdih-news-card__action:hover {
  color: #ffb74d;
  transform: translateX(4px);
  text-decoration: none;
}

/* ============================================================
   MEDIA VIDEO & PHOTO CARDS
   ============================================================ */
.media-card {
  background: var(--jdih-bg-surface);
  border: 1px solid var(--jdih-border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--jdih-border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.media-card__thumb {
  position: relative;
  height: 190px;
  background: #000;
  overflow: hidden;
}

.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-card:hover .media-card__thumb img {
  transform: scale(1.05);
}

.media-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--jdih-primary-orange);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.media-card:hover .media-card__play-btn {
  transform: translate(-50%, -50%) scale(1.15);
}

.media-card__body {
  padding: 18px;
  flex: 1;
}

.media-card__title {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0;
}

.media-card__title a {
  color: #ffffff;
  text-decoration: none;
}

.media-card__title a:hover {
  color: var(--jdih-primary-orange);
}

/* ============================================================
   MOBILE NAV DRAWER (DARK OVERRIDES)
   ============================================================ */
.mobile-nav-drawer {
  background-color: #070d1d !important;
  color: #e2e8f0 !important;
}

.mobile-nav-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.mobile-nav-header__title {
  color: #ffffff !important;
}

.mobile-nav-close {
  color: #ffffff !important;
}

.mobile-nav-search {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-nav-search__input {
  color: #ffffff !important;
}

.mobile-menu-link {
  color: #cbd5e1 !important;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--jdih-primary-orange) !important;
}

.mobile-menu-icon {
  color: var(--jdih-primary-orange) !important;
}

/* ============================================================
   SUBPAGE TEMPLATE FROM MOCKUP (IMAGE 1 SPECIFICATION)
   ============================================================ */
.subpage-wrapper {
  background-color: var(--jdih-bg-main) !important;
  min-height: 100vh;
  padding-bottom: 60px;
}

.subpage-header {
  position: relative;
  padding: 140px 20px 60px;
  background: radial-gradient(circle at 50% 25%, rgba(13, 23, 48, 0.85) 0%, rgba(7, 13, 29, 0.98) 95%),
              url('/images/hero-bg.webp') center center / cover no-repeat;
  text-align: center;
  border-bottom: 1px solid var(--jdih-border);
  overflow: hidden;
}

.subpage-header__title {
  color: #ffffff !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.subpage-header__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.subpage-header__breadcrumb a {
  color: var(--jdih-text-muted) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.subpage-header__breadcrumb a:hover {
  color: var(--jdih-primary-orange) !important;
}

.subpage-header__breadcrumb .sep {
  color: var(--jdih-text-subtle);
  font-size: 0.85rem;
}

.subpage-header__breadcrumb .active {
  color: var(--jdih-primary-orange) !important;
  font-weight: 600;
}

.subpage-card {
  background-color: #0d172e !important;
  border: 1px solid var(--jdih-border) !important;
  border-top: 3px solid #00c2ff !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5) !important;
  padding: 45px 50px !important;
  margin-top: -30px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.subpage-card__watermark {
  position: absolute;
  top: 30px;
  right: 25px;
  width: 260px;
  height: 260px;
  color: #ffffff;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
}

.subpage-card__watermark svg {
  width: 100%;
  height: 100%;
}

.subpage-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--jdih-border);
  position: relative;
  z-index: 2;
}

.subpage-card__badge-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(245, 124, 0, 0.4);
  flex-shrink: 0;
}

.subpage-card__badge-meta {
  display: flex;
  flex-direction: column;
}

.subpage-card__tag {
  color: var(--jdih-primary-orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.subpage-card__title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.subpage-card__accent-bar {
  height: 2px;
  width: 38px;
  background: var(--jdih-primary-orange);
  border-radius: 1px;
  margin-top: 6px;
}

.subpage-card__body {
  position: relative;
  z-index: 2;
  color: #cbd5e1 !important;
  font-size: 1.05rem;
  line-height: 1.85;
}

.subpage-card__body > p:first-of-type::first-letter {
  font-size: 3.4rem;
  float: left;
  line-height: 0.85;
  margin: 4px 12px 0 0;
  color: var(--jdih-primary-orange);
  font-weight: 800;
}

.subpage-card__body p {
  color: #cbd5e1 !important;
  margin-bottom: 1.35rem;
  line-height: 1.85;
}

.subpage-card__body ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.subpage-card__body ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: #cbd5e1 !important;
  line-height: 1.8;
}

.subpage-card__body ol > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--jdih-primary-orange);
  font-weight: 800;
  font-size: 1.05rem;
}

.subpage-card__body ol[type="a"] > li::before,
.subpage-card__body ol.alpha > li::before {
  content: counter(item, lower-alpha) ".";
  color: var(--jdih-primary-orange);
}

.subpage-card__body ul {
  padding-left: 24px;
  margin-bottom: 1.5rem;
}

.subpage-card__body ul > li {
  color: #cbd5e1 !important;
  margin-bottom: 10px;
  line-height: 1.8;
}

.subpage-card__body ul > li::marker {
  color: var(--jdih-primary-orange);
}

.subpage-card__body h1,
.subpage-card__body h2,
.subpage-card__body h3,
.subpage-card__body h4,
.subpage-card__body h5,
.subpage-card__body h6 {
  color: #ffffff !important;
  font-weight: 800;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

.subpage-card__body table {
  background: transparent !important;
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

.subpage-card__body th {
  color: var(--jdih-primary-orange) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--jdih-border) !important;
  padding: 12px 16px;
  font-weight: 700;
}

.subpage-card__body td {
  border: 1px solid var(--jdih-border) !important;
  color: #cbd5e1 !important;
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .subpage-card {
    padding: 28px 20px !important;
  }
  .subpage-header__title {
    font-size: 1.85rem !important;
  }
}

.dokumen-index-wrapper {
  background-color: var(--jdih-bg-main) !important;
  color: var(--jdih-text-muted) !important;
  min-height: 100vh;
}

.results-container {
  background-color: var(--jdih-bg-surface) !important;
  border: 1px solid var(--jdih-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
  color: var(--jdih-text-muted) !important;
}

.results-summary {
  border-bottom: 1px solid var(--jdih-border) !important;
  color: var(--jdih-text-subtle) !important;
}

.results-summary strong {
  color: var(--jdih-primary-orange) !important;
}

/* ============================================================
   DOCUMENT CARD MODERN (IMAGE 2 SPECIFICATION)
   ============================================================ */
.search-result-item.doc-card-modern,
.doc-card-modern {
  background-color: #0d172e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  margin-bottom: 22px !important;
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: block;
}

.search-result-item.doc-card-modern:hover,
.doc-card-modern:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 194, 255, 0.35) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

/* 1. Header Badge */
.doc-card-modern__header {
  margin-bottom: 12px;
}

.doc-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 152, 0, 0.12) !important;
  border: 1px solid rgba(255, 152, 0, 0.25) !important;
  color: #ff9800 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.doc-card-badge__icon {
  color: #ff9800;
  flex-shrink: 0;
}

.doc-card-badge__text {
  color: #ff9800 !important;
}

/* 2. Title */
.doc-card-modern__title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  margin: 0 0 12px 0 !important;
  text-transform: uppercase;
}

.doc-card-modern__title a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.doc-card-modern__title a:hover {
  color: #00c2ff !important;
}

/* 3. Stats */
.doc-card-modern__stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.doc-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}

.doc-stat-icon--eye {
  color: #ff9800 !important;
  font-size: 1.05rem;
}

.doc-stat-icon--cloud {
  color: #0284c7 !important;
  font-size: 1.15rem;
}

/* 4. Bottom Row: QR & Actions */
.doc-card-modern__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 640px) {
  .doc-card-modern__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

.doc-card-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 140px;
}

@media (max-width: 640px) {
  .doc-card-qr-box {
    width: 100%;
  }
}

.doc-card-qr-frame {
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-card-qr-img {
  width: 124px;
  height: 124px;
  display: block;
  border-radius: 4px;
}

.doc-card-qr-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: #94a3b8 !important;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.doc-card-qr-download i {
  color: #0284c7;
  font-size: 1rem;
}

.doc-card-qr-download:hover {
  color: #00c2ff !important;
}

.doc-card-qr-download:hover i {
  color: #00c2ff;
}

/* 5. Buttons */
.doc-card-actions-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.doc-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.doc-btn-modern i {
  font-size: 1.15rem;
}

.doc-btn-modern--download {
  background-color: #0066cc !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.doc-btn-modern--download:hover {
  background-color: #0052a3 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.45);
}

.doc-btn-modern--abstrak {
  background-color: #ff7900 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 121, 0, 0.35);
}

.doc-btn-modern--abstrak:hover {
  background-color: #e66d00 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 121, 0, 0.45);
}

/* ============================================================
   PROPORTIONAL & INDEPENDENTLY SCROLLABLE SEARCH SIDEBAR
   ============================================================ */
@media (min-width: 992px) {
  .dokumen-index-wrapper .dokumen-search-sidebar,
  .dokumen-search-sidebar {
    position: sticky !important;
    top: 90px !important;
    max-height: calc(100vh - 110px) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 100;
  }

  .dokumen-index-wrapper .dokumen-search-card,
  .dokumen-search-card {
    max-height: calc(100vh - 110px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .dokumen-index-wrapper .dokumen-search-card__header,
  .dokumen-search-card__header {
    flex-shrink: 0 !important;
  }

  .dokumen-index-wrapper .dokumen-search-card__body,
  .dokumen-search-card__body {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    /* Custom sleek modern scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 152, 0, 0.4) transparent;
  }

  .dokumen-index-wrapper .dokumen-search-card__body::-webkit-scrollbar,
  .dokumen-search-card__body::-webkit-scrollbar {
    width: 6px;
  }

  .dokumen-index-wrapper .dokumen-search-card__body::-webkit-scrollbar-track,
  .dokumen-search-card__body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }

  .dokumen-index-wrapper .dokumen-search-card__body::-webkit-scrollbar-thumb,
  .dokumen-search-card__body::-webkit-scrollbar-thumb {
    background: rgba(255, 152, 0, 0.4);
    border-radius: 4px;
  }

  .dokumen-index-wrapper .dokumen-search-card__body::-webkit-scrollbar-thumb:hover,
  .dokumen-search-card__body::-webkit-scrollbar-thumb:hover {
    background: #ff9800;
  }
}

/* Card aesthetics */
.dokumen-index-wrapper .dokumen-search-card,
.dokumen-search-card {
  background: #0d172e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 3px solid #00c2ff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden;
}

.dokumen-index-wrapper .dokumen-search-card__header,
.dokumen-search-card__header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 16px 20px !important;
}

.dokumen-index-wrapper .dokumen-search-card__title-row,
.dokumen-search-card__title-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.dokumen-index-wrapper .dokumen-search-card__icon,
.dokumen-search-card__icon {
  width: 36px !important;
  height: 36px !important;
  background: linear-gradient(135deg, #ff9800, #f57c00) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  box-shadow: 0 2px 10px rgba(245, 124, 0, 0.35) !important;
  flex-shrink: 0 !important;
}

.dokumen-index-wrapper .dokumen-search-card__title,
.dokumen-search-card__title {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  letter-spacing: -0.01em;
}

.dokumen-index-wrapper .dokumen-search-card__badge,
.dokumen-search-card__badge {
  background: rgba(255, 152, 0, 0.18) !important;
  color: #ff9800 !important;
  border: 1px solid rgba(255, 152, 0, 0.4) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  margin-left: 6px;
}

.dokumen-index-wrapper .dokumen-search-card__body,
.dokumen-search-card__body {
  background: #0d172e !important;
}

.dokumen-index-wrapper .dokumen-search-card__form,
.dokumen-search-card__form {
  padding: 18px 20px 22px !important;
  background: #0d172e !important;
}

/* Sections */
.dokumen-index-wrapper .dokumen-search-section + .dokumen-search-section,
.dokumen-search-section + .dokumen-search-section {
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.dokumen-index-wrapper .dokumen-search-section__heading,
.dokumen-search-section__heading {
  margin: 0 0 10px 0 !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--jdih-primary-orange, #ff9800) !important;
}

/* Fields & Labels */
.dokumen-index-wrapper .dokumen-search-field,
.dokumen-search-field {
  margin-bottom: 12px !important;
}

.dokumen-index-wrapper .dokumen-search-label,
.dokumen-search-label {
  display: block !important;
  margin-bottom: 5px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
}

/* Inputs & Selects */
.dokumen-index-wrapper .dokumen-search-input,
.dokumen-search-input {
  width: 100% !important;
  background: #070d1d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
}

.dokumen-index-wrapper .dokumen-search-input::placeholder,
.dokumen-search-input::placeholder {
  color: #64748b !important;
  font-size: 0.84rem !important;
}

.dokumen-index-wrapper .dokumen-search-input:hover,
.dokumen-search-input:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: #091226 !important;
}

.dokumen-index-wrapper .dokumen-search-input:focus,
.dokumen-search-input:focus {
  border-color: #00c2ff !important;
  background: #091226 !important;
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15) !important;
  color: #ffffff !important;
  outline: none !important;
}

.dokumen-index-wrapper .dokumen-search-select,
.dokumen-search-select {
  background-color: #070d1d !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23ff9800' d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 11px !important;
  padding-right: 32px !important;
  cursor: pointer;
}

.dokumen-search-select option {
  background-color: #0d172e !important;
  color: #ffffff !important;
  padding: 8px 12px !important;
}

/* Actions Buttons */
.dokumen-index-wrapper .dokumen-search-actions,
.dokumen-search-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dokumen-index-wrapper .jdih-search-submit,
.jdih-search-submit {
  background: var(--jdih-primary-orange, #ff9800) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.dokumen-index-wrapper .jdih-search-submit:hover,
.jdih-search-submit:hover {
  background: var(--jdih-primary-orange-hover, #f57c00) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(245, 124, 0, 0.45) !important;
}

.dokumen-index-wrapper .dokumen-search-reset,
.dokumen-search-reset {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.dokumen-index-wrapper .dokumen-search-reset:hover,
.dokumen-search-reset:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.dokumen-index-wrapper .dokumen-search-reset--active,
.dokumen-search-reset--active {
  color: #ff9800 !important;
  border-color: rgba(255, 152, 0, 0.4) !important;
  background: rgba(255, 152, 0, 0.08) !important;
}

/* ============================================================
   SUBMENU 2: DOKUMEN DETAIL VIEW (VIEW PERATURAN, MONOGRAFI, DLL)
   ============================================================ */
.dokumen-view-wrapper {
  background-color: var(--jdih-bg-main) !important;
  color: var(--jdih-text-muted) !important;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 60px;
}

.dokumen-view-card,
.dokumen-view-sidebar-panel {
  background: var(--jdih-bg-surface, #0f182e) !important;
  border: 1px solid var(--jdih-border, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
  color: var(--jdih-text-muted) !important;
}

.dokumen-view-card {
  padding: 35px !important;
}

.dokumen-view-sidebar-panel {
  padding: 22px 24px !important;
  margin-bottom: 20px !important;
}

.dokumen-view-sidebar-title {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dokumen-view-sidebar-title i {
  color: var(--jdih-primary-orange, #ff9800) !important;
}

.dokumen-view-title {
  color: #ffffff !important;
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
  margin-bottom: 16px !important;
}

.dokumen-view-type-badge {
  background: rgba(255, 152, 0, 0.12) !important;
  color: var(--jdih-primary-orange, #ff9800) !important;
  border: 1px solid rgba(255, 152, 0, 0.3) !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dokumen-view-status-badge--active {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

.dokumen-view-status-badge--inactive {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

.dokumen-view-label {
  color: #94a3b8 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 4px !important;
}

.dokumen-view-value {
  color: #ffffff !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
}

.dokumen-view-divider {
  border-color: rgba(255, 255, 255, 0.08) !important;
  margin: 30px 0 !important;
}

.dokumen-view-section-title {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dokumen-view-section-title i {
  color: var(--jdih-primary-orange, #ff9800) !important;
}

.dokumen-view-subsection-title {
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin: 0 0 12px 0 !important;
}

.dokumen-view-link {
  color: #e2e8f0 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.dokumen-view-link:hover {
  color: var(--jdih-primary-orange, #ff9800) !important;
}

/* Empty State Card in Document View */
.dokumen-view-wrapper .dokumen-view-empty {
  padding: 1.15rem 1.25rem !important;
  border: 1px dashed rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  text-align: center !important;
}

/* Status Peraturan Container & Badges */
.dokumen-status-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  color: #ffffff !important;
}

.dokumen-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.35);
  color: #ff9800;
  white-space: nowrap;
}

.dokumen-status-badge--danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #ef4444 !important;
}

.dokumen-status-badge--success {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #10b981 !important;
}

/* Subjek Badge */
.dokumen-view-wrapper .subjek-badge {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.dokumen-view-wrapper .subjek-badge:hover {
  background: rgba(255, 152, 0, 0.12) !important;
  border-color: rgba(255, 152, 0, 0.35) !important;
  color: #ff9800 !important;
}

/* Document Stats Pill */
.dokumen-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* TEU Table & Tables in Detail */
.dokumen-view-wrapper .teu-table td {
  border-color: rgba(255, 255, 255, 0.06) !important;
  padding: 8px 4px !important;
  color: #cbd5e1 !important;
}

.dokumen-view-wrapper .teu-table td.font-weight-600 {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.dokumen-view-wrapper .teu-table td.text-muted {
  color: #94a3b8 !important;
}

.dokumen-view-wrapper .table {
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dokumen-view-wrapper thead,
.dokumen-view-wrapper thead.bg-light {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ff9800 !important;
}

.dokumen-view-wrapper thead th {
  color: #ff9800 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dokumen-view-wrapper .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

.dokumen-view-wrapper .list-group-item {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Sidebar Lampiran di View Detail */
.dokumen-view-wrapper .sticky-top > div,
.dokumen-view-wrapper .bg-white.rounded-4 {
  background-color: var(--jdih-bg-surface, #0f182e) !important;
  border: 1px solid var(--jdih-border, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 18px !important;
  color: #ffffff !important;
}

.lampiran-link {
  background: rgba(255, 152, 0, 0.08) !important;
  border: 1px solid rgba(255, 152, 0, 0.35) !important;
  color: var(--jdih-primary-orange, #ff9800) !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.lampiran-link:hover {
  background: var(--jdih-primary-orange, #ff9800) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.lampiran-link__icon {
  color: inherit !important;
  margin-right: 8px;
}

/* ============================================================
   SUBMENU 3: TENTANG KAMI (SEKILAS SEJARAH, DASAR HUKUM, VISI, MISI, STO, SOP)
   ============================================================ */
.page-header-bg {
  background: radial-gradient(circle at 50% 30%, rgba(20, 34, 63, 0.8) 0%, rgba(7, 13, 29, 0.98) 100%) !important;
  padding: 120px 0 60px !important;
  border-bottom: 1px solid var(--jdih-border) !important;
  margin-bottom: 0 !important;
  text-align: center;
}

.page-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 2.2rem !important;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-title-section {
  background: radial-gradient(circle at 50% 30%, rgba(20, 34, 63, 0.8) 0%, rgba(7, 13, 29, 0.98) 100%) !important;
  padding: 120px 0 60px !important;
  border-bottom: 1px solid var(--jdih-border) !important;
  color: #ffffff !important;
}

.page-title-section h1 {
  color: #ffffff !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
}

.main-content-card {
  background: var(--jdih-bg-surface) !important;
  border: 1px solid var(--jdih-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4) !important;
  padding: 40px !important;
  margin-top: -30px;
  margin-bottom: 60px;
  color: #cbd5e1 !important;
  line-height: 1.8 !important;
}

.main-content-card h1,
.main-content-card h2,
.main-content-card h3,
.main-content-card h4,
.main-content-card h5,
.main-content-card h6 {
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.main-content-card p,
.main-content-card li {
  color: #cbd5e1 !important;
  font-size: 1rem;
  line-height: 1.8;
}

.main-content-card table {
  background: transparent !important;
  color: #cbd5e1 !important;
  border-color: var(--jdih-border) !important;
}

.main-content-card th {
  color: var(--jdih-primary-orange) !important;
  border-color: var(--jdih-border) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.main-content-card td {
  border-color: var(--jdih-border) !important;
  color: #cbd5e1 !important;
}

.breadcrumb-custom .breadcrumb-item a,
.breadcrumb a {
  color: var(--jdih-text-muted) !important;
  text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item a:hover,
.breadcrumb a:hover {
  color: var(--jdih-primary-orange) !important;
}

.breadcrumb-custom .breadcrumb-item.active,
.breadcrumb .active {
  color: var(--jdih-primary-orange) !important;
  font-weight: 600;
}

/* ============================================================
   SUBMENU 4: BERITA & ARTIKEL LIST & DETAIL
   ============================================================ */
.berita-index-wrapper {
  background-color: var(--jdih-bg-main) !important;
  color: var(--jdih-text-muted) !important;
  min-height: 100vh;
  padding-top: 100px;
}

.berita-sidebar__panel {
  background: var(--jdih-bg-surface) !important;
  border: 1px solid var(--jdih-border) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.berita-sidebar__title {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}

.berita-sidebar__title i {
  color: var(--jdih-primary-orange) !important;
}

.berita-search-form__input {
  background: #070d1d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 10px 0 0 10px !important;
  padding: 10px 14px !important;
}

.berita-search-form__input:focus {
  background: #070d1d !important;
  color: #ffffff !important;
  border-color: var(--jdih-primary-orange) !important;
}

.berita-search-form__submit {
  background: var(--jdih-primary-orange) !important;
  border-color: var(--jdih-primary-orange) !important;
  color: #ffffff !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 10px 18px !important;
}

.berita-page-header__title {
  color: #ffffff !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
}

.berita-page-header__count {
  background: rgba(255, 152, 0, 0.12) !important;
  color: var(--jdih-primary-orange) !important;
  border: 1px solid rgba(255, 152, 0, 0.3) !important;
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.85rem;
}

.news-card {
  background: var(--jdih-bg-surface) !important;
  border: 1px solid var(--jdih-border) !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--jdih-border-hover) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
}

.news-card__title a {
  color: #ffffff !important;
}

.news-card__title a:hover {
  color: var(--jdih-primary-orange) !important;
}

.news-card__date {
  color: var(--jdih-primary-orange) !important;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-card__excerpt {
  color: var(--jdih-text-muted) !important;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Detail Berita */
.berita-detail-wrapper {
  background-color: var(--jdih-bg-main) !important;
  padding-top: 100px;
  min-height: 100vh;
}

.berita-detail-card {
  background: var(--jdih-bg-surface) !important;
  border: 1px solid var(--jdih-border) !important;
  border-radius: 20px !important;
  padding: 40px !important;
  color: #cbd5e1 !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4) !important;
}

.berita-detail-card h1,
.berita-detail-card h2,
.berita-detail-card h3 {
  color: #ffffff !important;
  font-weight: 800;
}

/* ============================================================
   SUBMENU 5: FORMULIR, SURVEY, KONTAK, BUKU TAMU & AUTH
   ============================================================ */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  background-color: #070d1d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  background-color: #070d1d !important;
  border-color: var(--jdih-primary-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.25) !important;
}

.form-label,
label {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin-bottom: 6px !important;
}

.card {
  background-color: var(--jdih-bg-surface) !important;
  border: 1px solid var(--jdih-border) !important;
  color: var(--jdih-text-muted) !important;
}

.card-header {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid var(--jdih-border) !important;
  color: #ffffff !important;
}

.card-footer {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid var(--jdih-border) !important;
}

/* ============================================================
   PAGINATION GLOBALS
   ============================================================ */
.pagination {
  gap: 6px;
}

.pagination .page-link {
  background-color: var(--jdih-bg-surface) !important;
  border: 1px solid var(--jdih-border) !important;
  color: #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  border-color: var(--jdih-primary-orange) !important;
  color: var(--jdih-primary-orange) !important;
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background-color: var(--jdih-primary-orange) !important;
  border-color: var(--jdih-primary-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.35) !important;
}

.pagination .page-item.disabled .page-link {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--jdih-border) !important;
  color: #475569 !important;
}

/* ============================================================
   TABLES & DETAILVIEW IN DARK THEME
   ============================================================ */
table.table {
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

table.table-bordered,
table.table-bordered th,
table.table-bordered td {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

table.table th {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: var(--jdih-primary-orange) !important;
  font-weight: 700;
}

table.table td {
  background-color: transparent !important;
  color: #cbd5e1 !important;
}

table.detail-view {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

table.detail-view th {
  width: 28%;
  color: #ff9800 !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  font-weight: 600;
  vertical-align: middle;
}

table.detail-view td {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  vertical-align: middle;
}



