/* TataEVCars Master 100% Clone Stylesheet */
:root {
  --cd-orange: #f75d34;
  --cd-orange-hover: #e04a22;
  --cd-dark: #24272c;
  --cd-gray: #6b7280;
  --cd-light-bg: #f4f5f7;
  --cd-border: #e5e7eb;
  --cd-card-border: rgba(36, 39, 44, 0.1);
  --cd-blue: #007be5;
  --cd-green: #10b981;
  --cd-red: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, input, button, select, textarea {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  color: var(--cd-dark);
  background-color: #f4f5f7;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

ul, ol, li { list-style: none !important; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.cd-header {
  background: #ffffff;
  border-bottom: 1px solid var(--cd-card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(36,39,44,0.06);
}

.cd-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 20px;
}

.cd-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 900;
  color: var(--cd-dark);
  letter-spacing: -0.5px;
}

.cd-logo-badge {
  background: var(--cd-orange);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(247, 93, 52, 0.35);
}

.cd-logo span { color: var(--cd-orange); }

.cd-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  border: 1px solid var(--cd-border);
  border-radius: 9999px;
  padding: 9px 20px;
  flex: 1;
  max-width: 520px;
  transition: all 0.2s;
}

.cd-search-box:focus-within {
  background: #ffffff;
  border-color: var(--cd-orange);
  box-shadow: 0 0 0 3px rgba(247, 93, 52, 0.15);
}

.cd-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--cd-dark);
}

.cd-user-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
}

.cd-city-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #374151;
}

.cd-login-btn {
  background: var(--cd-dark);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.15s;
}
.cd-login-btn:hover { background: #111827; }

/* Secondary Mega Menu */
.cd-menu-bar {
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.cd-menu-inner {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cd-nav-link {
  color: #374151;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.cd-nav-link:hover, .cd-nav-link.active {
  color: var(--cd-orange);
  background: #fff7ed;
}

.cd-nav-link.ev-link { color: #059669; }
.cd-nav-link.ev-link:hover { background: #ecfdf5; }

/* Section Container Boxes */
.cd-section-box {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--cd-card-border);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(36,39,44,0.04);
}

/* Hero Section */
.cd-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  margin: 20px 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--cd-card-border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(36,39,44,0.04);
}

.cd-filter-widget {
  padding: 24px;
  border-right: 1px solid var(--cd-border);
}

.cd-filter-widget h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--cd-dark);
}

.cd-tab-group {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.cd-tab-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--cd-border);
  background: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.cd-tab-btn.active {
  background: var(--cd-dark);
  color: #ffffff;
  border-color: var(--cd-dark);
}

.cd-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--cd-gray);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cd-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--cd-border);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  outline: none;
}

.cd-btn-search {
  display: block;
  width: 100%;
  background: var(--cd-orange);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.cd-btn-search:hover { background: var(--cd-orange-hover); }

.cd-hero-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cd-hero-text { max-width: 58%; }

.cd-launch-tag {
  background: var(--cd-orange);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.cd-hero-text h1 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.25;
}

.cd-hero-text p {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 16px;
}

.cd-hero-img img {
  max-width: 270px;
  border-radius: 12px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

/* Category Filter Pills */
.cd-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 16px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.cd-heading-row h2 { font-size: 22px; font-weight: 800; }

.cd-category-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cd-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--cd-card-border);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  transition: all 0.15s;
}

.cd-pill.active, .cd-pill:hover {
  background: var(--cd-orange) !important;
  color: #ffffff !important;
  border-color: var(--cd-orange) !important;
}

/* 4-Column Car Cards Grid */
.cd-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.cd-card {
  background: #ffffff;
  border: 1px solid var(--cd-card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(36,39,44,0.08);
}

.cd-card-thumb {
  height: 175px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}

.cd-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cd-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(36, 39, 44, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.cd-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cd-brand-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--cd-orange);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cd-model-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--cd-dark);
}

.cd-price-tag {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}

.cd-meta-specs {
  font-size: 12px;
  color: var(--cd-gray);
  margin-bottom: 14px;
  line-height: 1.4;
}

.cd-btn-offer {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border: 1px solid var(--cd-orange);
  color: var(--cd-orange);
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  transition: all 0.15s;
}

.cd-btn-offer:hover {
  background: var(--cd-orange);
  color: #ffffff;
}

/* Quick Tools Grid */
.cd-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cd-tool-card {
  background: #f8fafc;
  border: 1px solid var(--cd-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s;
}

.cd-tool-card:hover {
  background: #ffffff;
  border-color: var(--cd-orange);
  box-shadow: 0 4px 12px rgba(247, 93, 52, 0.1);
}

.cd-tool-icon {
  background: #ffffff;
  border: 1px solid var(--cd-border);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cd-orange);
}

