/* Agar halaman punya tinggi penuh dan footer terdorong ke bawah */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* Ini yang mendorong footer ke bagian bawah */
}

/* =========================
   HERO SLIDER
========================= */
.hero-slider {
  position: relative;
  height: 100vh;
  margin-top: 0;
}

.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}


.hero-slide .overlay {
  position: absolute;
  bottom: 10%;
  left: 8%;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-slide .overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-slide .overlay p {
  font-size: 1.3rem;
}

.hero-slide .overlay .btn {
  background: #d6001c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
}

/* =========================
   VEHICLE SHOWCASE
========================= */
.vehicle-showcase {
  margin: 0;
  padding: 0;
}

/* Item utama */
.vehicle-item {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;

  /* efek awal */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Muncul saat discroll */
.vehicle-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay hitam transparan */
.vehicle-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* Konten di dalam gambar */
.vehicle-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 60px;

  /* efek awal */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Saat muncul */
.vehicle-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Judul mobil */
.vehicle-content h2 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.vehicle-content.visible h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Container tombol */
.vehicle-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

/* Tombol dasar */
.vehicle-buttons .btn {
  position: relative;
  border: 1.5px solid #fff;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;

  /* efek awal */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out,
              background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Efek muncul bertahap saat konten tampil */
.vehicle-content.visible .btn:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.10s; }
.vehicle-content.visible .btn:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.15s; }
.vehicle-content.visible .btn:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.20s; }

/* Efek cahaya saat hover */
.vehicle-buttons .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.vehicle-buttons .btn:hover::before {
  left: 125%;
}

/* Hover effect - naik & glow */
.vehicle-buttons .btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

/* Efek klik timbul (pressed) */
.vehicle-buttons .btn:active {
  transform: scale(0.94);
  box-shadow: 0 3px 15px rgba(255, 255, 255, 0.3) inset;
  background: rgba(255,255,255,0.15);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}


/* =========================
   DETAIL PRODUK
========================= */
.car-detail {
  color: #333;
}

.hero-section {
  position: relative;
  text-align: center;
  background: #f8f8f8;
  padding: 80px 0 40px;
}

.car-main-img {
  width: 90%;
  max-width: 1200px;
  height: auto;
}

.hero-info {
  margin-top: 40px;
}

.model-name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.key-specs {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.spec-item {
  text-align: center;
}

.spec-item h2 {
  font-size: 2.5rem;
  color: #000;
  margin: 0;
}

.spec-item h2 span {
  font-size: 1.4rem;
  vertical-align: super;
}

.spec-item p {
  margin-top: 8px;
  font-size: 1rem;
  color: #666;
}

.info-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.info-section h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #e60012;
}

.description, .details {
  margin-bottom: 40px;
}

.cta-buttons {
  text-align: center;
  margin-bottom: 80px;
}

.cta-buttons .btn {
  display: inline-block;
  background: #e60012;
  color: white;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 10px 10px;
  transition: background 0.3s;
}

.cta-buttons .btn:hover {
  background: #b5000e;
}

.cta-buttons .btn-outline {
  background: transparent;
  color: #e60012;
  border: 2px solid #e60012;
}

.cta-buttons .btn-outline:hover {
  background: #e60012;
  color: white;
}

/* =========================
   GRID ARTIKEL
========================= */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch; /* penting agar tinggi sejajar */
}

.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* isi diatur proporsional */
  height: 100%; /* biar semua sama tinggi */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%; /* biar ikut tinggi grid */
}

.article-card-link:hover .article-card {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card h3 {
  color: #111;
  margin: 15px;
  margin-bottom: 5px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.article-card p {
  margin: 0 15px 15px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
  flex-grow: 1; /* isi teks fleksibel tapi tetap sejajar */
}


/* Hover effect */
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.article-card:hover img {
  transform: scale(1.05);
}

/* Tombol lihat semua artikel */
.articles + div a.btn {
  display: inline-block;
  background: #161616;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.articles + div a.btn:hover {
  background: #000000;
  transform: scale(1.05);
}
.articles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  
}



/* =========================
   KONTAK SALES BYD MODERN 2025
========================= */
/* =========================
   KONTAK SALES BYD MODERN 2025
========================= */
.contact-modern {
  padding: 50px 0;
  background: #dddddd;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Efek halus gradient cahaya bergerak */
.contact-modern::before {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 200%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3) 0%, transparent 60%);
  animation: shine 6s infinite linear;
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* BOX FOTO SALES */
.contact-photo-box {
  flex: 1;
  min-width: 300px;
  text-align: center;
  padding: 25px;
  transition: all 0.4s ease;
}

/* FOTO SALES */
.sales-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid #292929;

  /* Foto tetap normal, tidak gepeng */
  object-fit: cover;

  /* INI yang bisa kamu atur */
  object-position: center var(--foto-offset, 0%);

  /* Jarak supaya tidak nempel ke frame */
  padding: 3px;
  background: #ffffff;
  
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: 0.3s ease;
}


