/* ==================================================
   HOMEPAGE REDESIGN CSS
   Satu Data MKRI
   ================================================== */

/* --- HERO SECTION --- */
.hero-split {
  position: relative;
  overflow: visible;
  /* Prevent clipping */
  padding: 0;
  background: #ffffff !important;
}

.hero-split::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 320px;
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="wave" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 Q 25 0, 50 10 T 100 10" fill="none" stroke="rgba(186,46,46,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23wave)"/></svg>');
  z-index: 0;
}

.hero.section {
  padding-top: 130px;
  padding-bottom: 120px;
  background: #ffffff !important;
  background-image: none !important;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.hero-content-container {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.5rem;
  text-align: justify !important;
}

.btn-get-started.btn-shimmer {
  font-family: var(--font-body);
  /* Synchronized with .stat-container-wrapper glassmorphism */
  background: rgba(160, 166, 180, 0.35);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  /* Paksa peramban merender efek blur di GPU untuk mencegah lag saat scrolling di Chrome */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-primary);
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
}

.btn-get-started.btn-shimmer:hover {
  transform: translateY(-2px);
  background: rgba(160, 166, 180, 0.50);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: var(--color-primary);
}

.floating-hero {
  max-width: 100%;
  height: auto;
  transform: scale(1.22);
  transform-origin: center center;
  position: relative;
  bottom: 20px;
  /* Pull it up visually to align better */
  z-index: 2;
}

/* --- STATISTIC PANEL --- */
.hero-metric-strip {
  position: absolute;
  bottom: -60px;
  /* The strip height is around 120px, so this moves it half outside the hero */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

.stat-container-wrapper {
  font-family: var(--font-body);
  /* Premium dark glassmorphism */
  background: rgba(160, 166, 180, 0.35) !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  /* Paksa peramban merender efek blur di GPU untuk mencegah lag saat scrolling di Chrome */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 0;
  max-width: 1050px;
  margin: 0 auto;
}

.stat-container-wrapper .row {
  margin: 0;
  padding: 15px 0;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  padding: 15px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
  background-color: rgba(186, 46, 46, 0.15);
  color: var(--color-primary);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}

.stat-content {
  text-align: left;
}

.stat-content h3.metric-counter {
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.stat-content p {
  color: var(--color-primary);
  margin: 2px 0 0 0;
  font-size: 0.9rem;
  font-weight: 400;
}

/* --- MENGAPA SATU DATA MKRI SECTION --- */
.why-us {
  padding-top: 80px;
  /* Increased space for a comfortable gap below the overlapping stats panel */
  padding-bottom: 60px;
  background: #ffffff;
  position: relative;
  z-index: 1;
  /* Below the stats panel */
}

.why-us-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 50px;
  margin-bottom: 10px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-badge);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text {
  text-align: left;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 5px;
}

.feature-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

/* Navbar */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.navmenu ul li a {
  font-family: var(--font-body);
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 15px;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: var(--color-primary);
}

.navmenu ul li a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.dataset-hero-copy h2 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
}

/* --- MOBILE RESPONSIVE STYLES FOR STATISTIC STRIP --- */
@media (max-width: 767.98px) {
  .hero-metric-strip {
    bottom: -45px;
  }

  .stat-container-wrapper {
    border-radius: 12px;
  }

  .stat-container-wrapper .row {
    flex-wrap: nowrap !important;
    padding: 10px 0;
  }

  .stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 4px;
    min-width: 0;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
    flex-shrink: 0;
  }

  .stat-content {
    min-width: 0;
  }

  .stat-content h3.metric-counter {
    font-size: 1.15rem;
    line-height: 1.1;
  }

  .stat-content p {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
  }

  .stat-item:not(:last-child)::after {
    height: 28px;
  }

  /* --- MOBILE RESPONSIVE HOMEPAGE PREVIEW CARD REFINEMENT --- */
  .latest-info .latest-content-card {
    width: 92% !important;
    max-width: 440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 16px 18px !important;
    min-height: 0 !important;
  }

  .latest-info .latest-content-card .card-title,
  .latest-info .latest-content-card .dataset-card-title,
  .latest-info .latest-content-card .visualization-card-title,
  .latest-info .latest-content-card .publication-card-title {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }

  .latest-info .latest-content-card .card-footer-info {
    padding-top: 12px !important;
  }

  .latest-info .latest-content-card .card-date,
  .latest-info .latest-content-card .visualization-cta-text {
    font-size: 0.8rem !important;
  }

  /* Adjust thumbnail bleed to match mobile card padding (16px top / 18px sides) */
  .latest-info .latest-content-card .card-thumb {
    width: calc(100% + 36px) !important;
    margin: -16px -18px 14px -18px !important;
    height: 220px !important; /* Batasi tinggi agar tidak masif */
    background: #f8f9fa !important; /* Beri background halus untuk ruang kosong */
  }

  .latest-info .latest-content-card .card-thumb-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
    object-fit: contain !important; /* Gunakan contain agar gambar tidak terpotong */
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px 10px 0 0 !important;
  }
}