/* =====================================================================
   CC Underground - blog listing + single blog (Figma, 1440 frame)
   Loaded after main.css and services.css.
   ===================================================================== */

/* ---------- shared bits ---------- */
.bl-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 46px;
  letter-spacing: -0.4px;
  color: #104164;
}

.bl-h2.is-center {
  text-align: center;
}

.bl-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bl-author img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px #e3eaf0;
}

.bl-author b {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: #104164;
}

.bl-author span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: #4a7493;
}

.bl-author span i {
  width: 5px;
  height: 5px;
  background: currentColor;
}

.bl-author.is-light b {
  color: #fff;
}

.bl-author.is-light span {
  color: #b3c3d1;
}


/* ---------- listing banner (same as the service banner) ---------- */
.bl-banner .banner-content h1 {
  max-width: 430px;
}

.bl-banner .banner-content p {
  max-width: 500px;
  font-size: 16.5px;
  line-height: 28px;
}


/* ---------- featured blog slider ---------- */
.bl-featured {
  padding: 86px 0 92px;
  background: #fff;
}

.bl-slides {
  position: relative;
}

.bl-slide {
  display: grid;
  grid-template-columns: 400px 761px;
  justify-content: space-between;
  align-items: start;
}

.bl-slide[hidden] {
  display: none;
}

.bl-slide.is-active {
  animation: bl-fade 0.45s ease;
}

@keyframes bl-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.bl-pill {
  display: inline-flex;
  align-items: center;
  height: 39px;
  padding: 0 12px;
  border: 1px solid #e6e8eb;
  border-radius: 6px;
  background: #f2f2f2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #5a7186;
}

.bl-slide h2 {
  margin-top: 25px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.3px;
  color: #104164;
}

.bl-slide h2 a {
  color: inherit;
}

.bl-slide h2 a:hover {
  color: #1d6aa5;
}

.bl-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  line-height: 19px;
  color: #4a7493;
}

.bl-slide .bl-author {
  margin-top: 40px;
}

.bl-read.btn-primary {
  margin-top: 40px;
  height: 48px;
  padding: 0 24px;
  gap: 10px;
  border-radius: 0;
  background: #104164;
  font-size: 14px;
  letter-spacing: 0.8px;
}

.bl-read .btn-arrow svg {
  width: 16px;
  height: 16px;
}

.bl-slide-img {
  position: relative;
  display: block;
  height: 485px;
  overflow: hidden;
  border-radius: 14px;
}

.bl-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bl-slide-img:hover img {
  transform: scale(1.03);
}

.bl-badge {
  position: absolute;
  top: 34px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.82);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

.bl-arrows {
  position: absolute;
  left: 0;
  top: 444px;
  display: flex;
  gap: 14px;
}

.bl-slides.is-single .bl-arrows {
  display: none;
}

.bl-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f4;
  color: #44515c;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.bl-arrow svg {
  width: 18px;
  height: 18px;
}

.bl-arrow:hover,
.bl-arrow:focus-visible {
  background: #104164;
  color: #fff;
}

.bl-rule {
  height: 5px;
  background: #01aee3;
}


/* ---------- latest articles ---------- */
.bl-latest {
  padding: 82px 0 0;
  background: #fff;
}

.bl-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.bl-tab {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 30px;
  background: #f0f9ff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1d4f72;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.bl-tab:first-child {
  text-transform: uppercase;
}

.bl-tab:hover {
  background: #dcefff;
}

.bl-tab.is-active {
  background: #104164;
  font-weight: 600;
  color: #fff;
}

.bl-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 880px;
  margin: 40px auto 0;
}

.bl-card {
  position: relative;
  display: flex;
  min-height: 295px;
  padding: 7px;
  border: 1px solid #e7eaee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 50px rgba(53, 115, 192, 0.06);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.bl-card[hidden] {
  display: none;
}

.bl-card:hover {
  border-color: #d5e3ef;
  box-shadow: 0 14px 50px rgba(53, 115, 192, 0.14);
}

.bl-card-img {
  flex: 0 0 240px;
  height: 280px;
  overflow: hidden;
  border-radius: 10px;
}