/* Editorial News & Reviews 3-Column Grid */
.cd-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cd-news-card {
  background: #ffffff;
  border: 1px solid var(--cd-card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cd-news-thumb {
  height: 170px;
  overflow: hidden;
}

.cd-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.cd-news-card:hover .cd-news-thumb img { transform: scale(1.05); }

.cd-news-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.cd-news-title { font-size: 15px; font-weight: 800; line-height: 1.4; margin-bottom: 8px; color: var(--cd-dark); }
.cd-news-meta { font-size: 11px; color: var(--cd-gray); margin-top: auto; }

/* Brand Badges */
.cd-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cd-brand-item {
  background: #ffffff;
  border: 1px solid var(--cd-card-border);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  transition: all 0.15s;
}

.cd-brand-item:hover {
  border-color: var(--cd-orange);
  transform: translateY(-2px);
}

/* Footer */
.cd-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 0 0;
  margin-top: 48px;
  font-size: 13px;
}

.cd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.cd-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.cd-footer-desc {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.cd-footer h4 { color: #ffffff; font-size: 14px; margin-bottom: 14px; font-weight: 800; }
.cd-footer ul { list-style: none; padding: 0; }
.cd-footer li { margin-bottom: 8px; }
.cd-footer a { color: #94a3b8; transition: color 0.15s; }
.cd-footer a:hover { color: #ffffff; }

.cd-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  background: #090d16;
  font-size: 12px;
}
.cd-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .cd-card-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-hero { grid-template-columns: 1fr; }
  .cd-filter-widget { border-right: none; border-bottom: 1px solid var(--cd-border); }
  .cd-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-news-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-brands-grid { grid-template-columns: repeat(3, 1fr); }
  .cd-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .desktop-only { display: none !important; }
  .cd-card-grid { grid-template-columns: 1fr; }
  .cd-hero-banner { flex-direction: column; text-align: center; padding: 20px; }
  .cd-hero-text { max-width: 100%; margin-bottom: 16px; }
  .cd-hero-img img { max-width: 220px; }
  .cd-tools-grid { grid-template-columns: 1fr; }
  .cd-news-grid { grid-template-columns: 1fr; }
  .cd-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}


/* Exact TataEVCars Header & Navigation */
.cd-header-wrap {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.cd-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

/* Logo */
.cd-brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cd-logo-mark {
  width: 38px;
  height: 38px;
  background: #f75d34;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cd-logo-mark::after {
  content: "";
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
}

.cd-brand-titles {
  display: flex;
  flex-direction: column;
}

.cd-main-brand {
  font-size: 22px;
  font-weight: 900;
  color: #24272c;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.cd-brand-sub {
  font-size: 8px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Bar with All dropdown */
.cd-search-capsule {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  height: 44px;
  flex: 1;
  max-width: 580px;
  padding: 0 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cd-search-capsule:focus-within {
  border-color: #f75d34;
  box-shadow: 0 0 0 3px rgba(247, 93, 52, 0.12);
}

.cd-search-filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  border-right: 1px solid #e5e7eb;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-left: none;
  height: 24px;
}

.cd-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  flex: 1;
}

.cd-search-input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 13px;
  color: #24272c;
}

.cd-search-input-wrap input::placeholder {
  color: #9ca3af;
}

/* User Links Right */
.cd-header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.cd-lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.cd-wishlist-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #374151;
  transition: color 0.15s;
}
.cd-wishlist-icon:hover { color: #f75d34; }

.cd-auth-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #24272c;
  font-weight: 700;
  cursor: pointer;
}

/* Nav Menu Row */
.cd-nav-row {
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

.cd-nav-row-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cd-nav-items-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.cd-menu-dropdown {
  position: relative;
}

.cd-menu-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 800;
  color: #24272c;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}

.cd-menu-trigger:hover, .cd-menu-trigger.active {
  color: #f75d34;
}

.cd-menu-trigger.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f75d34;
}

/* Dropdown Menu Box */
.cd-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 230px;
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

.cd-menu-dropdown:hover .cd-dropdown-panel {
  display: block;
}

.cd-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: all 0.15s;
}

.cd-dropdown-item:hover {
  background: #f9fafb;
  color: #f75d34;
}

.cd-arrow-sub {
  font-size: 14px;
  color: #9ca3af;
}

.cd-city-selector-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  padding: 10px 0;
}
.cd-city-selector-right:hover { color: #24272c; }


/* Exact TataEVCars Home Hero Section */
.cd-home-hero-container {
  position: relative;
  background: linear-gradient(180deg, #9ca3af 0%, #d1d5db 50%, #9ca3af 100%);
  background-image: url('https://images.unsplash.com/photo-1542282088-72c9c27ed0cd?w=1600');
  background-size: cover;
  background-position: center;
  border-radius: 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.cd-home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.2) 100%);
  backdrop-filter: blur(1px);
}

.cd-home-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  width: 100%;
}

/* Floating Find Your Right Car Card */
.cd-floating-find-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cd-floating-find-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #24272c;
  margin-bottom: 16px;
}

/* New Car / Used Car Toggle Buttons */
.cd-vehicle-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.cd-vehicle-toggle-btn {
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  background: #ffffff;
  color: #374151;
  transition: all 0.15s;
}

.cd-vehicle-toggle-btn.active {
  background: #24272c;
  color: #ffffff;
}

/* Radio Selectors */
.cd-radio-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.cd-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.cd-radio-label input[type="radio"] {
  accent-color: #f75d34;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Form Dropdowns */
.cd-hero-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 14px;
  outline: none;
  cursor: pointer;
}

.cd-hero-select:focus {
  border-color: #f75d34;
}

