/*--------------------------------------------------------------
# Blog v2 — list + article
--------------------------------------------------------------*/
/* list */
.dw-bl { padding: 100px 0 120px; background: var(--DW-light); }
.dw-bl__featured { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: 30px; overflow: hidden; background: #fff; color: inherit !important; box-shadow: 0 20px 60px rgba(var(--DW-black-rgb), .08); transition: box-shadow .4s ease, transform .4s ease; }
.dw-bl__featured:hover { box-shadow: 0 30px 80px rgba(var(--DW-black-rgb), .14); transform: translateY(-4px); }
.dw-bl__featured-media { position: relative; min-height: 380px; overflow: hidden; background: var(--DW-border); }
.dw-bl__featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.dw-bl__featured:hover .dw-bl__featured-media img { transform: scale(1.05); }
.dw-bl__featured-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.dw-bl__badge { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: rgba(var(--DW-base-rgb), .08); color: var(--DW-base); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.dw-bl__featured-body h2 { font-family: var(--DW-font-two); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--DW-black); margin: 6px 0 16px; }
.dw-bl__featured-body p { color: var(--DW-gray); font-size: 17px; line-height: 1.7; margin: 0 0 26px; }
.dw-bl__featured-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; color: var(--DW-muted); font-size: 15px; }
.dw-bl__go { width: 54px; height: 54px; border-radius: 50%; background: var(--DW-green); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .4s ease; }
.dw-bl__featured:hover .dw-bl__go { transform: rotate(-45deg); }
.dw-bl__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 70px 0 30px; }
.dw-bl__bar h3 { font-family: var(--DW-font-two); font-weight: 700; font-size: 30px; color: var(--DW-black); margin: 0; }
.dw-bl__filters button { border-color: var(--DW-border); background: #fff; color: var(--DW-gray); }
.dw-bl__filters button:hover { border-color: var(--DW-base); color: var(--DW-base); }
.dw-bl__filters button.is-active { background: var(--DW-base); border-color: var(--DW-base); color: #fff; }

/* article */
.dw-bd-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 1000; pointer-events: none; }
.dw-bd-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--DW-base), var(--DW-green)); transform: scaleX(0); transform-origin: 0 50%; }
.dw-bd-hero { position: relative; padding: 170px 0 70px; background: #fff; overflow: hidden; }
.dw-bd-hero__bg { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 85% 10%, rgba(var(--DW-base-rgb), .09) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(var(--DW-green-rgb), .12) 0%, transparent 35%), linear-gradient(rgba(var(--DW-black-rgb), .035) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--DW-black-rgb), .035) 1px, transparent 1px); background-size: auto, auto, 56px 56px, 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.dw-bd-hero .container { position: relative; }
.dw-bd-hero__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.dw-bd-crumbs { list-style: none; padding: 0; margin: 0 0 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--DW-muted); }
.dw-bd-crumbs a { color: var(--DW-gray); }
.dw-bd-crumbs a:hover { color: var(--DW-base); }
.dw-bd-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--DW-border); }
.dw-bd-pill { display: inline-block; padding: 7px 16px; border-radius: 999px; background: rgba(var(--DW-green-rgb), .14); color: #4f8a55; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.dw-bd-hero h1 { font-family: var(--DW-font-two); font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.025em; color: var(--DW-black); margin: 0 0 18px; }
.dw-bd-hero__lead { font-size: 20px; line-height: 1.6; color: var(--DW-gray); margin: 0 auto 26px; max-width: 720px; }
.dw-bd-meta { display: inline-flex; align-items: center; gap: 12px; text-align: left; padding: 8px 20px 8px 8px; border-radius: 999px; border: 1px solid var(--DW-border); background: #fff; }
.dw-bd-meta__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--DW-base); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--DW-font-two); font-weight: 700; font-size: 18px; }
.dw-bd-meta strong { display: block; font-family: var(--DW-font-two); font-weight: 600; color: var(--DW-black); font-size: 16px; line-height: 1.2; }
.dw-bd-meta span { font-size: 14px; color: var(--DW-muted); }
.dw-bd-cover { margin: 0 auto; max-width: 1100px; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(var(--DW-black-rgb), .14); aspect-ratio: 16 / 8; background: var(--DW-light); }
.dw-bd-cover img { width: 100%; height: 100%; object-fit: cover; }

