:root {
  --blog-surface: #f5f9fb;
  --blog-surface-strong: #eef5f8;
  --blog-border: rgba(0, 43, 73, 0.1);
  --blog-border-strong: rgba(0, 43, 73, 0.18);
  --blog-text: rgba(0, 43, 73, 0.82);
  --blog-muted: rgba(0, 43, 73, 0.58);
  --blog-soft: rgba(0, 43, 73, 0.42);
  --blog-shadow: 0 30px 60px rgba(2, 30, 49, 0.08);
  --blog-progress: 0;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.blog-index-page,
body.blog-post-page {
  background:
    radial-gradient(circle at top right, rgba(64, 193, 172, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

body.blog-post-page::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  width: calc(var(--blog-progress) * 100%);
  background: linear-gradient(90deg, #40c1ac 0%, #73d9cb 100%);
  box-shadow: 0 0 24px rgba(64, 193, 172, 0.35);
  z-index: 80;
  pointer-events: none;
}

.blog-index-hero-shell,
.blog-hero-shell {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.blog-index-hero-copy,
.blog-hero-copy {
  min-width: 0;
}

.blog-hero-deck {
  max-width: 40ch;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.blog-index-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.blog-index-stat {
  min-width: 9rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.blog-index-stat strong {
  display: block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.blog-index-stat span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8125rem;
}

.blog-hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 35px 70px rgba(2, 30, 49, 0.18);
  min-height: 19rem;
}

.blog-hero-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 19rem;
  object-fit: cover;
}

.blog-hero-panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 18rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  background: rgba(6, 40, 63, 0.64);
  backdrop-filter: blur(18px);
}

.blog-hero-panel span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(64, 193, 172, 0.16);
  color: #9ae6da;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-hero-panel p {
  margin: 0.9rem 0 0;
  color: #ffffff;
  line-height: 1.6;
  font-size: 0.96rem;
}

.blog-meta-row {
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
}

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.blog-filter-bar button {
  min-height: 2.6rem;
  padding-inline: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(2, 30, 49, 0.06);
  backdrop-filter: blur(12px);
}

.blog-topic-strip {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-topic-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--blog-border);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(2, 30, 49, 0.05);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.blog-topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 193, 172, 0.35);
  box-shadow: 0 24px 48px rgba(2, 30, 49, 0.08);
}

.blog-topic-label {
  display: block;
  color: #002b49;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.blog-topic-description {
  display: block;
  margin-top: 0.45rem;
  color: var(--blog-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.blog-card-grid {
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.55rem;
  border: 1px solid var(--blog-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 44px rgba(2, 30, 49, 0.06);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(64, 193, 172, 0.4);
  box-shadow: 0 28px 54px rgba(2, 30, 49, 0.1);
}

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

.blog-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(180deg, #06283f 0%, #002b49 100%);
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin-bottom: 0.95rem;
}

.blog-card-separator,
.blog-card-readtime {
  color: var(--blog-soft);
  font-size: 0.78rem;
}

.blog-card-title {
  color: #002b49;
  font-size: 1.22rem;
  line-height: 1.28;
  margin-bottom: 0.7rem;
}

.blog-card-summary {
  color: rgba(0, 43, 73, 0.68);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.blog-feature-card {
  display: grid;
  margin-bottom: 1.6rem;
}

.blog-feature-card .blog-card-body {
  padding: 1.55rem;
}

.blog-card-kicker {
  margin-bottom: 0.85rem;
  color: #40c1ac;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-feature-card .blog-card-title {
  font-size: clamp(1.65rem, 1.6vw + 1rem, 2.5rem);
  line-height: 1.1;
}

.blog-card-stat {
  margin-top: 1.2rem;
  color: var(--blog-text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  color: #002b49;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-cta::after {
  content: '→';
  color: #40c1ac;
}

.blog-index-cta {
  max-width: 52rem;
  margin: 3rem auto 0;
  padding: 2rem;
  border: 1px solid rgba(64, 193, 172, 0.18);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(64, 193, 172, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px rgba(2, 30, 49, 0.07);
}

.blog-index-cta-copy {
  max-width: 42rem;
  margin: 0 auto 1.2rem;
  color: var(--blog-text);
  font-size: 1rem;
  line-height: 1.7;
}

.blog-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.blog-content {
  max-width: 70ch;
}

.blog-content > p:first-of-type,
.blog-lead {
  color: rgba(0, 43, 73, 0.9);
  font-size: 1.18rem;
  line-height: 1.8;
}

.blog-content h2 {
  color: #002b49;
  font-family: 'Red Hat Display', sans-serif;
  font-size: clamp(1.5rem, 0.4vw + 1.35rem, 1.9rem);
  font-weight: 700;
  line-height: 1.18;
  margin-top: 3.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 43, 73, 0.12);
}

.blog-content h2:first-child {
  margin-top: 0;
}

.blog-content h3 {
  color: #002b49;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.28;
  margin-top: 2.3rem;
  margin-bottom: 0.8rem;
}

.blog-content p {
  color: var(--blog-text);
  font-size: 1.04rem;
  line-height: 1.85;
  margin-bottom: 1.15rem;
}

.blog-content a {
  color: #0e8f81;
  text-decoration: none;
  font-weight: 600;
}

.blog-content a:hover {
  color: #40c1ac;
  text-decoration: underline;
}

.blog-content strong {
  color: #002b49;
  font-weight: 700;
}

.blog-content ul,
.blog-content ol {
  margin: 1.15rem 0 1.4rem;
  padding-left: 1.35rem;
}

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

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

.blog-content li {
  color: var(--blog-text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.55rem;
}

.blog-content blockquote {
  margin: 1.8rem 0;
  padding: 1rem 0 1rem 1.2rem;
  border-left: 4px solid #40c1ac;
  color: var(--blog-muted);
  font-style: italic;
}

.blog-callout {
  margin: 2.1rem 0;
  padding: 1.35rem 1.35rem 1.35rem 1.2rem;
  border: 1px solid rgba(64, 193, 172, 0.16);
  border-left: 4px solid #40c1ac;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(64, 193, 172, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(64, 193, 172, 0.08), rgba(64, 193, 172, 0.04));
}

.blog-callout p {
  color: #002b49;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 0;
}

.blog-takeaways {
  margin: 2.4rem 0;
  padding: 1.45rem;
  border: 1px solid rgba(0, 43, 73, 0.08);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at top left, rgba(64, 193, 172, 0.08), transparent 34%),
    #f7fbfc;
}

.blog-takeaways h3 {
  margin-top: 0;
  margin-bottom: 0.95rem;
  color: #002b49;
  font-size: 1.2rem;
}

.blog-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  color: var(--blog-text);
  font-size: 0.98rem;
}

.blog-takeaways li svg {
  width: 1.2rem;
  height: 1.2rem;
  color: #40c1ac;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.blog-sidebar > div {
  border: 1px solid var(--blog-border);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(2, 30, 49, 0.05);
}

.blog-sidebar-form-card {
  border-color: rgba(64, 193, 172, 0.18);
  background:
    radial-gradient(circle at top right, rgba(64, 193, 172, 0.14), transparent 30%),
    linear-gradient(180deg, #06283f 0%, #002b49 100%) !important;
  box-shadow: 0 24px 50px rgba(2, 30, 49, 0.16) !important;
}

.blog-sidebar-form-shell {
  padding: 1.25rem;
  color: #ffffff;
}

.blog-sidebar-form-kicker {
  margin-bottom: 0.55rem;
  color: #9ae6da;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-sidebar-form-title {
  color: #ffffff;
  font-size: 1.32rem;
  line-height: 1.15;
  margin-bottom: 0.55rem;
}

.blog-sidebar-form-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

.blog-sidebar-form-card label {
  color: rgba(255, 255, 255, 0.84);
}

.blog-sidebar-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.blog-sidebar-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.blog-sidebar-input:focus {
  border-color: rgba(64, 193, 172, 0.64);
  box-shadow: 0 0 0 3px rgba(64, 193, 172, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.blog-sidebar-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 2.95rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #40c1ac 0%, #33a08b 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

.blog-sidebar-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(64, 193, 172, 0.24);
}

.blog-sidebar-submit:disabled {
  opacity: 0.6;
}

.blog-sidebar-form-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  line-height: 1.55;
}

.blog-sidebar-form-note a {
  color: #9ae6da;
}

.blog-sidebar-form-error {
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  font-size: 0.82rem;
  line-height: 1.45;
}

.blog-sidebar-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-sidebar-solution-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(0, 43, 73, 0.08);
  border-radius: 1rem;
  color: #002b49;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.blog-sidebar-solution-link:hover {
  transform: translateY(-1px);
  border-color: rgba(64, 193, 172, 0.28);
  box-shadow: 0 12px 24px rgba(2, 30, 49, 0.06);
}

.blog-toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.85rem;
  border-left: 2px solid transparent;
  color: var(--blog-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.blog-toc a:hover,
.blog-toc a.is-active {
  color: #002b49;
  border-left-color: #40c1ac;
  transform: translateX(2px);
}

.blog-related-section {
  margin-top: 1.5rem;
}

.blog-related-grid .blog-related-card .blog-card-media {
  aspect-ratio: 16 / 10;
}

.blog-solutions-cta .container-ctrack {
  max-width: 72rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(64, 193, 172, 0.18);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(64, 193, 172, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5fafc 100%);
  box-shadow: 0 30px 64px rgba(2, 30, 49, 0.07);
}

.blog-solutions-eyebrow {
  margin-bottom: 0.55rem;
  color: #40c1ac;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-solutions-copy {
  max-width: 38rem;
  margin: 0 auto 1.35rem;
  color: var(--blog-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .blog-topic-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-feature-card {
    grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.98fr);
  }

  .blog-feature-card .blog-card-media {
    aspect-ratio: auto;
    min-height: 100%;
    order: 2;
  }
}

@media (min-width: 1024px) {
  .blog-index-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.95fr);
    gap: 2.75rem;
  }

  .blog-hero-shell {
    grid-template-columns: minmax(0, 1.14fr) minmax(18rem, 0.86fr);
    gap: 2.75rem;
  }

  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3rem;
  }

  .blog-sidebar {
    position: sticky;
    top: 7rem;
  }

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

@media (max-width: 1023.98px) {
  .blog-sidebar {
    display: none;
  }

  .blog-layout {
    gap: 1.8rem;
  }
}

@media (max-width: 767.98px) {
  .blog-hero-panel {
    max-width: none;
  }

  .blog-content > p:first-of-type,
  .blog-lead {
    font-size: 1.08rem;
  }

  .blog-feature-card .blog-card-body,
  .blog-card-body {
    padding: 1.1rem;
  }

  .blog-solutions-cta .container-ctrack,
  .blog-index-cta {
    padding-inline: 1.3rem;
  }
}
