.page-wrapper {
  max-width: 100%;
}
body {
  font-family: 'Nunito Sans';
  padding-top: 0 !important;
}
.text-content {
  font-family: 'nunito sans';
}

h1 {
  font-size: 2em;
}
/* ========================
   HEADER STRUCTURE
   ======================== */
/* ============================================
   GLOBAL LAYOUT ADJUSTMENT
   ============================================ */

/* Make sure main content is not hidden behind fixed header */
.layout-main-wrapper {
  /* padding-top: 72px; */
  /* margin-top: 0 !important; */
}

/* Optional: make fonts look closer to your designs */
body {
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================
   HEADER / LOGO / HAMBURGER
   ============================================ */
/* ================================================
   MOBILE + TABLET HEADER (default)
   ================================================ */

#custom-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  z-index: 1000;
}

#custom-header .logo img {
  height: 40px;
  display: block;
}

/* Hamburger icon */
.menu-toggle {
  width: 28px;
  height: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* Reset desktop-only styles on mobile/tablet */
#custom-header .logo,
#custom-header .logo img {
  width: auto;
}


/* ================================================
   DESKTOP HEADER (full-width image bar)
   ================================================ */
@media (min-width: 1024px) {

  #custom-header {
    padding: 0;               /* remove side padding */
    height: auto;             /* let image height define header height */
    background: white;
  }

  /* Logo spans the full width */
  #custom-header .logo {
    width: 100%;
    background: white;
  }

  #custom-header .logo img {
    width: 800px;
    height: auto;
    max-height: 150px;
    display: block;
    padding-right: 10%;
    background: black;
    /* clip-path: polygon(0 0, 90% 0%, 100% 100%, 0% 100%); */
  }
.logo-item {
    background: black;
    clip-path: polygon(0 0, 90% 0%, 100% 100%, 0% 100%);
    margin-right: 10%;
}
  /* Hamburger overlays right side of the header image */
  #custom-header .menu-toggle {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
  }

  #custom-header .menu-toggle span {
    height: 2px;
    width: 100%;
    background: black;
    border-radius: 2px;
  }

  /* Push page content down below full-width header image */
  .layout-main-wrapper {
    padding-top: unset !important; 
  }
}


/* ============================================
   OVERLAY BACKDROP
   ============================================ */

.overlay[data-drupal-selector="overlay"] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.overlay[data-drupal-selector="overlay"].is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   SLIDE-IN DRAWER MENU
   ============================================ */

/* .overlay-menu {
  position: fixed;
  top: 0;
  right: -50vw; 
  width: 50vw;
  max-width: 520px;
  height: 100vh;
  background: #f3f3f3;
  padding: 32px 40px 40px;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transition: right 0.35s ease;
  overflow-y: auto;
}

.overlay-menu.is-open {
  right: 0;
} */

/* Slide-in drawer: start completely off-screen to the right */
.overlay-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  max-width: 520px;
  height: 100vh;
  background: #f3f3f3;
  padding: 32px 40px 40px;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  overflow-y: auto;

  /* hidden by default */
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

/* When open, slide into view */
.overlay-menu.is-open {
  transform: translateX(0);
}

/* Mobile: drawer a bit wider but same behavior */
@media (max-width: 767px) {
  .overlay-menu {
    width: 80vw;
  }
  #block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div {
  --views-grid--column-count: 2 !important;
}
 
}


/* Close button (X) */
.overlay-menu .menu-header {
  display: flex;
  justify-content: flex-end;
}

#menu-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* ============================================
   OVERLAY MENU STRUCTURE (uses menu--primary-menu.html.twig)
   ============================================ */

/* Root list */
.overlay-nav .overlay-menu__list--root {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

/* Any list inside overlay */
.overlay-nav .overlay-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* List items */
.overlay-nav .overlay-menu__item {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  list-style: none;
}

/* Top-level links (Tire Lineup, Find Your Tires, etc.) */
.overlay-nav .overlay-menu__item > .overlay-menu__link {
  display: block;
  position: relative;
  padding-right: 24px;  /* room for + / – icon */
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  color: #000;
}

/* Expandable parents: "+" caret by default */
.overlay-nav .overlay-menu__item--expanded > .overlay-menu__link::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 800;
}

/* When parent is open: "–" caret */
.overlay-nav .overlay-menu__item--expanded.is-open > .overlay-menu__link::after {
  content: "–";
}

/* Submenu container (child list under Tire Lineup) */
/* .overlay-nav .overlay-menu__item--expanded > .overlay-menu__list--sub {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #d0d0d0;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
} */

/* When item is open, show submenu */
/* .overlay-nav .overlay-menu__item--expanded.is-open > .overlay-menu__list--sub {
  max-height: 600px; //tall enough for children.
  opacity: 1;
  transform: translateY(0);
} */
 /* Collapse ONLY first-level (root) menu items like Tire Lineup, Support, etc. */
.overlay-nav .overlay-menu__list--root > .overlay-menu__item--expanded > .overlay-menu__list--sub {
  /* margin: 10px 0 0;
  padding: 10px 0 0; */
  border-top: 1px solid #d0d0d0;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* When a root item is open, show its submenu */
.overlay-nav .overlay-menu__list--root > .overlay-menu__item--expanded.is-open > .overlay-menu__list--sub {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
}


/* Child links */
.overlay-nav .overlay-menu__list--sub > .overlay-menu__item > .overlay-menu__link {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.overlay-nav .overlay-menu__list--sub > .overlay-menu__item > .overlay-menu__link:hover {
  color: #000;
}

/* Optional: section headings (if you add class="section-heading" on a menu item) */
.overlay-nav .overlay-menu__item.section-heading > .overlay-menu__link {
  pointer-events: none;
  cursor: default;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
  margin: 12px 0 4px;
}

/* Prevent body scroll when menu open */
body.no-scroll {
  overflow: hidden;
}

/* Mobile: drawer a bit wider */
@media (max-width: 767px) {
  .overlay-menu {
    width: 80vw;
  }
  .overlay-nav .overlay-menu__list--root > .overlay-menu__item--expanded.is-open > .overlay-menu__list--sub {
  max-height:none;
}
}

/* ============================================
   SOCIAL BAR (right side region)
   ============================================ */

.social-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
}

/* You can style icons/links inside page.social however you like here */

/* ============================================
   CUSTOM FOOTER
   ============================================ */

.custom-footer {
  /* background: #000; */
  color: #fff;
  /* padding: 40px 0 20px; */
  margin-top: 60px;
}

.custom-footer a {
  color: #ffffff;
  text-decoration: none;
}

.custom-footer a:hover {
  text-decoration: underline;
}

/* Top footer columns */
/* .custom-footer .footer-top {
  max-width: 1200px;
  margin: 0 auto 32px;
} */

.custom-footer .footer-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  justify-self: center;
  width: 90%;
}

