.blog-hub,
.article-page {
  background: #f6f8fb;
  color: #203047;
  padding-bottom: 70px
}

.blog-container,
.article-container {
  width: min(1180px, calc(100% - 36px));
  margin: auto
}

.blog-hero {
  padding: 64px 0 42px;
  background: linear-gradient(135deg, #11172d, #183f65);
  color: #fff;
  margin-bottom: 32px
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  margin: 10px 0
}

.blog-hero p {
  font-size: 1.15rem;
  max-width: 720px;
  line-height: 1.6
}

.blog-pill {
  display: inline-block;
  background: #e9f3ff;
  color: #174d82;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .8rem;
  font-weight: 800
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 35px rgba(15, 76, 129, .1);
  margin-bottom: 28px
}

.blog-featured img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover
}

.blog-featured>div {
  padding: 38px
}

.blog-featured h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 13px 0
}

.blog-featured p {
  line-height: 1.65;
  color: #5e6977
}


.blog-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.blog-filters button {
  border: 1px solid #d9e1ea;
  background: #fff;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer
}

.blog-filters button.active {
  background: #174d82;
  color: #fff
}

.blog-tools input {
  min-width: 250px;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  padding: 11px 13px
}

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

.blog-card {
  display: block;
  background: #fff;
  border-radius: 17px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e6ed;
  box-shadow: 0 8px 22px rgba(15, 76, 129, .05)
}

.blog-card img,
.blog-placeholder {
  width: 100%;
  height: 210px;
  object-fit: cover
}

.blog-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #174d82, #43a047);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800
}

.blog-card-body {
  padding: 20px
}

.blog-pill-small {
  font-size: .72rem;
  padding: 5px 9px
}

.blog-card h2 {
  font-size: 1.25rem;
  margin: 12px 0 8px
}

.blog-card p {
  color: #5d6875;
  line-height: 1.55
}

.blog-card small {
  display: block;
  color: #788391;
  margin-top: 15px
}

.blog-empty {
  text-align: center;
  padding: 40px
}

.article-page {
  padding-top: 42px
}

.article-container {
  width: min(1180px, calc(100% - 36px));
  max-width: 1180px;
  box-sizing: border-box;
  background: #fff;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(15, 76, 129, .08)
}

.article-back {
  display: inline-block;
  margin-bottom: 25px
}

.article-container h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 14px 0
}

.article-meta {
  color: #788391
}

.article-lede {
  max-width: 980px;
  font-size: 1.18rem;
  line-height: 1.58;
  color: #536171;
  margin: 0 0 24px
}

.article-content {
  width: 100%;
  font-size: 1.06rem;
  line-height: 1.65;
}

.article-content p {
  margin: 0 0 0.45rem;
}

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

.article-content h2 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin: 2rem 0 .8rem
}

.article-content h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 1.7rem 0 .7rem
}

.article-content ul,
.article-content ol {
  margin: .4rem 0 1.2rem;
  padding-left: 1.6rem
}

.article-content li {
  margin: .35rem 0;
  line-height: 1.55
}

.article-content hr {
  border: 0;
  border-top: 1px solid #dfe6ee;
  margin: 2rem 0
}

/* Featured image shown near the top of the article */
.article-container > img,
.article-container > picture,
.article-container > picture img,
.article-container .article-image,
.article-container .featured-image,
.article-container .article-featured-image,
.article-container .blog-article-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  margin: 24px 0 30px;
  box-sizing: border-box;
}

.article-container > picture {
  overflow: hidden;
}

.article-container > picture img {
  margin: 0;
}

/* Images inserted inside the article body */
.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px auto;
}
.article-content blockquote {
  border-left: 4px solid #43a047;
  margin: 25px 0;
  padding: 10px 20px;
  background: #f2f8f3
}

.article-cta {
  margin-top: 45px;
  padding: 28px;
  border-radius: 16px;
  background: #14243a;
  color: #fff
}

.article-cta a {
  display: inline-block;
  margin-top: 8px;
  background: #43a047;
  color: #fff;
  padding: 11px 15px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 800
}

