/* CAR Website Styles */

/* Variables */

/* ---------- Variáveis e Configurações ---------- */
:root {
  /* Cores baseadas no vermelho #B61E23 */
  --primary-red: #b61e23ff; /* Cor principal */
  --light-red: #D94A4F; /* Tom mais claro para contraste */
  --dark-red: #8C171B; /* Tom mais escuro para profundidade */
  --neutral-black: #262626; /* Mantido para textos e elementos escuros */
  --neutral-white: #ffffff; /* Mantido para fundos e contrastes */
  --neutral-gray: #7d7d7dff; /* Mantido para elementos neutros */
  --neutral-light-gray: #abababff; /* Mantido para fundos claros */
  --accent-red: #FF4D4F; /* Tom vibrante para destaques (inspirado em vermelho claro) */
  --mask-red: rgba(182, 30, 35, 0.8); /* Tom vibrante para destaques (inspirado em vermelho claro) */

  --body-bg: #ffffff; /* Mantido para fundo neutro */
  --text-color: #262626; /* Mantido para legibilidade */
  --text-description: #414141; /* Mantido para descrições */
  --card-bg: #ffffff; /* Mantido para cards */
  --border-color: #84848427; /* Mantido para bordas sutis */
  --navbar-bg: rgba(255, 255, 255, 0.9); /* Mantido para navbar translúcida */
  --footer-bg: #efefefff; /* Mantido para rodapé neutro */

  /* Gradientes premium */
  --gradient-red: linear-gradient(
    135deg,
    var(--primary-red),
    var(--dark-red)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-red),
    var(--primary-red)
  );
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  ); /* Mantido para efeito de vidro */

  /* Efeitos e sombras */
  --glow-red: 0 0 15px rgba(182, 30, 35, 0.7); /* Ajustado para o vermelho */
  --glow-accent: 0 0 20px rgba(255, 77, 79, 0.8); /* Ajustado para o tom vibrante */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1); /* Mantido para suavidade */
  --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.2); /* Mantido para profundidade */

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08); /* Mantido */
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12); /* Mantido */
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15); /* Mantido */
  
  /* Bordas */
  --border-radius-sm: 8px; /* Mantido */
  --border-radius-md: 12px; /* Mantido */
  --border-radius-lg: 20px; /* Mantido */
  --border-radius-full: 9999px; /* Mantido */

  /* Dimensões e espaçamentos */
  --timeline-height: 600px; /* Mantido */
  --item-spacing: 50px; /* Mantido */
  --item-width: 350px; /* Mantido */
  --item-active-scale: 1; /* Mantido */
  --item-inactive-scale: 0.5; /* Mantido */

  /* Animações */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1); /* Mantido */
  --transition-time: 0.5s; /* Mantido */
  --transition-delay: 0.05s; /* Mantido */
  --animation-timing: cubic-bezier(0.4, 0, 0.2, 1); /* Mantido */
}

[data-theme="dark"] {
  --body-bg: #121212;
  --text-color: #f8f9fa;
  --text-description: #bfbfbf;
  --neutral-light-gray: #bcbcbcff;
  --card-bg: #1e1e1e;
  --border-color: #333333;
  --navbar-bg: rgba(18, 18, 18, 0.9);
  --footer-bg: #1e1e1e;
}

@font-face {
    font-family: 'Fivo Sans Light';
    src: url('/public/frontend/assets/fonts/fivo-sans/FivoSans-Light.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fivo Sans';
    src: url('/public/frontend/assets/fonts/fivo-sans/FivoSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fivo Sans Bold';
    src: url('/public/frontend/assets/fonts/fivo-sans/FivoSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cloud Bold';
    src: url('/public/frontend/assets/fonts/cloud/CloudBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cloud';
    src: url('/public/frontend/assets/fonts/cloud/CloudRegular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-family: "BMW_iconFont";
  src: url("/public/frontend/assets/fonts/icons/BMW_iconFont.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.icons-loaded [class*="icon-"] {
  font-family: "BMW_iconFont" !important;
}

* {
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: 'Fivo Sans', sans-serif;
  background-color: var(--body-bg);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100vw;
  margin: 0;
  overscroll-behavior-x: none;
  overflow-y: auto;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: normal;
  font-weight: 400;
  margin-bottom: 0;
  word-wrap: break-word;
  position: relative;
  text-rendering: optimizeSpeed;
}

h1 {
  font-family: 'Cloud Bold', sans-serif;
  font-size: 3.6875rem;
  font-weight: 300;
  text-rendering: optimizeSpeed;
}

h2 {
  font-family: 'Cloud Bold', sans-serif;
  font-size: 1.6875rem;
  font-weight: 300;
  text-rendering: optimizeSpeed;
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.3s ease;
  text-rendering: optimizeSpeed;
}

a:hover {
  color: var(dark-red);
}

p {
  margin-top: 5px;
  color: var(--text-description);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.2;
  text-rendering: optimizeSpeed;
}

.btn {
  --bs-btn-padding-y: 0.25rem!important;
  --bs-btn-padding-x: 0.5rem!important;
  --bs-btn-font-size: 0.875rem!important;
  --bs-btn-border-radius: var(--bs-border-radius-sm)!important;
  border-radius: 25px!important;
  border: none!important;
}

.page-wrapper {
  width: 100vw;
  margin: 0;
  overscroll-behavior-x: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.section-title {
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0;
  word-wrap: break-word;
  position: relative;
  color: var(--text-color);
}

.section-subtitle {
  font-size: 1.4rem;
  color: var(--primary-red);
  max-width: 700px;
  /* margin: 0 auto; */
}

.image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--light-red) 50%,
    var(--primary-red) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--text-color);
}

#light-icon {
  display: none;
}

[data-theme="dark"] #dark-icon {
  display: none;
}

[data-theme="dark"] #light-icon {
  display: block;
}


.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
  color: white!important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.4s ease;
}

.btn:hover {
  transform: translateY(0px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn:hover::before {
  left: 100%;
}

.btn:focus {
  outline: 0px solid var(--light-red);
  outline-offset: 2px;
}


.text-neutral {
  color: var(--text-description);
}

/* Header & Navigation - Transparent Overlay */
header {
 -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
}

/* header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, transparent -10%, var(--body-bg) 100%);
    display: block;
} */

header::after
 {
    content: "";
    width: 100%;
    height: 1px;
    display: block;
    background: linear-gradient(to left, transparent, var(--border-color), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
}

.header-transparent {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0 0.75rem;
}

.header-transparent.header-dark {
  border-bottom: 1px solid var(--border-color) !important;
}

.header-transparent .navbar {
  padding: 0.875rem 0;
  transition: padding 0.3s ease;
}

.header-transparent.scrolled {
  position: fixed;
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-transparent.scrolled .navbar {
  padding: 0.75rem 0;
}

.logo {
  height: 53px;
  width: auto;
  transition: opacity 0.3s ease;
  aspect-ratio: 16 / 9!important;
}

.logo-white {
  display: block;
  aspect-ratio: 16 / 9!important;
}

.logo-dark {
  display: none;
  aspect-ratio: 16 / 9!important;
}

.offcanvas.show .logo-white {
  display: none;
}

.offcanvas.show .logo-dark {
  display: block;
}


.header-transparent.scrolled .logo-white {
  display: none;
}

.header-transparent.scrolled .logo-dark {
  display: block;
}

[data-theme="light"] .offcanvas.show, [data-theme="light"] .header-transparent.scrolled {
  .logo-white {
    display: none !important;
  }
  .logo-dark {
    display: block !important;
  }
} 

[data-theme="dark"] .offcanvas.show, [data-theme="dark"] .header-transparent.scrolled  {
  .logo-white {
    display: block !important;
  }
  .logo-dark {
    display: none !important;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: white;
}

.header-transparent.scrolled .navbar-brand {
  color: var(--text-color);
}

/* Navbar Toggler (Mobile) */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 9999;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  /* background: radial-gradient(circle, rgba(182, 30, 35, 0.3) 0%, transparent 60%); */
  opacity: 0;
  transform: scale(0);
  border-radius: 50%;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navbar-toggler[aria-expanded="true"]::before {
  opacity: 1;
  transform: scale(1.5); /* Efeito de pulso ampliado */
  animation: pulseGlow 1.5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.7);
  }
}

.toggler-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Easing elástico */
  border-radius: 1px;
  transform-origin: center;
  position: relative;
}

.header-transparent.scrolled .toggler-line {
  background-color: var(--text-color);
}

.navbar-toggler:hover .toggler-line {
  background-color: var(--primary-red);
  transform: scaleX(1.2); /* Alongamento mais pronunciado ao hover */
}

/* Animation for toggler when active */
.navbar-toggler[aria-expanded="true"] .toggler-line.top {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(182, 30, 35, 0.7); /* Brilho mais intenso */
  width: 28px; /* Linha mais longa para impacto visual */
}

.navbar-toggler[aria-expanded="true"] .toggler-line.middle {
  opacity: 0;
  transform: translateX(-15px) scaleX(0); /* Deslizamento mais dramático */
}

.navbar-toggler[aria-expanded="true"] .toggler-line.bottom {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(182, 30, 35, 0.7);
  width: 28px; /* Linha mais longa */
}

[data-theme="dark"] .navbar-toggler .toggler-line {
  background-color: var(--text-color);
}

[data-theme="dark"] .navbar-toggler:hover .toggler-line,
[data-theme="dark"] .navbar-toggler[aria-expanded="true"] .toggler-line {
  background-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(182, 30, 35, 0.7);
}

.btn-close {
  opacity: 1;
  box-shadow: none;
  border: none;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
  opacity: 1;
}

[data-theme="dark"] .btn-close {
  filter: invert(1);
}


/* Desktop Navigation */
.navbar-nav .nav-link {
  color: white;
  font-weight: 900;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.header-dark .navbar .navbar-nav .nav-link {
  color: var(--text-white) !important;
}

.header-dark .navbar .social-icons a {
  color: var(--text-white) !important;
}

.header-dark .navbar .navbar-brand .logo-dark {
  display: block;
}

.header-dark .navbar .navbar-brand .logo-white {
  display: none;
}

.header-transparent.scrolled .navbar-nav .nav-link {
  color: var(--text-color);
}

.navbar {
  margin: 0 auto;
  max-width: 109.5rem;
  padding: 0 0.75rem;
  height: 84px;
}

#navbarNav {
  height: 84px;
  padding: 0 0.75rem;
}

ul.navbar-nav {
  height: 84px;
  display: flex;
  align-items: center;
}

li.nav-item {
  height: 84px;
  display: flex;
  align-items: center;
}

a.nav-link {
  height: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

.nav-link:focus-visible {
  outline: 0;
  box-shadow: none!important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--primary-red) !important;
}



.dropdown-toggle::after {
  display: inherit;
  margin-left: inherit;
  vertical-align: inherit;
  content: "";
  border-top: inherit;
  border-right: inherit;
  border-bottom: inherit;
  border-left: inherit;
}

/* Border bottom hover effect for all nav links (including dropdown) */
.navbar-nav .nav-link::after, .navbar-nav .nav-link.dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: -0.1rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 3.5px;
  background-color: var(--primary-red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 999;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.dropdown-toggle:hover::after,
.navbar-nav .nav-link.dropdown-toggle:focus::after {
  transform: scaleX(1);
}

/* Remove default dropdown arrow for consistency */
/* .navbar-nav .nav-item.dropdown .dropdown-toggle::after {
  display: none !important;
} */

.dropdown-menu {
  background-color: var(--card-bg);
  border: 0.5px solid var(--border-color);
  border-radius: 4px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: dropdownFade 0.2s ease-in-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: var(--text-color);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(182, 30, 35, 0.1);
  color: var(--primary-red);
}

/* Desktop Submenu (Level 2) */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  border-radius: 4px;
  display: none; /* Garantir que o submenu comece escondido */
}

.dropdown-submenu:hover .dropdown-menu,
.dropdown-submenu .dropdown-menu.show {
  display: block; /* Mostrar submenu ao hover ou quando ativo */
  border-left: 3.5px solid var(--primary-red);
}

/* .dropdown-submenu .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  transition: transform 0.2s ease;
} */

.dropdown-submenu .dropdown-toggle.show::after {
  transform: rotate(90deg);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 1.2rem;
}

.header-transparent.scrolled .social-icons a {
  color: var(--text-color);
}

.social-icons a:hover {
  color: var(--primary-red);
  transform: scale(1.1);
}

/* Mobile Menu (Off-canvas) */
.offcanvas {
  background-color: var(--body-bg);
  color: var(--text-color);
  width: 300px;
  height: 100vh;
}

.offcanvas-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

.offcanvas-title {
  display: flex;
  align-items: center;
  color: var(--text-color);
  max-width: 320px;
  font-size: 1.1rem;
}

.mobile-menu-container {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.mobile-menu-level {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease-in-out;
  padding: 1rem 0;
  overflow-y: auto;
  background: var(--body-bg);
}

.mobile-menu-level.active {
  left: 0;
}

#menu-level-1 {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.mobile-menu-back {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--primary-red);
  padding: 0;
  margin-right: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-menu-back:hover {
  color: var(--dark-red);
}

.mobile-menu-back i {
  margin-right: 0.5rem;
}

.mobile-menu-title {
  margin: 0;
  font-weight: 700;
  color: var(--text-color);
}

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

.mobile-menu-item {
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: var(--primary-red);
  background-color: rgba(182, 30, 35, 0.1);
}

.mobile-menu-link i {
  color: var(--primary-red);
  transition: transform 0.2s ease;
}

.mobile-menu-item.has-submenu .mobile-menu-link i {
  transform: translateX(0);
}

.mobile-menu-item.has-submenu .mobile-menu-link:hover i {
  transform: translateX(5px);
}

.mobile-social-icons {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1.5rem;
}

.mobile-social-icons a {
  color: var(--text-color);
  font-size: 1.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-social-icons a:hover {
  color: var(--primary-red);
  transform: scale(1.1);
}

/* Carousel Banner */
.carousel-banner {
  position: relative;
  height: 100vh;
  max-height: 800px;
  overflow: hidden;
}

.carousel-banner .carousel-inner {
  border-radius: 0px;
}

.carousel-banner .carousel-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-banner .carousel-item {
  height: 100vh;
  max-height: 800px;
  position: relative;
}

.carousel-banner .carousel-item img,
.carousel-banner .carousel-item video {
  object-fit: cover;
  height: 100%;
  width: 100%;
  display: block;
}

.carousel-banner .cmp-gradient {
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.carousel-banner .cmp-gradient--left {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 70%
  );
}

.carousel-banner .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  left: 5%;
  right: auto;
  text-align: left;
  max-width: 500px;
  padding: 0;
  z-index: 2;
}

.carousel-banner .carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 300;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.carousel-banner .carousel-caption p {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-banner .carousel-caption .btn-primary {
  transition: background-color 0.3s ease;
}

.carousel-banner .carousel-caption .btn-primary:hover,
.carousel-banner .carousel-caption .btn-primary:focus {
  background-color: var(--dark-red);
  border-color: var(--dark-red);
}

/* Carousel Indicators */
.carousel-banner .carousel-indicators {
  bottom: 20px;
  margin-bottom: 0;
  z-index: 2;
}

.carousel-banner .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.carousel-banner .carousel-indicators .active {
  background-color: white;
}

/* Carousel Controls */
.carousel-banner .carousel-control-prev,
.carousel-banner .carousel-banner .carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.carousel-banner .carousel-control-prev:hover,
.carousel-banner .carousel-control-next:hover {
  opacity: 1;
}

.carousel-banner .carousel-control-prev-icon,
.carousel-banner .carousel-control-next-icon {
  width: 30px;
  height: 30px;
  background-size: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.banner-content-video {
  span.banner-subtitle {
    font-size: .9375rem;
    font-weight: 300;
    /* letter-spacing: .6em; */
    line-height: .75rem;
    text-transform: uppercase;
  }
  h1.banner-title {
    font-size: 3.75rem;
    font-weight: 300;
    line-height: 4.375rem;
  }
  p {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 1em;
    font-size: 1.4375rem;
    font-weight: 300;
    line-height: 2.25rem;

    img {
      margin-inline-end: .5rem;
      height: 1.2em!important;
      width: auto!important;
    }
  }
}

.banner-content-image {
  span.banner-subtitle {
    font-size: .9375rem;
    font-weight: 300;
    /* letter-spacing: .6em; */
    line-height: .75rem;
    text-transform: uppercase;
  }
  h1.banner-title {
    font-size: 3.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
  }
  p {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 1em;
    font-size: 1.4375rem;
    font-weight: 300;
    line-height: 2.25rem;

    img {
      margin-inline-end: .5rem;
      height: 1.2em!important;
      width: auto!important;
    }
  }
}

/* Responsive Adjustments for Banner */
@media (max-width: 991.98px) {
  .carousel-banner .carousel-banner,
  .carousel-banner .carousel-item {
    height: 70vh;
    max-height: 600px;
  }

  .carousel-banner .carousel-caption h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .carousel-banner .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-banner .carousel-caption .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-banner {
    height: 100% !important;
  }
  .carousel-banner .carousel-banner,
  .carousel-banner .carousel-item {
    height: 60vh;
    max-height: 500px;
  }

  .carousel-banner .carousel-caption {
    left: 5%;
    max-width: 90%;
  }

  .carousel-banner .carousel-caption h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .carousel-banner .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-banner .carousel-control-prev,
  .carousel-banner .carousel-control-next {
    display: none; /* Esconder setas em mobile para um design mais limpo */
  }
}

@media (max-width: 575.98px) {
  .carousel-banner {
    height: 100% !important;
  }
  .carousel-banner .carousel-banner,
  .carousel-banner .carousel-item {
    height: 50vh;
    max-height: 400px;
  }

  .carousel-banner .carousel-caption h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .carousel-banner .carousel-caption p {
    font-size: 0.8rem;
  }

  .carousel-banner .carousel-caption .btn-primary {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* Featured Cars */
.featured-cars {
  background-color: var(--body-bg);
  padding: 5rem 0;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 0;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.car-category {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--primary-red);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.card-text {
  color: var(--neutral-gray);
  margin-bottom: 1.25rem;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--dark-red);
  border-color: var(--dark-red);
}

.btn-outline-primary {
  color: var(--primary-red);
  border-color: var(--primary-red);
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-description);
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-red);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-description);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-description);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  color: var(--text-description);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary-red);
}

footer .copyright span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-red);
}

