/* Product pages: the shared Elementor template of pages 166, 170, 352, 342,
   414 and 415. */

.product-hero {
  min-height: 450px;
}

.product-hero .hero-divider {
  margin-block: 10px;
}

.product-hero p {
  font-size: inherit;
  line-height: inherit;
}

/* Only the house page lays the primary blue over its photo, at 25%. The hero
   background is already the primary, so fading the image gives the blend. */
.product-hero--house-insurance .page-hero-bg {
  opacity: 0.75;
}

.product-intro {
  padding: 80px 50px 70px;
  text-align: center;
}

.product-intro h2 {
  margin-block: 0;
}

.product-divider {
  border: none;
  border-block-start: 2px solid var(--color-primary);
  inline-size: 100px;
  margin-block: 20px;
  margin-inline: auto;
}

.product-intro p {
  margin-block: 0;
  padding-inline: 180px;
}

.product-featured-section {
  padding: 80px 50px;
  background: var(--color-bg-shaded);
  border-block: 1px solid var(--color-border-light);
}

.product-featured-list {
  display: grid;
  gap: 75px;
}

.product-featured {
  display: grid;
  grid-template-columns: 56% 1fr;
  gap: 30px;
  align-items: start;
}

.product-featured-img img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 100 / 43;
  object-fit: cover;
  border-radius: 6px;
}

.product-featured h3 {
  margin-block: 0 7px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.product-featured h3 a {
  color: #002B3A;
  text-decoration: none;
}

.product-featured-author {
  margin-block: 0 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-primary);
}

.product-featured p:not(.product-featured-author) {
  margin-block: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
}

.product-featured p:not(.product-featured-author)::after {
  content: " ...";
}

.product-featured .read-more {
  display: inline-block;
  margin-block-start: 10px;
  padding-inline: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-accent);
  text-decoration: none;
}

.product-more {
  padding: 60px 50px 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--product-cols, 3), 1fr);
  gap: 52px 25px;
  padding-block-end: 40px;
}

/* House and contents inset their article column by 20px and space the cards
   wider; the other four pages do neither. */
.product-more--wide .center {
  padding-inline-start: 20px;
}

.product-more--wide .product-grid {
  column-gap: 47px;
}

.product-grid .article-card img {
  height: auto;
  aspect-ratio: 2 / 1;
}

.product-grid .article-card h3 {
  color: #002B39;
  line-height: 1.2;
}

.product-grid .article-card p {
  display: block;
  -webkit-line-clamp: none;
  font-size: 15px;
  line-height: 1.5;
}

.product-grid .article-card p::after {
  content: " ...";
}

.product-grid .article-card .read-more {
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .product-hero {
    min-height: 280px;
  }

  /* Health and wealth alone darkens its photo, and only below desktop. */
  .product-hero--health-wealth-insurance::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #1B2247;
    opacity: 0.23;
  }

  .product-featured-list {
    gap: 60px;
  }

  .product-more--wide .center {
    padding-inline-start: 0;
  }

  .product-hero .page-hero-content {
    padding-inline-end: 280px;
  }

  .product-intro {
    padding: 40px 30px;
  }

  .product-intro p {
    padding-inline: 15px;
  }

  .product-featured-section,
  .product-more {
    padding: 60px 30px;
  }

  .product-featured {
    grid-template-columns: 41% 1fr;
    gap: 24px;
  }

  .product-featured-img img {
    aspect-ratio: 100 / 59;
  }

  .product-featured p:not(.product-featured-author),
  .product-featured .read-more {
    line-height: 1.5;
  }

  .product-grid,
  .product-more--wide .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 27px 25px;
  }
}

@media (max-width: 767px) {
  .product-hero {
    min-height: 250px;
  }

  .product-hero--health-wealth-insurance::before {
    opacity: 0.59;
  }

  .product-featured-list {
    gap: 21px;
  }

  .product-hero .page-hero-content {
    padding-inline-end: 80px;
  }

  .product-intro,
  .product-featured-section {
    padding: 30px 20px;
  }

  .product-more {
    padding: 30px 20px 40px;
  }

  .product-featured {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-featured h3 {
    margin-block-end: 9px;
  }

  .product-featured-img img {
    aspect-ratio: 2 / 1;
  }

  .product-featured p:not(.product-featured-author),
  .product-featured .read-more {
    font-size: 16px;
  }

  .product-grid,
  .product-more--wide .product-grid {
    grid-template-columns: 1fr;
  }
}