.cd-hero-search-btn {
  display: block;
  width: 100%;
  background: #f75d34;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 12px rgba(247, 93, 52, 0.3);
  transition: background 0.15s;
}
.cd-hero-search-btn:hover { background: #e04a22; }

.cd-advanced-search-link {
  display: block;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-top: 12px;
  transition: color 0.15s;
}
.cd-advanced-search-link:hover { color: #f75d34; }

/* Right Showcase */
.cd-hero-showcase {
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-left: 20px;
}

.cd-hero-badge-launched {
  background: #f75d34;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.cd-hero-showcase h1 {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.cd-hero-showcase p {
  font-size: 16px;
  font-weight: 500;
  color: #f3f4f6;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cd-know-more-btn {
  display: inline-block;
  background: #ffffff;
  color: #24272c;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.15s;
}
.cd-know-more-btn:hover { background: #f3f4f6; }

/* Bottom Carousel Indicators */
.cd-hero-tabs-bottom {
  display: flex;
  gap: 28px;
  margin-top: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 8px;
}

.cd-hero-tab-item {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  position: relative;
  padding-bottom: 8px;
  transition: color 0.15s;
}

.cd-hero-tab-item:hover, .cd-hero-tab-item.active {
  color: #ffffff;
}

.cd-hero-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffffff;
}

@media (max-width: 992px) {
  .cd-home-hero-content { grid-template-columns: 1fr; }
  .cd-hero-showcase { padding-left: 0; margin-top: 20px; }
  .cd-hero-showcase h1 { font-size: 28px; }
}


/* Pixel-Perfect TataEVCars Find Your Right Car Card */
.cd-home-hero-container {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 460px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  transition: background-image 0.4s ease-in-out;
}

.cd-home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.3) 100%);
}

.cd-home-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: center;
  padding: 32px 0;
  width: 100%;
}

/* Floating Card */
.cd-floating-find-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.cd-floating-find-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #24272c;
  margin-bottom: 14px;
}

/* New Car / Used Car Toggle Buttons */
.cd-vehicle-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.cd-vehicle-toggle-btn {
  padding: 9px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  background: #ffffff;
  color: #374151;
  transition: all 0.15s;
}

.cd-vehicle-toggle-btn.active {
  background: #24272c;
  color: #ffffff;
}

/* Radio Selectors */
.cd-radio-row {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.cd-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.cd-radio-label input[type="radio"] {
  accent-color: #f75d34;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Form Dropdowns with custom arrow */
.cd-hero-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.15s;
}

.cd-hero-select:focus {
  border-color: #f75d34;
  box-shadow: 0 0 0 2px rgba(247, 93, 52, 0.12);
}

.cd-hero-search-btn {
  display: block;
  width: 100%;
  background: #f75d34;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 12px rgba(247, 93, 52, 0.25);
  transition: background 0.15s, transform 0.1s;
}
.cd-hero-search-btn:hover { background: #e04a22; transform: translateY(-1px); }
.cd-hero-search-btn:active { transform: translateY(0); }

.cd-advanced-search-link {
  display: block;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-top: 10px;
  transition: color 0.15s;
}
.cd-advanced-search-link:hover { color: #f75d34; }


/* Full-Width Edge-to-Edge Hero Banner with Perfect Left Alignment */
.cd-home-hero-container {
  width: 100%;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cd-home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.3) 100%);
}

.cd-home-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: center;
  padding: 32px 16px !important;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cd-floating-find-card {
  margin-left: 0 !important;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}


/* Exact TataEVCars The Most Searched Cars Box */
.cd-searched-box-wrapper {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: relative;
}

.cd-searched-box-wrapper h2 {
  font-size: 20px;
  font-weight: 800;
  color: #24272c;
  margin-bottom: 14px;
}

/* Underline Tabs Header */
.cd-underline-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.cd-underline-tab {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  padding-bottom: 10px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  background: transparent;
  border: none;
}

.cd-underline-tab:hover {
  color: #24272c;
}

.cd-underline-tab.active {
  color: #f75d34;
}

.cd-underline-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f75d34;
}

/* Exact TataEVCars The Most Searched Cars 4-Column Grid */
.cd-studio-grid-rel {
  position: relative;
}

.cd-studio-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 18px;
}

.cd-studio-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  box-sizing: border-box;
}

.cd-studio-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.cd-studio-img-wrap {
  height: 165px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

.cd-studio-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.cd-studio-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.cd-studio-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cd-studio-title {
  font-size: 15px;
  font-weight: 800;
  color: #24272c;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-studio-price {
  font-size: 14px;
  font-weight: 800;
  color: #24272c;
  margin-top: 2px;
  margin-bottom: 16px;
}

.cd-studio-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 0;
  border: 1.5px solid #f75d34;
  color: #f75d34;
  background: #ffffff;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  margin-top: auto;
  text-decoration: none;
  transition: all 0.15s;
}

.cd-studio-btn:hover {
  background: #f75d34;
  color: #ffffff;
}

/* Floating Navigation Prev & Next Arrows */
.cd-studio-prev-btn,
.cd-studio-next-btn {
  position: absolute !important;
  top: 42% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.14) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  color: #374151 !important;
  transition: all 0.15s !important;
}

.cd-studio-prev-btn {
  left: -16px !important;
}

.cd-studio-next-btn {
  right: -16px !important;
}

.cd-studio-prev-btn:hover,
.cd-studio-next-btn:hover {
  background: #f75d34 !important;
  border-color: #f75d34 !important;
  color: #ffffff !important;
}

@media (max-width: 1024px) {
  .cd-studio-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  .cd-studio-grid { grid-template-columns: 1fr !important; }
  .cd-studio-next-btn { display: none; }
}

