@import url('https://fonts.googleapis.com/css2?family=Laila:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* body {
  font-family: 'Laila', serif;
  background-color: #f7f8fa;
  margin: 0;
  padding: 0;
} */

/* ==== Layout Dasar ==== */
.feature-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: -25px auto;
  padding: 0 40px;
  justify-items: center;
}

/* ==== Desain Card ==== */
.feature-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 40px 30px;
  width: 100%;
  max-width: 280px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* ==== Ikon ==== */
.icon-wrapper {
  background: #1c355e;
  color: #fff;
  font-size: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 10px rgba(28, 53, 94, 0.25);
}

/* ==== Teks ==== */
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1c355e;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: #1c355e;
  line-height: 1.7;
}

/* ==== Animasi ==== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== Tablet (768px - 1023px) ==== */
@media (max-width: 1023px) and (min-width: 768px) {
  .feature-section {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
  }

  .feature-card {
    max-width: 220px;
    padding: 30px 20px;
  }

  .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 14px;
  }
}

/* ==== Mobile (≤767px): Scroll horizontal ==== */
@media (max-width: 767px) {
  .feature-section {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .feature-card {
    flex: 0 0 80%;
    max-width: none;
    min-width: 260px;
    scroll-snap-align: center;
    padding: 30px 20px;
  }

  .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 14px;
  }

  /* Hilangkan scrollbar agar lebih bersih */
  .feature-section::-webkit-scrollbar {
    display: none;
  }
}