.custom-footer .footer-columns > div {
  flex: 1 1 200px;
  min-width: 180px;
}

.custom-footer .footer-columns strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.custom-footer .footer-columns ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.custom-footer .footer-columns li {
  margin-bottom: 4px;
}

/* Bottom footer bar */
.custom-footer .footer-bottom {
  /* border-top: 1px solid #444; */
  padding-top: 16px;
  /* max-width: 1200px; */
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 5% !important;
  background: #df7820; /* Your orange */
}

.footer-bottom-left {
  /* flex: 1 1 260px;
  width: 55%; */
    display: flex;
  flex-direction: column;
  gap: 2vw;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
  width: 45%;
}

.footer-search {
  width: 100%;
  position: relative;
}

.footer-search > form {
  width: 100%;
}

#footer-search {
  width: 100%;
  border: none;
  border-bottom: 2px solid #000;
  background: transparent;
  padding: 0.8rem 2.5rem 0.8rem 0; /* space for icon */
  font-size: 1.4rem;
  outline: none;
}
#footer-search::placeholder {
  color: #000;
  font-weight: 600;
}
/* Icon INSIDE input (right side) */
#footer-search {
  background-image: url('http://52.26.58.124/sites/default/files/2025-12/MS%20Search%20Icon.png');
  background-repeat: no-repeat;
  background-size: 22px; /* adjust to XD */
  background-position: right 0px center;
}


/* ---------------------------
   SOCIAL SECTION (XD STYLE)
---------------------------- */
.social {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
}

.social span {
  font-size: 1.7rem;
  font-weight: 700;
}

.social i {
  font-size: 1.7rem;
  opacity: 1;
}

/* ---------------------------
   COPYRIGHT LEFT
---------------------------- */
.footer-bottom-left p {
  margin: 0;
  font-size: 1.2rem;
}

/* .footer-search > form {
  width: 100%;
}

.__web-inspector-hide-shortcut__ {
  display: none;
} */
/* .footer-search label {
  margin-right: 6px;
  font-weight: 600;
} */

.footer-search input[type="search"] {
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid #666;
  /* background: #111; */
  color: black;
}

.footer-search button {
  padding: 4px 8px;
  border: none;
  background: #ffa31a;
  color: #000;
  cursor: pointer;
  border-radius: 2px;
}

/* Social icons in footer */
.custom-footer .social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.custom-footer .social i {
  font-size: 18px;
}

/* Footer logo */
.footer-bottom-right img {
  max-height: 100%;
  display: block;
}
.search-submit {
  max-width: 22px;
  height: auto;
  display: block;
}
.footer-bottom-right {
  text-align: right;
}

.footer-bottom-right img {
  max-width: 280px;
  margin-bottom: 1rem;
}

.footer-bottom-right .copyright p {
  font-size: 1.2rem;
  margin: 0;
}
/* Responsive footer */
@media (max-width: 767px) {
  .custom-footer .footer-columns {
    flex-direction: column;
  }

  .custom-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-right {
    align-items: flex-start;
  }
}

/* Headings: already styled gray/non-clickable; now force their children open */
.overlay-nav .overlay-menu__item.section-heading > .overlay-menu__list--sub {
  border-top: 0;
  margin: 4px 0 12px;
  padding-top: 0;
  max-height: none;      /* no height limit */
  opacity: 1;           /* fully visible */
  transform: none;      /* no slide-up */
}

/* Headings (By Vehicle Type / Season / Performance):
   always show their children. */
.overlay-nav .overlay-menu__item.section-heading > .overlay-menu__list--sub {
  border-top: 0 !important;
  margin: 4px 0 12px !important;
  padding-top: 0 !important;
  max-height: none !important;   /* remove collapse */
  opacity: 1 !important;
  transform: none !important;
}

/* end menu */


.primary-nav__menu-item--level-2 span {
  color: black;
}
.primary-nav__menu-item--level-2 span:hover {
  color: orange;
}
.primary-nav__menu-item--level-1 span {
  color: black;
  font-weight: bold;
}

.primary-nav__menu--level-1 {
  flex-direction: column;
}

.viewTires {
display: block;
  
background-color:orange;
  
border-radius:4px;
  
color:white;
  
margin-top:1rem;
  
padding:0.75rem 1.5rem;
  
text-decoration:none;
  
/* border-radius: 10px 15px 0; */
  
width: 300px;
  
/* height: 200px; */
  
background: orange;
  
  /* Cut 20px from top-right and bottom-left corners */
  
clip-path: polygon(
    0 0,                   /* Top-left */
    calc(100% - 50px) 0,   /* Top-right cut start */
    100% 60px,             /* Top-right cut end */
    100% 100%,             /* Bottom-right */
    50px 100%,             /* Bottom-left cut start */
    0 calc(100% - 60px)    /* Bottom-left cut end */
  );
  

}
.viewRim {
/* display: block; */
  
background-color:orange;
  
border-radius:4px;
  
color:white;
  
margin-top:1rem;
  
padding:0.75rem 1.5rem;
  
text-decoration:none;
  
/* border-radius: 10px 15px 0; */
  
width: 300px;
  
/* height: 200px; */
  
background: orange;
  
  /* Cut 20px from top-right and bottom-left corners */
  
clip-path: polygon(
    0 0,                   /* Top-left */
    calc(100% - 50px) 0,   /* Top-right cut start */
    100% 60px,             /* Top-right cut end */
    100% 100%,             /* Bottom-right */
    50px 100%,             /* Bottom-left cut start */
    0 calc(100% - 60px)    /* Bottom-left cut end */
  );
  

}

/* main content */
.social-bar {
  display: none; /* remove left sidebar hardcoded */
}


#main > div.main-content > div > div.region.region--breadcrumb.grid-full.layout--pass--content-medium {
  display: none;
}

#main > div.main-content {
  width: 100%;
}

#main > div.main-content > div.container {
  max-width: -webkit-fill-available; /* make container full width for content grid to be 100% */ 
}