@media(max-width:900px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr
  }

  .blog-featured {
    grid-template-columns: 1fr
  }

  .blog-featured img {
    min-height: 260px
  }

  .blog-tools {
    align-items: stretch;
    flex-direction: column
  }

  .blog-tools input {
    width: 100%;
    box-sizing: border-box
  }
}

@media(max-width:600px) {
  .blog-grid {
    grid-template-columns: 1fr
  }

  .blog-featured>div {
    padding: 25px
  }

  .article-page {
    padding-top: 18px
  }

  .article-container {
    width: min(100% - 20px, 1180px);
    padding: 24px 20px;
    border-radius: 16px
  }

  .article-container h1 {
    font-size: clamp(2rem, 10vw, 2.7rem)
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.58
  }

  .article-container > img,
  .article-container > picture,
  .article-container > picture img,
  .article-container .article-image,
  .article-container .featured-image,
  .article-container .article-featured-image,
  .article-container .blog-article-image {
    height: 230px;
    border-radius: 12px;
    margin: 18px 0 22px;
  }

  .article-container > picture img {
    margin: 0;
  }

  .article-content img {
    height: auto;
    margin: 18px auto 22px;
  }
}

/* Final live styling: keep blog hero and article CTA bright and readable. */
.blog-hub .blog-hero {
  background: linear-gradient(135deg, #eef7ff 0%, #dceeff 58%, #edf8f1 100%);
  color: #17324d;
  border-top: 1px solid #d6e7f5;
  border-bottom: 1px solid #cadfee;
}

.blog-hub .blog-hero h1 {
  color: #0f4c81;
  text-shadow: none;
}

.blog-hub .blog-hero p {
  color: #40576d;
}

.blog-hub .blog-hero .blog-pill {
  background: #ffffff;
  color: #0f4c81;
  border: 1px solid #c9ddeb;
  box-shadow: 0 5px 14px rgba(15, 76, 129, 0.08);
}

.article-page .article-cta {
  background: linear-gradient(135deg, #eaf5ff 0%, #eef8f1 100%);
  color: #203047;
  border: 1px solid #cfe1ed;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.08);
}

.article-page .article-cta h2 {
  color: #0f4c81;
  margin-top: 0;
}

.article-page .article-cta p {
  color: #40576d;
}

.article-page .article-cta a {
  background: #43a047;
  color: #ffffff;
}

.article-page .article-cta a:hover,
.article-page .article-cta a:focus {
  background: #34853a;
}

/* Stage 2 reader comments */
.article-comments{margin-top:42px;padding-top:34px;border-top:1px solid #dfe6ee}.comments-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:20px}.comments-heading h2{margin:10px 0 0;color:#17324d}.comments-heading p{margin:0;color:#687385}.comment-message{padding:14px 16px;border-radius:10px;background:#eef8f1;border:1px solid #c9e3cd;color:#286b30;margin-bottom:18px}.comments-empty{padding:20px;background:#f6f8fb;border-radius:12px;color:#687385}.comment-list{display:grid;gap:12px;margin-bottom:28px}.comment-item{padding:18px 20px;border:1px solid #dfe5ec;border-radius:14px;background:#fff}.comment-item.author-reply{margin-left:36px;background:#eef7ff;border-color:#cbdfee}.comment-meta{display:flex;justify-content:space-between;gap:16px;margin-bottom:8px}.comment-meta strong{color:#17324d}.comment-meta span{color:#788391;font-size:.86rem}.comment-item p{margin:0;line-height:1.55}.comment-form{padding:24px;border-radius:16px;background:#f6f8fb;border:1px solid #dfe5ec}.comment-form h3{margin-top:0}.comment-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.comment-form label{display:block;font-weight:700;color:#31445b;margin-bottom:14px}.comment-form label small{font-weight:400}.comment-form input,.comment-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cfd8e3;border-radius:10px;padding:11px 12px;font:inherit;background:#fff}.comment-form button{border:0;border-radius:9px;padding:11px 16px;background:#43a047;color:#fff;font-weight:800;cursor:pointer}.comment-honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}@media(max-width:600px){.comments-heading,.comment-meta{display:block}.comments-heading p,.comment-meta span{display:block;margin-top:6px}.comment-fields{grid-template-columns:1fr}.comment-item.author-reply{margin-left:14px}.comment-form{padding:18px}}