.bl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bl-card:hover .bl-card-img img {
  transform: scale(1.05);
}

.bl-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 52px 18px 24px;
}

.bl-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 32px;
  color: #172b3d;
}

.bl-card h3 a {
  color: inherit;
}

.bl-card h3 a:hover {
  color: #1d6aa5;
}

.bl-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  line-height: 19px;
  color: #4a7493;
}

.bl-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.bl-card-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #e3eaf0;
}

.bl-card-author b {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: #172b3d;
}

.bl-card-author span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #1d5f99;
}

.bl-card-go {
  position: absolute;
  top: 31px;
  right: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d9e7f2;
  color: #2c628c;
  transition: background 0.2s, color 0.2s;
}

.bl-card-go svg {
  width: 15px;
  height: 15px;
}

.bl-card:first-of-type .bl-card-go,
.bl-card-go:hover {
  background: #104164;
  color: #fff;
}

.bl-empty {
  padding: 40px 0;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  color: #4a7493;
}

.bl-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}

.bl-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #5d6873;
  cursor: pointer;
}

.bl-page svg {
  width: 15px;
  height: 15px;
}

.bl-page:hover:not(:disabled):not(.is-gap) {
  color: #104164;
  background: #f0f4f8;
}

.bl-page.is-current {
  background: #eceef1;
  font-weight: 600;
  color: #1c2833;
}

.bl-page:disabled {
  opacity: 0.35;
  cursor: default;
}

.bl-page.is-gap {
  cursor: default;
}


/* ---------- related blogs (bleed off the right edge) ---------- */
.bl-related {
  padding: 96px 0 72px;
  overflow: hidden;
  background: #fff;
}

.bl-related .bl-h2 {
  margin-bottom: 20px;
}

.bl-rel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 305px;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.bl-rel-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1241px) {
  .bl-rel-track {
    grid-auto-columns: 405px;
    margin-right: calc((1200px - 100vw) / 2);
    padding-right: calc((100vw - 1200px) / 2);
  }
}

.bl-rel {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 31px 31px 30px;
  border: 1px solid #eceef1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(16, 40, 64, 0.05);
  transition: box-shadow 0.25s;
}

.bl-rel:hover {
  box-shadow: 0 16px 44px rgba(16, 40, 64, 0.12);
}

.bl-rel-img {
  display: block;
  height: 339px;
  overflow: hidden;
  border-radius: 12px;
}

.bl-rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bl-rel:hover .bl-rel-img img {
  transform: scale(1.04);
}

.bl-rel h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: #172b3d;
}

.bl-rel-cat {
  margin-top: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #3c84d0;
}

.bl-rel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 20px;
}

.bl-rel-who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #172b3d;
}

.bl-rel-who img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e3eaf0;
}

.bl-rel-date {
  color: #1d5f99;
}


/* =====================================================================
   SINGLE BLOG
   ===================================================================== */
.bs-hero {
  position: relative;
  height: 796px;
  overflow: hidden;
  background: #0b2a44;
}

.bs-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.bs-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 48, 0.55) 0%, rgba(8, 28, 48, 0.1) 26%),
    rgba(12, 36, 60, 0.78);
}

.bs-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 310px;
  text-align: center;
}

.bs-hero .breadcrumbs {
  justify-content: center;
  margin-bottom: 20px;
}

.bs-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: -0.4px;
  color: #fff;
}

.bs-hero .bl-author {
  justify-content: center;
  margin-top: 30px;
  text-align: left;
}

/* white strip with the angled end, like the service banners */
.bs-hero-strip {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: calc((100% - 1200px) / 2 + 1065px);
  height: 63px;
  background: #fff;
  clip-path: polygon(0 0, calc(100% - 106px) 0, 100% 100%, 0 100%);
}

/* ---------- post body ---------- */
.bs-post {
  padding: 77px 0 72px;
  background: #fff;
}

.bs-content {
  max-width: 880px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #4f6f8a;
}

.bs-content > * + * {
  margin-top: 24px;
}

.bs-content p {
  margin-bottom: 0;
}

.bs-content strong {
  font-weight: 600;
  color: #2c4c68;
}