.dw-bd-body { padding: 70px 0 90px; }
.dw-bd-layout { display: grid; grid-template-columns: 60px minmax(0, 1fr) 300px; gap: 50px; align-items: start; }
.dw-bd-share { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dw-bd-share span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--DW-muted); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }
.dw-bd-share a, .dw-bd-share button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--DW-border); background: #fff; color: var(--DW-black) !important; display: flex; align-items: center; justify-content: center; transition: all .25s ease; }
.dw-bd-share a:hover, .dw-bd-share button:hover, .dw-bd-share button.is-done { background: var(--DW-base); border-color: var(--DW-base); color: #fff !important; transform: translateY(-2px); }

.dw-bd-prose { font-size: 19px; line-height: 1.85; color: #3d4757; overflow-wrap: break-word; }
.dw-bd-prose > *:first-child { margin-top: 0; }
.dw-bd-prose p { margin: 0 0 24px; }
.dw-bd-prose h1, .dw-bd-prose h2 { font-family: var(--DW-font-two); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--DW-black); margin: 50px 0 18px; scroll-margin-top: 110px; }
.dw-bd-prose h3, .dw-bd-prose h4 { font-family: var(--DW-font-two); font-weight: 600; font-size: 23px; line-height: 1.3; color: var(--DW-black); margin: 36px 0 14px; scroll-margin-top: 110px; }
.dw-bd-prose strong, .dw-bd-prose b { color: var(--DW-black); }
.dw-bd-prose a { color: var(--DW-base); text-decoration: underline; text-underline-offset: 3px; }
.dw-bd-prose ul, .dw-bd-prose ol { margin: 0 0 26px; padding-left: 0; list-style: none; counter-reset: dwli; }
.dw-bd-prose li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.dw-bd-prose ul > li::before { content: ""; position: absolute; left: 8px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--DW-green); box-shadow: 0 0 0 4px rgba(var(--DW-green-rgb), .2); }
.dw-bd-prose ol > li { counter-increment: dwli; }
.dw-bd-prose ol > li::before { content: counter(dwli); position: absolute; left: 0; top: .25em; width: 26px; height: 26px; border-radius: 50%; background: var(--DW-base); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.dw-bd-prose blockquote { margin: 36px 0; padding: 28px 32px; border-radius: 0 20px 20px 0; border-left: 4px solid var(--DW-green); background: var(--DW-light); font-family: var(--DW-font-two); font-size: 22px; line-height: 1.5; color: var(--DW-black); }
.dw-bd-prose img, .dw-bd-prose figure img { max-width: 100%; height: auto; border-radius: 18px; margin: 10px 0; }
.dw-bd-prose figure { margin: 30px 0; }
.dw-bd-prose figcaption { font-size: 14px; color: var(--DW-muted); text-align: center; }
.dw-bd-prose table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 16px; }
.dw-bd-prose th, .dw-bd-prose td { border: 1px solid var(--DW-border); padding: 10px 14px; }
.dw-bd-prose th { background: var(--DW-light); color: var(--DW-black); }
.dw-bd-prose hr { border: 0; height: 1px; background: var(--DW-border); margin: 40px 0; }