/* Auto Rotating 3-Second Banner Ad Slider */
.cd-auto-ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px auto;
  max-width: 970px;
  width: 100%;
}

.cd-auto-ad-slider {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.cd-ad-slide {
  display: none;
  width: 100%;
  animation: fadeAd 0.5s ease-in-out;
}

.cd-ad-slide.active {
  display: block;
}

.cd-ad-slide img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeAd {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.cd-ad-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.cd-ad-dot {
  width: 6px;
  height: 6px;
  background: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.cd-ad-dot.active {
  background: #f75d34;
  width: 16px;
  border-radius: 9999px;
}


/* City Landmark Cards */
.cd-city-card-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s;
}

.cd-city-card-box:hover {
  border-color: #f75d34;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.cd-city-circle-bg {
  width: 58px;
  height: 58px;
  background: #f0f9ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.cd-city-sub-text {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}

.cd-city-main-name {
  font-size: 13px;
  font-weight: 700;
  color: #24272c;
  margin-top: 2px;
}

@media (max-width: 992px) {
  .cd-searched-box-wrapper .cd-city-card-box { grid-column: span 2; }
}


/* Exact TataEVCars Car Detail Sticky Sub-Navigation */
.cd-car-subnav-wrap {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 70px;
  z-index: 990;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.cd-car-subnav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.cd-car-subnav-inner::-webkit-scrollbar { display: none; }

.cd-car-subnav-item {
  font-size: 12px;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
  padding: 14px 2px;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.15s;
}

.cd-car-subnav-item:hover, .cd-car-subnav-item.active {
  color: #f75d34;
}

.cd-car-subnav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f75d34;
}

/* More Dropdown Menu */
.cd-subnav-dropdown {
  position: relative;
}

.cd-subnav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

.cd-subnav-dropdown:hover .cd-subnav-dropdown-menu {
  display: block;
}

.cd-subnav-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.cd-subnav-menu-link:hover {
  background: #f8fafc;
  color: #f75d34;
}

.cd-subnav-menu-link svg {
  color: #64748b;
  flex-shrink: 0;
}

.cd-subnav-menu-link:hover svg {
  color: #f75d34;
}


/* Exact TataEVCars Car Detail Hero Showcase */
.cd-detail-hero-grid {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 36px;
  align-items: start;
  padding: 20px 0 28px 0;
}

.cd-detail-gallery-box {
  position: relative;
  background: #f3f4f6;
  border-radius: 12px;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cd-detail-gallery-box img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.3s;
}

.cd-detail-gallery-box:hover img {
  transform: scale(1.03);
}

.cd-gallery-next-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}
.cd-gallery-next-arrow:hover { background: #ffffff; }

.cd-gallery-bottom-pills {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.cd-gallery-pill-btn {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #24272c;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.15s;
}
.cd-gallery-pill-btn:hover { background: #ffffff; }

.cd-detail-info-col {
  display: flex;
  flex-direction: column;
}

.cd-detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.cd-detail-car-name {
  font-size: 24px;
  font-weight: 800;
  color: #24272c;
  line-height: 1.2;
}

.cd-detail-actions-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6b7280;
}

.cd-detail-action-icon {
  cursor: pointer;
  transition: color 0.15s;
}
.cd-detail-action-icon:hover { color: #f75d34; }

/* Ratings row */
.cd-detail-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
}

.cd-rating-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  color: #24272c;
}

.cd-rating-badge span { color: #f59e0b; font-size: 14px; }

.cd-rate-win-pill {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
}

/* Price block */
.cd-detail-price-main {
  font-size: 24px;
  font-weight: 800;
  color: #24272c;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.cd-on-road-link {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  cursor: pointer;
}
.cd-on-road-link:hover { text-decoration: underline; }

.cd-detail-city-ex {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cd-detail-city-ex span {
  color: #0284c7;
  font-weight: 600;
  cursor: pointer;
}

/* Big Orange CTA */
.cd-detail-view-offers-btn {
  background: #f75d34;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 28px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(247, 93, 52, 0.28);
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 12px;
}
.cd-detail-view-offers-btn:hover { background: #e04a22; transform: translateY(-1px); }

.cd-detail-festive-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

@media (max-width: 992px) {
  .cd-detail-hero-grid { grid-template-columns: 1fr; }
  .cd-detail-gallery-box { height: 260px; }
  .cd-detail-view-offers-btn { max-width: 100%; }
}


/* 2-Column Car Detail Layout with Right Sidebar Ad */
.cd-car-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.cd-car-main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.cd-car-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 140px;
}

.cd-sidebar-ad-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}

.cd-sidebar-ad-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 992px) {
  .cd-car-layout-grid { grid-template-columns: 1fr; }
  .cd-car-sidebar { position: static; }
}


/* Smooth Horizontal Scrolling Brand Carousel */
.cd-brands-carousel {
  display: flex !important;
  gap: 14px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  padding: 4px 4px 12px 4px !important;
  margin-bottom: 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cd-brands-carousel::-webkit-scrollbar {
  display: none;
}

.cd-brand-card-item {
  flex: 0 0 calc(16.666% - 12px) !important;
  min-width: 155px !important;
  max-width: 180px !important;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 125px;
  box-sizing: border-box;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.cd-brand-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: #f75d34;
}

.cd-brand-card-item img {
  max-height: 48px;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.15s;
}

.cd-brand-card-item:hover img {
  transform: scale(1.05);
}

/* Universal Car Carousel Horizontal Scrolling */
.cd-scroll-carousel {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  margin-bottom: 18px;
  padding: 4px 4px 10px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cd-scroll-carousel::-webkit-scrollbar {
  display: none;
}

.cd-scroll-carousel .cd-studio-card {
  flex: 0 0 calc(25% - 12px) !important;
  min-width: 250px !important;
  max-width: 280px !important;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .cd-scroll-carousel .cd-studio-card { flex: 0 0 240px !important; }
}

/* Compare Carousel Styling */
.cd-compare-carousel {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  padding: 4px 4px 10px 4px !important;
  margin-bottom: 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cd-compare-carousel::-webkit-scrollbar {
  display: none;
}

.cd-compare-carousel .cd-studio-card {
  flex: 0 0 calc(33.333% - 11px) !important;
  min-width: 320px !important;
  max-width: 380px !important;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .cd-compare-carousel .cd-studio-card { flex: 0 0 290px !important; }
}

/* Exact TataEVCars Car Detail Hero Gallery Buttons */
.cd-gallery-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  cursor: pointer !important;
  z-index: 20 !important;
  color: #374151 !important;
  transition: all 0.15s !important;
}

.cd-gallery-nav-btn:hover {
  background: #f75d34 !important;
  border-color: #f75d34 !important;
  color: #ffffff !important;
}

.cd-gallery-nav-btn.prev {
  left: 12px !important;
}

.cd-gallery-nav-btn.next {
  right: 12px !important;
}

.cd-detail-gallery-box {
  position: relative !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  height: 320px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 10px !important;
}

.cd-detail-gallery-box img {
  width: 100% !important;
  max-width: 480px !important;
  height: 250px !important;
  object-fit: contain !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}



/* ==========================================================================
   📱 MASTER COMPREHENSIVE RESPONSIVE ENGINE (ALL DEVICES & SCREENS)
   ========================================================================== */

/* 1. Global Viewport & Reset Fixes */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* 2. Responsive Container */
.container {
  width: 100% !important;
  max-width: 1200px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* 3. Laptops & Tablets Landscape (<= 1100px) */
@media (max-width: 1100px) {
  .cd-home-hero-wrapper {
    grid-template-columns: 420px 1fr !important;
    gap: 24px !important;
  }
  .cd-hero-showcase h1 {
    font-size: 32px !important;
  }
  .cd-detail-hero-grid {
    grid-template-columns: 420px 1fr !important;
    gap: 24px !important;
  }
}

/* 4. Tablets & iPad Portrait (<= 992px) */
@media (max-width: 992px) {
  /* Header Top Row */
  .cd-top-row {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 10px 0 !important;
  }
  .cd-search-capsule {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 4px !important;
  }
  .cd-subnav-row {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    padding-bottom: 6px !important;
  }
  .cd-subnav-row::-webkit-scrollbar {
    display: none !important;
  }

  /* Hero Section */
  .cd-home-hero-container {
    padding: 24px 0 32px 0 !important;
    min-height: auto !important;
    background-size: cover !important;
  }
  .cd-home-hero-wrapper {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .cd-floating-find-card {
    max-width: 100% !important;
    width: 100% !important;
  }
  .cd-hero-showcase {
    padding-left: 0 !important;
  }
  .cd-hero-showcase h1 {
    font-size: 28px !important;
  }
  .cd-hero-showcase p {
    font-size: 14px !important;
    margin-bottom: 16px !important;
  }
  .cd-hero-tabs-bottom {
    margin-top: 24px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    gap: 18px !important;
  }
  .cd-hero-tabs-bottom::-webkit-scrollbar {
    display: none !important;
  }

  /* Studio Grids */
  .cd-studio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  /* Car Detail Page */
  .cd-detail-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .cd-detail-gallery-box {
    height: 260px !important;
  }
  .cd-car-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .cd-car-sidebar {
    position: static !important;
  }

  /* Model Sub-Navigation */
  .cd-car-subnav-inner {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
  }
  .cd-car-subnav-inner::-webkit-scrollbar {
    display: none !important;
  }

  /* Price Page Layout */
  .cd-car-price-layout {
    grid-template-columns: 1fr !important;
  }
}

/* 5. Mobile Devices & Small Screens (<= 640px) */
@media (max-width: 640px) {
  /* Logo */
  .cd-main-brand {
    font-size: 18px !important;
  }
  .cd-brand-sub {
    font-size: 7px !important;
  }

  /* Hero Banner */
  .cd-hero-showcase h1 {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  .cd-hero-showcase p {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  .cd-know-more-btn {
    padding: 8px 18px !important;
    font-size: 12px !important;
  }

  /* Studio Grids Collapse to Clean 1 Column or Horizontal Swipe */
  .cd-studio-grid {
    grid-template-columns: 1fr !important;
  }
  
  .cd-studio-img-wrap {
    height: 180px !important;
  }

  /* Horizontal Scroll Carousels Touch Padding */
  .cd-scroll-carousel .cd-studio-card {
    flex: 0 0 82% !important;
    min-width: 240px !important;
    max-width: 280px !important;
  }
  .cd-brands-carousel .cd-brand-card-item {
    flex: 0 0 135px !important;
    min-width: 135px !important;
    height: 115px !important;
    padding: 10px 4px !important;
  }
  .cd-brands-carousel .cd-brand-card-item img {
    max-height: 38px !important;
  }
  .cd-compare-carousel .cd-studio-card {
    flex: 0 0 90% !important;
    min-width: 280px !important;
  }

  /* Hide Large Navigation Next Arrows on Mobile for Clean Touch Swipe */
  .cd-studio-next-btn, .cd-studio-prev-btn {
    display: none !important;
  }

  /* Quick Tools Grid */
  .cd-tools-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Brands Grid */
  .cd-brands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Car Detail Box */
  .cd-searched-box-wrapper {
    padding: 16px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
  }
  .cd-searched-box-wrapper h2 {
    font-size: 17px !important;
  }
  .cd-detail-car-name {
    font-size: 20px !important;
  }
  .cd-detail-price-main {
    font-size: 20px !important;
    flex-wrap: wrap !important;
  }
  .cd-detail-gallery-box {
    height: 210px !important;
  }
  .cd-detail-view-offers-btn {
    max-width: 100% !important;
    padding: 12px 16px !important;
  }

  /* Category Ratings on Review Page */
  .cd-review-score-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Footer */
  .cd-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .cd-footer-bottom-inner {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
  }
}



/* ==========================================================================
   ⭐ DEDICATED EXPERT REVIEW & DETAIL SUB-PAGES RESPONSIVE CLASSES
   ========================================================================== */

/* Expert Review Summary Box on car.php */
.cd-expert-review-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.cd-expert-score-badges-row1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.cd-expert-score-badges-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Review / Price / Image Hero Banner Card */
.cd-page-hero-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 24px;
  display: flex;
  gap: 28px;
  align-items: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.cd-page-hero-img-wrap {
  width: 240px;
  height: 150px;
  background: #f1f3f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
  overflow: hidden;
}

.cd-page-hero-img-wrap img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.cd-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
}

.cd-review-score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 10px;
  width: 100%;
}

/* Tablet & Mobile Breakpoints for Expert Review */
@media (max-width: 992px) {
  .cd-expert-review-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .cd-page-hero-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
    padding: 18px !important;
  }
  
  .cd-page-hero-img-wrap {
    width: 100% !important;
    height: 180px !important;
  }
}

@media (max-width: 640px) {
  .cd-expert-review-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .cd-expert-score-badges-row1 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .cd-expert-score-badges-row2 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .cd-pros-cons-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .cd-review-score-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .cd-page-hero-img-wrap {
    height: 160px !important;
  }
}



/* ==========================================================================
   🖼️ INTERACTIVE LIGHTBOX VIEWER & ZOOM ENGINE
   ========================================================================== */

.cd-lightbox-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(10, 15, 29, 0.92) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 99999 !important;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 16px;
  user-select: none;
  animation: cdFadeIn 0.2s ease-out;
}

@keyframes cdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Lightbox Header Bar */
.cd-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: #ffffff;
  z-index: 100000;
  padding: 8px 16px;
}

.cd-lightbox-title-wrap {
  display: flex;
  flex-direction: column;
}

.cd-lightbox-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.cd-lightbox-counter {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

.cd-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cd-lightbox-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.cd-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
}

.cd-lightbox-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(247, 93, 52, 0.9);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(247, 93, 52, 0.4);
  transition: all 0.15s;
}

.cd-lightbox-close-btn:hover {
  background: #e04a22;
  transform: scale(1.08);
}

/* Main Image Viewport Area */
.cd-lightbox-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cd-lightbox-main-img {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s;
  cursor: zoom-in;
}

.cd-lightbox-main-img.zoomed {
  transform: scale(1.85);
  cursor: zoom-out;
}

/* Prev / Next Circular Navigation Buttons */
.cd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all 0.15s;
  z-index: 100000;
}

.cd-lightbox-nav:hover {
  background: #f75d34;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.cd-lightbox-nav.prev {
  left: 20px;
}

.cd-lightbox-nav.next {
  right: 20px;
}

/* Bottom Thumbnails Strip */
.cd-lightbox-thumbs-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  max-width: 100%;
  scrollbar-width: none;
}
.cd-lightbox-thumbs-wrap::-webkit-scrollbar {
  display: none;
}

.cd-lightbox-thumb {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.cd-lightbox-thumb.active, .cd-lightbox-thumb:hover {
  border-color: #f75d34;
  opacity: 1;
  transform: scale(1.05);
}

/* Clickable Gallery Cards Hover Effect */
.cd-gallery-card-clickable {
  cursor: pointer !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  position: relative;
}

.cd-gallery-card-clickable:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.cd-gallery-card-clickable .cd-zoom-hint-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.cd-gallery-card-clickable:hover .cd-zoom-hint-badge {
  opacity: 1;
}

@media (max-width: 768px) {
  .cd-lightbox-nav {
    width: 38px;
    height: 38px;
  }
  .cd-lightbox-nav.prev { left: 8px; }
  .cd-lightbox-nav.next { right: 8px; }
  .cd-lightbox-main-img {
    max-height: 60vh;
  }
}


/* Admin & Frontend Rich Text & Formatting Engine */
.cd-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px 6px 0 0;
  padding: 6px 10px;
  margin-bottom: 0;
  user-select: none;
  flex-wrap: wrap;
}

.cd-rich-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.cd-rich-btn:hover {
  background: #f75d34;
  border-color: #f75d34;
  color: #ffffff;
}

.cd-rich-dropdown {
  position: relative;
  display: inline-block;
}

.cd-rich-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  min-width: 175px;
  z-index: 1000;
  padding: 6px 0;
  margin-top: 4px;
}