.bs-content a {
  color: #1d6aa5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bs-content a u {
  text-decoration: none;
}

.bs-content h2,
.bs-content h3,
.bs-content h4,
.bs-content h5,
.bs-content h6 {
  margin-top: 66px;
  margin-bottom: -5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #174a70;
}

.bs-content h2 {
  font-size: 24px;
  line-height: 32px;
}

.bs-content h3 {
  font-size: 20px;
  line-height: 28px;
}

.bs-content h4,
.bs-content h5,
.bs-content h6 {
  font-size: 18px;
  line-height: 26px;
}

.bs-content ul,
.bs-content ol {
  padding-left: 22px;
}

.bs-content ul {
  list-style: disc;
}

.bs-content ol {
  list-style: decimal;
}

.bs-content li + li {
  margin-top: 8px;
}

.bs-content li::marker {
  color: #4a8fe0;
}

.bs-content blockquote {
  margin-top: 77px;
  margin-bottom: 40px;
  padding: 2px 0 2px 46px;
  border-left: 2px solid #6ca0e3;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 27px;
  color: #174a70;
}

.bs-content blockquote p + p {
  margin-top: 10px;
}

.bs-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-style: normal;
  color: #4a7493;
}

.bs-figure {
  margin-top: 64px;
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  background: #fff;
}

.bs-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.bs-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: #6b7f90;
}

.bs-takeaways {
  padding: 28px 32px;
  border: 1px solid #d6e7f5;
  border-left: 3px solid #4a8fe0;
  border-radius: 12px;
  background: #f4f9fd;
  font-size: 15.5px;
  line-height: 26px;
  color: #3e5f7a;
}

.bs-takeaways-title {
  display: block;
  margin-bottom: -16px;
  font-size: 18px;
  font-weight: 600;
  color: #174a70;
}

.bs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.bs-content th,
.bs-content td {
  padding: 12px 14px;
  border: 1px solid #e3eaf0;
  text-align: left;
  vertical-align: top;
}

.bs-content th {
  background: #f4f9fd;
  font-weight: 600;
  color: #174a70;
}

/* ---------- tags, share, divider, prev / next ---------- */
.bs-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 880px;
  margin: 76px auto 0;
}

.bs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 7px;
  max-width: 480px;
}

.bs-tag {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 24px;
  border-radius: 30px;
  background: #d9e6f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #5b8bb0;
  transition: background 0.2s, color 0.2s;
}

.bs-tag:hover {
  background: #104164;
  color: #fff;
}

.bs-share {
  display: flex;
  gap: 12px;
  padding-top: 7px;
}

.bs-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #a9adb2;
  border-radius: 8px;
  color: #2e3338;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bs-share-btn svg {
  width: 20px;
  height: 20px;
}

.bs-share-btn:hover,
.bs-share-btn:focus-visible {
  border-color: #104164;
  background: #104164;
  color: #fff;
}

.bs-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 880px;
  margin: 66px auto 0;
}

.bs-divider::before,
.bs-divider::after {
  content: "";
  width: 72px;
  height: 1px;
  background: #dbe5ee;
}

.bs-divider span {
  width: 11px;
  height: 11px;
  margin: 0 8px;
  border: 1.5px solid #6ca0e3;
  transform: rotate(45deg);
}

.bs-nav {
  display: flex;
  justify-content: space-between;
  max-width: 880px;
  margin: 69px auto 0;
}

.bs-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: #174a70;
}

.bs-nav-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef1f4;
  color: #2e3a45;
  transition: background 0.2s, color 0.2s;
}

.bs-nav-ic svg {
  width: 16px;
  height: 16px;
}

.bs-nav-link:hover .bs-nav-ic {
  background: #104164;
  color: #fff;
}


/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1240px) {
  .bl-slide {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 40px;
  }

  .bl-slide-img {
    height: auto;
    aspect-ratio: 761 / 485;
  }

  .bl-arrows {
    position: static;
    margin-top: 32px;
  }

  .bs-hero {
    height: auto;
    min-height: 620px;
    padding-bottom: 150px;
  }

  .bs-hero-content {
    padding-top: 220px;
  }

  .bs-hero-strip {
    width: 88%;
  }
}

