/* Blog pages: list + article */

.blog-list-page,
.blog-article-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(18, 120, 197, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 86% 86%, rgba(0, 212, 255, 0.09) 0%, transparent 42%),
    var(--bg-color);
}

.blog-hero,
.blog-article-hero {
  padding: 7.1rem 0 3.8rem;
  position: relative;
  overflow: hidden;
}

.blog-list-page .blog-hero {
  background:
    radial-gradient(circle at 14% 20%, rgba(22, 167, 232, 0.2) 0%, rgba(22, 167, 232, 0.06) 26%, transparent 54%),
    radial-gradient(circle at 88% 84%, rgba(18, 120, 197, 0.17) 0%, rgba(18, 120, 197, 0.05) 30%, transparent 60%),
    linear-gradient(135deg, #f4f9ff 0%, #eef7ff 45%, #f8fcff 100%);
  border-bottom: 1px solid rgba(18, 120, 197, 0.12);
}

.blog-hero::before,
.blog-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(18, 120, 197, 0.07), rgba(0, 212, 255, 0.05) 45%, transparent 75%);
  pointer-events: none;
}

.blog-list-page .blog-hero::after {
  content: "";
  position: absolute;
  width: min(34vw, 460px);
  height: min(34vw, 460px);
  right: max(-10vw, -140px);
  top: -190px;
  border-radius: 42% 58% 63% 37% / 43% 40% 60% 57%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 1px rgba(18, 120, 197, 0.1);
  opacity: 0.75;
  pointer-events: none;
}

.blog-breadcrumb {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.blog-breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
}

.blog-breadcrumb a:hover {
  opacity: 1;
}

.blog-breadcrumb .sep {
  opacity: 0.38;
}

.blog-article-hero .service-back-link {
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary-color);
  background: rgba(18, 120, 197, 0.08);
  border: 1px solid rgba(18, 120, 197, 0.22);
  border-radius: 999px;
  padding: 0.46rem 0.9rem;
  transition: all 0.22s ease;
}

.blog-article-hero .service-back-link i {
  font-size: 0.95rem;
  transition: transform 0.22s ease;
}

.blog-article-hero .service-back-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #0b66b2, #16b7ea);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(18, 120, 197, 0.28);
}

.blog-article-hero .service-back-link:hover i {
  transform: translateX(-2px);
}

.blog-article-hero .service-back-link:focus-visible {
  outline: 2px solid rgba(18, 120, 197, 0.35);
  outline-offset: 2px;
}

.blog-hero-chip {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #035fa7, #18c8f7);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(18, 120, 197, 0.27);
}

.blog-hero-title,
.blog-article-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.14;
  color: var(--text-color);
  font-weight: 800;
  margin: 1rem 0 1.1rem;
  letter-spacing: -0.022em;
}

.blog-hero-lead,
.blog-article-subtitle {
  font-size: 1.09rem;
  line-height: 1.78;
  max-width: 800px;
  color: var(--text-color);
  opacity: 0.86;
}

.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.blog-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 120, 197, 0.2);
  background: rgba(18, 120, 197, 0.06);
  color: var(--primary-color);
  padding: 0.34rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.blog-hero-card {
  border-radius: 1.3rem;
  padding: 1.2rem 1.2rem 1.05rem;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.93), rgba(246, 251, 255, 0.92));
  border: 1px solid rgba(18, 120, 197, 0.15);
  box-shadow: 0 16px 36px rgba(18, 120, 197, 0.1);
}

.blog-hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-weight: 800;
}

.blog-hero-topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.66rem;
}

.blog-hero-topics li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-color);
  font-weight: 600;
}

.blog-hero-topics i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.blog-listing-section {
  padding: 1rem 0 5rem;
}

.blog-articles-stack {
  display: grid;
  gap: 1.1rem;
}

.blog-list-loader,
.blog-list-end {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-color);
}

#blogListSentinel {
  width: 100%;
  height: 1px;
}

.blog-featured-card {
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(18, 120, 197, 0.12);
  background: var(--card-bg);
  box-shadow: 0 16px 42px rgba(18, 120, 197, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(18, 120, 197, 0.18);
}

.blog-featured-media {
  min-height: 245px;
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0c3f69 0%, #0678c8 45%, #15c1f5 100%);
}

.blog-featured-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0.34rem 0.8rem;
  z-index: 2;
}

.blog-featured-shape {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 60px;
  right: -36px;
  bottom: -36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05));
  transform: rotate(18deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.blog-featured-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4.3rem;
  opacity: 0.92;
}

.blog-featured-content {
  padding: 1.35rem 1.4rem 1.6rem;
}

.blog-featured-content h3 {
  margin: 1rem 0 0.85rem;
  font-size: 1.5rem;
  line-height: 1.32;
}

.blog-featured-content h3 a {
  color: var(--text-color);
  text-decoration: none;
}

.blog-featured-content h3 a:hover {
  color: var(--primary-color);
}

