/* Force header + hero to match live Andrew Toms screenshot exactly */

#header_v13 .toplink {
  background-color: #2a2a2a !important;
  min-height: 36px !important;
}
#header_v13 .toplink .topContact li a,
#header_v13 .toplink .topContact .fa,
#header_v13 .toplink .social-icon > li > a {
  color: #ffffff !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
}
#header_v13 .toplink .social-icon li a:hover {
  background-color: transparent !important;
  color: #ccc !important;
}

#header_v13 .top-wrap,
#header_v13 .menu-header {
  background-color: #ffffff !important;
}
#header_v13 .menu-header {
  min-height: 110px !important;
  padding-bottom: 8px !important;
}

#header_v13 .logo .navbar-brand,
#header_v13 .logo .navbar-brand img {
  color: #1e3a6e !important;
}
#header_v13 .logo {
  left: 0 !important;
  max-width: 400px !important;
  width: 100% !important;
  height: 107px !important;
  min-height: 107px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
#header_v13 .logo.hidden-md {
  display: none !important;
}
@media only screen and (max-width: 900px) {
  #header_v13 .logo.hidden-xs {
    display: none !important;
  }
  #header_v13 .logo.hidden-md {
    display: flex !important;
  }
}
#header_v13 .logo .navbar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 12px !important;
}
#header_v13 .logo img,
#header_v13 .logo .navbar-brand img {
  max-height: 48px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}
#header_v13 .sticky_logo {
  display: none !important;
}
#header_v13 .sticky_navbar.sticky .sticky_logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  max-width: 340px !important;
  width: auto !important;
}
#header_v13 .sticky_navbar.sticky .sticky_logo img {
  max-height: 30px !important;
  max-width: 300px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

#header_v13 .contact_number {
  display: block !important;
  text-align: right !important;
  padding-top: 18px !important;
  padding-right: 0 !important;
}
@media only screen and (max-width: 900px) {
  #header_v13 .contact_number {
    display: none !important;
  }
}
#header_v13 .contact_number > p.lg-numb a,
#header_v13 .contact_number > p > a {
  color: #1e3a6e !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  font-family: poppinsmedium, "Poppins", Helvetica, Arial, sans-serif !important;
  text-decoration: none !important;
}
#header_v13 .contact_number > p.hdr-mob a {
  color: #1e3a6e !important;
  font-size: 18px !important;
}

#header_v13 .top-navigation > ul {
  text-align: right !important;
}
#header_v13 .top-navigation ul li a {
  color: #444444 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  font-family: poppinsregular, "Poppins", Helvetica, Arial, sans-serif !important;
  letter-spacing: 0.5px !important;
  padding: 8px 12px !important;
  text-transform: uppercase !important;
}
#header_v13 .top-navigation ul li:hover > a,
#header_v13 .top-navigation ul li.active > a {
  color: #1e3a6e !important;
  background: transparent !important;
}
#header_v13 .mobile-dd {
  color: #444444 !important;
}

/* Hero: aspect-ratio model (mobile overrides in media query below) */
#banner_v21 .banner-wrap {
  min-height: 0 !important;
  height: auto !important;
}
#banner_v21 .banner-wrap .item {
  min-height: 0 !important;
  height: 0 !important;
  padding-top: 41% !important;
  background-position: center center !important;
}
#banner_v21 .banner-title.webbs-banner-title {
  top: auto !important;
  bottom: 18% !important;
  min-height: auto !important;
}
#banner_v21 .banner-title-heading {
  padding: 0 !important;
  margin: 0 auto !important;
}
#banner_v21 .banner-title-heading h2 {
  font-size: 30px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding-bottom: 30px !important;
  color: #fff !important;
  font-family: "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
#banner_v21 .banner-info {
  padding-bottom: 28px !important;
  font-size: 14px !important;
  color: #fff !important;
  font-family: "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
#banner_v21 .banner-info p {
  font-family: "Roboto Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
#banner_v21 .btn.btn-outline.sliderbtn {
  background: transparent !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  padding: 12px 28px !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
}
#banner_v21 .btn.btn-outline.sliderbtn:hover {
  background: #fff !important;
  color: #111 !important;
}

