.blog-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;padding:1.2rem 0 2rem}
.blog-hero.has-featured{grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);align-items:stretch}
.blog-hero-copy{border-radius:30px;padding:clamp(1.5rem,3vw,2.7rem);background:linear-gradient(145deg,#071827 0%,#0b3b3c 62%,#0f766e 145%);color:#fff;box-shadow:0 28px 70px rgba(8,17,31,.18);position:relative;overflow:hidden}
.blog-hero-copy::before{content:"";position:absolute;inset:auto -70px -110px auto;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(251,191,36,.28),transparent 66%)}
.blog-kicker{display:inline-flex;padding:.46rem .8rem;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);border-radius:999px;font-weight:800;color:#a7f3d0}
.blog-hero-copy h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.28;margin:1rem 0 .85rem;max-width:15ch}
.blog-hero-copy p{color:#d7e6e5;margin:0;max-width:58ch;font-size:1.03rem}
.blog-category-pills{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:1.6rem;position:relative;z-index:2}
.blog-category-pills a{display:inline-flex;align-items:center;gap:.45rem;padding:.58rem .82rem;border-radius:999px;border:1px solid rgba(255,255,255,.16);color:#ecfeff;background:rgba(255,255,255,.07);transition:.2s ease}
.blog-category-pills a:hover,.blog-category-pills a.active{background:#fff;color:#0f3b3a;transform:translateY(-1px)}
.blog-category-pills small{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:rgba(15,118,110,.14);font-weight:800}
.blog-featured-card{background:#fff;border-radius:30px;overflow:hidden;border:1px solid #e6edf4;box-shadow:0 28px 70px rgba(15,23,42,.11);display:grid;grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr);min-height:440px}
.blog-featured-media{position:relative;min-height:340px;background:#e2e8f0;overflow:hidden}
.blog-featured-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.blog-featured-card:hover .blog-featured-media img{transform:scale(1.025)}
.blog-featured-badge{position:absolute;right:1rem;top:1rem;padding:.5rem .8rem;border-radius:999px;background:#fbbf24;color:#3f2a00;font-weight:900;box-shadow:0 10px 25px rgba(0,0,0,.16)}
.blog-featured-body{padding:clamp(1.35rem,2.5vw,2.2rem);display:flex;flex-direction:column;justify-content:center}
.blog-featured-body h2{font-size:clamp(1.45rem,2.6vw,2.2rem);line-height:1.5;margin:.75rem 0}
.blog-featured-body p{color:#64748b;margin:0 0 1.2rem}
.blog-card-category{display:inline-flex;width:max-content;padding:.4rem .72rem;border-radius:999px;background:#ecfdf5;color:#0f766e;font-size:.84rem;font-weight:900;border:1px solid #a7f3d0}
.blog-card-meta{display:flex;flex-wrap:wrap;gap:.55rem 1rem;color:#64748b;font-size:.87rem}
.blog-card-meta span{display:inline-flex;align-items:center;gap:.35rem}
.blog-card-meta span+span::before{content:"•";color:#cbd5e1;margin-left:.25rem}
.blog-list-section{padding:1rem 0 2rem}
.blog-section-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.2rem;flex-wrap:wrap}
.blog-section-heading h2{font-size:clamp(1.55rem,2.8vw,2.25rem);margin:.45rem 0 0}
.blog-result-count{padding:.55rem .85rem;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#475569;font-weight:800}
.blog-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem}
.blog-card-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.blog-card{background:#fff;border:1px solid #e4eaf1;border-radius:24px;overflow:hidden;box-shadow:0 16px 38px rgba(15,23,42,.07);display:flex;flex-direction:column;transition:.25s ease}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 24px 55px rgba(15,23,42,.12)}
.blog-card-image{aspect-ratio:16/10;overflow:hidden;background:linear-gradient(135deg,#0f172a,#0f766e);display:block}
.blog-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.blog-card:hover .blog-card-image img{transform:scale(1.035)}
.blog-card-placeholder{display:grid;place-items:center;width:100%;height:100%;font-size:2rem;color:#fff;font-weight:900;letter-spacing:.1em}
.blog-card-body{padding:1.15rem 1.2rem 1.25rem;display:flex;flex-direction:column;flex:1}
.blog-card-body h3{font-size:1.16rem;line-height:1.65;margin:.7rem 0 .5rem}
.blog-card-body p{color:#64748b;margin:0 0 1.05rem;font-size:.94rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.blog-card-footer{margin-top:auto;display:flex;align-items:end;justify-content:space-between;gap:.8rem;flex-wrap:wrap}
.blog-read-link{color:#0f766e;font-weight:900;font-size:.9rem}
.blog-read-link:hover{color:#ea580c}
.blog-empty-state{padding:3rem 1rem;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:24px}
.blog-empty-state strong{display:block;font-size:1.2rem}
.blog-empty-state p{color:#64748b}
.blog-pagination{display:flex;justify-content:center;gap:.5rem;margin-top:1.6rem}
.blog-pagination a{display:grid;place-items:center;min-width:42px;height:42px;border-radius:14px;background:#fff;border:1px solid #e2e8f0;font-weight:800;color:#475569}
.blog-pagination a.active,.blog-pagination a:hover{background:#0f766e;color:#fff;border-color:#0f766e}
.blog-bottom-cta{margin-top:1rem;border-radius:28px;padding:1.5rem 1.7rem;background:linear-gradient(130deg,#0f172a,#0f4c47);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;box-shadow:0 24px 55px rgba(15,23,42,.16)}
.blog-bottom-cta span{color:#99f6e4;font-weight:800}
.blog-bottom-cta h2{margin:.35rem 0 0;font-size:clamp(1.25rem,2.5vw,1.9rem)}

.blog-article{max-width:1160px;margin:0 auto}
.blog-breadcrumb{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;color:#64748b;font-size:.88rem;margin-bottom:1.2rem}
.blog-breadcrumb a:hover{color:#0f766e}
.blog-article-header{text-align:center;max-width:930px;margin:0 auto 1.5rem}
.blog-article-header .blog-card-category{margin-inline:auto}
.blog-article-header h1{font-size:clamp(2rem,4.4vw,4rem);line-height:1.35;margin:1rem 0 .9rem;color:#0f172a}
.blog-article-lead{font-size:clamp(1.02rem,1.7vw,1.22rem);color:#64748b;max-width:75ch;margin:0 auto}
.blog-article-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:.55rem 1.15rem;margin-top:1rem;color:#64748b;font-size:.9rem}
.blog-article-meta span+span::before{content:"•";color:#cbd5e1;margin-left:.6rem}
.blog-article-hero{margin:0 0 1.6rem;border-radius:30px;overflow:hidden;background:#e2e8f0;box-shadow:0 26px 65px rgba(15,23,42,.12)}
.blog-article-hero img{width:100%;max-height:720px;object-fit:cover}
.blog-article-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.3rem;align-items:start}
.blog-article-sidebar{position:sticky;top:95px;display:grid;gap:1rem}
.blog-toc-card,.blog-share-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:1rem;box-shadow:0 14px 32px rgba(15,23,42,.06)}
.blog-toc-card>strong,.blog-share-card>strong{display:block;margin-bottom:.65rem}
.blog-toc-card ol{margin:0;padding:0;list-style:none;display:grid;gap:.35rem}
.blog-toc-card li a{display:block;padding:.48rem .55rem;border-radius:10px;color:#475569;font-size:.88rem;line-height:1.55}
.blog-toc-card li a:hover{background:#f0fdfa;color:#0f766e}
.blog-toc-card li.is-sub a{padding-right:1.25rem;font-size:.82rem}
.blog-share-card button{width:100%;border:1px solid #cbd5e1;background:#f8fafc;border-radius:12px;padding:.7rem;font-weight:800;color:#334155}
.blog-share-card small{display:block;margin-top:.45rem;color:#0f766e}
.blog-article-content{background:#fff;border:1px solid #e5eaf0;border-radius:28px;padding:clamp(1.3rem,3.5vw,3rem);box-shadow:0 20px 48px rgba(15,23,42,.07);font-size:1.03rem;line-height:2.05;color:#273449;overflow:hidden}
.blog-article-content h2,.blog-article-content h3,.blog-article-content h4{scroll-margin-top:110px;color:#0f172a;line-height:1.55}
.blog-article-content h2{font-size:clamp(1.45rem,2.6vw,2rem);margin:2.4rem 0 .85rem;padding-right:1rem;border-right:4px solid #0f766e}
.blog-article-content h3{font-size:1.25rem;margin:1.8rem 0 .55rem;color:#134e4a}
.blog-article-content h4{font-size:1.08rem;margin:1.4rem 0 .4rem}
.blog-article-content p{margin:.85rem 0;color:#334155}
.blog-article-content ul,.blog-article-content ol{padding-right:1.4rem;margin:1rem 0}
.blog-article-content li{margin:.45rem 0}
.blog-article-content strong{color:#0f172a}
.blog-article-content a{color:#0f766e;text-decoration:underline;text-underline-offset:4px}
.blog-article-content blockquote{margin:1.2rem 0;padding:1rem 1.15rem;border-right:4px solid #f59e0b;background:#fffbeb;border-radius:16px;color:#78350f}
.blog-article-content figure{margin:1.6rem 0;border-radius:22px;overflow:hidden;background:#f8fafc;border:1px solid #e2e8f0}
.blog-article-content figure img{width:100%;height:auto;max-height:680px;object-fit:contain;background:#fff}
.blog-article-content figcaption{padding:.7rem 1rem;text-align:center;color:#64748b;font-size:.88rem}
.blog-article-content hr{border:0;border-top:1px solid #e2e8f0;margin:2rem 0}
.blog-article-content pre,.blog-article-content code{direction:ltr;text-align:left;background:#0f172a;color:#e2e8f0;border-radius:12px}
.blog-article-content code{padding:.15rem .35rem}
.blog-article-content pre{padding:1rem;overflow:auto}
.blog-inline-cta{margin-top:2.3rem;padding:1.35rem;border-radius:22px;background:linear-gradient(135deg,#ecfdf5,#fff7ed);border:1px solid #bbf7d0;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.blog-inline-cta span{font-weight:900;color:#0f766e}
.blog-inline-cta h2{border:0;padding:0;margin:.35rem 0!important;font-size:1.35rem!important}
.blog-inline-cta p{margin:0!important;font-size:.94rem}
.blog-related-section{margin-top:2rem}

@media(max-width:1050px){
  .blog-hero.has-featured{grid-template-columns:1fr}
  .blog-featured-card{grid-template-columns:1.05fr .95fr}
  .blog-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .blog-article-layout{grid-template-columns:1fr}
  .blog-article-sidebar{position:static;grid-template-columns:1fr 1fr;order:2}
}
@media(max-width:760px){
  .blog-hero{padding-top:.4rem}.blog-hero-copy{border-radius:24px;padding:1.35rem}.blog-hero-copy h1{max-width:none}
  .blog-featured-card{grid-template-columns:1fr;min-height:0}.blog-featured-media{min-height:240px}.blog-featured-body{padding:1.2rem}
  .blog-card-grid,.blog-card-grid.compact{grid-template-columns:1fr}.blog-card-footer{align-items:center}
  .blog-article-header{text-align:right}.blog-article-header .blog-card-category{margin-inline:0}.blog-article-meta{justify-content:flex-start}
  .blog-article-hero{border-radius:22px}.blog-article-content{border-radius:22px;padding:1.15rem;font-size:.98rem;line-height:1.95}
  .blog-article-sidebar{grid-template-columns:1fr}.blog-bottom-cta{align-items:flex-start}.blog-bottom-cta .btn{width:100%}
}

/* PDRYar blog image visibility + CTA readability patch v1 */
.blog-featured-media,
.blog-card-image,
.blog-article-hero{
  background:#f8fafc;
}

/* Always show the complete featured/poster image instead of cropping it. */
.blog-featured-media{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.55rem;
}
.blog-featured-media img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center!important;
  background:#fff;
  border-radius:20px;
}

/* Blog listing and related-post cards: preserve the complete image. */
.blog-card-image{
  aspect-ratio:4/3;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.45rem;
}
.blog-card-image img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center!important;
  background:#fff;
  border-radius:16px;
}

/* Article hero/poster: remove the old height cap so the whole poster is visible. */
.blog-article-hero{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(.4rem,1vw,.75rem);
}
.blog-article-hero img{
  display:block;
  width:100%;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#fff;
  border-radius:24px;
}

/* The general article-link color was overriding the CTA text color. */
.blog-article-content .blog-inline-cta a.btn.btn-primary{
  min-width:190px;
  min-height:50px;
  padding:.85rem 1.35rem;
  color:#fff!important;
  background:linear-gradient(135deg,#0f766e,#0b5954)!important;
  border:1px solid #0b5954;
  text-decoration:none!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18);
  box-shadow:0 12px 26px rgba(15,118,110,.28);
  opacity:1!important;
}
.blog-article-content .blog-inline-cta a.btn.btn-primary:hover,
.blog-article-content .blog-inline-cta a.btn.btn-primary:focus-visible{
  color:#fff!important;
  background:linear-gradient(135deg,#0b5954,#08433f)!important;
  outline:3px solid rgba(20,184,166,.24);
  outline-offset:3px;
}

@media(max-width:760px){
  .blog-featured-media{min-height:280px;padding:.4rem}
  .blog-card-image{aspect-ratio:4/3;padding:.35rem}
  .blog-article-hero{padding:.3rem}
  .blog-article-hero img{border-radius:18px}
  .blog-article-content .blog-inline-cta a.btn.btn-primary{width:100%;min-width:0}
}
