/* 
 * style.css - EV Car Wale Premium Grayscale Styling
 * Restricts all UI to pure white, black, and grays.
 */

:root {
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-darkgray: #1E1E1E;
  --color-medgray: #555555;
  --color-lightgray: #F5F5F5;
  
  --color-zinc-900: #18181b;
  --color-zinc-800: #27272a;
  --color-zinc-700: #3f3f46;
  --color-zinc-600: #52525b;
}

/* WCAG 2.1 Keyboard Focus Indicator */
*:focus-visible {
  outline: 2px solid #000000 !important;
  outline-offset: 2px !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Mobile Responsive Optimizations (320px - 1024px) */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .modal-content, .dialog-box {
    max-width: calc(100vw - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Custom Scrollbars (Grayscale) */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #F5F5F5;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #E5E5E5;
  border-radius: 0px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Selection Override */
::selection {
  background-color: var(--color-white);
  text-color: var(--color-black);
  color: var(--color-black);
}

/* Skeleton Loading Shimmer */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(to right, #f5f5f5 8%, #e5e5e5 18%, #f5f5f5 33%);
  background-size: 800px 104px;
  animation: shimmer 1.5s infinite linear;
}

/* Premium Card Hover Lift */
.car-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-black) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.brand-chip {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-chip.selected {
  border-color: var(--color-black) !important;
  color: var(--color-white) !important;
  background-color: var(--color-black) !important;
}

.budget-chip {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.budget-chip.selected {
  border-color: var(--color-black) !important;
  color: var(--color-white) !important;
  background-color: var(--color-black) !important;
}

/* Range input overrides (Grayscale custom slider tracks) */
input[type=range] {
  -webkit-appearance: none;
  background: transparent;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: #E5E5E5;
}
input[type=range]::-webkit-slider-thumb {
  height: 12px;
  width: 12px;
  border-radius: 0px;
  background: var(--color-black);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5px;
  transition: transform 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Accordion transition styles */
.accordion-content {
  transition: max-height 0.30s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page Preloader */
.preloader-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
  padding-top: 10vh;
  padding-bottom: 0;
  transition: opacity 0.4s ease-out;
}

.loader-brand-group {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  pointer-events: none;
  z-index: 2;
}

.loader-car-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

#preloader-gif {
  max-width: 120%;
  max-height: 120%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#loader-brand {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 4.2vw, 40px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#loader-brand.reveal {
  opacity: 1;
  transform: translateY(0);
}

#loader-brand .brand-ev {
  color: #38E54D;
  text-shadow: 0 0 12px rgba(56, 229, 77, 0.5), 0 0 30px rgba(56, 229, 77, 0.2);
  font-weight: 800;
}

#loader-brand .brand-name {
  color: #ffffff;
  font-weight: 700;
}

#loader-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out 0.1s, transform 0.5s ease-out 0.1s;
}

#loader-tagline.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Grayscale button ripple simulation */
.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Cinematic Grayscale Transitions */
.hero-transition-to-light {
  background: linear-gradient(
    to bottom,
    #000000,
    #ffffff
  );
  height: 150px;
}

/* Premium Page Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered Card Appearances */
.stagger-card {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.revealed .stagger-card,
.revealed.stagger-card {
  opacity: 1;
  transform: translateY(0);
}

.revealed .stagger-card:nth-child(1) { transition-delay: 100ms !important; }
.revealed .stagger-card:nth-child(2) { transition-delay: 200ms !important; }
.revealed .stagger-card:nth-child(3) { transition-delay: 300ms !important; }
.revealed .stagger-card:nth-child(4) { transition-delay: 400ms !important; }
.revealed .stagger-card:nth-child(5) { transition-delay: 500ms !important; }
.revealed .stagger-card:nth-child(6) { transition-delay: 600ms !important; }



/* Vehicle Images Parallax & Hover Zoom */
.car-card img, .upcoming-card img, .launch-card img {
  opacity: 1;
  transform: translateY(var(--scroll-translate-y, 0px)) scale(1);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.revealed .stagger-card img {
  opacity: 1;
  transform: translateY(var(--scroll-translate-y, 0px)) scale(1);
}
.revealed .stagger-card:hover img,
.car-card:hover img,
.upcoming-card:hover img,
.launch-card:hover img {
  transform: translateY(var(--scroll-translate-y, 0px)) scale(1.05) !important;
}

/* Premium Card Hover Animations & Styles (280ms ease transition for transform, border, background, shadow) */
/* Premium Card Hover Animations & Styles (280ms ease transition for transform, border, background, shadow) */
.car-card, .upcoming-card, .launch-card, .related-card, .guide-card, .news-card, .review-card, .video-card {
  transition: transform 280ms ease, border-color 280ms ease, background 280ms ease, box-shadow 280ms ease !important;
}

.car-card:hover, .upcoming-card:hover, .launch-card:hover, .related-card:hover, .guide-card:hover, .news-card:hover, .review-card:hover, .video-card:hover {
  transform: translateY(-6px) !important;
  border-color: #22C55E !important; /* Electric Cyan card border on hover */
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 12px 30px rgba(34, 197, 94, 0.15) !important; /* Cyan glow on card hover */
}

/* Force dark styles inside the card on hover with WCAG accessible contrast */
.car-card:hover h3, .upcoming-card:hover h3, .launch-card:hover h3, .guide-card:hover h3, .news-card:hover h3, .review-card:hover h3, .video-card:hover h3,
.car-card:hover h4, .upcoming-card:hover h4, .launch-card:hover h4, .related-card:hover h4,
.car-card:hover h5, .upcoming-card:hover h5, .launch-card:hover h5, .review-card:hover h5 {
  color: #ffffff !important;
}

/* Paragraphs and list items inside hovered cards must turn light gray */
.car-card:hover p, .upcoming-card:hover p, .launch-card:hover p, .related-card:hover p, .guide-card:hover p, .news-card:hover p, .review-card:hover p, .video-card:hover p,
.car-card:hover li, .upcoming-card:hover li, .launch-card:hover li, .related-card:hover li, .guide-card:hover li, .news-card:hover li, .review-card:hover li, .video-card:hover li {
  color: #D9D9D9 !important;
}

/* Force all text tags, utility text colors, labels, and spans inside hovered cards to be readable */
.car-card:hover span, .upcoming-card:hover span, .launch-card:hover span, .related-card:hover span, .guide-card:hover span, .news-card:hover span, .review-card:hover span, .video-card:hover span,
.car-card:hover label, .upcoming-card:hover label, .launch-card:hover label, .related-card:hover label, .guide-card:hover label, .news-card:hover label, .review-card:hover label, .video-card:hover label,
.car-card:hover .text-zinc-800, .upcoming-card:hover .text-zinc-800, .launch-card:hover .text-zinc-800, .related-card:hover .text-zinc-800, .review-card:hover .text-zinc-800, .video-card:hover .text-zinc-800,
.car-card:hover [class*="text-zinc-"], .upcoming-card:hover [class*="text-zinc-"], .launch-card:hover [class*="text-zinc-"], .related-card:hover [class*="text-zinc-"], .guide-card:hover [class*="text-zinc-"], .news-card:hover [class*="text-zinc-"], .review-card:hover [class*="text-zinc-"], .video-card:hover [class*="text-zinc-"] {
  color: #D9D9D9 !important;
}

/* Titles or bold labels within hovered cards should be full white */
.car-card:hover .font-bold, .upcoming-card:hover .font-bold, .launch-card:hover .font-bold, .related-card:hover .font-bold, .guide-card:hover .font-bold, .news-card:hover .font-bold, .review-card:hover .font-bold, .video-card:hover .font-bold {
  color: #ffffff !important;
}

.car-card:hover .border-t, .upcoming-card:hover .border-t, .launch-card:hover .border-t, .related-card:hover .border-t, .guide-card:hover .border-t, .news-card:hover .border-t, .review-card:hover .border-t, .video-card:hover .border-t {
  border-color: #27272a !important;
}
.car-card:hover .bg-zinc-50, .upcoming-card:hover .bg-zinc-50, .launch-card:hover .bg-zinc-50, .related-card:hover .bg-zinc-50, .guide-card:hover .bg-zinc-50, .news-card:hover .bg-zinc-50, .review-card:hover .bg-zinc-50, .video-card:hover .bg-zinc-50,
.news-card:hover .bg-zinc-100\/50 {
  background-color: #121212 !important;
  border-color: #27272a !important;
}
.car-card:hover .absolute, .upcoming-card:hover .absolute, .launch-card:hover .absolute, .related-card:hover .absolute {
  background-color: #1f1f22 !important;
  border-color: #2d2d30 !important;
  color: #ffffff !important;
}

/* Flip active wishlist icon style in hovered card */
.car-card:hover .wishlist-btn svg.fill-current {
  fill: #ef4444 !important;
  color: #ef4444 !important;
}

/* Review list-disc bullets coloring */
.review-card:hover li {
  color: #D9D9D9 !important;
}

/* Review user avatar circle coloring */
.review-card:hover .bg-zinc-200 {
  background-color: #1f1f22 !important;
  color: #ffffff !important;
}

/* Video card play circle coloring */
.video-card:hover .bg-white\/90 {
  background-color: #1f1f22 !important;
  color: #ffffff !important;
  border-color: #3f3f46 !important;
}
.video-card:hover .text-zinc-700 {
  color: #ffffff !important;
}

/* Secondary Action Buttons inside Hovered Cards */
.car-card:hover .btn-view-details,
.related-card:hover .btn-related-view,
.upcoming-card:hover .btn-notify {
  border-color: #3f3f46 !important;
  color: #e4e4e7 !important;
  background-color: transparent !important;
}

/* Buttons direct hover (turns black with Electric Cyan border and soft cyan glow) */
.car-card:hover .btn-view-details:hover,
.related-card:hover .btn-related-view:hover,
.upcoming-card:hover .btn-notify:hover,
button:hover,
.btn-animate:hover,
.btn-book-test-drive:hover,
#search-submit-btn:hover,
#login-nav-btn:hover,
#btn-subpage-back:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #22C55E !important; /* Electric Cyan border */
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.45) !important; /* soft cyan glow */
}

/* Primary Action Buttons inside Hovered Cards */
.car-card:hover .btn-book-test-drive {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Learn More / Read More Link Buttons inside Hovered Cards */
.guide-card a,
.news-card button,
.news-card a,
.launch-card button,
.launch-card a {
  transition: all 250ms ease !important;
}

.guide-card:hover a,
.news-card:hover button,
.news-card:hover a,
.launch-card:hover button,
.launch-card:hover a {
  color: #ffffff !important;
  position: relative;
  text-decoration: none;
}

/* Arrow becomes Electric Cyan on card hover */
.guide-card:hover a .arrow,
.news-card:hover button .arrow,
.news-card:hover a .arrow,
.launch-card:hover button .arrow,
.launch-card:hover a .arrow {
  color: #22C55E !important;
}

/* Direct hover on the link itself inside the hovered card (draws Electric Cyan underline) */
.guide-card:hover a:hover,
.news-card:hover button:hover,
.news-card:hover a:hover,
.launch-card:hover button:hover,
.launch-card:hover a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

.guide-card:hover a:hover::after,
.news-card:hover button:hover::after,
.news-card:hover a:hover::after,
.launch-card:hover button:hover::after,
.launch-card:hover a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #22C55E; /* Electric Cyan underline */
  animation: slideInUnderline 200ms ease forwards;
}

@keyframes slideInUnderline {
  from { width: 0; }
  to { width: 100%; }
}

/* Premium Button Hover Animations */
.btn-animate {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.btn-animate:hover {
  transform: scale(1.025);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-animate:active {
  transform: scale(0.98);
}

/* Hero Section Page Load Sequences */
.hero-fade-in {
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-text-animate {
  opacity: 1;
  transform: translateY(-15px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-search-animate {
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-card-animate {
  opacity: 1;
  transform: translateY(15px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.loaded .hero-text-animate {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 150ms;
}

.loaded .hero-search-animate {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 450ms;
}

.loaded .hero-fade-in {
  opacity: 1;
  transition-delay: 650ms;
}

.loaded .hero-card-animate {
  opacity: 1;
  transform: translateY(0);
}
.loaded .hero-card-animate:nth-child(1) { transition-delay: 800ms; }
.loaded .hero-card-animate:nth-child(2) { transition-delay: 900ms; }
.loaded .hero-card-animate:nth-child(3) { transition-delay: 1000ms; }
.loaded .hero-card-animate:nth-child(4) { transition-delay: 1100ms; }

/* Navigation indicator sliding animation */
#nav-indicator {
  transition: left 0.38s cubic-bezier(0.16, 1, 0.3, 1), width 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Heading soft blur-to-clear entrance animation */
.reveal-on-scroll h2 {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.revealed h2 {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Button & Link arrow transitions */
.arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Language dropdown styling */
#lang-dropdown {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.06), 0 10px 20px -5px rgba(0, 0, 0, 0.02);
  padding: 4px 0;
  pointer-events: auto;
}

.lang-option {
  padding: 6px 16px;
}

.lang-option:first-child {
  border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 12px 12px;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  color: #3f3f46;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.profile-nav-item:hover {
  background: #f5f5f5;
  color: #000;
}

.profile-nav-item.active {
  background: #f0f0f0;
  color: #000;
  font-weight: 600;
}

.btn-animate:hover .arrow,
.budget-chip:hover .arrow,
a:hover .arrow,
.guide-card:hover .arrow {
  transform: translateX(4px);
}

/* Dynamic Navbar Themes & Logo Style Fixes */
nav {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e4e4e7 !important; /* border-zinc-200 */
}

/* Logo Default Light-Theme Styles */
.logo-link {
  color: #000000 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  transition: color 0.3s ease;
}

.logo-icon {
  background-color: #000000 !important;
  transition: background-color 0.3s ease;
}

/* Navigation Links Default */
.nav-link {
  color: #52525b !important; /* zinc-600 */
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #000000 !important;
}

#nav-indicator {
  background-color: #000000 !important;
  box-shadow: none !important;
}

#search-nav-btn,
#wishlist-nav-btn {
  color: #52525b !important; /* zinc-600 */
  transition: color 0.3s ease;
}

#search-nav-btn:hover,
#wishlist-nav-btn:hover {
  color: #22C55E !important; /* Electric Cyan on hover */
}

#search-nav-btn:hover svg,
#wishlist-nav-btn:hover svg {
  stroke: #22C55E !important;
}

#wishlist-badge {
  background-color: #000000 !important;
  color: #ffffff !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#login-nav-btn {
  border-color: #d4d4d8 !important; /* zinc-300 */
  color: #000000 !important;
  background-color: transparent !important;
  transition: all 0.3s ease;
}

#login-nav-btn:hover {
  border-color: #22C55E !important; /* Electric Cyan border */
  color: #ffffff !important;
  background-color: #000000 !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4) !important;
}

/* Light-Theme Overrides (Consistent with default light state) */
nav.nav-light-theme {
  background-color: #ffffff !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

nav.nav-light-theme .logo-link {
  color: #000000 !important;
  text-shadow: none !important;
}

nav.nav-light-theme .logo-icon {
  background-color: #000000 !important;
}

nav.nav-light-theme .text-zinc-400 {
  color: #71717a !important; /* zinc-500 */
}

nav.nav-light-theme .text-white {
  color: #000000 !important;
}

nav.nav-light-theme .nav-link {
  color: #52525b !important;
}

nav.nav-light-theme .nav-link:hover,
nav.nav-light-theme .nav-link.active {
  color: #000000 !important;
}

nav.nav-light-theme #nav-indicator {
  background-color: #000000 !important;
  box-shadow: none !important;
}

nav.nav-light-theme #search-nav-btn,
nav.nav-light-theme #wishlist-nav-btn {
  color: #52525b !important;
}

nav.nav-light-theme #search-nav-btn:hover,
nav.nav-light-theme #wishlist-nav-btn:hover {
  color: #22C55E !important;
}

nav.nav-light-theme #wishlist-badge {
  background-color: #000000 !important;
  color: #ffffff !important;
}

nav.nav-light-theme #login-nav-btn {
  border-color: #d4d4d8 !important;
  color: #000000 !important;
  background-color: transparent !important;
}