@media (min-width: 62.5rem) {
    .layout--content-medium, .layout--pass--content-medium > * {
      grid-column: 1 / 15;
  }
}

/* Main Hero display. */
/* home page hero display */
  /* video instead of image  */
.custom-hero-home  {
    position: relative;
    width: 100%;
    height: 100vh; /* or your existing hero height */
    overflow: hidden;
}

/* The background video */
.custom-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* fill container without distortion */
    z-index: 0;          /* behind overlay */
}

/* Keep overlay and text above */
.custom-hero-home-overlay {
    position: absolute;
    z-index: 2;
    bottom: 10%;
    left: 10%;
}
  /* end video instead of image */

/* Main Hero display. */
/* .custom-hero-home {
  height: 35em;
  overflow: hidden;
  position: relative;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
} */


.custom-hero-home .custom-hero-home-overlay {
  /* align-items: center; */
  /* background-color: rgba(0, 0, 0, 0.4); */
  /* display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: -15%;
  padding: 5rem;
  position: absolute;
  text-align: center;
  top: 0;
  width: 100%; */
}

.custom-hero-home-btn {
    background: #f68b1e;
  color: black !important;
  font-weight: bold;
  padding: .5rem 3rem;
  text-decoration: none;
  position: relative;
  clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 20% 100%);
  transition: background 0.3s ease;
  box-shadow: none !important;
  text-decoration: none !important;
}
/* product page hero display */
.custom-hero {
  height: 35em;
  overflow: hidden;
  position: relative;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  /* background: url('/sites/default/files/2025-09/Header-Milestar-Patagonia-AT-Pro-Subaru-Crosstrek.jpg') center center / cover no-repeat; */
}


.custom-hero .custom-hero-overlay {
  align-items: center;
  /* background-color: rgba(0, 0, 0, 0.4); */
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 15%;
  padding: 5rem;
  position: absolute;
  text-align: center;
  top: 0;
  width: 100%;
}

.custom-hero-btn {
    background: #f68b1e;
  color: black !important;
  font-weight: bold;
  padding: .5rem 3rem;
  text-decoration: none;
  position: relative;
  clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 20% 100%);
  transition: background 0.3s ease;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* ============================
   HERO MOBILE STYLES
   ============================ */
@media screen and (max-width: 1008px) {
  
  .custom-hero-home {
    height: 24em;
    background-position: center center;
  }

  .custom-hero-home .custom-hero-home-overlay {
    left: 0;
    padding: 2rem;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    justify-self: anchor-center;
  }
.custom-hero-home-items {
  text-align: center !important;
}
  .custom-hero-home-items h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  .custom-hero-home-items h2 {
    font-size: 1.2rem !important;
    line-height: 1.4;
    text-align: center !important;
  }

  .custom-hero-home-btn {
    padding: 0.5rem 2rem;
    font-size: 1rem;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 15% 100%);
  }
  .footer-columns {
    display: none !important;
  }
  .custom-hero {
    height: 24em;
    background-position: center center;
  }

  .custom-hero .custom-hero-overlay {
    left: 0;
    padding: 2rem;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
  }

  .custom-hero-overlay {
    margin-bottom: 1em;
  }
.custom-hero-items {
  text-align: center !important;
}
  .custom-hero-items h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  .custom-hero-items h2 {
    font-size: 1.2rem !important;
    line-height: 1.4;
    text-align: center !important;
  }

  .custom-hero-btn {
    padding: 0.5rem 2rem;
    font-size: 1rem;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 15% 100%);
  }
  .footer-columns {
    display: none !important;
  }
  #block-olivero-custom-views-block-blog-blog-block > div.block__content
  {
    margin: 1em !important;
  }
  #block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div > div > div > div.views-field.views-field-created {
    font-size: x-small !important;
  }
}

/* ============================
   EXTRA SMALL PHONES (<480px)
   ============================ */
@media screen and (max-width: 480px) {
  .custom-hero-home {
    height: 20em;
    background-position: center left;
  }

  .custom-hero-home .custom-hero-home-overlay {
    padding: 1.5rem;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.4); /* adds subtle contrast */
    width: 100%;
  }

  .custom-hero-home-items h1 {
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem !important;
  }

  .custom-hero-home-items h2 {
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }

  .custom-hero-home-btn {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
  }
  .custom-hero {
    height: 20em;
    background-position: inherit;
  }

  .custom-hero .custom-hero-overlay {
    padding: 1.5rem;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.4); /* adds subtle contrast */
  }

  .custom-hero-items h1 {
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem !important;
  }

  .custom-hero-items h2 {
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }

  .custom-hero-btn {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
  }
}

/* product features + benefits icons */

.featureIcon {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  gap: 20px;
  text-align: center;
}

.featureIconBlock img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto;
}


.featureIconBlock {
  flex: 1 1 200px; /* responsive min width */
  max-width: 250px; /* keeps icons from being too large */
  display: flex;
  flex-direction: column;
  align-items: center;
}



.featureIconBlock span {
  margin-top: 10px;
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  word-break: break-word; /* helps wrap long text like Miletech... */
}

/* product features 
############################################################################################################################################
############################################################################################################################################
############################################################################################################################################
*/
.feature-option.active {
    background-color: #f8f9fa;
    border-left: 3px solid #ff6600;
}

.feature-option {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
    border-left: 3px solid transparent;
}

.feature-option:hover {
    background-color: #f0f0f0;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    margin-left: 8px;
}

.feature-option.active .status-indicator {
    background-color: #ff6600;
}