.iperform-development {
  span {
    color: var(--text-description);
  }
  a {
    color: var(--text-description);
  }
  a:hover {
    color: var(--text-color);
  }
}

[data-theme="dark"] .iperform-development a img {
  filter: invert(0);
}
[data-theme="light"] .iperform-development a img {
  filter: invert(1);
}

/* Featured Cars Section Styles */

/* Featured Cars Header */
.featured-cars-header {
  position: relative;
}

.featured-preview-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-preview-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.featured-preview-image:hover img {
  border-radius: 8px !important;
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-red);
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.featured-badge span:first-child {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.featured-badge span:last-child {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Car Cards - Updated with softer hover effects */
.car-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smoother easing */
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.car-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.car-card:hover {
  transform: translateY(-3px) scale(1.01); /* Subtler lift and slight scale */
  border-color: rgba(182, 30, 35, 0.2); /* Subtle CAR red tint to border */
}

.car-card:hover::after {
  opacity: 1;
}

.car-card:hover .car-card-body {
  background-color: rgba(
    28,
    105,
    212,
    0.02
  ); /* Very subtle red tint on hover */
}

.car-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1); /* Slower, smoother transition */
}

.car-card:hover .car-card-image img {
  transform: scale(1.03); /* Subtler zoom effect */
}

.car-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.5s ease;
  border-radius: 25px;
}

.card-badge-sold {
  background-color: var(--primary-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.5s ease;
  border-radius: 25px;
}

.car-card-badge.sold {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: auto;
  background-color: transparent;
  transition: background-color 0.5s ease;
  border-radius: 25px;
  .sold-root {
    position: relative;
    width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    svg {
      width: 100px;
      height: auto;
      g {
        fill: #d0ff00;
      }
    }
  }
}

.car-card:hover .car-card-badge {
  background-color: var(--dark-red); /* Subtle color shift */
}

.car-card:hover .car-card-badge.sold {
  background-color: transparent; /* Subtle color shift */
}

.car-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transition: background-color 0.5s ease;
}

.car-card-title {
  font-family: 'Fivo Sans Bold', sans-serif;
  font-size: 1.25rem;
  line-height: normal;
  margin-bottom: 1rem;
  transition: color 0.5s ease;
}

.car-card:hover .car-card-title {
  color: var(--primary-red); /* Title color change on hover */
}

/* Featured Preview Image - Updated with softer hover effects */
.featured-preview-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-preview-image img {
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1); /* Slower, smoother transition */
}

.featured-preview-image:hover {
  border-radius: 8px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.featured-preview-image:hover img {
  border-radius: 8px !important;
  transform: scale(1.03); /* Subtler zoom effect */
}

.featured-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-red);
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s ease, transform 0.5s ease;
}

.featured-preview-image:hover .featured-badge {
  background-color: var(--dark-red);
  transform: translateY(-3px); /* Subtle lift effect */
}

.car-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.car-features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
}

.car-features-list li i {
  color: var(--text-color);
  margin-right: 0.5rem;
  font-size: 1rem;
}

.car-card-price {
  font-family: 'Fivo Sans Bold', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--neutral-color);
  margin-bottom: 1rem;
  margin-top: auto;
}

.car-card-actions {
  display: flex;
  gap: 0.5rem;
}

.car-card-actions .btn {
  flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .featured-cars-header .section-title {
    font-size: 2rem;
  }

  .featured-preview-image {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .car-card-image {
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  .featured-badge {
    padding: 0.75rem;
  }

  .featured-badge span:first-child {
    font-size: 1.25rem;
  }

  .featured-badge span:last-child {
    font-size: 0.75rem;
  }
}

/* Scroll Animation Effects */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-delay-1 {
  transition-delay: 0.4s;
}

.fade-in-delay-2 {
  transition-delay: 0.6s;
}

.fade-in-delay-3 {
  transition-delay: 0.8s;
}

/* Parallax Showcase Section */
.parallax-showcase {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 5rem 0;
}

.parallax-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  will-change: transform;
}

.parallax-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
}

.parallax-text {
  color: var(--neutral-white)!important;
  will-change: transform;
}

.parallax-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.parallax-description {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.2;
  p {
    color: var(--neutral-white)!important;
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neutral-white);
  }
}

.parallax-price {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.parallax-price span {
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary-red);
}

.parallax-preview-container {
  position: relative;
  will-change: transform;
}

.parallax-preview-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transform: translateZ(0);
}

