/* =========================================================
   Single blog post — premium minimalist
   ========================================================= */

.page-blog-post {
  background: #fff;
  color: var(--text-dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Hero (matches site heroes + infinity logo) —— */
.blog-post-hero {
  min-height: auto;
  padding-bottom: 56px;
  background: radial-gradient(ellipse at 18% 22%, rgba(38, 196, 255, 0.12) 0%, transparent 42%),
    radial-gradient(ellipse at 82% 18%, rgba(18, 96, 225, 0.18) 0%, transparent 38%),
    linear-gradient(180deg, #061726 0%, #08223c 100%);
  overflow: hidden;
}

.blog-post-hero #global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.blog-post-hero .hero-bg-infinity {
  top: calc(var(--header-clearance) + 24px);
  opacity: 0.55;
}

.blog-post-hero .hero-bg-infinity ~ .hero-content {
  padding-top: 8px;
  padding-bottom: 8px;
}

.blog-post-hero .hero-bg-infinity ~ .hero-content .hero-title {
  margin-bottom: 0;
}

/* —— Article layout —— */
.blog-post-main {
  padding: 48px 24px 64px;
  background: #fff;
}

/* Featured image — left column, above body copy */
.blog-article__featured {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 400px;
  background: var(--bg-grey-2);
  border: 1px solid rgba(15, 32, 66, 0.08);
}

.blog-article__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.blog-post-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}

/* Hide duplicate in-content H1 when title is in hero */
.page-blog-post .blog-article > h1:first-child {
  display: none;
}

.blog-article p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
  margin: 0 0 22px;
}

.page-blog-post .blog-article h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 16px 0 16px;
  letter-spacing: -0.025em;
}

.page-blog-post .blog-article h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin: 32px 0 12px;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 24px;
  padding-left: 1.35em;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.8;
}

.blog-article li {
  margin-bottom: 10px;
}

.blog-article li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.blog-article a {
  color: var(--blue-500);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 141, 235, 0.35);
}

.blog-article a:hover {
  color: var(--blue-400);
  text-decoration-color: currentColor;
}

.blog-article .article-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 28px;
}

.blog-article blockquote {
  margin: 32px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--blue-400);
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.7;
  font-style: normal;
}

.blog-article blockquote p:last-child {
  margin-bottom: 0;
}

.blog-article img,
.blog-article figure img {
  max-width: 100%;
  border-radius: 14px;
}

.blog-article figure {
  margin: 32px 0;
}

.blog-article figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-article pre {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: #0a1733;
  color: #e8f4ff;
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
}

.blog-article code {
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f1f5fb;
  color: #0a1733;
}

.blog-article pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.blog-article table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.blog-article th,
.blog-article td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.blog-article th {
  font-weight: 700;
  color: var(--text-dark);
  border-bottom-width: 2px;
}

.blog-article hr {
  margin: 40px 0;
  border: none;
  height: 1px;
  background: var(--line);
}

.blog-article .wp-block-image {
  margin: 32px 0;
}

/* —— Sidebar —— */
.blog-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-clearance) + 16px);
}

.blog-side-card {
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid rgba(15, 32, 66, 0.08);
  background: #fafbfd;
}

.blog-side-card__label {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-meta-list {
  margin: 0;
  padding: 0;
}

.blog-meta-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 32, 66, 0.06);
}

.blog-meta-item:first-child {
  padding-top: 0;
}

.blog-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-meta-item dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.blog-meta-item dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.blog-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-pill-bg);
  color: var(--blue-500);
  font-size: 12px;
  font-weight: 700;
}

/* Share — icon row */
.blog-share-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 32, 66, 0.1);
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-share-icon-btn:hover {
  border-color: rgba(15, 141, 235, 0.35);
  color: var(--blue-500);
}

.blog-share-svg {
  display: block;
  flex-shrink: 0;
}

/* —— CTA —— */
.blog-post-cta {
  padding: 0 24px 72px;
  background: #fff;
}

.blog-post-cta__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: var(--card-radius);
  background: linear-gradient(160deg, #0a1733 0%, #0f2454 100%);
  color: #fff;
  border: 1px solid rgba(63, 182, 247, 0.12);
}

.blog-post-cta__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
}

.blog-post-cta__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.blog-post-cta__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 auto 28px;
}

.blog-post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.blog-post-cta-actions .btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.blog-post-cta-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* —— Related —— */
.blog-related {
  padding: 64px 24px 96px;
  background: var(--bg-grey);
  border-top: 1px solid var(--line);
}

.blog-related .container {
  max-width: 1180px;
  margin: 0 auto;
}

.blog-related__head {
  margin-bottom: 32px;
}

.blog-related__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.blog-related .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}

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

.blog-related .blog-list-card {
  height: 100%;
}

/* Static imported HTML (page_body_html) — legacy breadcrumb blocks replaced by gotech-breadcrumb */

.blog-post-hero-section {
  position: relative;
  padding-top: var(--header-clearance);
  padding-bottom: 56px;
  background: radial-gradient(ellipse at 18% 22%, rgba(38, 196, 255, 0.12) 0%, transparent 42%),
    radial-gradient(ellipse at 82% 18%, rgba(18, 96, 225, 0.18) 0%, transparent 38%),
    linear-gradient(180deg, #061726 0%, #08223c 100%);
  color: #fff;
  overflow: hidden;
}

.blog-post-hero-section #global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.blog-post-hero-section .blog-post-hero-banner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.blog-post-hero-section .blog-post-hero-banner::before {
  display: none;
}

.blog-post-hero-section .blog-post-hero-title {
  max-width: 760px;
  margin: 0 0 32px;
}

.blog-post-hero-section .blog-post-hero-banner {
  padding-bottom: 40px;
}

/* Move legacy hero art into article column visually */
.blog-post-hero-section .blog-post-hero-art {
  display: none;
}

.blog-post-main .blog-article > .blog-post-hero-art,
.blog-post-main .blog-article > .blog-article__featured {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 400px;
  width: 100%;
}

.blog-post-main .blog-article > .blog-post-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.blog-post-cta-box {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: var(--card-radius);
  background: linear-gradient(160deg, #0a1733 0%, #0f2454 100%);
  border: 1px solid rgba(63, 182, 247, 0.12);
}

/* Imported HTML share row — icon-friendly layout */
.blog-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-share-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 32, 66, 0.1);
  background: #fff;
  font-size: 0;
  color: var(--text-dark);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-share-list a:hover {
  border-color: rgba(15, 141, 235, 0.35);
  color: var(--blue-500);
  transform: translateY(-2px);
}

.blog-share-list a i,
.blog-share-list a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.blog-share-list a .blog-share-svg {
  display: block;
}

@media (max-width: 1024px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-article {
    max-width: none;
  }

  .blog-post-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .blog-side-card {
    flex: 1;
    min-width: min(100%, 260px);
  }

  .blog-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .blog-post-hero {
    padding-bottom: 40px;
  }

  .blog-post-hero .hero-bg-infinity {
    opacity: 0.4;
  }

  .blog-article__featured {
    max-height: 280px;
    border-radius: 14px;
    margin-bottom: 24px;
  }

  .blog-post-sidebar {
    flex-direction: column;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-cta__inner {
    padding: 36px 24px;
  }

  .blog-post-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-post-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