@media (max-width: 1000px) {
  .featureIconBlock span {
    font-size: small;
  }
}
/*  */
/* .features-container {
            display: flex;
            flex-wrap: wrap;
            min-height: 500px;
            width: 100%;
        } */
        
        /* Left side: Image */
        /* .image-panel {
            align-items: center;
            background-color: #000;
            background-image: url('http://52.26.58.124/sites/default/files/2025-09/Patagonia-AT-PRO-FB-BG-2.jpg');
            background-repeat: no-repeat;
            background-size: cover;
            display: flex;
            flex: 1 1 50%;
            justify-content: center;
            padding: 20px;
        }
        
        .image-panel img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        } */
        
        /* Right side: Orange panel with icons */
        /* .features-panel {
            background-color: #f6881f;
            color: white;
            display: flex;
            flex-direction: column;
            flex: 1 1 50%;
            padding: 2rem;
        }
        
        .features-panel h2 {
            margin-bottom: 2rem;
            font-size: 1.8rem;
            border-bottom: 2px solid rgba(255,255,255,0.3);
            padding-bottom: 10px;
        }
        
        .feature-option {
            align-items: center;
            cursor: pointer;
            display: flex;
            margin-bottom: 1.5rem;
            padding: 10px;
            border-radius: 8px;
            transition: background-color 0.3s;
        }
        
        .feature-option:hover {
            background-color: rgba(255,255,255,0.1);
        }
        
        .feature-option.active {
            background-color: rgba(255,255,255,0.2);
        }
        
        .feature-option img {
            margin-right: 15px;
            border-radius: 8px;
            transition: transform 0.3s;
        }
        
        .feature-option.active img {
            transform: scale(1.05);
        }
        
        .feature-text h4 {
            margin: 0;
            font-size: 1.2rem;
        }
        
        .feature-text p {
            margin-top: 5px;
            opacity: 0.9;
        }
        
        .status-indicator {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #ccc;
            margin-left: 8px;
        }
        
        .feature-option.active .status-indicator {
            background-color: #fff;
        }
        
        @media (max-width: 768px) {
            .features-container {
                flex-direction: column;
            }
            
            .image-panel, .features-panel {
                flex: 1 1 100%;
            }
        } */
/* 
############################################################################################################################################
############################################################################################################################################
############################################################################################################################################
*/


/* new gallery */
.gallery {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            width: 100%;
            height: 70vh;
            max-height: 700px;
            /* margin-bottom: 2rem; */
            gap: 0; /* No gaps between images */
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            overflow: hidden;
        }
        
        .gallery-item {
            overflow: hidden;
            position: relative;
            transition: transform 0.3s ease;
            cursor: pointer;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.08);
        }
        
        .tall {
            grid-column: 1;
            grid-row: 1 / span 2;
            background: #1a1a2e;
        }
        
        .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            padding: 1.5rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .gallery-item:hover .overlay {
            opacity: 1;
        }
        
        .overlay h3 {
            margin-bottom: 0.5rem;
            font-size: 1.4rem;
            color: white;
        }
        
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            overflow: hidden;
            animation: fadeIn 0.3s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .modal-content {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            width: 100%;
            padding: 50px;
        }
        
        .modal-image {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            animation: zoomIn 0.3s;
            border-radius: 5px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
        }
        
        @keyframes zoomIn {
            from { transform: scale(0.9); }
            to { transform: scale(1); }
        }
        
        .close-btn {
            position: absolute;
            top: 15%;
            right: 10%;
            font-size: 40px;
            color: #fff;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .close-btn:hover {
            color: #ff5252;
        }
        
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 40px;
            color: #fff;
            cursor: pointer;
            padding: 15px;
            transition: color 0.3s;
            user-select: none;
        }
        
        .nav-btn:hover {
            color: #a0d2eb;
        }
        
        .prev-btn {
            left: 30px;
        }
        
        .next-btn {
            right: 30px;
        }
        
        .image-info {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            text-align: center;
            color: #fff;
            padding: 10px;
            background: rgba(0, 0, 0, 0.5);
        }
        .image-title {
          color: white;
        }
        
        @media (max-width: 900px) {
            .gallery {
                grid-template-columns: 1fr 1fr;
                height: auto;
            }
            
            .tall {
                grid-column: 1 / span 2;
                grid-row: 1;
                /* min-height: 400px; */
            }
            
            h1 {
                font-size: 2.2rem;
            }
        }
        
        @media (max-width: 600px) {
            .gallery {
                grid-template-columns: 1fr;
            }
            
            .tall {
                grid-column: 1;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .nav-btn {
                font-size: 30px;
            }
            
            .close-btn {
                font-size: 30px;
            }
        }



/* Product sizes section */
#ProductSizes {
  width: 100%
}

.prodLink {
  padding: 1em;
}

.prodLink a {
  color: black;
  font-weight: 900;
  outline: none;
  box-shadow: none;
}

.prodLink a:hover {
  text-decoration: none;
  box-shadow: none;
  color: orange;
}

@media (max-width:1000px) {
  .prodLink {
    gap: 2em;
    display: block !important;
    text-align: center;
  }
  .prodLink a {
  padding-right: 2em;
  
  }
  .custom-footer {
      /* padding-bottom: 26vh; */
  }
}
/* custom footer section */
.custom-footer {
  /* font-family: sans-serif; */
  color: black;
  margin-top: 0;

}

.footer-top {
  background-color: #f2f2f2;
  padding: 2rem;
}


.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-columns div {
  flex: 1 1 200px;
}

.footer-columns strong {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.footer-columns li {
  margin-bottom: 0.25rem;
}

.footer-bottom {
  background-color: #e87917;
  padding: 2rem;
  color: #000;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 65%;
}

.footer-search {
  display: flex;
  align-items: center;
  /* border-bottom: 1px solid black; */
  padding-bottom: 0.5rem;
}

.footer-search input {
  border: none;
  padding: 0.5rem;
  margin-left: 0.5rem;
  flex: 1;
  background: none;
}

.footer-search button {
  background: none;
  border: none;
  font-size: 1rem;
}

.social {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.social a {
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
}

.footer-bottom-right {
  text-align: right;
  display: flex;
  align-items: flex-end;
}

.footer-bottom-right img {
  max-width: 80%;
  margin-bottom: 2.5rem;
}

.footer-bottom-right p {
  margin: 0.25rem 0;
}

.footer-bottom-right a {
  color: black;
  text-decoration: none;
}

/* bottom bar Terrain section */
/* 
You can tweak clip-path to adjust the angle of the cut.

Adjust padding and font sizes as needed to match the exact look.

If you want to center vertically in a fixed-height section, add height: 200px or similar to .terrain-section. 
*/
.terrain-section {
  background-color: #e87917; /* orange background */
  padding: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.terrain-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  flex-wrap: wrap;
}

.terrain-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000;
  margin: 0;
}

.angled-button {
  background: white;
  color: black !important;
  font-weight: bold;
  padding: 1rem 4rem;
  text-decoration: none !important;
  position: relative;
  clip-path: polygon(0% 0%, 70% 0%, 100% 100%, 30% 100%);
  transition: background 0.3s ease;
  outline: none;
  box-shadow: none !important;
}

.angled-button:hover {
  background: black !important;
  color: orange !important;
}

#ProductPerformanceRating {
  width:100%;
}