nav.nav-light-theme #login-nav-btn:hover {
  border-color: #22C55E !important;
  color: #ffffff !important;
  background-color: #000000 !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4) !important;
}

/* Premium Grayscale Details Page Fade Transition */
#details-page-content.section-fade {
  background: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 150px, rgba(0,0,0,0) calc(100% - 150px), rgba(0,0,0,0.06) 100%) !important;
}

/* Seamless Animated Separator Divider (Transform-based and hardware accelerated) */
.section-divider {
  position: relative;
  width: 90% !important;
  max-width: 90% !important;
  margin: 48px auto !important;
  height: 1px !important;
  background: transparent !important;
  filter: none !important;
  overflow: hidden !important; /* Hide off-screen lines */
  pointer-events: none;
  --divider-progress: 0; /* Updated dynamically by JS */
}
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 1px;
  background-color: #111111 !important; /* Black (#111111) */
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-divider::before {
  left: 0;
  /* Animates from -100% (far left end) to 0 (center) */
  transform: translateX(calc(-100% * (1 - var(--divider-progress)))) translateZ(0);
}
.section-divider::after {
  right: 0;
  /* Animates from 100% (far right end) to 0 (center) */
  transform: translateX(calc(100% * (1 - var(--divider-progress)))) translateZ(0);
}