/* Search sits under hero, not covering it */
#banner_v21 .innerWhiteBox.webbe-search-bar {
  position: relative !important;
  height: auto !important;
  background: #111 !important;
  padding: 28px 15px 36px !important;
  margin: 0 !important;
}
#banner_v21 .form-parent {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  position: relative !important;
  top: auto !important;
}
#banner_v21 .banner-form-title h2 {
  color: #fff !important;
  text-align: center !important;
  margin-bottom: 18px !important;
  font-size: 22px !important;
  text-transform: uppercase !important;
}
#banner_v21 .custom-form-control {
  background: #fff !important;
  color: #222 !important;
  border: none !important;
  height: 44px !important;
}
#banner_v21 .btn.search_finance_btn,
#banner_v21 .search_finance_btn {
  background: #1e3a6e !important;
  border: none !important;
  color: #fff !important;
  padding: 12px 28px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
#banner_v21 .slider-labels .caption,
#banner_v21 .slider-labels .caption p {
  color: #fff !important;
}

@media only screen and (max-width: 900px) {
  #header_v13 .top-wrap {
    background-color: #fff !important;
    min-height: 60px !important;
    height: auto !important;
  }
  #header_v13 .menu-header {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    /* Keep nav in flow when open, but don't reserve desktop header height */
    display: block !important;
  }
  #header_v13 .menu-header > .container-center {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
  }
  #header_v13 .logo {
    height: auto !important;
    min-height: 0 !important;
  }
  #header_v13 .logo.hidden-md {
    height: 60px !important;
    min-height: 60px !important;
  }
  #header_v13 .humberger svg path,
  #header_v13 .humberger g {
    stroke: #333 !important;
    fill: #333 !important;
  }
  #banner_v21 .banner-wrap,
  #banner_v21 .banner-wrap .item {
    height: auto !important;
    min-height: 0 !important;
  }
  #banner_v21 .banner-wrap .item {
    padding-top: 41% !important;
  }
  #banner_v21 .webbs-banner-title .banner-title-heading {
    padding: 6px 10px !important;
  }
  #banner_v21 .banner-title-heading h2 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    padding-bottom: 4px !important;
  }
  #banner_v21 .banner-info {
    padding-bottom: 6px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  #banner_v21 .btn.btn-outline.details_btn {
    height: 26px !important;
    line-height: 24px !important;
    font-size: 13px !important;
    padding: 0 14px !important;
    border-width: 1px !important;
  }
}

/* Footer — match reference: logo LEFT + address RIGHT on one row */
#cd5_module249 .m249_boxleft {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 0 !important;
}
#cd5_module249 .m249_boxleft1,
#cd5_module249 .m249_boxleft1 a {
  flex: 0 0 auto !important;
  max-width: 170px !important;
  width: auto !important;
}
#cd5_module249 .m249_boxleft img,
#cd5_module249 .m249_boxleft1 img {
  max-width: 170px !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  padding-right: 16px !important;
}
#cd5_module249 .m249_address {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
@media only screen and (max-width: 599px) {
  #cd5_module249 .m249_boxleft {
    width: 100% !important;
  }
  #cd5_module249 .m249_boxleft1,
  #cd5_module249 .m249_boxleft1 a {
    max-width: 150px !important;
  }
  #cd5_module249 .m249_boxleft img,
  #cd5_module249 .m249_boxleft1 img {
    max-width: 150px !important;
  }
  #cd5_module249 .m249_address {
    width: calc(100% - 150px) !important;
    text-align: right !important;
  }
  #cd5_module249 .m249_boxright {
    width: 100% !important;
    text-align: right !important;
  }
  #cd5_module249 .m249_contact_links {
    text-align: right !important;
  }
}

/* Prestige footer — brand tweaks only */
#cd5_module249.pac-footer .stock_update_button {
  background: #6080b1 !important;
  color: #fff !important;
  border: 1px solid #6080b1 !important;
}
#cd5_module249.pac-footer .stock_update_button:hover {
  background: #4c6a98 !important;
  border-color: #4c6a98 !important;
  color: #fff !important;
}
#cd5_module249.pac-footer .used_car_list li a img {
  display: none !important;
}
#cd5_module249.pac-footer .copyright-section .cardealer {
  display: none !important;
}
#cd5_module249.pac-footer .quick-links-group li a:hover {
  color: #6080b1 !important;
}
#cd5_module249.pac-footer .m249_contact_links:hover {
  color: #6080b1 !important;
}

