* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #f4f6f9;
  color: #111;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */

.header {
  background: #0f0f0f;
  color: #fff;
  padding: 18px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.logo span {
  color: #0066ff;
}

nav a {
  color: #ddd;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  transition: 0.2s;
}

nav a:hover {
  color: #fff;
}

#menuToggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0;
  text-align: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}
/* .hero {
  background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
    url("/assets/images/homepage/hero-bike.webp") center/cover no-repeat;
  color: #fff;
  padding: 150px 0; 
  text-align: center;
} */

.hero h1 {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero p {
  opacity: 0.95;
  margin-bottom: 30px;
  font-size: 17px;
}

/* ================= HERO SEARCH ================= */

.hero-search-wrapper {
  margin-top: 40px;
  margin-bottom: 40px; /* More breathing room before buttons */
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

.search-box {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.search-box input {
  flex: 1;
  padding: 18px 22px;
  border: none;
  font-size: 16px;
  outline: none;
  border-radius: 12px 0 0 12px;
}

.search-box button {
  padding: 0 26px;
  background: #0066ff;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  border-radius: 0 12px 12px 0;
}

.search-box button:hover {
  background: #0052cc;
}

/* Search Dropdown */

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  margin-top: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

.search-item {
  padding: 14px 18px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  transition: 0.2s ease;
  color: #111;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #f3f7ff;
  color: #0066ff;
}

/* ================= BUTTONS ================= */

.btn {
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
  display: inline-block;
  transition: 0.25s;
}

.primary {
  background: #0066ff;
  color: #fff;
}

.primary:hover {
  background: #0052cc;
}

.secondary {
  border: 1px solid #fff;
  color: #fff;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ================= SECTIONS ================= */

.section {
  padding: 100px 0; /* Increased spacing */
}

.section.alt {
  background: #eef1f6;
}

.section.soft {
  background: #f7f9fc;
}

h2 {
  margin-bottom: 35px;
  font-size: 28px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #0066ff;
  position: absolute;
  bottom: -8px;
  left: 0;
}

/* ================= BRAND GRID ================= */

.brand-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.brand-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.brand-card img {
  max-height: 50px;
  transition: 0.3s ease;
}

.brand-card:hover img {
  transform: scale(1.07);
}

/* ================= BIKE CARDS ================= */

.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px; */
}

.bike-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: 0.35s ease;
}

.bike-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.bike-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  padding: 20px 20px 10px;
  background: linear-gradient(to bottom, #f6f8fb, #eef2f7);
}

.bike-info {
  padding: 18px 22px 22px;
}

.bike-info h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}

.bike-info span {
  color: #0066ff;
  font-weight: 600;
  font-size: 14px;
}

/* ================= BUDGET ================= */

.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.budget-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.budget-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* ================= MILEAGE ================= */

.mileage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.mileage-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.mileage-card a {
  color: #0066ff;
  text-decoration: none;
  font-weight: 600;
}

/* ================= COMPARISON ================= */

.comparison-cta {
  background: #0f0f0f;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.comparison-cta p {
  margin: 15px 0 25px;
  opacity: 0.85;
}

.coming-soon-badge {
  margin: 20px 0;
  font-weight: 600;
  color: #4da3ff;
  font-size: 15px;
}

.disabled-btn {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ================= FEATURES ================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.feature-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* ================= POPULAR SEARCHES ================= */

.search-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.search-links a {
  text-decoration: none;
  color: #0066ff;
  font-weight: 500;
}

/* ================= FOOTER ================= */

.footer {
  background: #0f0f0f;
  color: #aaa;
  padding: 60px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #0f0f0f;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 15px;
  }

  nav.active {
    display: flex;
  }

  #menuToggle {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 70px 0;
  }
}

/* ================= PRICE TABLE ================= */

.price-table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.price-table thead {
  background: #0f0f0f;
  color: #fff;
}

.price-table th,
.price-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
}

.price-table th {
  font-weight: 600;
}

.price-table tbody tr {
  border-bottom: 1px solid #f1f1f1;
  transition: 0.2s ease;
}

.price-table tbody tr:hover {
  background: #f7f9fc;
}

.price-table tbody tr:last-child {
  border-bottom: none;
}

/* ===== Enhanced Bike Card Layout ===== */

.bike-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating {
  font-size: 12px;
  background: #e8f5ef;
  color: #1a7f4b;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.bike-specs {
  font-size: 13px;
  margin: 8px 0 12px;
  color: #555;
}

.bike-price {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
}

.bike-price-label {
  font-size: 12px;
  color: #777;
}

.brand-logo {
  height: 50px;
  margin-bottom: 20px;
}

/* Narrow container for text-heavy pages */
.content-narrow {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 16px;
}

.content-narrow h1 {
  font-size: 32px;
  margin-bottom: 25px;
}

.content-narrow h3 {
  margin-top: 35px;
  margin-bottom: 12px;
  font-size: 20px;
}

.content-narrow p {
  margin-bottom: 16px;
  color: #444;
}

.content-narrow ul {
  margin: 15px 0 20px 20px;
}

.content-narrow li {
  margin-bottom: 8px;
}

/* ================= COMPARISON SECTION ================= */

.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compare-view-all {
  font-size: 14px;
  text-decoration: none;
  color: #0066ff;
  font-weight: 600;
}

/* Featured card */
.compare-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  margin-top: 30px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.compare-featured:hover {
  transform: translateY(-6px);
}

.compare-badge {
  font-size: 12px;
  color: #e8440a;
  font-weight: 600;
}

.compare-featured h3 {
  font-size: 26px;
  margin: 10px 0;
}

.vs {
  margin: 0 10px;
  font-weight: bold;
}

.bike-a {
  color: #e8440a;
}
.bike-b {
  color: #0a7de8;
}

.compare-prices {
  margin-top: 10px;
  display: flex;
  gap: 15px;
}

.price-a {
  color: #e8440a;
  font-weight: bold;
}
.price-b {
  color: #0a7de8;
  font-weight: bold;
}

/* Images */
.compare-featured-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.compare-featured-images img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
}

/* Grid cards */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.compare-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  transition: 0.25s;
}

.compare-card:hover {
  transform: translateY(-5px);
}