/* Layout Gutters - Expand max-width containers to 90% of screen width on large displays */
@media (min-width: 1200px) {
  .max-w-7xl {
    max-width: 90% !important;
    width: 90% !important;
  }
  .max-w-6xl {
    max-width: 90% !important;
    width: 90% !important;
  }
  .max-w-5xl {
    max-width: 90% !important;
    width: 90% !important;
  }
}

/* Jargon Tooltips */
.jargon-term {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #71717a; /* dotted border */
  font-weight: inherit;
}

/* Tooltip popup box */
.jargon-term::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background-color: #000000;
  color: #ffffff;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 10px;
  line-height: 1.4;
  width: 220px;
  text-align: left;
  border: 1px solid #27272a;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 0px; /* premium squared edges */
}

/* Tooltip arrow pointer */
.jargon-term::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #000000 transparent transparent transparent;
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover and active toggle state animations */
.jargon-term:hover::after,
.jargon-term.active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.jargon-term:hover::before,
.jargon-term.active::before {
  opacity: 1;
}

/* ============================================
   EV Trip Planner — Light-Theme Minimalist UI
   ============================================ */

/* AC & Driving Style toggle buttons */
.trip-toggle-group {
  display: grid;
  width: 100%;
  gap: 6px;
}
#trip-ac-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#trip-style-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trip-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 4px;
  font-family: monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid #d4d4d8; /* zinc-300 */
  background: #ffffff;
  color: #71717a;
  cursor: pointer;
  border-radius: 9999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.trip-toggle-btn.trip-active {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.trip-toggle-btn:hover:not(.trip-active) {
  border-color: #000000;
  color: #000000;
  background: #ffffff;
}

/* Trip stat cards with hover zoom and invert to dark */
.trip-stat-card {
  background: #ffffff;
  border: 1px solid #e4e4e7; /* zinc-200 */
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 280ms cubic-bezier(0.16, 1, 0.3, 1),
              background 280ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: tripCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.trip-stat-card:nth-child(1) { animation-delay: 0.06s; }
.trip-stat-card:nth-child(2) { animation-delay: 0.11s; }
.trip-stat-card:nth-child(3) { animation-delay: 0.16s; }
.trip-stat-card:nth-child(4) { animation-delay: 0.21s; }
.trip-stat-card:nth-child(5) { animation-delay: 0.26s; }
.trip-stat-card:nth-child(6) { animation-delay: 0.31s; }

.trip-stat-card:hover {
  transform: translateY(-6px) !important;
  border-color: #333333 !important;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}

.trip-stat-card .trip-stat-value {
  color: #000000;
  transition: color 280ms ease;
}
.trip-stat-card .trip-stat-sub {
  color: #71717a;
  transition: color 280ms ease;
}
.trip-stat-card:hover .trip-stat-value {
  color: #ffffff !important;
}
.trip-stat-card:hover .trip-stat-sub {
  color: #a1a1aa !important;
}
.trip-stat-card:hover span:first-child {
  color: #a1a1aa !important;
}

@keyframes tripCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Results panel reveal */
#trip-results {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1),
              opacity    0.45s cubic-bezier(0.16,1,0.3,1),
              transform  0.45s cubic-bezier(0.16,1,0.3,1);
}
#trip-results.trip-results-visible {
  max-height: 3500px !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Cost comparison bar */
.trip-cost-bar {
  height: 4px;
  background: linear-gradient(to right, #000000 0%, rgba(0,0,0,0.15) 100%);
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}

/* ============================================
   Premium Mega Menu Styling
   ============================================ */
#mega-nav {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mega-trigger, .mega-nav-item {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #52525b !important; /* zinc-600 */
  transition: color 250ms ease, font-weight 250ms ease;
}
.mega-trigger:hover, .mega-nav-item:hover,
.mega-trigger.mega-active, .mega-nav-item.mega-active {
  color: #000000 !important;
  font-weight: 600;
}
.mega-active-bar {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background-color: #22C55E; /* cyan active underline */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms ease;
}
.mega-trigger.mega-active .mega-active-bar,
.mega-nav-item.mega-active .mega-active-bar {
  transform: scaleX(1);
}
.mega-trigger:hover .mega-caret {
  transform: rotate(180deg);
}
.mega-caret {
  transition: transform 200ms ease;
}

/* Mega dropdown slide-down panels - floating rounded cards */
.mega-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.98);
  width: calc(100% - 48px);
  max-width: 1100px;
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px; /* rounded corners */
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.06), 0 10px 20px -5px rgba(0, 0, 0, 0.02);
  z-index: 30;
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.mega-panel.mega-panel-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.mega-col-title {
  font-family: monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #a1a1aa; /* zinc-400 */
  font-weight: 700;
  border-bottom: 1px solid #f4f4f5; /* zinc-100 */
  padding-bottom: 8px;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 4px;
  background: transparent;
  transition: background 200ms ease, transform 200ms ease;
}
.mega-item:hover {
  background: #f4f4f5; /* zinc-100 */
  transform: translateY(-2px);
}
.mega-item-icon {
  font-size: 14px;
  transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mega-item:hover .mega-item-icon {
  transform: scale(1.2) rotate(5deg);
}
.mega-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-item-title {
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  position: relative;
}
.mega-item-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #000000;
  transition: width 200ms ease;
}
.mega-item:hover .mega-item-title::after {
  width: 100%;
}
.mega-item-desc {
  font-size: 9px;
  color: #71717a; /* zinc-500 */
}

