/* Latest blog section — evergreen, cream and gold palette */

.latest-blog-section {
  position: relative;
  padding: 62px 0;
}

.latest-blog-section__surface {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 18%, rgb(215 179 106 / .16), transparent 28%),
    radial-gradient(circle at 92% 82%, rgb(168 183 159 / .16), transparent 32%),
    linear-gradient(135deg, #1d3028 0%, #2d4639 48%, #172720 100%);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 34px);
}

.latest-blog-section__surface::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: .2;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 0 48%, rgb(255 255 255 / .08) 49% 50%, transparent 51%),
    linear-gradient(30deg, transparent 0 48%, rgb(215 179 106 / .12) 49% 50%, transparent 51%);
  background-size: 86px 86px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.latest-blog-section .container-xxl {
  position: relative;
  z-index: 1;
}

.latest-blog-section__surface > * {
  position: relative;
  z-index: 1;
}

.latest-blog-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.latest-blog-section__heading {
  min-width: 0;
  text-align: right;
}

.latest-blog-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #d7b36a;
  font-size: .8rem;
  font-weight: 800;
}

.latest-blog-section__eyebrow i {
  font-size: 1rem;
}

.latest-blog-section__heading h2 {
  margin: 0 0 8px;
  color: #fff8e9;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
}

.latest-blog-section__heading p {
  max-width: 600px;
  margin: 0;
  color: rgb(246 241 230 / .72);
  font-size: .95rem;
  line-height: 1.9;
}

.latest-blog-section__all-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 142px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid rgb(215 179 106 / .5);
  border-radius: 14px;
  color: #2a2115;
  background: linear-gradient(135deg, #f0d99c 0%, #d7b36a 52%, #b98c43 100%);
  box-shadow:
    0 12px 26px rgb(0 0 0 / .2),
    inset 0 1px 0 rgb(255 255 255 / .5);
  font-size: .92rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.latest-blog-section__all-link:hover,
.latest-blog-section__all-link:focus-visible {
  color: #2a2115;
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px rgb(0 0 0 / .28),
    inset 0 1px 0 rgb(255 255 255 / .6);
  filter: brightness(1.05);
}

.latest-blog-section__all-link i {
  font-size: 1rem;
  transition: transform .22s ease;
}

.latest-blog-section__all-link:hover i,
.latest-blog-section__all-link:focus-visible i {
  transform: translateX(-4px);
}

.latest-blog-section__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.latest-blog-section .blog-post-card .post-inner {
  border-color: rgb(215 179 106 / .22);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgb(0 0 0 / .16);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.latest-blog-section .blog-post-card:hover .post-inner {
  border-color: rgb(215 179 106 / .58);
  box-shadow: 0 20px 38px rgb(0 0 0 / .24);
  transform: translateY(-5px);
}

.latest-blog-section .blog-post-card .post-content {
  padding: 1.05rem 1.1rem 1.15rem;
}

.latest-blog-section .blog-post-card .post-meta i,
.latest-blog-section .blog-post-card .post-meta.date,
.latest-blog-section .blog-post-card .post-meta.post-category a:hover,
.latest-blog-section .blog-post-card .entry-title a:hover {
  color: #a77c35;
}

.latest-blog-section .blog-post-card .post-meta.post-category a {
  color: #788a7c;
}

.latest-blog-section .blog-post-card .entry-title a {
  color: #30483b;
}

.latest-blog-section .blog-post-card .the-excerpt {
  color: #66756b;
}

.latest-blog-section__state,
.latest-blog-section__empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin: 0;
  color: rgb(246 241 230 / .74);
  font-size: .95rem;
}

.latest-blog-section__state {
  gap: 10px;
}

.latest-blog-section__state i {
  color: #d7b36a;
  font-size: 1.3rem;
}

@media (max-width: 1199.98px) {
  .latest-blog-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .latest-blog-section {
    padding: 46px 0;
  }

  .latest-blog-section__header {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }

  .latest-blog-section__heading {
    text-align: center;
  }

  .latest-blog-section__eyebrow {
    justify-content: center;
  }

  .latest-blog-section__heading p {
    margin-inline: auto;
    font-size: .88rem;
  }

  .latest-blog-section__all-link {
    width: 100%;
    max-width: 230px;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .latest-blog-section__surface {
    border-radius: 20px;
    padding: 18px 14px;
  }

  .latest-blog-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .latest-blog-section .blog-post-card .post-content {
    gap: .45rem;
    padding: .78rem .62rem .82rem;
  }

  .latest-blog-section .blog-post-card .post-meta {
    font-size: .7rem;
  }

  .latest-blog-section .blog-post-card .entry-title {
    font-size: .82rem;
    line-height: 1.65;
  }

  .latest-blog-section .blog-post-card .the-excerpt {
    font-size: .74rem;
    line-height: 1.7;
    -webkit-line-clamp: 3;
  }

  .latest-blog-section .blog-post-card .post-meta-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .latest-blog-section .blog-post-card:hover .post-inner {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-blog-section .blog-post-card .post-inner,
  .latest-blog-section__all-link,
  .latest-blog-section__all-link i {
    transition: none;
  }

  .latest-blog-section .blog-post-card:hover .post-inner,
  .latest-blog-section__all-link:hover,
  .latest-blog-section__all-link:focus-visible {
    transform: none;
  }
}

