:root {
  --blue: #394779;
  --blue-dark: #2f3b69;
  --yellow: #f5b23b;
  --light: #f7f8fb;
  --text: #24324d;
}

* {
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: #ffffff;
}

a {
  color: inherit;
}

.site-header {
  background: #ffffff;
}

.brand-logo {
  height: 64px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--blue);
  margin: 0 16px;
  font-size: 0.75rem;
}

.btn-pill {
  border-radius: 999px;
  /* padding: 0.45rem 1.6rem; */
  font-weight: normal;
  padding: 12px 24px;
  font-size: 0.85rem;
}

.btn-warning {
  color: #ffffff;
  background: var(--yellow);
  border: none;
  /* box-shadow: 0 10px 20px rgba(245, 178, 59, 0.35); */
}

.btn-primary {
  background: var(--blue);
  border: none;
  /* box-shadow: 0 12px 24px rgba(57, 71, 121, 0.28); */
}

.hero-section {
  padding: 100px 0 50px;
}

.hero-card {
  background: var(--blue);
  position: relative;
  padding: 0;
  overflow: visible;
  border-radius: 180px;
}

.hero-inner {
  position: relative;
  border-radius: 28px;
  padding: 60px 60px 70px;
  color: #ffffff;
  overflow: hidden;
  background: var(--blue);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  z-index: 0;
  pointer-events: none;
}

.hero-inner .row {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-text {
  font-size: 0.7rem;
  margin-bottom: 26px;
  max-width: 420px;
}

.hero-plant {
  position: absolute;
  right: 10px;
  bottom: -76px;
  width: 575px;
  max-width: 575px;
  z-index: 5;
}

.hero-pin {
  position: absolute;
  width: 200px;
  right: 26%;
  top: -60px;
  z-index: 5;
}

.feature-section {
  padding: 48px 0 10px;
}

.feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 10px;
  box-shadow: 0 14px 26px rgba(57, 71, 121, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 140px;
  margin-bottom: 12px;
}

.badge-primary {
  background: var(--blue);
  color: #ffffff;
  padding: 0.45rem 1rem;
  font-weight: normal;
}

.section-title {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.info-section,
.flow-section,
.request-section {
  padding: 48px 0;
}

.consult-section {
  padding: 0 0;
}

.progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}

.progress-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: #e6e9f3;
  stroke-width: 10;
}

.progress-bar-blue {
  fill: none;
  stroke: var(--blue);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 65;
}

.progress-bar-yellow {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 65;
}

.progress-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue);
}

.progress-label {
  font-size: 0.9rem;
  color: var(--blue);
}

.section-text {
  color: #4a567a;
  line-height: 1.7;
  margin-bottom: 22px;
  font-size: 1rem;
}

.flow-image {
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(57, 71, 121, 0.1);
}

.section-illustration {
  max-width: 440px;
}

.site-footer {
  /* background: var(--light); */
  padding: 30px 0;
  border-top: 1px solid var(--yellow);
  border-bottom: 1px solid var(--yellow);
}

.footer-logo {
  height: 46px;
}

.footer-text {
  margin: 0;
  color: #6b7694;
  font-size: 0.9rem;
}

.social-link {
  font-weight: 300;
  font-size: 0.85rem;
}

.social-link img {
  width: 32px;
  margin-left: 16px;
}

.site-copyright {
  margin: 16px 0px;
  font-size: 0.7rem;
  color: #6b7694;
}

.w-fit {
  width: fit-content;
}

.list-section {
  padding: 50px 0 70px;
}

.list-title {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 22px;
}

.list-header {
  background: var(--blue);
  color: #ffffff;
  border-radius: 0 0 18px 18px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.75rem;
}

.list-row {
  background: #e8eaee;
  border-radius: 6px;
  padding: 16px 18px;
  margin-top: 8px;
  color: #636d85;
  font-size: 0.7rem;
  line-height: 1.4;
}

.list-cell {
  padding: 6px 10px;
}

