/* Scoped blog index and single post visual system. */
.zc-blog-scope {
  --zc-blog-teal: #219ebc;
  --zc-blog-teal-dark: #123642;
  --zc-blog-large-gradient: linear-gradient(135deg, #127f98 0%, #219ebc 100%);
  --zc-blog-orange: #fb8500;
  --zc-blog-orange-deep: #f44603;
  --zc-blog-muted: #526b73;
  --zc-blog-border: rgba(18, 54, 66, 0.09);
  --zc-blog-shadow: 0 18px 48px rgba(18, 54, 66, 0.1);
  color: var(--zc-blog-teal-dark);
  overflow-x: clip;
}

.zc-blog-scope *,
.zc-blog-scope *::before,
.zc-blog-scope *::after {
  box-sizing: border-box;
}

.zc-blog-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.zc-blog-hero,
.zc-post-hero {
  padding: clamp(130px, 13vw, 190px) 0 clamp(70px, 8vw, 112px);
  background: var(--zc-blog-large-gradient);
}

.zc-blog-hero__grid,
.zc-post-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 5vw, 74px);
}

.zc-blog-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 7px 13px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, var(--zc-blog-orange) 0%, var(--zc-blog-orange-deep) 100%);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.zc-blog-scope h1,
.zc-blog-scope h2,
.zc-blog-scope h3,
.zc-blog-scope p {
  letter-spacing: 0;
}

.zc-blog-scope h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 4.2vw, 68px);
  font-weight: 900;
  line-height: 1.05;
}

.zc-blog-scope h2 {
  margin: 0 0 16px;
  color: var(--zc-blog-teal);
  font-size: clamp(28px, 2.35vw, 42px);
  font-weight: 900;
  line-height: 1.16;
}

.zc-blog-scope h3 {
  margin: 0 0 10px;
  color: var(--zc-blog-teal);
  font-size: clamp(21px, 1.45vw, 28px);
  font-weight: 850;
  line-height: 1.18;
}

.zc-blog-scope p {
  margin: 0 0 16px;
  color: var(--zc-blog-muted);
  font-size: 16px;
  line-height: 1.76;
}

.zc-blog-hero p,
.zc-post-hero p {
  color: rgba(255, 255, 255, 0.92);
}

.zc-blog-lead {
  max-width: 620px;
  font-size: clamp(17px, 1.25vw, 20px) !important;
  line-height: 1.65 !important;
}

.zc-blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.zc-blog-btn,
.zc-blog-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 158px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.zc-blog-btn:hover,
.zc-blog-btn:focus-visible,
.zc-blog-read-more:hover,
.zc-blog-read-more:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
}

.zc-blog-btn--primary,
.zc-blog-read-more {
  color: #fff;
  background: linear-gradient(180deg, var(--zc-blog-orange) 0%, var(--zc-blog-orange-deep) 100%);
  box-shadow: 0 16px 42px rgba(244, 70, 3, 0.18);
}

.zc-blog-btn--ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.zc-blog-btn--light {
  color: var(--zc-blog-teal);
  background: #fff;
}

.zc-blog-hero__media,
.zc-post-hero__image {
  display: block;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--zc-blog-shadow);
  font-size: 0;
  line-height: 0;
}

.zc-blog-hero__media::before,
.zc-post-hero__image::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -26px;
  top: -34px;
  width: 96px;
  height: 90px;
  background-image: url("/wp-content/uploads/2025/08/arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  filter: invert(1) drop-shadow(2px 4px 6px rgba(18, 54, 66, 0.32));
}

.zc-blog-hero__media img,
.zc-post-hero__image img,
.zc-blog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zc-post-hero__image.zc-blog-image--contain,
.zc-blog-card__image.zc-blog-image--contain {
  background: #f7fbfc;
}

.zc-post-hero__image.zc-blog-image--contain img,
.zc-blog-card__image.zc-blog-image--contain img {
  box-sizing: border-box;
  object-fit: contain;
  padding: clamp(14px, 2vw, 24px);
}

.zc-blog-hero__media img,
.zc-post-hero__image img {
  min-height: 430px;
}

.zc-blog-section,
.zc-blog-listing,
.zc-post-main,
.zc-post-related,
.zc-post-comments {
  padding: clamp(58px, 7vw, 96px) 0;
}

.zc-blog-section--overlap {
  padding-top: 0;
  margin-top: -44px;
}

.zc-blog-trust-grid,
.zc-blog-topic-grid,
.zc-blog-posts,
.zc-post-related__grid {
  display: grid;
  gap: 18px;
}

.zc-blog-trust-grid > br,
.zc-blog-topic-grid > br,
.zc-blog-actions > br {
  display: none;
}

.zc-blog-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zc-blog-trust-grid article,
.zc-blog-card,
.zc-blog-empty,
.zc-post-content-card,
.zc-post-side-card {
  border: 1px solid var(--zc-blog-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--zc-blog-shadow);
}

.zc-blog-trust-grid article {
  padding: 28px 26px;
}

.zc-blog-trust-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--zc-blog-orange);
  font-size: 14px;
  font-weight: 900;
}

.zc-blog-trust-grid h2 {
  font-size: 23px;
}

.zc-blog-trust-grid p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.62;
}

