/* ==========================================================================
   Blog pages: /posts (listing) and /post/{slug} (article).
   LOADED BY: resources/views/frontend/pages/posts.blade.php and post.blade.php
              via @section('css'), with the file-time cache buster (SiteAssets::assetVersion).

   Hand-written and SCOPED under .cwb: the site loads Bootstrap 4 globally and
   Tailwind utilities do nothing in this app, so nothing here can leak out and
   nothing from the theme can restyle this page. No build step.
   ========================================================================== */

.cwb {
  --cwb-ink: #0e1a3b;
  --cwb-body: #36415f;
  --cwb-muted: #66718f;
  --cwb-line: #e4e9f5;
  --cwb-soft: #f4f7ff;
  --cwb-soft-2: #eef2ff;
  --cwb-card: #ffffff;
  --cwb-brand: var(--primary-500, #0a65cc);
  --cwb-brand-ink: #0b4fa3;
  --cwb-blue: #4285f4;
  --cwb-red: #ea4335;
  --cwb-yellow: #fbbc05;
  --cwb-green: #34a853;
  --cwb-radius: 22px;
  --cwb-shadow: 0 1px 2px rgba(14, 26, 59, .06), 0 10px 30px -12px rgba(14, 26, 59, .18);
  --cwb-shadow-lg: 0 2px 6px rgba(14, 26, 59, .08), 0 28px 60px -22px rgba(14, 26, 59, .35);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--cwb-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
.cwb *, .cwb *::before, .cwb *::after { box-sizing: border-box; }
:where(.cwb) :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; padding: 0; }
:where(.cwb) :where(ul, ol) { list-style: none; }
:where(.cwb) a { text-decoration: none; color: inherit; }
.cwb img, .cwb svg, .cwb video { max-width: 100%; }
.cwb img { display: block; }
:where(.cwb) button { font: inherit; }
.cwb .cw-ico { display: inline-block; flex: none; vertical-align: middle; }
.cwb :focus-visible { outline: 3px solid rgba(66, 133, 244, .55); outline-offset: 2px; border-radius: 6px; }
.cwb-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cwb-wrap--narrow { max-width: 860px; }
.cwb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- shared small parts --------------------------------------------------- */
.cwb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cwb-muted); }
.cwb-crumbs a { color: var(--cwb-brand); font-weight: 600; }
.cwb-crumbs a:hover { text-decoration: underline; }
.cwb-crumbs .cwb-sep { opacity: .5; }
.cwb-crumbs .cwb-here { background: #fff; border: 1px solid var(--cwb-line); border-radius: 999px; padding: 3px 12px; color: var(--cwb-ink); font-weight: 600; }
.cwb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cwb-brand); }
.cwb-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cwb-blue), var(--cwb-red), var(--cwb-yellow), var(--cwb-green)); }
.cwb-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; background: var(--cwb-soft-2); color: var(--cwb-brand-ink); }
.cwb-pill--video { background: rgba(14, 26, 59, .78); color: #fff; backdrop-filter: blur(6px); }
.cwb-pill--glass { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.cwb-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--cwb-soft-2); flex: none; }
.cwb-avatar--ini { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; line-height: 1; background: linear-gradient(135deg, var(--cwb-blue), #6d28d9); flex: none; text-transform: uppercase; }
.cwb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--cwb-muted); }
.cwb-meta__who { display: inline-flex; align-items: center; gap: 9px; color: var(--cwb-ink); font-weight: 600; }
.cwb-meta span.cwb-m { display: inline-flex; align-items: center; gap: 6px; }
.cwb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 15px; line-height: 1; padding: 15px 26px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
.cwb-btn:hover { transform: translateY(-2px); }
.cwb-btn--primary { background: var(--cwb-brand); color: #fff; box-shadow: 0 12px 24px -10px var(--cwb-brand); }
.cwb-btn--primary:hover { color: #fff; box-shadow: 0 16px 28px -10px var(--cwb-brand); }
.cwb-btn--light { background: #fff; color: var(--cwb-ink); }
.cwb-btn--light:hover { color: var(--cwb-ink); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
.cwb-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.cwb-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ==========================================================================
   LISTING
   ========================================================================== */
.cwb-hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
  radial-gradient(900px 360px at 85% -10%, rgba(66, 133, 244, .22), transparent 60%),
  radial-gradient(700px 320px at 0% 110%, rgba(167, 139, 250, .25), transparent 60%),
  linear-gradient(180deg, #eef2ff 0%, #f7f9ff 70%, #fff 100%); }
.cwb-hero::after { content: ""; position: absolute; right: -60px; top: 40px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(66, 133, 244, .08); }
.cwb-hero .cwb-wrap { position: relative; z-index: 1; }
.cwb-hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; color: var(--cwb-ink); margin-top: 18px; max-width: 880px; }
.cwb-hero .cwb-lead { font-size: clamp(17px, 2vw, 20px); color: var(--cwb-body); max-width: 700px; margin-top: 18px; }
.cwb-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cwb-hero__stats span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--cwb-ink); background: #fff; border: 1px solid var(--cwb-line); padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 16px -10px rgba(14, 26, 59, .25); }
.cwb-hero__stats .cw-ico { color: var(--cwb-brand); }

/* featured: text panel on the left, the article's picture on the right */
.cwb-featured-wrap { margin-top: -36px; position: relative; z-index: 2; }
.cwb-featured { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 460px; border-radius: 30px; overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--cwb-shadow-lg);
  background: radial-gradient(520px 320px at 0% 0%, rgba(66, 133, 244, .45), transparent 60%), linear-gradient(135deg, #101c55 0%, #2d2aa0 100%); }
.cwb-featured__body { position: relative; z-index: 1; padding: 50px 46px 46px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cwb-featured__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cwb-featured__title { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.13; letter-spacing: -.022em; font-weight: 800; color: #fff; }
.cwb-featured__text { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .86); max-width: 560px; }
.cwb-featured .cwb-meta { color: rgba(255, 255, 255, .8); margin-top: 22px; }
.cwb-featured .cwb-meta__who { color: #fff; }
.cwb-featured__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; background: #fff; color: var(--cwb-ink); padding: 14px 24px; border-radius: 14px; transition: transform .2s, box-shadow .2s; }
.cwb-featured:hover .cwb-featured__go { transform: translateX(4px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); }
.cwb-featured__media { position: relative; min-height: 100%; background: #1a2c6b; }
.cwb-featured__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 30, 110, .55) 0%, rgba(25, 30, 110, 0) 28%); pointer-events: none; }
.cwb-featured__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cwb-featured:hover .cwb-featured__img { transform: scale(1.04); }
.cwb-play { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--cwb-brand); display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .5); transition: transform .25s; z-index: 2; }
.cwb-play .cw-ico { margin-left: 4px; }
.cwb-featured .cwb-play { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cwb-featured:hover .cwb-play { transform: translate(-50%, -50%) scale(1.08); }
/* toolbar */
.cwb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; margin: 64px 0 28px; }
.cwb-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cwb-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--cwb-body); background: var(--cwb-soft); border: 1px solid transparent; transition: all .18s ease; }
.cwb-tab small { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--cwb-muted); }
.cwb-tab:hover { background: var(--cwb-soft-2); color: var(--cwb-ink); }
.cwb-tab.is-active { background: var(--cwb-ink); color: #fff; }
.cwb-tab.is-active small { background: rgba(255, 255, 255, .2); color: #fff; }
.cwb-search { position: relative; flex: 1 1 280px; max-width: 360px; }
.cwb-search input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--cwb-line); background: #fff; padding: 0 16px 0 46px; font: inherit; font-size: 15px; color: var(--cwb-ink); box-shadow: none; transition: border-color .18s, box-shadow .18s; }
.cwb-search input:focus { outline: 0; border-color: var(--cwb-brand); box-shadow: 0 0 0 4px rgba(66, 133, 244, .16); }
.cwb-search .cw-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--cwb-muted); z-index: 2; pointer-events: none; }
.cwb-found { font-size: 14px; color: var(--cwb-muted); margin: -10px 0 22px; }
.cwb-found a { color: var(--cwb-brand); font-weight: 700; margin-left: 8px; }