#main > div.main-content > div {
  padding-inline: inherit;
  padding: 0;
}

/* home page */

/* product category */
.pContainer {
    display: grid;
  /* column-gap: 50px; */
  grid-template-columns: auto auto;
  /* background-color: dodgerblue; */
  padding: 10px;
  grid-template-rows: 25em 25em 25em;
}
.pContainer > div {
  background-color: #f1f1f1;
  /* border: 1px solid black; */
  padding: 20px;
  font-size: 30px;
  text-align: center;
}

/* MOBILE ONLY */
@media (max-width: 768px) {

  .pContainer {
    display: block;       /* stack them */
  }

  .pContainer .grid-item {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  /* This creates a uniform height for ALL six tiles (change 80% to taste) */
  .pContainer .grid-item::before {
    content: "";
    display: block;
    padding-top: 80%;     /* aspect ratio: taller card; try 60–90% */
  }

  /* Make sure background images fill the tile */
  .grid-lt,
  .grid-pcr,
  .grid-commercial,
  .grid-medium,
  .grid-utv,
  .grid-winter {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* Text overlay */
  .pContainer .grid-item .inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1rem;
    align-items: center;
    width: 60%;
  }
  .terrain-content {

  justify-content: center;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center
}
.terrain-content h2 {
text-align: center;
}

.footer-bottom-left {

  width: 100%;
}

.footer-bottom-right {

  width: 100%;
  text-align:center;
}
.custom-footer {
  height: auto;
  /* min-height: 34em; */
}

.footer-bottom-right .copyright p {
  font-size: 0.8em;
}
.grid-full {
  grid-template-columns: none !important;
  grid-column-gap: unset !important;
}
}


/* PARAGRAPH */
.node .field--name-field-centered-image{
  float:none;
  justify-self:center;
  text-align:center;
}
.node .field--name-field-centered-image img {
  max-width:100%;
  max-height: 450px;
}
.paragraph--type--centered-image-with-caption .field--name-field-caption {
  font-weight: bold;
  text-align: center;
}

.field--name-field-banner-buttons a {
    background: #f68b1e;
  color: black !important;
  font-weight: bold;
  padding: .5rem 3rem;
  text-decoration: none;
  position: relative;
  clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 20% 100%);
  transition: background 0.3s ease;
}

.tire-feature-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  background: #f1f1f1;
}

.tire-feature-left {
  background-color: #e57e22; /* Orange */
  color: black;
  flex: 1 1 50%;
  padding: 2rem;
  font-family: 'Nunito Sans', sans-serif;
}

.tire-feature-left h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tire-feature-right {
  flex: 1 1 50%;
  padding: 2rem;
  background: #f7f7f7;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.feature-item {
  width: 100px;
  text-align: center;
}

.feature-item img {
  width: 100%;
  max-width: 80px;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-weight: 600;
  margin: 0;
}

/*  */
.paragraph--type--main-banner {
  position: relative;
  width: 100%;
  max-height: 450px;
  overflow: hidden;
}

.paragraph--type--main-banner .field--name-field-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paragraph--type--main-banner .field--name-field-heading {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  text-align: left;
  max-width: 40%;
  z-index: 2;
}

.paragraph--type--main-banner .field--name-field-heading .field__item {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.paragraph--type--main-banner .field--name-field-button-link {
  position: absolute;
  right: 3rem;
  top: 65%;
  transform: translateY(-50%);
  color: black;
  text-align: left;
  max-width: 40%;
  z-index: 2;
}

.paragraph--type--main-banner .field--name-field-button-link a {
  background-color: #ff6600;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  border-radius: 4px;
}

.paragraph--type--main-banner .field--name-field-button-link a:hover {
  background-color: #e55b00;
}
/* 
---------------------------------------------------------------------------------
*/
.tire-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.tire-card {
  background: #fff;
  text-align: center;
}
.tire-card img {
  width: 100%;
  height: auto;
}
.btn-view-tire {
  background: #c56a1c;
  color: #fff;
  padding: 10px 20px;
  text-transform: uppercase;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
}
.filters-sidebar {
  border-right: 1px solid #ddd;
  padding: 20px;
  font-weight: 600;
}
/* ########################################### */

.blog-card {
  text-align: left;
  margin-bottom: 2rem;
}

.blog-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.blog-card h3 {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.blog-card .views-field-created {
  font-weight: 600;
  color: #777;
  margin-top: 0.5rem;
}

.blog-card .views-field-body {
  font-size: 0.95rem;
  margin-top: 0.3rem;
  color: #333;
}

.blog-card a {
  color: #000;
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
}



/* 
 */

 article.node--type-blog-post {
  margin: 3em 10%;
 }

#block-olivero-custom-content > div > article.node--type-blog-post > div > div.text-content.clearfix.field.field--name-body.field--type-text-with-summary.field--label-hidden.field__item > p > img {
justify-self:center;
}
#block-olivero-custom-content > div > article > div > div.field.field--name-field-blog-post-title.field--type-string-long.field--label-hidden.field__item {
font-weight: 900;
font-size: xx-large;
}


/* blog section */
 #block-olivero-custom-views-block-blog-blog-block {
  background-color: lightgray;
  margin: 0;
 }
 #block-olivero-custom-views-block-blog-blog-block > div.block__content {
margin:5em;
 }
 #block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div > div > div > div.views-field.views-field-field-thumbnail > div > a > img {
  width: -webkit-fill-available;
 }
.views-view-grid--horizontal {
  grid-gap: unset;
}
#block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div > div.views-view-grid__item {
  padding-bottom: 2em;
}
/* blog title main display outer */
#block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div > div > div > div.views-field.views-field-title {
  padding: 0 1em 0 1em;
}
/* blog time and date main display */
#block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div > div > div > div.views-field.views-field-created
{
  padding: 1em 1em 0 1em;
  color: #656565;
  font-weight: 900;
  font-size: larger;
}
/* blog title main display inner */
#block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div > div > div > div.views-field.views-field-title > span > a {
 color: black;
 text-decoration: none;
 font-weight: 900;
 font-size: x-large;
}
/*  */


#block-olivero-custom-views-block-blog-blog-block > div.block__content > div > div > div.more-link
{
  /* position: absolute; */
  background: #f5881f;
  z-index: 0;
  clip-path: polygon(0 0, 80% 0, 100% 100%, 20% 100%);
  bottom: -50px;
  height: 45px;
  justify-self: center;
  width: 15em;
  text-align: center;
  align-content: center;
  font-size: larger;
}

