/* ============================================
 * HOMEPAGE TEMPLATE STYLES
 * ============================================ */

/* headlines */
.header-specials {
  margin-bottom: 3rem;
  font-family: var(--font-secondary);
}

/* top promo banner */
.promo-banner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 15px;
}
@media screen and (min-width: 1024px) {
  .promo-banner {
    padding: 30px 15px;
  }
}

.promo-banner .slides {
  padding-bottom: 20px;
}

.promo-banner .slides, /* fix cls on page load by making slides appear inline before script fires */
.promo-banner .slick-track {
  display: flex;
  overflow: hidden;
}

.promo-banner .slide {
  display: inline-flex;
  width: 100%;
  height: auto;
  flex: none;
  flex-wrap: nowrap;
  overflow: hidden;
}

.promo-banner .slide-img-left,
.promo-banner .slide-img-right {
  display: none;
  width: 30%;
  margin: 0 15px;
  border: 2px solid var(--color-light-gray);
  border-radius: 20px;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}
@media screen and (min-width: 768px) {
  .promo-banner .slide-img-left,
  .promo-banner .slide-img-right {
    display: inline-block;
  }
}

/* START set promo images */
.slide-flash-01-img-left {
  background-image: url("/assets/images/promos/HS_dec_2025_2_Day_Free_Shipping_tablet_01.png");
}
.slide-flash-01-img-right {
  background-image: url("/assets/images/promos/HS_dec_2025_2_Day_Free_Shipping_tablet_02.png");
}
@media screen and (min-width: 1200px) {
  .slide-flash-01-img-left {
    background-image: url("/assets/images/promos/HS_dec_2025_2_Day_Free_Shipping_LEFT_Desktop.png");
  }
  .slide-flash-01-img-right {
    background-image: url("/assets/images/promos/HS_dec_2025_2_Day_Free_Shipping_Right_Desktop.png");
  }
}
.slide-flash-img-left {
  background-image: url("/assets/images/promos/02-16-26-hs-left-tab.jpg");
}
.slide-flash-img-right {
  background-image: url("/assets/images/promos/02-16-26-hs-right-tab.jpg");
}
@media screen and (min-width: 1200px) {
  .slide-flash-img-left {
    background-image: url("/assets/images/promos/02-16-26-hs-left.jpg");
  }
  .slide-flash-img-right {
    background-image: url("/assets/images/promos/02-16-26-hs-right.jpg");
  }
}
.slide-01-img-left {
  background-image: url("/assets/images/promos/10-01-26-hs-left-tab.jpg");
}
.slide-01-img-right {
  background-image: url("/assets/images/promos/10-01-26-hs-right-tab.jpg");
}
@media screen and (min-width: 1200px) {
  .slide-01-img-left {
    background-image: url("/assets/images/promos/10-01-26-hs-left.jpg");
  }
  .slide-01-img-right {
    background-image: url("/assets/images/promos/10-01-26-hs-right.jpg");
  }
}

.slide-trp-img-left {
  background-image: url("/assets/images/promos/HS-JulyTRP-promo-LEFT-tablet.jpg");
}
.slide-trp-img-right {
  background-image: url("/assets/images/promos/HS-JulyTRP-promo-RIGHT-Tablet.jpg");
}
@media screen and (min-width: 1200px) {
  .slide-trp-img-left {
    background-image: url("/assets/images/promos/HS-JulyTRP-promo-LEFT-Desktop.jpg");
  }
  .slide-trp-img-right {
    background-image: url("/assets/images/promos/HS-JulyTRP-promo-RIGHT-Desktop.jpg");
  }
}

.slide-02-img-left {
  background-image: url("/assets/images/promos/10-25-24-slide-2-left-tab.png");
}
.slide-02-img-right {
  background-image: url("/assets/images/promos/10-25-24-slide-2-right-tab.png");
}
@media screen and (min-width: 1200px) {
  .slide-02-img-left {
    background-image: url("/assets/images/promos/10-25-24-slide-2-left.png");
  }
  .slide-02-img-right {
    background-image: url("/assets/images/promos/10-25-24-slide-2-right.png");
  }
}

