/* Custom styles for Dinas Bina Marga */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,600;1,700;1,800&display=swap');

:root{
    --plyr-color-main:#f59e0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  word-spacing: 0.05em;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f3f7ff;
  color: #0f1b3d;
  -webkit-font-smoothing: antialiased;
}


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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.heading-italic {
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.heading {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.bg-navy {
  background-color: #1a2a5c;
}

.bg-navy-dark {
  background-color: #16234d;
}

.bg-white {
  background-color: #fff;
}

.text-navy {
  color: #1a2a5c;
}

.text-yellow {
  color: #FFD400;
}

.text-yellow-500 {
  color: #f59e0b;
}

.text-yellow-600 {
  color: #d97706;
}

.bg-yellow {
  background-color: #FFD400;
}

.bg-yellow-400 {
  background-color: #FFD400;
}

.bg-sky {
  background: linear-gradient(180deg, #cfe3ff 0%, #f3f7ff 100%);
}

.btn-yellow {
  background: #FFD400;
  color: #1a2a5c;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .2s, transform .2s;
  box-shadow: 0 6px 14px rgba(255, 212, 0, .25);
}

.btn-yellow:hover {
  background: #ffdf3a;
  transform: translateY(-1px);
}

.btn-outline-navy {
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid #1a2a5c;
  color: #1a2a5c;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .2s, color .2s;
}

.btn-outline-navy:hover {
  background: #1a2a5c;
  color: #fff;
}

/*.grid-overlay {
  background-image: repeating-linear-gradient(45deg, #1a2a5c 0 1px, transparent 1px 40px),
    repeating-linear-gradient(-45deg, #1a2a5c 0 1px, transparent 1px 40px);
  opacity: .1;
}*/

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

.stat-card {
  background: linear-gradient(135deg, #3f518d 0%, #16234d 100%);
  border-radius: 18px;
  color: #fff;
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 42, 92, .25);
}

/* Nav */
.nav-pill {
  background: #1a2a5c;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  box-shadow: 0 14px 24px rgba(15, 27, 61, .6);
}

header.site-header {
  position: sticky;
  top: 30px;
  z-index: 999;
  padding: 0 16px;
}

.map-header.site-header {
  margin-top: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  color: #fff;
  font-weight: 400;
  padding: 6px 12px;
  transition: color .2s;
}

.nav-link:hover {
  color: #FFD400;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #FFD400;
  border-radius: 2px;
}

.menu-btn {
  display: none;
  color: #fff;
}

/* Logo */
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-pu img{
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-shield img{
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-bmpr img{
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
}

/* Containers */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e0e9ff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.shadow-md {
  box-shadow: 0 8px 20px rgba(15, 27, 61, .08);
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  margin-top: -84px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgb(255, 255, 255, 1));
  pointer-events: none;
}

.hero-bg {
  position:relative;
  overflow:hidden;

  background-size:cover;
  background-position: center;
  background-repeat:no-repeat;

  transition:background-image .8s ease-in-out;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
}

.hero-img-wrap {
  position: relative;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
}

.hero-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 42, 92, .6), transparent 50%);
}

.hero-labels {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 3;
}

.label-card {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.label-card .name {
  color: #1a2a5c;
  font-weight: 700;
  font-size: 13px;
}

.label-card .title {
  color: rgba(26, 42, 92, .7);
  font-size: 11px;
}

.badge-yellow {
  display: inline-block;
  background: rgba(255, 212, 0, 0.596);
  border: 1px solid #FFD400;
  color: #1a2a5c;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 24px;
  border-radius: 999px;
}

.hero h1 {
  font-size: 55px;
  color: #1a2a5c;
  margin: 16px 0 8px;
}

.hero h1 .accent {
  color: #1d4ed8;
}

.hero h2 {
  font-size: 48px;
  color: #1a2a5c;
  margin: 0 0 32px;
}

.hero h2 .accent {
  color: #f59e0b;
}

.hero p.lead {
  color: rgba(26, 42, 92, .8);
  margin: 0 0 12px;
  max-width: 420px;
  font-weight: 500;
}

.mini-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 16px;
  padding: 12px 16px;
  max-width: 260px;
}

.mini-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #dbeafe;
  color: #1a2a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-card .txt {
  font-size: 13px;
  font-weight: 600;
  color: #1a2a5c;
  line-height: 1.3;
}

