/* ===== Ashish Pradhan ===== */
:root {
  --primary-color: #003d7a;
  --secondary-color: #d5a419;
  --accent-color: #867555;
  --dark-bg: #000000;
  --light-text: #ffffff;
  --muted-text: #666666;
  --submenu-bg: #003d7a;
  --submenu-text: #ffffff;
  --footer-bg: #f1f1e6;
  --footer-text: #000000;
  --light-accent: #a6abbd;
  /* WCAG AA compliant color palette */
  --focus-color: #0056b3;
  --focus-outline: 3px solid #0056b3;
  --focus-outline-offset: 2px;
}

/* ===== ACCESSIBILITY ===== */
/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
  top: 0;
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Improved Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* Remove default outline for mouse users but keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #000000;
  background-color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  min-height: 100vh;
  position: relative;
  margin: 0;
  padding: 0;
}

/* HERO SECTION */
hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: var(--primary-color) solid;
  opacity: 0.25;
}

h6,
.h6,
h5,
.h5,
h4,
.h4,
h3,
.h3,
h2,
.h2,
h1,
.h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary-color);
}

h1,
.h1 {
  font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
  h1,
  .h1 {
    font-size: 2.5rem;
  }
}

h2,
.h2 {
  font-size: calc(1.325rem + 0.9vw);
}

@media (min-width: 1200px) {
  h2,
  .h2 {
    font-size: 2rem;
  }
}

h3,
.h3 {
  font-size: calc(1.3rem + 0.6vw);
}

@media (min-width: 1200px) {
  h3,
  .h3 {
    font-size: 1.75rem;
  }
}

h4,
.h4 {
  font-size: calc(1.275rem + 0.3vw);
}

@media (min-width: 1200px) {
  h4,
  .h4 {
    font-size: 1.5rem;
  }
}

h5,
.h5 {
  font-size: 1.25rem;
}

h6,
.h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

