/* Blog listing and single post pages */
.page-blog,
.page-blog-single {
  background: #fff;
}

.blog-container {
  width: 80%;
  max-width: 1380px;
  margin: 0 auto;
}

.blog-hero {
  background: linear-gradient(135deg, #f6f2ec 0%, #fff9e8 100%);
  border-bottom: 1px solid #ece8e1;
}

.blog-hero-inner {
  padding: 76px 0 72px;
}

.blog-eyebrow,
.blog-section-kicker,
.blog-sidebar-kicker,
.single-blog-author-label {
  display: block;
  margin-bottom: 10px;
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1.3;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 830px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
}

.blog-hero p {
  max-width: 720px;
  margin-top: 20px;
  color: #595959;
  font-size: 17px;
  line-height: 1.75;
}

.blog-main {
  padding: 70px 0 90px;
}

.blog-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}

.blog-heading-row h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

.blog-count {
  color: #777;
  font-size: 13px;
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.blog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .035);
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .07);
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f2ec;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.025);
}

.blog-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 600;
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 25px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 13px;
  color: #7a7a7a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.blog-card-meta span + span {
  position: relative;
}

.blog-card-meta span + span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #aaa;
  transform: translateY(-50%);
}

.blog-card h2 {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.45px;
  line-height: 1.35;
}

.blog-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-card p {
  margin-bottom: 22px;
  color: #656565;
  font-size: 14px;
  line-height: 1.75;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
}

.blog-read-link span {
  font-size: 18px;
  transition: transform .18s ease;
}

.blog-read-link:hover span {
  transform: translateX(4px);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 45px;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedede;
  border-radius: 50px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}

.blog-pagination a {
  background: #111;
  color: #fff;
  border-color: #111;
}

.blog-empty,
.blog-not-found {
  text-align: center;
}

.blog-empty {
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  padding: 65px 25px;
  background: #fafafa;
}

.blog-empty h2,
.blog-not-found h1 {
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.blog-empty p,
.blog-not-found p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}

.blog-not-found {
  padding: 100px 0;
}

.blog-not-found .blog-primary-button {
  margin-top: 25px;
}

/* Single blog */

.single-blog-hero {
  padding: 55px 0 48px;
  background: #f8f6f1;
  border-bottom: 1px solid #ebe7df;
}

.single-blog-hero-inner {
  max-width: 1380px;
}

.blog-breadcrumb {
  display: flex;
  overflow: hidden;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  color: #7a7a7a;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.blog-breadcrumb a:hover {
  color: #111;
  text-decoration: underline;
}

.blog-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-blog-hero h1 {
  max-width: 1000px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.11;
}

.single-blog-summary {
  max-width: 850px;
  margin-top: 20px;
  color: #5c5c5c;
  font-size: 17px;
  line-height: 1.72;
}

.single-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 22px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.single-blog-meta span + span {
  position: relative;
}

.single-blog-meta span + span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #999;
  transform: translateY(-50%);
}

.single-blog-main {
  padding: 48px 0 90px;
}

.single-blog-banner {
  overflow: hidden;
  margin-bottom: 48px;
  border-radius: 22px;
  background: #f2f2f2;
}

.single-blog-banner img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, .85fr);
  gap: 54px;
  align-items: start;
}

.single-blog-article {
  min-width: 0;
}

.single-blog-content {
  color: #2a2a2a;
  font-size: 16px;
  line-height: 1.85;
}

.single-blog-content > *:first-child {
  margin-top: 0;
}

.single-blog-content p,
.single-blog-content ul,
.single-blog-content ol,
.single-blog-content blockquote,
.single-blog-content table,
.single-blog-content figure {
  margin: 0 0 0px;
}

.single-blog-content h2 {
  margin: 30px 0 5px;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.3;
}

.single-blog-content h3 strong,
.single-blog-content h2 strong {
  font-weight: 700;
}

.single-blog-content h3 {
  margin: 30px 0 5px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.35;
}

.single-blog-content h4 {
  margin: 30px 0 5px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.single-blog-content ul,
.single-blog-content ol {
  padding-left: 25px;
}

.single-blog-content ul {
  list-style: disc;
}

.single-blog-content ol {
  list-style: decimal;
}

.single-blog-content li {
  margin-bottom: 8px;
}

.single-blog-content a {
  color: #1769d2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-blog-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 8px auto 28px;
  border-radius: 14px;
}

.single-blog-content blockquote {
  border-left: 4px solid var(--brand-orange);
  border-radius: 0 12px 12px 0;
  padding: 22px 24px;
  background: #faf8f2;
  color: #444;
}

.single-blog-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #e1e1e1;
}

.single-blog-content th,
.single-blog-content td {
  border: 1px solid #e6e6e6;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.single-blog-content th {
  background: #f7f7f7;
  font-weight: 700;
}

.single-blog-author {
  margin-top: 50px;
  border: 1px solid #e7e3db;
  border-radius: 18px;
  padding: 28px;
  background: #faf8f3;
}

.single-blog-author h2 {
  margin-bottom: 9px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.single-blog-author p {
  color: #5f5f5f;
  font-size: 14px;
  line-height: 1.75;
}

.single-blog-sidebar {
  position: sticky;
  top: 135px;
}

.blog-sidebar-card {
  margin-bottom: 22px;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  padding: 24px;
  background: #fff;
}

.blog-sidebar-card > h2 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.blog-sidebar-card > p {
  margin-bottom: 20px;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}

.blog-quote-card {
  background: #111;
  color: #fff;
  border-color: #111;
}

.blog-quote-card .blog-sidebar-kicker {
  color: var(--brand-orange);
}

.blog-quote-card > p {
  color: #d5d5d5;
}

.blog-primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  padding: 0 20px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.blog-primary-button:hover { background: var(--brand-navy); }

.blog-related-list {
  display: flex;
  flex-direction: column;
}

.blog-related-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border-top: 1px solid #ededed;
  padding: 15px 0;
}

.blog-related-item:first-child {
  border-top: 0;
  padding-top: 2px;
}

.blog-related-item img {
  width: 82px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
  background: #f3f3f3;
}

.blog-related-copy {
  min-width: 0;
}

.blog-related-copy strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-related-copy small {
  color: #888;
  font-size: 11px;
}

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

  .single-blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .blog-sidebar-card {
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
  .blog-container {
    width: 92%;
  }

  .blog-hero-inner {
    padding: 52px 0 48px;
  }

  .blog-hero h1,
  .single-blog-hero h1 {
    letter-spacing: -1.1px;
  }

  .blog-main {
    padding: 48px 0 65px;
  }

  .blog-heading-row {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .single-blog-hero {
    padding: 38px 0 35px;
  }

  .single-blog-summary {
    font-size: 15px;
  }

  .single-blog-main {
    padding: 28px 0 65px;
  }

  .single-blog-banner {
    margin-bottom: 30px;
    border-radius: 15px;
  }

  .single-blog-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .single-blog-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-pagination {
    gap: 8px;
  }

  .blog-pagination a,
  .blog-pagination span {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }
}
