/* ==========================================================================
   13 — Blog carousel (Elementor id 7beea21, EAEL post carousel style one)
   Measured: desktop 1440x452, tablet 768x452, mobile 390x376.
   Container is flush (Elementor padding 75px 0, width 1140) from 768 up; the
   20px gutter only applies on mobile.
   ========================================================================== */

.s-blog {
  padding-block: 75px;
  background: transparent;
}

.s-blog .container {
  padding-inline: 0;
}

/* ------------------------------------------------------------------ header */

.s-blog .blog__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 2px solid var(--c-black);
  padding-bottom: 4px;
}

.s-blog .blog__title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3em;
  color: var(--c-text);
  text-align: left;
}

.s-blog .blog__title b {
  font-weight: 700;
}

.s-blog .blog__title i {
  font-style: italic;
  font-weight: 400;
}

.s-blog .blog__more {
  flex: 0 0 auto;
  width: 171px;
  padding: 5px 5px 5px 15px;
  background: var(--c-navy);
  text-align: right;
}

.s-blog .blog__more a {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  line-height: 1em;
  letter-spacing: 0.5px;
  color: var(--c-white);
}

.s-blog .blog__more a:hover,
.s-blog .blog__more a:focus-visible {
  color: var(--c-blue-tint);
}

/* ---------------------------------------------------------------- carousel */

.s-blog .blog__carousel {
  position: relative;
  margin-top: 5px;
}

.s-blog .blog__swiper {
  width: 100%;
}

.s-blog .swiper-wrapper {
  align-items: stretch;
}

.s-blog .swiper-slide {
  height: auto;
  padding-inline: 10px;
}

.s-blog .blog__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--dur);
}

/* thumbnail ---------------------------------------------------------------- */

.s-blog .blog__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.s-blog .blog__thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform var(--dur);
}

/* eael-entry-overlay .fade-in — dark scrim that fades in on card hover */
.s-blog .blog__scrim {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--dur);
  pointer-events: none;
}

.s-blog .blog__card:hover .blog__scrim,
.s-blog .blog__card:focus-within .blog__scrim {
  opacity: 1;
}

.s-blog .blog__card:hover .blog__thumb img,
.s-blog .blog__card:focus-within .blog__thumb img {
  transform: scale(1.04);
}

/* title -------------------------------------------------------------------- */

.s-blog .blog__link {
  display: block;
  margin-top: 24px;
}

.s-blog .blog__post-title {
  font-family: var(--f-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  color: var(--c-text);
  text-align: center;
  transition: color var(--dur);
}

.s-blog .blog__link:hover .blog__post-title,
.s-blog .blog__link:focus-visible .blog__post-title {
  color: var(--c-navy);
}

/* arrows (decorative: no navigation config on this Swiper instance) --------- */

.s-blog .blog__arrow {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-black);
  pointer-events: none;
}

.s-blog .blog__arrow i {
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
}

.s-blog .blog__arrow--prev {
  left: -20px;
}

.s-blog .blog__arrow--prev i {
  transform: translateX(2px) rotate(135deg);
}

.s-blog .blog__arrow--next {
  right: -20px;
}

.s-blog .blog__arrow--next i {
  transform: translateX(-2px) rotate(-45deg);
}

/* dots (decorative: no pagination config on this Swiper instance) ----------- */

.s-blog .blog__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 33px;
  padding-bottom: 6px;
}

.s-blog .blog__dot {
  display: block;
  width: 10px;
  height: 5px;
  border-radius: 5px;
  background: var(--c-grey-cc);
  transition: all var(--dur);
}

.s-blog .blog__dot.is-active {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-navy);
}

/* ------------------------------------------------------------- tablet 768–1024 */

@media (min-width: 768px) and (max-width: 1024px) {
  .s-blog .blog__arrow {
    display: none;
  }
}

/* ------------------------------------------------------------- mobile <=767 */

@media (max-width: 767px) {
  .s-blog {
    padding-block: 30px;
  }

  .s-blog .container {
    padding-inline: var(--container-pad);
  }

  .s-blog .blog__head {
    align-items: flex-start;
  }

  .s-blog .blog__title {
    font-size: 14px;
  }

  .s-blog .blog__more {
    width: 68px;
    padding: 5px 8px;
  }

  .s-blog .blog__more a {
    font-size: 14px;
    line-height: 1.35em;
  }

  .s-blog .blog__arrow--prev {
    left: -8px;
  }

  .s-blog .blog__arrow--next {
    right: -8px;
  }
}