abbr[title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  cursor: help;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

ol,
ul {
  padding-left: 2rem;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

blockquote {
  margin: 0 0 1rem;
}

b,
strong {
  font-weight: bolder;
}

small,
.small {
  font-size: 0.875em;
}

mark,
.mark {
  padding: 0.1875em;
  color: var(--primary-color);
  background-color: var(--dark-bg);
}

sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

a {
  color: rgba(var(--primary-color), var(--secondary-color, 1));
  text-decoration: underline;
}

a:hover {
  --primary-color: var(--primary-color);
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

pre,
code,
kbd,
samp {
  font-family: var(--primary-color);
  font-size: 1em;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  font-size: 0.875em;
}

pre code {
  font-size: inherit;
  color: inherit;
  word-break: normal;
}

code {
  font-size: 0.875em;
  color: var(--primary-color);
  word-wrap: break-word;
}

a > code {
  color: inherit;
}

kbd {
  padding: 0.1875rem 0.375rem;
  font-size: 0.875em;
  color: var(--primary-color);
  background-color: var(--primary-color);
  border-radius: 0.25rem;
}

kbd kbd {
  padding: 0;
  font-size: 1em;
}

figure {
  margin: 0 0 1rem;
}

img,
svg {
  vertical-align: middle;
}

table {
  caption-side: bottom;
  border-collapse: collapse;
}

caption {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: var(--primary-color);
  text-align: left;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

[role="button"] {
  cursor: pointer;
}

select {
  word-wrap: normal;
}

select:disabled {
  opacity: 1;
}

[list]:not([type="date"]):not([type="datetime-local"]):not([type="month"]):not(
    [type="week"]
  ):not([type="time"])::-webkit-calendar-picker-indicator {
  display: none !important;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: calc(1.275rem + 0.3vw);
  line-height: inherit;
}

@media (min-width: 1200px) {
  legend {
    font-size: 1.5rem;
  }
}

legend + * {
  clear: left;
}

/* style */
/* HEADER & NAVIGATION */
.main-header {
  position: relative;
  z-index: 1000;
}

/* Sticky header functionality */
.main-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Updated header background to white with transparency -->*/
.main-header .navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
}

.lance-logo {
  transition: transform 0.3s ease;
}

.lance-logo:hover {
  /*transform: rotate(1deg);*/
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.3rem !important;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

/* Updated nav-link styling - no underline effect, just text color -->*/
.navbar-nav .nav-link {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin: 0 15px;
  transition: color 0.3s ease;
  position: relative;
  padding: 10px 15px;
}

/* Dropdown toggle icon */
.navbar-nav .nav-link .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.navbar-nav .nav-item.show .fa-chevron-down {
  transform: rotate(180deg);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
  display: none;
}

.navbar-nav .nav-link:hover::after {
  width: 0;
}

/* Full-screen mega menu styling -->*/
.mega-menu {
  position: fixed !important;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none !important;
  min-height: 500px;
  overflow-x: hidden;
}

.mega-menu.show {
  display: block !important;
}

.mega-menu-content {
  padding: 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.mega-menu-column h6 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
}

.mega-menu-link {
  display: block;
  color: #000000;
  text-decoration: none;
  padding: 8px 0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.mega-menu-link:hover {
  color: var(--primary-color);
  padding-left: 8px;
  text-decoration: underline;
}

/* Find Dealer Button -->*/
.navbar-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-find-dealer {
  background: var(--secondary-color);
  color: white;
  border: 2px solid var(--secondary-color);
  padding: 8px 24px;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-find-dealer:hover {
  background: transparent;
  color: var(--secondary-color);
}

/* ===== MAIN NAVIGATION RESPONSIVE STYLES ===== */

/* Mobile Navigation (< 992px) */
@media (max-width: 991px) {
  .navbar-nav {
    margin-top: 20px;
    width: 100%;
  }

  .navbar-nav .nav-link {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  /* Mobile mega menu as accordion */
  .mega-menu {
    position: static !important;
    width: 100%;
    min-height: auto;
    box-shadow: none;
    border: none;
    background: #f8f9fa;
    margin-top: 0;
  }

  .mega-menu-content {
    padding: 20px 0;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mega-menu-column {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
  }

  .mega-menu-column:last-child {
    border-bottom: none;
  }

  .mega-menu-column h6 {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .mega-menu-link {
    padding: 10px 0;
    font-size: 0.9rem;
  }

  .btn-find-dealer {
    width: 100%;
    text-align: center;
    margin-top: 15px;
  }

  .navbar-buttons {
    width: 100%;
    flex-direction: column;
  }
}

/* Tablet Navigation (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  /* 16:9 Aspect Ratio */
  aspect-ratio: 16 / 9;
  min-height: 400px;
  max-height: 800px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Shared hero stability fallback for pages with slider controls */
.hero-stable {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 400px;
  max-height: 800px;
}

.hero-stable .hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-stable .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stable .slide.active {
  opacity: 1;
}

.hero-stable .slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-stable .slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 4;
}

@media (max-width: 992px) {
  .hero-stable {
    aspect-ratio: 4 / 3;
    min-height: 360px;
    max-height: 620px;
  }
}

@media (max-width: 768px) {
  .hero-stable {
    aspect-ratio: 1 / 1;
    min-height: 330px;
    max-height: 520px;
  }
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  z-index: 1;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  color: white;
  z-index: 10;
  position: relative;
  animation: slideInContent 1s ease-out;
}

@keyframes slideInContent {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overlay now handled inline in HTML for better LCP performance */
/*
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
}
*/

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.cta-buttons .btn {
  padding: 12px 35px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-size: 1rem;
  white-space: nowrap;
}

.cta-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons Responsive Styles */
/* Desktop (≥1200px) - Full size buttons */
@media (min-width: 1200px) {
  .cta-buttons .btn {
    padding: 14px 40px;
    font-size: 1.1rem;
  }
}

/* Tablet (768px - 1199px) - Medium buttons */
@media (min-width: 768px) and (max-width: 1199px) {
  .cta-buttons .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* Mobile (< 768px) - Smaller buttons, stacked on very small screens */
@media (max-width: 767px) {
  .cta-buttons {
    gap: 12px;
    padding: 0 20px;
  }

  .cta-buttons .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
  }
}

/* Extra small mobile (< 480px) - Stack buttons vertically */
@media (max-width: 479px) {
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1040;
  pointer-events: none;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
}

.slider-btn.prev {
  left: 30px;
}

.slider-btn.next {
  right: 30px;
}

/* Show buttons on hero section hover */
.hero-section:hover .slider-btn {
  opacity: 1;
  visibility: visible;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--dark-bg);
  transform: translateY(-50%) scale(1.1);
}

/* Slider button responsive positioning */
@media (max-width: 768px) {
  .slider-btn {
    width: 40px;
    height: 40px;
    opacity: 1;
    visibility: visible;
  }

  .slider-btn.prev {
    left: 15px;
  }

  .slider-btn.next {
    right: 15px;
  }

  .slider-controls {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .slider-btn {
    width: 35px;
    height: 35px;
    opacity: 1;
    visibility: visible;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .slider-controls {
    bottom: 15px;
  }

  .slider-dots {
    gap: 8px;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

.slider-dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

/* Make controls visible on touch devices */
@media (hover: none) and (pointer: coarse) {
  .slider-btn {
    opacity: 1;
    visibility: visible;
  }
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

.slider-dot.active:hover {
  transform: scale(1.25);
}

/* Video Slide Styles */
.video-slide {
  background: #000;
}

.video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Video Control Button */
.video-control-btn {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
}

/* Show video button only when video slide is active */
.hero-slider:has(.video-slide.active) ~ .video-control-btn {
  opacity: 1;
  visibility: visible;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.video-control-btn:focus {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.video-control-btn:active {
  transform: translateX(-50%) scale(0.95);
}

.video-icon {
  color: white;
  font-size: 20px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.video-control-btn[aria-pressed="true"] .play-icon {
  display: none;
}

.video-control-btn[aria-pressed="true"] .pause-icon {
  display: block !important;
}

.video-control-btn[aria-pressed="false"] .play-icon {
  display: block;
}

.video-control-btn[aria-pressed="false"] .pause-icon {
  display: none;
}

/* Hide pause button by default when video is playing */
.video-control-btn.playing {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Show pause button on hover when video is playing */
.video-slide:hover .video-control-btn.playing {
  opacity: 1;
  visibility: visible;
}

/* Responsive Video Button */
@media (max-width: 768px) {
  .video-control-btn {
    width: 45px;
    height: 45px;
    bottom: 100px;
  }

  .video-icon {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .video-control-btn {
    width: 40px;
    height: 40px;
    bottom: 90px;
  }

  .video-icon {
    font-size: 16px;
  }
}

/* Accessibility: Hidden but available to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Features Section */
.features-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.feature-card {
  padding: 20px 15px;
  transition: all 0.3s ease;
  border-radius: 8px;
  color: #000000;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card i {
  color: var(--primary-color);
}

.feature-card h5,
.feature-card h6 {
  color: var(--primary-color);
  font-weight: 700;
  margin: 10px 0 5px 0;
}

.feature-card p {
  color: #000000;
  font-weight: 500;
  margin-bottom: 0;
}

/* Mobile feature cards */
@media (max-width: 768px) {
  .feature-card {
    padding: 12px 8px;
  }

  .feature-card i {
    font-size: 2rem !important;
  }

  .feature-card h6 {
    font-size: 0.85rem;
    margin: 5px 0 3px 0;
  }

  .feature-card p {
    font-size: 0.9rem;
  }
}

/* Completely redesigned sticky submenu -->*/
.sticky-submenu {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: var(--submenu-bg);
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid #333;
  width: 100%;
  overflow-x: hidden;
}

.sticky-submenu .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
  max-width: 100%;
}

.submenu-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
  align-items: center;
}

.submenu-items li {
  flex: 0 1 auto;
}

/* First item (Corolla) on the left with larger text -->*/
.submenu-items li:first-child a {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--submenu-text);
  border-bottom: none;
}

.submenu-items li:first-child a:hover {
  border-bottom-color: transparent;
}

/* Spacer to push other items to the right -->*/
.submenu-spacer {
  flex: 1 1 auto;
}

/* Nav items on the right with underline hover effects only -->*/
.submenu-items a {
  display: block;
  padding: 18px 16px;
  color: var(--submenu-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  position: relative;
}

.submenu-items a:hover {
  color: var(--submenu-text);
  border-bottom-color: var(--secondary-color);
  background: transparent;
}

/* Remove active state underline - only show on hover */
.submenu-items a.active {
  color: var(--submenu-text);
  border-bottom-color: transparent !important;
}

/* Build button styling -->*/
.submenu-items a.build-btn {
  background: var(--secondary-color);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  margin: 12px 16px;
  color: white;
  font-weight: 600;
}

.submenu-items a.build-btn:hover {
  background: #b01827;
  border-bottom: none;
}

/* Mobile Submenu Dropdown Styles */
.mobile-submenu-dropdown {
  display: none;
  /* Hidden by default (desktop) */
}

.mobile-submenu-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-submenu-title {
  color: var(--submenu-text);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}

.mobile-submenu-dropdown .submenu-select {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  color: var(--submenu-text);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 14px 40px 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-submenu-dropdown .submenu-select:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-submenu-dropdown .submenu-select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow:
    0 0 0 3px rgba(212, 32, 47, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-submenu-dropdown .submenu-select option {
  background-color: #1a1a1a;
  color: var(--submenu-text);
  padding: 12px;
  font-weight: 500;
}

/* ===== PAGE SUBMENU RESPONSIVE STYLES ===== */

/* Mobile Submenu (< 768px) */
@media (max-width: 767px) {
  .sticky-submenu {
    position: sticky;
    top: 0;
    overflow: visible;
    padding: 10px 0;
    background: var(--submenu-bg);
    /* Use footer background color */
    border-bottom: 2px solid var(--primary-color);
  }

  /* Remove scroll indicator gradient since we're using dropdown */
  .sticky-submenu::after {
    display: none;
  }

  .sticky-submenu .container-fluid {
    padding: 0 15px;
  }

  /* Show dropdown on mobile */
  .mobile-submenu-dropdown {
    display: block;
  }

  /* Hide horizontal menu on mobile */
  .submenu-items {
    display: none;
  }

  /* Update mobile title and dropdown colors */
  .mobile-submenu-title {
    color: var(--submenu-text);
  }

  .mobile-submenu-dropdown .submenu-select {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    background-color: white !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23003d7a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
    border-radius: 8px;
    padding: 18px 50px 18px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
    text-indent: 0;
  }

  /* Force selected option text to be visible */
  .mobile-submenu-dropdown .submenu-select option:disabled {
    color: #999 !important;
    display: none;
  }

  .mobile-submenu-dropdown .submenu-select:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .mobile-submenu-dropdown .submenu-select:focus {
    border-color: var(--secondary-color);
    box-shadow:
      0 0 0 3px rgba(213, 164, 25, 0.3),
      0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .mobile-submenu-dropdown .submenu-select option {
    background-color: var(--footer-bg);
    color: var(--primary-color);
    padding: 18px 24px;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 600;
    margin: 4px 0;
  }

  .mobile-submenu-dropdown .submenu-select option:checked {
    background-color: var(--primary-color);
    color: white;
  }
}

/* Tablet Submenu (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .submenu-items {
    justify-content: center;
    gap: 5px;
  }

  .submenu-items li:first-child {
    display: none;
    /* Hide Corolla branding on tablet */
  }

  .submenu-items li[style*="flex: 1"] {
    display: none;
    /* Hide spacer on tablet */
  }

  .submenu-items a {
    padding: 16px 12px;
    font-size: 0.9rem;
  }

  .submenu-items a.build-btn {
    margin: 10px 12px;
    padding: 9px 18px;
  }
}

/* Small Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .submenu-items a {
    padding: 18px 12px;
    font-size: 0.95rem;
  }

  .submenu-items li:first-child a {
    padding: 18px 20px;
    font-size: 1.1rem;
  }
}

/* Page Title Section */
#page-title,
section#page-title {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  padding: 2rem 1rem 0.5rem !important;
  color: var(--primary-color) !important;
  text-align: center !important;
  min-height: auto !important;
  display: block !important;
  overflow: visible !important;
  border-bottom: none !important;
  border: none !important;
  margin-top: 85px !important;
  margin-bottom: 0 !important;
}

section#page-title + section {
  margin-top: 0 !important;
}

section#page-title + section.py-5 {
  padding-top: 1.5rem !important;
}

/* Reduce gap when title section is directly below hero slider */
.hero-section + #page-title,
.hero-section + section#page-title {
  margin-top: 0 !important;
  padding-top: 1rem !important;
}

#page-title .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  display: block !important;
  height: auto !important;
}

/* Ultra-specific H1 selector to override everything */
body section#page-title .container-fluid h1,
body section#page-title h1,
body #page-title .container-fluid h1,
body #page-title h1,
section#page-title .container-fluid h1,
section#page-title h1,
#page-title .container-fluid h1,
#page-title h1 {
  display: block !important;
  visibility: visible !important;
  color: #003d7a !important;
  background: transparent !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin: 0 auto 0.5rem auto !important;
  padding: 10px 20px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  max-width: 100% !important;
  width: auto !important;
  word-wrap: break-word !important;
  text-shadow: none !important;
  opacity: 1 !important;
  line-height: 1.2 !important;
  position: relative !important;
  z-index: 10 !important;
  height: auto !important;
  min-height: 50px !important;
  white-space: normal !important;
  text-align: center !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
}

/* Ultra-specific H2 selector */
body section#page-title .container-fluid h2,
body section#page-title h2,
body #page-title .container-fluid h2,
body #page-title h2,
section#page-title .container-fluid h2,
section#page-title h2,
#page-title .container-fluid h2,
#page-title h2 {
  display: block !important;
  visibility: visible !important;
  color: #495057 !important;
  background: transparent !important;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  margin: 0 auto 0 auto !important;
  padding: 5px 20px !important;
  max-width: 100% !important;
  width: auto !important;
  word-wrap: break-word !important;
  opacity: 1 !important;
  line-height: 1.4 !important;
  position: relative !important;
  z-index: 10 !important;
  text-align: center !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
}

/* Responsive page title */
@media (max-width: 768px) {
  #page-title {
    padding: 1.4rem 1rem 0.5rem !important;
    min-height: auto !important;
  }

  section#page-title + section.py-5 {
    padding-top: 1.1rem !important;
  }

  section#page-title h1,
  #page-title h1 {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 1px !important;
  }

  section#page-title h2,
  #page-title h2 {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 576px) {
  #page-title {
    padding: 1.25rem 1rem 0.5rem !important;
    min-height: auto !important;
  }

  section#page-title h1,
  #page-title h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.5px !important;
  }

  section#page-title h2,
  #page-title h2 {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
  }
}

/* Page Hero Section */
.page-hero {
  padding: 60px 0;
}

.page-hero h1 {
  line-height: 1.2;
}

/* Content Cards */
.content-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

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

/* Offer Section */
.offer-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  padding: 60px 0;
  color: white;
}

.offer-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.offer-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.zipcode-form {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.zipcode-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.zipcode-form button {
  padding: 12px 30px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.zipcode-form button:hover {
  background: darken(#d4202f, 10%);
  transform: translateY(-2px);
}

/* Build & Price Section */
.build-configurator {
  padding: 60px 0;
}

.config-section {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.config-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

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

.option-item {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000000;
  font-weight: 600;
}

.option-item:hover {
  border-color: var(--primary-color);
}

.option-item.selected {
  border-color: var(--primary-color);
  background: rgba(0, 61, 122, 0.1);
  color: var(--primary-color);
}

.price-display {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-top: 30px;
}

.price-display h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Specs Section */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: linear-gradient(135deg, #003d7a 0%, #00a3e0 100%);
  color: white;
  padding: 18px;
  text-align: left;
  font-weight: 600;
  border: none;
}

.table tbody td {
  padding: 18px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  color: #000000;
  font-weight: 500;
}

.table tbody tr:hover {
  background: rgba(0, 61, 122, 0.05);
}

.table tbody tr:last-child td {
  border-bottom: 2px solid #003d7a;
}

/* Tab styling */
.nav-tabs {
  border-bottom: 2px solid #e0e0e0;
  gap: 0;
}

.nav-tabs .nav-link {
  color: #000000;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color);
  background: rgba(0, 61, 122, 0.05);
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background: transparent;
  border-bottom-color: var(--secondary-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
/* Updated footer styling with WCAG compliant colors */
/* Shopping Tools Section - Above Footer */
.shoppingtools-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  padding: 60px 0;
  margin-top: 0px;
  position: relative;
  overflow: hidden;
}

.shoppingtools-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0L50 50L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="2" fill="none"/%3E%3Cpath d="M50 0L100 50L50 100L0 50Z" stroke="rgba(255,255,255,0.03)" stroke-width="2" fill="none"/%3E%3C/svg%3E');
  background-size: 100px 100px;
  opacity: 0.3;
  pointer-events: none;
}

.shopping-tool-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shopping-tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 61, 122, 0.15);
  border-color: var(--primary-color);
}

.shopping-tool-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0051a0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.shopping-tool-card:hover .shopping-tool-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f0b82f 100%);
}

.shopping-tool-icon i {
  font-size: 32px;
  color: #ffffff;
}

.shopping-tool-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.shopping-tool-card:hover .shopping-tool-title {
  color: var(--secondary-color);
}

.shopping-tool-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 72px;
}

.shopping-tool-link {
  display: inline-block;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--primary-color);
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid var(--primary-color);
}

.shopping-tool-card:hover .shopping-tool-link {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.shopping-tool-link i {
  transition: transform 0.3s ease;
}

.shopping-tool-card:hover .shopping-tool-link i {
  transform: translateX(5px);
}

.footer {
  background: var(--footer-bg) !important;
  color: var(--footer-text);
  padding: 60px 0 8px 0;
  margin-top: 0;
  border-top: 3px solid var(--primary-color);
}

/* Prevent large trailing gap at footer bottom */
.footer > .container {
  margin-bottom: 0 !important;
}

.footer .row.py-3:last-of-type {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.footer hr.border-secondary:last-of-type {
  margin-bottom: 0 !important;
}

.footer h6 {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  color: #000000;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.footer ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.footer ul li a:hover {
  color: var(--primary-color) !important;
}

.footer ul li a:hover::after {
  width: 100%;
}

.footer .social-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.footer .social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 4px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background: var(--secondary-color);
  color: #000000;
  transform: translateY(-3px);
}

.footer hr {
  background: var(--light-accent);
  margin: 30px 0;
  opacity: 0.5;
}

.footer .text-center {
  font-size: 0.85rem;
  color: #000000;
  font-weight: 500;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #595959;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

.footer-app-section {
  margin-top: 30px;
}

.footer-app-link {
  color: #999999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-app-link:hover {
  color: var(--primary-color);
}

.footer-app-icon {
  font-size: 1.3rem;
}

/* Footer Newsletter Subscription Section */
.footer-newsletter-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-newsletter-section h6 {
  color: var(--primary-color);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.footer-newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #333333;
  transition: all 0.3s ease;
}

.footer-newsletter-form .form-control::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.footer-newsletter-form .form-control:focus {
  background-color: #ffffff;
  border-color: var(--primary-color);
  color: #333333;
  box-shadow: 0 0 0 0.25rem rgba(0, 61, 122, 0.25);
}

.footer-newsletter-form .form-text {
  color: #000000;
  font-size: 0.75rem;
}

.footer-newsletter-form .btn-light {
  background-color: var(--primary-color);
  border: none;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-newsletter-form .btn-light:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer-newsletter-form .invalid-feedback {
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: rgba(255, 0, 0, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

#newsletter-thank-you {
  background-color: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.375rem;
  animation: fadeIn 0.5s ease-in;
}

#newsletter-thank-you i {
  color: #4caf50;
}

#newsletter-error {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-legal-links {
  font-size: 0.85rem;
  color: #000000;
}

.footer-legal-link {
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding: 8px 4px;
  min-height: 44px;
  line-height: 1.4;
}

.footer-legal-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--primary-color);
}

.footer-legal-link:hover::after {
  width: 100%;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #000000;
}

.feature-detail {
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-detail:hover {
  background: rgba(0, 61, 122, 0.05);
  transform: translateX(5px);
}

/* Scroll to top icon styling */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
  transition: all 0.3s ease;
}

.scroll-to-top i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(212, 32, 47, 0.4);
}