.cd-rich-dropdown-menu.show {
  display: block;
}

.cd-rich-dropdown-item {
  display: block;
  width: 100%;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cd-rich-dropdown-item:hover {
  background: #f75d34;
  color: #ffffff;
}

.cd-custom-sec-desc {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.75;
}

.cd-custom-sec-desc strong,
.cd-custom-sec-desc b {
  font-weight: 900;
  color: #0f172a;
}

.cd-custom-sec-desc em,
.cd-custom-sec-desc i {
  font-style: italic;
}

.cd-custom-sec-desc u {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #f75d34;
}

.cd-custom-sec-desc mark,
mark.cd-highlight {
  background: #fef08a !important;
  color: #854d0e !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.cd-custom-sec-desc ul,
.cd-custom-sec-desc ol {
  padding-left: 22px;
  margin: 10px 0;
}

.cd-custom-sec-desc li {
  margin-bottom: 6px;
}


/* ==========================================================================
   DEALERSHIP & DREAM CAR SHOWCASE LAYOUT STYLES
   ========================================================================== */

/* Top Contact & Social Bar */
.dealer-topbar {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 6px 0;
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
}

.dealer-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.dealer-contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: #1e293b;
}

.dealer-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dealer-social-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dealer-social-btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* Deep Navy Header Navbar */
.dealer-navbar {
  background: #002c5f;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.dealer-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
}

.dealer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.dealer-brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.dealer-brand:hover .dealer-brand-logo-img {
  transform: scale(1.04);
}

.dealer-brand-titles {
  display: flex;
  flex-direction: column;
}

.dealer-brand-main {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.dealer-brand-sub {
  font-size: 10px;
  font-style: italic;
  color: #93c5fd;
  letter-spacing: 0.5px;
  font-family: serif;
}

.dealer-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dealer-nav-item a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.dealer-nav-item a:hover,
.dealer-nav-item.active a {
  color: #38bdf8;
}

/* Choose Your Dream Car Section */
.dream-car-section {
  padding: 40px 0 60px 0;
  background: #ffffff;
  min-height: 80vh;
}

.dream-car-header {
  text-align: center;
  margin-bottom: 30px;
}

.dream-car-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.dream-car-accent-line {
  width: 60px;
  height: 3px;
  background: #0284c7;
  margin: 0 auto;
  border-radius: 2px;
}

/* 4-Column Car Grid */
.dream-car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .dream-car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .dream-car-grid {
    grid-template-columns: 1fr;
  }
}

.dream-car-card {
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease;
}

.dream-car-card:hover {
  transform: translateY(-4px);
}

.dream-car-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.dream-car-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.dream-car-card:hover .dream-car-img-wrap img {
  transform: scale(1.04);
}

/* "NEW!" Ribbon Badge */
.dream-new-ribbon {
  position: absolute;
  top: 0;
  left: 10px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.dream-car-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-top: 4px;
}

.dream-car-price {
  font-size: 13px;
  font-weight: 700;
  color: #f75d34;
  margin-top: 4px;
}

/* Floating Action Sidebar on Right */
.dealer-floating-sidebar {
  position: fixed;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
}

.dealer-float-btn {
  background: #002c5f;
  color: #ffffff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
  transition: background 0.2s ease, width 0.2s ease;
}

.dealer-float-btn:hover {
  background: #0284c7;
}

.dealer-float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.dealer-float-whatsapp:hover {
  transform: scale(1.1);
}


/* Advaith Blog Article Content Styling */
.advaith-article-body h3, 
.advaith-article-body h4 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.advaith-article-body p {
  margin-bottom: 16px;
  color: #334155;
  line-height: 1.75;
}

.advaith-article-body ul {
  margin: 12px 0 20px 20px;
  padding: 0;
}

.advaith-article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Advaith Comparison Table */
.advaith-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13.5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.advaith-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
}

