/* Blog – listing, article detail and editor content components.
   Root font-size is 62.5 % (1rem = 10px), see style.css. */

/* ---------- Shared ---------- */
.blog-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: #7e84a3;
}
.blog-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: #c4c7cc;
}
.blog-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.blog-breadcrumb a:hover {
  color: #0058ff;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  background: #e5efff;
  color: #0058ff;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 2rem;
  text-decoration: none;
}
a.blog-chip:hover {
  background: #d4e4ff;
  color: #0058ff;
}
.blog-chip--muted {
  background: #f2f4f7;
  color: #5a607f;
}

/* ---------- Listing ---------- */
.blog-hero {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  border-bottom: 1px solid #e6e9f4;
}
.blog-hero-heading {
  max-width: 80rem;
  margin: 4rem auto;
  text-align: center;
}
.blog-hero-heading .label-chip {
  margin-bottom: 2.4rem;
}
.blog-hero-lead {
  max-width: 72rem;
  margin: 2.4rem auto 0;
}
.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 3.2rem;
}
.blog-category-pill {
  padding: 0.8rem 1.6rem;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #ffffff;
  color: #101828;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 2rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.blog-category-pill:hover {
  border-color: #80acfc;
  color: #0058ff;
}
.blog-category-pill.is-active {
  border-color: #0058ff;
  background: #0058ff;
  color: #ffffff;
}

.blog-listing {
  padding: 4.8rem 0 8rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr));
  gap: 2.4rem;
}
.blog-grid > :only-child {
  width: 100%;
  max-width: 58.2rem;
}
@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.blog-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 1.2rem;
  background: #ffffff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover,
.blog-card:focus-within {
  box-shadow: 0 1.2rem 3.2rem rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f2f7ff;
}
.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.3rem;
  color: #7e84a3;
}
.blog-card-title {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.6rem;
}
.blog-card-title a {
  color: #101828;
  text-decoration: none;
}
.blog-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.2rem;
}
.blog-card-title a:focus-visible {
  outline: none;
}
.blog-card-title a:focus-visible::after {
  outline: 3px solid #0058ff;
  outline-offset: 3px;
}
.blog-card-more {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.2rem;
  margin-top: auto;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0058ff;
}
.blog-card-placeholder {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #0058ff;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.blog-card-placeholder span {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
}
.blog-card-title a:hover {
  color: #0058ff;
}
.blog-card-perex {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 4.8rem;
}
.blog-empty {
  padding: 4rem 0;
  text-align: center;
}

/* ---------- Article ---------- */
.blog-preview-bar {
  padding: 1rem 2.4rem;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 1.4rem;
  text-align: center;
}

.blog-article-header {
  padding: 4rem 0;
}
.blog-article-heading {
  max-width: 92rem;
  margin: 4rem auto 0;
}
.blog-article-layout {
  display: grid;
  grid-template-columns: 28rem minmax(0, 76rem);
  justify-content: space-between;
  align-items: start;
  gap: 6.4rem;
  padding-bottom: 6.4rem;
}
.blog-article-layout--without-toc {
  grid-template-columns: minmax(0, 76rem);
  justify-content: center;
}
.blog-article-main {
  min-width: 0;
  overflow-wrap: anywhere;
}
.blog-article-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.blog-article-title {
  margin-bottom: 2rem;
}
@media (max-width: 767px) {
  .blog-article-title.heading-h1 {
    font-size: 3.6rem;
    line-height: 4.4rem;
  }
}
.blog-article-perex p {
  color: #5a607f;
}
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
  margin-top: 2.4rem;
  font-size: 1.4rem;
  color: #7e84a3;
}
.blog-article-author {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #101828;
  font-weight: 600;
  text-decoration: none;
}
.blog-article-author:hover {
  color: #0058ff;
}
.blog-article-author img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}
.blog-article-dates strong {
  font-weight: 600;
  color: #5a607f;
}
.blog-article-hero {
  max-width: 124.8rem;
  margin: 0 auto 6.4rem;
  padding: 0 3rem;
}
.blog-article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2rem;
}

.blog-short-answer {
  margin-bottom: 4rem;
  padding: 2.4rem 2.8rem;
  border-left: 4px solid #0058ff;
  border-radius: 0 1.6rem 1.6rem 0;
  background: #f2f7ff;
}
.blog-short-answer-question {
  margin: 0 0 0.8rem;
  font-family: "Geist", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.6rem;
  color: #101828;
}
.blog-short-answer p {
  font-size: 1.7rem;
  line-height: 2.7rem;
  color: #101828;
}

.blog-case-study {
  margin-bottom: 4rem;
  padding: 2.4rem;
  border: 1px solid #e4e7ec;
  border-radius: 1.6rem;
}
.blog-case-study dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.6rem;
  margin: 0;
}
.blog-case-study dt {
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7e84a3;
}
.blog-case-study dd {
  margin: 0.4rem 0 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #101828;
}
.blog-case-study-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e4e7ec;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #101828;
}