.scroll-to-top.show {
  display: flex;
}

/* Responsive Design */
/* Responsive hero sizing - maintain 16:9 aspect ratio */
@media (max-width: 1200px) {
  .hero-section {
    aspect-ratio: 16 / 9;
    min-height: 400px;
    max-height: 700px;
  }
}

@media (max-width: 992px) {
  .hero-section {
    aspect-ratio: 4 / 3;
    min-height: 400px;
    max-height: 600px;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    aspect-ratio: 1 / 1;
    min-height: 400px;
    max-height: 500px;
  }

  .slide-content h1 {
    font-size: 1.75rem;
    padding: 0 10px;
  }

  .slide-content p {
    font-size: 0.95rem;
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    aspect-ratio: 1 / 1;
    min-height: 350px;
    max-height: 450px;
  }

  .slide-content h1 {
    font-size: 1.5rem;
    padding: 0 15px;
    line-height: 1.3;
  }

  .slide-content p {
    font-size: 0.9rem;
    padding: 0 15px;
    line-height: 1.4;
  }
}

@media (max-width: 992px) {
  .display-4 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .mega-menu-content {
    padding: 40px;
  }

  .submenu-items {
    flex-wrap: wrap;
  }

  .submenu-items li {
    flex: 0 1 50%;
  }

  .submenu-items a {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
  }

  .navbar-brand {
    font-size: 1.1rem !important;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mega-menu-content {
    padding: 30px 20px;
  }

  .slider-controls {
    bottom: 20px;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on tablet */
    gap: 3px;
  }

  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zipcode-form {
    flex-direction: column;
  }

  .submenu-items li {
    flex: 0 1 33.33%;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .submenu-items li {
    flex: 0 1 50%;
  }

  .submenu-items a {
    padding: 10px 12px;
    font-size: 0.75rem;
  }

  .navbar-nav {
    margin-left: 0;
  }

  .navbar-nav .nav-link {
    margin: 5px 0;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .main-header,
  .footer,
  .sticky-submenu {
    display: none;
  }
}

/* Fixed modal backdrop to prevent scrolling issues and ensure proper z-index layering */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040 !important;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal {
  z-index: 1050 !important;
}

/* Prevent body shift when modal opens */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* Modal responsive styling for all screen sizes */
.modal-dialog {
  max-width: 500px;
}

.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #e0e0e0;
  padding: 24px;
}

.modal-body {
  padding: 24px;
  color: #000000;
}

.modal-footer {
  border-top: 1px solid #e0e0e0;
  padding: 16px 24px;
}

.modal-title {
  font-weight: 700;
  font-size: 1.25rem;
}

#newsletterEmail {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
}

#newsletterEmail:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 61, 122, 0.25);
}