.hero-ctas {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.num-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  position: relative;
  z-index: 2;
}

.num-card {
  grid-column: span 1;
  background: rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(15, 27, 61, .06);
}

.num-card .num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #FFD400;
  color: #1a2a5c;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 12px;
}

.num-card h3 {
  color: #1a2a5c;
  margin: 0 0 8px;
  font-size: 18px;
}

.num-card p {
  color: rgba(26, 42, 92, .7);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

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

.section.img-bg {
  position: relative;
  color: #fff;
}

.section.img-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px; /* tinggi area fade, sesuaikan kebutuhan */
  background: linear-gradient(to bottom, rgba(243, 247, 255,1), rgba(243, 247, 255,0));
  pointer-events: none; /* biar tidak mengganggu klik tombol */
  z-index: 1;
}

.section.img-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(243, 247, 255,1), rgba(243, 247, 255,0));
  pointer-events: none;
  z-index: 1;
}

.section-title {
  font-size: 36px;
  color: #1a2a5c;
  text-align: center;
  margin: 0 0 8px;
  z-index: 2;
}

.section-title .green {
  color: #16a34a;
}

.section-lead {
  text-align: center;
  color: rgba(26, 42, 92, .7);
  max-width: 640px;
  margin: 12px auto 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #FFD400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.stat-card .label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 26px;
  font-weight: 700;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-featured {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  transition: box-shadow .25s;
  display: block;
}

.news-featured:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

.news-featured img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .5s;
}

.news-featured:hover img {
  transform: scale(1.05);
}

.news-featured .body {
  padding: 20px;
}

.news-featured h3 {
  color: #1a2a5c;
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(26, 42, 92, .6);
  font-size: 13px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  transition: box-shadow .25s;
}

.news-item:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.news-item img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.news-item h3 {
  color: #1a2a5c;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.section-head h2 {
  color: #1a2a5c;
  margin: 0;
  font-size: 36px;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.section-divider h2 {
  margin: 0;
  color: #1a2a5c;
  font-size: 36px;
}

.section-divider .line {
  flex: 1;
  height: 1px;
  background: rgba(26, 42, 92, .2);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: linear-gradient(135deg, #3f518d 0%, #16234d 100%);
  border-radius: 24px;
  padding: 28px;
  color: #fff;
  transition: transform .25s;
  box-shadow: 0 10px 24px rgba(15, 27, 61, .18);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255, 255, 0, 0.3);
  color: #FFD400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.service-card p {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px;
  min-height: 70px;
}

.service-card .btn-yellow {
  width: 100%;
  justify-content: center;
}

/* Announcement */
.announce-box {
  background: linear-gradient(135deg, #3f518d 0%, #16234d 100%);
  border-radius: 28px;
  padding: 40px;
  color: #fff;
}

.announce-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.announce-row:last-child {
  border-bottom: none;
}

.announce-row .day {
  font-weight: 700;
}

.announce-row .time {
  margin-top: 6px;
  display: flex;
  color: rgba(255, 255, 255, .7);
  align-items: center;
  font-size: 12px;
}

.announce-row .day .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -3px; /* Menyeimbangkan posisi ikon dengan teks */
  margin-right: 6px;
}

.announce-row .time .icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -3px; /* Menyeimbangkan posisi ikon dengan teks */
  margin-right: 6px;
}

.announce-row h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.announce-row p {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  margin: 0;
}

.announce-row .more {
  color: #FFD400;
  font-weight: 700;
  cursor: pointer;
}

/* ===== ANNOUNCEMENT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 53, 0);
  /* backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px); */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, background-color .2s ease, visibility 0s linear .2s;
  /* transition: opacity .35s ease, background-color .35s ease, backdrop-filter .35s ease, visibility 0s linear .35s; */
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  background: rgba(15, 23, 53, .85);
  backdrop-filter: none; /* Efek blur saat modal terbuka kita hilangkan dulu */
  /*backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);*/
  transition: opacity .2s ease, background-color .2s ease, visibility 0s linear 0s;
  /* transition: opacity .35s ease, background-color .35s ease, backdrop-filter .35s ease, visibility 0s linear 0s; */
}