/* --- Home featured: full-bleed photo, centered content (matches live) --- */
@media only screen and (min-width: 901px) {
  #cd5_m278 .car-featured-wrapper {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
  }
  /* Photo spans the whole viewport width of the section */
  #cd5_m278 .car-feature-container {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
  }
  #cd5_m278 .car-featured-leftCol {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  #cd5_m278 .carFeature-detailBox {
    width: 100% !important;
    height: 100% !important;
    transition: opacity 0.35s ease !important;
  }
  /* Card stays in the centered column on the right */
  #cd5_m278 .car-featured-rightCol {
    position: relative !important;
    z-index: 2 !important;
    margin-left: auto !important;
    width: 100% !important;
    max-width: 500px !important;
    box-sizing: border-box !important;
  }
  #cd5_m278 .carFeature-logo {
    width: 70px !important;
  }
  #cd5_m278 .carFeature-logo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  #cd5_325 .wrapper {
    display: none !important;
  }
}

/* Brands + body: full-bleed, even grid (no short wrapped last row) */
#cd5_module407,
#CD5_module_362,
#CD5_module_149,
#CD5_module135 {
  display: block !important;
  visibility: visible !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
#cd5_module407 .container-center,
#CD5_module_362 .featured-section,
#CD5_module_149 .featured-section,
#CD5_module135 .container-center,
#CD5_module135 .header_text {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: clamp(12px, 2vw, 28px) !important;
  padding-right: clamp(12px, 2vw, 28px) !important;
  box-sizing: border-box !important;
}
#cd5_module407 .car-list-re-example {
  max-width: none !important;
  width: 100% !important;
}
#CD5_module_362 .car-img,
#CD5_module_362 .list-box .car-img,
#CD5_module_362 .list-box:hover .car-img {
  opacity: 1 !important;
}
#CD5_module_362 .car-title,
#CD5_module_362 .list-box:hover .car-title {
  color: #2b2b2b !important;
}

/* 18 brands → 9×2 even grid across the full width */
#CD5_module_362 .pac-brand-grid,
#CD5_module_362 #owl-product_v362 {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 0 16px !important;
  float: none !important;
  justify-content: stretch !important;
}
@media only screen and (max-width: 1100px) {
  #CD5_module_362 .pac-brand-grid,
  #CD5_module_362 #owl-product_v362 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
@media only screen and (max-width: 700px) {
  #CD5_module_362 .pac-brand-grid,
  #CD5_module_362 #owl-product_v362 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
#CD5_module_362 .pac-brand-grid > .item,
#CD5_module_362 #owl-product_v362 > .item {
  float: none !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}
#CD5_module_362 .pac-brand-grid .list-box,
#CD5_module_362 #owl-product_v362 > .item .list-box {
  float: none !important;
  width: 100% !important;
}
#CD5_module_362 .pac-brand-grid .car-img,
#CD5_module_362 #owl-product_v362 .car-img {
  opacity: 1 !important;
}
#CD5_module_362 .pac-brand-grid .car-title,
#CD5_module_362 #owl-product_v362 .car-title {
  color: #2b2b2b !important;
  border-right: solid 1px #bfbfbf !important;
  font-size: clamp(10px, 1vw, 13px) !important;
}
#CD5_module_362 .pac-brand-grid .item:nth-child(9n) .car-title,
#CD5_module_362 #owl-product_v362 > .item:nth-child(9n) .car-title {
  border-right: 0 !important;
}
#CD5_module_362 .owl-nav {
  display: none !important;
}

#cd5_m278 .featured-vehicle-flip {
  width: 100% !important;
  max-width: 100% !important;
}
#cd5_m278 .featured-vehicle-flip .owl-stage-outer {
  width: 100% !important;
  overflow: hidden !important;
}
#cd5_m278 .featured-vehicle-flip .owl-item .item,
#cd5_m278 .featured-vehicle-flip-box {
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  box-sizing: border-box !important;
}
#cd5_m278 .featured-vehicle-flip .owl-item {
  float: left !important;
}
/* Featured arrows sit on the card (bottom-right), beside View Details */
#cd5_m278 .car-featured-rightCol {
  position: relative !important;
}
#cd5_m278 .car-featured-rightCol .hsa-swap,
#cd5_m278 .car-featured-rightCol .featured-owl-nav {
  position: absolute !important;
  right: 12px !important;
  bottom: 22px !important;
  left: auto !important;
  top: auto !important;
  width: 92px !important;
  height: 40px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  z-index: 20 !important;
  pointer-events: auto !important;
}
#cd5_m278 .car-featured-rightCol .hsa-swap .swiper-button-prev,
#cd5_m278 .car-featured-rightCol .hsa-swap .swiper-button-next,
#cd5_m278 .featured-owl-nav .swiper-button-prev,
#cd5_m278 .featured-owl-nav .swiper-button-next {
  position: static !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: none !important;
  color: #6080b1 !important;
  line-height: 1 !important;
}
#cd5_m278 .car-featured-rightCol .hsa-swap .swiper-button-prev::after,
#cd5_m278 .car-featured-rightCol .hsa-swap .swiper-button-next::after,
#cd5_m278 .featured-owl-nav .swiper-button-prev::after,
#cd5_m278 .featured-owl-nav .swiper-button-next::after {
  display: none !important;
  content: none !important;
}
#cd5_m278 .car-featured-rightCol .hsa-swap i,
#cd5_m278 .featured-owl-nav i {
  font-size: 28px !important;
  line-height: 1 !important;
}
#cd5_m278 .featured-vehicle-flip-box .car-flip-view-detail {
  padding-right: 96px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

