﻿.blog-intro {
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  color: var(--white);
  background: linear-gradient(115deg, var(--teal-900), #023f72 70%, #075461);
}
.blog-intro h1 {
  color: inherit;
  margin: .65rem 0 0;
  max-width: 27ch;
  text-wrap: balance;
}
.blog-intro--home {
  display: grid;
  align-items: start;
  --blog-hero-height: calc(80vh - var(--blog-header-height, 0px));
  min-height: var(--blog-hero-height);
  padding-block: 0;
  background:
    radial-gradient(ellipse at left top, #071527dc, #07152777 22%, #07152700 49%),
    url("/images/blog/new-soch-blog-hero.webp") center top / cover no-repeat,
    #023f72;
}
.blog-hero.container {
  display: grid;
  align-items: center;
  min-height: 28.6vw;
  max-width: none;
  padding-inline: 5.7%;
}
@media (width > 960px) and (aspect-ratio > 1/1) {
  .blog-intro--home {
    background:
      radial-gradient(ellipse at left top, #071527dc, #07152777 22%, #07152700 49%),
      url("/images/blog/new-soch-blog-hero.webp") center / 100% 100% no-repeat,
      #023f72;
  }
  .blog-intro--home .blog-hero.container {
    min-height: min(28.6vw, var(--blog-hero-height));
  }
  .blog-intro--home + .blog-list-layout {
    padding-top: 1rem;
  }
}
.blog-hero__copy {
  width: 22vw;
  text-align: center;
}
.blog-hero__copy .blog-breadcrumb ol {
  justify-content: center;
}
.blog-hero__copy h1 {
  font-size: clamp(1.75rem, 2.6vw, 3.25rem);
}
.blog-hero__copy p {
  max-width: 36ch;
  margin: 1rem auto 0;
  color: #e3f1ff;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.blog-breadcrumb ol, .blog-byline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  font-size: .925rem;
}
.blog-breadcrumb li + li::before { content: '/'; color: #b8d5ee; margin-right: .75rem; }
.blog-breadcrumb a { color: #e3f1ff; text-decoration: underline; text-underline-offset: .18em; }
.blog-breadcrumb [aria-current] { color: #fff; }
.blog-byline { margin: 1.1rem 0 0; color: #e3f1ff; }
.blog-byline span { border-inline-start: 1px solid #b8d5ee; padding-inline-start: .75rem; }
.blog-article-category {
  display: inline-flex;
  margin-top: clamp(1rem, 3vw, 1.75rem);
  padding: .24rem .8rem;
  border: 1px solid #ffffff52;
  border-radius: 999px;
  color: var(--white);
  background: #ffffff16;
  font-size: .85rem;
  font-weight: 600;
}
.blog-article-category:hover { color: #e4fa96; }
.blog-nav-link { text-decoration: underline; text-underline-offset: .3em; }
.blog-list-layout, .blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 300px);
  gap: clamp(1.4rem, 3vw, 2.75rem);
  align-items: start;
  padding-block: clamp(1.75rem, 4vw, 4rem);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c7d8e7;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 14px #123d681a;
}
.blog-card:hover, .blog-card:focus-within {
  border-color: #87abc9;
  box-shadow: 0 8px 22px #123d6826;
}
.blog-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--teal-100);
}
.blog-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__image:focus-visible { outline-offset: -4px; z-index: 1; }
.blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.blog-card__body h2 {
  min-block-size: 2.4em;
  margin: .55rem 0 .4rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.blog-card__body h2 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--heading);
}
.blog-card__body h2 a:hover { color: var(--teal-700); text-decoration: underline; }
.blog-card__category {
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--teal-100);
  color: #034477;
  font-size: .825rem;
  font-weight: 600;
}
.blog-card__category:hover { color: #034477; text-decoration: underline; }
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding-top: .35rem;
  border-top: 1px solid var(--cream-dark);
}
.blog-card time { color: var(--muted); font-size: .875rem; }
.blog-card__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2rem;
  color: #034477;
  font-size: .825rem;
  font-weight: 600;
  white-space: nowrap;
  transform-origin: right center;
  transition: transform .22s ease, opacity .2s ease;
}
.blog-card__action::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: .3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.blog-card__action:hover,
.blog-card__action:focus-visible {
  color: #034477;
  transform: scale(1.07);
}
.blog-card__action:hover::after,
.blog-card__action:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .blog-card__action { opacity: 0; }
  .blog-card:hover .blog-card__action,
  .blog-card:focus-within .blog-card__action { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card__action, .blog-card__action::after { transition: none; }
  .blog-card__action:hover,
  .blog-card__action:focus-visible { transform: none; }
}
.blog-sidebar { display: grid; gap: 1rem; }
.blog-sidebar > *, .blog-list > .blog-search {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  overflow-wrap: anywhere;
}
.blog-sidebar h2 {
  margin: 0 0 .55rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
}
.blog-sidebar li + li { border-top: 1px solid var(--cream-dark); }
.blog-sidebar li a { display: block; padding: .52rem 0; line-height: 1.4; }
.blog-sidebar li a:hover { color: #034477; text-decoration: underline; }
.blog-sidebar > .blog-sidebar-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(7rem, 100%), 1fr));
  gap: .5rem;
  padding: .65rem;
  border-color: #c5d9ea;
  background: #eef6fd;
}
.blog-sidebar-contact__intro {
  grid-column: 1 / -1;
  padding: .15rem .25rem 0;
  color: #102e4a;
}
.blog-sidebar-contact__intro h2 { margin-bottom: .3rem; }
.blog-sidebar-contact__intro p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
}
.blog-sidebar-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  border-radius: var(--radius-sm);
  background: var(--teal-500);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.blog-sidebar-contact a[href^="https://wa.me/"] {
  background: var(--coral-dark);
}
.blog-sidebar-contact a:hover { filter: brightness(.9); }
.blog-sidebar .blog-recent li a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: .7rem;
  padding: .7rem 0;
  color: #153653;
}
.blog-sidebar .blog-recent li:first-child a { padding-top: .35rem; }
.blog-sidebar .blog-recent li:last-child a { padding-bottom: .25rem; }
.blog-recent img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.blog-recent__title {
  display: block;
  font-weight: 600;
  font-size: .94rem;
  line-height: 1.35;
}
.blog-recent time {
  display: block;
  margin-top: .25rem;
  color: #556b80;
  font-size: .8rem;
}
.blog-sidebar .blog-recent a:hover { text-decoration: none; }
.blog-recent a:hover .blog-recent__title { text-decoration: underline; }
.blog-list > .blog-search {
  margin-bottom: clamp(1.15rem, 2.5vw, 1.8rem);
}
.blog-list > .blog-search,
.blog-sidebar > section:first-of-type,
.blog-sidebar > .blog-recent {
  border-color: #c5d9ea;
  background: #eef6fd;
}
.blog-sidebar > section:first-of-type li + li,
.blog-sidebar > .blog-recent li + li {
  border-top-color: #d6e4f0;
}
.blog-search label {
  display: block;
  margin-bottom: .55rem;
  color: #102e4a;
  font-size: 1rem;
  font-weight: 700;
}
.blog-search > div {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}
.blog-search input {
  width: 0;
  min-width: 0;
  flex: 1;
  min-height: 3rem;
  border: 1px solid #809bb4;
  border-radius: var(--radius-sm);
  padding: .55rem .75rem;
  background: var(--white);
  color: #102e4a;
  font: inherit;
  font-size: max(1rem, 16px);
}
.blog-search input::placeholder { color: #556b80; opacity: 1; }
.blog-search input:focus-visible {
  border-color: #005a9e;
  outline: 2px solid #005a9e;
  outline-offset: 1px;
}
.blog-search .btn {
  min-height: 3rem;
  padding: .55rem clamp(.75rem, 2vw, 1.25rem);
  border-radius: var(--radius-sm);
  background: #075997;
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
}
.blog-search .btn:hover { background: #034477; }
.blog-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.blog-pages a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.blog-pages__gap { align-self: center; color: var(--muted); }
.blog-pages a:hover { border-color: var(--teal-700); color: var(--teal-700); }
.blog-pages [aria-current], .blog-pages [aria-current]:hover {
  background: var(--teal-800);
  color: var(--white);
  border-color: transparent;
}
.blog-article {
  min-width: 0;
  width: 100%;
  padding: clamp(1.2rem, 3.5vw, 3.25rem);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.blog-feature {
  width: auto;
  max-width: 100%;
  max-height: 31rem;
  height: auto;
  object-fit: contain;
  background: var(--cream);
  border-radius: var(--radius);
  margin: 0 auto clamp(1.4rem, 3vw, 2.25rem);
}
.blog-prose {
  max-width: 68ch;
  margin-inline: auto;
  font-size: clamp(1.03rem, 1.2vw, 1.13rem);
  line-height: 1.8;
  color: #344154;
  overflow-wrap: anywhere;
}
.blog-prose h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin-top: 1.5em; }
.blog-prose h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-top: 1.3em; }
.blog-prose h2:first-child, .blog-prose h3:first-child { margin-top: 0; }
.blog-prose a { text-decoration: underline; text-underline-offset: .18em; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1rem; padding-left: 1.4em; }
.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose li + li { margin-top: .35rem; }
.blog-prose figure { margin: 1.5rem 0; max-width: 100%; overflow: auto; }
.blog-prose img { border-radius: var(--radius-sm); }
.blog-prose figcaption { margin-top: .5rem; font-size: .9rem; }
.blog-prose table { border-collapse: collapse; width: 100%; }
.blog-prose td, .blog-prose th { border: 1px solid var(--border); padding: .45rem .55rem; }
.blog-prose blockquote {
  margin: 1.5rem 0;
  padding: .8rem 1.05rem;
  border-inline-start: 4px solid var(--teal-500);
  background: var(--cream);
}
.blog-prose blockquote > :last-child { margin-bottom: 0; }
.blog-prose pre { overflow: auto; }
.blog-article-end {
  max-width: 68ch;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cream-dark);
}
.blog-article-end a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: .5rem;
  padding: .4rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.blog-article-end a::before { content: '←' / ''; }