@media (max-width: 991px) {
  .bl-featured {
    padding: 64px 0;
  }

  .bl-slide {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bl-slide-img {
    order: -1;
  }

  .bl-slide .bl-author,
  .bl-read.btn-primary {
    margin-top: 28px;
  }

  .bl-latest {
    padding-top: 64px;
  }

  .bl-related {
    padding-top: 72px;
  }
}

@media (max-width: 767px) {
  .bl-h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .bl-slide h2 {
    font-size: 24px;
    line-height: 31px;
  }

  .bl-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
    scrollbar-width: none;
  }

  .bl-tabs::-webkit-scrollbar {
    display: none;
  }

  .bl-tab {
    flex-shrink: 0;
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
  }

  .bl-card {
    flex-direction: column;
  }

  .bl-card-img {
    flex: none;
    height: 220px;
  }

  .bl-card-body {
    padding: 20px 14px 14px;
  }

  .bl-card h3 {
    font-size: 19px;
    line-height: 27px;
  }

  .bl-card-go {
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
  }

  .bl-rel-track {
    grid-auto-columns: 82%;
  }

  .bl-rel {
    padding: 20px;
  }

  .bl-rel-img {
    height: 240px;
  }

  .bl-rel h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .bl-related {
    padding: 64px 0 56px;
  }

  .bs-hero {
    min-height: 560px;
    padding-bottom: 110px;
  }

  .bs-hero-content {
    padding-top: 150px;
  }

  .bs-hero h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .bs-hero .breadcrumbs span[aria-current] {
    display: none;
  }

  .bs-hero .breadcrumbs .sep:last-of-type {
    display: none;
  }

  .bs-hero-strip {
    height: 44px;
    clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 100%, 0 100%);
  }

  .bs-post {
    padding: 48px 0 56px;
  }

  .bs-content {
    font-size: 15.5px;
    line-height: 25px;
  }

  .bs-content h2,
  .bs-content h3,
  .bs-content h4,
  .bs-content h5,
  .bs-content h6 {
    margin-top: 44px;
  }

  .bs-content h2 {
    font-size: 21px;
    line-height: 29px;
  }

  .bs-content blockquote {
    margin-top: 48px;
    padding-left: 22px;
    font-size: 18px;
    line-height: 26px;
  }

  .bs-figure {
    margin-top: 40px;
  }

  .bs-takeaways {
    padding: 22px 20px;
  }

  .bs-content table {
    display: block;
    overflow-x: auto;
  }

  .bs-foot {
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
  }

  .bs-share {
    flex-wrap: wrap;
  }

  .bs-divider {
    margin-top: 48px;
  }

  .bs-nav {
    margin-top: 44px;
  }

  .bs-nav-link {
    gap: 10px;
    font-size: 14.5px;
  }
}


/* ---------- tuned against the Figma prototype ---------- */
.bl-excerpt {
  margin-top: 10px;
}

.bl-slide .bl-author {
  margin-top: 32px;
}

.bl-read.btn-primary {
  margin-top: 32px;
  padding: 0 24px;
  letter-spacing: 0.6px;
}

.bl-tab {
  padding: 0 18px;
}

.bl-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.bl-card-author {
  margin-top: 30px;
}