/* Mobile accordion drawer styles */
#mega-mobile-drawer {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
}
.mobile-nav-link {
  display: block;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000000;
  text-transform: uppercase;
  padding: 18px 0;
  border-bottom: 1px solid #f4f4f5; /* zinc-100 */
}
.mobile-accordion {
  border-bottom: 1px solid #f4f4f5;
}
.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000000;
  text-transform: uppercase;
  padding: 18px 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mobile-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 0;
}
.mobile-accordion.open .mobile-accordion-body {
  padding-bottom: 16px;
}
.mobile-accordion.open .mobile-accordion-trigger svg {
  transform: rotate(180deg);
}
.mobile-sub-link {
  font-size: 11px;
  color: #52525b; /* zinc-600 */
  padding: 6px 8px;
  border-radius: 4px;
  transition: background-color 150ms ease, color 150ms ease;
}
.mobile-sub-link:hover {
  background-color: #f4f4f5;
  color: #000000;
}

/* ===================================================
   NEW STYLES: PREMIUM EDUCATIONAL SECTIONS
   =================================================== */

/* Section 1 Accordion */
#why-ev-accordion .accordion-item {
  transition: all 0.3s ease;
}
#why-ev-accordion .accordion-header {
  border: none;
  background: transparent;
  outline: none !important;
}
#why-ev-accordion .accordion-icon {
  font-size: 16px;
  color: #71717a;
  transition: transform 0.3s ease, color 0.3s ease;
}
#why-ev-accordion .accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: #22C55E;
}
#why-ev-accordion .accordion-item.open .accordion-header {
  color: #22C55E !important;
}

/* Floating Artwork Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
.floating-artwork {
  animation: float 6s ease-in-out infinite;
}

/* Section 2: Explore Gallery */
#gallery-viewport::-webkit-scrollbar {
  height: 4px;
}
#gallery-viewport::-webkit-scrollbar-track {
  background: #f4f4f5;
}
#gallery-viewport::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 2px;
}
#gallery-viewport::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}
.gallery-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.gallery-card:hover {
  border-color: #22C55E !important;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.05) !important;
}

