/* =========================================
   HOME STYLES (Khusus Halaman Utama)
   ========================================= */

/* --- CAROUSEL & BANNER --- */
.carousel-item { height: auto !important; min-height: auto !important; background-color: #000; position: relative; }
.banner-img { width: 100%; height: auto; display: block; }
.banner-overlay-container { position: absolute; bottom: 60px; left: 0; width: 100%; z-index: 10; text-align: left; }
.btn-banner-ghost { background-color: transparent; color: #fff; border: 2px solid #fff; font-weight: 900; font-size: 1rem; border-radius: 0; padding: 12px 35px; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.btn-banner-ghost:hover { background-color: #fff; color: #000; border-color: #fff; }
@media (max-width: 768px) { .banner-overlay-container { bottom: 50px; } .btn-banner-ghost { padding: 6px 15px; font-size: 0.7rem; border-width: 1.5px; letter-spacing: 1px; } }

/* --- CARD MOBIL (Beranda) --- */
.car-card { border: none !important; background: transparent !important; box-shadow: none !important; transition: transform 0.3s; margin-bottom: 30px; height: 100%; position: relative; }
.car-card:hover { transform: translateY(-5px); box-shadow: none !important; border: none !important; }
.car-img-wrapper { height: 200px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: transparent !important; padding: 15px; position: relative; }
.car-img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
.car-card:hover .car-img-wrapper img { transform: scale(1.05); }
.card-body { padding: 20px; text-align: center; } 
.car-name { font-weight: 800; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 5px; color: #000; }
.car-price { color: #E60012; font-weight: 800; font-size: 1.1rem; margin-bottom: 15px; }

@media (max-width: 768px) {
    .car-img-wrapper { height: 120px !important; padding: 5px !important; } 
    .card-body { padding: 10px 5px !important; }
    .car-name { font-size: 0.9rem !important; margin-bottom: 2px !important; }
    .car-price { font-size: 0.85rem !important; margin-bottom: 8px !important; }
}

/* --- CUSTOM TABS (Filter Mobil Home) --- */
.custom-tabs { border-bottom: 2px solid #e2e2e2; gap: 20px; padding-left: 0; }
.custom-tabs .nav-link { color: #050505 !important; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; border: none; background: transparent; padding: 10px 15px; margin-bottom: -2px; border-bottom: 4px solid transparent; transition: all 0.3s ease; }
.custom-tabs .nav-link:hover { color: #bf0a0a !important; border-color: transparent; }
.custom-tabs .nav-link.active { color: #bf0a0a !important; border-bottom: 4px solid #bf0a0a !important; }
@media (max-width: 768px) { .custom-tabs { gap: 5px; overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; } .custom-tabs .nav-link { font-size: 0.8rem; padding: 10px 10px; } }

/* --- PROMO GRID --- */
.promo-grid-item { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; height: 100%; border: 1px solid #f0f0f0; }
.promo-grid-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.promo-grid-img { width: 100%; height: auto; display: block; }
.promo-grid-desc { padding: 20px; color: #555; font-size: 0.9rem; line-height: 1.6; }

/* --- FEATURE ZIG ZAG --- */
.promo-bg-section { padding: 80px 0; background-size: cover; background-position: center; position: relative; margin-bottom: 80px; }
.promo-bg-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0, 0.4); z-index: 1; }
.promo-container { position: relative; z-index: 2; }
.promo-black-box { background: rgba(0,0,0,0.85); color: #fff; border-left: 5px solid #E60012; padding: 40px; backdrop-filter: blur(5px); border-radius: 5px; }
.align-right .promo-black-box { border-left: none; border-right: 5px solid #E60012; }
.promo-title { font-size: 2rem; font-weight: 800; margin-bottom: 15px; }
.promo-subtitle { color: #E60012; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 10px; }
.promo-desc { color: #ddd; font-size: 0.95rem; line-height: 1.6; }
.store-badges img { height: 35px; width: auto; transition: transform 0.2s; }
.store-badges a:hover img { transform: scale(1.05); }
@media (max-width: 768px) { 
    .promo-bg-section { background-image: none !important; padding: 0 !important; background-color: #fff; margin-bottom: 60px !important; }
    .promo-bg-section::before { display: none; } 
    .promo-black-box { padding: 40px 20px; margin: 0 !important; border: none !important; background: #000; width: 100%; border-radius: 0; text-align: center; margin-bottom: 0px !important; min-height: auto; }
    .promo-title { font-size: 1.6rem; margin-bottom: 10px; }
    .align-right .promo-black-box { border-right: none; } 
    .mobile-promo-img { display: block; width: 100%; height: auto; object-fit: cover; }
    .store-badges { justify-content: center; margin-top: 20px; margin-bottom: 10px; }
}

/* --- HOME GALLERY SECTION (Bagian Bawah Beranda) --- */
.section-title-home { font-family: 'Roboto', sans-serif; font-weight: 700; letter-spacing: 1px; color: #333; font-size: 1.5rem; }
.view-all-link { color: #E60012; font-weight: 700; text-decoration: none; font-size: 0.85rem; transition: 0.3s; }
.view-all-link:hover { color: #b3000e; text-decoration: underline; }
.gallery-home-card { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); background: #fff; }
.gallery-home-img-wrapper { aspect-ratio: 1/1; overflow: hidden; }
.gallery-home-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-home-card:hover .gallery-home-img-wrapper img { transform: scale(1.1); }
.gallery-home-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%); display: flex; align-items: flex-end; padding: 15px; opacity: 0; transition: opacity 0.3s ease; }
.gallery-home-card:hover .gallery-home-overlay { opacity: 1; }
.gallery-home-title { color: #fff; font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
@media (max-width: 768px) {
    .gallery-home-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%); padding: 8px; }
    .section-title-home { font-size: 1.2rem; }
}