#block-olivero-custom-views-block-blog-blog-block > div.block__content > div > div > div.more-link > a
{
  text-decoration: none;
  font-weight: 900;
  color: black;
}

/* blog title header HOT OFF THE PRESS */


#block-olivero-custom-views-block-blog-blog-block h2.block__title {
    margin: 2em 2.5em;
  color: black;
  font-size: xx-large;
  display: flex;
  align-items: center;
  gap: 10px; /* space between title and image */
  line-height: inherit;
  white-space: nowrap;
}

#block-olivero-custom-views-block-blog-blog-block h2.block__title::after {
  content: "";
  display: inline-block;
  width: 100%;
  height: 11vw;
  background-image: url('/sites/default/files/2025-09/MS-Web-3.0-Section-Header.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width:900px) {
  #block-olivero-custom-views-block-blog-blog-block h2.block__title {
    margin: 2em 0;
    justify-content: center;
  }

  #block-olivero-custom-views-block-blog-blog-block h2.block__title::after {
    display: none;
  }

  #block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div > div > div > div.views-field.views-field-title > span > a {
    font-size:small;
    line-height: normal;
  }
  #block-olivero-custom-views-block-blog-blog-block > div > div > div > div.view-content > div > div > div > div.views-field.views-field-created {
    font-size: small;
  }
  .footer-top {
    display: none;
  }
  .more-link {
    margin: 2em 0;
  }
}

/* dealer locator block */
#block-olivero-custom-maindealerlocatorblock
{
  margin: 0;
}
/* main content no margin */
#content 
{
  margin: 0;
}

#page > footer > div.footer-top > div > div > ul > li > a
{
  text-decoration: none;
  color: black;
  outline: none;
}
#block-olivero-custom-content > div > article > div > div.field.field--name-field-thumbnail.field--type-entity-reference.field--label-hidden.field__item > img
{
  width: 100%;
}

/* testing truck catalog */
/* Container: 3x2 grid */
/* Container grid layout */
.pContainer { 
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  margin: 0 auto;
}

/* Base grid item styling */
.grid-item {
  position: relative;
  background-position: center calc(50% - 10px);
  background-size: cover;
  transition: background-image 0.3s ease-in-out, transform 0.3s ease-in-out;
  overflow: hidden;
}

/* Orange overlay on hover */
.grid-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 163, 26, 0);
  transition: background 0.3s ease-in-out;
  z-index: 1;
}
.grid-item:hover::after {
  background: rgba(255, 163, 26, 0.3);
}

/* 🔧 Inner: tire image left-bottom, text bottom-center */
/* 🔧 Inner: tire image bottom-left, text bottom-left */
.grid-item .inner {
  background-repeat: no-repeat;
  background-position: left bottom; /* keep tire bottom-left */
  background-size: contain;

  /* place text bottom-left */
  display: flex;
  align-items: flex-end;      /* push text to bottom */
  justify-content: flex-start;/* move text to left */
  text-align: left;

  position: absolute;
  inset: 0;                  /* fill full tile */
  z-index: 2;

  padding: 0 0 20px 20px;    /* space from bottom-left corner */
}


/* Text styling inside tiles */
.grid-item .inner a,
.grid-item .inner div {
  position: absolute;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(20px, 2.6vw, 40px); /* responsive scaling */
  text-shadow: 0 0 14px rgba(0,0,0,.9);
  bottom: 10px;
  left: 0;
  box-shadow: none;
  outline: none;
  justify-self: anchor-center;
}

.grid-item {
  position: relative;
  z-index: 0; /* reset stacking context */
}


.grid-item .inner p {
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;              /* make the <p> fill the tile */
  z-index: 10;           /* above overlay and text */
  background: transparent;
}

.grid-item .inner p a {
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -9999px;  /* hide link text */
  background: transparent;
  cursor: pointer;
}

.grid-item::after {
  pointer-events: none;  /* overlay won't block clicks */
}

/* Preserve visual text inside separate div */
.grid-item .inner div {
  position: relative;
  z-index: 6;
}

/* Hover effects */
.grid-item:hover {
  cursor: pointer;
}
.grid-item:hover .inner div {
  color: #fff;
}

.grid-item.disabled {
  filter: grayscale(100%);
  pointer-events: none; /* disables clicking */
  cursor: not-allowed;
  opacity: 0.5; /* optional */
}

/* Overrides your orange hover */
.grid-item.disabled:hover {
  filter: grayscale(100%) !important;
  opacity: 0.5 !important;
}

/* Individual background images */
.grid-lt {
  background-image: url('/sites/default/files/2025-09/MS_Home-Page_Grid_LT_Tacoma-Truck.jpg');
}
.grid-lt:hover {
  background-image: url('/sites/default/files/2025-10/MS_Home-Page_Grid_LT_Tacoma-Truck_Orange.jpg');
}
.grid-lt .inner {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_LT_Tire.png');
}

.grid-pcr {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_PCR_BG.jpg');
}
.grid-pcr:hover {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_PCR_BG_Orange.jpg');
}
.grid-pcr .inner {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_PCR_Tire_0.png');
}

.grid-commercial {
  background-image: url('/sites/default/files/2026-01/MS_Home-Page_Grid_CLT_BG.jpg');
}
.grid-commercial:hover {
  background-image: url('/sites/default/files/2026-01/MS_Home-Page_Grid_CLT_BG_Orange.jpg');
}
.grid-commercial .inner {
  background-image: url('/sites/default/files/2026-01/MS_Home-Page_Grid_CLT_Tire.png');
}

.grid-medium {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_Medium_Truck_BG.jpg');
}
.grid-medium:hover {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_Medium_Truck_BG_Orange.jpg');
  /* background-color: lightgray; */
  
}
.grid-medium .inner {
  background-image: url('/sites/default/files/2025-12/MS_Home-Page_Grid_Medium_Truck_Tire_0.png');
}

.grid-utv {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_UTV_BG.jpg');
}
.grid-utv:hover {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_UTV_BG_Orange.jpg');
}
.grid-utv .inner {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_UTV_Tire_0.png');
}

