/* =========================================
   1. HERO CAROUSEL SECTION (GABUNGAN)
   ========================================= */

/* Wrapper untuk setiap slide (Teks/Gambar) */
/* Kita set tinggi tetap agar transisi antar slide (teks vs gambar) mulus */
.hero-slide-item {
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0; /* Fallback color */
}

/* --- Slide 1: Gradient Background & Decoration --- */
.hero-gradient-bg {
  background: linear-gradient(135deg, #ce1018 0%, #ff4d4d 100%);
  color: white;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center; /* Membuat konten vertikal center */
}

/* Lingkaran dekorasi background */
.hero-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -100px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
}

/* --- Slide 2 & 3: Image Full Styling --- */
.hero-slide-item img.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: center;
}

/* --- Hero Content Elements --- */
.hero-text-content {
  position: relative;
  z-index: 2;
  padding-left: 1rem;
}

/* Mockup HP */
.phone-mockup {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.5s;
  z-index: 2;
  position: relative;
}

.phone-mockup:hover {
  transform: translateY(-10px);
}

/* Tombol Store (Play Store / App Store) */
.store-badge {
  height: 50px;
  transition: 0.3s;
  margin-right: 10px;
  margin-bottom: 10px;
}

.store-badge:hover {
  transform: scale(1.05);
}

/* =========================================
   2. FEATURE BOX SECTION
   ========================================= */
.feature-box {
  background: white;
  border-radius: 15px;
  padding: 1rem 0.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  border: 1px solid #f8f8f8;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(
    --honda-red,
    #ce1018
  ); /* Fallback color jika var tidak ada */
  box-shadow: 0 10px 30px rgba(237, 28, 36, 0.1);
}

.feature-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.feature-box:hover .feature-img {
  transform: scale(1.1) rotate(5deg);
}

/* =========================================
   3. FAQ ACCORDION SECTION
   ========================================= */
.accordion-item {
  border: none;
  background: transparent;
  margin-bottom: 15px;
}

.accordion-button {
  background-color: #ed1c24; /* Merah Honda */
  color: white;
  font-weight: 600;
  border-radius: 10px !important; /* Sudut tumpul */
  box-shadow: 0 4px 6px rgba(237, 28, 36, 0.2);
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: #d3181f; /* Merah sedikit lebih gelap */
  color: white; /* Teks tetap putih */
  box-shadow: 0 6px 12px rgba(237, 28, 36, 0.3);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: scale(1.2); /* Perbesar sedikit */
  transition: transform 0.2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
  /* Tetap gunakan gambar yang sama (putih), rotasi diurus otomatis oleh Bootstrap */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  background-color: white;
  border: 1px solid #eee;
  border-top: none; /* Agar menyatu dengan header */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 1.5rem;
  margin-top: -5px; /* Tarik sedikit ke atas agar nempel dengan tombol merah */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(237, 28, 36, 0.25);
  border-color: #ed1c24;
}

/* =========================================
   4. RESPONSIVE STYLES (MOBILE)
   ========================================= */
@media (max-width: 991px) {
  /* Hero Section Mobile Adjustment */
  .hero-slide-item {
    min-height: 500px; /* Pastikan cukup tinggi untuk Slide 1 */
  }

  .hero-slide-item img.object-fit-cover {
    height: 100% !important; /* Paksa gambar setinggi wadah */
    object-fit: cover; /* Gambar akan zoom in untuk menutupi area kosong */
    object-position: center; /* Fokus zoom di tengah gambar */
  }

  .hero-gradient-bg {
    padding: 4rem 0 2rem 0; /* Padding atas bawah agar konten tidak nempel */
    align-items: flex-start; /* Align top agar text naik sedikit */
  }

  .hero-text-content {
    text-align: center;
    padding-left: 0;
    padding-bottom: 2rem;
  }

  /* Center buttons di mobile */
  .hero-text-content .d-flex {
    justify-content: center;
  }

  /* Ukuran HP di mobile */
  .phone-mockup {
    max-width: 280px;
    margin-top: 1rem;
  }

  /* Ukuran badge store di mobile */
  .store-badge {
    height: 40px;
  }

  /* Shape background di mobile agak digeser biar ga nutup teks */
  .shape-1 {
    width: 200px;
    height: 200px;
    top: -20px;
    left: -50px;
  }

  /* Feature Box text size adjustment */
  .feature-box h6 {
    font-size: 0.9rem;
  }

  .feature-box p {
    font-size: 0.75rem !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }

  /* Sembunyikan Titik Indikator Bawah */
  .carousel-indicators {
    display: none !important;
  }
}
