/* Blog, articles and single post templates */
.sfc-blog-page,
.sfc-blog-single {
  background: var(--sfc-white, #fff);
  color: var(--sfc-navy, #0f2c44);
}

.sfc-blog-hero,
.sfc-blog-single-hero {
  position: relative;
  min-height: clamp(260px, 34vw, 430px);
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(7, 22, 34, .72), rgba(7, 22, 34, .72)), var(--sfc-blog-hero-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.sfc-blog-hero::after,
.sfc-blog-single-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 42px;
  background: linear-gradient(180deg, transparent 0, #fff 75%);
  clip-path: polygon(0 66%, 8% 57%, 17% 72%, 28% 54%, 39% 69%, 48% 57%, 61% 74%, 70% 55%, 82% 70%, 92% 58%, 100% 70%, 100% 100%, 0 100%);
  z-index: 1;
}

.sfc-blog-hero__inner,
.sfc-blog-single-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: clamp(70px, 10vw, 140px);
}

.sfc-blog-hero h1,
.sfc-blog-single-hero h1 {
  margin: 0 auto 20px;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 900;
}

.sfc-blog-search {
  display: grid;
  grid-template-columns: minmax(180px, 560px) auto;
  justify-content: center;
  gap: 10px;
  width: min(720px, 100%);
  margin: 0 auto;
}

.sfc-blog-search input,
.sfc-blog-filter select {
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #0f2c44;
  padding: 14px 16px;
  font: inherit;
  min-height: 48px;
}

.sfc-blog-search button,
.sfc-blog-card__button,
.sfc-blog-single-card__content .wp-block-button__link {
  border: 0;
  border-radius: 6px;
  background: #ff3328;
  color: #fff;
  font-weight: 800;
  padding: 13px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 28px rgba(255, 51, 40, .22);
  cursor: pointer;
}

.sfc-blog-listing {
  padding: clamp(58px, 7vw, 96px) 0 clamp(78px, 8vw, 112px);
}

.sfc-blog-listing--red {
  background: #ff3328;
}

.sfc-blog-listing__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin: 0 auto 34px;
  max-width: 1120px;
  color: #fff;
}

.sfc-blog-listing__head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 900;
}

.sfc-blog-listing__head span {
  display: block;
  width: 70px;
  height: 2px;
  margin-top: 18px;
  background: rgba(255,255,255,.9);
}

.sfc-blog-filter {
  min-width: 210px;
}

.sfc-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.sfc-blog-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sfc-blog-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(13, 33, 48, .16);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sfc-blog-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.25 / 1;
  background: #eaf1f5;
}

.sfc-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.sfc-blog-card:hover .sfc-blog-card__image img {
  transform: scale(1.04);
}

.sfc-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 20px 20px 22px;
}

.sfc-blog-card__body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.02em;
}

.sfc-blog-card__body h3 a {
  color: #0f2c44;
  text-decoration: none;
}

.sfc-blog-card__body p {
  margin: 0;
  color: #253c4f;
  font-size: 15px;
  line-height: 1.5;
}

.sfc-blog-card__button {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  font-size: 14px;
}

.sfc-blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.sfc-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #0f2c44;
  text-decoration: none;
  font-weight: 800;
}

.sfc-blog-pagination .page-numbers.current {
  background: #0f2c44;
  color: #fff;
}

.sfc-blog-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.sfc-blog-single-hero__cat {
  display: inline-flex;
  margin-bottom: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.sfc-blog-single-hero__meta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 700;
  opacity: .92;
}

.sfc-blog-single-body {
  background: #ff3328;
  padding: clamp(56px, 7vw, 94px) 0 clamp(70px, 8vw, 110px);
}

.sfc-blog-single-card {
  width: min(720px, 100%);
  margin: 0 auto;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(7, 22, 34, .18);
}

.sfc-blog-single-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.sfc-blog-single-card__content {
  padding: clamp(26px, 4vw, 44px);
  color: #0f2c44;
  font-size: 17px;
  line-height: 1.74;
}

.sfc-blog-single-card__content h2,
.sfc-blog-single-card__content h3,
.sfc-blog-single-card__content h4 {
  color: #0f2c44;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-top: 1.6em;
}

.sfc-blog-single-card__content a {
  color: #ff3328;
  font-weight: 800;
}

.sfc-blog-related {
  max-width: 1120px;
  margin: clamp(58px, 7vw, 86px) auto 0;
}

.sfc-blog-related h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 26px;
  font-weight: 900;
  letter-spacing: -.03em;
}

@media (max-width: 1100px) {
  .sfc-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .sfc-blog-listing__head {
    display: block;
  }

  .sfc-blog-filter {
    margin-top: 18px;
  }

  .sfc-blog-grid,
  .sfc-blog-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .sfc-blog-search {
    grid-template-columns: 1fr;
  }

  .sfc-blog-grid,
  .sfc-blog-grid--related {
    grid-template-columns: 1fr;
  }

  .sfc-blog-hero__inner,
  .sfc-blog-single-hero__inner {
    padding-block: 58px 86px;
  }

  .sfc-blog-card__body {
    padding: 18px;
  }
}