.parallax-badge {
  position: absolute;
  bottom: 10%;
  right: 5%;
  background-color: var(--primary-red);
  color: white;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

.parallax-badge span:first-child {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.parallax-badge span:last-child {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .parallax-showcase {
    height: auto;
    min-height: 700px;
  }

  .parallax-title {
    font-size: 2.5rem;
  }

  .parallax-description {
    font-size: 1.1rem;
  }

  .parallax-price {
    font-size: 1.25rem;
  }

  .parallax-price span {
    font-size: 1.5rem;
  }

  .parallax-badge {
    width: 100px;
    height: 100px;
    padding: 1rem;
  }

  .parallax-badge span:first-child {
    font-size: 1.5rem;
  }

  .parallax-badge span:last-child {
    font-size: 0.875rem;
  }
}

@media (max-width: 767.98px) {
  .parallax-showcase {
    min-height: 700px;
  }

  .parallax-text {
    text-align: center;
    margin-bottom: 2rem;
  }

  .parallax-description {
    max-width: 100%;
  }

  .parallax-badge {
    bottom: 5%;
    right: 5%;
  }
}

/* Vehicle Details Page Styles */

/* Hero Section */
.vehicle-hero {
  padding: 120px 0 80px;
  background-color: var(--body-bg);
}

/* Left Column - Gallery, Features, Description */
.vehicle-main-content {
  padding-right: 30px;
}

/* Vehicle Description */
.vehicle-description {
  color: var(--text-color);
  line-height: 1.8;
}

.vehicle-description p {
  margin-bottom: 1.25rem;
}

/* Features Tabs */
.feature-tabs {
  border-bottom: 1px solid var(--border-color);
}

.feature-tabs .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  transition: all 0.3s ease;
}

.feature-tabs .nav-link:hover {
  color: var(--primary-red);
}

.feature-tabs .nav-link.active {
  color: var(--primary-red);
  background: transparent;
  border-bottom: 3px solid var(--primary-red);
}

.feature-tab-content {
  padding: 2rem 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-list li i {
  color: var(--primary-red);
  margin-right: 0.75rem;
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}

/* Right Column - Sidebar */
.vehicle-sidebar {
  position: relative;
}

.vehicle-info-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2rem;
  position: sticky;
  top: 100px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.vehicle-title {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: var(--text-color-dark);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vehicle-subtitle {
  font-size: 1.15rem;
  color: var(--text-color-dark);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.vehicle-price {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.price-label {
  display: block;
  font-size: 0.875rem;
  color: var(--neutral-gray);
  margin-bottom: 0.25rem;
}

.price-amount {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neutral-white);
  margin-bottom: 0.5rem;
}

.vehicle-price .price-amount {
  color: var(--text-color);
}

.price-note {
  display: block;
  font-size: 0.75rem;
  color: var(--neutral-gray);
  font-style: italic;
}

.vehicle-highlights {
  margin-bottom: 2rem;
}

.highlights-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-list li {
  display: flex;
  margin-bottom: 1.5rem;
}

.highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(182, 30, 35, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.highlight-icon i {
  color: var(--primary-red);
  font-size: 1.25rem;
}

.highlight-content h4 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.highlight-content p {
  font-size: 0.875rem;
  color: var(--neutral-gray);
  margin-bottom: 0;
  line-height: 1.5;
}

.vehicle-cta {
  margin-bottom: 1.5rem;
}

.vehicle-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vehicle-links a {
  color: var(--text-color);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.vehicle-links a i {
  margin-right: 0.5rem;
  color: var(--primary-red);
}

.vehicle-links a:hover {
  color: var(--primary-red);
}

/* JavaScript for Gallery Thumbnails */
@media (max-width: 991.98px) {
  .vehicle-main-content {
    padding-right: 15px;
    margin-bottom: 3rem;
  }

  .vehicle-info-card {
    position: static;
  }

  .vehicle-title {
    font-size: 2rem;
  }

  .price-amount {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .vehicle-hero {
    padding: 100px 0 60px;
  }

  .feature-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .feature-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .feature-tabs .nav-item {
    flex-shrink: 0;
  }
}

/* Enhanced Vehicle Gallery Styles */

/* Gallery Container */
.vehicle-gallery {
  position: relative;
  margin-bottom: 2.5rem;
  background-color: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Main Carousel */
.vehicle-carousel {
  position: relative;
}

.carousel-inner {
  border-radius: 6px 6px 0 0;
}

.gallery-image-container {
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}

.gallery-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.carousel-item:hover .gallery-image-container img {
  transform: scale(1.02);
}

/* Video Container */
.gallery-video-container {
  width: 100%;
  background-color: #000;
}

.video-item .ratio {
  margin-bottom: 0;
}

/* Thumbnails Navigation */
.gallery-thumbnails {
  position: relative;
  padding: 15px 50px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 6px 6px;
}

.thumbnails-container {
  display: flex;
  gap: 10px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.thumbnails-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome, Safari and Opera */
}

.thumbnail {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.thumbnail:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--primary-red);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Thumbnail */
.video-thumbnail {
  position: relative;
}

.video-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.video-icon i {
  color: white;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.video-thumbnail:hover .video-icon {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Thumbnail Navigation Buttons */
.thumbnail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnail-nav:hover {
  background-color: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

.prev-thumb {
  left: 10px;
}

.next-thumb {
  right: 10px;
}

/* Keyboard Navigation Hint */
/* .gallery-keyboard-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gallery-keyboard-hint:hover {
  opacity: 1;
} */

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .gallery-image-container {
    padding-bottom: 66.67%; /* 3:2 aspect ratio for medium screens */
  }

  .thumbnail {
    width: 70px;
    height: 52px;
  }
}

@media (max-width: 767.98px) {
  .gallery-thumbnails {
    padding: 10px 40px;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }

  .thumbnails-container {
    gap: 8px;
  }

  .thumbnail-nav {
    width: 28px;
    height: 28px;
  }

  .gallery-keyboard-hint {
    display: none; /* Hide keyboard hint on mobile */
  }
}

@media (max-width: 575.98px) {
  .gallery-image-container {
    padding-bottom: 75%; /* 4:3 aspect ratio for small screens */
  }

  .thumbnail {
    width: 50px;
    height: 38px;
  }

  .thumbnails-container {
    gap: 6px;
  }
}

.highlight-icon svg {
  fill: var(--primary-red);
  stroke: #1c69d4;
  width: 25px;
}

.tag-list {
  margin: 0px;
  list-style: none;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 15px;
  font-size: 1.3rem;
}

/* Vehicle Features Styling */

.vehicle-features {
  background-color: var(--body-bg);
  position: relative;
}

/* Accordion Styling for All Devices */
.feature-accordion-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.feature-accordion-wrapper .accordion-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.feature-accordion-wrapper .accordion-item:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.feature-accordion-wrapper .accordion-button {
  background-color: var(--card-bg);
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 20px 25px;
  box-shadow: none;
  transition: all 0.3s ease;
}

.feature-accordion-wrapper .accordion-button:not(.collapsed) {
  background: linear-gradient(to right, var(--primary-red), var(--light-red), var(--primary-red));
  color: white;
}

.feature-accordion-wrapper .accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-red);
}

.feature-accordion-wrapper .accordion-button::after {
  background-size: 18px;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.feature-count {
  background-color: rgba(182, 30, 35, 0.2);
  color: var(--primary-red);
  line-height: normal;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.feature-accordion-wrapper .accordion-button:not(.collapsed) .feature-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.accordion-body {
  padding: 25px 30px;
  background-color: var(--card-bg);
}

.category-description {
  color: var(--neutral-gray);
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 25px;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.feature-list li:hover {
  transform: translateX(3px);
}

.feature-icon {
  color: var(--primary-red);
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.feature-text {
  flex: 1;
  line-height: 1.5;
}

/* No Features Message */
.no-features-message {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px 20px;
  color: var(--neutral-gray);
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.accordion-collapse.show {
  animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Adjustments */
@media (min-width: 992px) {
  .feature-accordion-wrapper .accordion-button {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .accordion-body {
    padding: 20px 25px;
  }

  .feature-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .accordion-body {
    padding: 20px;
  }

  .feature-list li {
    margin-bottom: 14px;
  }

  .feature-accordion-wrapper .accordion-button {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .feature-count {
    padding: 2px 8px;
    font-size: 0.75rem;
  }

  .category-description {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
}

/* Vehicle Hero Section Styling */

.vehicle-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  max-height: 900px;
  color: #fff;
  overflow: hidden;
}

/* Background Media and Overlay */
.vehicle-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Image Background */
.vehicle-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.vehicle-hero:hover .vehicle-hero-img {
  transform: scale(1.03);
}

/* Video Background */
.vehicle-hero-video-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.vehicle-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Common Overlay */
.vehicle-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

/* Video Controls */
.video-control-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.video-control-button:hover {
  background-color: rgba(182, 30, 35, 0.8);
}

.video-control-button i {
  font-size: 1.2rem;
}

#play-icon {
  display: none;
}

.video-control-button[data-state="paused"] #play-icon {
  display: block;
}

.video-control-button[data-state="paused"] #pause-icon {
  display: none;
}

/* Content Container */
.vehicle-hero-content {
  position: relative;
  z-index: 3;
  padding-top: 80px; /* Account for transparent header */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 80px;
}

/* Breadcrumb Styling */
.vehicle-breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  font-size: 0.9rem;
  font-weight: 400;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #fff;
}

.breadcrumb-item.active {
  color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Vehicle Title Styling */
.vehicle-title-wrapper {
  margin-bottom: 10px;
}

.vehicle-badge {
  display: inline-block;
  background-color: var(--primary-red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* .vehicle-title {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
} */

.vehicle-subtitle {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 0;
  max-width: 700px;
  opacity: 0.9;
}

/* Price Information */
.vehicle-price-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.vehicle-price-wrapper {
  display: flex;
  flex-direction: column;
}

.vehicle-price-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.vehicle-price-label {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.vehicle-price {
  font-size: 2.2rem;
  font-weight: 700;
}

.vehicle-monthly-payment {
  margin-top: 5px;
}

.monthly-payment-amount {
  font-size: 1.2rem;
  font-weight: 600;
}

.monthly-payment-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* CTA Buttons */
.vehicle-cta-buttons {
  display: flex;
  gap: 15px;
}

.vehicle-cta-buttons .btn {
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-primary:hover {
  background-color: var(--dark-red);
  border-color: var(--dark-red);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Key Specifications */
.vehicle-key-specs {
  display: flex;
  gap: 40px;
  margin-top: auto;
}

.key-spec-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.key-spec-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.key-spec-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-text {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

.scroll-indicator i {
  font-size: 1.2rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .vehicle-hero {
    height: auto;
    min-height: 650px;
  }

  .vehicle-hero-content {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .vehicle-title {
    font-size: 2.8rem;
  }

  .vehicle-subtitle {
    font-size: 1.2rem;
  }

  .vehicle-price-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .vehicle-key-specs {
    flex-wrap: wrap;
    gap: 25px 40px;
  }

  .video-control-button {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 767.98px) {
  .vehicle-hero-content {
    padding-top: 80px;
  }

  .vehicle-title {
    font-size: 2.2rem;
  }

  .vehicle-subtitle {
    font-size: 1.1rem;
  }

  .vehicle-price {
    font-size: 1.8rem;
  }

  .vehicle-cta-buttons {
    width: 100%;
  }

  .vehicle-cta-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .vehicle-hero {
    min-height: 550px;
  }

  .breadcrumb-item {
    font-size: 0.8rem;
  }

  .vehicle-title-wrapper {
    margin-bottom: 20px;
  }

  .vehicle-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .vehicle-key-specs {
    gap: 20px;
  }

  .key-spec-value {
    font-size: 1.5rem;
  }

  .key-spec-label {
    font-size: 0.8rem;
  }

  .video-control-button {
    width: 36px;
    height: 36px;
    bottom: 15px;
    right: 15px;
  }
}

/* Highlighted Features Styling */

.highlighted-features {
  background-color: var(--body-bg);
  position: relative;
}

/* Section Header */
.highlighted-features .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.highlighted-features .section-subtitle {
  font-size: 1.1rem;
  color: var(--neutral-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Features Grid */
.highlighted-features .highlighted-features-grid {
  position: relative;
}

/* Feature Card */
.highlighted-features .feature-card {
  display: flex;
  align-items: flex-start;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  height: 100%;
  transition: all 0.3s ease;
}

.highlighted-features .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-red);
}

/* Feature Icon */
.highlighted-features .feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(182, 30, 35, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--primary-red);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.highlighted-features .feature-card:hover .feature-icon {
  background-color: var(--primary-red);
  color: white;
}

/* Feature Content */
.highlighted-features .feature-content {
  flex: 1;
}

.highlighted-features .feature-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.highlighted-features .feature-value {
  font-size: 1rem;
  color: var(--neutral-gray);
  margin-bottom: 0;
  line-height: 1.5;
}

/* No Features Message */
.highlighted-features .no-features-message {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  color: var(--neutral-gray);
}

/* CTA Button */
.highlighted-features .features-cta .btn {
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.highlighted-features .features-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(182, 30, 35, 0.3);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlighted-features .feature-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

/* Staggered animation for cards */
.row-cols-1 .col:nth-child(1) .feature-card {
  animation-delay: 0.1s;
}
.row-cols-1 .col:nth-child(2) .feature-card {
  animation-delay: 0.2s;
}
.row-cols-1 .col:nth-child(3) .feature-card {
  animation-delay: 0.3s;
}
.row-cols-1 .col:nth-child(4) .feature-card {
  animation-delay: 0.4s;
}
.row-cols-1 .col:nth-child(5) .feature-card {
  animation-delay: 0.5s;
}
.row-cols-1 .col:nth-child(6) .feature-card {
  animation-delay: 0.6s;
}
.row-cols-1 .col:nth-child(7) .feature-card {
  animation-delay: 0.7s;
}
.row-cols-1 .col:nth-child(8) .feature-card {
  animation-delay: 0.8s;
}
.row-cols-1 .col:nth-child(9) .feature-card {
  animation-delay: 0.9s;
}

/* Responsive Adjustments */
@media (min-width: 992px) {
  .highlighted-features .feature-card {
    padding: 30px;
  }

  .highlighted-features .feature-label {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .highlighted-features .section-title {
    font-size: 1.8rem;
  }

  .highlighted-features .feature-card {
    padding: 20px;
  }

  .highlighted-features .feature-icon {
    width: 36px;
    height: 36px;
    margin-right: 15px;
  }

  .highlighted-features .feature-label {
    font-size: 1rem;
  }
}

/* Dark Mode Specific Adjustments */
[data-theme="dark"] .highlighted-features .feature-icon {
  background-color: rgba(182, 30, 35, 0.2);
}

[data-theme="dark"] .highlighted-features .feature-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Premium Highlighted Features - Ultra Modern CAR Style */

.premium-features {
  padding: 40px 0;
  background-color: var(--body-bg);
  position: relative;
}

/* Header Styling */
.premium-features-header {
  text-align: center;
  margin-bottom: 60px;
}

.premium-features-title {
  font-size: 2.1rem;
  font-weight: 300; /* Lighter weight for modern feel */
  color: var(--text-color);
  margin-bottom: 16px;
  letter-spacing: -0.5px; /* Tighter letter spacing for premium look */
}

.premium-features-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--neutral-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Features Grid */
.premium-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 15px;
  margin: 0 auto;
  max-width: 1200px;
}

/* Feature Item */
.premium-feature-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background-color: var(--card-bg);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Premium easing */
  position: relative;
  overflow: hidden;
}

/* Subtle hover effect */
.premium-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Subtle background accent on hover */
/* .premium-feature-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary-red);
  transition: height 0.3s ease;
}

.premium-feature-item:hover::after {
  height: 100%;
} */

/* Check Icon */
.premium-feature-check {
  font-size: 2rem;
  margin-right: 20px;
  margin-top: -10px;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.premium-feature-item:hover .premium-feature-check {
  transform: scale(1.1);
  opacity: 1;
}

/* Feature Content */
.premium-feature-content {
  flex: 1;
}

.premium-feature-label {
  line-height: normal;
  font-size: 1.1rem;
  font-weight: 400; /* Medium weight for clarity */
  color: var(--text-color);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.premium-feature-item:hover .premium-feature-label {
  color: var(--primary-red);
}

.premium-feature-value {
  font-size: 0.95rem;
  font-weight: 300; /* Light weight for modern feel */
  color: var(--neutral-gray);
  margin: 0;
  line-height: 1.6;
}

/* Empty State */
.premium-features-empty {
  text-align: center;
  padding: 40px;
  color: var(--neutral-gray);
  font-weight: 300;
  font-size: 1.1rem;
}

/* Dark Mode Refinements */
[data-theme="dark"] .premium-feature-item {
  background-color: rgba(30, 30, 30, 0.7); /* Slightly transparent for depth */
  backdrop-filter: blur(10px); /* Subtle glass effect */
}

[data-theme="dark"] .premium-feature-item:hover {
  background-color: rgba(35, 35, 35, 0.9);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (min-width: 1200px) {
  .premium-features-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Force 3 columns on large screens */
  }
}

@media (max-width: 991px) {
  .premium-features {
    padding: 60px 0;
  }

  .premium-features-title {
    font-size: 2.2rem;
  }

  .premium-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
  }

  .premium-feature-item {
    padding: 15px;
  }
}

@media (max-width: 767px) {
  .premium-features {
    padding: 50px 0;
  }

  .premium-features-header {
    margin-bottom: 40px;
  }

  .premium-features-title {
    font-size: 1.5rem;
  }

  .premium-features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }

  .premium-feature-item {
    padding: 15px;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* CAR Contact Page Styling */

/* Contact Hero Section */
.contact-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 500px;
  color: #fff;
  overflow: hidden;
}

.contact-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contact-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Breadcrumb Styling */
.contact-breadcrumb {
  margin-bottom: 20px;
}

/* Page Title */
.contact-title {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0;
  max-width: 700px;
  opacity: 0.9;
  color: var(--neutral-white);
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background-color: var(--body-bg);
}

.map-info {
  height: 100%;
  padding: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dealership-address {
  margin-top: 20px;
}

.dealership-address h3 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 15px;
}

.dealership-address address {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.dealership-hours h4 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 15px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.day {
  font-weight: 400;
}

.time {
  color: var(--neutral-gray);
}

.map-container {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.google-map {
  height: 100%;
  min-height: 450px;
}

.google-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Departments Section */
.contact-departments {
  padding: 80px 0;
  background-color: var(--body-bg);
  position: relative;
}

.contact-departments::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
}

.departments-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.department-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-red);
}

.department-header {
  display: flex;
  align-items: center;
  padding: 25px 30px;
  background-color: rgba(182, 30, 35, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.department-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background-color: rgba(182, 30, 35, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  font-size: 1.8rem;
  margin-right: 20px;
  transition: all 0.3s ease;
}

.department-card:hover .department-icon {
  background-color: var(--primary-red);
  color: white;
}

.department-title-container {
  flex: 1;
}

.department-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 5px;
}

.department-tagline {
  font-size: 0.95rem;
  color: var(--neutral-gray);
  margin: 0;
}

.department-content {
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.department-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.department-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--primary-red);
  font-size: 1.1rem;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.contact-item a:hover {
  color: var(--primary-red);
}

.department-hours {
  border-left: 3px solid var(--primary-red);
  padding-left: 20px;
}

.department-hours h4 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 15px;
}

.hours-grid {
  display: grid;
  gap: 10px;
}

.department-action {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.department-description {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.department-action .btn {
  align-self: flex-start;
  padding: 10px 25px;
  font-weight: 400;
  border-width: 2px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .contact-departments {
    padding: 60px 0;
  }

  .department-header {
    padding: 20px 25px;
  }

  .department-content {
    padding: 25px;
  }
}

@media (max-width: 767.98px) {
  .contact-departments {
    padding: 50px 0;
  }

  .department-header {
    padding: 20px;
  }

  .department-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-right: 15px;
  }

  .department-title {
    font-size: 1.3rem;
  }

  .department-content {
    padding: 20px;
    flex-direction: column;
  }

  .department-info,
  .department-action {
    min-width: 100%;
  }

  .hours-item {
    flex-direction: column;
    gap: 5px;
  }

  .time {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .department-header {
    flex-direction: column;
    text-align: center;
  }

  .department-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .department-action .btn {
    align-self: center;
    width: 100%;
  }
}

/* Contact Form Section */
.contact-form-section {
  padding: 80px 0;
  background-color: var(--body-bg);
  position: relative;
}

.contact-form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
}

.contact-form-container {
  padding: 50px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-label {
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  padding: 12px 15px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--body-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.25rem rgba(182, 30, 35, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.form-check-label {
  font-size: 0.9rem;
}

.form-check-label a {
  color: var(--primary-red);
  text-decoration: none;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.btn-outline-primary:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .contact-hero {
    height: 40vh;
  }

  .contact-title {
    font-size: 2.8rem;
  }

  .contact-subtitle {
    font-size: 1.2rem;
  }

  .map-section {
    padding: 60px 0;
  }

  .map-info {
    margin-bottom: 30px;
  }

  .contact-departments,
  .contact-form-section {
    padding: 60px 0;
  }

  .contact-form-container {
    padding: 40px 30px;
  }
}

@media (max-width: 767.98px) {
  .contact-hero {
    height: auto;
    min-height: 300px;
  }

  .contact-hero-content {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .contact-title {
    font-size: 2.2rem;
  }

  .contact-subtitle {
    font-size: 1.1rem;
  }

  .map-section,
  .contact-departments,
  .contact-form-section {
    padding: 50px 0;
  }

  .department-card {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .contact-form-container {
    padding: 30px 20px;
  }
}

/* Dark Mode Refinements */
[data-theme="dark"] .map-info,
[data-theme="dark"] .department-card,
[data-theme="dark"] .contact-form-container {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .department-icon {
  background-color: rgba(182, 30, 35, 0.2);
}

/* Contact Departments Section */
.contact-departments {
  padding: 80px 0;
  background-color: var(--body-bg);
  position: relative;
}

.contact-departments::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
}

.departments-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.department-card {
  background-color: var(--card-bg);
  overflow: hidden;
  box-shadow: none;
}

.department-content {
  display: flex;
  flex-wrap: wrap;
}

.department-info {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.department-media {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
}

.department-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.department-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 0;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 15px;
}

.department-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-red);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-phone,
.contact-email {
  display: flex;
  flex-direction: column;
}

.contact-phone a,
.contact-email a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--neutral-gray);
  margin-top: 4px;
}

/* Modern Hours Section */
.department-hours {
  margin: 10px 0;
}

.department-hours h4 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--neutral-gray);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hours-grid {
  display: grid;
  gap: 0;
}

.hours-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.day {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  display: flex;
  align-items: center;
}

.day::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary-red);
  border-radius: 50%;
  margin-right: 12px;
  opacity: 0.7;
}

.time {
  color: var(--text-color);
  font-weight: 400;
  text-align: right;
  letter-spacing: 0.5px;
}

.time.closed {
  color: #d32f2f;
}

.department-action {
  margin-top: auto;
}

.department-description {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 25px;
  line-height: 1.6;
}

.department-action .btn {
  padding: 12px 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.btn-outline-primary {
  color: var(--primary-red);
  border-color: var(--primary-red);
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-red);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .contact-departments {
    padding: 60px 0;
  }

  .department-info {
    padding: 30px;
  }

  .department-media {
    min-height: 350px;
  }
}

@media (max-width: 767.98px) {
  .contact-departments {
    padding: 50px 0;
  }

  .department-title {
    font-size: 1.5rem;
  }

  .department-info {
    padding: 25px;
    min-width: 100%;
  }

  .department-media {
    min-width: 100%;
    min-height: 250px;
  }

  .hours-item {
    padding: 10px 0;
    align-items: start;
  }

  .time {
    letter-spacing: normal;
  }
}

@media (max-width: 575.98px) {
  .department-info {
    padding: 20px;
  }

  .department-title {
    font-size: 1.4rem;
  }

  .department-action .btn {
    width: 100%;
    text-align: center;
  }

  .department-media {
    min-height: 200px;
  }

  .hours-item {
    padding: 10px 0;
    align-items: start;
  }

  .time {
    letter-spacing: normal;
  }
}

[data-theme="dark"] .hours-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}


/* Action Bar */
.action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  max-width: 79.6875rem;
  padding-left: 12.5px;
  padding-right: 12.5px;
}

.action-bar .action-root {
  padding-bottom: 1.875rem;
  width: 100%;
}

.action-bar .action-root .action-bar-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  background-color: var(--border-color);
  color: var(--text-color);
  margin: 0 0 15px 0;
  padding: 0 20px;
  height: 100%;
  transition: 500ms ease-in-out;
}

.action-bar .action-root .action-bar-item:hover {
  background-color: var(--footer-bg);
}

.action-bar .action-root .action-bar-item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  flex-direction: column;
  text-align: center;
  height: 100%;
  width: 100%;
}

.action-bar .action-root .action-bar-item a span {
  font-size: 61px;
  color: var(--text-color);
}

.action-bar .action-root .action-bar-item a .action-bar-text {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  flex-grow: unset;
}

@media only screen and (min-width: 521px) {
  .action-bar {
    padding-left: 37.5px;
    padding-right: 37.5px;
  }
}

@media only screen and (max-width: 767px) {
  .action-bar .action-root .action-bar-item a .action-bar-text {
    flex-grow: 1;
  }

  .action-bar .action-root {
    flex-direction: column;
  }

  .action-bar .action-root .action-bar-item {
    background-color: var(--footer-bg);
    color: var(--text-color);
    margin: 0 0 15px 0;
    padding: 0 20px;
    height: 75px;
    width: 100%;
  }

  .action-bar .action-root .action-bar-item a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    height: 100%;
    width: 100%;
  }
}

/* Dark Mode Refinements */
[data-theme="dark"] .action-bar-item {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* CAR */
span.iper-car-info-icon:after {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20transform%3D%22translate(7%2C%203.5)%22%20fill%3D%22%23262626%22%3E%3Cpath%20d%3D%22M0%2C9.09090909%20L1.81818182%2C9.09090909%20L1.81818182%2C3.53535354%20L0%2C3.53535354%20L0%2C9.09090909%20Z%20M0%2C1.81818182%20L1.81818182%2C1.81818182%20L1.81818182%2C0%20L0%2C0%20L0%2C1.81818182%20Z%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 16px;
  background-position: center;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 12px 0 #262626;
  border: 1px solid transparent;
}

body[data-wcag-aa] span.iper-car-info-icon:after {
  border-width: 2px;
}

.iper-car-icon--info-i-white:active:before,
.iper-car-icon--info-i-white:focus:before,
.iper-car-icon--info-i-white:hover:before {
  border: 1px solid transparent;
}

.iper-car-icon--info-i-white::before {
  background-size: 16px;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2216px%22%20height%3D%2216px%22%20viewBox%3D%220%200%2016%2016%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20transform%3D%22translate(7%2C%203.5)%22%20fill%3D%22%23262626%22%3E%3Cpath%20d%3D%22M0%2C9.09090909%20L1.81818182%2C9.09090909%20L1.81818182%2C3.53535354%20L0%2C3.53535354%20L0%2C9.09090909%20Z%20M0%2C1.81818182%20L1.81818182%2C1.81818182%20L1.81818182%2C0%20L0%2C0%20L0%2C1.81818182%20Z%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-position: center;
  background-color: #fff;
  border-radius: 50%;
  border: 1px solid #262626;
}

body[data-wcag-aa] .iper-car-icon--info-i-white::before {
  border-width: 2px;
}

.iper-car-icon--filter-toggle:before {
  content: " ";
  position: absolute;
  right: 0;
  height: 50px;
  width: 50px;
  background-size: 20px;
  background-position: center;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.iper-car-icon__filter:before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 50px;
  background-size: 20px;
  background-position: center;
  opacity: 0.7;
}

.iper-car-icon__filter:hover:before {
  opacity: 1;
}

[class*=" icon-"],
[class^="icon-"] {
  font-family: BMW_iconFont !important;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-feature-settings: normal;
  font-variant: normal;
  line-height: 1;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-geolocation::before {
  content: "\e95d";
}

.icon-data-sheet-download::before {
  content: "\e952";
}

.icon-need-analyzer::before {
  content: "\e953";
}

.icon-pre-owned-search::before {
  content: "\e954";
}

.icon-request-for-accessories::before {
  content: "\e955";
}

.icon-request-for-information::before {
  content: "\e956";
}

.icon-request-for-service-appointment::before {
  content: "\e957";
}

.icon-request-for-contact::before {
  content: "\e94b";
}

.icon-request-for-offer::before {
  content: "\e94c";
}

.icon-service-package-finder::before {
  content: "\e958";
}

.icon-stock-car-locator::before {
  content: "\e959";
}

.icon-accessory-configurator::before {
  content: "\e93c";
}

.icon-accessory-shop::before {
  content: "\e95a";
}

.icon-shopping-cart::before {
  content: "\e93e";
}

.icon-shopping-reservation-b:before {
  content: "\e973";
}

.icon-shopping-reservation:before {
  content: "\e974";
}

.icon-accessory-showroom::before {
  content: "\e93f";
}

.icon-business-calculator::before,
.icon-business-drive-calculator::before {
  content: "\e940";
}

.icon-configurator::before {
  content: "\e941";
}

.icon-connected-drive-store::before {
  content: "\e942";
}

.icon-dealer-locator::before {
  content: "\e943";
}

.icon-electrical-parts-catalogue::before {
  content: "\e944";
}

.icon-insurance-calculator::before {
  content: "\e945";
}

.icon-my-notepad::before {
  content: "\e946";
}

.icon-online-appointment-scheduling::before {
  content: "\e947";
}

.icon-online-manual-car::before {
  content: "\e948";
}

.icon-price-list::before {
  content: "\e949";
}

.icon-private-leasing-calculator::before {
  content: "\e94a";
}

.icon-search2::before {
  content: "\e94d";
}

.icon-software-update::before {
  content: "\e94e";
}

.icon-stay-informed::before {
  content: "\e94f";
}

.icon-test-drive-appointment::before {
  content: "\e950";
}

.icon-user::before {
  content: "\e951";
}

.icon-close-roof2::before {
  content: "\e933";
}

.icon-open-roof2::before {
  content: "\e934";
}

.icon-youtube::before {
  content: "\e939";
}

.icon-facebook::before {
  content: "\e93d";
}

.icon-instagram::before {
  content: "\e937";
}

.icon-twitter::before {
  content: "\e938";
}

.icon-grid-view::before {
  content: "\e93a";
}

.icon-360::before {
  content: "\e93b";
}

.icon-close-roof::before {
  content: "\e935";
}

.icon-open-roof::before {
  content: "\e936";
}

.icon-arrow-m-right::before {
  content: "\e90c";
}

.icon-arrow-m-left::before,
.icon-arrow_m_left::before {
  content: "\e90d";
}

.icon-arrow-m-down::before,
.icon-arrow_m_down::before {
  content: "\e90e";
}

.icon-arrow-m-top::before,
.icon-arrow_m_top::before {
  content: "\e90f";
}

.icon-checkmark::before {
  content: "\e909";
}

.icon-close-x::before,
.icon-close_x::before {
  content: "\e90a";
}

.icon-info-i::before,
.icon-info_i::before {
  content: "\e90b";
}

.icon-data-collect2::before,
.icon-data_collect2::before {
  content: "\e910";
}

.icon-change-data2::before,
.icon-change_data2::before {
  content: "\e911";
}

.icon-contact-rights2::before,
.icon-contact_rights2::before {
  content: "\e912";
}

.icon-data-security2::before,
.icon-data_security2::before {
  content: "\e913";
}

.icon-data-usage2::before,
.icon-data_usage2::before {
  content: "\e914";
}

.icon-how-we-collect2::before,
.icon-how_we_collect2::before {
  content: "\e915";
}

.icon-keep-info2::before,
.icon-keep_info2::before {
  content: "\e916";
}

.icon-share-data2::before,
.icon-share_data2::before {
  content: "\e917";
}

.icon-what-companies2::before,
.icon-what_companies2::before {
  content: "\e918";
}

.icon-global_hint::before {
  content: "\e95b";
}

.icon-finance-lease-2::before,
.icon-finance_lease_2::before {
  content: "\e919";
}

.icon-finance-lease::before,
.icon-finance_lease::before {
  content: "\e91a";
}

.icon-individual::before {
  content: "\e91b";
}

.icon-location::before {
  content: "\e91c";
}

.icon-mycar::before {
  content: "\e91d";
}

.icon-need-analyzer::before,
.icon-needanalyzer::before {
  content: "\e91e";
}

.icon-offers::before {
  content: "\e91f";
}

.icon-pre-owned-search::before,
.icon-preownedsearch::before {
  content: "\e920";
}

.icon-shop::before {
  content: "\e921";
}

.icon-techhub::before {
  content: "\e922";
}

.icon-technologies::before {
  content: "\e923";
}

.icon-teilekatalog::before {
  content: "\e924";
}

.icon-contact::before {
  content: "\e925";
}

.icon-connected-drive::before,
.icon-connected_drive::before {
  content: "\e926";
}

.icon-configurator2::before {
  content: "\e927";
}

.icon-calender::before {
  content: "\e928";
}

.icon-configurator-2::before {
  content: "\e929";
}

.icon-search::before {
  content: "\e930";
}

.icon-arrow-down::before {
  content: "\e92a";
}

.icon-arrow-left::before {
  content: "\e92b";
}

.icon-arrow-right::before {
  content: "\e92c";
}

.icon-arrow-up::before {
  content: "\e92d";
}

.icon-drag-icon::before,
.icon-drag_icon::before {
  content: "\e92e";
}

.icon-profile::before {
  content: "\e92f";
}

.icon-shopping-bag::before,
.icon-shopping_bag::before {
  content: "\e931";
}

.icon-burger-menu::before,
.icon-burger_menu::before {
  content: "\e932";
}

.icon-data-collect::before,
.icon-data_collect::before {
  content: "\e908";
}

.icon-change-data::before,
.icon-change_data::before {
  content: "\e900";
}

.icon-contact-rights::before,
.icon-contact_rights::before {
  content: "\e901";
}

.icon-data-security::before,
.icon-data_security::before {
  content: "\e902";
}

.icon-data-usage::before,
.icon-data_usage::before {
  content: "\e903";
}

.icon-how-we-collect::before,
.icon-how_we_collect::before {
  content: "\e904";
}

.icon-keep-info::before,
.icon-keep_info::before {
  content: "\e905";
}

.icon-share-data::before,
.icon-share_data::before {
  content: "\e906";
}

.icon-what-companies::before,
.icon-what_companies::before {
  content: "\e907";
}

.icon-filter::before {
  content: "\e95c";
}

.icon-dealers::before {
  content: "\e95e";
}

.icon-layer-indicator::before {
  content: "\e95f";
}

.icon-charge::before {
  content: "\e960";
}

.icon-charging-station::before {
  content: "\e961";
}

.icon-fuel::before {
  content: "\e962";
}

.icon-fuel-station::before {
  content: "\e963";
}

.icon-app::before {
  content: "\e964";
}

.icon-checkmark-dashed::before {
  content: "\e965";
}

.icon-car_ecom_shopping-cart::before {
  content: "\e966";
}

.icon-car_label_car-compare::before {
  content: "\e967";
}

.icon-car_actions_delete::before {
  content: "\e968";
}

.icon-car_media_explore::before,
.icon-media-explore::before {
  content: "\e969";
}

.icon-car_media_list::before,
.icon-media-list::before {
  content: "\e96a";
}

.icon-car_media_heart_def_b::before,
.icon-heart-filled::before {
  content: "\e96b";
}

.icon-car_media_heart_b::before,
.icon-heart-outline::before {
  content: "\e96c";
}

.icon-maximize::before {
  content: "\e970";
}

.icon-fuel-type-bev::before {
  content: "\e96d";
}

.icon-fuel-type-phev::before {
  content: "\e96e";
}

.icon-iper-car-model-touring:before {
  content: "\e975";
}

.icon-iper-car-model-sedan:before {
  content: "\e976";
}

.icon-iper-car-model-sav:before {
  content: "\e977";
}

.icon-iper-car-model-sac:before {
  content: "\e978";
}

.icon-iper-car-model-roadster:before {
  content: "\e979";
}

.icon-iper-car-model-mpv:before {
  content: "\e97a";
}

.icon-iper-car-model-gt:before {
  content: "\e97b";
}

.icon-iper-car-model-gran-coupe:before {
  content: "\e97c";
}

.icon-iper-car-model-coupe:before {
  content: "\e97d";
}

.icon-iper-car-model-convertible:before {
  content: "\e97e";
}

.icon-iper-car-model-compact:before {
  content: "\e97f";
}

.icon-faq:before {
  content: "\e981";
}

.my-car {
  position: fixed;
  bottom: 88px;
  right: 26px;
  z-index: 99999;
}

.my-car svg {
  width: 100px;
  height: auto;
}

[data-theme="dark"] #my_car_logo {
  .line_dark {
    fill: #ffffff;
  }
}

/* CAR Preloader Styles - Beautiful animations with reliable display */

/* Preloader Container */
/* Dark mode support */
.car-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--neutral-white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s var(--animation-timing),
    visibility 0.8s var(--animation-timing);
}

[data-theme="dark"] .car-preloader{
  background-color: var(--neutral-black);
}

.car-preloader.loaded {
  opacity: 0;
  visibility: hidden;
}


/* Preloader Content */
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* CAR Logo Container */
.car-logo-container {
  width: 120px;
  height: 120px;
  position: relative;
  animation: logoFloat 3s var(--animation-timing) infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* CAR Logo SVG */
.car-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Logo Elements */
.logo-outer-circle {
  stroke: var(--neutral-black);
  fill: none;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  animation: drawCircle 2s var(--animation-timing) forwards;
}

[data-theme="dark"] .logo-outer-circle {
  stroke: var(--neutral-white);
}

.logo-inner-circle {
  fill: var(--neutral-white);
  stroke: var(--neutral-black);
  stroke-width: 0.5;
}

[data-theme="dark"] .logo-inner-circle {
  fill: var(--neutral-black);
  stroke: var(--neutral-white);
}

.logo-red-quadrant {
  fill: var(--primary-red);
  transform-origin: center;
  opacity: 0;
  animation: fadeInQuadrant 0.6s var(--animation-timing) forwards;
}

.logo-light-quadrant {
  fill: var(--neutral-white);
  transform-origin: center;
  opacity: 0;
  animation: fadeInQuadrant 0.6s var(--animation-timing) forwards;
}

@media (prefers-color-scheme: dark) {
  .logo-light-quadrant {
    fill: var(--neutral-white);
  }
}

@media (prefers-color-scheme: light) {
  .logo-light-quadrant {
    fill: var(--neutral-white);
  }
}

[data-theme="dark"] .logo-light-quadrant {
  fill: var(--neutral-white);
}

[data-theme="light"] .logo-light-quadrant {
  fill: var(--neutral-white);
}

.logo-quadrant-1 {
  animation-delay: 0.3s;
}

.logo-quadrant-2 {
  animation-delay: 0.6s;
}

.logo-quadrant-3 {
  animation-delay: 0.9s;
}

.logo-quadrant-4 {
  animation-delay: 1.2s;
}

.logo-text {
  fill: var(--neutral-black);
  font-family: 'Fivo Sans', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInText 1s var(--animation-timing) 1.5s forwards;
}

@media (prefers-color-scheme: dark) {
  .logo-text {
    fill: var(--neutral-white);
  }
}

@media (prefers-color-scheme: light) {
  .logo-text {
    fill: var(--neutral-black);
  }
}

[data-theme="dark"] .logo-text {
  fill: var(--neutral-white);
}

[data-theme="light"] .logo-text {
  fill: var(--neutral-black);
}

/* Loading Indicator */
.loading-indicator {
  width: 200px;
  margin-top: 10px;
}

.loading-bar {
  height: 2px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .loading-bar {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

@media (prefers-color-scheme: light) {
  .loading-bar {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

[data-theme="dark"] .loading-bar {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .loading-bar {
  background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] #car-preload-logo .preload-color-variant {
  fill: var(--neutral-white);
}

[data-theme="light"] #car-preload-logo .preload-color-variant {
  fill: var(--neutral-black);
}

.loading-progress {
  height: 100%;
  width: 0%;
  background-color: var(--primary-red);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 2px;
  transition: width 0.3s var(--animation-timing);
}

/* Animations */
@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInQuadrant {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

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

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .car-logo-container {
    width: 100px;
    height: 100px;
  }

  .loading-indicator {
    width: 160px;
  }
}

@media (max-width: 575.98px) {
  .car-logo-container {
    width: 80px;
    height: 80px;
  }

  .loading-indicator {
    width: 140px;
  }
}

/* Pulse effect for the logo */
.car-logo-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(182, 30, 35, 0.4);
  animation: pulse 2s var(--animation-timing) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 30, 35, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(182, 30, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(182, 30, 35, 0);
  }
}

/* Ensure the preloader is visible immediately */
#carPreloaderInline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--neutral-white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  #carPreloaderInline {
    background-color: var(--neutral-black);
  }
}

@media (prefers-color-scheme: light) {
  #carPreloaderInline {
    background-color: var(--neutral-white);
  }
}

[data-theme="dark"] #carPreloaderInline {
  background-color: var(--neutral-black);
}

[data-theme="light"] #carPreloaderInline {
  background-color: var(--neutral-white);
}

#carPreloaderInline .car-logo-inline {
  width: 80px;
  height: 80px;
  animation: pulse-simple 2s infinite;
}

@keyframes pulse-simple {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Team Page Styling */

/* Hero Section */
.team-hero {
  background-color: var(--body-bg);
  padding: 120px 0 60px;
  position: relative;
}

.team-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to bottom, var(--primary-red) 0%, transparent 100%);
  opacity: 0.05;
  z-index: 1;
}

.team-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  z-index: 2;
}

.team-hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-gray);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Section Titles */
/* .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--neutral-gray);
  max-width: 700px;
  margin: 0 auto;
} */

/* Team Grid */
.team-grid {
  background-color: var(--body-bg);
  position: relative;
}

/* Team Card */
.team-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Gradient Border Effect */
.team-card::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top, right, bottom, left */
  border-radius: 8px;
  padding: 2px; /* border width */
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--light-red) 50%,
    var(--primary-red) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.team-card:hover::before {
  opacity: 1;
}

/* Team Image */
.team-image-container {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

/* Team Info */
.team-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.team-position {
  font-size: 0.9rem;
  color: var(--neutral-gray);
  margin-bottom: 1rem;
}

/* Team Contact Links */
.team-contact {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.team-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(182, 30, 35, 0.1);
  color: var(--primary-red);
  transition: all 0.3s ease;
}

.team-contact-link:hover {
  background-color: var(--primary-red);
  color: white;
  transform: translateY(-2px);
}

/* Join Team Section */
.join-team-section {
  background-color: var(--card-bg);
  position: relative;
}

.join-team-content {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.join-team-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-red),
    var(--light-red)
  );
}

.join-team-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.join-team-text {
  font-size: 1.1rem;
  color: var(--neutral-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.join-team-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.join-team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Staggered animation delay for cards */
.team-card:nth-child(1) {
  animation-delay: 0.1s;
}
.team-card:nth-child(2) {
  animation-delay: 0.2s;
}
.team-card:nth-child(3) {
  animation-delay: 0.3s;
}
.team-card:nth-child(4) {
  animation-delay: 0.4s;
}
.team-card:nth-child(5) {
  animation-delay: 0.5s;
}
.team-card:nth-child(6) {
  animation-delay: 0.6s;
}
.team-card:nth-child(7) {
  animation-delay: 0.7s;
}
.team-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .team-image-container {
    height: 260px;
  }
}

@media (max-width: 991.98px) {
  .team-hero {
    padding: 100px 0 50px;
  }

  .team-hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .join-team-content {
    padding: 2rem;
  }

  .join-team-title {
    font-size: 2rem;
  }

  .join-team-image {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .team-hero-title {
    font-size: 2.2rem;
  }

  .team-hero-subtitle {
    font-size: 1.1rem;
  }

  .team-image-container {
    height: 380px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .team-hero {
    padding: 80px 0 40px;
  }

  .team-hero-title {
    font-size: 1.8rem;
  }

  .team-hero-subtitle {
    font-size: 1rem;
  }

  .join-team-content {
    padding: 1.5rem;
  }

  .join-team-title {
    font-size: 1.8rem;
  }
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-container video {
  width: 100%;
  height: auto;
  max-height: 720px;
  display: block;
}

/* Video Overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay,
.video-container:focus-within .video-overlay {
  opacity: 1;
}

/* Video Controls */
.video-controls {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.video-play-button,
.video-mute-button,
.video-fullscreen-button {
  width: 40px;
  height: 40px;
  background: rgba(182, 30, 35, 0.9); /* --primary-red semi-transparent */
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.video-play-button:hover,
.video-mute-button:hover,
.video-fullscreen-button:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(182, 30, 35, 0.5);
  background: var(--primary-red);
}

.video-play-button:focus,
.video-mute-button:focus,
.video-fullscreen-button:focus {
  outline: 2px solid var(--light-red);
  outline-offset: 2px;
}

/* Fullscreen Styles */
.video-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  box-shadow: none;
  background: black; /* Fallback for mobile */
}

.video-container.fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure video fits without cropping */
}

/* Fullscreen Button Icon */
.video-fullscreen-button.exit-fullscreen .bi-fullscreen {
  display: none;
}

.video-fullscreen-button .bi-fullscreen-exit {
  display: none;
}

.video-fullscreen-button.exit-fullscreen .bi-fullscreen-exit {
  display: block;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .video-controls {
      gap: 0.75rem;
      padding: 0.75rem;
  }

  .video-play-button,
  .video-mute-button,
  .video-fullscreen-button {
      width: 35px;
      height: 35px;
      font-size: 1rem;
  }

  .video-container.fullscreen {
      /* Ensure mobile fullscreen respects device viewport */
      width: 100% !important;
      height: 100% !important;
      top: 0;
      left: 0;
  }
}

/* CAR Gallery Section */
.car-gallery-section {
  background-color: var(--body-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* .car-gallery-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-red),
    var(--light-red),
    var(--primary-red)
  );
} */

.car-gallery-section .car-gallery-title {
  margin-bottom: 1.5rem;
  color: var(--text-color);
/*   background: linear-gradient(to right, var(--dark-red), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 5px 15px rgba(182, 30, 35, 0.3); */
}

.car-gallery-section .car-gallery-subtitle {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.car-gallery-section .car-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 15px;
}

.car-gallery-section .car-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-gallery-section .car-gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.car-gallery-section .car-gallery-item img,
.car-gallery-section .car-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-gallery-section .car-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.car-gallery-section .car-gallery-item:hover .car-gallery-overlay {
  opacity: 1;
}

.car-gallery-section .car-gallery-overlay i {
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* CAR Gallery Popup */
.car-gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.car-gallery-popup.active {
  opacity: 1;
  visibility: visible;
}

.car-gallery-popup .car-gallery-popup-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(182, 30, 35, 0.3);
}

.car-gallery-popup .car-gallery-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-red);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 5;
}

.car-gallery-popup .car-gallery-popup-close:hover {
  background: var(--dark-red);
}

.car-gallery-popup .car-gallery-popup-close:focus {
  outline: 2px solid var(--light-red);
  outline-offset: 2px;
}

.car-gallery-popup .car-gallery-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.car-gallery-popup .car-carousel-item {
  display: none;
  width: 100%;
  height: 100%;
}

.car-gallery-popup .car-carousel-item.active {
  display: block;
}

.car-gallery-popup .car-carousel-image,
.car-gallery-popup .car-carousel-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.car-gallery-popup .car-carousel-image.active,
.car-gallery-popup .car-carousel-video.active {
  display: block;
}

.car-gallery-popup .car-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(182, 30, 35, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.car-gallery-popup .car-carousel-nav:hover {
  background: var(--primary-red);
}

.car-gallery-popup .car-carousel-nav:focus {
  outline: 2px solid var(--light-red);
  outline-offset: 2px;
}

.car-gallery-popup .car-carousel-nav.car-prev {
  left: 10px;
 overseas
}

.car-gallery-popup .car-carousel-nav.car-next {
  right: 10px;
}

.car-gallery-popup .car-gallery-popup-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .car-gallery-section {
    padding: 60px 0;
  }

  .car-gallery-section .car-gallery-title {
    font-size: 2.2rem;
  }

  .car-gallery-section .car-gallery-subtitle {
    font-size: 1rem;
  }

  .car-gallery-section .car-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .car-gallery-popup .car-gallery-popup-content {
    width: 95%;
  }
}

@media (max-width: 767.98px) {
  .car-gallery-section {
    padding: 40px 0;
  }

  .car-gallery-section .car-gallery-title {
    font-size: 1.8rem;
  }

  .car-gallery-section .car-gallery-subtitle {
    font-size: 0.9rem;
  }

  .car-gallery-section .car-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .car-gallery-section .car-gallery-overlay i {
    font-size: 1.5rem;
  }

  .car-gallery-popup .car-gallery-popup-content {
    padding: 15px;
  }

  .car-gallery-popup .car-carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}


/* CAR Features Section */
.car-features-section {
  background-color: var(--body-bg);
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}

.car-features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-red),
    var(--light-red),
    var(--primary-red)
  );
}

.car-features-section .car-features-title {
  margin-bottom: 2.5rem;
}

.car-features-section .car-features-subtitle {
  font-size: 1.1rem;
  color: var(--neutral-gray);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.car-features-section .car-features-grid {
  display: flex;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.car-features-section .car-features-column {
  flex: 1;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.car-features-section .car-features-column:hover {
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.08);
}

.car-features-section .car-features-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(182, 30, 35, 0.1);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
}

.car-features-section .car-features-column:nth-child(1) .car-features-item:nth-child(1) { animation-delay: 0.1s; }
.car-features-section .car-features-column:nth-child(1) .car-features-item:nth-child(2) { animation-delay: 0.2s; }
.car-features-section .car-features-column:nth-child(1) .car-features-item:nth-child(3) { animation-delay: 0.3s; }
.car-features-section .car-features-column:nth-child(1) .car-features-item:nth-child(4) { animation-delay: 0.4s; }
.car-features-section .car-features-column:nth-child(1) .car-features-item:nth-child(5) { animation-delay: 0.5s; }
.car-features-section .car-features-column:nth-child(2) .car-features-item:nth-child(1) { animation-delay: 0.6s; }
.car-features-section .car-features-column:nth-child(2) .car-features-item:nth-child(2) { animation-delay: 0.7s; }
.car-features-section .car-features-column:nth-child(2) .car-features-item:nth-child(3) { animation-delay: 0.8s; }
.car-features-section .car-features-column:nth-child(2) .car-features-item:nth-child(4) { animation-delay: 0.9s; }
.car-features-section .car-features-column:nth-child(2) .car-features-item:nth-child(5) { animation-delay: 1.0s; }

.car-features-section .car-features-item:last-child {
  border-bottom: none;
}

.car-features-section .car-features-item:hover {
  background: rgba(182, 30, 35, 0.05);
  transition: background 0.3s ease;
}

.car-features-section .car-features-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.car-features-section .car-features-value {
  font-size: 0.95rem;
  color: var(--neutral-gray);
  text-align: right;
}

/* Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .car-features-section {
    padding: 60px 0;
  }

  .car-features-section .car-features-title {
    font-size: 2.2rem;
  }

  .car-features-section .car-features-subtitle {
    font-size: 1rem;
  }

  .car-features-section .car-features-grid {
    gap: 20px;
  }

  .car-features-section .car-features-column {
    padding: 15px;
  }
}

@media (max-width: 767.98px) {
  .car-features-section {
    padding: 40px 0;
  }

  .car-features-section .car-features-title {
    font-size: 1.8rem;
  }

  .car-features-section .car-features-subtitle {
    font-size: 0.9rem;
  }

  .car-features-section .car-features-grid {
    flex-direction: column;
    gap: 15px;
  }

  .car-features-section .car-features-column {
    width: 100%;
  }

  .car-features-section .car-features-item {
    padding: 8px 0;
  }

  .car-features-section .car-features-label,
  .car-features-section .car-features-value {
    font-size: 0.9rem;
  }
}

.contact-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-red), var(--light-red), var(--primary-red));
  z-index: 2;
}

/* 404 Error Section */
.error-404-section {
  background-color: var(--body-bg);
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.error-404-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-red), var(--light-red), var(--primary-red));
}

.error-404-svg {
  margin: 0 auto 2rem;
  max-width: 300px;
  width: 100%;
}

/* SVG Animations */
.svg-bg {
  animation: bgPulse 4s infinite ease-in-out;
}

@keyframes bgPulse {
  0%, 100% {
      opacity: 0.15;
      transform: scale(1);
  }
  50% {
      opacity: 0.25;
      transform: scale(1.05);
  }
}

.svg-ring-outer {
  animation: ringPulseOuter 2s infinite ease-in-out;
}

@keyframes ringPulseOuter {
  0%, 100% {
      stroke-opacity: 0.7;
      stroke-width: 2;
      transform: scale(1);
      filter: drop-shadow(0 0 5px rgba(182, 30, 35, 0.5));
  }
  50% {
      stroke-opacity: 1;
      stroke-width: 3;
      transform: scale(1.03);
      filter: drop-shadow(0 0 10px rgba(182, 30, 35, 0.8));
  }
}

.svg-grid circle:not(.svg-ring-outer) {
  animation: gridFade 3s infinite ease-in-out;
}

@keyframes gridFade {
  0%, 100% {
      stroke-opacity: 0.5;
  }
  50% {
      stroke-opacity: 0.3;
  }
}

.svg-scan {
  transform-origin: 150px 150px;
  animation: scanRotate 4s infinite linear;
}

@keyframes scanRotate {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

.svg-scan .scan-beam {
  animation: beamGlow 4s infinite ease-in-out;
}

@keyframes beamGlow {
  0%, 100% {
      opacity: 0.4;
      filter: drop-shadow(0 0 5px rgba(182, 30, 35, 0.5));
  }
  50% {
      opacity: 0.6;
      filter: drop-shadow(0 0 10px rgba(182, 30, 35, 0.8));
  }
}

.svg-echoes .echo {
  animation: echoPulse 3s infinite ease-in-out;
}

.svg-echoes .echo-1 {
  animation-delay: 0s;
}

.svg-echoes .echo-2 {
  animation-delay: 1s;
}

.svg-echoes .echo-3 {
  animation-delay: 2s;
}

@keyframes echoPulse {
  0% {
      opacity: 0;
      transform: scale(0.5);
  }
  50% {
      opacity: 1;
      transform: scale(1.5);
  }
  100% {
      opacity: 0;
      transform: scale(2);
  }
}

.svg-404 .text-404 {
  animation: textPulse 2.5s infinite alternate ease-in-out;
}

@keyframes textPulse {
  0% {
      text-shadow: 0 0 5px rgba(182, 30, 35, 0.3);
      transform: scale(1);
  }
  100% {
      text-shadow: 0 0 15px rgba(182, 30, 35, 0.7);
      transform: scale(1.03);
  }
}

.error-404-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-404-message {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .error-404-section {
      padding: 80px 0;
  }

  .error-404-title {
      font-size: 2rem;
  }

  .error-404-message {
      font-size: 1rem;
  }

  .error-404-svg {
      max-width: 250px;
  }
}

@media (max-width: 767.98px) {
  .error-404-section {
      padding: 60px 0;
  }

  .error-404-title {
      font-size: 1.8rem;
  }

  .error-404-message {
      font-size: 0.9rem;
  }

  .error-404-svg {
      max-width: 200px;
  }

  .error-404-button {
      padding: 0.6rem 1.2rem;
      font-size: 0.9rem;
  }
}

.google-map {
  position: relative;
  width: 100%;
  overflow: hidden;
}

[data-theme="dark"] .google-map iframe {
  width: 100%;
  height: 100%;
  filter: invert(90%) hue-rotate(180deg) brightness(1.2) contrast(1.1);
  border: 1px solid var(--dark-red);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ensure responsiveness */
@media (max-width: 767.98px) {
  .google-map {
      height: 300px;
  }
}


/* Events Section */
.events-section {
  background-color: var(--body-bg);
  padding: 80px 0;
  position: relative;
}

.events-header {
  text-align: center;
  margin-bottom: 3rem;
}

.events-title {
  color: var(--text-color);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.events-subtitle {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filter Bar */
.events-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}


/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
  gap: 2rem;
  margin-bottom: 2rem;
}

.event-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.08)
}

.event-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.event-content {
  padding: 1.5rem;
}

.event-title {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.event-date,
.event-location {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-description {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Load More Button */
.events-load-more {
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .events-section {
      padding: 60px 0;
  }

  .events-title {
      font-size: 2rem;
  }

  .events-subtitle {
      font-size: 1rem;
  }

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

@media (max-width: 767.98px) {
  .events-section {
      padding: 40px 0;
  }

  .events-title {
      font-size: 1.8rem;
  }

  .events-subtitle {
      font-size: 0.9rem;
  }

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

  .event-image img {
      height: 150px;
  }

  .filter-btn {
      padding: 0.4rem 1rem;
      font-size: 0.9rem;
  }

  .load-more-btn {
      padding: 0.6rem 1.5rem;
      font-size: 0.9rem;
  }
}


/* Futuristic Horizontal Timeline Styling */
/* Hero Section */
.timeline-hero {
  background-color: var(--body-bg);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(182, 30, 35, 0.15) 0%,
    transparent 70%
  );
  z-index: 1;
}.timeline-hero-logo {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}timeline-hero .logo-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(182, 30, 35, 0.6) 0%,
    rgba(182, 30, 35, 0) 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse 3s infinite alternate;
}timeline-hero .car-logo {
  width: 80px;
  height: auto;
  position: relative;
  z-index: 2;
}.timeline-hero .car-logo.logo-dark {
  display: block;
}.timeline-hero .car-logo.logo-white {
  display: none;
}[data-theme="dark"] .timeline-hero .car-logo.logo-dark {
  display: none;
}[data-theme="dark"] .timeline-hero .car-logo.logo-white {
  display: block;
}.timeline-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  z-index: 2;
  letter-spacing: -0.5px;
  /*   background: linear-gradient(
    to right,
    var(--dark-red),
    var(--primary-red),
    var(--light-red)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; */
  /* text-shadow: 0 5px 15px rgba(182, 30, 35, 0.3); */
}.timeline-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
}.scroll-timeline-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--primary-red);
  font-size: 0.9rem;
  font-weight: 500;
  animation: bounce 2s infinite;
}.scroll-timeline-indicator i {
  font-size: 1.5rem;
}/* Horizontal Timeline Wrapper */
.horizontal-timeline-wrapper {
  position: relative;
  height: var(--timeline-height);
  overflow: hidden;
  background-color: var(--body-bg);
}/* Progress Bar */
.timeline-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(182, 30, 35, 0.2) 0%,
    rgba(182, 30, 35, 0.1) 100%
  );
  transform: translateY(-50%);
  z-index: 1;
}.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    var(--dark-red) 0%,
    var(--primary-red) 50%,
    var(--light-red) 100%
  );
  box-shadow: 0 0 10px rgba(182, 30, 35, 0.5);
  transition: width 0.3s ease;
}/* Horizontal Timeline */
.horizontal-timeline-container {
  position: relative;
  height: 100%;
}.timeline-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 100px;
  transition: transform 0.3s ease-out;
  will-change: transform;
}/* Timeline Line */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(182, 30, 35, 0.2) 0%,
    rgba(182, 30, 35, 0.5) 50%,
    rgba(182, 30, 35, 0.2) 100%
  );
  transform: translateY(-50%);
  z-index: 1;
}/* Timeline Item */
.timeline-item {
  position: relative;
  min-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  opacity: 1; /* Garantir que todos os itens sejam visíveis inicialmente */
  transition: opacity 0.3s ease, transform 0.3s ease;
}.timeline-item.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}/* Timeline Dot */
.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--light-red) 100%
  );
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 10px rgba(182, 30, 35, 0.7);
}.timeline-dot-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}.timeline-dot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(182, 30, 35, 0.3);
  opacity: 0;
  z-index: 2;
  animation: pulse 1.5s infinite;
}.timeline-item:hover .timeline-dot-pulse,
.timeline-item.active .timeline-dot-pulse {
  animation: pulse 1.5s infinite;
}/* Timeline Year */
.timeline-year {
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--dark-red) 0%,
    var(--primary-red) 100%
  );
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 3;
  text-align: center;
}/* Timeline Content */
.timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  opacity: 0.7;
  transition: all 0.3s ease;
  position: relative;
  top: 20px; /* Ajuste para compensar o espaço do dot */
}.timeline-item:hover .timeline-content,
.timeline-item.active .timeline-content {
  opacity: 1;
  transform: translateY(-10px);
}/* Circular Image */
.timeline-image-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
}.timeline-image-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, var(--primary-red), var(--light-red)) border-box;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}.timeline-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}.timeline-item:hover .timeline-image-circle img,
.timeline-item.active .timeline-image-circle img {
  transform: scale(1.1);
}.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(182, 30, 35, 0.3) 0%,
    rgba(182, 30, 35, 0) 70%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}.timeline-item:hover .image-glow,