/* Privacy Cookie Modal - Position on bottom left */
.modal-dialog-bottom-left {
  position: fixed;
  bottom: 20px;
  left: 20px;
  margin: 0;
  max-width: 420px;
  width: calc(100% - 40px);
}

.modal-dialog-bottom-left .modal-content {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideInFromLeft 0.4s ease-out;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Make privacy modal backdrop less intrusive */
#privacyCookieModal.modal.fade .modal-backdrop {
  opacity: 0.3;
}

/* Responsive adjustments for privacy modal */
@media (max-width: 576px) {
  .modal-dialog-bottom-left {
    bottom: 10px;
    left: 0;
    right: 0;
    transform: none;
    margin: 0 auto;
    max-width: 420px;
    width: calc(100% - 20px);
  }
}

/* Scroll to top button - fixed display and icon visibility */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
  transition: all 0.3s ease;
}

.scroll-to-top i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scroll-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(212, 32, 47, 0.4);
}

/* ===== COMPREHENSIVE RESPONSIVE FIXES ===== */

/* Prevent horizontal scroll on all devices */
html,
body {
  max-width: 100%;
}

/* Fix container overflow issues */
.container,
.container-fluid {
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== CONTAINER RESPONSIVE PADDING & MARGINS ===== */

/* Desktop (≥1200px) - Large padding and margins */
@media (min-width: 1200px) {
  .container {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 60px;
    padding-right: 60px;
    margin-top: 40px;
    margin-bottom: 40px;
  }
}

/* Tablet (768px - 1199px) - Medium padding and margins */
@media (min-width: 768px) and (max-width: 1199px) {
  .container {
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 40px;
    padding-right: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

/* Mobile (< 768px) - Small padding and margins */
@media (max-width: 767px) {
  .container {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* Ensure rows don't cause overflow */
.row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* Fix images and media */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Fix modals on mobile */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal-content {
    max-width: 100%;
  }

  /* Header and navigation fixes */
  .navbar-brand {
    font-size: 1.1rem !important;
  }

  .navbar-toggler {
    border: none;
    padding: 8px;
  }

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

  /* Fix tables on mobile */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Fix price display on mobile */
  .price-display {
    padding: 20px 15px;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-6 {
    font-size: 1.5rem;
  }
}

/* Fix for extra small devices */
@media (max-width: 576px) {
  /* Fix padding issues */
  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Fix hero section on mobile - maintain 16:9 aspect ratio */
  .hero-section {
    aspect-ratio: 16 / 9;
    max-height: 60vh;
  }

  .slide-content h1 {
    font-size: 1.75rem !important;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  /* Fix CTA buttons */
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .cta-buttons .btn {
    width: 100%;
    padding: 10px 20px;
  }

  /* Fix gallery on mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
    gap: 3px;
  }

  /* Fix config sections */
  .config-section {
    padding: 20px 15px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  /* Fix footer */
  .footer {
    padding: 40px 0 6px 0;
  }

  .footer .col-md-3 {
    margin-bottom: 30px;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    aspect-ratio: 16 / 9;
    max-height: 80vh;
  }
}

/* Tablet specific fixes */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
  }

  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Fix potential overflow from animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== TYPES OF RVS SECTION STYLES ===== */

/* RV Type Card Container */
.rv-type-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.rv-type-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* RV Type Header */
.rv-type-header {
  padding: 30px 25px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #002a5c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.rv-type-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: headerShine 8s linear infinite;
}

@keyframes headerShine {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-30%, -30%);
  }
}

.lance-header {
  background: linear-gradient(135deg, #003d7a 0%, #002a5c 100%);
}

.squire-header {
  background: linear-gradient(135deg, #d5a419 0%, #b8890f 100%);
}

.evolve-header {
  background: linear-gradient(135deg, #867555 0%, #6b5d44 100%);
}

.rv-type-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.rv-type-icon i {
  font-size: 32px;
  color: white;
}

.rv-type-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rv-type-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 400;
}

/* RV Type Body */
.rv-type-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* RV Type Image */
.rv-type-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.rv-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rv-type-card:hover .rv-type-image img {
  transform: scale(1.1);
}

.rv-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rv-type-badge.badge-value {
  background: var(--secondary-color);
}

.rv-type-badge.badge-new {
  background: #28a745;
}

/* RV Type Content */
.rv-type-content {
  padding: 25px;
  flex: 1;
}

.rv-type-content h5 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* RV Categories */
.rv-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rv-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.rv-category-tag:hover {
  background: #002a5c;
  color: white;
  border-color: #002a5c;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 61, 122, 0.35);
  text-decoration: none;
}

.rv-category-tag i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* RV Features List */
.rv-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rv-features-list li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.rv-features-list li:last-child {
  border-bottom: none;
}

.rv-features-list li i {
  color: #28a745;
  margin-right: 12px;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* RV Stats */
.rv-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  border-top: 2px solid #f0f0f0;
}

.rv-stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.rv-stat-item strong {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.rv-stat-item span {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* RV Type Footer */
.rv-type-footer {
  padding: 25px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* Responsive button sizing for rv-type-footer action row */
.rv-type-footer .btn {
  font-size: 0.95rem;
}

@media (min-width: 576px) {
  .rv-type-footer .btn.flex-sm-fill {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 992px) {
  .rv-type-footer .btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

.btn-rv-primary {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 25px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-rv-primary:hover {
  background: #002a5c;
  color: white;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
}

.btn-rv-primary i {
  transition: transform 0.3s ease;
}

.btn-rv-primary:hover i {
  transform: translateX(5px);
}

/* ===== RV TYPES RESPONSIVE STYLES ===== */

/* Desktop (≥1200px) - Optimal 3-column layout */
@media (min-width: 1200px) {
  .rv-type-card {
    max-width: 100%;
  }

  .rv-type-content {
    padding: 30px;
  }
}

/* Tablet Landscape (992px - 1199px) - 3 columns with adjusted spacing */
@media (min-width: 992px) and (max-width: 1199px) {
  .rv-type-header {
    padding: 25px 20px;
  }

  .rv-type-title {
    font-size: 1.75rem;
  }

  .rv-type-icon {
    width: 60px;
    height: 60px;
  }

  .rv-type-icon i {
    font-size: 28px;
  }

  .rv-type-content {
    padding: 20px;
  }

  .rv-category-tag {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .rv-category-tag i {
    font-size: 1.05rem;
  }

  .rv-features-list li {
    font-size: 0.9rem;
    padding: 8px 0;
  }
}

/* Tablet Portrait (768px - 991px) - 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
  .rv-type-header {
    padding: 25px 20px;
  }

  .rv-type-title {
    font-size: 1.75rem;
  }

  .rv-type-content {
    padding: 20px;
  }

  .rv-type-image {
    height: 220px;
  }

  .rv-category-tag {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .rv-category-tag i {
    font-size: 1rem;
  }

  /* Make third card span full width on tablet */
  .row.g-4 .col-lg-4:last-child {
    grid-column: span 2;
  }
}

/* Mobile (< 768px) - Single column, stacked layout */
@media (max-width: 767px) {
  #types-of-rvs-section .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .rv-type-card {
    margin-bottom: 20px;
  }

  .rv-type-header {
    padding: 25px 20px;
  }

  .rv-type-title {
    font-size: 1.6rem;
  }

  .rv-type-subtitle {
    font-size: 0.9rem;
  }

  .rv-type-icon {
    width: 60px;
    height: 60px;
  }

  .rv-type-icon i {
    font-size: 28px;
  }

  .rv-type-image {
    height: 200px;
  }

  .rv-type-content {
    padding: 20px;
  }

  .rv-type-content h5 {
    font-size: 1rem;
  }

  .rv-categories {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .rv-category-tag {
    padding: 13px 22px;
    font-size: 0.95rem;
    flex: 0 1 auto;
  }

  .rv-category-tag i {
    font-size: 1rem;
  }

  .rv-features-list li {
    font-size: 0.9rem;
    padding: 8px 0;
  }

  .rv-stats {
    padding: 15px 0;
  }

  .rv-stat-item strong {
    font-size: 1.3rem;
  }

  .rv-stat-item span {
    font-size: 0.75rem;
  }

  .rv-type-footer {
    padding: 20px;
  }

  .btn-rv-primary {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Extra Small Mobile (< 480px) - Optimized for small screens */
@media (max-width: 479px) {
  .rv-type-title {
    font-size: 1.4rem;
  }

  .rv-type-header {
    padding: 20px 15px;
  }

  .rv-type-icon {
    width: 55px;
    height: 55px;
  }

  .rv-type-icon i {
    font-size: 24px;
  }

  .rv-type-image {
    height: 180px;
  }

  .rv-type-content {
    padding: 15px;
  }

  .rv-categories {
    gap: 6px;
    flex-wrap: wrap;
  }

  .rv-category-tag {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-width: 2px;
  }

  .rv-category-tag i {
    font-size: 0.95rem;
    margin-right: 6px;
  }

  .rv-features-list li {
    font-size: 0.85rem;
    padding: 7px 0;
  }

  .rv-features-list li i {
    font-size: 1rem;
    margin-right: 10px;
  }

  .rv-stats {
    flex-wrap: wrap;
    gap: 15px;
  }

  .rv-stat-item {
    flex: 1 1 45%;
  }
}

/* ===== BOOTSTRAP PRIMARY COLOR OVERRIDE ===== */
/* Override Bootstrap's primary color with Lance Camper brand colors */

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #002a5c !important;
  border-color: #002a5c !important;
  color: white !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #003d7a !important;
  border-color: #003d7a !important;
  color: #ffffff !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

/* Info button override to use primary color */
.btn-info {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
  background-color: #002a5c !important;
  border-color: #002a5c !important;
  color: white !important;
}

/* ===== BRAND FAMILY SLIDER SECTION ===== */
.brand-family-slider-container {
  position: relative;
  overflow: visible;
  padding: 40px 0;
  margin: 0;
}

/* Force horizontal layout - override any article defaults */
.brand-slider-wrapper > * {
  display: block;
  float: none;
}

.rv-types-slider-wrapper > * {
  display: block;
  float: none;
}

.brand-slider-track {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0 15px;
}

.brand-slider-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  transition: transform 0.5s ease-in-out;
  gap: 30px;
  padding: 0;
  width: fit-content;
}

.brand-card {
  width: calc((100vw - 280px) / 3);
  min-width: calc((100vw - 280px) / 3);
  max-width: calc((100vw - 280px) / 3);
  flex: 0 0 auto;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: block;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 61, 122, 0.15);
}

.brand-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.brand-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  transition: transform 0.3s ease;
}

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

.brand-card-content {
  padding: 30px;
}

.brand-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.brand-card-description {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.brand-card-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
  margin-top: 20px;
}

.brand-stat {
  text-align: center;
}

.brand-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.brand-stat-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.brand-card-cta {
  margin-top: 20px;
}

.brand-card-cta .btn {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Slider Navigation Controls */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
  left: -25px;
}

.slider-nav-btn.next {
  right: -25px;
}

.slider-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider-pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-pagination-dot.active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 6px;
}

/* Horizontal Scroll Indicator */
.slider-scroll-indicator {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.slider-scroll-progress {
  height: 100%;
  background: var(--secondary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
  position: absolute;
  left: 0;
  top: 0;
}

/* ===== RV TYPES SLIDER SECTION ===== */
.rv-types-slider-container {
  position: relative;
  overflow: visible;
  padding: 40px 0;
  margin: 0;
}

.rv-types-slider-track {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0 15px;
}

.rv-types-slider-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  transition: transform 0.5s ease-in-out;
  gap: 25px;
  padding: 0;
  width: fit-content;
}

.rv-type-slide {
  width: calc((100vw - 260px) / 3);
  min-width: calc((100vw - 260px) / 3);
  max-width: calc((100vw - 260px) / 3);
  flex: 0 0 auto;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  display: block;
}

.rv-type-slide:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 61, 122, 0.2);
}

.rv-type-slide-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.rv-type-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rv-type-slide:hover .rv-type-slide-image img {
  transform: scale(1.08);
}

.rv-type-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 25px 20px;
  color: white;
}

.rv-type-category {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.rv-type-slide-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
}

.rv-type-slide-content {
  padding: 25px;
}

.rv-type-slide-description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.rv-type-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.rv-feature-badge {
  background: #f0f4f8;
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rv-feature-badge i {
  font-size: 0.8rem;
}

.rv-type-slide-cta {
  display: flex;
  gap: 10px;
}

.rv-type-slide-cta .btn {
  flex: 1;
  padding: 10px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES FOR SLIDERS ===== */

/* Tablet (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .brand-slider-track,
  .rv-types-slider-track {
    padding: 0 15px;
  }

  .brand-card {
    width: calc((100vw - 120px) / 2);
    min-width: calc((100vw - 120px) / 2);
    max-width: calc((100vw - 120px) / 2);
    flex: 0 0 auto;
  }

  .rv-type-slide {
    width: calc((100vw - 110px) / 2);
    min-width: calc((100vw - 110px) / 2);
    max-width: calc((100vw - 110px) / 2);
    flex: 0 0 auto;
  }

  .brand-card-image {
    height: 240px;
  }

  .rv-type-slide-image {
    height: 280px;
  }

  .slider-nav-btn {
    width: 45px;
    height: 45px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .brand-slider-track,
  .rv-types-slider-track {
    padding: 0 15px;
  }

  .brand-card {
    width: calc(100vw - 30px);
    min-width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    flex: 0 0 auto;
  }

  .rv-type-slide {
    width: calc(100vw - 30px);
    min-width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    flex: 0 0 auto;
  }

  .brand-slider-wrapper,
  .rv-types-slider-wrapper {
    gap: 20px;
  }

  .brand-card-image {
    height: 200px;
  }

  .rv-type-slide-image {
    height: 250px;
  }

  .brand-card-content,
  .rv-type-slide-content {
    padding: 20px;
  }

  .brand-card-title,
  .rv-type-slide-title {
    font-size: 1.4rem;
  }

  .slider-nav-btn {
    width: 40px;
    height: 40px;
  }

  .slider-nav-btn.prev {
    left: 10px;
  }

  .slider-nav-btn.next {
    right: 10px;
  }

  .brand-card-stats {
    flex-direction: column;
    gap: 15px;
  }

  .rv-type-slide-cta {
    flex-direction: column;
  }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 479px) {
  .brand-family-slider-container,
  .rv-types-slider-container {
    padding: 20px 0;
  }

  .brand-card-image {
    height: 180px;
  }

  .rv-type-slide-image {
    height: 220px;
  }

  .slider-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* ===== FEATURED STORIES SECTION ===== */
#featured-stories-section .row {
  row-gap: 2.5rem !important;
}

.featured-story-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.featured-story-link:hover {
  text-decoration: none;
  color: inherit;
}

.featured-story-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  height: 100%;
  cursor: pointer;
}

.featured-story-link:hover .featured-story-card {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 61, 122, 0.15);
  border-color: var(--secondary-color);
}

.featured-story-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.featured-story-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

.featured-story-link:hover .featured-story-image::before {
  opacity: 1;
}

.featured-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.featured-story-link:hover .featured-story-image img {
  transform: scale(1.15) rotate(1deg);
  filter: brightness(1.1);
}

.story-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary-color);
  color: white;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.featured-story-link:hover .story-category-badge {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(213, 164, 25, 0.4);
}

.featured-story-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: white;
  transition: background 0.3s ease;
}

.featured-story-link:hover .featured-story-content {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.story-meta {
  margin-bottom: 12px;
}

.story-category {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.featured-story-link:hover .story-category {
  color: var(--secondary-color);
}

.story-title {
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 60px;
  transition: color 0.3s ease;
}

.featured-story-link:hover .story-title {
  color: #001f3f;
}

.story-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.featured-story-link:hover .story-excerpt {
  color: #333;
}

.story-read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  margin-top: auto;
  padding: 8px 16px;
  border-radius: 4px;
  background: transparent;
}

.featured-story-link:hover .story-read-more {
  color: var(--secondary-color);
  background: transparent;
  text-decoration: none;
  padding-left: 20px;
}

.story-read-more i {
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.featured-story-link:hover .story-read-more i {
  transform: translateX(8px);
}

/* Featured Stories Responsive Styles */
@media (max-width: 991px) {
  .featured-story-card {
    margin-bottom: 20px;
  }

  .featured-story-image {
    height: 200px;
  }

  .story-title {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .featured-story-image {
    height: 250px;
  }

  .featured-story-content {
    padding: 20px;
  }

  .story-title {
    font-size: 1.1rem;
  }
}

/* ========================================
   Footer Rotating Banner Section
   ======================================== */
.footer-banner-section {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #000;
}

.footer-banner-image {
  width: 100%;
  height: auto;
  line-height: 0;
}

.footer-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

/* Responsive adjustments for banner */
@media (max-width: 768px) {
  .footer-banner-image img {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .footer-banner-image img {
    max-height: 200px;
  }
}

/* ========================================
   Why Choose Lance Features Section
   ======================================== */
.why-choose-section {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  position: relative;
}

.why-choose-eyebrow {
  color: var(--secondary-color);
  letter-spacing: 0.15em;
}

.text-lance-gradient {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffa500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-choose-description {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

.why-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  position: relative;
}

.why-feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(213, 164, 25, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.why-feature-icon-bg {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(213, 164, 25, 0.12);
  border: 1.5px solid rgba(213, 164, 25, 0.25);
  transition: all 0.3s ease;
}

.why-feature-icon-bg i {
  color: var(--secondary-color);
  font-size: 1.75rem;
}

.why-feature-card:hover .why-feature-icon-bg {
  background: rgba(213, 164, 25, 0.2);
  border-color: var(--secondary-color);
  transform: scale(1.08);
}

.why-feature-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.65;
}

.tracking-wider {
  letter-spacing: 0.15em;
}

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
  }
}

@media (max-width: 767px) {
  .why-choose-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .why-feature-icon-bg {
    width: 3rem;
    height: 3rem;
  }

  .why-feature-icon-bg i {
    font-size: 1.5rem;
  }

  .why-choose-description {
    font-size: 1rem;
  }
}

/* ========================================
   Featured Stories Slider
   ======================================== */
.featured-stories-slider-container {
  overflow: visible;
  padding: 0 70px;
  margin: 0 auto;
  position: relative;
}

.featured-stories-slider-track {
  overflow: hidden;
  padding: 20px 0;
}

.featured-stories-slider-wrapper {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease-in-out;
}

.featured-story-slide {
  flex: 0 0 calc(25% - 1.125rem);
  max-width: calc(25% - 1.125rem);
}

.featured-story-slide .featured-story-link {
  display: block;
  height: 100%;
}

/* Responsive adjustments for featured stories slider */
@media (max-width: 1199px) {
  .featured-stories-slider-container {
    padding: 0 60px;
  }

  .featured-story-slide {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}

@media (max-width: 991px) {
  .featured-stories-slider-container {
    padding: 0 55px;
  }

  .featured-stories-slider-container .slider-nav-btn {
    width: 45px;
    height: 45px;
  }

  .featured-stories-slider-container .slider-nav-btn.prev {
    left: 5px;
  }

  .featured-stories-slider-container .slider-nav-btn.next {
    right: 5px;
  }
}

@media (max-width: 767px) {
  .featured-stories-slider-container {
    padding: 0 50px;
  }

  .featured-story-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .featured-stories-slider-container .slider-nav-btn {
    width: 42px;
    height: 42px;
  }

  .featured-stories-slider-container .slider-nav-btn.prev {
    left: 4px;
  }

  .featured-stories-slider-container .slider-nav-btn.next {
    right: 4px;
  }
}

@media (max-width: 479px) {
  .featured-stories-slider-container {
    padding: 0 48px;
  }

  .featured-story-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .featured-stories-slider-container .slider-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .featured-stories-slider-container .slider-nav-btn.prev {
    left: 4px;
  }

  .featured-stories-slider-container .slider-nav-btn.next {
    right: 4px;
  }
}

/* ========================================
   Full Width Series Row Styles
   ======================================== */
/* H2 Text Highlighting for Better Readability */
.fullwidth-series-row h2 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Button Styles */
.fullwidth-series-row .btn-light {
  background-color: var(--primary-color);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.fullwidth-series-row .btn-light:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  border: 2px solid var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fullwidth-series-row .btn-light:focus {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* ===== FOOTER MOBILE ACCORDION ===== */
.footer-mobile-accordion {
  margin-bottom: 2rem;
}

.footer-mobile-accordion .accordion-button {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  box-shadow: none;
  padding: 1rem 1.25rem;
  background: transparent;
}

.footer-mobile-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #e0e0e0;
}

.footer-mobile-accordion .accordion-button:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

@media (min-width: 768px) {
  .footer-mobile-accordion {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .footer .row.g-5.mb-5 {
    display: none !important;
  }
}