/* Section 3: Battery Care Stagger Reveal */
.battery-tip-card {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.battery-tip-card.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Section 5: Glass Cards & Central SVG Outline */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform, opacity;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
}
#pros-column .glass-card,
#cons-column .glass-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#pros-column .glass-card.reveal-active,
#cons-column .glass-card.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Glowing battery pack representation inside center car SVG */
@keyframes batteryGlow {
  0%, 100% { fill: #22C55E; filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.4)); }
  50% { fill: #ffffff; filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.9)); }
}
.glowing-battery-indicator {
  animation: batteryGlow 3s ease-in-out infinite;
}

/* Reveal-on-scroll trigger animation utility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-on-scroll.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   TYPOGRAPHY REFINEMENTS (Poppins Overrides)
   =================================================== */

/* Apply Poppins to everything after the Hero section (#home) */
body *:not(#home):not(#home *) {
  font-family: 'Poppins', sans-serif !important;
}

/* Headings: Bold, Premium, Clean */
h1:not(#home h1),
h2:not(#home h2),
h3:not(#home h3),
h4:not(#home h4),
.text-heading {
  font-weight: 700 !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Subheadings: Semi-bold */
h5:not(#home h5),
h6:not(#home h6),
.text-subheading {
  font-weight: 600 !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Body Text: Regular, Comfortable line-height, Easy to read */
p:not(#home p),
div:not(#home div),
a:not(#home a),
li:not(#home li),
td:not(#home td),
th:not(#home th),
span:not(#home span),
button:not(#home button),
select:not(#home select),
option:not(#home option),
input:not(#home input),
label:not(#home label) {
  font-family: 'Poppins', sans-serif !important;
  line-height: 1.5;
}

/* Specifications: Medium weight, consistent spacing */
.font-mono:not(#home *),
.font-mono:not(#home * *) {
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
}

/* Tables: Premium minimalist typography, Perfect alignment, Uniform font size */
table:not(#home table) {
  width: 100%;
  border-collapse: collapse;
}
table:not(#home table) th,
table:not(#home table) td {
  font-size: 11px !important;
  line-height: 1.6 !important;
  font-family: 'Poppins', sans-serif !important;
}

/* ===================================================
   UI/UX VISUAL REDESIGN (Premium Rounded Theme)
   =================================================== */

/* All Cards styling rules */
.car-card, 
.upcoming-card, 
.launch-card, 
.related-card, 
.guide-card, 
.news-card, 
.review-card, 
.video-card, 
.gallery-card, 
.glass-card, 
.brand-chip, 
.budget-chip, 
.news-grid-container > div,
.calc-card, 
.savings-card,
.tool-card,
#compare .compare-card {
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover effects for all cards */
.car-card:hover, 
.upcoming-card:hover, 
.launch-card:hover, 
.related-card:hover, 
.guide-card:hover, 
.news-card:hover, 
.review-card:hover, 
.video-card:hover,
.gallery-card:hover,
.glass-card:hover,
.brand-chip:hover,
.budget-chip:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07), 0 1px 5px rgba(0, 0, 0, 0.02) !important;
  border-color: #000000 !important;
}

/* Image wrappers inside cards */
.car-card .bg-zinc-50, 
.upcoming-card .bg-zinc-50, 
.launch-card .bg-zinc-50, 
.gallery-card .bg-zinc-50, 
.news-card .h-28, 
.news-card .bg-zinc-100\/50,
.review-card .bg-zinc-50,
.video-card .h-36 {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

/* Image element inside cards */
.car-card img, 
.upcoming-card img, 
.launch-card img, 
.gallery-card img, 
.news-card img, 
.review-card img, 
.video-card img,
.thumbnail, 
.thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover Zoom scale 1.03 */
.car-card:hover img, 
.upcoming-card:hover img, 
.launch-card:hover img, 
.gallery-card:hover img, 
.news-card:hover img,
.video-card:hover img {
  transform: scale(1.03) !important;
  opacity: 1 !important;
}

/* Button styling rules */
button, 
.btn, 
.btn-primary, 
.btn-secondary, 
.btn-view-details, 
.btn-book-test-drive, 
.btn-notify, 
.btn-related-view {
  border-radius: 16px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Button Hover states */
button:hover, 
.btn:hover, 
.btn-primary:hover, 
.btn-secondary:hover, 
.btn-view-details:hover, 
.btn-book-test-drive:hover, 
.btn-notify:hover, 
.btn-related-view:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Do not lift specific buttons */
.modal-close-btn:hover,
.wishlist-btn:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Input elements, dropdowns, filters */
input, 
select, 
textarea, 
.search-box, 
.filter-select,
#search-car-name,
#search-car-brand,
#search-car-budget,
#brand-search-input,
#brand-type-filter,
#brand-sort-select,
#comp-select-a,
#comp-select-b,
#comp-state-select,
#trip-vehicle,
#trip-from,
#trip-to,
#global-search-input {
  border-radius: 14px !important;
}

/* Section Containers and widget card boxes */
.subpage-container, 
#why-choose-an-electric-vehicle .grid > div,
#savings .max-w-4xl, 
#compare .max-w-6xl, 
#trip-planner .max-w-5xl, 
.faq-container,
.brand-page-banner,
.details-page-hero,
.spec-box,
.pros-cons-box,
.reviews-container,
.guides-container,
.news-chapter-box {
  border-radius: 24px !important;
  overflow: hidden !important;
}

/* Card Padding & Spacing consistency */
.car-card, .upcoming-card, .launch-card, .gallery-card, .news-card {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.car-card > *:not(.absolute), 
.upcoming-card > *:not(.absolute), 
.launch-card > *:not(.absolute), 
.gallery-card > *:not(.absolute), 
.news-card > *:not(.absolute) {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.car-card > :first-child, 
.upcoming-card > :first-child, 
.launch-card > :first-child, 
.gallery-card > :first-child, 
.news-card > :first-child {
  margin-top: 0 !important;
}

.car-card > :last-child, 
.upcoming-card > :last-child, 
.launch-card > :last-child, 
.gallery-card > :last-child, 
.news-card > :last-child {
  margin-bottom: 0 !important;
}

/* ===================================================
   VEHICLE CARDS REFINEMENT (White Background & Black Outline with Green Glow)
   =================================================== */

/* All vehicle-related cards styling overrides */
.car-card, 
.upcoming-card, 
.launch-card, 
.gallery-card {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  border-radius: 20px !important;
  color: #000000 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease !important;
}

/* Hover / Click state overrides */
.car-card:hover, 
.upcoming-card:hover, 
.launch-card:hover, 
.gallery-card:hover {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.35) !important;
}

/* Prevent text elements inside vehicle cards from turning white/gray on hover */
.car-card:hover h3, .upcoming-card:hover h3, .launch-card:hover h3, .gallery-card:hover h3,
.car-card:hover h4, .upcoming-card:hover h4, .launch-card:hover h4,
.car-card:hover h5, .upcoming-card:hover h5, .launch-card:hover h5,
.car-card:hover p, .upcoming-card:hover p, .launch-card:hover p,
.car-card:hover span, .upcoming-card:hover span, .launch-card:hover span,
.car-card:hover label, .upcoming-card:hover label, .launch-card:hover label,
.car-card:hover .text-zinc-800, .upcoming-card:hover .text-zinc-800, .launch-card:hover .text-zinc-800,
.car-card:hover [class*="text-zinc-"], .upcoming-card:hover [class*="text-zinc-"], .launch-card:hover [class*="text-zinc-"] {
  color: inherit !important;
}

.car-card:hover .font-bold, .upcoming-card:hover .font-bold, .launch-card:hover .font-bold {
  color: inherit !important;
}

/* Standardize card interior lines and backgrounds on hover */
.car-card:hover .border-t, .upcoming-card:hover .border-t, .launch-card:hover .border-t {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.car-card:hover .bg-zinc-50, .upcoming-card:hover .bg-zinc-50, .launch-card:hover .bg-zinc-50 {
  background-color: #f4f4f5 !important;
  border-color: rgba(0, 0, 0, 0.03) !important;
}

.car-card:hover .absolute, .upcoming-card:hover .absolute, .launch-card:hover .absolute {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
}

/* Wishlist button colors override inside hovered card */
.car-card:hover .wishlist-btn {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #a1a1aa !important;
}
.car-card:hover .wishlist-btn:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}
.car-card:hover .wishlist-btn svg.fill-current {
  fill: #ef4444 !important;
  color: #ef4444 !important;
}
.car-card:hover .wishlist-btn:hover svg.fill-current {
  fill: #ef4444 !important;
  color: #ef4444 !important;
}

/* Action CTAs hover colors override inside hovered card */
.car-card:hover .btn-view-details,
.upcoming-card:hover .btn-notify {
  background-color: transparent !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
}
.car-card:hover .btn-view-details:hover,
.upcoming-card:hover .btn-notify:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
}

.car-card:hover .btn-book-test-drive {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
}
.car-card:hover .btn-book-test-drive:hover {
  background-color: #22C55E !important;
  color: #ffffff !important;
  border-color: #22C55E !important;
}

/* ===================================================
   GLOBAL DESIGN HARMONIZATION (Apple/Tesla/Rivian Theme)
   =================================================== */

/* 1. Global Rounded Corners (16-20px) on everything */
.car-card, 
.upcoming-card, 
.launch-card, 
.related-card, 
.guide-card, 
.news-card, 
.review-card, 
.video-card, 
.gallery-card, 
.glass-card, 
.brand-chip, 
.budget-chip, 
.news-grid-container > div,
.calc-card, 
.savings-card,
.tool-card,
#compare .compare-card,
.subpage-container, 
#why-choose-an-electric-vehicle .grid > div,
#savings .max-w-4xl, 
#compare .max-w-6xl, 
#trip-planner .max-w-5xl, 
.faq-container,
.brand-page-banner,
.details-page-hero,
.spec-box,
.pros-cons-box,
.reviews-container,
.guides-container,
.news-chapter-box,
.modal-content,
.modal-close-btn,
.search-box, 
.filter-select,
input, 
select, 
textarea,
#search-car-name,
#search-car-brand,
#search-car-budget,
#brand-search-input,
#brand-type-filter,
#brand-sort-select,
#comp-select-a,
#comp-select-b,
#comp-state-select,
#trip-vehicle,
#trip-from,
#trip-to,
#global-search-input,
.tab-btn,
.nav-item,
.menu-item {
  border-radius: 18px !important;
}

/* Rounded outer table container, white background, black border */
.table-container, 
table:not(#home table) {
  border-radius: 18px !important;
  border: 1.5px solid #000000 !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
}

/* Rounded table headers */
table:not(#home table) thead tr {
  background-color: #f4f4f5 !important;
  border-bottom: 1.5px solid #000000 !important;
}

/* Table rows green highlighted on hover */
table:not(#home table) tbody tr:hover {
  background-color: rgba(34, 197, 94, 0.08) !important;
  transition: background-color 0.25s ease !important;
}

/* 2. Standardized Card Design: White Background & Black Border ONLY */
.car-card, 
.upcoming-card, 
.launch-card, 
.related-card, 
.guide-card, 
.news-card, 
.review-card, 
.video-card, 
.gallery-card, 
.glass-card, 
.brand-chip, 
.budget-chip, 
.news-grid-container > div,
.calc-card, 
.savings-card,
.tool-card,
#compare .compare-card {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  color: #000000 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01) !important;
}

/* Ensure inside of every card remains WHITE on hover */
.car-card:hover, 
.upcoming-card:hover, 
.launch-card:hover, 
.related-card:hover, 
.guide-card:hover, 
.news-card:hover, 
.review-card:hover, 
.video-card:hover,
.gallery-card:hover,
.glass-card:hover,
.brand-chip:hover,
.budget-chip:hover,
.btn-open-hub:hover {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1.5px solid #22C55E !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.35) !important;
}

/* Prevent text color changes inside card on hover */
.car-card:hover h3, .upcoming-card:hover h3, .launch-card:hover h3, .guide-card:hover h3, .news-card:hover h3, .review-card:hover h3, .video-card:hover h3,
.car-card:hover h4, .upcoming-card:hover h4, .launch-card:hover h4, .related-card:hover h4,
.car-card:hover h5, .upcoming-card:hover h5, .launch-card:hover h5, .review-card:hover h5,
.car-card:hover p, .upcoming-card:hover p, .launch-card:hover p, .related-card:hover p, .guide-card:hover p, .news-card:hover p, .review-card:hover p, .video-card:hover p,
.car-card:hover span, .upcoming-card:hover span, .launch-card:hover span, .related-card:hover span, .guide-card:hover span, .news-card:hover span, .review-card:hover span, .video-card:hover span,
.car-card:hover label, .upcoming-card:hover label, .launch-card:hover label, .related-card:hover label, .guide-card:hover label, .news-card:hover label, .review-card:hover label, .video-card:hover label,
.car-card:hover .text-zinc-800, .upcoming-card:hover .text-zinc-800, .launch-card:hover .text-zinc-800, .related-card:hover .text-zinc-800, .review-card:hover .text-zinc-800, .video-card:hover .text-zinc-800,
.car-card:hover [class*="text-zinc-"], .upcoming-card:hover [class*="text-zinc-"], .launch-card:hover [class*="text-zinc-"], .related-card:hover [class*="text-zinc-"], .guide-card:hover [class*="text-zinc-"], .news-card:hover [class*="text-zinc-"], .review-card:hover [class*="text-zinc-"], .video-card:hover [class*="text-zinc-"],
.car-card:hover .font-bold, .upcoming-card:hover .font-bold, .launch-card:hover .font-bold, .related-card:hover .font-bold, .guide-card:hover .font-bold, .news-card:hover .font-bold, .review-card:hover .font-bold, .video-card:hover .font-bold {
  color: inherit !important;
}

.car-card:hover .border-t, .upcoming-card:hover .border-t, .launch-card:hover .border-t, .related-card:hover .border-t, .guide-card:hover .border-t, .news-card:hover .border-t, .review-card:hover .border-t, .video-card:hover .border-t {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
.car-card:hover .bg-zinc-50, .upcoming-card:hover .bg-zinc-50, .launch-card:hover .bg-zinc-50, .related-card:hover .bg-zinc-50, .guide-card:hover .bg-zinc-50, .news-card:hover .bg-zinc-50, .review-card:hover .bg-zinc-50, .video-card:hover .bg-zinc-50,
.news-card:hover .bg-zinc-100\/50 {
  background-color: #f4f4f5 !important;
  border-color: rgba(0, 0, 0, 0.03) !important;
}
.car-card:hover .absolute, .upcoming-card:hover .absolute, .launch-card:hover .absolute, .related-card:hover .absolute {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
}

/* 3. Button Styling: Pill shape, White background, Thin Black outline, Black text */
button, 
.btn, 
.btn-primary, 
.btn-secondary, 
.btn-view-details, 
.btn-book-test-drive, 
.btn-notify, 
.btn-related-view {
  border-radius: 9999px !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  color: #000000 !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
}

/* Button Hover: Green glow, Green border, Slight lift, Smooth animation */
button:hover, 
.btn:hover, 
.btn-primary:hover, 
.btn-secondary:hover, 
.btn-view-details:hover, 
.btn-book-test-drive:hover, 
.btn-notify:hover, 
.btn-related-view:hover {
  transform: translateY(-2px) !important;
  border-color: #22C55E !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.45) !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #000000 !important;
}

/* Wishlist heart button styling overrides - borderless, transparent background */
.wishlist-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #a1a1aa !important; /* light grey outline default */
  padding: 0 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

/* Heart outline styling */
.wishlist-btn svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
  transition: fill 0.2s ease, stroke 0.2s ease !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Ensure no border or background under hover */
.car-card:hover .wishlist-btn,
.car-card:hover .wishlist-btn:hover,
.wishlist-btn:hover {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ef4444 !important; /* turns red on hover */
  transform: scale(1.15) !important;
}

/* When the car is wishlisted (active state) */
.wishlist-btn svg.fill-current,
#detail-wishlist-btn svg.fill-current {
  fill: #ef4444 !important; /* solid red */
  stroke: #ef4444 !important;
  color: #ef4444 !important;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.15); }
  75% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.heart-beat {
  animation: heartBeat 0.4s ease-out !important;
}

/* Form inputs focus: Green border, Green glow */
input, 
select, 
textarea,
#search-car-name,
#search-car-brand,
#search-car-budget,
#brand-search-input,
#brand-type-filter,
#brand-sort-select,
#comp-select-a,
#comp-select-b,
#comp-state-select,
#trip-vehicle,
#trip-from,
#trip-to,
#global-search-input {
  background-color: #ffffff !important;
  border: 1.5px solid #000000 !important;
  color: #000000 !important;
  outline: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

input:focus, 
select:focus, 
textarea:focus {
  border-color: #22C55E !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3) !important;
}

/* Ranges / Slider highlighting: Black track and Black thumb by default */
input[type="range"] {
  -webkit-appearance: none !important;
  width: 100% !important;
  background: #000000 !important; /* black track */
  height: 4px !important;
  border-radius: 9999px !important;
  border: none !important;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  background: #000000 !important; /* black thumb */
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 1.5px solid #000000 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* Only while dragging or hovering should the slider temporarily glow green */
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb {
  background: #22C55E !important; /* green on hover/drag */
  border-color: #22C55E !important;
  transform: scale(1.2) !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6) !important;
}

input[type="range"]::-moz-range-thumb {
  background: #000000 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 1.5px solid #000000 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
}

input[type="range"]:hover::-moz-range-thumb,
input[type="range"]:active::-moz-range-thumb {
  background: #22C55E !important;
  border-color: #22C55E !important;
  transform: scale(1.2) !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6) !important;
}

/* 5. Header menu items & indicators */
.nav-link:hover,
.nav-item:hover {
  color: #22C55E !important;
}

.active-nav-indicator,
.nav-link.active::after,
.nav-link:hover::after {
  background-color: #22C55E !important;
}

/* Global focus rings */
*:focus-visible {
  outline: 2px solid #22C55E !important;
}

/* Hero CTA Buttons Overrides (Clearly visible 2px black outline, fully rounded pill shape) */
#home a.px-6.py-2\.5 {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  border-radius: 9999px !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

#home a.px-6.py-2\.5:hover {
  border-color: #22C55E !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.45) !important;
  transform: translateY(-2px) !important;
}

/* Premium Card wrappers for EMI Calculator & Petrol Savings Calculator */
#emi .grid,
#petrol-savings .grid {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
}

/* Guide Cards and Battery Care Cards hover adjustments */
#buying-portal .grid > div,
.battery-tip-card {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  border-radius: 18px !important;
  color: #000000 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

#buying-portal .grid > div:hover,
.battery-tip-card:hover {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-color: #22C55E !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.35) !important;
}

/* Prevent text colors inside ANY hovered card from turning white/grey */
.car-card:hover,
.upcoming-card:hover,
.launch-card:hover,
.related-card:hover,
.guide-card:hover,
.news-card:hover,
.review-card:hover,
.video-card:hover,
.gallery-card:hover,
.glass-card:hover {
  color: #000000 !important;
}

.car-card:hover *,
.upcoming-card:hover *,
.launch-card:hover *,
.related-card:hover *,
.guide-card:hover *,
.news-card:hover *,
.review-card:hover *,
.video-card:hover *,
.gallery-card:hover *,
.glass-card:hover * {
  color: inherit !important;
}

/* Specific resets for text-zinc classes inside hovered cards to maintain contrast */
.car-card:hover .text-zinc-500, .upcoming-card:hover .text-zinc-500, .launch-card:hover .text-zinc-500, .related-card:hover .text-zinc-500, .guide-card:hover .text-zinc-500, .news-card:hover .text-zinc-500, .review-card:hover .text-zinc-500, .video-card:hover .text-zinc-500 {
  color: #71717a !important;
}
.car-card:hover .text-zinc-400, .upcoming-card:hover .text-zinc-400, .launch-card:hover .text-zinc-400, .related-card:hover .text-zinc-400, .guide-card:hover .text-zinc-400, .news-card:hover .text-zinc-400, .review-card:hover .text-zinc-400, .video-card:hover .text-zinc-400 {
  color: #a1a1aa !important;
}
.car-card:hover .text-zinc-600, .upcoming-card:hover .text-zinc-600, .launch-card:hover .text-zinc-600, .related-card:hover .text-zinc-600, .guide-card:hover .text-zinc-600, .news-card:hover .text-zinc-600, .review-card:hover .text-zinc-600, .video-card:hover .text-zinc-600 {
  color: #52525b !important;
}
.car-card:hover .text-zinc-700, .upcoming-card:hover .text-zinc-700, .launch-card:hover .text-zinc-700, .related-card:hover .text-zinc-700, .guide-card:hover .text-zinc-700, .news-card:hover .text-zinc-700, .review-card:hover .text-zinc-700, .video-card:hover .text-zinc-700 {
  color: #3f3f46 !important;
}
.car-card:hover .text-zinc-800, .upcoming-card:hover .text-zinc-800, .launch-card:hover .text-zinc-800, .related-card:hover .text-zinc-800, .guide-card:hover .text-zinc-800, .news-card:hover .text-zinc-800, .review-card:hover .text-zinc-800, .video-card:hover .text-zinc-800 {
  color: #27272a !important;
}

/* Ensure inner grey bg elements stay light grey when hovered */
.car-card:hover .bg-zinc-50, .upcoming-card:hover .bg-zinc-50, .launch-card:hover .bg-zinc-50, .related-card:hover .bg-zinc-50, .guide-card:hover .bg-zinc-50, .news-card:hover .bg-zinc-50, .review-card:hover .bg-zinc-50, .video-card:hover .bg-zinc-50 {
  background-color: #f4f4f5 !important;
}

/* ==========================================
   INTERACTIVE GREEN GLOW & HOVER EFFECTS OVERRIDES
   ========================================== */

/* 1. Universal Accordion items styling */
.accordion-item,
#why-ev-accordion .accordion-item,
#faq-accordion .accordion-item,
#faq-grid .accordion-item,
#buying-portal .accordion-item {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  border-radius: 18px !important;
  margin-bottom: 12px !important;
  padding: 0 20px !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.accordion-item:hover,
#why-ev-accordion .accordion-item:hover,
#faq-accordion .accordion-item:hover,
#faq-grid .accordion-item:hover,
#buying-portal .accordion-item:hover {
  border-color: #22C55E !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.35) !important;
}

/* Ensure accordion header has no background or border and correct spacing */
.accordion-header,
#why-ev-accordion .accordion-header,
#faq-accordion .accordion-header,
#faq-grid .accordion-header {
  border: none !important;
  background: transparent !important;
  padding: 16px 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Adjust open state text colors and transitions */
.accordion-item.open {
  border-color: #000000 !important;
}
.accordion-item.open:hover {
  border-color: #22C55E !important;
}
.accordion-item.open .accordion-header {
  color: #22C55E !important;
}
.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

/* FAQ accordion - remove inner dividers */
#faq-accordion .accordion-item {
  padding: 0 !important;
}
#faq-accordion .accordion-item .accordion-content > div {
  border-top: none !important;
}

/* 2. Interactive Green Glow for ALL buttons, navigation elements, dropdowns, input elements on hover/focus/active */
button:hover,
input[type="submit"]:hover,
.btn:hover,
.nav-link:hover,
.mobile-nav-link:hover,
#navbar a:hover,
#mega-menu button:hover,
.brand-chip:hover,
.budget-chip:hover,
.category-btn:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35) !important;
  border-color: #22C55E !important;
  transition: all 0.3s ease !important;
}

/* Active click states for interactive items */
button:active,
.btn:active,
.brand-chip:active,
.budget-chip:active {
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.5) !important;
  transform: scale(0.98) !important;
}

/* 3. Calculator Box hover effects */
#emi .grid:hover,
#petrol-savings .grid:hover {
  border-color: #22C55E !important;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.25) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* 4. Footer Interactive Elements hover glow */
footer button:hover,
footer input:focus {
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3) !important;
  border-color: #22C55E !important;
}

footer a:hover {
  color: #22C55E !important;
  text-decoration: underline !important;
}

footer input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
footer input:hover {
  border-color: #22C55E !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2) !important;
}

/* Expert Review cards — keep all text black on hover */
.review-card:hover span,
.review-card:hover p,
.review-card:hover li,
.review-card:hover label,
.review-card:hover h1,
.review-card:hover h2,
.review-card:hover h3,
.review-card:hover h4,
.review-card:hover h5,
.review-card:hover h6,
.review-card:hover div,
.review-card:hover a,
.review-card:hover strong,
.review-card:hover b,
.review-card:hover em,
.review-card:hover .text-zinc-400,
.review-card:hover .text-zinc-500,
.review-card:hover .text-zinc-600,
.review-card:hover .text-zinc-700,
.review-card:hover .text-zinc-800,
.review-card:hover .font-bold,
.review-card:hover [class*="text-"] {
  color: #000000 !important;
}
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe.goog-te-banner-frame {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#google_translate_element .goog-te-gadget-simple {
  background-color: #fff !important;
  border: 1px solid #d4d4d8 !important;
  border-radius: 0 !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap;
}

#google_translate_element .goog-te-gadget-simple:hover {
  border-color: #000 !important;
  background-color: #000 !important;
}

#google_translate_element .goog-te-gadget-simple:hover a span,
#google_translate_element .goog-te-gadget-simple:hover a span span {
  color: #fff !important;
}

/* Hide the flag/globe icon */
#google_translate_element .goog-te-gadget-icon {
  display: none !important;
}

/* The clickable link + language text */
#google_translate_element .goog-te-gadget-simple a {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
}

#google_translate_element .goog-te-gadget-simple a span:first-child {
  color: #000 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Kill the ugly vertical divider line before the arrow */
#google_translate_element .goog-te-gadget-simple a span[style*="border-left"] {
  border-left: none !important;
  display: none !important;
}

/* The dropdown arrow */
#google_translate_element .goog-te-gadget-simple a span[aria-hidden="true"] {
  color: #000 !important;
  font-size: 8px !important;
}

#google_translate_element .goog-te-gadget-simple:hover a span[aria-hidden="true"] {
  color: #fff !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
  border-color: #000 !important;
  background-color: #fff !important;
}

#google_translate_element .goog-te-gadget-simple:hover a span,
#google_translate_element .goog-te-gadget-simple:hover a span span {
  color: #000 !important;
}

#google_translate_element .goog-te-gadget-simple:hover a span[aria-hidden="true"] {
  color: #000 !important;
}
#google_translate_element {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.custom-lang-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}

#custom-lang-btn {
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.05em;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

#custom-lang-btn:hover {
  border-color: #111827;
}

#custom-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  min-width: 155px;
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  padding: 4px 0;
}

#custom-lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#custom-lang-menu .lang-option {
  padding: 9px 16px;
  font-size: 12.5px;
  font-family: 'Poppins', sans-serif;
  color: #111827;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1.4;
}

#custom-lang-menu .lang-option:hover {
  background: #F5F5F5;
}