@media only screen and (max-width: 900px) {
  #cd5_m278 .car-featured-wrapper {
    padding: 0 !important;
    overflow: hidden !important;
  }
  #cd5_m278 .car-featured-leftCol {
    display: none !important;
  }
  #cd5_m278 .car-featured-rightCol {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    margin: 0 auto !important;
  }
  #cd5_m278 .car-flip-image {
    background-size: cover !important;
    background-position: center !important;
  }
  #cd5_325 .m325_mainbox {
    display: none !important;
  }
  #cd5_325 .wrapper {
    display: block !important;
  }
  #cd5_325 .m325_box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    box-sizing: border-box !important;
  }
  #cd5_325 #owl-product_m325 {
    display: block !important;
    width: 100% !important;
  }
  #cd5_325 #owl-product_m325 .owl-item {
    float: left !important;
  }
  #cd5_325 #owl-product_m325 .list-box,
  #cd5_325 #owl-product_m325 .m325_stepcarosel {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  #cd5_325 #owl-product_m325 .m325_stepcarosel a {
    display: block !important;
    width: 100% !important;
  }
  #cd5_module252 .m252_box1,
  #cd5_module252 .m252_box2,
  #cd5_module252 .m252_box3,
  #cd5_module252 .m252_boxright {
    width: 100% !important;
    float: none !important;
  }
  #CD5_module_362,
  #CD5_module_149 {
    overflow: hidden !important;
  }
  #CD5_module_362 .owl-carousel,
  #CD5_module_149 .owl-carousel {
    width: 100% !important;
  }
  /* Live uses 40px gutters for arrows — tighten on phones so more items fit */
  #CD5_module_362 .list-wrap,
  #CD5_module_149 .list-wrap {
    margin-left: 36px !important;
    margin-right: 36px !important;
  }
  #CD5_module_362 .car-img {
    opacity: 1 !important;
  }
  #CD5_module_362 .car-img img {
    width: 60px !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    margin: 0 auto !important;
  }
  #CD5_module_362 .car-title {
    font-size: 14px !important;
    padding: 10px !important;
    color: #9c9c9c !important;
  }
  #CD5_module_362 .restactiveitem .car-title {
    border-right: solid 1px #bfbfbf !important;
  }
  #CD5_module_362 .lastactiveitem .car-title {
    border-right: 0 !important;
  }
  #CD5_module_149 .list-box {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  #CD5_module_149 .list-box a img {
    max-width: 250px !important;
    width: 90% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
  #CD5_module_149 .car-title {
    font-size: 14px !important;
    padding-top: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
    text-align: center !important;
  }
  /* Hide navText glyphs — FontAwesome ::after is the real arrow */
  #CD5_module_362 .owl-prev,
  #CD5_module_362 .owl-next,
  #CD5_module_149 .owl-prev,
  #CD5_module_149 .owl-next,
  #cd5_325 .owl-prev,
  #cd5_325 .owl-next {
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
  }
  #CD5_module_362 .owl-prev span,
  #CD5_module_362 .owl-next span,
  #CD5_module_149 .owl-prev span,
  #CD5_module_149 .owl-next span,
  #cd5_325 .owl-prev span,
  #cd5_325 .owl-next span {
    display: none !important;
  }
  #CD5_module_362 .owl-prev:after,
  #CD5_module_362 .owl-next:after,
  #CD5_module_149 .owl-prev:after,
  #CD5_module_149 .owl-next:after,
  #cd5_325 .owl-prev:after,
  #cd5_325 .owl-next:after {
    color: #2b2b2b !important;
    font-size: 28px !important;
  }
  /* Scraped line-height:18px on 25px type overlaps on wrap — fix mobile */
  #CD5_module135 {
    min-height: 0 !important;
    padding-top: 28px !important;
    padding-bottom: 16px !important;
  }
  #CD5_module135 .header_text {
    font-size: 20px !important;
    line-height: 1.25 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