.sales-photo:hover {
  transform: scale(1.05);
  border-color: #111;
}

/* NAMA SALES */
.sales-text h3 {
  margin-top: 15px;
  color: #292929;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.sales-text h3:hover {
  color: #111;
}

/* LIST KONTAK */
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
.contact-list li {
  margin: 8px 0;
}
.contact-list a {
  color: #292929;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.contact-list a:hover {
  color: #111;
  transform: translateX(4px);
}
.contact-list i {
  color: #292929;
  margin-right: 8px;
  transition: transform 0.3s ease;
}
.contact-list a:hover i {
  transform: scale(1.2);
}

/* SOSIAL MEDIA */
.social-links {
  margin-top: 15px;
}
.social-links a {
  color: #292929;
  font-size: 20px;
  margin: 0 8px;
  transition: all 0.3s ease;
}
.social-links a:hover {
  color: #111;
  transform: translateY(-3px) scale(1.1);
}

/* DESKRIPSI & MAP */
.contact-info-box {
  flex: 1;
  min-width: 300px;
  padding: 25px;
  transition: all 0.4s ease;
}

.sales-desc {
  font-style: italic;
  margin-bottom: 20px;
  color: #292929;
  line-height: 1.6;
  position: relative;
}
.sales-desc::before {
  content: "“";
  font-size: 36px;
  color: #000000;
  position: absolute;
  left: -10px;
  top: -10px;
  opacity: 0.2;
}

.maps-link {
  display: inline-block;
  margin-top: 10px;
  color: #ff0000;
  text-decoration: none;
  transition: all 0.3s ease;
}
.maps-link:hover {
  color: #292929;
  transform: translateX(4px);
}
.maps-link i {
  margin-right: 6px;
}

.map-container {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}
.map-container:hover {
  transform: scale(1.02);
}

/* ================= HALAMAN PRICELIST.PHP ===================*/

/* =========================================
   STYLE: HALAMAN PRICELIST (DAFTAR HARGA)
========================================= */
.pricelist-section {
  background: #f9f9f9;
  padding: 60px 20px;
}

.pricelist-section .container {
  max-width: 1200px;
  margin: auto;
}

/* ===== Judul Halaman ===== */
.section-header {
  text-align: left;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  position: relative;
}

.section-line {
  width: 150px;
  height: 4px;
  background: #007bff;
  border-radius: 2px;
}

/* ===== Grid Mobil ===== */
.pricelist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

/* === KARTU HARGA MOBIL === */
.price-card {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}
.price-card:hover .car-image {
  transform: scale(1.05);
}

/* Gambar mobil */
.car-image {
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Nama model */
.model-name {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Baris dua kotak harga */
.price-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Kotak harga */
.price-item {
  border: 1px solid #007bff;
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.price-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.25);
}

.price-item h5 {
  font-size: 10px;
}

.price-item p {
  font-size: 10px;
}

/* Info harga bawah (OTR) */
.price-info {
  font-size: 0.9rem;
  color: #555;
  margin-top: 15px;
  line-height: 1.4;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.9s forwards;
}

/* Garis pemisah */
.price-list hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 25px auto;
  width: 80%;
}

/* Spesifikasi (center) */
.specs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease-out 1.1s forwards;
}

.specs h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #000;
}

.specs p {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
}

/* ===== Animasi ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ============= DETAIL ARTIKEL =================== */
/* ===== Hilangkan garis bawah pada link artikel ===== */
.articles a, 
.article-card a {
    text-decoration: none;
    color: inherit;
}

/* ===== Card Artikel di articles.php ===== */
.article-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
}
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-card h3 {
    font-size: 1.2rem;
    margin: 15px;
    font-weight: 600;
}
.article-card p {
    font-size: 0.95rem;
    margin: 0 15px 15px;
    color: #555;
}