.advaith-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.advaith-table tr:nth-child(even) td {
  background: #fafafa;
}

.advaith-table tr:hover td {
  background: #f1f5f9;
}


/* Exact Advaith Blog Styling */
.advaith-article-body h3, 
.advaith-article-body h4 {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 24px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.advaith-article-body p {
  margin-bottom: 16px;
  color: #1e293b;
  line-height: 1.75;
  font-size: 14px;
}

.advaith-article-body ul {
  margin: 10px 0 18px 20px;
  padding: 0;
}

.advaith-article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 14px;
  color: #1e293b;
}

.advaith-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px 0;
  font-size: 13.5px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.advaith-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

.advaith-table td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  color: #1e293b;
  font-size: 13px;
}

.advaith-table tr:nth-child(even) td {
  background: #fcfcfd;
}


/* ==========================================================================
   TATAEVCARS MASTER RESPONSIVE STYLESHEET (ALL DEVICES & SCREENS)
   ========================================================================== */

/* Universal Overflow & Flexible Media Prevention */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe, svg, canvas {
  max-width: 100%;
  height: auto;
}

/* Prevent iOS Safari 16px auto-zoom on input focus */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
textarea {
  font-size: 16px !important;
}

/* Responsive Table Wrappers */
.table-responsive,
.advaith-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE NAVBAR (DEEP NAVY BLUE)
   -------------------------------------------------------------------------- */