.blog-featured-content p {
  color: var(--text-color);
  opacity: 0.84;
  line-height: 1.75;
  margin-bottom: 1.05rem;
}

.blog-read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.blog-read-more:hover {
  color: #0d8adf;
}

.blog-sidebar-card,
.blog-sidebar-widget {
  border-radius: 1.2rem;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.92));
  border: 1px solid rgba(18, 120, 197, 0.14);
  box-shadow: 0 14px 35px rgba(18, 120, 197, 0.1);
}

.blog-sidebar-card {
  padding: 1.2rem;
}

.blog-list-sticky {
  position: sticky;
  top: 98px;
  align-self: flex-start;
}

.blog-sidebar-card h4,
.blog-sidebar-widget h4 {
  font-size: 1.02rem;
  color: var(--text-color);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.blog-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.blog-sidebar-card li {
  font-size: 0.91rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.55;
}

.blog-sidebar-card .date {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.26rem;
}

.blog-sidebar-cta {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #0b66b2 0%, #0794dc 55%, #1cc8f4 100%);
  box-shadow: 0 12px 24px rgba(18, 120, 197, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.blog-sidebar-cta:hover,
.blog-sidebar-cta:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 30px rgba(18, 120, 197, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.blog-sidebar-cta:active {
  transform: translateY(0);
}

.blog-sidebar-cta:focus-visible {
  outline: 3px solid rgba(18, 120, 197, 0.22);
  outline-offset: 2px;
}

.blog-article-layout {
  padding: 0 0 3.4rem;
}

.blog-article-body {
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 120, 197, 0.12);
  box-shadow: 0 16px 36px rgba(18, 120, 197, 0.09);
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.blog-article-body .lead {
  font-size: 1.15rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.blog-article-body h2 {
  margin: 1.8rem 0 0.85rem;
  color: var(--text-color);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
}

.blog-article-body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.07rem;
}

.blog-article-body p,
.blog-article-body li {
  color: var(--text-color);
  opacity: 0.88;
  line-height: 1.8;
}

.blog-article-body ul {
  padding-left: 1.3rem;
}

.blog-article-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.4rem 0 1.5rem;
}

.blog-signal-card {
  border: 1px solid rgba(18, 120, 197, 0.15);
  border-radius: 1rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(165deg, rgba(252, 254, 255, 0.95), rgba(242, 249, 255, 0.95));
  box-shadow: 0 10px 20px rgba(18, 120, 197, 0.08);
}

.blog-signal-card i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  background: rgba(18, 120, 197, 0.11);
}

.blog-signal-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

.blog-signal-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.blog-article-body h2 i {
  color: var(--primary-color);
  margin-right: 0.35rem;
  font-size: 0.95em;
}

.blog-icon-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.58rem;
  margin: 0.7rem 0 1rem;
}

.blog-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.blog-icon-list li i {
  margin-top: 0.28rem;
  color: var(--primary-color);
  min-width: 16px;
}

.blog-pulse-note {
  margin: 1.3rem 0 0.2rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px dashed rgba(18, 120, 197, 0.34);
  background: rgba(18, 120, 197, 0.06);
  display: flex;
  gap: 0.62rem;
  align-items: flex-start;
}

.blog-pulse-note i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

.blog-pulse-note p {
  margin: 0;
}

.blog-highlight-box {
  margin: 1.45rem 0;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: rgba(18, 120, 197, 0.08);
  border-left: 4px solid var(--primary-color);
}

.blog-article-sidebar {
  top: 110px;
}

.blog-sidebar-widget {
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.blog-sidebar-widget p,
.blog-sidebar-widget li {
  color: var(--text-color);
  opacity: 0.84;
  line-height: 1.7;
  font-size: 0.92rem;
}

.blog-sidebar-widget ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.blog-article-faq {
  padding: 0 0 4rem;
}

.blog-article-faq .accordion-item {
  border: 1px solid rgba(18, 120, 197, 0.16);
  border-radius: 0.8rem;
  overflow: hidden;
  margin-bottom: 0.82rem;
  box-shadow: 0 8px 24px rgba(18, 120, 197, 0.08);
}

.blog-article-faq .accordion-button {
  font-weight: 650;
  color: var(--text-color);
  background: rgba(248, 252, 255, 0.95);
}

.blog-article-faq .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background: rgba(18, 120, 197, 0.08);
}

.blog-cta-section {
  padding: 0 0 5rem;
}

.blog-cta-wrapper {
  border-radius: 1.4rem;
  padding: clamp(1.6rem, 3vw, 2.7rem);
  color: #fff;
  background: linear-gradient(125deg, #0f5c97 0%, #0788d5 47%, #00bde8 100%);
  box-shadow: 0 18px 40px rgba(18, 120, 197, 0.3);
}

.blog-cta-wrapper h2 {
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.blog-cta-wrapper p {
  opacity: 0.92;
  max-width: 770px;
  margin: 0 auto 1.1rem;
}

.blog-cta-wrapper .btn-light {
  font-weight: 700;
}

.blog-cta-wrapper .btn-outline-light {
  font-weight: 700;
  border-width: 2px;
}

[data-theme="dark"] .blog-list-page,
[data-theme="dark"] .blog-article-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(18, 120, 197, 0.12) 0%, transparent 38%),
    radial-gradient(circle at 86% 86%, rgba(0, 212, 255, 0.12) 0%, transparent 42%),
    var(--bg-color);
}

[data-theme="dark"] .blog-list-page .blog-hero {
  background: transparent;
  border-bottom-color: transparent;
}

[data-theme="dark"] .blog-list-page .blog-hero::after {
  display: none;
}

[data-theme="dark"] .blog-hero-card,
[data-theme="dark"] .blog-sidebar-card,
[data-theme="dark"] .blog-sidebar-widget,
[data-theme="dark"] .blog-article-body {
  background: linear-gradient(155deg, rgba(55, 55, 55, 0.94), rgba(38, 38, 38, 0.94));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .blog-featured-card {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .blog-featured-content h3 a,
[data-theme="dark"] .blog-featured-content p,
[data-theme="dark"] .blog-sidebar-card li,
[data-theme="dark"] .blog-article-body p,
[data-theme="dark"] .blog-article-body li,
[data-theme="dark"] .blog-sidebar-widget p,
[data-theme="dark"] .blog-sidebar-widget li,
[data-theme="dark"] .blog-sidebar-card h4,
[data-theme="dark"] .blog-sidebar-widget h4,
[data-theme="dark"] .blog-article-body h2,
[data-theme="dark"] .blog-article-title,
[data-theme="dark"] .blog-article-subtitle,
[data-theme="dark"] .blog-hero-title,
[data-theme="dark"] .blog-hero-lead,
[data-theme="dark"] .blog-hero-topics li {
  color: var(--text-color);
}

[data-theme="dark"] .blog-highlight-box {
  background: rgba(18, 120, 197, 0.2);
  border-left-color: var(--secondary-color);
}

[data-theme="dark"] .blog-signal-card {
  background: linear-gradient(155deg, rgba(54, 54, 54, 0.95), rgba(38, 38, 38, 0.95));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .blog-signal-card i {
  color: #a8dcff;
  background: rgba(18, 120, 197, 0.22);
}

[data-theme="dark"] .blog-pulse-note {
  border-color: rgba(137, 213, 255, 0.42);
  background: rgba(18, 120, 197, 0.18);
}

[data-theme="dark"] .blog-icon-list li i,
[data-theme="dark"] .blog-article-body h2 i,
[data-theme="dark"] .blog-pulse-note i {
  color: #9fd8ff;
}

[data-theme="dark"] .blog-meta-row span {
  background: rgba(18, 120, 197, 0.18);
  border-color: rgba(131, 205, 255, 0.36);
  color: #a8dcff;
}

[data-theme="dark"] .blog-article-faq .accordion-item {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.33);
}

[data-theme="dark"] .blog-article-faq .accordion-button {
  color: var(--text-color);
  background: rgba(48, 48, 48, 0.95);
}

[data-theme="dark"] .blog-article-faq .accordion-button:not(.collapsed) {
  color: #bce8ff;
  background: rgba(18, 120, 197, 0.24);
}

[data-theme="dark"] .blog-article-hero .service-back-link {
  color: #a8dcff;
  background: rgba(18, 120, 197, 0.2);
  border-color: rgba(131, 205, 255, 0.36);
}

[data-theme="dark"] .blog-article-hero .service-back-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #0e72c4, #1dc8f5);
}

[data-theme="dark"] .blog-sidebar-cta {
  color: #fff;
  background: linear-gradient(135deg, #0d74c8 0%, #1698df 54%, #3dcff6 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .blog-sidebar-cta:hover,
[data-theme="dark"] .blog-sidebar-cta:focus-visible {
  color: #fff;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

@media (max-width: 991.98px) {
  .blog-hero,
  .blog-article-hero {
    padding-top: 6.2rem;
  }

  .blog-featured-content h3 {
    font-size: 1.35rem;
  }

  .blog-article-layout {
    padding-bottom: 2.9rem;
  }

  .blog-article-sidebar {
    position: static !important;
    top: auto;
  }

  .blog-list-sticky {
    position: static;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  .blog-hero-title,
  .blog-article-title {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .blog-hero-lead,
  .blog-article-subtitle {
    font-size: 1rem;
    line-height: 1.72;
  }

  .blog-meta-row span {
    font-size: 0.72rem;
  }

  .blog-featured-media {
    min-height: 205px;
  }

  .blog-featured-icon {
    font-size: 3.4rem;
  }

  .blog-featured-content {
    padding: 1.05rem 1rem 1.25rem;
  }

  .blog-article-body {
    padding: 1.1rem 0.95rem;
  }

  .blog-article-signals {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .blog-signal-card {
    padding: 0.75rem 0.8rem;
  }
}
