/* ==========================================================
   Bapelitbangda Kab. Padang Lawas Utara — Custom Website CSS
   Rekonstruksi tema Metronic 8 (mirip bappeda.kepriprov.go.id)
   ========================================================== */

:root {
  --bs-primary: #0b7d3e;
  --bs-primary-active: #06522b;
  --bs-primary-rgb: 11, 125, 62;
  --bs-success-ligh: #d9f6e1;
  --bs-secondary: #ed9c00;
  --bs-secondary-rgb: 237, 156, 0;
  --text: #071437;
  --text-muted: #5e6278;
  --bs-app-bg-color: #f3f5f9;
  --kt-header: 60px;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bs-app-bg-color);
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
}

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

.text-primary { color: var(--bs-primary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.text-info { color: #00ade6 !important; }

.bg-primary { background-color: var(--bs-primary) !important; }
.bg-primary-active { background-color: var(--bs-primary-active) !important; }
.bg-secondary { background-color: var(--bs-secondary) !important; }

.btn-primary { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--bs-primary-active); border-color: var(--bs-primary-active); }
.btn-secondary { background-color: var(--bs-secondary); border-color: var(--bs-secondary); color: #fff; }

.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}
.btn-outline-primary:hover, .btn-outline-primary.active, .btn-outline-primary:focus {
  background-color: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

.border-primary { border-color: var(--bs-primary) !important; }
.border-secondary { border-color: var(--bs-secondary) !important; }

.link-primary { color: var(--bs-primary) !important; }
.text-body { color: var(--text) !important; }
.text-muted { color: var(--text-muted) !important; }
.opacity-100-hover:hover { opacity: 1 !important; }

/* ---------- Utilities (Metronic-like) ---------- */
.fs-7 { font-size: 0.95rem !important; }
.fs-8 { font-size: 0.85rem !important; }
.fs-9 { font-size: 0.75rem !important; }
.fs-2x { font-size: 1.75rem !important; }
.fs-2hx { font-size: 1.875rem !important; }
.fs-3x { font-size: 2.25rem !important; }
.fs-3hx { font-size: 2.5rem !important; }
@media (min-width: 768px) {
  .fs-md-5 { font-size: 1.15rem !important; }
  .fs-md-6 { font-size: 1.05rem !important; }
  .fs-md-7 { font-size: 0.95rem !important; }
  .fs-md-8 { font-size: 0.85rem !important; }
  .fs-md-2x { font-size: 2rem !important; }
  .fs-md-3x { font-size: 2.5rem !important; }
}
@media (min-width: 992px) {
  .fs-lg-4 { font-size: 1.25rem !important; }
  .fs-lg-5 { font-size: 1.15rem !important; }
  .fs-lg-6 { font-size: 1.05rem !important; }
  .fs-lg-9 { font-size: 0.75rem !important; }
  .fs-lg-2x { font-size: 2.25rem !important; }
  .fs-lg-3x { font-size: 3rem !important; }
}

.card-rounded { border-radius: 12px !important; }
.card-stretch { height: 100%; }
.mh-lg-300px { max-height: 300px; }
@media (min-width: 992px) { .mh-lg-300px { max-height: 300px !important; } }

.hover-elevate-up { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-elevate-up:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); }

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.img-cover {
  object-fit: contain;
  object-position: center;
  background-color: var(--bs-app-bg-color);
}

/* ratio helpers */
.card-ratio-4-5 { aspect-ratio: 4 / 5 !important; }
.card-ratio-4-6 { aspect-ratio: 4 / 6 !important; }
.card-ratio-4x5 { aspect-ratio: 4 / 5 !important; }

/* ---------- Symbols ---------- */
.symbol { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; }
.symbol-circle .symbol-label, .symbol-circle {
  border-radius: 50% !important;
}
.symbol-25px { width: 25px; height: 25px; }
.symbol-30px { width: 30px; height: 30px; }
.symbol-40px { width: 40px; height: 40px; }
.symbol-45px { width: 45px; height: 45px; }
.symbol-55px { width: 55px; height: 55px; }
.symbol-25px .symbol-label { width: 25px; height: 25px; }
.symbol-30px .symbol-label { width: 30px; height: 30px; }
.symbol-40px .symbol-label { width: 40px; height: 40px; }
.symbol-45px .symbol-label { width: 45px; height: 45px; }
.symbol-55px .symbol-label { width: 55px; height: 55px; }
.symbol-label { display: flex; align-items: center; justify-content: center; }

.bg-light-secondary { background-color: #fdf3df !important; }

/* ---------- App layout ---------- */
.app-root { min-height: 100vh; }
.app-page { min-height: 100vh; display: flex; flex-direction: column; }
.app-wrapper, .app-main { flex: 1 1 auto; }

/* ---------- Header ---------- */
#kt_app_header.app-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--bs-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  min-height: var(--kt-header);
}
#kt_app_header.app-header.app-header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(6, 82, 43, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
body.header-solid #kt_app_header.app-header-overlay {
  background-color: var(--bs-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.app-header-overlay .header-search {
  background-color: var(--bs-primary-active);
}
#kt_app_header_container {
  min-height: var(--kt-header);
}
#main-logo { height: 46px; }

/* ---------- Menu ---------- */
#kt_app_header_menu {
  display: flex;
  align-items: stretch;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#kt_app_header_menu .menu-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0.4rem;
}
#kt_app_header_menu .menu-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}
#kt_app_header_menu .menu-link:hover,
#kt_app_header_menu .menu-item:hover > .menu-link,
#kt_app_header_menu .menu-item.show > .menu-link,
#kt_app_header_menu .menu-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}
#kt_app_header_menu .menu-arrow { display: none; }

#kt_app_header_menu .menu-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  padding: 0.75rem 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}
#kt_app_header_menu .menu-item:hover .menu-sub,
#kt_app_header_menu .menu-sub.show {
  visibility: visible;
  opacity: 1;
}
#kt_app_header_menu .menu-sub .menu-item { padding: 0; width: 100%; }
#kt_app_header_menu .menu-sub .menu-link {
  color: #5e6278;
  font-weight: 600;
  width: 100%;
  padding: 0.6rem 1.25rem;
  border-radius: 0;
  display: flex;
  align-items: center;
}
#kt_app_header_menu .menu-sub .menu-link:hover {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.08);
}
.menu-bullet .bullet { display: inline-block; width: 8px; height: 8px; }
.bullet-dot { background-color: var(--bs-secondary); border-radius: 50%; }
#kt_app_header_menu .menu-sub .menu-bullet { margin-right: 0.55rem; display: inline-flex; }