.modal {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15,23,53,.45), 0 8px 24px rgba(15,23,53,.18);
  transform: translateY(40px) scale(.94);
  opacity: 0;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  position: relative;
  background: linear-gradient(135deg, #1a2a5c 0%, #2c3f7a 60%, #1a2a5c 100%);
  color: #fff;
  padding: 32px 32px 28px;
  overflow: clip;
}
.modal-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,212,0,.25) 0%, transparent 70%);
  pointer-events: none;
}
.modal-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 30px),
                    repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 30px);
  pointer-events: none;
}
.modal-header > * { position: relative; z-index: 1; }
.modal-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: #FFD400;
  color: #1a2a5c;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(255,212,0,.4);
}
.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 13px;
}
.modal-meta .chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.95);
  /* backdrop-filter: blur(4px); */
}
.modal-meta .chip i { color: #FFD400; }
.modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
  z-index: 2;
  /* backdrop-filter: blur(6px); */
}
.modal-close:hover {
  background: rgba(255,255,255,.28);
  transform: rotate(90deg);
}

.modal-body {
  padding: 28px 32px 12px;
  overflow-y: auto;
  flex: 1;
  color: rgba(15,27,61,.85);
  line-height: 1.75;
  font-size: 15px;
}
.modal-body p { margin: 0 0 14px; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.modal-info-row.hidden { 
  display: none; 
}
.modal-info-card {
  background: linear-gradient(180deg, #f3f7ff 0%, #eaf1ff 100%);
  border: 1px solid #d9e4ff;
  border-radius: 14px;
  padding: 8px 14px;
}
.modal-info-card .lbl {
  font-size: 11px;
  color: rgba(26,42,92,.6);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
}
.modal-info-card .lbl i { color: #d97706; }
.modal-info-card .val {
  font-size: 15px;
  font-weight: 700;
  color: #1a2a5c;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 32px 24px;
  border-top: 1px solid #eaf1ff;
  flex-wrap: wrap;
}
.modal-footer .left-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.btn-ghost {
  background: transparent;
  border: 1px solid #d9e4ff;
  color: #1a2a5c;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color .15s, border-color .15s;
}
.btn-ghost:hover { background: #f3f7ff; border-color: #1a2a5c; }

/* Scrollbar styling */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: #d9e4ff; border-radius: 999px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: #1a2a5c; }

/* lock body scroll when modal open */
body.modal-open { overflow: hidden; }

/* Make Selengkapnya look like proper button */
.announce-row .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: gap .2s ease, color .2s ease;
}
.announce-row .more:hover { gap: 8px; color: #fff; }

/* Responsive - bottom sheet on mobile */
@media (max-width: 640px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.34,1.2,.64,1), opacity .3s ease;
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-header { padding: 24px 24px 22px; overflow: clip; }
  .modal-title { font-size: 20px; }
  .modal-body { padding: 22px 24px 8px; font-size: 14px; }
  .modal-footer { padding: 14px 24px 20px; }
  .modal-info-row { grid-template-columns: 1fr; }
  /* Mobile drag handle */
  .modal::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 4px;
    background: rgba(255,255,255,.4);
    border-radius: 999px;
    z-index: 3;
  }
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  color: #1a2a5c;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s;
}

.pagination button:hover {
  background: #fff7d6;
}

.pagination button.active {
  background: #1a2a5c;
  color: #fff;
}

.pagination.dark button {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.pagination.dark button:hover {
  background: rgba(255, 255, 255, .2);
}

.pagination.dark button.active {
  background: #FFD400;
  color: #1a2a5c;
}

.pagination button:disabled{
  opacity:.4;
  cursor:not-allowed;
}

/* Modifikasi pagination DataTables */
.dt-paging {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    margin-top: 24px;
}

.dt-paging nav {
    display: flex;
    gap: 12px;   /* opsional, ikuti gaya Anda */
    justify-content: center;
    align-items: center;
}

/* Gaya tombol pagination */
.dt-paging .dt-paging-button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #1a2a5c !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.15s !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit;
}

/* Hover untuk tombol aktif (tidak disabled) */
.dt-paging .dt-paging-button:hover:not(:disabled):not(.disabled) {
    background: #d6e5ff !important;
    color: #1a2a5c !important;
}

/* Tombol halaman aktif */
.dt-paging .dt-paging-button.current {  
    background: #1a2a5c !important;
    color: #fff !important;
}

/* Tombol disabled (Previous/Next jika tidak tersedia) */
.dt-paging .dt-paging-button.disabled,
.dt-paging .dt-paging-button:disabled {
    background: #eeeeee !important;
    color: #1a2a5c !important;
}

/* Packages */
.pkg-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pkg-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, .8);
  /* backdrop-filter: blur(6px); */
  border: 1px solid #dbe6ff;
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow .25s;
}