#custom-lang-menu .lang-option.active {
  background: #ecfdf5;
  color: #059669;
  font-weight: 600;
}

#custom-lang-menu .lang-option.active:hover {
  background: #d1fae5;
}

/* Premium Editorial Layout styling for dynamic prose content */
article p,
.prose p,
.prose-custom p,
.prose-zinc p {
  margin-bottom: 1.5rem !important;
  line-height: 1.8 !important;
  font-size: 14px !important;
  color: #3f3f46 !important; /* zinc-700 */
}

article h2,
.prose h2,
.prose-custom h2,
.prose-zinc h2 {
  font-size: 1.5rem !important; /* 24px */
  font-weight: 800 !important;
  color: #000000 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.025em !important;
}

article h3,
.prose h3,
.prose-custom h3,
.prose-zinc h3 {
  font-size: 1.15rem !important; /* 18px */
  font-weight: 700 !important;
  color: #000000 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.02em !important;
}

article ul,
.prose ul,
.prose-custom ul,
.prose-zinc ul {
  margin-bottom: 1.5rem !important;
  padding-left: 1.25rem !important;
  list-style-type: disc !important;
}

article li,
.prose li,
.prose-custom li,
.prose-zinc li {
  margin-bottom: 0.5rem !important;
  line-height: 1.7 !important;
  color: #3f3f46 !important;
  font-size: 14px !important;
}

