.box-card-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px; /* Jarak antar box yang dinamis, tidak perlu tag <br> lagi */
  overflow: hidden; /* Penting: agar box dari luar layar tidak merusak layout */
}

/* 2. Styling Dasar Box Card */
.box-card {
  background-color: var(--bg-card);
  color: var(--text-color);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  
  /* Transisi dasar untuk efek Hover */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;

  /* State awal sebelum animasi masuk dimulai (tidak terlihat) */
  opacity: 0; 
  /* Memicu animasi masuk secara konstan */
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
  animation-fill-mode: forwards; /* Menjaga posisi box tetap di tempat setelah animasi selesai */
}

.box-card .banner {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.box-card h2 {
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.box-card p {
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.box-card .bold {
  font-weight: 700;
  color: var(--accent);
}

/* 3. Logika Otomatis Masuk Samping Kanan/Kiri & Jeda Waktu (Stagger) */

/* Box Ganjil (Ke-1, Ke-3): Masuk dari Kiri */
.box-card:nth-child(odd) {
  animation-name: masukDariKiri;
}

/* Box Genap (Ke-2, Ke-4): Masuk dari Kanan */
.box-card:nth-child(even) {
  animation-name: masukDariKanan;
}

/* Memberikan jeda waktu tampil secara berurutan dari atas ke bawah */
.box-card:nth-child(1) { animation-delay: 0.2s; }
.box-card:nth-child(2) { animation-delay: 0.4s; }
.box-card:nth-child(3) { animation-delay: 0.6s; }
.box-card:nth-child(4) { animation-delay: 0.8s; }


/* 4. Efek Hover Menggunakan --accent */
.box-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(204, 153, 51, 0.2);
  z-index: 2;
}

/* 5. Keyframes Definisi Gerakan Animasi */
@keyframes masukDariKiri {
  from {
    opacity: 0;
    transform: translateX(-120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes masukDariKanan {
  from {
    opacity: 0;
    transform: translateX(120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 6. Optimasi Responsif (Mobile Friendly) */
@media (max-width: 768px) {
  .box-card-wrapper {
    padding: 20px 15px;
    gap: 20px;
  }
  
  .box-card {
    padding: 25px 20px;
  }

  .box-card h2 {
    font-size: 1.5rem;
    text-align: justify;
  }

  /* Mengurangi jarak geser di handphone agar transisi terasa lebih halus dan ringan */
  @keyframes masukDariKiri {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes masukDariKanan {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

.list-artikel {
  list-style: '• ';
  margin-left: 10px;
  text-align: justify;
}