.timeline-item.active .image-glow {
  opacity: 1;
  animation: pulse 2s infinite;
}/* Timeline Info */
.timeline-info {
  text-align: center;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
  width: 100%;
}.timeline-info::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--light-red) 50%,
    var(--primary-red) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}.timeline-item:hover .timeline-info::before,
.timeline-item.active .timeline-info::before {
  opacity: 1;
}
.timeline-title {
  line-height: normal;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}
.timeline-description {
  font-size: 0.83rem !important;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0;
}
.timeline-description p {
  font-size: 0.83rem !important;
}

.future .timeline-description p {
  color: var(--neutral-white);
}

/* Future Point */
.timeline-item.future .timeline-content {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(182, 30, 35, 0.3);
  max-width: 350px;
}.timeline-item.future .timeline-title,
.timeline-item.future .timeline-description {
  color: white;
}.future-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
  opacity: 0.8;
}.timeline-item.future .timeline-dot {
  background: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}/* Legacy Section */
.legacy-section {
  background-color: var(--card-bg);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}.legacy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-red),
    var(--light-red),
    var(--primary-red)
  );
}
.legacy-title {
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  /*   background: linear-gradient(to right, var(--dark-red), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; */
}.legacy-text {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1rem;
}.legacy-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}.legacy-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--light-red) 50%,
    var(--primary-red) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
}.legacy-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}/* Navigation Buttons */
.timeline-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 4;
}.timeline-nav-button {
  background: rgba(182, 30, 35, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}.timeline-nav-button:hover {
  background: var(--primary-red);
}.timeline-nav-button.prev {
  margin-left: 20px;
}.timeline-nav-button.next {
  margin-right: 20px;
}/* Animations */
@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}/* Responsive Adjustments */
@media (max-width: 991.98px) {
  :root {
    --timeline-height: 450px;
  }  .timeline-hero {
    padding: 100px 0 60px;
  }  .timeline-hero-title {
    font-size: 3rem;
  }  .timeline-item {
    min-width: 350px;
    padding: 0 40px;
  }  .timeline-content {
    max-width: 250px;
  }  .timeline-image-container {
    width: 150px;
    height: 150px;
  }  .timeline-year {
    font-size: 0.85rem;
    padding: 6px 12px;
  }  .legacy-title {
    font-size: 2.2rem;
  }  .legacy-image {
    margin-top: 2rem;
  }
}@media (max-width: 767.98px) {
  :root {
    --timeline-height: 400px;
  }  .timeline-hero-title {
    font-size: 2.5rem;
  }  .timeline-hero-subtitle {
    font-size: 1.1rem;
  }  .timeline-item {
    min-width: 320px;
    padding: 0 30px;
  }  .timeline-content {
    max-width: 200px;
  }  .timeline-image-container {
    width: 120px;
    height: 120px;
  }  .timeline-year {
    font-size: 0.8rem;
    padding: 6px 10px;
  }  .timeline-info {
    padding: 15px;
  }  .timeline-title {
    font-size: 1.1rem;
  }  .timeline-description {
    font-size: 0.85rem;
  }
}@media (max-width: 575.98px) {
  :root {
    --timeline-height: 350px;
  }  .timeline-hero {
    padding: 80px 0 40px;
  }  .timeline-hero-title {
    font-size: 2rem;
  }  .timeline-hero-subtitle {
    font-size: 1rem;
  }  .timeline-item {
    min-width: 320px;
    padding: 0 25px;
  }  .timeline-content {
    max-width: 280px;
  }  .timeline-image-container {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }  .timeline-year {
    font-size: 0.75rem;
    padding: 5px 8px;
  }  .timeline-info {
    padding: 12px;
  }  .timeline-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }  .timeline-description {
    font-size: 0.75rem;
  }
}




