/**
 * "Shop Trusted Tire Brands" card — heading + "Explore All Brands" link +
 * infinite-scrolling logo marquee (template-parts/tire-featured-brands.php).
 *
 * Values mirror the effective styles of the same card in css/home-static.css so
 * the component looks identical wherever it is rendered. Enqueued on demand by
 * \TG\Shortcodes::tireFeaturedBrands().
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400&family=Montserrat:wght@700&display=swap");

.tire-featured-brands-c {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: 12px;
  padding: 24px 22px 27px;
  background-color: rgba(247, 247, 247, 0.97);
  border-radius: 15px;
  font-family: "Inter", Arial, sans-serif;
}

.tire-featured-brands-heading-c {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
}

.tire-featured-brands-heading-c strong {
  color: #000000;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  text-transform: uppercase;
}

.tire-featured-brands-heading-c > span {
  display: block;
  height: 1px;
  background-color: #ddd;
}

.tire-featured-brands-heading-c a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FE3B1F;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
}

.tire-featured-brands-heading-c a b {
  font-size: 22px;
  font-weight: 400;
  line-height: 10px;
}

.tire-featured-brands-marquee-c {
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
}

.tire-featured-brands-track-c {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tireFeaturedBrandsMarqueeC 70s linear infinite;
  will-change: transform;
}

.tire-featured-brands-group-c {
  display: flex;
  align-items: center;
  gap: 58px;
  padding-right: 58px;
  flex-shrink: 0;
}

.tire-featured-brands-group-c img {
  display: block;
  width: 190px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tire-featured-brands-marquee-c:hover .tire-featured-brands-track-c {
  animation-play-state: paused;
}

@keyframes tireFeaturedBrandsMarqueeC {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tire-featured-brands-track-c {
    animation-play-state: paused;
  }
}

@media (max-width: 1024px) {
  .tire-featured-brands-c {
    margin: 12px 30px 0;
  }

  .tire-featured-brands-group-c {
    gap: 45px;
    padding-right: 45px;
  }

  .tire-featured-brands-group-c img {
    width: 165px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .tire-featured-brands-c {
    margin: 35px 0 0;
  }

  .tire-featured-brands-heading-c strong {
    font-size: 14px;
    line-height: 20.255px;
    letter-spacing: 0;
  }

  .tire-featured-brands-heading-c a {
    font-size: 11px;
    line-height: 15px;
  }

  .tire-featured-brands-marquee-c {
    margin-top: 18px;
  }

  .tire-featured-brands-group-c {
    gap: 34px;
    padding-right: 34px;
  }

  .tire-featured-brands-group-c img {
    width: 145px;
    height: 39px;
  }
}

@media (max-width: 480px) {
  .tire-featured-brands-c {
    padding: 21px 16px 59px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  .tire-featured-brands-heading-c {
    display: block;
    margin-bottom: 18px;
    text-align: center;
  }

  .tire-featured-brands-heading-c > span {
    display: none;
  }

  .tire-featured-brands-heading-c a {
    position: absolute;
    right: auto;
    bottom: 22px;
    left: 50%;
    justify-content: center;
    gap: 5px;
    transform: translateX(-50%);
  }

  .tire-featured-brands-marquee-c {
    width: calc(100% + 24px);
    margin-left: -12px;
  }

  .tire-featured-brands-group-c {
    gap: 28px;
    padding-right: 28px;
  }

  .tire-featured-brands-group-c img {
    width: 125px;
    height: 34px;
  }
}