.blog-toc {
  position: sticky;
  top: 10rem;
  max-height: calc(100vh - 12rem);
  overflow-y: auto;
  padding: 2.4rem;
  border: 1px solid #e4e7ec;
  border-radius: 1.6rem;
  background: #f6f8fc;
}
.blog-toc-title {
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: #101828;
}
.blog-toc ol {
  margin: 0;
  padding-left: 2rem;
}
.blog-toc li {
  margin: 1.2rem 0;
  font-size: 1.4rem;
  line-height: 2rem;
  color: #7e84a3;
}
.blog-toc a {
  color: #5a607f;
  text-decoration: none;
}
.blog-toc a:hover {
  color: #0058ff;
  text-decoration: underline;
}

/* ---------- Article content (CKEditor output) ---------- */
.blog-content {
  font-size: 1.7rem;
  line-height: 2.8rem;
  color: #5a607f;
}
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  scroll-margin-top: 10rem;
  color: #101828;
}
.blog-content h2 {
  margin: 5.6rem 0 1.6rem;
  font-family: "Newsreader", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 4rem;
  letter-spacing: -0.01em;
}
.blog-content h3 {
  margin: 3.2rem 0 1.2rem;
  font-family: "Geist", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 3rem;
}
.blog-content h4 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
}
.blog-content > :first-child {
  margin-top: 0;
}
.blog-content p {
  margin: 0 0 2rem;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.blog-content a {
  color: #0058ff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 2rem;
  padding-left: 2.4rem;
}
.blog-content li {
  margin-bottom: 0.8rem;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 1.2rem;
}
.blog-content iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 0 2.4rem;
  border: 0;
  border-radius: 1.2rem;
}
.blog-content blockquote {
  margin: 3.2rem 0;
  padding: 0 0 0 2.4rem;
  border-left: 3px solid #80acfc;
  font-family: "Newsreader", serif;
  font-size: 2.2rem;
  line-height: 3.2rem;
  color: #101828;
}
.blog-content hr {
  margin: 4rem 0;
  border: 0;
  border-top: 1px solid #e4e7ec;
}
.blog-figure {
  margin: 3.2rem 0;
}
.blog-figure figcaption,
.blog-content .blog-caption {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  line-height: 2rem;
  color: #7e84a3;
  text-align: center;
}
.blog-table-wrap {
  overflow-x: auto;
  margin: 0 0 2.8rem;
  border: 1px solid #e4e7ec;
  border-radius: 1.2rem;
}
.blog-content table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  font-size: 1.5rem;
  line-height: 2.2rem;
}
.blog-content th,
.blog-content td {
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid #e4e7ec;
  text-align: left;
  vertical-align: top;
}
.blog-content thead th,
.blog-content tr:first-child th {
  background: #f6f8fc;
  color: #101828;
  font-weight: 600;
}
.blog-content tr:last-child td {
  border-bottom: 0;
}
.blog-content .blog-box {
  margin: 3.2rem 0;
  padding: 2.4rem 2.8rem;
  border-radius: 1.6rem;
  background: #f2f7ff;
}
.blog-content .blog-box > :last-child {
  margin-bottom: 0;
}
.blog-content .blog-box--warning {
  background: #fff8eb;
  border-left: 4px solid #f5a524;
}
.blog-content .blog-box--cta {
  background: #101828;
  color: #ffffff;
}
.blog-content .blog-box--cta h2,
.blog-content .blog-box--cta h3,
.blog-content .blog-box--cta a {
  color: #ffffff;
}

/* ---------- CTA below the content ---------- */
.blog-content-cta {
  margin-top: 5.6rem;
  padding: 3.2rem;
  border: 1px solid #e4e7ec;
  border-radius: 2rem;
  background: #f6f8fc;
}
.blog-content-cta-title {
  margin-bottom: 1.6rem;
  font-family: "Newsreader", serif;
  font-size: 3rem;
  line-height: 3.8rem;
  letter-spacing: -0.01em;
  color: #101828;
}
.blog-content-cta-text {
  margin-bottom: 2.4rem;
}
.blog-content-cta-text p + p {
  margin-top: 1.6rem;
}
.blog-content-cta-text a {
  color: #0058ff;
}
.blog-content-cta .btn-pill {
  padding: 1.2rem 2.4rem;
  font-size: 1.4rem;
}

/* ---------- Article footer blocks ---------- */
.blog-faq {
  margin-top: 6.4rem;
}
.blog-faq .heading-h2 {
  margin-bottom: 2.4rem;
}
.blog-faq-item {
  border-bottom: 1px solid #e4e7ec;
}
.blog-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem 0;
  cursor: pointer;
  list-style: none;
}
.blog-faq-item summary::-webkit-details-marker {
  display: none;
}
.blog-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 2.4rem;
  line-height: 1;
  color: #0058ff;
}
.blog-faq-item[open] summary::after {
  content: "−";
}
.blog-faq-item summary h3 {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2.6rem;
  color: #101828;
}
.blog-faq-answer {
  padding: 0 0 2rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 4rem;
}
.blog-tag {
  padding: 0.2rem 1rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  line-height: 2rem;
  color: #5a607f;
}