@media (max-width: 991px) {
  .hero-inner {
    padding: 40px 30px;
  }

  .hero-plant {
    position: static;
    width: 70%;
    margin: 30px auto 0;
    display: block;
  }

  .hero-pin {
    right: 18%;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .feature-card {
    padding: 18px 12px;
  }

  .section-illustration {
    max-width: 260px;
  }

  .list-header,
  .list-row {
    font-size: 0.85rem;
  }
}


/* Popup container */
.popup-container {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

/* Popup content (80% dari layar) */
.popup-content {
    position: relative;
    background: #fff;
    width: 80%; /* Menutupi 80% dari lebar layar */
    max-width: 1200px; /* Batas maksimum untuk lebar */
    max-height: 80%; /* Menutupi 80% dari tinggi layar */
    overflow: auto; /* Menambahkan scroll jika konten terlalu besar */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}
.popup-content-maklumat {
    position: relative;
    background: #fff;
    width: 80%; /* Menutupi 80% dari lebar layar */
    max-width: 1200px; /* Batas maksimum untuk lebar */
    max-height: 95%; /* Menutupi 80% dari tinggi layar */
    overflow: auto; /* Menambahkan scroll jika konten terlalu besar */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Close button */
.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}


.close-popup-maklumat {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

/* Popup image */
.popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.popup-image-maklumat {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Statistik Landing Page */

.total-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px; /* samain tinggi sama progress circle */
}

.total-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2d6a9f;
  line-height: 1;
}

.total-unit {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

/* ── Toolbar ── */
.amp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.amp-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.amp-search-icon {
  position: absolute;
  left: 11px;
  color: #9aa0b8;
  pointer-events: none;
}
#amp-search {
  padding: 8px 12px 8px 30px;
  border: 1.5px solid #dce0ef;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  color: var(--text);
  background: #fff;
  width: 260px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#amp-search::placeholder { color: #b0b7cf; }
#amp-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(57,71,121,.12);
}
.amp-export-group { display: flex; gap: 8px; }
.amp-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.amp-btn-export:hover { filter: brightness(1.1); transform: translateY(-1px); }
.amp-btn-csv { background: #059669; color: #fff; }
.amp-btn-pdf { background: #dc2626; color: #fff; }



#dt-list { border: none !important; font-family: 'Poppins', sans-serif !important;}

.tabulator { background-color: #fff !important;}


#dt-list .tabulator-header {
  background: var(--blue) !important;
  border-radius: 0 0 18px 18px !important;  
  border-bottom: none !important;
  overflow: hidden;
}
#dt-list .tabulator-col {
  background: transparent !important;
  border-right: 1px solid rgba(255,255,255,.12) !important;
}
#dt-list .tabulator-col:last-child { border-right: none !important; }
#dt-list .tabulator-col-title {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: .75rem !important;
  text-align: center;
  white-space: normal !important;
  padding: 14px 10px !important;
  text-transform: none;
}
#dt-list .tabulator-col .tabulator-col-sorter { color: rgba(255,255,255,.4) !important; }
#dt-list .tabulator-col.tabulator-sortable:hover { background: rgba(255,255,255,.06) !important; }

#dt-list .tabulator-row {
  background: #e8eaee !important;       
  border-radius: 6px !important;
  margin-top: 8px !important;           
  border-bottom: none !important;
}
#dt-list .tabulator-row:hover { background: #dde0ea !important; }

#dt-list .tabulator-tableholder { background: transparent !important; }

#dt-list .tabulator-cell {
  border-right: none !important;
  font-size: .7rem !important;          
  color: #636d85 !important;            
  padding: 16px 16px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

/* Pagination */
#dt-list .tabulator-footer {
  background: transparent !important;
  border-top: none !important;
  padding: 12px 4px !important;
  margin-top: 4px;
}
#dt-list .tabulator-footer .tabulator-page-size {
  border: 1.5px solid #dce0ef !important;
  border-radius: 6px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: .75rem !important;
  padding: 4px 8px !important;
  color: var(--text) !important;
  outline: none;
}
#dt-list .tabulator-page {
  border: 1.5px solid #dce0ef !important;
  border-radius: 6px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  color: var(--blue) !important;
  background: #fff !important;
  padding: 4px 10px !important;
  margin: 0 2px !important;
  cursor: pointer;
  transition: all .15s;
}
#dt-list .tabulator-page:hover:not([disabled]) {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
}
#dt-list .tabulator-page.active {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
}
#dt-list .tabulator-page[disabled] { opacity: .35; cursor: default; }

/* Placeholder */
#dt-list .tabulator-placeholder-contents {
  color: #9aa0b8 !important;
  font-size: .8rem !important;
}

/* Action button */
.amp-btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: .75rem;
  transition: opacity .15s, transform .15s;
}
.amp-btn-map:hover { opacity: .8; transform: scale(1.1); }

@media (max-width: 575px) {
  .amp-toolbar { flex-direction: column; align-items: flex-start; }
  #amp-search { width: 100%; }
  #dt-list .tabulator-cell { font-size: .65rem !important; padding: 12px 10px !important; }
}