/* Premium Editorial Layout Callouts & Takeaways */
.editorial-callout {
  border-left: 4px solid #22c55e !important;
  background-color: #f4f4f5 !important;
  padding: 1.25rem 1.5rem !important;
  margin-top: 1.75rem !important;
  margin-bottom: 1.75rem !important;
  border-radius: 0 8px 8px 0 !important;
  font-family: 'Poppins', sans-serif !important;
}

.editorial-callout-title {
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #000000 !important;
  margin-bottom: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.editorial-callout-content {
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: #3f3f46 !important;
}

.key-takeaways-card {
  border: 1px solid #e4e4e7 !important;
  background-color: #fafafa !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin-top: 2.25rem !important;
  margin-bottom: 2.25rem !important;
  font-family: 'Poppins', sans-serif !important;
}

.key-takeaways-title {
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #000000 !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  border-bottom: 1px solid #e4e4e7 !important;
  padding-bottom: 0.5rem !important;
}

.key-takeaways-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  list-style: none !important;
  padding-left: 0 !important;
}

.key-takeaways-item {
  display: flex !important;
  align-items: start !important;
  gap: 0.5rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: #27272a !important;
}

.key-takeaways-bullet {
  color: #22c55e !important;
  font-weight: bold !important;
  flex-shrink: 0 !important;
}