.blog-terms {
  margin-top: 4rem;
}
.blog-terms .heading-h3 {
  margin-bottom: 1.2rem;
}
.blog-terms a,
.blog-topic-articles a {
  color: #0058ff;
}
.blog-topic-articles {
  margin: 4rem 0;
}
.blog-topic-articles .heading-h3 {
  margin-bottom: 1.2rem;
}

.blog-feature-cta {
  margin-top: 5.6rem;
  padding: 3.2rem;
  border-radius: 2rem;
  background: #0058ff;
  color: #ffffff;
}
.blog-feature-cta-title {
  margin-bottom: 1.2rem;
  font-family: "Newsreader", serif;
  font-size: 3rem;
  line-height: 3.8rem;
  color: #ffffff;
}
.blog-feature-cta p {
  color: rgba(255, 255, 255, 0.86);
}
.blog-feature-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 2.4rem;
  padding: 0;
  list-style: none;
}
.blog-feature-cta-links a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.4rem;
  text-decoration: none;
}
.blog-feature-cta-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.blog-feature-cta .btn-pill {
  padding: 1.2rem 2.4rem;
  font-size: 1.4rem;
}

.blog-author-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 5.6rem 0 0;
  padding: 2.4rem;
  border: 1px solid #e4e7ec;
  border-radius: 2rem;
}
.blog-author-box img {
  flex-shrink: 0;
  width: 9.6rem;
  height: 9.6rem;
  border-radius: 50%;
  object-fit: cover;
}
.blog-author-box-label {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7e84a3;
}
.blog-author-box-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #101828;
}
.blog-author-box-name a {
  color: inherit;
  text-decoration: none;
}
.blog-author-box-name a:hover {
  color: #0058ff;
}
.blog-author-box-name span {
  font-weight: 400;
  color: #5a607f;
}
.blog-author-box-headline {
  margin-top: 0.4rem;
}

.blog-related {
  padding: 6.4rem 0 8rem;
  background: #f6f8fc;
}
.blog-related .heading-h2 {
  margin-bottom: 3.2rem;
}

/* ---------- Author profile ---------- */
.blog-author-profile {
  display: flex;
  align-items: flex-start;
  gap: 3.2rem;
}
.blog-author-profile img {
  flex-shrink: 0;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  object-fit: cover;
}
.blog-author-profile-job {
  margin-top: 0.8rem;
  font-weight: 600;
  color: #0058ff;
}
.blog-author-profile-headline {
  margin-top: 1.2rem;
  font-size: 1.8rem;
  line-height: 2.8rem;
  color: #101828;
}
.blog-author-profile-bio {
  max-width: 72rem;
  margin-top: 1.6rem;
}
.blog-author-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  color: #0058ff;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 575px) {
  .blog-author-profile {
    flex-direction: column;
  }
  .blog-author-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Keep the shared website spacing and controls usable on narrow screens. */
.blog-consultation {
  padding-top: 0;
}
.blog-pagination .pagination {
  flex-wrap: wrap;
  gap: 0.8rem;
}
.blog-pagination .page-link {
  display: grid;
  place-items: center;
  min-width: 4rem;
  min-height: 4rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
}
.blog-categories a:focus-visible,
.blog-article a:focus-visible,
.blog-faq-item summary:focus-visible {
  outline: 3px solid #0058ff;
  outline-offset: 4px;
}
.blog-feature-cta a:focus-visible {
  outline-color: #ffffff;
}
.blog-short-answer,
.blog-faq .heading-h2,
.blog-terms .heading-h3,
.blog-consultation {
  scroll-margin-top: 10rem;
}
.blog-author-profile > div {
  min-width: 0;
}
@media (max-width: 991px) {
  .blog-article-layout,
  .blog-article-layout--without-toc {
    max-width: 80rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 3.2rem;
  }
  .blog-toc {
    position: static;
    max-height: none;
  }
  .blog-article-hero {
    padding: 0 2.4rem;
    margin-bottom: 4rem;
  }
}
@media (max-width: 575px) {
  .blog-hero,
  .blog-article-header {
    padding: 2.4rem 0 3.2rem;
  }
  .blog-hero-heading,
  .blog-article-heading {
    margin-top: 3.2rem;
  }
  .blog-hero-heading {
    margin-bottom: 3.2rem;
    text-align: left;
  }
  .blog-categories {
    justify-content: flex-start;
  }
  .blog-category-pill {
    min-height: 4.4rem;
    display: inline-flex;
    align-items: center;
  }
  .blog-listing {
    padding: 3.2rem 0 4.8rem;
  }
  .blog-card-body,
  .blog-short-answer,
  .blog-content .blog-box,
  .blog-feature-cta {
    padding: 2.4rem;
  }
  .blog-content h2 {
    font-size: 2.8rem;
    line-height: 3.6rem;
  }
  .blog-article-perex p {
    font-size: 1.6rem;
    line-height: 2.6rem;
  }
  .blog-article-layout {
    padding-bottom: 4.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-category-pill {
    transition: none;
  }
  .blog-card:hover,
  .blog-card:focus-within {
    transform: none;
  }
}