/* grid + cards */
.cwb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; }
.cwb-card { display: flex; flex-direction: column; background: var(--cwb-card); border: 1px solid var(--cwb-line); border-radius: var(--cwb-radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cwb-card:hover { transform: translateY(-6px); box-shadow: var(--cwb-shadow-lg); border-color: transparent; }
.cwb-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cwb-soft-2); }
.cwb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cwb-card:hover .cwb-card__media img { transform: scale(1.06); }
.cwb-card__media .cwb-play { width: 56px; height: 56px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cwb-card__media .cwb-play .cw-ico { width: 22px; height: 22px; }
.cwb-card:hover .cwb-play { transform: translate(-50%, -50%) scale(1.1); }
.cwb-card__media .cwb-pill { position: absolute; left: 14px; bottom: 14px; }
.cwb-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.cwb-card__cat { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cwb-brand); }
.cwb-card__title { font-size: 21px; line-height: 1.28; letter-spacing: -.012em; font-weight: 800; color: var(--cwb-ink); }
.cwb-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.cwb-card:hover .cwb-card__title a { background-size: 100% 2px; }
.cwb-card__text { font-size: 15.5px; color: var(--cwb-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cwb-card .cwb-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--cwb-line); font-size: 13px; }
.cwb-card .cwb-avatar { width: 28px; height: 28px; }