.dealer-navbar {
  background: #002c5f;
  color: #ffffff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  width: 100%;
}

.dealer-navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dealer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.dealer-brand-logo-icon {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002c5f;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.dealer-brand-titles {
  display: flex;
  flex-direction: column;
}

.dealer-brand-main {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #ffffff;
}

.dealer-brand-sub {
  font-size: 10.5px;
  font-style: italic;
  color: #93c5fd;
  font-family: serif;
}

/* Nav Menu (Desktop) */
.dealer-nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dealer-nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: color 0.2s ease;
  padding: 6px 0;
  display: inline-block;
}

.dealer-nav-link:hover {
  color: #38bdf8;
}

/* Mobile Toggle Hamburger */
.dealer-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 10001;
}

.dealer-mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.dealer-mobile-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.dealer-mobile-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.dealer-mobile-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   DREAM CAR MAIN SHOWCASE & GRID RESPONSIVENESS
   -------------------------------------------------------------------------- */
.dream-car-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 20px 60px 20px;
}

.dream-car-header {
  text-align: center;
  margin-bottom: 24px;
}

.dream-car-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.dream-car-accent-line {
  width: 60px;
  height: 3px;
  background: #0284c7;
  margin: 0 auto;
  border-radius: 2px;
}

/* Filter Tabs Horizontal Scroll Bar with Left/Right Navigation */
.dream-filter-wrapper {
  position: relative;
  max-width: 100%;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}