/* the Figma column sits 27px left of centre */
@media (min-width: 1241px) {
  .bl-latest .container {
    padding-right: 54px;
  }

  .bl-list {
    margin-left: 133px;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .bl-rel-meta {
    gap: 10px;
    font-size: 13px;
    white-space: nowrap;
  }
}


/* =====================================================================
   WordPress output (tabs and pagination are links, post content is
   block markup)
   ===================================================================== */
a.bl-tab,
a.bl-page,
span.bl-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bl-author img,
.bl-card-author img,
.bl-rel-who img {
  max-width: none;
}

.bs-content > :first-child {
  margin-top: 0;
}

/* "Key Takeaways" table at the top of a post */
.bs-content > .wp-block-table:first-child {
  margin: 0;
  padding: 28px 32px;
  border: 1px solid #d6e7f5;
  border-left: 3px solid #4a8fe0;
  border-radius: 12px;
  background: #f4f9fd;
}

.bs-content > .wp-block-table:first-child table,
.bs-content > .wp-block-table:first-child td {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  font-size: 15.5px;
  line-height: 26px;
  color: #3e5f7a;
}

.bs-content > .wp-block-table:first-child strong:first-child {
  font-size: 18px;
  color: #174a70;
}

.bs-content .wp-block-image {
  margin-top: 64px;
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  background: #fff;
}

.bs-content .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

.bs-content .wp-block-quote {
  margin-top: 77px;
  margin-bottom: 40px;
  padding: 2px 0 2px 46px;
  border-left: 2px solid #6ca0e3;
  font-size: 21px;
  font-weight: 500;
  line-height: 27px;
  color: #174a70;
}

.bs-tags:empty {
  display: none;
}

@media (max-width: 767px) {
  .bs-content > .wp-block-table:first-child {
    padding: 22px 20px;
  }

  .bs-content .wp-block-quote {
    margin-top: 48px;
    padding-left: 22px;
    font-size: 18px;
    line-height: 26px;
  }
}

.bl-page.is-disabled {
  opacity: 0.35;
}


/* =====================================================================
   BLOG PAGE - MOBILE DESIGN (767px and below)
   Same spacing system as the service pages: 48px top and bottom,
   content 17px from the screen edge, titles 27.5px.
   ===================================================================== */
@media (max-width: 767px) {
  body.blog-index .bl-featured > .container,
  body.blog-index .bl-latest > .container,
  body.blog-index .bl-related > .container,
  body.blog-single .bl-featured > .container,
  body.blog-single .bl-latest > .container,
  body.blog-single .bl-related > .container {
    padding-left: 17px !important;
    padding-right: 17px !important;
  }

  /* banner title breaks like the design */
  body.blog-index .bl-banner .banner-content h1 {
    max-width: 290px !important;
  }

  /* ---------- featured blog ---------- */
  body.blog-index .bl-featured {
    padding: 48px 0 40px !important;
    background: #fff !important;
  }

  body.blog-index .bl-slide {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  body.blog-index .bl-slide[hidden] {
    display: none !important;
  }

  body.blog-index .bl-slide-img {
    order: -1 !important;
    width: 100% !important;
    height: 298px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  body.blog-index .bl-slide-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.blog-index .bl-badge {
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    height: 34px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }

  body.blog-index .bl-slide-text {
    width: auto !important;
    padding-top: 22px !important;
  }

  body.blog-index .bl-pill {
    height: 32px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
  }

  body.blog-index .bl-slide h2 {
    margin-top: 24px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 38.5px !important;
    line-height: 45px !important;
    font-weight: 700 !important;
    letter-spacing: -0.4px !important;
    color: #104164 !important;
    max-width: 375px !important;
  }

  body.blog-index .bl-excerpt {
    display: block !important;
    margin-top: 26px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid #e3e9ee !important;
    font-size: 17px !important;
    line-height: 24px !important;
    color: #5b798e !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  body.blog-index .bl-slide .bl-author {
    margin-top: 22px !important;
    gap: 14px !important;
  }

  body.blog-index .bl-slide .bl-author img {
    width: 58px !important;
    height: 58px !important;
  }

  body.blog-index .bl-slide .bl-author b {
    font-size: 17px !important;
  }

  body.blog-index .bl-slide .bl-author span {
    font-size: 14px !important;
  }

  body.blog-index .bl-read.btn-primary {
    display: flex !important;
    width: 100% !important;
    height: 60px !important;
    margin-top: 45px !important;
    background: #104164 !important;
    font-size: 16px !important;
    letter-spacing: 1.8px !important;
  }

  body.blog-index .bl-arrows {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 23px !important;
  }

  body.blog-index .bl-arrow {
    width: 46px !important;
    height: 46px !important;
  }

  /* blue line between featured and the list */
  body.blog-index .bl-rule {
    height: 5px !important;
    background: #4285f4 !important;
  }

  /* ---------- latest articles ---------- */
  body.blog-index .bl-latest {
    padding: 48px 0 48px !important;
  }

  body.blog-index .bl-h2 {
    margin-bottom: 21px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 27.5px !important;
    line-height: 38px !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px !important;
    text-align: left !important;
    color: #104164 !important;
  }

  body.blog-index .bl-tabs {
    gap: 10px !important;
    margin: 0 -17px 24px !important;
    padding: 0 17px !important;
  }

  body.blog-index .bl-tab {
    height: 50px !important;
    padding: 0 26px !important;
    border-radius: 25px !important;
    font-size: 15px !important;
  }

  body.blog-index .bl-tab.is-active {
    text-transform: uppercase !important;
  }

  body.blog-index .bl-list {
    gap: 24px !important;
  }

  body.blog-index .bl-card {
    padding: 10px !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  }

  body.blog-index .bl-card-img {
    height: 184px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  body.blog-index .bl-card-body {
    position: relative !important;
    padding: 18px 10px 15px !important;
  }

  body.blog-index .bl-card h3 {
    font-size: 23.5px !important;
    line-height: 33px !important;
    font-weight: 600 !important;
    color: #1f2a35 !important;
  }

  body.blog-index .bl-card h3 {
    max-width: 330px !important;
  }

  body.blog-index .bl-card h3 a {
    color: inherit !important;
  }

  body.blog-index .bl-card-body p {
    display: -webkit-box !important;
    margin-top: 12px !important;
    font-size: 15.5px !important;
    line-height: 22px !important;
    color: #7a8fa1 !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.blog-index .bl-card-author {
    margin-top: 30px !important;
    gap: 12px !important;
  }

  body.blog-index .bl-card-author img {
    width: 46px !important;
    height: 46px !important;
  }

  /* arrow sits at the end of the author row, not on the photo */
  body.blog-index .bl-card-go {
    top: auto !important;
    right: 20px !important;
    bottom: 26px !important;
    width: 34px !important;
    height: 34px !important;
    background: #e3eef6 !important;
    color: #2f6aa3 !important;
  }

  body.blog-index .bl-pages {
    margin-top: 40px !important;
    gap: 14px !important;
    justify-content: center !important;
  }

  body.blog-index .bl-page {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }

  body.blog-index .bl-page.is-arrow {
    border-radius: 50% !important;
    background: #e8f1f6 !important;
  }

  body.blog-index .bl-page.is-current {
    border-radius: 8px !important;
    background: #104164 !important;
    color: #fff !important;
  }

  /* ---------- related blogs: one card per slide + dots + view all ---------- */
  body.blog-index .bl-related,
  body.blog-single .bl-related {
    padding: 48px 0 48px !important;
    background: #f0f6fc !important;
  }

  body.blog-index .bl-related .bl-h2,
  body.blog-single .bl-related .bl-h2 {
    margin-bottom: 26px !important;
  }

  body.blog-index .bl-rel-track.m-slider,
  body.blog-single .bl-rel-track.m-slider {
    padding: 0 !important;
  }

  body.blog-index .bl-rel-track.m-slider .bl-rel,
  body.blog-single .bl-rel-track.m-slider .bl-rel {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 32px 35px 30px !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06) !important;
  }

  body.blog-index .bl-rel-img,
  body.blog-single .bl-rel-img {
    height: 238px !important;
    border-radius: 18px !important;
  }

  body.blog-index .bl-rel h3,
  body.blog-single .bl-rel h3 {
    margin-top: 26px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 28.5px !important;
    line-height: 37.5px !important;
    font-weight: 500 !important;
    color: #1f2a35 !important;
  }

  body.blog-index .bl-rel-cat,
  body.blog-single .bl-rel-cat {
    margin-top: 10px !important;
    font-size: 15px !important;
    color: #4285f4 !important;
  }

  body.blog-index .bl-rel-meta,
  body.blog-single .bl-rel-meta {
    margin-top: 22px !important;
    font-size: 15px !important;
  }

  body.blog-index .bl-rel-who img,
  body.blog-single .bl-rel-who img {
    width: 37px !important;
    height: 37px !important;
  }

  body.blog-index .bl-related .m-dots,
  body.blog-single .bl-related .m-dots {
    margin-top: 25px !important;
    gap: 9px !important;
  }

  body.blog-index .bl-related .m-dot,
  body.blog-single .bl-related .m-dot {
    width: 12px !important;
    height: 12px !important;
    border: 1.5px solid #c9d6e2 !important;
    background: #fff !important;
  }

  body.blog-index .bl-related .m-dot.is-active,
  body.blog-single .bl-related .m-dot.is-active {
    width: 15px !important;
    height: 15px !important;
    border-color: #4285f4 !important;
    background: #4285f4 !important;
    transform: none !important;
  }
}

/* "View All Blogs" under the related cards (all screens) */
.bl-rel-all {
  display: none;
}

@media (max-width: 767px) {
  .bl-rel-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 60px;
    margin-top: 20px;
    border: 1.5px solid #174d78;
    border-radius: 2px;
    background: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #104164;
    text-decoration: none;
  }

  .bl-rel-all svg {
    width: 18px;
    height: 18px;
  }
}

/* =====================================================================
   SINGLE BLOG POST - MOBILE (767px and below)
   Matched to the 360px Figma "Blog Detail" mobile frame:
   - banner text left aligned, smaller title, flat bottom edge
   - order under the post: divider, Previous / Next, tags, share icons
   Sizes scale a little with the screen (clamp) so a 360px phone gets
   the exact Figma size. Kept last so it wins.
   ===================================================================== */
@media (max-width: 767px) {

  /* ---------- banner ---------- */
  body.blog-single .bs-hero {
    height: auto;
    min-height: 0;
    padding-bottom: 80px;
  }

  body.blog-single .bs-hero-content {
    padding-top: 170px;
    padding-left: clamp(24px, 9vw, 40px);
    padding-right: clamp(24px, 9vw, 40px);
    text-align: left;
  }

  body.blog-single .bs-hero .breadcrumbs {
    justify-content: flex-start;
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 16px;
  }

  body.blog-single .bs-hero h1 {
    max-width: 320px;
    margin: 0;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: clamp(24px, 6.67vw, 28px);
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: 0;
  }

  body.blog-single .bs-hero .bl-author {
    justify-content: flex-start;
    margin-top: 28px;
  }

  body.blog-single .bs-hero .bl-author img {
    width: 46px;
    height: 46px;
  }

  body.blog-single .bs-hero-strip {
    display: none;
  }

  /* ---------- post body ---------- */
  body.blog-single .bs-post {
    padding: 36px 0 22px;
  }

  body.blog-single .bs-content {
    font-size: clamp(15px, 4.15vw, 16px);
    line-height: 1.6;
  }

  body.blog-single .bs-content h2 {
    font-size: clamp(18px, 5vw, 20px);
    line-height: 1.45;
  }

  body.blog-single .bs-content h3 {
    font-size: clamp(17px, 4.7vw, 19px);
    line-height: 1.45;
  }

  body.blog-single .bs-content h4,
  body.blog-single .bs-content h5,
  body.blog-single .bs-content h6 {
    font-size: clamp(16px, 4.45vw, 18px);
    line-height: 1.45;
  }

  body.blog-single .bs-content h2,
  body.blog-single .bs-content h3,
  body.blog-single .bs-content h4,
  body.blog-single .bs-content h5,
  body.blog-single .bs-content h6 {
    margin-top: 36px;
  }

  /* big quote with the blue line on the left */
  body.blog-single .bs-content blockquote,
  body.blog-single .bs-content .wp-block-quote {
    margin-top: 40px;
    margin-bottom: 32px;
    padding: 2px 0 2px 26px;
    font-size: clamp(21px, 5.85vw, 24px);
    font-weight: 400;
    line-height: 1.38;
  }

  body.blog-single .bs-content .wp-block-image {
    margin-top: 36px;
    margin-bottom: 28px;
  }

  body.blog-single .bs-content > .wp-block-table:first-child td {
    font-size: 14.5px;
    line-height: 24px;
  }

  /* ---------- divider, prev / next, tags, share ---------- */
  body.blog-single .bs-post > .container {
    display: flex;
    flex-direction: column;
  }

  body.blog-single .bs-content {
    order: 1;
    width: 100%;
  }

  body.blog-single .bs-divider {
    order: 2;
    margin-top: 40px;
  }

  body.blog-single .bs-nav {
    order: 3;
    width: 100%;
    margin-top: 32px;
  }

  body.blog-single .bs-nav-link {
    gap: 12px;
    font-size: 14px;
  }

  body.blog-single .bs-nav-ic {
    width: 36px;
    height: 36px;
  }

  /* tags + share run edge to edge, a thin line above each */
  body.blog-single .bs-foot {
    order: 4;
    gap: 0;
    width: auto;
    max-width: none;
    margin: 48px -20px 0;
  }

  body.blog-single .bs-tags,
  body.blog-single .bs-share {
    width: 100%;
    max-width: none;
    padding: 22px 20px 0;
    border-top: 1px solid #e6edf3;
  }

  body.blog-single .bs-tags {
    justify-content: center;
    gap: 10px 12px;
    padding-bottom: 22px;
  }

  body.blog-single .bs-tags:not(:has(.bs-tag)) {
    display: none;
  }

  body.blog-single .bs-tag {
    flex: 1 1 auto;
    justify-content: center;
    height: 32px;
    padding: 0 18px;
    font-size: 11.5px;
  }

  body.blog-single .bs-share {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }

  body.blog-single .bs-share-btn {
    width: 42px;
    height: 42px;
  }

  body.blog-single .bs-share-btn svg {
    width: 19px;
    height: 19px;
  }

  /* ---------- CTA band + FAQ under the post ---------- */
  body.blog-single .sv-cta .cta-content h2 {
    max-width: 250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(28px, 7.8vw, 32px) !important;
    line-height: 1.3 !important;
  }

  body.blog-single .sv-cta .cta-content p {
    font-size: clamp(13px, 3.75vw, 15px) !important;
    line-height: 1.65 !important;
  }

  body.blog-single .sv-cta .btn-primary {
    height: 56px;
    padding: 0 26px;
    font-size: 15px;
    letter-spacing: 1.5px;
  }

  body.blog-single .faq .faq-header h2 {
    max-width: 280px !important;
    font-size: clamp(23px, 6.4vw, 27px) !important;
    line-height: 1.3 !important;
  }

  body.blog-single .faq .faq-header p {
    font-size: clamp(13.5px, 3.9vw, 15.5px) !important;
    line-height: 1.6 !important;
  }

  body.blog-single .faq-q {
    padding: 16px 18px !important;
    gap: 12px;
    font-size: 15px !important;
    line-height: 22px !important;
  }

  body.blog-single .faq-a {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  body.blog-single .faq-chev {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
  }
}


/* FAQ arrow icon (mobile): the arrow is centred in the smaller circle */
@media (max-width: 767px) {
  body.blog-single .faq-chev {
    width: 22px !important;
    height: 22px !important;
    margin-left: 0;
    background: #c3d0da;
  }

  body.blog-single .faq-chev::after {
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -70%) rotate(45deg);
  }
}


/* =====================================================================
   BLOG PAGE (/blog/) - FAQ (mobile)
   Same FAQ look as the single post, About and Contact pages: smaller
   question text and the arrow centred in its circle.
   ===================================================================== */
@media (max-width: 767px) {
  body.blog-index .faq .faq-header h2 {
    max-width: 280px !important;
    font-size: clamp(23px, 6.4vw, 27px) !important;
    line-height: 1.3 !important;
  }

  body.blog-index .faq .faq-header p {
    font-size: clamp(13.5px, 3.9vw, 15.5px) !important;
    line-height: 1.6 !important;
  }

  body.blog-index .faq-q {
    min-height: 56px !important;
    padding: 16px 18px !important;
    gap: 12px;
    font-size: 15px !important;
    line-height: 22px !important;
  }

  body.blog-index .faq-a {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  body.blog-index .faq-chev {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    margin-left: 0;
    background: #c3d0da;
  }

  body.blog-index .faq-chev::after {
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -70%) rotate(45deg);
  }
}