.grid-winter {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_Winter_BG.jpg');
}
.grid-winter:hover {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_Winter_BG_Orange.jpg');
}
.grid-winter .inner {
  background-image: url('/sites/default/files/2025-11/MS_Home-Page_Grid_Winter_Tire_0.png');
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 768px) {
  .pContainer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pContainer {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
}


/* contact us form */
#block-olivero-custom-contactblock 
{
  background-color: white;
  color: black;
}

#block-olivero-custom-content {
  margin:0;
}
#block-olivero-custom-content > div > article > div.node__content 
{
  padding: 0;
}
#contact-message-contact-us-form
{
  justify-items: center;
}
#edit-submit--2 
{
  background-color: #d8862d;
}
#main-image {
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: none;
}


/* style dropdown for ckeditor 5 */
.black-bg {

  color: black;
  padding: 5% 10%;
}
.black-bg a {
  text-decoration: underline;
  box-shadow: none !important;
  color: black !important;
  
}
.black-bg a:hover {
  color: orange !important;
}

div.black-bg > p.text-align-center {
  line-height:normal;
  padding: 0;
}

.tires101-grid 
{
  display:grid;
  grid-template-columns: repeat(5,1fr);
}
.tires101-grid-items > a 
{
  color: black;
    outline: none;
    box-shadow: none;
    text-decoration: none;
}
.tires101-grid-items > a:hover
{
  color: orange;
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

.tires101-grid-items 
{
  text-align: -webkit-center;
  font-size: larger;
  font-weight: bold;
}
.tires101-wrapper
{
  background: white;
  padding-bottom: 3em;

}

.tires101-wrapper > h2
{
  color: black;
  justify-self: center;
  margin: 0;
  /* padding-top: 1em; */
}

.text-align-center {
  margin: 0;
  padding-bottom: 1em;
}


.dealerblock_main {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns on desktop */
    grid-auto-rows: 30em;                  /* every row = 30em tall */
}

/* Position the inner content */
.dealerblock_inner {
    bottom: 10%;
    justify-self: center;
    position: absolute;
}

.dealerblock_inner > a {
    text-decoration: none !important;
    box-shadow: none !important;
    color: white;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dealerblock_inner > a:hover {
    color: orange !important;
}

/* MOBILE/TABLET: 2 x 2 grid */
@media (max-width: 768px) {
    .dealerblock_main {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        /* grid-auto-rows: 30em;  already set above, applies here too */
    }
    .tires101-wrapper > h2 {
      padding: 0;
    }
}


    /* home page driving section. */
 /* ================================
   DRIVING VALUE SECTION (DROP-IN)
   Desktop = background image + overlay text
   Mobile  = real <img> + stacked text below
================================ */

.driving-value-section {
  width: 100%;
}

/* ---- Desktop/Tablet default (original behavior) ---- */
.driving-value-bg {
  background-image: url('/sites/default/files/2025-09/Driven_Section_Jeep_Orange_Milestar-Logo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  height: 50vw;
  min-height: 300px;

  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Mobile-only image MUST NOT affect desktop */
.driving-value-mobile-img {
  display: none !important;   /* <-- key fix */
  width: 100%;
  height: auto;
}

/* Desktop overlay content */
.driving-value-content {
  color: #000;
}

.driving-value-content--desktop {
  display: block;
  position: absolute;
  bottom: 0;
  left: 6vh;
  width: 55%;
  padding-bottom: 10%;
  z-index: 2;
}

/* Hide mobile copy on desktop */
.driving-value-content--mobile {
  display: none !important;
}

/* Typography (desktop default) */
.driving-value-content h1 {
  font-size: 6vw;
  line-height: calc(0.7em + 1vw);
  margin: 0;
  width: 5em;
}

.driving-value-content h3 {
  font-size: 3vw;
  margin: 0.2em 0;
  line-height: normal;
}

.driving-value-content p {
  font-size: 1.1vw;
  line-height: 1.6;
  margin-top: 1em;
  max-width: 90%;
}

/* ---- Mid breakpoint tweaks (optional, keeps your original intent) ---- */
@media (max-width: 992px) {
  .driving-value-bg {
    height: 60vw;
  }

  .driving-value-content--desktop {
    width: 70%;
    left: 5vw;
  }

  .driving-value-content h1 {
    font-size: 8vw;
  }

  .driving-value-content h3 {
    font-size: 4vw;
  }

  .driving-value-content p {
    font-size: 2.5vw;
    max-width: 95%;
  }
}

/* ---- Mobile: switch to stacked layout ---- */
@media (max-width: 600px) {
  .driving-value-bg {
    background-image: none !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
  }

  /* show mobile image */
  .driving-value-mobile-img {
    display: block !important;
  }

  /* hide desktop overlay */
  .driving-value-content--desktop {
    display: none !important;
  }

  /* show stacked mobile content */
  .driving-value-content--mobile {
    display: block !important;
    position: static !important;
    width: 100% !important;
    left: auto !important;
    bottom: auto !important;
    padding: 24px 18px !important;
    background: #fff;
    color: #000;
  }

  /* Mobile typography (tune as needed) */
  .driving-value-content--mobile h1 {
    font-size: 12vw;
    line-height: 0.9;
    margin: 0;
    width: auto;
  }

  .driving-value-content--mobile h3 {
    font-size: 5vw;
    margin: 10px 0 0;
  }

  .driving-value-content--mobile p {
    font-size: 4vw;
    line-height: 1.5;
    margin: 14px 0 0;
    max-width: 100%;
  }
}



  /*  */
  @media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    position: relative;        /* for absolute copyright */
    padding: 3rem 1.5rem 4rem; /* extra bottom padding for copyright */
  }

  .footer-bottom-left,
  .footer-bottom-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Search full width like XD */
  .footer-search {
    width: 100%;
    max-width: 600px;
  }

  #footer-search {
    font-size: 1.4rem;
    color: black;
  }

  /* Center "Follow Us" row */
  .social {
    justify-content: center;
  }

  /* Center logo and give space like XD */
  .footer-bottom-right img {
    margin: 2rem 0 1.5rem;
  }

  /* Policies line centered, above copyright */
  .footer-bottom-right .copyright p {
    margin-bottom: 0.75rem;
  }

  /* COPYRIGHT: move to very bottom, centered */
  .footer-bottom-left > p {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
  }
  .custom-footer {
    margin-top: 0;
  }
}




#block-olivero-custom-content > div > article > div > ul.links > li > a {
  display: none !important;
}

div.views-field.views-field-title > span > a {

   color: black;
 text-decoration: none;
 font-weight: 900;
 font-size: x-large;
}