.blog-article-end a:hover { background: var(--cream); color: #034477; }
.blog-result-list > li { padding: 1rem 0; border-bottom: 1px solid var(--cream-dark); }
.blog-result-list h3 { margin: 0 0 .35rem; }
.blog-result-list p { margin: 0; }

@media (min-width: 1050px) {
  /* Let a full archive page share the sidebar's grid for its first two rows. */
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.6rem);
    align-items: stretch;
  }
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10))
    :is(.blog-list, #blog-archive, .blog-grid) {
    display: contents;
  }
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10)) .blog-search {
    grid-column: 1 / 3;
    grid-row: 1;
    margin-bottom: 0;
  }
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10)) > .blog-sidebar {
    grid-column: 3;
    grid-row: 1 / 4;
    align-content: start;
    gap: .75rem;
    width: 100%;
    max-width: 23rem;
    justify-self: start;
  }
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10)) > .blog-sidebar section {
    padding: .8rem 1rem;
  }
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10)) > .blog-sidebar li a {
    padding-block: .37rem;
  }
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10)) .blog-card__image {
    aspect-ratio: 16 / 10;
  }
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10)) .blog-card__body {
    padding: 1rem 1.15rem;
  }
  .blog-list-layout:has(#blog-archive:not([hidden]) .blog-card:nth-child(10)) .blog-pages {
    grid-column: 1 / -1;
    margin-top: .5rem;
  }
}