/* ---------- Navbar actions ---------- */
.app-navbar { display: flex; align-items: center; }
.app-navbar-item { display: flex; align-items: center; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; }
.btn-sm.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn-custom { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-custom:hover, .btn-custom.active { background: var(--bs-secondary); border-color: var(--bs-secondary); }

.header-search {
  position: absolute;
  top: calc(100% + 4px);
  left: auto;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: var(--bs-primary-active);
  padding: 0.8rem 1.25rem;
  display: none;
  z-index: 998;
}
@media (max-width: 600px) {
  .header-search { width: calc(100vw - 2rem); }
}
.header-search.show { display: block; }
.header-search .form-control {
  padding-left: 3rem;
  border-radius: 8px;
}
.header-search .form-control:focus { box-shadow: 0 0 0 0.2rem rgba(237, 156, 0, 0.25); }
.header-search .fa-search { position: absolute; top: 50%; left: 2rem; transform: translateY(-50%); }

/* ---------- Mobile fullscreen menu ---------- */
#kt_app_header_menu_toggle .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
#kt_app_header_menu_toggle .menu-item { padding: 0.15rem 0; }
#kt_app_header_menu_toggle .menu-link {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text);
  font-weight: 600;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eef0f4;
}
#kt_app_header_menu_toggle .menu-item > .menu-link { font-size: 1.1rem; }
#kt_app_header_menu_toggle .menu-sub { display: none; }
#kt_app_header_menu_toggle .menu-item.open .menu-sub { display: block; }
#kt_app_header_menu_toggle .menu-sub .menu-link {
  font-size: 0.95rem;
  padding-left: 1.25rem;
  color: #5e6278;
  border-bottom: 0;
}

/* ---------- Hero ---------- */
.bg-video-wrapper {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-color: #05301f;
}
.banner-ratio {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
}
video.banner-ratio,
.banner-ratio video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .banner-ratio {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
  video.banner-ratio,
  .banner-ratio video {
    position: static;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
.bg-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.45);
}