/* Cookie Popup (Bottom Centered) */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: 90%;
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 1050;
  animation: slideUp var(--transition-time) var(--animation-timing);
}

.cookie-content {
  color: var(--text-color);
}

.cookie-title {
  font-weight: 600;
  color: var(--primary-red);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Customization Modal */
.modal-content {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--card-bg);
}

.modal-header {
  background: var(--gradient-red);
  color: var(--neutral-white);
  border-bottom: none;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.modal-title {
  font-weight: 600;
}

.form-check-input:checked {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.modal-body p {
  color: var(--text-color);
}

.modal-body p.text-muted {
  color: var(--text-color)!important;
}

/* Animation for Popup */
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .cookie-popup {
    bottom: 10px;
    width: 95%;
  }
  .cookie-buttons {
    flex-direction: column;
  }
}



.content-text {
  color: var(--text-color);
  font-size: 1rem;
}

.content-link {
  color: var(--primary-red);
  text-decoration: none;
  transition: color var(--transition-time) var(--transition-smooth);
}

.content-link:hover {
  color: var(--dark-red);
  text-decoration: underline;
}

/* Custom Table */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

table thead {
  background: var(--gradient-red)!important;
  color: var(--neutral-white)!important;
}

table tr:has(th) {
  background: var(--gradient-red)!important;
  color: var(--neutral-white)!important;
}

table th {
  padding: 1rem;
  font-weight: 600;
  text-align: left;
}

table tbody tr {
  transition: background var(--transition-time) var(--transition-smooth);
}

table tbody tr:hover {
  background: var(--neutral-light-gray);
  color: var(--neutral-black);
}

table tbody tr:hover td {
  color: var(--neutral-black);
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

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


/* Responsive Table */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  table thead, table tbody, table tr, table th, table td {
    display: block;
  }

  table thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  table th {
    text-align: center;
  }

  table td {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  table tbody tr {
    margin-bottom: 1rem;
  }
}

/* ISOLATED Testimonials Section - No Interference with Other Videos */

/* Section Header */
.testimonials-section {
  background-color: var(--body-bg);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at center, rgba(182, 30, 35, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
  background: linear-gradient(to right, var(--dark-red), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.testimonials-subtitle {
  font-size: 1.1rem;
  color: var(--neutral-gray);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Carousel Styling */
.testimonials-carousel {
  position: relative;
  margin-bottom: 2rem;
}

.testimonials-carousel .carousel-inner {
  border-radius: 12px;
  overflow: hidden;
  min-height: 500px;
}

.testimonial-customer-info {
  max-width: 400px;
}

.customer-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.customer-location {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.customer-rating .bi-star-fill {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  margin-right: 0.25rem;
}

.customer-rating .bi-star-fill.active {
  color: #ffc107;
}

/* Image Testimonial Styling */
.testimonial-image-slide {
  width: 100%;
  height: 100%;
}

.testimonial-card {
  background-color: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  width: 100%;

  .row {
    width: 100%;
  }
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
/*   height: 4px;
  background: linear-gradient(to right, var(--primary-red), var(--light-red), var(--primary-red)); */
}

.testimonial-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(182, 30, 35, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Image Container */
.testimonial-image-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  min-width: 350px;
  height: 350px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, var(--primary-red), var(--light-red)) border-box;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.testimonial-image.testimonial-loaded {
  opacity: 1;
}

.testimonial-image-container:hover .testimonial-image {
  transform: scale(1.05);
}

/* Loading Overlays - ISOLATED */
.testimonial-image-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  z-index: 2;
}

.testimonial-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(182, 30, 35, 0.3);
  border-top: 3px solid var(--primary-red);
  border-radius: 50%;
  animation: testimonial-spin 1s linear infinite;
  margin-bottom: 1rem;
}

.testimonial-image-loading.testimonial-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Content Styling */
.testimonial-content {
  position: relative;
  z-index: 2;
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-red);
  opacity: 0.3;
  margin-bottom: 1rem;
}

/* Rating */
.testimonial-rating {
  margin-bottom: 1.5rem;
}

.testimonial-rating .bi-star-fill {
  color: #ddd;
  font-size: 1.2rem;
  margin-right: 0.25rem;
  transition: color 0.3s ease;
}

.testimonial-rating .bi-star-fill.active {
  color: #ffc107;
}

/* Testimonial Text */
.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
}

/* Author Info */
.testimonial-author {
  margin-bottom: 1.5rem;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.author-location {
  font-size: 0.95rem;
  color: var(--neutral-gray);
  margin-bottom: 0;
}

/* Carousel Controls */
.testimonials-section .carousel-control-prev,
.testimonials-section .carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(182, 30, 35, 0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0.8;
  z-index: 99999;
}

.testimonials-section .carousel-control-prev {
  left: -30px;
}

.testimonials-section .carousel-control-next {
  right: -30px;
}

.testimonials-section .carousel-control-prev:hover,
.testimonials-section .carousel-control-next:hover {
  background: rgba(182, 30, 35, 0.2);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.testimonials-section .carousel-control-prev.disabled,
.testimonials-section .carousel-control-next.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.testimonials-section .carousel-control-prev-icon,
.testimonials-section .carousel-control-next-icon {
  background: none;
  font-size: 1.5rem;
  color: var(--primary-red);
}

/* Carousel Indicators */
.testimonials-section .carousel-indicators {
  bottom: -50px;
  margin-bottom: 0;
}

.testimonials-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(182, 30, 35, 0.3);
  border: none;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.testimonials-section .carousel-indicators button.active {
  background-color: var(--primary-red);
  transform: scale(1.2);
}

.testimonials-section .carousel-indicators button.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Carousel Disabled State - ISOLATED */
.testimonials-carousel.testimonial-carousel-disabled .carousel-control-prev,
.testimonials-carousel.testimonial-carousel-disabled .carousel-control-next,
.testimonials-carousel.testimonial-carousel-disabled .carousel-indicators button {
  opacity: 0.3;
  pointer-events: none;
}

/* Call to Action */
.testimonials-cta {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(182, 30, 35, 0.05) 100%);
  padding: 3rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(182, 30, 35, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonials-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-red), var(--light-red), var(--primary-red));
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1rem;
  color: var(--neutral-gray);
  margin-bottom: 2rem;
}

.cta-buttons .btn {
  padding: 12px 30px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Animations - ISOLATED */
@keyframes testimonial-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .testimonials-title {
    font-size: 2.2rem;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .testimonial-image-container {
    max-width: 280px;
    min-width: 280px;
    height: 280px;
    margin-bottom: 2rem;
  }

  .testimonials-section .carousel-control-prev,
  .testimonials-section .carousel-control-next {
    width: 50px;
    height: 50px;
  }

  .testimonials-section .carousel-control-prev {
    left: -25px;
  }

  .testimonials-section .carousel-control-next {
    right: -25px;
  }

}

@media (max-width: 767.98px) {
  .testimonials-title {
    font-size: 2rem;
  }

  .testimonials-subtitle {
    font-size: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .testimonial-image-container {
    max-width: 220px;
    min-width: 220px;
    height: 220px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonials-section .carousel-control-prev,
  .testimonials-section .carousel-control-next {
    display: none;
  }

  .testimonial-control-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .cta-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .cta-buttons .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {

  .testimonials-title {
    font-size: 1.8rem;
  }

  .testimonial-image-container {
    max-width: 180px;
    min-width: 180px;
    height: 180px;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .author-name {
    font-size: 1.1rem;
  }

  .author-location {
    font-size: 0.9rem;
  }

  .testimonials-cta {
    padding: 2rem 1rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .customer-name {
    font-size: 1.25rem;
  }

  .customer-location {
    font-size: 0.9rem;
  }

}

/* Block external carousel interference */
.testimonials-carousel.testimonial-carousel-disabled {
  pointer-events: none !important;
  touch-action: none !important;
}

.testimonials-carousel.testimonial-carousel-disabled * {
  pointer-events: none !important;
}


.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
  vertical-align: middle !important;
}


[data-theme="light"] footer {
  .logo-white {
    display: none !important;
  }
  .logo-dark {
    display: block !important;
  }
} 

[data-theme="dark"] footer {
  .logo-white {
    display: block !important;
  }
  .logo-dark {
    display: none !important;
  }
}


a.whatsapp {
    width: 50px;
    height: 50px;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 90px;
    right: 30px;
    background-color: #45ca5b;
    color: #fff;
    z-index: 99999;
    box-shadow: 0 0 5px 5px rgba(3,60,45,0.1);
    transition: 400ms ease-in-out;
}

a.whatsapp:hover {
    background-color: rgba(3,60,45,1);
    box-shadow: 0 0 5px 9px rgba(3,60,45,0.1);
}

a.whatsapp svg {
    color: #fff;
    font-size: 28px;
    width: 24px;
    height: 24px;
    transition: 400ms ease-in-out;
}

a.whatsapp:hover svg{
    color: #45ca5b;
    filter: inherit;
}

@media (max-width: 768px) {
    a.whatsapp {
        width: 40px;
        height: 40px;
        bottom: 70px;
        right: 20px;
    }
}