@media (max-width: 850px) {
  .blog-list-layout, .blog-article-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px), (max-aspect-ratio: 1/1) {
  .blog-intro--home {
    display: block;
    min-height: 0;
    padding: 0;
    background: linear-gradient(
      to bottom,
      #07678e 40%,
      #07577b 54%,
      #123c5d 67%,
      #123c5d calc(100% - 3.5rem),
      #52718c calc(100% - 2.4rem),
      #c5d4df calc(100% - .9rem),
      var(--white)
    );
    color: var(--white);
  }
  .blog-intro--home::before {
    content: '';
    display: block;
    aspect-ratio: 3 / 2;
    background: url("/images/blog/new-soch-blog-hero.webp") center / cover no-repeat;
    mask-image: linear-gradient(to bottom, #000 74%, #000e 80%, #0008 90%, transparent 100%);
  }
  .blog-hero.container {
    min-height: 0;
    justify-items: center;
    padding: .4rem 6% clamp(3.8rem, 12vw, 5rem);
  }
  .blog-hero__copy {
    width: min(100%, 27rem);
    text-align: center;
    text-shadow: 0 1px 5px #071527c9;
  }
  .blog-hero__copy h1 {
    max-width: none;
    margin-top: .5rem;
    font-size: clamp(2rem, 6vw, 2.6rem);
  }
  .blog-hero__copy .blog-breadcrumb ol {
    justify-content: center;
    font-size: .875rem;
  }
  .blog-hero__copy .blog-breadcrumb a { color: #d8edff; }
  .blog-hero__copy .blog-breadcrumb [aria-current] { color: #e3f1ff; }
  .blog-hero__copy .blog-breadcrumb li + li::before { color: #b8d5ee; }
  .blog-hero__copy p {
    max-width: 32ch;
    margin: .65rem auto 0;
    color: #e3f1ff;
  }
}
@media (max-width: 540px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
}