.zc-blog-section-heading {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.zc-blog-topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zc-blog-topic-grid a {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--zc-blog-teal), #177c96);
  box-shadow: var(--zc-blog-shadow);
  font-size: 18px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.zc-blog-topic-grid a:nth-child(even) {
  background: linear-gradient(145deg, var(--zc-blog-orange), var(--zc-blog-orange-deep));
}

.zc-blog-topic-grid a:hover,
.zc-blog-topic-grid a:focus-visible {
  transform: translateY(-3px);
  text-decoration: none;
}

.zc-blog-posts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zc-blog-card {
  overflow: hidden;
}

.zc-blog-card--featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.zc-blog-card__image {
  display: block;
  min-height: 260px;
  color: inherit;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

.zc-blog-card:not(.zc-blog-card--featured) .zc-blog-card__image {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.zc-blog-posts .zc-blog-card__image {
  overflow: hidden;
}

.zc-blog-posts .zc-blog-card__image img {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center;
}

.zc-blog-card--featured .zc-blog-card__image {
  min-height: 390px;
}

.zc-blog-card__body {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 38px);
}

.zc-blog-card__meta,
.zc-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--zc-blog-muted);
  font-size: 13px;
  font-weight: 800;
}

.zc-blog-card__meta span:first-child {
  color: #fff;
  background: var(--zc-blog-teal);
}

.zc-blog-card__meta span,
.zc-blog-card__meta time,
.zc-post-meta span,
.zc-post-meta time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(33, 158, 188, 0.09);
}

.zc-blog-card h3 a {
  color: var(--zc-blog-teal);
  text-decoration: none;
}

.zc-blog-card h3 a:hover,
.zc-blog-card h3 a:focus-visible {
  color: var(--zc-blog-orange-deep);
}

.zc-blog-card p {
  margin-bottom: 22px;
}

.zc-blog-read-more {
  margin-top: auto;
}

.zc-blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.zc-blog-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--zc-blog-teal);
  background: rgba(33, 158, 188, 0.1);
  font-weight: 850;
  text-decoration: none;
}

.zc-blog-pagination .current,
.zc-blog-pagination a:hover {
  color: #fff;
  background: var(--zc-blog-teal);
}

.zc-blog-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
}

.zc-blog-empty--compact {
  padding: 28px;
}

.zc-blog-cta-band,
.zc-post-cta {
  padding-top: 0;
}

.zc-blog-cta-card,
.zc-post-cta__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(30px, 4vw, 54px);
  border-radius: 30px;
  background: var(--zc-blog-large-gradient);
  box-shadow: var(--zc-blog-shadow);
}

.zc-blog-cta-card h2,
.zc-blog-cta-card p,
.zc-post-cta__card h2,
.zc-post-cta__card p {
  color: #fff;
}

.zc-post-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.zc-post-breadcrumbs a {
  color: #fff;
  text-decoration: none;
}

.zc-post-meta {
  color: #fff;
}

.zc-post-meta span,
.zc-post-meta time {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.zc-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 28px;
}

.zc-post-content-card {
  padding: clamp(28px, 4vw, 54px);
}

.zc-post-content {
  max-width: 760px;
}

.zc-post-content p,
.zc-post-content li {
  color: var(--zc-blog-muted);
  font-size: 17px;
  line-height: 1.82;
}

.zc-post-content h2 {
  margin-top: 38px;
}

.zc-post-content h3 {
  margin-top: 28px;
}

.zc-post-content ul,
.zc-post-content ol {
  margin: 0 0 24px 24px;
}

.zc-post-content blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--zc-blog-orange);
  border-radius: 8px;
  background: rgba(33, 158, 188, 0.08);
}

.zc-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.zc-post-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
}

.zc-post-side-card {
  padding: 24px;
}

.zc-post-side-card h2 {
  font-size: 23px;
}

.zc-post-side-card p {
  font-size: 14px;
  line-height: 1.62;
}

.zc-post-side-card--links a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(18, 54, 66, 0.08);
  color: var(--zc-blog-teal);
  font-weight: 850;
  text-decoration: none;
}

.zc-post-side-card--links a:last-child {
  border-bottom: 0;
}

.zc-post-related__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zc-post-comments .comment-reply-title,
.zc-post-comments .comments-title {
  color: var(--zc-blog-teal);
  font-weight: 900;
}

.zc-post-comments input,
.zc-post-comments textarea {
  width: 100%;
  border: 1px solid rgba(18, 54, 66, 0.16);
  border-radius: 8px;
}

body.zc-blog-body #main-footer #footer-widgets {
  display: none;
}

@media (max-width: 1180px) {
  .zc-blog-trust-grid,
  .zc-blog-topic-grid,
  .zc-blog-posts,
  .zc-post-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .zc-blog-hero__grid,
  .zc-post-hero__grid,
  .zc-blog-card--featured,
  .zc-post-layout,
  .zc-blog-cta-card,
  .zc-post-cta__card {
    grid-template-columns: 1fr;
  }

  .zc-post-sidebar {
    position: static;
  }

  .zc-blog-hero__media img,
  .zc-post-hero__image img {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .zc-blog-shell {
    width: min(100% - 28px, 1120px);
  }

  .zc-blog-hero,
  .zc-post-hero {
    padding: 118px 0 66px;
  }

  .zc-blog-scope h1 {
    font-size: 40px;
  }

  .zc-blog-scope h2 {
    font-size: 28px;
  }

  .zc-blog-scope p {
    font-size: 15px;
  }

  .zc-blog-actions,
  .zc-blog-btn,
  .zc-blog-read-more {
    width: 100%;
  }

  .zc-blog-trust-grid,
  .zc-blog-topic-grid,
  .zc-blog-posts,
  .zc-post-related__grid {
    grid-template-columns: 1fr;
  }

  .zc-blog-hero__media,
  .zc-post-hero__image,
  .zc-blog-cta-card,
  .zc-post-cta__card {
    border-radius: 20px;
  }

  .zc-blog-hero__media img,
  .zc-post-hero__image img {
    min-height: 285px;
  }

  .zc-blog-section--overlap {
    margin-top: -30px;
  }

  .zc-blog-card__body,
  .zc-blog-trust-grid article,
  .zc-post-content-card,
  .zc-post-side-card {
    padding: 24px 20px;
  }
}
