/* ================= Blog ================= */
/* page hero */
.phero { background: linear-gradient(110deg, var(--primary-dark), var(--primary)); color: #fff; padding: 46px 0 50px; }
.phero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 10px 0 8px; max-width: 900px; }
.phero p { margin: 0; color: #e7dcee; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #d8c9e2; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .7; }
.crumbs a:hover { color: var(--accent); }
.crumbs li[aria-current] { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.phero--post .chip { margin-top: 14px; }

/* chips & meta */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; text-transform: capitalize; padding: 4px 12px; border-radius: 30px; background: var(--bg-alt); color: var(--primary); border: 1px solid var(--line); transition: .2s; }
.chips .chip { font-size: 14px; padding: 8px 18px; background: #fff; }
.chip:hover, .chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip--light { background: var(--accent); color: #fff; border-color: var(--accent); }
.bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.bmeta span + span::before { content: "•"; margin-right: 14px; color: var(--accent); }
.bmeta--light { color: #D5DBEA; margin: 0; }

/* featured post */
.bfeat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 44px; }
.bfeat__img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.bfeat__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bfeat__body h2 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); }
.bfeat__body h2 a:hover { color: var(--accent-dark); }
.bfeat__body p { color: var(--muted); }

/* layout */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.bgrid--3 { grid-template-columns: repeat(3, 1fr); }

/* card */
.bcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .3s; }
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bcard__img { display: block; overflow: hidden; aspect-ratio: 16/10; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bcard:hover .bcard__img img { transform: scale(1.06); }
.bcard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bcard__body h2 { font-size: 1.1rem; margin-bottom: 8px; }
.bcard__body h2 a:hover { color: var(--accent-dark); }
.bcard__body p { color: var(--muted); font-size: 14px; }
.more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--primary); }
.more:hover { color: var(--accent-dark); }

/* sidebar */
.sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.widget h3 { font-size: 1.05rem; padding-bottom: 10px; border-bottom: 2px solid var(--bg-alt); position: relative; }
.widget h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--accent); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget--cta { background: linear-gradient(150deg, var(--primary-dark), var(--primary)); color: #fff; border: 0; }
.widget--cta h3 { color: #fff; border-color: rgba(255,255,255,.15); }
.widget--cta p { font-size: 14px; color: #D5DBEA; }
.widget--cta .btn + .btn { margin-top: 10px; }
.wcats li a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; text-transform: capitalize; }
.wcats li:last-child a { border-bottom: 0; }
.wcats li a:hover { color: var(--primary); padding-left: 4px; }
.wcats span { background: var(--bg-alt); color: var(--primary); font-size: 12px; border-radius: 20px; padding: 0 9px; }
.wrecent li + li { margin-top: 14px; }
.wrecent a { display: flex; gap: 12px; align-items: center; }
.wrecent img { width: 70px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.wrecent strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.wrecent a:hover strong { color: var(--primary); }
.wrecent small { color: var(--muted); font-size: 12px; }

/* single post */
.section--post { padding-top: 50px; }
.post { min-width: 0; }
.post__feat { width: 100%; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 28px; aspect-ratio: 16/9; object-fit: cover; }
.toc { background: var(--bg-alt); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 22px; margin-bottom: 30px; }
.toc summary { font-weight: 700; cursor: pointer; color: var(--primary-dark); }
.toc ol { margin: 12px 0 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 14px; }
.toc a:hover { color: var(--accent-dark); }
.prose { font-size: 16px; line-height: 1.85; }
.prose h2 { font-size: 1.55rem; margin: 1.8em 0 .6em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-dark); }
.prose img { border-radius: 10px; margin: 10px auto; height: auto; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--primary); background: var(--bg-alt); border-radius: 0 8px 8px 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; display: block; overflow-x: auto; }
.prose th { background: var(--primary); color: #fff; text-align: left; padding: 10px 14px; }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; }
.post__cta { margin: 40px 0 26px; background: linear-gradient(110deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: 12px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.post__cta h3 { color: #fff; margin-bottom: 4px; }
.post__cta p { margin: 0; color: #D5DBEA; }
.post__cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.share a, .share button { padding: 6px 14px; border-radius: 30px; background: var(--bg-alt); border: 0; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.share a:hover, .share button:hover { background: var(--primary); color: #fff; }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.pnav a { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; line-height: 1.4; }
.pnav a:hover { border-color: var(--primary); color: var(--primary); }
.pnav small { display: block; color: var(--accent-dark); font-weight: 500; margin-bottom: 4px; }
.pnav__next { text-align: right; }

@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
}
@media (max-width: 991px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .bfeat { grid-template-columns: 1fr; }
  .bfeat__img img { min-height: 0; aspect-ratio: 16/9; }
  .bfeat__body { padding: 26px; }
  .bgrid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .bgrid, .bgrid--3 { grid-template-columns: 1fr; }
  .pnav { grid-template-columns: 1fr; }
  .pnav__next { text-align: left; }
  .prose { font-size: 15px; }
  .phero { padding: 34px 0 38px; }
}