.pkg-item:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.pkg-item .ico {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1a2a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pkg-item h4 {
  color: #1a2a5c;
  margin: 0 0 4px;
  font-size: 15px;
}

.pkg-item .pkg-info {
  flex: 1;
}

.pkg-item .btn-yellow {
  padding: 10px 20px;
}

/* Footer */
footer.site-footer {
  background: #1a2a5c;
  color: #fff;
  margin-top: 0px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 0px;
}

.footer-top {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-top .desc {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

.footer-mid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0;
}

.footer-mid h4 {
  margin: 0 0 16px;
  font-size: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  transition: color .15s;
}

.footer-links a:hover {
  color: #FFD400;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-item .ico {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #FFD400;
  color: #1a2a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #FFD400;
  color: #1a2a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.footer-bottom {
  background: #16234d;
  text-align: center;
  padding: 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

/* Page header */
.page-header {
  position: relative;
  padding: 120px 0 60px;
  margin-top: -84px;
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 0 0 100px 100px;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(31, 79, 148, 1) 40%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 0 0 60px 60px;
  z-index: 0;
}

.header-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  border-radius: 0 0 60px 60px;
  z-index: 0;
  pointer-events: none;
}

.page-header .inner {
  position: relative;
  z-index: 2;
  text-align: left;
  padding-top: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-header h1 {
  font-size: 48px;
  color: #ffffff;
  margin: 12px 0 0;
}

.page-header p {
  color: #ffffff;
  max-width: 600px;
}

.page-header img.banner {
  width: 100%;
  max-width: 1024px;
  max-height: 280px;
  object-fit: cover;
  border-radius: 18px;
  margin-top: 32px;
}

/* Quote Classic */
.quote-classic {
    margin: 30px 0;
    padding: 20px 0 20px 40px;
    border-left: 6px solid #1a2a5c;
    border-radius: 18px;
    background: #fff;
}

.quote-classic p {
    font-size: 15px;
    line-height: 1.4;
    color: #1a2a5c;
    font-style: italic;
    margin-bottom: 10px;
}

.quote-classic .quote-author {
    font-size: 12px;
    color: #7f8c8d;
    font-style: normal;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === MODERN TOGGLE BUTTONS === */
.bm-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 68px;
}
.bm-toggle {
  position: relative;
  display: inline-flex;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e0e9ff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(15,27,61,.10), 0 2px 4px rgba(15,27,61,.04);
}
.bm-toggle-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 0;
  background: linear-gradient(135deg, #1a2a5c 0%, #2c3f7a 60%, #1a2a5c 100%);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(26,42,92,.32), inset 0 1px 0 rgba(255,255,255,.12);
  transition: left .35s cubic-bezier(.65,.05,.36,1), width .35s cubic-bezier(.65,.05,.36,1);
  z-index: 0;
}
.bm-toggle-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  color: rgba(26,42,92,.65);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color .25s ease;
  white-space: nowrap;
}
.bm-toggle-btn i {
  width: 18px;
  height: 18px;
  color: rgba(26,42,92,.5);
  transition: color .25s ease, transform .35s cubic-bezier(.65,.05,.36,1);
}
.bm-toggle-btn:not(.active):hover {
  color: #1a2a5c;
}
.bm-toggle-btn:not(.active):hover i {
  color: #1a2a5c;
  transform: rotate(-8deg) scale(1.08);
}
.bm-toggle-btn.active {
  color: #ffffff;
}
.bm-toggle-btn.active i {
  color: #FFD400;
  transform: scale(1.1);
}
.bm-toggle-btn.active::after {
  /* tiny glow dot under icon */
  content: '';
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #FFD400;
  box-shadow: 0 0 8px #FFD400;
  animation: bmPulse 1.6s ease-in-out infinite;
}
@keyframes bmPulse {
  0%, 100% { opacity: .9; transform: translateX(-50%) scale(1); }
  50%      { opacity: .4; transform: translateX(-50%) scale(.7); }
}
@media (max-width: 560px) {
  .bm-toggle-btn { padding: 12px 20px; font-size: 14px; }
  .bm-toggle-btn span { display: inline; }
}

/* Table */
.tbl-wrap {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dbe6ff;
  overflow: hidden;
}

table.data-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th.nowrap, td.nowrap {
  white-space: nowrap !important;
}

table.data-tbl thead {
  background: #1a2a5c;
  color: #fff;
}

table.data-tbl th,
table.data-tbl td {
  padding: 12px;
  text-align: left;
}

table.data-tbl tr {
  border-bottom: 1px solid #eaf1ff;
}

/* Hanya untuk sel body (td), tidak untuk th */
table.data-tbl tbody td {
  border-right: 1px solid #eaf1ff;   /* garis vertikal di kanan setiap sel */
}

/* Hapus border-right pada kolom terakhir agar tidak ada garis dobel di ujung kanan */
table.data-tbl tbody td:last-child {
  border-right: none;
}

table.data-tbl tbody tr:hover {
  background: #f5f9ff;
}

table.data-tbl .right {
  text-align: right;
}

table.data-tbl .center {
  text-align: center !important;
}

.number {
  font-family: monospace;
}

.badge-cond {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

.cond-biru {
  background: #dbeafe;
  color: #1e40af;
}

.cond-baik {
  background: #dcfce7;
  color: #15803d;
}

.cond-sedang {
  background: #fbeb92;
  color: #b47b01;
}

.cond-rusakr {
  background: #ffdbad;
  color: #c2410c;
}

.cond-rusakb {
  background: #fee2e2;
  color: #b91c1c;
}

.rekap-row.header {
  background: #eaf1ff;
  font-weight: 700;
}

.rekap-row.total {
  background: #fef9c3;
  font-weight: 600;
}

.rekap-row.grand {
  background: #1a2a5c;
  color: #fff;
  font-weight: 700;
}
.rekap-row.grand:hover {
  background: #1a2a5c;
}

/* Tabs */
.tabs {
  display: inline-flex;
  gap: 4px;
  background: #eaf1ff;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2a5c;
  transition: background-color .15s, color .15s;
}

.tab:hover {
  background: rgba(255, 255, 255, .5);
}

.tab.active.all {
  background: #1a2a5c;
  color: #fff;
}

.tab.active.baik {
  background: #22c55e;
  color: #fff;
}

.tab.active.sedang {
  background: #3b82f6;
  color: #fff;
}

.tab.active.rusakr {
  background: #f97316;
  color: #fff;
}

.tab.active.rusakb {
  background: #ef4444;
  color: #fff;
}

/* Input */
.input-search {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.input-search input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid #c7d6ff;
  border-radius: 999px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit; 
  font-size: 14px;
}

.input-search input:focus {
  border-color: #1a2a5c;
  box-shadow: 0 0 0 3px rgba(35, 109, 245, 0.2);
}

.input-search i,
.input-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(26, 42, 92, .45);
  pointer-events: none;
}

/* Map */
.map-wrap {
  isolation: isolate;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.map-wrap #map-canvas {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-legend {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
  max-width: 240px;
}

.map-legend h4 {
  margin: 0 0 8px;
  color: #1a2a5c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

/* Leaflet Control Margin Top */
.leaflet-control-zoom {
    margin-top: 120px !important;
}
.leaflet-control-layers {
    margin-top: 120px !important;
}
/* Leaflet Tabel Popup */
.custom-popup {
  font-family: 'Inter', sans-serif;
  min-width: 280px;
}

.leaflet-sidebar .close{
  margin-top: 110px !important;
}

.custom-popup h3 {
  margin: 0 0 8px 0;
  color: #0A2647;
  font-weight: 700;
  border-left: 4px solid #F5A623;
  padding-left: 12px;
  text-transform: uppercase;
}

.popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

.popup-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.popup-table td:first-child {
  font-weight: 600;
  color: #1e293b;
  width: 35%;
  background-color: #f8fafc;
  width: 1%;
  white-space: nowrap;
}

.popup-table td:nth-child(2) {
  padding-left: 12px;
}

.popup-table td:last-child {
  color: #334155;
}

.popup-badge {
  display: inline-block;
  background: #F5A62320;
  color: #F5A623;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Tombol Nonton Video - Nuansa Kuning */
.popup-video-button {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #FFD166 0%, #FFB347 100%);
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #4a2c00;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Efek hover: kuning lebih terang & sedikit membesar */
.popup-video-button:hover {
    background: linear-gradient(135deg, #FFE083 0%, #FFC857 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #3a2200;
}

/* Efek klik (active) */
.popup-video-button:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, #FFB347 0%, #FF9A2E 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Jika ingin ikon panah bergerak saat hover */
.popup-video-button:hover::before {
    transform: translateX(3px);
}

/* Tambahan untuk tampilan dalam popup agar rapi */
.custom-popup .popup-video-button {
    margin-left: 0;
    margin-right: 0;
}

/* ========== MAP PAGE ========== */
.map-sidebar {
    width: 280px;
    height: calc(100vh - 126px) !important;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-radius: 16px !important;
    overflow-y: auto;
    padding: 16px;
    margin-top: 110px;
    flex-shrink: 0;
    transition: width 0.3s ease;
}

.map-sidebar.closed {
    width: 0;
    padding: 0;
    overflow: hidden;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0A2647, #1a4a8a);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-logo i {
    color: #fff;
    font-size: 16px;
}
.sidebar-title {
    font-size: 14px;
    font-weight: 700;
}
.sidebar-subtitle {
    font-size: 11px;
    color: #94a3b8;
}
.sidebar-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

.map-search-container {
    position: relative;
    margin-bottom: 20px;
}
.map-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 14px;
    pointer-events: none;
}
.map-search-input {
    width: 100%;
    padding: 8px 25px 8px 36px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    font-size: 13.5px;
    color: #374151;
    outline: none;
    transition: all 0.2s;
    background: #fff;
}
.map-search-input:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.2);
}
.map-search-input::placeholder {
    color: #9CA3AF;
}

.map-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 14px;
    z-index: 2;
}

.map-search-clear:hover {
    color: #333;
}

/* Suggestion dropdown */
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.suggestion-item {
    display: flex;
    align-items: flex-start;  /* agar ikon tetap di atas, teks tidak di tengah vertikal */
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: #f8fafc;
}
.suggestion-item.active {
    background: #EFF6FF;
    color: #0A2647;
    font-weight: 500;
}
.suggestion-icon {
    flex-shrink: 0;
    margin-top: 2px;  /* sedikit turun agar sejajar dengan baris pertama teks */
}
.suggestion-name {
    flex: 1;
    word-break: break-word;   /* memungkinkan pemotongan kata jika perlu */
    line-height: 1.4;
}
.suggestion-status {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.layer-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin: 20px 0 12px 0;
}
.layer-group {
    margin-bottom: 20px;
}
.layer-group-header {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}
.layer-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.layer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.layer-item-active {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}
.layer-item-inactive {
    background: transparent;
    border: 1px solid transparent;
}
.layer-color {
    margin-bottom: 1px;
}
.layer-name {
    flex: 1;
    font-size: 13px;
}
.layer-name-active {
    color: #374151;
}
.layer-name-inactive {
    color: #9CA3AF;
}
.layer-eye {
    font-size: 14px;
}
.layer-eye-active {
    color: #3B82F6;
}
.layer-eye-inactive {
    color: #D1D5DB;
}

/* Tata Ruang / Lab / Konstruksi grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dbe6ff;
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: box-shadow .25s;
}

.feature-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.feature-card .ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #FFD400;
  color: #1a2a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card h3 {
  color: #1a2a5c;
  font-size: 18px;
  margin: 0 0 8px;
}

.feature-card p {
  color: rgba(26, 42, 92, .7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.feature-card .more {
  color: #d97706;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s;
}

.feature-card .more:hover {
  gap: 10px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lab-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dbe6ff;
  padding: 24px;
  transition: transform .25s;
}

.lab-card:hover {
  transform: translateY(-4px);
}

.lab-card .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFD400;
  color: #1a2a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.lab-card h3 {
  color: #1a2a5c;
  margin: 0 0 8px;
  font-size: 16px;
}

.lab-card p {
  color: rgba(26, 42, 92, .65);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Setiap grup layanan */
.lab-service-group {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Ikon di samping judul */
.lab-service-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #079669;
}

/* Konten teks dalam grup */
.lab-service-text {
    flex: 1;
}

/* Judul layanan (tebal) */
.lab-service-title {
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin-bottom: 5px;
}

/* Isi/daftar layanan (normal) */
.lab-service-content {
    font-weight: 400;
    font-size: 16px;
    color: #000;
    line-height: 1.5;
}

.cta-box {
  background: linear-gradient(135deg, #3f518d 0%, #16234d 100%);
  color: #fff;
  border-radius: 28px;
  padding: 40px;
  text-align: center;
  display: grid;
  place-items: center; /* center horizontal dan vertical */
}

.cta-box p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box.yellow {
  background: #FFD400;
  color: #1a2a5c;
}

.cta-box h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.cta-box p {
  margin: 0 0 50px;
  line-height: 1.6;
}

.cta-box.yellow .btn {
  background: #1a2a5c;
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Detail post */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: rgba(26, 42, 92, .7);
  font-size: 14px;
  margin-bottom: 24px;
  align-items: center;
}

.post-meta .share {
  margin-left: auto;
  color: #d97706;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.post-body {
  color: rgba(26, 42, 92, .85);
  line-height: 1.75;
  font-size: 15px;
}

.post-body p {
  margin: 0 0 16px;
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92); /* putih transparan */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* di atas semua konten */
    transition: opacity 0.3s ease;
}

/* Kotak loading (spinner + teks) */
.loading-container {
    text-align: center;
    animation: fadeInScale 0.2s ease-out;
}

/* Spinner bulat berputar dengan CSS murni */
.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #3498db;
    border-right: 6px solid #2ecc71;
    border-bottom: 6px solid #f1c40f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Teks loading */
.loading-text {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

/* Animasi putar */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animasi masuk */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Kelas untuk menyembunyikan overlay (bisa diatur via JS) */
.loading-overlay.hidden {
    display: none;
}

/* ========== Berita ========== */
.news-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.news-back{
  display:inline-flex;align-items:center;gap:8px;color:rgba(26,42,92,.7);
  margin-bottom: 24px;
}

.post-title{
  font-size:36px;
  color:#1a2a5c;
  line-height:1.2;
  margin:0 0 16px;
}

.meta-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.meta-icon{
  color:#f59e0b;
  width:16px;
  height:16px;
}

.share-icon{
  width:14px;
  height:14px;
}

.img-news{
  text-align:center;  /* vertical */
  margin-top: 40px;
  margin-bottom: 32px;
}

.img-news img {
  max-width: 100%;
  max-height: 500px;
  object-fit: fill;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.image-caption{
    margin-top:10px;
    font-size:14px;
    font-style:italic;
}


/* Grid chart (kondisi & perkerasan) */
.charts-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.charts-grid-1-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.charts-grid-1-3 {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 12px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    flex: 1;
    min-width: 280px;
}
.chart-title {
    font-size: 18px;
    font-weight: 700;
    color: #0A2647;
    margin-bottom: 4px;
}
.chart-sub {
    font-size: 12.5px;
    color: #94a3b8;
    margin-bottom: 20px;
}
.chart-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.chart-visual {
    width: 100%;
}

.chart-container {
    width: 100%;
    height: 200px;
}

.legend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 120px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.legend-label {
    font-size: 12.5px;
    color: #374151;
    flex: 1;
}
.legend-value {
    font-size: 13px;
    font-weight: 700;
    color: #0A2647;
}


/* Reset padding pada DataTable  */
/* Hilangkan margin/padding pada tabel */
.dt-container .dt-layout-row {
    margin-top: 0 !important;
    margin-bottom: .75em !important;
}

/* tambahkan margin/padding pada show entry */
.dt-length {
    padding-left: 24px !important;
}

.dt-paging{
    padding-right: 24px !important; 
}


/* ganti border bawah thead menjadi putih */
table.dataTable thead th, 
table.dataTable thead td {
    border-bottom: 1px solid #ffffff !important;
}

/* Hilangkan border bawah pada baris terakhir tbody */
table.dataTable tbody tr:last-child td {
    border-bottom: none !important;
}

/* Container utama show entries */
.dt-length {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit; /* ikuti font website */
    font-size: 0.875rem;
    color: #334155; /* slate-700, sesuaikan */
}

/* Label "entries per page" */
.dt-length label {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 450;
}

.dt-info{
  font-family: inherit;
  font-size: 0.875rem;
  color: #334155 !important;
  margin-right: 24px !important;
}

/* Responsif: jika layar kecil, susun vertikal */
@media (max-width: 640px) {
    .dt-length {
        flex-wrap: wrap;
        margin-bottom: 0.75rem;
    }
}

/* Panel Keterangan */
.note-box {
    background: linear-gradient(135deg, #FEF9EC, #FFFBEF);
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 54px;
}
.note-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #D97706;
}
.note-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 4px;
}
.note-text {
    font-size: 14px;
    color: #78350F;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-img-wrap {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-mid {
    grid-template-columns: 1fr;
  }

  .footer-top .desc {
    text-align: left;
  }

  .social-icons {
    justify-content: flex-start;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1a2a5c;
    border-radius: 18px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links.open {
    display: flex;
    z-index: 9999;
  }

  .menu-btn {
    display: flex;
  }

  header.site-header {
    position: relative;
  }

  .map-header.site-header{
    margin-top: 0;
  }

  /* .logo-text {
    display: none;
  } */

  .hero h1 {
    font-size: 48px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .section-title,
  .section-head h2,
  .section-divider h2 {
    font-size: 28px;
  }

  .page-header h1 {
    font-size: 40px;
  }

  .num-cards {
    grid-template-columns: 1fr;
  }

  .announce-row {
    grid-template-columns: 1fr;
  }
}

/* untuk logo text */
@media (max-width: 550px) {
  .logo-text {
    display: none;
  }
}

/* ===== PETA TATA RUANG GALLERY ===== */
.peta-section {
  padding: 56px 0 24px;
}
.peta-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.peta-section-head h2 {
  color: #1a2a5c;
  font-size: 32px;
  margin: 0;
  font-style: italic;
  font-weight: 800;
}
.peta-section-head p {
  color: rgba(26,42,92,.65);
  font-size: 14px;
  margin: 6px 0 0;
}

.peta-filter {
  display: inline-flex;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e9ff;
  border-radius: 999px;
  padding: 5px;
  flex-wrap: wrap;
}
.peta-filter button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(26,42,92,.65);
  transition: background-color .2s, color .2s;
}
.peta-filter button:hover { color: #1a2a5c; }
.peta-filter button.active {
  background: #1a2a5c;
  color: #fff;
}

.peta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.peta-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e0e9ff;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.2,.64,1), box-shadow .35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.peta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15,27,61,.15);
}

.peta-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #eaf1ff;
}
.peta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.34,1.2,.64,1);
}
.peta-card:hover .peta-thumb img { transform: scale(1.08); }