#berita-populer-slider { overflow: hidden; opacity: 0; transition: opacity 0.5s ease-in-out; padding-bottom: 10px; }
#berita-populer-slider .swiper-wrapper { display: flex; flex-wrap: nowrap; align-items: stretch; }
#berita-populer-slider .swiper-slide { width: auto; height: auto; }
#berita-populer-slider .card-body {
  width: 100%;
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 0;
}
#berita-populer-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}
#berita-populer-slider .card-body .overlay-layer {
  position: absolute;
  left: 10px;
  right: 10px;
  top: auto;
  bottom: 10px;
  height: auto;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  justify-content: flex-start;
}
#berita-populer-slider .card-body .overlay-layer > div { width: 100%; }

/* Kajian slider: overlay gradasi agar gambar jelas */
#kajian-terbaru-slider .card .overlay-layer {
  background: linear-gradient(to top, rgba(6, 82, 43, 0.92) 0%, rgba(6, 82, 43, 0.6) 45%, rgba(6, 82, 43, 0.15) 75%, rgba(6, 82, 43, 0) 100%) !important;
  backdrop-filter: none;
  justify-content: flex-end;
}
#kajian-terbaru-slider .card .overlay-layer > div { width: 100%; }

/* ---------- Overlay cards ---------- */
.overlay { position: relative; display: block; }
.overlay-wrapper { width: 100%; height: auto; display: block; }
.overlay-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
  padding: 1rem;
}
.overlay-layer.glass-card {
  background: rgba(6, 82, 43, 0.7);
  backdrop-filter: blur(3px);
}

/* ---------- Section headings ---------- */
.kt-section-header .kt-section-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
}

/* ---------- Profil section ---------- */
#section-profile {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 500px;
  background-color: var(--bs-primary);
  background-image:
    linear-gradient(to bottom, rgba(var(--bs-primary-rgb), 0.55), rgba(6, 82, 43, 0.92));
  scroll-margin-top: calc(var(--kt-header) + 12px);
}
#section-profile .kt-profile-bg {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle at 20% 30%, rgba(237, 156, 0, 0.12) 0%, transparent 40%);
}
#section-profile > .app-container { position: relative; z-index: 3; }
#particles-js { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

.profile-photo {
  position: relative;
}
.custom-badge-position { bottom: 10px; right: 2px; }

/* ---------- Utility: clamp text ---------- */
.kt-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- News cards ---------- */
.news-title-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-title h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--text);
  font-weight: 700;
}

/* ---------- Layanan card ---------- */
.card-layanan {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-layanan:hover { transform: translateY(-4px); }

/* ---------- Footer ---------- */
#kt_app_footer .kt-footer-main {
  background-color: var(--bs-primary-active);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 100%),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.05) 3px, transparent 4px),
    radial-gradient(circle at 24% 45%, rgba(255, 255, 255, 0.04) 2px, transparent 3px),
    radial-gradient(circle at 62% 15%, rgba(255, 255, 255, 0.05) 2px, transparent 3px),
    radial-gradient(circle at 78% 55%, rgba(255, 255, 255, 0.04) 3px, transparent 4px),
    radial-gradient(circle at 38% 70%, rgba(255, 255, 255, 0.04) 2px, transparent 3px);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}
#kt_app_footer .kt-footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}
#kt_app_footer .kt-footer-links a:hover { color: #ffffff; }
#kt_app_footer .separator {
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
}
#kt_app_footer .kt-footer-bottom { background-color: var(--bs-primary); }
#kt_app_footer .kt-footer-socials a:hover .symbol-label {
  background: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}
#kt_app_footer .kt-footer-socials a:hover span.fs-7 {
  color: #ffffff;
  opacity: 1;
}

