/* === Topik Data Animasi === */
.topic-box {
  opacity: 0;
  transform: translateY(50px); /* Mulai dari bawah */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

/* Saat muncul di layar */
.topic-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: geser sedikit ke kanan setelah muncul */
.topic-box.slide-in {
  transform: translateX(5px);
  transition: transform 0.6s ease-in-out;
}




.insight-item {
  opacity: 0;
  transform: translateY(80px); /* posisi awal di bawah */
  transition: transform 0.8s ease-out, opacity 0.5s ease-out;
  will-change: transform, opacity;
}

/* Tahap 1: muncul cepat dari bawah */
.insight-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* Tahap 2: geser halus dari kiri ke kanan */
.insight-item.slide {
  animation: slideFromLeft 0.8s ease-out forwards;
}

@keyframes slideFromLeft {
  0% {
    transform: translateX(-40px);
  }
  100% {
    transform: translateX(0);
  }
}




.search-form {
    max-width: 850px;
}

.search-input {
    height: 60px;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    padding-left: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.search-btn {
    height: 60px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    padding: 0 25px;
    background: #e63946;
    color: #fff;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #c70000;
}

.search-form {
    max-width: 850px;
}

.search-input {
    height: 60px;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    padding-left: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.search-btn {
    height: 60px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    padding: 0 25px;
    background: #e63946;
    color: #fff;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #c70000;
}


/* section {
        padding: 4rem 0;
    } */

.section-title {
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Statistik singkat */
.stats-section {
    background: #ffffff;
    text-align: center;
}

.stat-box {
    display: inline-block;
    width: 220px;
    margin: 1rem;
}

.stat-box h2 {
    color: #004aad;
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

/* Data Insight */
.data-insight {
    background: linear-gradient(90deg, #ff0000 0%, #ffcc00 100%);
    color: #fff;
}

.insight-item {
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.insight-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

.insight-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #b30000;
}

/* Topik Data */
.topik-data {
    background: #fff5e0;
}

.topic-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.5rem;
    border-radius: 25px;
    border: 2px solid;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.topic-badge:nth-child(odd) {
    border-color: #b30000;
    color: #b30000;
}

.topic-badge:nth-child(odd):hover {
    background: #b30000;
    color: #fff;
}

.topic-badge:nth-child(even) {
    border-color: #ffcc00;
    color: #ffcc00;
}

.topic-badge:nth-child(even):hover {
    background: #ffcc00;
    color: #fff;
}

/* Dataset Terbaru */
.dataset-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 2rem;
    transition: 0.3s;
}

.dataset-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dataset-card h5 {
    color: #004aad;
}

/* logo */
.insight-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

/* Data Insight */
.data-insight {
    background: #f0f0f0;
    /* background abu-abu */
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #004aad;
}

.insight-carousel-wrapper {
    position: relative;
}

.insight-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

.insight-carousel::-webkit-scrollbar {
    display: none;
}

.insight-item {
    padding-left: 0.5rem;
    /* kecilkan padding kiri */
    padding-right: 1.5rem;
    /* bisa tetap */
}

.insight-item {
    flex: 0 0 300px;
    background: #ffffff;
    /* box tetap putih */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.insight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.insight-item h5 {
    color: #000000ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.insight-item p {
    color: #333;
    font-size: 0.95rem;
}

/* Tombol Carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #b30000;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-btn {
    left: -20px;
}

.right-btn {
    right: -20px;
}

.carousel-btn:hover {
    background: #ff6600;
}

/* Topik Data */
.topik-data {
    background: #ffffff;
    padding: 2rem 0;
}

.topic-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.5rem;
    border-radius: 25px;
    border: 2px solid;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.topic-badge:nth-child(odd) {
    border-color: #b30000;
    color: #b30000;
}

.topic-badge:nth-child(odd):hover {
    background: #b30000;
    color: #fff;
}

.topic-badge:nth-child(even) {
    border-color: #ffcc00;
    color: #ffcc00;
}

.topic-badge:nth-child(even):hover {
    background: #ffcc00;
    color: #fff;
}

/* < !-- Inline CSS untuk ikon kuning --> */
.icon-circle-yellow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle-yellow i {
    font-size: 1.6rem;
    color: #ffc107;
    font-weight: bold;
}

.icon-circle-yellow:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.topic-box span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Topik Data */
.topik-data {
    background: #ffffff;
    padding: 2rem 0;
}

.section-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #004aad;
}

.topic-box {
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.topic-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.topic-box i {
    display: flex;
    align-items: center;
}

.topic-box span {
    font-weight: 600;
    font-size: 1rem;
}

/* ===================== */
/* DATASET TERBARU */
/* ===================== */
.dataset-terbaru {
  padding-top: 2rem;    /* jarak atas section */
  padding-bottom: 2rem; /* jarak bawah section */
  background-color: #f8f9fa; /* opsional, biar beda dengan section lain */
}

.dataset-terbaru .section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem; /* jarak ke row dataset */
}

.dataset-terbaru .dataset-card {
  background-color: #fff;
  border-left: 4px solid #d90429;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.dataset-terbaru .dataset-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dataset-terbaru .dataset-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.dataset-terbaru .dataset-card a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.dataset-terbaru .dataset-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.stats-section {
  background: #f9fafc;
}
.stat-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-5px);
}
.stat-box h2 {
  color: #2563eb;
  font-weight: 700;
  font-size: 2rem;
}
.stat-box p {
  color: #555;
  font-size: 0.95rem;
  margin-top: 5px;
}