/* ===== DETAIL ARTIKEL ===== */
.article-detail-container {
    display: flex;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
    color: #333;
}

.article-main {
    flex: 3;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.article-date {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

.article-content {
    margin-top: 20px;
    line-height: 1.8;
    font-size: 1rem;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    color: white;
    background: #d6001c;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}
.back-btn:hover {
    background: #b50018;
}

/* ===== SIDEBAR BERITA TERBARU ===== */
.article-sidebar {
    flex: 1;
    padding-left: 20px;
    border-left: 2px solid #eee;
}

.article-sidebar h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #d6001c;
}

.article-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sidebar li {
    margin-bottom: 15px;
}

.article-sidebar a {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    transition: 0.2s;
}

.article-sidebar a:hover {
    color: #d6001c;
}

.article-sidebar small {
    font-size: 0.85rem;
    color: #777;
}

/* ===== SIDEBAR DENGAN THUMBNAIL ===== */
.sidebar-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sidebar-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 5px;
}

.sidebar-item h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    color: #333;
}

.sidebar-item small {
    font-size: 0.8rem;
    color: #777;
}

/* Hover */
.article-sidebar a:hover h4 {
    color: #d6001c;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px !important; /* fix safari iPhone */
  border: 0;
  border-radius: 12px;
}


/* ===== Responsive 480px ===== */
@media (max-width: 480px) {

  /* -------- HERO SLIDER -------- */
  .hero-slider {
    height: 32vh;
  }

  .hero-slide .overlay {
    bottom: 6%; 
    left: 5%;
    right: 6%;
    text-align: left;
  }

  .hero-slide .overlay h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .hero-slide .overlay p {
    font-size: 1rem;
  }

  .hero-slide .overlay .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
  }

  /* -------- VEHICLE SHOWCASE -------- */

  /* Pastikan full width & tidak muncul garis putih */
  .vehicle-item {
    width: 100vw;
    height: 52vh; /* lebih pas untuk HP */
    background-position: center center;
    justify-content: flex-end;
  }

  .vehicle-content {
    margin-bottom: 40px;
    padding: 0 20px;
    text-align: center;
  }

  .vehicle-content h2 {
    font-size: 1.9rem;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
  }

  .vehicle-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .vehicle-buttons .btn {
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 4px;
  }
  /* Card Artikel (di articles.php & homepage section) */
  .article-card img {
    height: 140px !important; /* kecilkan tinggi gambar */
  }

  .article-card h3 {
    font-size: 1rem !important;
    margin: 10px !important;
  }

  .article-card p {
    font-size: 0.85rem !important;
    margin: 0 10px 12px !important;
  }

  /* Halaman Detail Artikel */
  .article-detail-container {
    flex-direction: column !important;
    margin: 40px auto !important;
    gap: 20px !important;
  }

  .article-title {
    font-size: 1.5rem !important;
  }

  .article-content {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  .article-image {
    max-height: 260px !important;
  }

  /* Sidebar Artikel Terbaru */
  .article-sidebar {
    border-left: none !important;
    padding-left: 0 !important;
  }

  .article-sidebar h3 {
    font-size: 1.05rem !important;
    text-align: center;
  }

  /* Sidebar item kecil */
  .sidebar-item img {
    width: 55px !important;
    height: 55px !important;
  }

  .sidebar-item h4 {
    font-size: 0.85rem !important;
  }

  .sidebar-item small {
    font-size: 0.75rem !important;
  }

  .back-btn {
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
  }
    .pricelist-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .price-card {
    padding: 12px !important;
    border-radius: 10px !important;
  }

  /* --- gambar lebih kecil + center --- */
  .price-card .car-image {
    width: 85% !important;   /* ↓ dari 100% jadi lebih proporsional */
    max-width: 260px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 10px auto !important;
    object-fit: contain !important;
  }

  /* tulisan lebih compact */
  .model-name {
    font-size: 1.05rem !important;
    margin-bottom: 6px !important;
    text-align: center !important;
  }

  .price-list h2 {
    font-size: 1.1rem !important;
    text-align: center !important;
  }

  /* specs rapat & 2 kolom */
  .specs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
    text-align: center !important;
  }

  .specs h4 {
    font-size: 0.9rem !important;
  }

  .specs p {
    font-size: 0.75rem !important;
    margin: 0 !important;
  }
}