/* ---------- Breadcrumb / Page header (inner pages) ---------- */
.kt-page-header {
  background: linear-gradient(to right, var(--bs-primary-active), var(--bs-primary));
  padding: 2.25rem 0;
}
.kt-page-header .kt-breadcrumb .breadcrumb {
  margin-bottom: 0;
}
.kt-page-header .kt-breadcrumb .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.9rem;
}
.kt-page-header .kt-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}
.kt-page-header .kt-breadcrumb .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}
.kt-page-title {
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Sidebar widgets ---------- */
.dm-widget {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef0f4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.dm-widget-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eef0f4;
  font-weight: 700;
  color: var(--text);
}
.dm-widget-body { padding: 1rem 1.25rem; }
.dm-list { list-style: none; margin: 0; padding: 0; }
.dm-list li { margin-bottom: 0.35rem; }
.dm-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5e6278;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dm-list a:hover, .dm-list a.active {
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
}
.dm-list .dm-badge {
  background: #f1f1f4;
  border-radius: 50rem;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
}

/* ---------- Dokumen / Kajian list ---------- */
.dm-doc-item {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.dm-doc-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.dm-doc-nomor {
  color: var(--bs-secondary);
  font-weight: 700;
  font-size: 0.85rem;
}
.dm-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--bs-primary);
  font-weight: 600;
  border-radius: 8px;
  margin: 0 0.15rem;
}
.pagination .page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}
.pagination .page-item.disabled .page-link { color: #b5b5c3; }

/* ---------- Scrolltop ---------- */
.scrolltop {
  position: fixed;
  bottom: 22px;
  right: 30px;
  z-index: 1005;
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-secondary);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.scrolltop:hover { opacity: 0.85; }
.scrolltop.show { display: flex; }

/* ---------- Content typography ---------- */
.dm-content ul, .dm-content ol { padding-left: 1.25rem; }
.dm-content img { max-width: 100%; height: auto; border-radius: 10px; }
.dm-content h4, .dm-content h5 { color: var(--bs-primary); font-weight: 700; }
.dm-content a:not(.btn) { color: var(--bs-primary); text-decoration: underline; }

/* ---------- Search page ---------- */
.dm-search-input {
  border-radius: 10px;
  padding: 0.9rem 1rem 0.9rem 3rem;
}
.dm-search-icon {
  position: absolute;
  top: 50%;
  left: 1.15rem;
  transform: translateY(-50%);
  color: var(--bs-primary);
  z-index: 5;
  pointer-events: none;
}

/* ---------- Galeri ---------- */
.dm-galeri-item { overflow: hidden; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }

/* Responsive header */
@media (max-width: 991.98px) {
  #kt_app_header_wrapper .menu { display: none; }
  #main-logo { height: 40px; }
  #berita-populer-slider .swiper-slide { width: auto; }
}
@media (max-width: 767.98px) {
  .dr-nospace h3 { text-align: center; }
}
/* ---------- Spacing utilities tambahan (melengkapi Bootstrap 0-5) ---------- */
/* 1 unit = 0.25rem, mengikuti skala Bootstrap */
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mt-16 { margin-top: 4rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.my-12 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.pt-8 { padding-top: 2rem !important; }
.pt-10 { padding-top: 2.5rem !important; }
.pt-14 { padding-top: 3.5rem !important; }
.pt-16 { padding-top: 4rem !important; }
.pb-10 { padding-bottom: 2.5rem !important; }
.pb-12 { padding-bottom: 3rem !important; }
.pb-16 { padding-bottom: 4rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

@media (min-width: 768px) {
  .mt-md-16 { margin-top: 4rem !important; }
  .mb-md-10 { margin-bottom: 2.5rem !important; }
  .mb-md-12 { margin-bottom: 3rem !important; }
  .pb-md-12 { padding-bottom: 3rem !important; }
  .py-md-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-md-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .py-md-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
}

@media (min-width: 992px) {
  .mb-lg-14 { margin-bottom: 3.5rem !important; }
  .pt-lg-10 { padding-top: 2.5rem !important; }
  .pt-lg-16 { padding-top: 4rem !important; }
  .pb-lg-16 { padding-bottom: 4rem !important; }
  .py-lg-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .py-lg-18 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
  .py-lg-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}

/* ==========================================================
   PREMIUM POLISH — Bapelitbangda Paluta
   ========================================================== */

/* ---------- Standardisasi variabel tema legacy ---------- */
:root {
  --surface-color: #ffffff;
  --accent-color: #0b7d3e;
  --default-color: #071437;
  --heading-color: #06522b;
  --contrast-color: #ffffff;
  --background-color: #f3f5f9;
  --bs-primary-active: #06522b;
}

::selection {
  background-color: rgba(var(--bs-primary-rgb), 0.18);
  color: var(--bs-primary-active);
}
mark,
.dm-content mark {
  background-color: rgba(237, 156, 0, 0.35);
  color: inherit;
  padding: 0 4px;
  border-radius: 4px;
}
:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* ---------- Section header dengan aksen ---------- */
.kt-section-header .kt-section-title,
.kt-section-title .kt-section-title-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.kt-section-header .kt-section-title::before {
  content: '';
  width: 5px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-primary));
  flex-shrink: 0;
}
.kt-section-title-sub {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Card premium hover "blanket" ---------- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(7, 20, 55, 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
}
.card-layanan { border: 0; box-shadow: 0 6px 20px rgba(7, 20, 55, 0.08); }
.card-layanan:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(6, 82, 43, 0.25); }

/* ---------- Konten artikel (tabel, kutipan, kode) ---------- */
.dm-content table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.dm-content table thead th {
  background: var(--bs-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1rem;
  text-align: left;
}
.dm-content table tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #eef0f4;
  vertical-align: top;
}
.dm-content table tbody tr:nth-child(even) { background: #f8fafc; }
.dm-content blockquote {
  border-left: 4px solid var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.06);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-muted);
}
.dm-content pre {
  background: #0f1931;
  color: #d7e0f5;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.875rem;
}
.dm-content code {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary-active);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.875em;
}
.dm-content pre code { background: none; color: inherit; padding: 0; }

