/* Blog index + articles */
:root { --soft: #f4f6fb; --ink: #2b3040; --muted: #5d667a; --line: #e3e8f2; --serif: "Lora", Georgia, "Times New Roman", serif; }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover, .btn-outline:focus { background: var(--navy); color: #fff; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- Index ---------- */
.blog-wrap { background: var(--soft); padding: 50px 0 70px; }
.blog-intro { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.blog-intro h2 { font-size: 32px; margin-bottom: 10px; }
.blog-intro p { color: var(--muted); font-size: 16px; margin: 0; }

.post-card { position: relative; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(3,38,103,.06), 0 8px 24px rgba(3,38,103,.07); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(3,38,103,.06), 0 16px 36px rgba(3,38,103,.13); }
.post-card-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #dde3ef; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.035); }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-title { font: 500 23px/1.22 var(--head); margin: 0 0 10px; }
.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card-title a:focus-visible { outline: none; }
.post-card:focus-within { outline: 3px solid #1e72bd; outline-offset: 3px; }
.post-card:hover .post-card-title a { color: #1e72bd; }
.post-excerpt { color: #4a5263; font-size: 15px; line-height: 1.6; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; font: 500 15px/1 var(--head); letter-spacing: .04em; color: var(--red); text-decoration: none; }
.read-more span { display: inline-block; transition: transform .2s; }
.post-card:hover .read-more span { transform: translateX(4px); }

.post-card--feature { display: grid; grid-template-columns: 1.12fr 1fr; margin-bottom: 36px; border-radius: 14px; }
.post-card--feature .post-card-img { aspect-ratio: auto; min-height: 100%; }
.post-card--feature .post-card-body { padding: 44px 44px 40px; justify-content: center; }
.post-card--feature .post-card-title { font-size: 34px; line-height: 1.15; margin-bottom: 14px; }
.post-card--feature .post-excerpt { font-size: 16.5px; -webkit-line-clamp: 5; margin-bottom: 26px; }
.post-kicker { align-self: flex-start; background: var(--yellow); color: var(--navy-dk); font: 500 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 7px 11px; border-radius: 4px; margin: 0 0 18px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-index .post-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.blog-index .post-card-title { font-size: 26px; }

/* ---------- Article ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; }

.article-head { background: var(--navy) url(../img/pattern.webp) center / cover no-repeat; color: #fff; text-align: center; padding: 54px 0 150px; }
.article-head .container { max-width: 900px; }
.crumbs { display: flex; justify-content: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; color: #b9c7ef; }
.crumbs a { color: #dbe3fb; text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.article-head h1 { color: #fff; font-size: 46px; line-height: 1.12; font-weight: 500; margin: 0 0 26px; text-wrap: balance; }
.byline { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.byline img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px var(--yellow); }
.byline-name { color: #fff; font: 500 16px/1.3 var(--head); letter-spacing: .02em; text-decoration: none; }
.byline-name:hover { color: var(--yellow); }
.byline .post-meta { color: #c3cff3; margin: 2px 0 0; font-size: 12px; }

.article-hero { max-width: 920px; margin: -112px auto 0; padding: 0 20px; }
.article-hero img { width: 100%; border-radius: 14px; box-shadow: 0 22px 50px rgba(3,38,103,.25); aspect-ratio: 3 / 2; object-fit: cover; }

.article-body { max-width: 760px; margin: 0 auto; padding: 44px 20px 30px; }

.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 0 0 36px; }
.toc-title { font: 500 13px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 16px; position: relative; color: #33405e; text-decoration: none; font-size: 15px; line-height: 1.4; }
.toc a::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px #e0c200; }
.toc .toc-l3 a { padding-left: 32px; font-size: 14px; color: var(--muted); }
.toc .toc-l3 a::before { left: 16px; width: 5px; height: 5px; background: #c8d1e6; box-shadow: none; }
.toc a:hover, .toc a.is-active { color: var(--navy); }
.toc a.is-active { font-weight: 700; }

.prose { font: 19px/1.78 var(--serif); color: var(--ink); }
.prose p { margin: 0 0 1.25em; }
.prose .lead { font-size: 21.5px; line-height: 1.6; color: #1d2a4d; border-left: 4px solid var(--yellow); padding: 2px 0 2px 22px; margin-bottom: 1.6em; }
.prose h2 { font: 500 31px/1.2 var(--head); color: var(--navy); margin: 1.9em 0 .65em; scroll-margin-top: 130px; }
.prose h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--yellow); margin-bottom: 16px; }
.prose h3 { font: 500 23px/1.25 var(--head); color: #1d4aa6; margin: 1.6em 0 .45em; scroll-margin-top: 130px; }
.prose strong { font-weight: 600; color: #1d2335; }
.prose a { color: var(--navy); }

.author-box { display: flex; gap: 26px; align-items: flex-start; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin: 44px 0 18px; }
.author-box img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--yellow); }
.author-label { font: 500 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.author-box h2 { font-size: 26px; margin: 0 0 10px; }
.author-box p { font-size: 15px; line-height: 1.6; color: #444c5e; margin: 0 0 18px; }
.author-box .btn { padding: 12px 20px; font-size: 15px; }
.article-note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

.more-posts { background: var(--soft); padding: 56px 0 64px; margin-top: 30px; }
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.more-head h2 { font-size: 30px; margin: 0; }
.more-head a { font: 500 16px/1 var(--head); color: var(--red); text-decoration: none; letter-spacing: .03em; }

/* ---------- CTA band ---------- */
.blog-cta { background: var(--navy-dk) url(../img/pattern.webp) center / cover no-repeat; color: #fff; padding: 52px 0; }
.blog-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px 50px; }
.blog-cta h2 { color: #fff; font-size: 32px; margin: 0 0 10px; }
.blog-cta p { color: #d8e0f7; margin: 0; max-width: 560px; }
.blog-cta .btn-row { flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--feature .post-card-body { padding: 32px; }
  .post-card--feature .post-card-title { font-size: 29px; }
  .blog-cta .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .post-card--feature { grid-template-columns: 1fr; }
  .post-card--feature .post-card-img { aspect-ratio: 3 / 2; }
}
@media (max-width: 767px) {
  .blog-wrap { padding: 32px 0 44px; }
  .blog-intro { margin-bottom: 26px; }
  .blog-intro h2 { font-size: 26px; }
  .post-grid, .blog-index .post-grid { grid-template-columns: 1fr; gap: 22px; }
  .post-card--feature { margin-bottom: 22px; }
  .post-card--feature .post-card-body, .post-card-body { padding: 20px 20px 22px; }
  .post-card--feature .post-card-title, .blog-index .post-card-title { font-size: 24px; }
  .post-kicker { margin-bottom: 14px; }

  .article-head { padding: 30px 0 84px; }
  .article-head h1 { font-size: 30px; margin-bottom: 20px; }
  .article-hero { margin-top: -64px; padding: 0 16px; }
  .article-hero img { border-radius: 10px; }
  .article-body { padding: 30px 20px 20px; }
  .toc { padding: 16px 18px; margin-bottom: 28px; }
  .prose { font-size: 17.5px; line-height: 1.72; }
  .prose .lead { font-size: 19px; padding-left: 16px; }
  .prose h2 { font-size: 26px; scroll-margin-top: 110px; }
  .prose h3 { font-size: 21px; scroll-margin-top: 110px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
  .author-box .btn-row { justify-content: center; }
  .more-posts { padding: 40px 0 44px; }
  .more-head h2 { font-size: 25px; }
  .blog-cta { padding: 40px 0; }
  .blog-cta h2 { font-size: 26px; }
  .blog-cta .btn-row { display: grid; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card-img img, .read-more span { transition: none; }
  .post-card:hover { transform: none; }
  .post-card:hover .post-card-img img { transform: none; }
}
