.afi-home-featured {
  padding: 70px 0 76px;
  background: #f3f5f6;
}

.afi-home-featured__heading,
.afi-featured-products > header {
  margin-bottom: 24px;
}

.afi-home-featured__heading span,
.afi-featured-families__intro > span,
.afi-featured-family > span,
.afi-featured-products > header span {
  display: block;
  margin-bottom: 6px;
  color: #f29811;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.afi-home-featured__heading h2,
.afi-featured-families__intro h2,
.afi-featured-products > header h2 {
  margin: 0;
  color: #4e4f52;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}

.afi-home-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.afi-home-featured__card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  overflow: hidden;
  border-radius: 10px;
  background-color: #343a40;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 30px rgba(27,31,35,.16);
  color: #fff;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.afi-home-featured__card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #f29811;
  content: '';
}

.afi-home-featured__card:hover,
.afi-home-featured__card:focus {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(27,31,35,.24);
  transform: translateY(-4px);
}

.afi-home-featured__card span {
  margin-bottom: 7px;
  color: #f6b955;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.afi-home-featured__card strong {
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
}

.afi-featured-families,
.afi-featured-products {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 40px clamp(20px, 3vw, 36px);
}

.afi-featured-families {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: #f3f5f6;
}

.afi-featured-families__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-radius: 9px;
  background: linear-gradient(140deg, #343a40, #4e4f52);
  color: #fff;
}

.afi-featured-families__intro h2 { color: #fff; font-size: 27px; }
.afi-featured-families__intro p { margin: 12px 0 0; color: #e5e7e9; font-family: 'Raleway', sans-serif; line-height: 1.55; }

.afi-featured-family {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 9px;
  background-color: #4e4f52;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 24px rgba(27,31,35,.14);
  color: #fff;
  text-decoration: none !important;
  transition: box-shadow .2s ease, transform .2s ease;
}

.afi-featured-family:hover,
.afi-featured-family:focus { color: #fff; box-shadow: 0 15px 30px rgba(27,31,35,.22); transform: translateY(-3px); }
.afi-featured-family > span { color: #f6b955; }
.afi-featured-family > strong { color: #fff; font-size: 20px; font-weight: 600; line-height: 1.25; }

.afi-featured-products { position: relative; }
.afi-featured-products > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.afi-featured-products > header p { max-width: 560px; margin: 0; color: #4e4f52; font-family: 'Raleway', sans-serif; text-align: right; }
.afi-featured-products__slider { margin: 0 42px; }
.afi-featured-products__slide { display: flex !important; height: auto; padding: 0 7px; }
.afi-featured-products__slider .slick-track { display: flex; }
.afi-featured-product { display: flex; width: 100%; flex-direction: column; overflow: hidden; border: 1px solid #dfe3e6; border-radius: 10px; background: #fff; box-shadow: 0 9px 22px rgba(27,31,35,.08); }
.afi-featured-product__image { display: flex; aspect-ratio: 1 / 1; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid #e4e7e9; background: #fff; box-shadow: inset 0 0 28px rgba(78,79,82,.18); }
.afi-featured-product__image img { width: 100%; height: 100%; border-radius: 6px; object-fit: contain; }
.afi-featured-product__copy { flex: 1; padding: 17px; }
.afi-featured-product__copy strong,.afi-featured-product__copy span { display: block; }
.afi-featured-product__copy strong a { color: #4e4f52; text-decoration: none; }
.afi-featured-product__copy span { margin-top: 4px; color: #f29811; font-size: 13px; font-weight: 600; }
.afi-featured-product__copy p { display: -webkit-box; margin: 10px 0 0; overflow: hidden; color: #4e4f52; font-family: 'Raleway', sans-serif; font-size: 14px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.afi-featured-product__action { display: block; padding: 13px 16px; background: #4e4f52; color: #fff !important; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none !important; text-transform: uppercase; }
.afi-featured-product__action:hover,.afi-featured-product__action:focus { background: #c97f10; }
.afi-featured-products__prev,.afi-featured-products__next { position: absolute; z-index: 2; top: 55%; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #d6dade; border-radius: 50%; background: #fff; color: #4e4f52; font-size: 22px; transform: translateY(-50%); }
.afi-featured-products__prev { left: -42px; }
.afi-featured-products__next { right: -42px; }

@media (max-width: 991px) {
  .afi-featured-families { grid-template-columns: 1fr 1fr; }
  .afi-featured-families__intro { min-height: 230px; }
}

@media (max-width: 767px) {
  .afi-home-featured { padding: 48px 0; }
  .afi-home-featured__grid,.afi-featured-families { grid-template-columns: 1fr; }
  .afi-home-featured__card { min-height: 240px; }
  .afi-featured-products > header { align-items: start; flex-direction: column; }
  .afi-featured-products > header p { text-align: left; }
  .afi-featured-products__slider { margin: 0 28px; }
  .afi-featured-products__prev { left: -30px; }
  .afi-featured-products__next { right: -30px; }
}

@media (prefers-reduced-motion: reduce) {
  .afi-home-featured__card,.afi-featured-family { transition: none; }
}