.slide-03-img-left {
  background-image: url("/assets/images/promos/10-01-24-slide-3-left.jpg");
}
.slide-03-img-right {
  background-image: url("/assets/images/promos/10-01-24-slide-3-right.jpg");
}
@media screen and (min-width: 1200px) {
  .slide-03-img-left {
    /* no separate desktop image yet */
  }
  .slide-03-img-right {
    /* no separate desktop image yet */
  }
}
/* END set promo images */

.promo-banner .slide-promo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 0 7.5px;
  padding: 35px 15px;
  border: 2px solid var(--color-light-gray);
  border-radius: 20px;
  background: var(--color-lighter-blue);
  text-align: center;
}
@media screen and (min-width: 768px) {
  .promo-banner .slide-promo {
    width: 60%;
    margin: 0 10px;
    padding: 45px 15px;
  }
}
@media screen and (min-width: 1024px) {
  .promo-banner .slide-promo {
    width: 50%;
    margin: 0 15px;
    padding: 60px 15px;
  }
}

.promo-banner .eyebrow {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1;
  text-wrap: balance;
}
@media screen and (min-width: 768px) {
  .promo-banner .eyebrow {
    font-size: 2.4rem;
  }
}

.promo-banner .headline {
  margin: 15px 0;
  font-size: 2.4rem;
  color: var(--color-red);
  text-wrap: pretty;
}
@media screen and (min-width: 768px) {
  .promo-banner .headline {
    margin: 26px 0;
    font-size: 2.8rem;
  }
}
@media screen and (min-width: 1024px) {
  .promo-banner .headline {
    margin: 30px 0;
    font-size: 3.6rem;
  }
}

.promo-banner .flash-sale {
  margin-bottom: 0px;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
}
@media screen and (min-width: 768px) {
  .promo-banner .flash-sale {
    margin-bottom: 5px;
    font-size: 2rem;
  }
}
@media screen and (min-width: 1024px) {
  .promo-banner .flash-sale {
    font-size: 2.4rem;
  }
}

.promo-banner .promo-code {
  margin-bottom: 10px;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 400;
}
@media screen and (min-width: 768px) {
  .promo-banner .promo-code {
    font-size: 2rem;
  }
}
@media screen and (min-width: 1024px) {
  .promo-banner .promo-code {
    font-size: 2.8rem;
  }
}

.promo-banner .promo-code .text-red {
  font-weight: bold;
}

.promo-banner .btn {
  min-width: 180px;
}

.promo-banner .disclaimer-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  text-wrap: nowrap;
}
@media screen and (min-width: 768px) {
  .promo-banner .disclaimer-text {
    bottom: 20px;
  }
}

.promo-details {
  font-size: 14px;
  text-align: center;
}
.promo-details a {
  color: var(--color-dark-gray);
}

.promo-slider-controls {
  position: relative;
  height: 24px;
}

/* quick links */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.quick-links .slick-track {
  display: flex;
}
.quick-links .slick-slide {
  height: auto;
}

.quick-link-col {
  width: 100%;
  padding: 0 15px;
}
@media (min-width: 768px) {
  .quick-link-col {
    width: 50%;
    margin-bottom: 20px;
  }
}
@media (min-width: 992px) {
  .quick-link-col {
    width: 25%;
    margin-bottom: 0;
  }
}

.quick-link {
  height: 100%;
}

.quick-link a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.quick-link a:hover {
  color: var(--color-dark-gray);
}

.quick-link-img {
  flex: 1;
}

.quick-link-img img {
  width: 100%;
}

.quick-link-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  font-weight: 900;
  text-align: center;
}
@media screen and (min-width: 1200px) {
  .quick-link-title {
    font-size: 20px;
  }
}

.quick-link-title.bg-lightest-blue {
  border-top: 2px solid var(--color-light-blue);
}
.quick-link-title.bg-light-purple {
  border-top: 2px solid var(--color-purple);
}
.quick-link-title.bg-light-green {
  border-top: 2px solid var(--color-green);
}
.quick-link-title.bg-light-yellow {
  border-top: 2px solid var(--color-yellow);
}

