.navbar-brand img {
    height: 60px;
    width: auto;  
    transition: 0.3s;
}

/* Mengaktifkan Hover Dropdown pada Desktop */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Menghilangkan celah agar tidak tertutup saat pindah kursor */
    animation: fadeIn 0.3s ease;
  }
}

/* Animasi halus saat dropdown muncul */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Styling tambahan untuk item dropdown agar lebih elegan */
.dropdown-item:hover {
  background-color: #e60012; /* Warna merah khas Mitsubishi */
  color: white;
}

/* BAGIAN BANNER */
.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}
.carousel-caption {
    z-index: 2;
}

#heroCarousel {
  height: 90vh; 
  width: 100%;
  overflow: hidden;
}

#heroCarousel .carousel-item img {
  height: 90vh; /* Default Desktop */
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  width: 80%; /* Memberi ruang agar teks tidak menyentuh pinggir layar */
  left: 10%;
}
.carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
}
.banner-btn {
  background-color: #E60012; 
  color: #fff; 
  padding: 1rem 2rem; 
  font-size: 1.1rem; 
  border-radius: 5px; 
  cursor: pointer; 
  transition: transform 0.3s, background 0.3s; 
  font-weight: bold;
  text-decoration: none; 
  display: inline-block;
}
.banner-btn:hover {
  background-color: #b3000e;
  color: #fff;
  transform: translateY(-3px);
  text-decoration: none; 
}

@media (max-width: 767.98px) {
  #heroCarousel, 
  #heroCarousel .carousel-item img {
    height: 60vh; /* Mengurangi tinggi di mobile agar tidak terlalu kotak */
  }

  .carousel-caption h2 {
    font-size: 1.2rem !important; /* Mengecilkan judul agar tidak pecah */
    margin-bottom: 0.5rem;
  }

  .carousel-caption p {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .banner-btn {
    background-color: #E60012; 
    color: #fff; 
    padding: 0.7rem 1.5rem; 
    font-size: 0.8rem; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: transform 0.3s, background 0.3s; 
    font-weight: bold;
    text-decoration: none; 
    display: inline-block;
  }
  .banner-btn:hover {
    background-color: #b3000e;
    color: #fff;
    transform: translateY(-3px);
    text-decoration: none; 
  }
}

/* Card */
/* Efek Hover Card */
.truck-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-width: 1px;
    position: relative;
    overflow: hidden;
}

.truck-card:hover {
    transform: translateY(-8px);
    border-color: #e60012 !important; /* Warna merah Mitsubishi */
}

/* Badge Kategori */
.badge-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(230, 0, 18, 0.85);
    color: white;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 1;
}

/* Tombol Merah Kustom */
.btn-red {
    background-color: #e60012;
    color: white;
    border: none;
    transition: background 0.3s ease;
}

.btn-red:hover {
    background-color: #b3000e;
    color: white;
}

/* Memastikan gambar tidak pecah */
.truck-card img {
    object-fit: contain;
    height: 200px;
}