/* pagination */
.cwb-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 54px 0 0; }
.cwb-pager a, .cwb-pager span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--cwb-line); font-weight: 700; font-size: 14.5px; color: var(--cwb-ink); background: #fff; }
.cwb-pager a:hover { border-color: var(--cwb-brand); color: var(--cwb-brand); }
.cwb-pager .is-current { background: var(--cwb-ink); border-color: var(--cwb-ink); color: #fff; }
.cwb-pager .is-off { opacity: .4; }
.cwb-pager .is-gap { border: 0; background: none; min-width: 24px; padding: 0; }

/* empty */
.cwb-empty { text-align: center; padding: 70px 20px; border: 2px dashed var(--cwb-line); border-radius: var(--cwb-radius); background: var(--cwb-soft); }
.cwb-empty .cw-ico { width: 44px; height: 44px; color: var(--cwb-brand); }
.cwb-empty h2 { font-size: 24px; color: var(--cwb-ink); margin-top: 14px; }
.cwb-empty p { margin-top: 8px; }
.cwb-empty .cwb-btn { margin-top: 20px; }

/* call to action band */
.cwb-cta { margin: 88px 0 0; padding: 0 0 90px; }
.cwb-cta__box { position: relative; overflow: hidden; border-radius: 32px; padding: 56px 56px; color: #fff; background:
  radial-gradient(500px 260px at 100% 0%, rgba(251, 188, 5, .28), transparent 65%),
  radial-gradient(520px 300px at 0% 100%, rgba(66, 133, 244, .5), transparent 60%),
  linear-gradient(135deg, #14246b 0%, #3a2aa6 100%); box-shadow: var(--cwb-shadow-lg); display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between; }
.cwb-cta__box h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: #fff; max-width: 620px; }
.cwb-cta__box p { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 17px; max-width: 560px; }
.cwb-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.cwb-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 2000; background: linear-gradient(90deg, var(--cwb-blue), var(--cwb-red), var(--cwb-yellow), var(--cwb-green)); transition: width .08s linear; }
.cwb-ahero { padding: 44px 0 34px; background: linear-gradient(180deg, #eef2ff 0%, #fff 100%); }
.cwb-ahero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; color: var(--cwb-ink); margin-top: 18px; }
.cwb-ahero .cwb-lead { font-size: clamp(17px, 1.9vw, 21px); color: var(--cwb-body); margin-top: 18px; max-width: 780px; }
.cwb-ahero h1 { max-width: 920px; }
.cwb-ahero .cwb-meta { margin-top: 24px; }
.cwb-ahero__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }

.cwb-media { margin-top: 8px; }
.cwb-media__frame--photo { aspect-ratio: 2 / 1; }
.cwb-media__frame { position: relative; border-radius: 28px; overflow: hidden; background: #0b1230; box-shadow: var(--cwb-shadow-lg); aspect-ratio: 16 / 9; }
.cwb-media__frame img, .cwb-media__frame video, .cwb-media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.cwb-media__frame video { object-fit: contain; background: #000; }
.cwb-media__poster { cursor: pointer; border: 0; padding: 0; width: 100%; background: transparent; display: block; }
.cwb-media__frame .cwb-play { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; }
.cwb-media__poster:hover .cwb-play { transform: translate(-50%, -50%) scale(1.08); }
.cwb-media__cap { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--cwb-muted); }

.cwb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 52px; align-items: start; }
.cwb-prose { font-size: 18.5px; line-height: 1.8; color: var(--cwb-body); min-width: 0; }
.cwb-prose > * + * { margin-top: 1.15em; }
.cwb-prose > p:first-of-type { font-size: 20.5px; color: var(--cwb-ink); line-height: 1.7; }
.cwb-prose h2 { margin-top: 2.1em; font-size: 29px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--cwb-ink); padding-left: 18px; position: relative; scroll-margin-top: 110px; }
.cwb-prose h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 5px; background: linear-gradient(180deg, var(--cwb-blue), var(--cwb-green)); }
.cwb-prose h3 { margin-top: 1.8em; font-size: 22px; font-weight: 800; color: var(--cwb-ink); scroll-margin-top: 110px; }
.cwb-prose a { color: var(--cwb-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cwb-prose strong { color: var(--cwb-ink); }
.cwb-prose ul { display: grid; gap: 12px; margin-top: 1em; }
.cwb-prose ul li { position: relative; padding: 16px 18px 16px 58px; border-radius: 16px; background: var(--cwb-soft); border: 1px solid var(--cwb-line); font-size: 17.5px; line-height: 1.6; }
.cwb-prose ul li::before { content: ""; position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 50%; background: var(--cwb-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.cwb-prose ol { counter-reset: cwb; display: grid; gap: 12px; }
.cwb-prose ol li { counter-increment: cwb; position: relative; padding: 14px 18px 14px 58px; border-radius: 16px; background: var(--cwb-soft); border: 1px solid var(--cwb-line); }
.cwb-prose ol li::before { content: counter(cwb); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--cwb-brand); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.cwb-prose blockquote { margin-left: 0; margin-right: 0; padding: 22px 26px; border-radius: 18px; background: var(--cwb-soft-2); border-left: 5px solid var(--cwb-brand); font-size: 20px; color: var(--cwb-ink); font-weight: 500; }
.cwb-prose img { height: auto; border-radius: 18px; margin-left: auto; margin-right: auto; }
.cwb-prose figure figcaption { text-align: center; font-size: 14px; color: var(--cwb-muted); margin-top: 8px; }
.cwb-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.cwb-prose th, .cwb-prose td { border: 1px solid var(--cwb-line); padding: 10px 14px; text-align: left; }
.cwb-prose th { background: var(--cwb-soft); color: var(--cwb-ink); }
.cwb-prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; }

.cwb-side { position: sticky; top: 104px; display: grid; gap: 18px; }
.cwb-box { border: 1px solid var(--cwb-line); border-radius: 20px; padding: 22px; background: #fff; }
.cwb-box h2 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cwb-muted); margin-bottom: 14px; }
.cwb-toc { display: grid; gap: 2px; }
.cwb-toc a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--cwb-body); border-left: 3px solid transparent; }
.cwb-toc a:hover { background: var(--cwb-soft); color: var(--cwb-ink); }
.cwb-toc a.is-on { background: var(--cwb-soft-2); color: var(--cwb-brand-ink); border-left-color: var(--cwb-brand); }
.cwb-share { display: flex; flex-wrap: wrap; gap: 10px; }
.cwb-share a, .cwb-share button { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cwb-soft); color: var(--cwb-ink); border: 0; cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.cwb-share a:hover, .cwb-share button:hover { background: var(--cwb-brand); color: #fff; transform: translateY(-2px); }
.cwb-share svg.fill { fill: currentColor; stroke: none; }
.cwb-share .is-done { background: var(--cwb-green); color: #fff; }
.cwb-side-cta { background: linear-gradient(135deg, #14246b, #3a2aa6); color: #fff; border: 0; }
.cwb-side-cta h2 { color: rgba(255, 255, 255, .7); }
.cwb-side-cta p { font-size: 16px; color: #fff; font-weight: 600; line-height: 1.45; }
.cwb-side-cta .cwb-btn { margin-top: 16px; width: 100%; padding: 13px 18px; font-size: 14.5px; }

/* after the article */
.cwb-after { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cwb-after > * { max-width: calc(100% - 356px); }
.cwb-gallery { margin-top: 56px; }
.cwb-gallery h2, .cwb-section-title { font-size: 26px; font-weight: 800; color: var(--cwb-ink); letter-spacing: -.02em; }
.cwb-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.cwb-gallery__grid button { padding: 0; border: 0; background: var(--cwb-soft-2); border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.cwb-gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cwb-gallery__grid button:hover img { transform: scale(1.06); }
.cwb-gallery__grid button:first-child:nth-last-child(odd) { }
.cwb-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(6, 10, 30, .92); display: none; align-items: center; justify-content: center; padding: 30px; }
.cwb-lightbox.is-open { display: flex; }
.cwb-lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.cwb-lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cwb-lightbox button:hover { background: rgba(255, 255, 255, .28); }
.cwb-lightbox .lb-x { top: 22px; right: 22px; }
.cwb-lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.cwb-lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

.cwb-notice { margin-top: 56px; border-radius: 22px; background: #fff8e6; border: 1px solid #f6e1a2; padding: 26px 28px; }
.cwb-notice h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: #7a5200; }
.cwb-notice ul { display: grid; gap: 10px; margin-top: 14px; }
.cwb-notice li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.6; color: #5b4a1c; }
.cwb-notice li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #e0a100; }
.cwb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cwb-tags span { font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--cwb-soft); color: var(--cwb-brand-ink); }
.cwb-author { display: flex; gap: 18px; align-items: center; margin-top: 34px; padding: 22px 24px; border-radius: 22px; background: var(--cwb-soft); border: 1px solid var(--cwb-line); }
.cwb-author .cwb-avatar { width: 64px; height: 64px; }
.cwb-author strong { display: block; color: var(--cwb-ink); font-size: 17px; }
.cwb-author div span { font-size: 14.5px; color: var(--cwb-muted); }
.cwb-endcta { margin-top: 44px; border-radius: 26px; padding: 34px 36px; color: #fff; background: linear-gradient(135deg, #14246b, #3a2aa6); display: flex; flex-wrap: wrap; gap: 20px 30px; align-items: center; justify-content: space-between; }
.cwb-endcta h2 { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; max-width: 440px; }
.cwb-related { margin-top: 84px; padding: 70px 0 10px; background: var(--cwb-soft); }
.cwb-related .cwb-grid { margin-top: 26px; }

/* comments */
.cwb-comments { margin-top: 64px; }
.cwb-comments textarea { width: 100%; border-radius: 16px; border: 1px solid var(--cwb-line); padding: 16px 18px; font: inherit; font-size: 16px; min-height: 120px; resize: vertical; color: var(--cwb-ink); background: #fff; }
.cwb-comments textarea:focus { outline: 0; border-color: var(--cwb-brand); box-shadow: 0 0 0 4px rgba(66, 133, 244, .16); }
.cwb-comments .cwb-btn { margin-top: 12px; padding: 13px 22px; font-size: 14.5px; }
.cwb-comment-list { display: grid; gap: 22px; margin-top: 34px; }
.cwb-comment { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.cwb-comment .cwb-avatar { width: 44px; height: 44px; }
.cwb-comment__head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.cwb-comment__head strong { color: var(--cwb-ink); }
.cwb-comment__head span { font-size: 13px; color: var(--cwb-muted); }
.cwb-comment__body { margin-top: 4px; font-size: 16px; }
.cwb-comment__reply { margin-top: 6px; background: none; border: 0; color: var(--cwb-brand); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; }
.cwb-comment form { margin-top: 10px; display: none; }
.cwb-comment form.is-open { display: block; }
.cwb-comment form textarea { min-height: 80px; }
.cwb-replies { grid-column: 2; display: grid; gap: 18px; margin-top: 6px; padding-left: 16px; border-left: 2px solid var(--cwb-line); }
.cwb-muted { color: var(--cwb-muted); }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .cwb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cwb-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .cwb-after > * { max-width: none; }
  .cwb-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cwb-toc-box { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cwb-wrap, .cwb-after { padding: 0 18px; }
  .cwb-hero { padding: 36px 0 60px; }
  .cwb-featured { grid-template-columns: minmax(0, 1fr); border-radius: 24px; min-height: 0; }
  .cwb-featured__media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .cwb-featured__media::after { background: linear-gradient(0deg, rgba(25, 30, 110, .55) 0%, rgba(25, 30, 110, 0) 30%); }
  .cwb-featured__body { padding: 26px 22px 28px; }
  .cwb-featured__text { font-size: 15.5px; }
  .cwb-featured .cwb-play { width: 62px; height: 62px; }
  .cwb-toolbar { margin-top: 46px; }
  .cwb-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px 6px; scrollbar-width: none; width: calc(100% + 36px); }
  .cwb-tabs::-webkit-scrollbar { display: none; }
  .cwb-tab { white-space: nowrap; }
  .cwb-search { max-width: none; flex-basis: 100%; }
  .cwb-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cwb-cta__box { padding: 36px 26px; border-radius: 26px; }
  .cwb-prose { font-size: 17.5px; }
  .cwb-prose > p:first-of-type { font-size: 19px; }
  .cwb-prose h2 { font-size: 25px; }
  .cwb-prose ul li { padding: 14px 14px 14px 54px; font-size: 16.5px; }
  .cwb-side { grid-template-columns: minmax(0, 1fr); }
  .cwb-media__frame { border-radius: 20px; }
  .cwb-media__frame--photo { aspect-ratio: 16 / 10; }
  .cwb-media__frame .cwb-play { width: 70px; height: 70px; }
  .cwb-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .cwb-endcta { padding: 26px 22px; }
  .cwb-author { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cwb *, .cwb *::before, .cwb *::after { transition: none !important; animation: none !important; }
}

/* ---- policy pages (Advertising Guideline) --------------------------------- */
.cwb-pol-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.cwb-pol-links a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--cwb-soft); border: 1px solid var(--cwb-line); font-weight: 700; color: var(--cwb-ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.cwb-pol-links a span { flex: 1; }
.cwb-pol-links a .cw-ico:first-child { color: var(--cwb-brand); }
.cwb-pol-links a:hover { transform: translateY(-3px); box-shadow: var(--cwb-shadow); border-color: transparent; }
.cwb-policy .cwb-prose > h2:first-child { margin-top: 0; }
