/* FIX: box-sizing added so buttons/padding don't overflow card edges */
.new-car-card,
.new-car-card * {
  box-sizing: border-box !important;
}

/* Section Base */
.used-cars-section {
  background-color: #f8f9fe !important;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif !important;
}

.section-main-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.3px !important;
  margin-bottom: 6px !important;
}

.section-sub-title {
  font-size: 15px !important;
  color: #64748b !important;
  margin-bottom: 24px !important;
}

/* Card Outer Wrapper */
.new-car-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  /* FIX: guarantees the card never collapses / stretches weird
       when the parent grid is missing a proper .row wrapper */
  width: 100% !important;
  position: relative !important;
}

.new-car-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
  border-color: #cbd5e1 !important;
}

/* Top Image Container */
.car-top-section {
  position: relative !important;
  background-color: #f8f9fe !important;
  height: 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* FIX: badge / image can never leak into the next card anymore */
  overflow: hidden !important;
  /* FIX: top corners rounded to match card (in case parent overflow:hidden
       isn't enough on some browsers when card has extra wrapping) */
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
}

/* Black Pill Badge (default pages) — matches "SUPERCAR" badge in image */
.car-badge {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  background: #000000 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  z-index: 2 !important;
  max-width: calc(
    100% - 32px
  ) !important; /* FIX: badge can't overflow card width */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ===== /cars page ONLY: light purple pill badge ===== */
.car-badge-light {
  background: #eceafc !important;
  color: #6c5ce7 !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.car-image-link {
  width: 100% !important;
  height: 100% !important;
  display: block !important; /* FIX: was flex — block avoids extra centering gaps */
}

.car-image-wrapper {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important; /* FIX: kills inline-image whitespace gap */
  display: block !important;
}

.car-image {
  display: block !important; /* FIX: img is inline by default -> caused the grey gap at bottom/sides */
  width: 170% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  /* FIX: some source images (promo/rendered photos) have white padding
       baked INTO the image file itself (not a CSS gap) — e.g. car floating
       on a white/gradient background with text banner. object-fit:cover
       alone can't remove that since it's part of the actual pixels.
       Scaling the image up slightly pushes those baked-in white edges
       outside the visible box (which has overflow:hidden), so only the
       car itself remains visible, edge-to-edge. */
  transform: scale(1.18) !important;
  transform-origin: center center !important;
}

/* Card Inner Content Area */
.car-content {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/* Title Link & Formatting */
.car-title-link {
  text-decoration: none !important;
}

.car-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 42px !important;
}

/* Specs Pills (default pages) */
.car-specs-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
}

.spec-pill {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
}

/* Price Section (default pages) */
.car-price-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

.price-main {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #1d63ed !important;
}

.price-main .period {
  font-size: 13px !important;
  color: #1d63ed !important;
  font-weight: 600 !important;
}

.price-secondary {
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

/* Action Buttons Row (default pages) */
.car-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: auto !important;
}

/* Gradient Blue→Purple "Book Now" Button (matches image) */
.btn-book-now {
  flex: 1 !important;
  height: 44px !important;
  background: linear-gradient(135deg, #1d63ed 0%, #6c3ce7 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
}

.btn-book-now:hover {
  opacity: 0.9 !important;
  color: #ffffff !important;
}

/* Square Outline Icon Buttons (Call = blue icon, WhatsApp = green icon) */
.btn-icon-box {
  width: 44px !important;
  height: 44px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-icon-box:hover {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
}

/* View All Button — Centered */
.btn-view-all {
  display: inline-block !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin: 0 auto !important;
}

.btn-view-all:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

/* ===================================================
     /cars PAGE ONLY — matches reference image exactly
     =================================================== */
.cars-page-price {
  margin-bottom: 4px !important;
}

.cars-page-price .price-main {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.cars-page-price .price-main .period {
  color: #64748b !important;
}

.cars-page-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 6px 0 !important;
}

.car-specs-inline {
  font-size: 13px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  margin-bottom: 16px !important;
}

.cars-page-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: auto !important;
}

.btn-call-outline {
  height: 44px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.btn-call-outline:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.btn-whatsapp-solid {
  height: 44px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
}

.btn-whatsapp-solid:hover {
  opacity: 0.9 !important;
  color: #ffffff !important;
}

/* ===================================================
     rent-a-car/listing PAGE ONLY — single gradient button
     matches reference image ("View details")
     =================================================== */
.listing-page-actions {
  display: block !important;
}

.btn-view-details {
  display: flex !important;
  width: 100% !important;
  height: 46px !important;
  background: linear-gradient(135deg, #1d63ed 0%, #6c3ce7 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
}

.btn-view-details:hover {
  opacity: 0.9 !important;
  color: #ffffff !important;
}
.car-card-col {
  padding: 10px !important;
}


/* ===================================================
    Blog Card
     =================================================== */


  /* Modern Blog Card Styles */
  .modern-blog-card {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  .modern-blog-card .card-wrapper {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  /* Purple Accent Bar at the top of the card */
  .modern-blog-card .card-wrapper::before {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #7c3aed, #6366f1);
  }

  .modern-blog-card .card-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  /* Image Area Styling */
  .modern-blog-card .card-image-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
  }

  .modern-blog-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  .modern-blog-card .card-wrapper:hover .card-image {
    transform: scale(1.05);
  }

  /* Content Area */
  .modern-blog-card .content-area {
    padding: 20px 24px 16px 24px;
    background: #ffffff;
    flex-grow: 1;
  }

  /* Category Tag */
  .modern-blog-card .category-chip {
    display: block;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }

  /* Title */
  .modern-blog-card .card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px 0;
    color: #0f172a;
    transition: color 0.2s ease;

    /* 2 Lines clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 46px;
  }

  .modern-blog-card .card-wrapper:hover .card-title {
    color: #7c3aed;
  }

  /* Description */
  .modern-blog-card .card-description {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;

    /* 3 Lines clamp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Footer Section */
  .modern-blog-card .card-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 20px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
  }

  .modern-blog-card .date-info {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
  }

  .modern-blog-card .read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7c3aed;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .modern-blog-card .read-more span {
    transition: transform 0.2s ease;
  }

  .modern-blog-card .card-wrapper:hover .read-more span {
    transform: translateX(3px);
  }

  /* Mobile Tweaks */
  @media (max-width: 768px) {
    .modern-blog-card .card-image-wrapper {
      height: 160px;
    }

    .modern-blog-card .content-area {
      padding: 16px 16px 12px 16px;
    }

    .modern-blog-card .card-title {
      font-size: 15px;
      min-height: auto;
    }

    .modern-blog-card .card-description {
      font-size: 13px;
      -webkit-line-clamp: 2;
    }

    .modern-blog-card .card-footer-modern {
      padding: 12px 16px 16px 16px;
    }
  }