.dw-bd-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--DW-border); }
.dw-bd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-bd-tags a, .dw-bd-tags span { padding: 7px 14px; border-radius: 999px; background: var(--DW-light); color: var(--DW-gray) !important; font-size: 14px; font-weight: 600; }
.dw-bd-tags a:hover { background: var(--DW-base); color: #fff !important; }
.dw-bd-copy { border: 1px solid var(--DW-border); background: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 600; color: var(--DW-black); transition: all .25s ease; }
.dw-bd-copy:hover, .dw-bd-copy.is-done { background: var(--DW-green); border-color: var(--DW-green); color: #fff; }
.dw-bd-author { display: flex; gap: 20px; align-items: center; margin-top: 34px; padding: 28px; border-radius: 24px; background: var(--DW-light); }
.dw-bd-author img { width: 76px; height: 76px; border-radius: 50%; background: #fff; padding: 14px; flex: 0 0 auto; }
.dw-bd-author strong { display: block; font-family: var(--DW-font-two); font-weight: 700; font-size: 20px; color: var(--DW-black); }
.dw-bd-author p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--DW-gray); }

.dw-bd-side { position: sticky; top: 120px; display: grid; gap: 22px; }
.dw-bd-toc { padding: 26px; border-radius: 22px; border: 1px solid var(--DW-border); }
.dw-bd-toc h4 { font-family: var(--DW-font-two); font-weight: 700; font-size: 17px; color: var(--DW-black); margin: 0 0 14px; }
.dw-bd-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.dw-bd-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--DW-border); font-size: 15px; line-height: 1.4; color: var(--DW-gray); transition: all .2s ease; }
.dw-bd-toc li.is-sub a { padding-left: 26px; font-size: 14px; }
.dw-bd-toc a:hover { color: var(--DW-base); }
.dw-bd-toc a.is-active { color: var(--DW-base); border-left-color: var(--DW-base); font-weight: 600; }
.dw-bd-ctacard { position: relative; padding: 30px 26px; border-radius: 22px; background: linear-gradient(150deg, #184787 0%, #0b1a33 100%); color: rgba(255,255,255,.75); overflow: hidden; }
.dw-bd-ctacard img { position: absolute; right: -24px; top: -24px; width: 110px; opacity: .14; filter: brightness(0) invert(1); animation: dw-rot 20s linear infinite; }
.dw-bd-ctacard h4 { position: relative; color: #fff; font-family: var(--DW-font-two); font-weight: 700; font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.dw-bd-ctacard p { position: relative; font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.dw-bd-ctacard a { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; border-radius: 999px; background: var(--DW-green); color: #fff !important; font-weight: 700; font-family: var(--DW-font-two); transition: background .25s ease, color .25s ease; }
.dw-bd-ctacard a:hover { background: #fff; color: var(--DW-black) !important; }

.dw-bd-pn { padding: 0 0 90px; }
.dw-bd-pn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dw-bd-pn__item { display: block; padding: 28px 30px; border-radius: 22px; border: 1px solid var(--DW-border); color: inherit !important; transition: all .3s ease; }
.dw-bd-pn__item:hover { border-color: var(--DW-base); box-shadow: 0 18px 44px rgba(var(--DW-black-rgb), .08); transform: translateY(-3px); }
.dw-bd-pn__item span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--DW-green); margin-bottom: 8px; }
.dw-bd-pn__item strong { font-family: var(--DW-font-two); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--DW-black); }
.dw-bd-pn__item--next { text-align: right; }

@media (max-width: 1199px) {
  .dw-bd-layout { grid-template-columns: 56px minmax(0, 1fr); }
  .dw-bd-side { grid-column: 2; position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .dw-bl__featured { grid-template-columns: 1fr; }
  .dw-bl__featured-media { min-height: 0; aspect-ratio: 16 / 9; }
  .dw-bl__featured-body { padding: 32px; }
  .dw-bd-hero { padding: 140px 0 50px; }
}
@media (max-width: 767px) {
  .dw-bl { padding: 70px 0 90px; }
  .dw-bd-layout { grid-template-columns: 1fr; gap: 30px; }
  .dw-bd-share { position: static; flex-direction: row; justify-content: center; order: 2; }
  .dw-bd-share span { writing-mode: horizontal-tb; transform: none; margin: 0 6px 0 0; }
  .dw-bd-side { grid-column: auto; grid-template-columns: 1fr; order: 3; }
  .dw-bd-toc { display: none; }
  .dw-bd-prose { font-size: 17px; }
  .dw-bd-cover { border-radius: 20px; aspect-ratio: 16 / 10; }
  .dw-bd-pn__grid { grid-template-columns: 1fr; }
  .dw-bd-pn__item--next { text-align: left; }
  .dw-bd-author { flex-direction: column; text-align: center; }
}