.video-skeleton {
  animation: video-shimmer 1.5s ease-in-out infinite;
}

@keyframes video-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card img {
  transition: transform 0.3s ease;
}

.video-card:hover img {
  transform: scale(1.03);
}

/* Testimonial Carousel */
.testimonial-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.testimonial-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(56, 229, 77, 0.12) 0%, rgba(56, 229, 77, 0.06) 30%, transparent 60%);
  filter: blur(60px);
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.testimonial-carousel:hover .testimonial-glow {
  animation-play-state: paused;
}

@keyframes glow-drift {
  0% { transform: translate(-5%, -5%) scale(1); opacity: 0.6; }
  50% { transform: translate(5%, 3%) scale(1.1); opacity: 1; }
  100% { transform: translate(-3%, 2%) scale(0.95); opacity: 0.7; }
}

.testimonial-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: testimonial-scroll 60s linear infinite;
  position: relative;
  z-index: 1;
}

.testimonial-carousel:hover .testimonial-track {
  animation-play-state: paused;
}

@keyframes testimonial-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  font-style: italic;
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 280px;
    padding: 20px;
  }
  .testimonial-track {
    gap: 14px;
  }
}

/* =========================================================
   Global Cursor & Text Selection Rules
   Prevents text-editing I-beam cursor on headers/text
   ========================================================= */
body, h1, h2, h3, h4, h5, h6, p, span, div, nav, header, section, footer, label {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  cursor: default;
}

/* Allow text selection ONLY in text inputs and textareas */
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], textarea, [contenteditable="true"] {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text !important;
}

/* Enforce pointer cursor on all interactive elements & links */
button, a, .mega-trigger, .nav-link, [role="button"], .cursor-pointer, .brand-chip, .budget-chip, .accordion-header, .accordion-trigger, .accordion-btn, .mobile-accordion-trigger {
  cursor: pointer !important;
}


/* ==========================================================================
   DESIGN SYSTEM POLISH (Apple, Stripe, Tesla & Notion Quality Standards)
   ========================================================================== */

/* 1. Global Font Smoothing & Typography Refinements */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #111827;
}

/* Headings Tracking & Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Monospace & Badges Tracking */
.font-mono, [class*="tracking-widest"], [class*="tracking-wider"] {
  letter-spacing: 0.1em !important;
}

/* 2. Premium Button Sizing & Elevating Hover States (Stripe / Tesla Style) */
button, .btn, .btn-primary, .btn-secondary, [role="button"] {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, box-shadow;
}

button:hover, .btn:hover, [role="button"]:hover {
  transform: translateY(-1.5px);
}

button:active, .btn:active, [role="button"]:active {
  transform: translateY(0.5px) scale(0.98);
}

/* Green Accent Buttons Glow */
.bg-accentgreen, .bg-\[\#22C55E\], .bg-green-600, .btn-accent {
  box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.25);
}

.bg-accentgreen:hover, .bg-\[\#22C55E\]:hover, .bg-green-600:hover, .btn-accent:hover {
  box-shadow: 0 8px 25px 0 rgba(34, 197, 94, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* 3. Card Consistency & Apple-Grade Hover Lifts */
.car-card, .testimonial-card, .insight-card, .tool-card, .brand-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
  border-radius: 12px;
}

.car-card:hover, .testimonial-card:hover, .insight-card:hover, .tool-card:hover, .brand-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Smooth Image Zoom on Card Hover */
.car-card img, .insight-card img, .card-image-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.car-card:hover img, .insight-card:hover img, .card-image-container:hover img {
  transform: scale(1.04);
}

/* 4. Form Controls & Focus States (Stripe UX) */
input[type="text"], input[type="search"], input[type="email"], input[type="number"], select, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
  border-radius: 8px;
}

input[type="text"]:focus, input[type="search"]:focus, input[type="email"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
  outline: none !important;
}

/* 5. Brand & Budget Filter Chips Consistency */
.brand-chip, .budget-chip {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 9999px;
}

.brand-chip:hover, .budget-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 6. Accordion Smooth Transitions */
.accordion-item, .mobile-accordion {
  transition: border-color 0.3s ease, background-color 0.3s ease !important;
}

.accordion-header, .mobile-accordion-trigger {
  transition: color 0.2s ease, background-color 0.2s ease !important;
}

/* 7. Glassmorphic Backdrop Navbar Polish */
#mega-nav {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* 8. Responsive Scrollbar & Spacing Cleanliness */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}


/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS (CSS Render Engine & Layout Containment)
   ========================================================================== */

/* Offscreen Section Render Containment (Reduces Initial Paint Work) */
#faqs, #insight-section, #tools-section, footer {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* Enforce GPU acceleration on heavy animated elements to prevent layout jank */
.hero-fade-in, .hero-text-animate, .hero-search-animate, .car-card {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Prevent Layout Shift (CLS) on Card Image Containers */
.car-card-img-wrap, .card-image-container {
  aspect-ratio: 16 / 10;
  background-color: #f3f4f6;
  overflow: hidden;
}