div.views-field.views-field-title > span > a:hover {
  color: orange;
  text-decoration: none;
}
.views-view-grid__item {
  padding: 1em;
}
/* ===============================
   Product Features – Responsive
   =============================== */

#ProductFeatures {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* Left image + right panel default (desktop) */
#ProductFeatures > div {
  flex: 1 1 50% !important;
}

/* -------------------------------
   Tablet & Mobile
   ------------------------------- */
@media (max-width: 991px) {
  #ProductFeatures {
    flex-direction: column !important;
  }

  /* Stack full width */
  #ProductFeatures > div {
    flex: 1 1 100% !important; 
    width: 100% !important;
  }

  /* Image height control on mobile */
  #ProductFeatures > div:first-child {
    min-height: 300px !important;
  }
}

/* -------------------------------
   Feature row layout (icon + text)
   ------------------------------- */
#ProductFeatures .feature-row {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

/* Mobile-friendly text spacing */
@media (max-width: 991px) {
  #ProductFeatures .feature-row {
    align-items: flex-start !important;
  }

  #ProductFeatures .feature-row img {
    width: 64px !important;
    height: auto !important;
  }

  #ProductFeatures .feature-row strong {
    line-height: 1.4 !important;
  }
}

/* ===== Fix stacking + overlap on mobile/tablet ===== */
@media (max-width: 991px) {
  #ProductFeatures {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  /* Force both sections to be full width and not overlap */
  #ProductFeatures > div {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
  }

  /* Ensure orange panel is on top and visible */
  #ProductFeatures > div:last-child {
    z-index: 2;
  }

  /* Ensure image section doesn't cover the orange panel */
  #ProductFeatures > div:first-child {
    z-index: 1;
    min-height: 320px;   /* adjust if you want */
      background-size: contain !important;  /* <-- key change */
  }
}

/* ===== Make the LEFT background image behave like "contain" ===== */
/* (prevents stretch/cropping) */
#ProductFeatures > div:first-child {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;  /* <-- key change */
}

/* Optional: keep the sidewall image from forcing weird sizing */
#ProductFeatures > div:first-child img#main-image {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

#block-olivero-custom-main-menu > ul > li > a:focus {
  outline-offset: none;
  outline: none;
}

/* ---- TIRES 101 ---- */
.tires101-wrapper{
  width: 100%;
  max-width: 1200px;         /* keeps it from being "everywhere" on big screens */
  margin: 0 auto;
  /* padding: 0 16px 40px; */
  box-sizing: border-box;
  overflow-x: hidden;        /* safety net for any stray widths */
}

.tires101-wrapper > img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Remove the extra paragraph spacing you have in markup */
.tires101-wrapper > p{
  margin: 0;
  padding: 0;
}

.tires101-wrapper h2{
  text-align: center;
  margin: 24px 0 20px;
  font-weight: 800;
  letter-spacing: .06em;
}

/* Grid layout */
.tires101-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 per row */
  gap: 24px;
  align-items: stretch;
}

.tires101-grid-items{
  min-width: 0; /* prevents grid blowout that causes horizontal scroll */
}

.tires101-grid-items a{
  height: 100%;
  display: flex;
  flex-direction: column;    /* icon top, title below */
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;

  text-decoration: none;
  color: inherit;

  padding: 16px 10px;
  border-radius: 14px;
  box-sizing: border-box;
}

.tires101-grid-items a img{
  width: 120px;              /* controls icon size (no overflow) */
  max-width: 100%;
  height: auto;
  display: block;
}

.tires101-grid-items a span{
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.2;
  max-width: 16ch;           /* keeps long titles from becoming super wide */
}

/* Responsive */
@media (max-width: 1024px){
  .tires101-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .tires101-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tires101-grid-items a img{ width: 110px; }
}
@media (max-width: 420px){
  .tires101-grid{ grid-template-columns: 1fr; }
}

/* 1) Make the TIRES 101 section escape Olivero "text-content" constraints */
.region--content .text-content .tires101-wrapper{
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* 2) Full-width header image */
.region--content .text-content .tires101-wrapper > img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* 3) Remove that spacer <p><br>&nbsp;</p> gap */
.region--content .text-content .tires101-wrapper > p{
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* 4) Center the title */
.region--content .text-content .tires101-wrapper h2{
  text-align: center !important;
  margin: 24px 0 18px;
  font-weight: 800;
  letter-spacing: .06em;
}

/* 5) Constrain the grid (so it looks clean) */
.region--content .text-content .tires101-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.region--content .text-content .tires101-grid-items{ min-width: 0; }

.region--content .text-content .tires101-grid-items a{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 16px 10px;
  border-radius: 14px;
  box-sizing: border-box;
}

.region--content .text-content .tires101-grid-items a img{
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
}

.region--content .text-content .tires101-grid-items a span{
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.2;
  max-width: 18ch;
}

/* NEWS page  */
#block-olivero-custom-views-block-blog-block-1  > h2.block__title {
  justify-self: center;
  font-size: xxx-large;
  margin: 1em;
}

#block-olivero-custom-views-block-blog-block-1 > div > div > div > div > div {
  padding: 0 10%;
}

/* end NEWS page */
/* Responsive */
@media (max-width: 1024px){
  .region--content .text-content .tires101-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .region--content .text-content .tires101-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #block-olivero-custom-views-block-blog-block-1 > div > div > div > div > div > div:nth-child(1){--views-grid--column-count:2 !important;}
  #block-olivero-custom-views-block-blog-block-1 > div > div > div > div > div {
  padding: 0;
}
}
@media (max-width: 420px){
  .region--content .text-content .tires101-grid{ grid-template-columns: 1fr; }
}

#block-olivero-custom-views-block-blog-block-1 > h2{
  color: black !important;
}

div#sliding-popup, div#sliding-popup .eu-cookie-withdraw-banner, .eu-cookie-withdraw-tab {
  bottom: 55px !important;
}
[dir] .eu-cookie-compliance-buttons .button {
  color: white !important;
  background: black !important;
}

#block-olivero-custom-views-block-blog-blog-block .views-field-title,
#block-olivero-custom-views-block-blog-blog-block .views-field-title * {
  margin: 0 !important;
  padding: 0 !important;
}

#block-olivero-custom-views-block-blog-blog-block .views-field-title a {
  line-height: 1 !important;   /* don’t use .1px; browsers clamp/ignore weird values */
  display: inline !important;  /* block can make the clickable area feel tall */
}