/* ---------- Form control premium ---------- */
.form-control:focus, .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

/* ---------- Pagination polish ---------- */
.pagination .page-link {
  border: 1px solid #eef0f4;
  background: #fff;
  padding: 0.5rem 0.75rem;
  min-width: 38px;
  text-align: center;
}
.pagination .page-link:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
}
.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

/* ---------- Tombol berbagi sosial ---------- */
.btn-social {
  border: 0;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
}
.btn-social:hover { transform: translateY(-2px); }
.btn-social.btn-sm { padding: 0.4rem 0.85rem; }

/* ---------- Galeri hover zoom ---------- */
.dm-galeri-item img {
  transition: transform 0.4s ease, filter 0.4s ease;
}
.dm-galeri-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.92);
}
.dm-galeri-item .video-play {
  transition: transform 0.3s ease;
}
.dm-galeri-item:hover .video-play { transform: scale(1.12); }

/* ---------- Strip statistik beranda ---------- */
.kt-stats-strip {
  background: linear-gradient(to right, var(--bs-primary-active), var(--bs-primary));
  border-radius: 16px;
  padding: 1.5rem 2rem;
}
.kt-stats-strip .kt-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.kt-stats-strip .kt-stat-label {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.85rem;
}
.kt-stats-strip .kt-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- Scrolltop perbaikan ---------- */
.scrolltop {
  display: none;
}
.scrolltop.show {
  display: flex !important;
}
@media (max-width: 767.98px) {
  .scrolltop { right: 18px; bottom: 18px; width: 36px; height: 36px; }
}

/* ---------- Legacy page-title memori (halaman port) ---------- */
.page-title { display: none; }

/* ---------- Tabel responsif ---------- */
.table-responsive { border-radius: 10px; }

/* ---------- Page header subtitle ---------- */
.kt-page-subtitle { max-width: 640px; line-height: 1.6; }

/* ---------- Filter bar (koleksi / regulasi) ---------- */
.kt-filter-card {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(7, 20, 55, 0.06);
  padding: 1.25rem 1.5rem;
}

/* ---------- Kartu koleksi ---------- */
.kt-book-card {
  border: 1px solid #eef0f4;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.kt-book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(7, 20, 55, 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
}
.kt-book-card .kt-book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eef1f4;
}
.kt-book-card .kt-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.kt-book-card:hover .kt-book-cover img { transform: scale(1.05); }
.kt-book-card .kt-book-cover .kt-book-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bs-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.25rem 0.7rem;
  border-radius: 50rem;
}
.kt-book-card .kt-book-body {
  padding: 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kt-book-card .kt-book-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kt-book-card .kt-book-body h3 a { color: var(--text); }
.kt-book-card .kt-book-body h3 a:hover { color: var(--bs-primary); }
.kt-book-card .kt-book-body .kt-book-author {
  color: #5e6278;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem;
}
.kt-book-card .kt-book-body .kt-book-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: #5e6278;
  font-size: 0.8rem;
  font-weight: 600;
  border-top: 1px dashed #eef0f4;
}
.kt-book-card .kt-book-meta i { color: var(--bs-secondary); margin-right: 0.3rem; }

/* ---------- Kartu regulasi ---------- */
.kt-reg-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.kt-reg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(7, 20, 55, 0.1);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
}
.kt-reg-date {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--bs-primary), var(--bs-primary-active));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.kt-reg-date .month { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.kt-reg-date .day { font-size: 1.5rem; font-weight: 800; }
.kt-reg-date .year { font-size: 0.75rem; font-weight: 600; opacity: 0.85; }