.peta-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,42,92,.65) 100%);
  pointer-events: none;
}

.peta-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FFD400;
  color: #1a2a5c;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(255,212,0,.4);
  z-index: 2;
}

.peta-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #1a2a5c;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s ease, transform .25s ease, background-color .15s;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.peta-card:hover .peta-zoom-btn {
  opacity: 1;
  transform: scale(1);
}
.peta-zoom-btn:hover {
  background: #FFD400;
}

.peta-area-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.peta-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.peta-body h3 {
  color: #1a2a5c;
  font-size: 16px;
  margin: 0 0 12px;
  line-height: 1.35;
  font-weight: 700;
  flex: 1;
}
.peta-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #eaf1ff;
  font-size: 12px;
}
.peta-meta .year {
  color: rgba(26,42,92,.7);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.peta-meta .year i { color: #d97706; }
.peta-meta .scale {
  background: #f3f7ff;
  color: #1a2a5c;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-family: monospace;
}

/* Peta modal */
.peta-modal-img-wrap {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.peta-modal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.peta-modal-img-wrap .badge {
  position: absolute;
  top: 16px; left: 16px;
  background: #FFD400;
  color: #1a2a5c;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Empty state */
.peta-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: rgba(26,42,92,.5);
  background: #fff;
  border-radius: 18px;
  border: 2px dashed #d9e4ff;
}
.peta-empty i {
  width: 48px; height: 48px;
  color: rgba(26,42,92,.3);
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .peta-grid { grid-template-columns: repeat(2, 1fr); }
  .peta-modal-img-wrap { height: 240px; }
}
@media (max-width: 640px) {
  .peta-grid { grid-template-columns: 1fr; }
  .peta-section-head h2 { font-size: 24px; }
  .peta-modal-img-wrap { height: 200px; }
  /* Mobile drag handle for modal */
  .modal::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 4px;
    background: rgba(255,255,255,.4);
    border-radius: 999px;
    z-index: 3;
  }
}

.bridge-type-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;
}

.bridge-type-list ul {
    margin: 0;
    padding-left: 1.2rem;
}

.bridge-type-list li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .bridge-type-list {
        grid-template-columns: 1fr;
    }
}