/*
 * SeekaHost blog archive
 *
 * Loaded only by templates/blog/index.html. Shared header, navigation and
 * footer styling remains controlled by the normal site stylesheets.
 */

.sh-blog-archive {
  min-height: 60vh;
  color: #2d3d4f;
  background: #fff;
}

.sh-blog-archive__inner {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
  padding: 2rem 0 4.5rem;
}

.sh-blog-archive__header {
  padding-bottom: 1.5rem;
}

.sh-blog-archive__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  color: #8393a4;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.sh-blog-archive__breadcrumb a {
  color: #527da9;
}

.sh-blog-archive__breadcrumb a:hover {
  color: #1d65ad;
}

.sh-blog-archive__heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 24rem);
  align-items: end;
  gap: 2rem;
}

.sh-blog-archive__eyebrow {
  display: block;
  color: #2273c9;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sh-blog-archive__title {
  max-width: 38rem;
  margin: 0.35rem 0 0;
  color: #172c42;
  font-size: clamp(1.7rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.sh-blog-archive__description {
  max-width: 23rem;
  margin: 0;
  color: #65788c;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.sh-blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(17rem, 1fr);
  min-height: 20rem;
  overflow: hidden;
  background: #f3f7fb;
  border: 1px solid #e3eaf1;
  border-radius: 0.5rem;
}

.sh-blog-featured__media {
  display: block;
  min-height: 20rem;
  overflow: hidden;
  background: #dfe9f3;
}

.sh-blog-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  transition: transform 180ms ease;
}

.sh-blog-featured__media:hover img {
  transform: scale(1.012);
}

.sh-blog-featured__media--empty {
  display: grid;
  place-items: center;
  color: #9ab5cf;
  background: #e5eef7;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sh-blog-featured__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.125rem;
}

.sh-blog-featured__label {
  color: #2273c9;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.sh-blog-featured__title {
  display: -webkit-box;
  margin: 0.5rem 0 0;
  overflow: hidden;
  color: #172c42;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.sh-blog-featured__title a {
  color: inherit;
}

.sh-blog-featured__title a:hover {
  color: #2273c9;
}

.sh-blog-featured__excerpt {
  display: -webkit-box;
  margin: 0.75rem 0 0;
  overflow: hidden;
  color: #5f7286;
  font-size: 0.8125rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.sh-blog-featured__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.875rem;
  color: #8796a6;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.sh-blog-featured__link {
  align-self: flex-start;
  margin-top: 0.875rem;
  color: #2273c9;
  font-size: 0.75rem;
  font-weight: 700;
}

.sh-blog-categories {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.sh-blog-category {
  min-width: 0;
}

.sh-blog-category__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #dfe7ef;
}

.sh-blog-category__heading h2 {
  margin: 0;
  color: #172c42;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.sh-blog-category__heading > a {
  flex: none;
  color: #4779aa;
  font-size: 0.6875rem;
  font-weight: 700;
}

.sh-blog-category__heading > a:hover {
  color: #1d65ad;
}

.sh-blog-category__description {
  max-width: 45rem;
  margin: 0.625rem 0 0;
  color: #708397;
  font-size: 0.75rem;
  line-height: 1.5;
}

.sh-blog-category__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  margin-top: 1.125rem;
}

.sh-blog-archive-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sh-blog-archive-card__media {
  display: block;
  overflow: hidden;
  background: #e5edf5;
  border-radius: 0.25rem;
}

.sh-blog-archive-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease;
}

.sh-blog-archive-card__media:hover img {
  transform: scale(1.018);
}

.sh-blog-archive-card__media--empty {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  color: #92abc2;
  background: #eaf1f7;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sh-blog-archive-card__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding-top: 0.75rem;
}

.sh-blog-archive-card__meta {
  color: #8797a8;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.sh-blog-archive-card__title {
  display: -webkit-box;
  margin: 0.3rem 0 0;
  overflow: hidden;
  color: #172c42;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sh-blog-archive-card__title a {
  color: inherit;
}

.sh-blog-archive-card__title a:hover {
  color: #2273c9;
}

.sh-blog-archive-card__excerpt {
  display: -webkit-box;
  margin: 0.5rem 0 0;
  overflow: hidden;
  color: #65788c;
  font-size: 0.8125rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.sh-blog-archive-card__link {
  align-self: flex-start;
  margin-top: 0.625rem;
  color: #2273c9;
  font-size: 0.71875rem;
  font-weight: 700;
}

.sh-blog-archive .sh-pagination {
  margin-top: 3rem;
}

.sh-blog-archive__empty {
  margin-top: 2rem;
  padding: 3rem 1rem;
  color: #65788c;
  background: #f4f8fb;
  border: 1px solid #e4ebf2;
  border-radius: 0.375rem;
  text-align: center;
}

.sh-blog-archive__empty h2 {
  margin: 0;
  color: #172c42;
  font-size: 1.125rem;
}

.sh-blog-archive__empty p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .sh-blog-archive__inner {
    width: min(100% - 2rem, 58rem);
  }

  .sh-blog-archive__heading-row {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 19rem);
    gap: 1.25rem;
  }

  .sh-blog-featured {
    grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.9fr);
  }

  .sh-blog-featured__content {
    padding: 1.5rem;
  }

  .sh-blog-category__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sh-blog-archive__inner {
    width: calc(100% - 1.5rem);
    padding: 1.25rem 0 3rem;
  }

  .sh-blog-archive__heading-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .sh-blog-archive__title {
    font-size: 1.6rem;
  }

  .sh-blog-archive__description {
    max-width: 32rem;
  }

  .sh-blog-featured {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .sh-blog-featured__media,
  .sh-blog-featured__media img {
    min-height: 0;
  }

  .sh-blog-featured__media img,
  .sh-blog-featured__media--empty {
    aspect-ratio: 16 / 9;
  }

  .sh-blog-featured__content {
    padding: 1.25rem;
  }

  .sh-blog-featured__title {
    font-size: 1.35rem;
  }

  .sh-blog-categories {
    gap: 2.5rem;
    margin-top: 2.5rem;
  }

  .sh-blog-category__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .sh-blog-category__heading h2 {
    font-size: 0.875rem;
  }

  .sh-blog-archive-card__excerpt {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 390px) {
  .sh-blog-category__heading {
    align-items: flex-start;
  }

  .sh-blog-category__heading h2 {
    max-width: 75%;
  }
}