/* products section */
.products-section {
  position: relative;
  background: rgb(245, 244, 251);
  background: linear-gradient(
    0deg,
    rgba(245, 244, 251, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  margin-bottom: 30px;
}
.products-section::after {
  content: "";
  width: 100%;
  height: 30px;
  position: absolute;
  bottom: -30px;
  left: 0;
  background-image: url("/assets/templates/hs-2024-core/images/products-wave.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media screen and (min-width: 768px) {
  .products-section {
    margin-bottom: 60px;
  }
  .products-section::after {
    height: 60px;
    bottom: -60px;
  }
}
@media screen and (min-width: 1024px) {
  .products-section {
    margin-bottom: 100px;
  }
  .products-section::after {
    height: 100px;
    bottom: -100px;
  }
}
@media screen and (min-width: 1200px) {
  .products-section {
    margin-bottom: 100px;
    padding-bottom: 80px;
  }
  .products-section::after {
    height: 100px;
    bottom: -100px;
  }
}

.products-section .header-specials {
  text-align: center;
}

.products-section .product-items {
  padding: 0 15px 30px;
}
@media screen and (min-width: 1200px) {
  .products-section .product-items {
    padding: 0 100px 0;
  }
}

.products-section .product-items .slick-slide {
  /* max-height: 350px; */
}

.products-section .product-items .slick-prev {
  left: 10px;
}
.products-section .product-items .slick-next {
  right: 10px;
}
@media screen and (min-width: 1200px) {
  .products-section .product-items .slick-prev {
    left: 60px;
  }
  .products-section .product-items .slick-next {
    right: 60px;
  }
}

/* training banner */
.training-banner {
  display: block;
  margin: 50px auto;
}

/* tabbed product sliders */
.tabbed-products .nav-tabs {
  display: flex;
  max-width: 1000px;
  margin: 0 auto 35px;
}

.tabbed-products .nav-tabs > li {
  flex: 1;
}

.tabbed-products .nav-tabs > li a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.tabbed-products .product-items {
  opacity: 0; /* hide until slick slider is triggered */
}
.tabbed-products .product-items.slick-initialized {
  opacity: 1;
}

.tabbed-products .product-items .slick-slide {
  /* max-height: 350px; */
}

.tabbed-products .marketing-slide {
  padding: 15px;
  background: var(--color-light-yellow);
}
.tabbed-products .marketing-slide img {
  align-self: center;
}
.tabbed-products .marketing-slide .btn {
  margin-top: auto;
}

/* reviews banner */
.reviews-banner {
  padding: 25px 0;
}

.reviews-banner h2 {
  font-family: var(--font-secondary);
  text-align: center;
}
@media screen and (min-width: 992px) {
  .reviews-banner h2 {
    text-align: left;
  }
}
@media screen and (min-width: 1200px) {
  .reviews-banner h2 {
    max-width: 400px;
    font-size: 40px;
  }
}

/* START override widget defaults */
.reviews-banner .SA__wrapper .SA__widget .SA__widget_item,
.reviews-banner .SA__wrapper .SA__widget .SA__widget_item span,
.reviews-banner .SA__wrapper .SA__widget .SA__widget_item p {
  text-align: center !important;
}
@media screen and (min-width: 768px) {
  .reviews-banner .SA__wrapper .SA__widget {
    display: flex !important;
    padding-left: 0;
  }
  .reviews-banner .SA__header {
    min-width: 50% !important;
  }
  .reviews-banner .SA__wrapper .SA__prev {
    left: -17px;
  }
  .reviews-banner .SA__wrapper .SA__next {
    right: 31px;
  }
}
.SA__wrapper .SA__more_review {
  padding-right: 0;
  text-align: center;
}
@media screen and (min-width: 992px) {
  .SA__wrapper .SA__more_review {
    padding-right: 50px;
    text-align: right;
  }
}
/* END override widget defaults */

@media screen and (min-width: 1200px) {
  .reviews-img-wrap {
    margin-top: -150px;
  }
}

.reviews-img-wrap img {
  margin: 30px auto 0;
}
@media screen and (min-width: 992px) {
  .reviews-img-wrap img {
    margin: 0 auto;
  }
}

/* featured articles */
.featured-articles {
  position: relative;
  margin-top: 30px;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(245, 251, 253, 1) 100%
  );
}
.featured-articles::before {
  content: "";
  width: 100%;
  height: 30px;
  position: absolute;
  top: -30px;
  left: 0;
  background-image: url("/assets/templates/hs-2024-core/images/articles-wave.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media screen and (min-width: 768px) {
  .featured-articles {
    margin-top: 60px;
  }
  .featured-articles::before {
    height: 60px;
    top: -60px;
  }
}
@media screen and (min-width: 1024px) {
  .featured-articles {
    /* margin-top: 100px;
      padding-top: 150px; */
  }
  .featured-articles::before {
    height: 100px;
    top: -100px;
  }
}

.featured-articles .header-specials {
  text-align: center;
}
@media screen and (min-width: 992px) {
  .featured-articles .header-specials {
    text-align: left;
  }
}

.featured-articles .slick-prev,
.featured-articles .slick-next {
  top: 39%;
}
.featured-articles .slick-prev {
  left: 12px;
}
.featured-articles .slick-next {
  right: 12px;
}

.article {
  margin-bottom: 30px;
}

.article a {
  display: block;
  border: 2px solid var(--color-light-blue);
  border-radius: 10px;
  overflow: hidden;
  color: var(--color-dark-gray);
  text-decoration: none;
}

.article-img {
  width: 100%;
  background-position: center;
  background-size: cover;
  aspect-ratio: 1 / 1;
  transition: 0.2s ease all;
}
@media screen and (min-width: 992px) {
  .article-stacked .article-img {
    aspect-ratio: 2.45 / 1;
  }
}
@media screen and (min-width: 1200px) {
  .article-stacked .article-img {
    aspect-ratio: 2.355 / 1;
  }
}
.article a:hover .article-img {
  scale: 1.05;
}

.article-1 .article-img {
  background-image: url("/assets/images/homepage-images/article-best-aeds-mob-v2.jpg");
}
/* @media screen and (min-width: 768px) {
    .article-1 .article-img {
      background-image: url('/assets/images/homepage-images/article-best-aeds-tab.png');
    }
  } */
@media screen and (min-width: 992px) {
  .article-1 .article-img {
    background-image: url("/assets/images/homepage-images/article-best-aeds-v2.jpg");
  }
}

.article-2 .article-img {
  background-image: url("/assets/images/homepage-images/article-how-aed-works-mob-v2.jpg");
}
/* @media screen and (min-width: 768px) {
    .article-2 .article-img {
      background-image: url('/assets/images/homepage-images/article-how-aed-works-tab.png');
    }
  } */
@media screen and (min-width: 992px) {
  .article-2 .article-img {
    background-image: url("/assets/images/homepage-images/article-how-aed-works-v2.jpg");
  }
}

.article-3 .article-img {
  background-image: url("/assets/images/homepage-images/article-arch-mob-v3.jpg");
}
/* @media screen and (min-width: 768px) {
    .article-3 .article-img {
      background-image: url('/assets/images/homepage-images/article-arch-tab.png');
    }
  } */
@media screen and (min-width: 992px) {
  .article-3 .article-img {
    background-image: url("/assets/images/homepage-images/article-arch-v3.jpg");
  }
}

.article-title {
  position: relative;
  z-index: 1;
  padding: 10px;
  background: #fff;
  border-top: 2px solid var(--color-light-blue);
  text-align: center;
  font-weight: 900;
}
.article a:hover .article-title {
  background: var(--color-lightest-blue);
}

/* articles slider (tablet & mobile) */
.articles-wrap.slick-initialized .slick-track {
  display: flex;
}

.articles-wrap.slick-initialized .article {
  height: auto;
}

.articles-wrap.slick-initialized .article a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.articles-wrap.slick-initialized .article-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