.dream-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  opacity: 0;
  pointer-events: none;
}
.dream-scroll-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}
.dream-scroll-arrow:hover {
  background: #002c5f;
  color: #ffffff;
  border-color: #002c5f;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 44, 95, 0.25);
}
.dream-scroll-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.dream-scroll-arrow.left {
  left: 4px;
}
.dream-scroll-arrow.right {
  right: 4px;
}

.dream-filter-fade-left,
.dream-filter-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.dream-filter-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(244, 245, 247, 0.95), rgba(244, 245, 247, 0));
}
.dream-filter-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(244, 245, 247, 0.95), rgba(244, 245, 247, 0));
}
.dream-filter-wrapper.show-fade-left .dream-filter-fade-left {
  opacity: 1;
}
.dream-filter-wrapper.show-fade-right .dream-filter-fade-right {
  opacity: 1;
}

.dream-filter-tabs {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
  overflow-x: auto !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 8px 36px 14px 36px;
  scroll-behavior: smooth;
  border-bottom: none !important;
  width: 100%;
  user-select: none;
}
.dream-filter-tabs.is-dragging {
  scroll-behavior: auto !important;
}

.dream-filter-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

@keyframes dreamPillBounce {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.dream-filter-btn {
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0 !important;
  flex: 0 0 auto !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: static !important;
}

.dream-filter-btn:hover {
  color: #002c5f !important;
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.dream-filter-btn:active {
  transform: scale(0.96);
}

.dream-filter-btn.active {
  background: #002c5f !important;
  color: #ffffff !important;
  border-color: #002c5f !important;
  box-shadow: 0 4px 14px rgba(0,44,95,0.28) !important;
  animation: dreamPillBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dream-filter-btn::after,
.dream-filter-btn.active::after {
  display: none !important;
  content: none !important;
}

/* Pop-Up Animation for Cards */
@keyframes dreamCardPopIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  60% {
    opacity: 0.95;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 4-Column Responsive Grid */
.dream-car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dream-car-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.dream-car-card.pop-in {
  animation: dreamCardPopIn 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dream-car-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}

.dream-car-img-wrap {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.dream-car-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.dream-car-card:hover .dream-car-img-wrap img {
  transform: scale(1.05);
}

.dream-new-ribbon {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.dream-car-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   MEDIA QUERIES FOR TABLETS & MOBILES
   -------------------------------------------------------------------------- */

/* TABLETS (<= 1024px) */
@media (max-width: 1024px) {
  .dream-car-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* SMALL TABLETS & PHONES (<= 768px) */
@media (max-width: 768px) {
  .dealer-mobile-toggle {
    display: flex;
  }

  .dealer-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #002c5f;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .dealer-nav-menu.active {
    display: flex;
  }

  .dealer-nav-link {
    font-size: 15px;
    width: 100%;
    padding: 8px 0;
  }

  .dream-filter-tabs {
    justify-content: flex-start;
  }

  .dream-car-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .dream-car-img-wrap {
    height: 120px;
  }

  .dream-car-title {
    font-size: 24px;
  }

  /* 2-Column Detail Pages Stack Into 1 Column */
  div[style*="grid-template-columns:1fr 320px"],
  div[style*="grid-template-columns: 1fr 320px"],
  div[style*="grid-template-columns:1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* MOBILE PHONES (<= 480px) */
@media (max-width: 480px) {
  .dream-car-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dream-car-img-wrap {
    height: 150px;
  }

  .dealer-brand-main {
    font-size: 17px;
  }

  .dealer-brand-sub {
    font-size: 9.5px;
  }

  .dream-car-title {
    font-size: 21px;
  }

  /* Car Details Page adjustments on phones */
  div[style*="padding: 24px 28px"],
  div[style*="padding:32px"],
  div[style*="padding: 36px"] {
    padding: 18px 16px !important;
  }
}
