/* Blog list pages (/blog/insight, /blog/newsroom, /blog/pr-seminar).
   All values are live getComputedStyle measurements (1440/991/768/480/375). */

/* Live paints the list section #fafafa (via a solid-gradient background-image);
   card content stays white on top of it. */
.blog-section {
  padding: 60px 0;
  background-color: #fafafa;
}

/* Category tabs -------------------------------------------------------------- */
.blog-tabs {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.blog-tab {
  display: inline-block;
  padding: 8px 12px;
  background-color: #f1f1f1;
  border: 1px solid #ebebeb;
  font-size: 18px;
  line-height: 1.3;
  color: #7e8181;
  text-decoration: none;
}

.blog-tab:hover {
  background-color: #ebebeb;
}

/* Live current tab drops the 1px border (2px shorter than the others). */
.blog-tab.is-current {
  border: none;
  background-color: #161616;
  color: #fff;
}

/* Heading -------------------------------------------------------------------- */
/* 36px = live's 16px tab-row gap + 20px h1 margin (separate wrappers there,
   so the two don't collapse — here they do). */
.blog-heading {
  margin: 36px 0 0;
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #161616;
}

/* Divider under the description mirrors live's .content.case border-bottom. */
.blog-desc {
  margin: 46px 0 0;
  padding-bottom: 36px;
  border-bottom: 1px solid #d4d4d4;
  font-size: 20px;
  line-height: 1.5;
  color: #161616;
}

/* Card grid ------------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
  margin-top: 36px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
}

.blog-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 27 / 14;
  object-fit: cover;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background-color: #fff;
  border-top: 1px solid #ebebeb;
}

.blog-card-date {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(43, 43, 43, 0.7);
}

.blog-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.44;
  color: #161616;
  word-break: keep-all;
}

/* Numbered pagination (same treatment as the deal lists) --------------------- */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0 0;
}

.blog-page-num,
.blog-page-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  background-color: #fff;
  border: 1px solid #ebebeb;
  font-size: 14px;
  line-height: 1;
  color: #333;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}

.blog-page-num:hover,
.blog-page-arrow:hover {
  border-color: #161616;
}

.blog-page-num.is-current {
  background-color: #161616;
  border-color: #161616;
  color: #fff;
}

.blog-page-gap {
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  font-size: 14px;
  color: #7e8181;
}

/* Bottom CTA (shared look with the deal lists) ------------------------------- */
.deal-cta {
  padding: 30px 0;
  background-color: #161616;
  background-image: linear-gradient(rgb(0, 0, 0), rgba(22, 22, 22, 0.6)), url('/assets/images/cta-banner-bg.avif');
  background-size: auto, cover;
  background-position:
    0 0,
    50% 50%;
}

.deal-cta-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 45px;
  padding: 27px 36px;
}

.deal-cta-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.3;
  color: #fff;
}

.deal-cta-sub {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: #d4d4d4;
}

.deal-cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding: 16px 24px;
  background-color: #f2542d;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.deal-cta-button:hover {
  background-color: #323232;
}

/* Responsive ----------------------------------------------------------------- */
@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-heading {
    font-size: 56px;
  }
}

@media (max-width: 767px) {
  .blog-heading {
    font-size: 48px;
  }

  .blog-desc {
    margin-top: 28px;
    font-size: 18px;
  }

  .deal-cta-inner {
    margin: 0;
    padding: 27px 18px;
  }
}

@media (max-width: 479px) {
  .blog-section {
    padding: 40px 0;
  }

  .blog-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
  }

  /* Live: the current tab spans the full row (dictionary has none). */
  .blog-tab.is-current {
    grid-column: 1 / -1;
  }

  .blog-tab {
    font-size: 14px;
  }

  .blog-heading {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.4;
  }

  .blog-desc {
    margin-top: 18px;
    padding-bottom: 32px;
    font-size: 16px;
  }

  .blog-grid {
    gap: 18px;
  }

  .blog-card-title {
    font-size: 16px;
    line-height: 1.5;
  }

  .deal-cta-heading {
    font-size: 24px;
  }

  .deal-cta-sub {
    font-size: 16px;
  }
}
