* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    padding-top: 70px;
  }
  
 /* HEADER */
.header2 {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease; /* Tambahkan transisi umum jika diperlukan */
}

.top-bar2 {
  background: #ff0000;
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
  transition: transform 0.3s ease; /* Transisi untuk slide up */
}

.top-bar2 .container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.header2 .navbar2 {
  background: transparent; 
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar2 .container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center; 
}

.logo img {
  height: 75px; 
  width: auto;
  max-height: 50px; 
  transition: filter 0.3s ease; 
  filter: brightness(1.2); 
}

.nav-links2 {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links2 a {
  text-decoration: none;
  color: #333; 
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links2 a:hover {
  color: #007BFF; 
}

.header2.scrolled {
  background: #fff; 
}

.header2.scrolled .navbar2 {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
}

.header2.scrolled .logo {
  color: #333; 
}

.header2.scrolled .nav-links2 a {
  color: #333; 
}

.header2.scrolled .nav-links2 a:hover {
  color: #007BFF; 
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  padding-top: 80px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid #eee;
}

.mobile-nav-links a {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background-color: #f8f9fa;
  color: #007BFF;
}

.mobile-nav-links .btn-login {
  margin: 10px 20px;
  text-align: center;
  display: block;
}

.mobile-user-menu {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.mobile-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

/* LOGIN BUTTON */
.btn-login {
  padding: 8px 16px;
  background: #002b6b;
  color: white !important;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-login:hover {
  background: #003b9b;
}

/* User menu dan dropdown */
.user-menu {
  position: relative;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.user-btn:hover {
  color: #007bff;
}
/* Dropdown menu */
.dropdown-menu {
  display: none; /* Sembunyikan default */
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 1000;
}
.dropdown-menu.show {
  display: block; /* Tampilkan saat class 'show' ada */
}
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu.show {
  display: block; /* Tampilkan saat class 'show' ada */
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}
.dropdown-menu a:hover {
  background-color: #f8f9fa;
}

.profile-dropdown {
  width: 230px;
  padding: 15px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Profil header */
.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

/* Foto profil */
.profile-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* Nama */
.profile-text {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
}

/* Email */
.profile-email {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

/* MAIN CONTAINER */
.container-detail {
  max-width: 1250px;
  margin: 40px auto;
  display: flex;
  gap: 50px;
}

/* Gambar Mobil */
.image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #fafafa;
  padding: 20px;
}

.mobil-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* RIGHT CONTENT */
.detail-right {
  width: 50%;
}

h1 {
  font-size: 38px;
  margin-bottom: 15px;
}

.sub-title {
  font-size: 20px;
  margin-bottom: 15px;
}

/* SPECS GRID */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec-item {
  background: #fff;
  border: 1px solid #e4e4e4;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
}

.spec-item i {
  color: #005cd4;
  font-size: 20px;
}

.spec-title {
  font-weight: 600;
  margin-top: 5px;
}

.status {
  margin-top: 20px;
  font-size: 17px;
}

.status-ready {
  background: #d5f8d3;
  color: #0a8a00;
  padding: 5px 12px;
  border-radius: 8px;
}

.status-rent {
  background: #ffd9d9;
  color: #cc0000;
  padding: 5px 12px;
  border-radius: 8px;
}

.deskripsi {
  margin-top: 25px;
  font-size: 15px;
}

/* BUTTON */
.btn-pesan {
  display: block;
  width: 220px;
  text-align: center;
  background: #ff7a00;
  color: #fff;
  padding: 14px;
  border-radius: 30px;
  margin-top: 25px;
  text-decoration: none;
  font-weight: 600;
}

.btn-disabled {
  background: #bbb !important;
  pointer-events: none;
  cursor: not-allowed;
}

/* --- TAB BUTTON --- */
.detail-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  position: relative;
  transition: 0.3s;
}

.tab-btn.active {
  color: #f57c00;
  font-weight: 600;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #f57c00;
  border-radius: 2px;
}

/* --- TAB CONTENT AREA --- */
.tab-content {
  display: none;
  padding: 30px 80px;
  line-height: 1.7;
  font-size: 17px;
  color: #333;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .navbar2 .container .nav-links2 {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .container-detail {
      flex-direction: column;
      padding: 15px;
      gap: 20px;
  }

  /* GAMBAR UTAMA */
  .detail-left {
      width: 100%;
      text-align: center;
  }

  .detail-left .img-main {
      width: 90%;
      max-width: 350px;
      height: auto;
  }

  /* KONTEN KANAN */
  .detail-right {
      width: 100%;
      padding: 0 10px;
  }

  .detail-right h1 {
      font-size: 26px;
      text-align: center;
      margin-bottom: 15px;
  }

  .sub-title {
      font-size: 20px;
      margin-bottom: 10px;
  }
  .spec-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
  }

  .spec-item {
      padding: 12px;
      border-radius: 10px;
      background: #f8f8f8;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
  }

  .spec-item i {
      font-size: 20px;
      color: #003b9b;
  }

  /* STATUS */
  .status {
      font-size: 16px;
      margin-top: 15px;
      text-align: center;
  }

  .btn-pesan {
      width: 100%;
      text-align: center;
      margin: 20px 0;
  }

  /* TAB MENU */
  .detail-tabs {
      gap: 20px;
      margin-top: 30px;
      padding-bottom: 5px;
  }

  .tab-btn {
      font-size: 16px;
      padding: 6px 0;
  }

  /* TAB CONTENT */
  .tab-content {
      padding: 10px 15px;
      font-size: 15px;
      line-height: 1.6;
  }
}

@media (max-width: 480px) {

  .detail-right h1 {
      font-size: 22px;
  }

  .spec-grid {
      grid-template-columns: 1fr;
  }

  .spec-item {
      align-items: flex-start;
  }

  .btn-pesan {
      font-size: 16px;
  }

  .tab-btn {
      font-size: 14px;
  }
}



.footer {
  background-color: #052a6e;
  color: #fff;
  padding: 50px 0 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  width: 90%;
  margin: auto;
}

.footer h3 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px; 
}

.footer-logo {
  width: 180px;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
}

.footer-col p {
  margin: 0; 
  line-height: 1.4;
}

.footer .line {
  width: 60%;
  height: 2px;
  background-color: #2e5aa3;
  margin-bottom: 10px;
}

.profile-link {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.profile-link i {
  margin-right: 5px;
}

.bank-logo {
  width: 100px;
  margin: 10px 0;
}

.footer-col i {
  margin-right: 8px;
  color: #c9d6ff;
}

.post-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.post-item img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
}
.post-item a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.post-item a:hover {
  text-decoration: underline;
}

.counter {
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid #1a3d80;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #c0d9ff;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    order: 2;
  }

  .about-image {
    order: 1;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}