/* Blog styles for pgicover.com/blog/
   Minimal extensions to the pgicover.com design system.
   Design tokens (colors, fonts, hero-bg, glass-blur, page-content)
   are defined per-page in the inline <style> block, matching the
   pgicover.com subpage template. This file ONLY adds blog-specific
   components that the rest of the site does not have.

   Do NOT redefine design tokens here. Do NOT reset body color or
   background. Theme toggling is handled by /theme-light.css plus
   the per-page [data-theme="light"] overrides. */

/* ============================================================
   BLOG SHELL (sits inside .page-content)
   ============================================================ */
.blog-shell {
  /* Pushes content below the fixed navbar; matches /what-is-pgi/ page-content inline override */
  padding-top: 6rem;
}

.blog-container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.blog-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
  padding: 0 8px;
}
.blog-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.blog-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}
/* Light-mode override applies only to article pages, where the breadcrumb
   sits inside a light glass surface. The hub breadcrumb (inside
   .blog-breadcrumb-wrap) always sits over the dark hero and stays white. */
[data-theme="light"] .blog-breadcrumb,
[data-theme="light"] .blog-breadcrumb a {
  color: #525252;
}
[data-theme="light"] .blog-breadcrumb a:hover {
  color: #121d2b;
}
[data-theme="light"] .blog-breadcrumb-wrap .blog-breadcrumb,
[data-theme="light"] .blog-breadcrumb-wrap .blog-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}
[data-theme="light"] .blog-breadcrumb-wrap .blog-breadcrumb a:hover {
  color: #ffffff;
}

/* ============================================================
   GLASS ARTICLE CARD (wraps all long-form content)
   Uses the same glass-blur treatment as other pgicover.com
   subpages. Layout styles are inline in the markup (max-width,
   margin, padding, border, background) so this file does not
   duplicate tokens.
   ============================================================ */
.blog-card {
  /* Visual styles come from the inline style attribute in markup
     (matches _subpage-template.html). This class is only for
     hooks (theme toggle, light-mode overrides). */
}

/* ============================================================
   ARTICLE HEADER (title, meta, byline)
   ============================================================ */
.article-header {
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .article-header {
  border-bottom-color: #e5e5e5;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
}
[data-theme="light"] .article-meta {
  color: #737373;
}

.article-category {
  color: var(--hero-bg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #ffffff;
}
[data-theme="light"] .article-title {
  color: #121d2b;
}

.article-excerpt {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
[data-theme="light"] .article-excerpt {
  color: #525252;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}
.article-byline a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}
.article-byline a:hover {
  color: var(--hero-bg);
  text-decoration: underline;
}
.article-byline .byline-sep {
  opacity: 0.5;
}
[data-theme="light"] .article-byline {
  color: #737373;
}
[data-theme="light"] .article-byline a {
  color: #121d2b;
}

/* ============================================================
   ARTICLE HERO IMAGE
   ============================================================ */
figure.article-hero {
  margin: 24px 0 16px;
  padding: 0;
}
figure.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
figure.article-hero figcaption {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 8px;
  text-align: right;
}
[data-theme="light"] figure.article-hero figcaption {
  color: rgba(0, 0, 0, 0.55);
}

/* ============================================================
   ARTICLE BODY (long-form typography)
   ============================================================ */
.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 40px 0 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 32px 0 12px;
  line-height: 1.35;
}
[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3 {
  color: #121d2b;
}

.article-body p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.75;
}
.article-body ul,
.article-body ol {
  margin: 20px 0;
  padding-left: 24px;
}
.article-body li {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  line-height: 1.7;
}
.article-body strong {
  color: #ffffff;
  font-weight: 600;
}
.article-body em {
  color: rgba(255, 255, 255, 0.75);
}
.article-body a {
  color: #000000;
  text-decoration: underline;
}
[data-theme="light"] .article-body p,
[data-theme="light"] .article-body li {
  color: #334155;
}
[data-theme="light"] .article-body strong {
  color: #121d2b;
}
[data-theme="light"] .article-body em {
  color: #525252;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--hero-bg);
  border-radius: 0 8px 8px 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}
[data-theme="light"] .article-body blockquote {
  background: #f8fafc;
  color: #334155;
}

.article-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 40px 0;
  border: none;
}
[data-theme="light"] .article-divider {
  background: linear-gradient(to right, transparent, #e5e5e5, transparent);
}

/* ============================================================
   TL;DR CARD
   ============================================================ */
.article-tldr {
  margin: 0 0 36px;
  padding: 22px 26px;
  background: rgba(255, 188, 4, 0.08);
  border-top: 2px solid var(--hero-bg);
  border-bottom: 1px solid rgba(255, 188, 4, 0.25);
  border-radius: 12px;
}
.article-tldr__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--hero-bg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.article-tldr__text {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.7;
  margin: 0;
}
[data-theme="light"] .article-tldr {
  background: rgba(255, 188, 4, 0.08);
}
[data-theme="light"] .article-tldr__text {
  color: #121d2b;
}

/* ============================================================
   CALLOUT, STEP, GRID CARDS
   ============================================================ */
.callout-card {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  margin: 26px 0;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}
.callout-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 188, 4, 0.15);
  border-radius: 10px;
  font-size: 22px;
}
.callout-card__content { flex: 1; }
.callout-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}
.callout-card__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}
[data-theme="light"] .callout-card {
  background: #f8fafc;
  border-color: #e5e5e5;
}
[data-theme="light"] .callout-card__title { color: #121d2b; }
[data-theme="light"] .callout-card__text { color: #334155; }

.step-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 26px 0;
}
.step-card {
  display: flex;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  align-items: flex-start;
}
.step-card__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffbc04;
  color: #073B4C;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
}
.step-card__content { flex: 1; }
.step-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}
.step-card__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}
[data-theme="light"] .step-card {
  background: #f8fafc;
  border-color: #e5e5e5;
}
[data-theme="light"] .step-card__title { color: #121d2b; }
[data-theme="light"] .step-card__text { color: #334155; }

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.grid-item {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.grid-item__title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}
.grid-item__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}
[data-theme="light"] .grid-item {
  background: #f8fafc;
  border-color: #e5e5e5;
}
[data-theme="light"] .grid-item__title { color: #121d2b; }
[data-theme="light"] .grid-item__text { color: #334155; }

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
  margin: 26px 0;
  padding: 20px 22px;
  background: rgba(6, 214, 160, 0.08);
  border-top: 1px solid rgba(6, 214, 160, 0.3);
  border-bottom: 1px solid rgba(6, 214, 160, 0.3);
  border-radius: 12px;
}
.highlight-box__title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}
.highlight-box p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
[data-theme="light"] .highlight-box__title { color: #121d2b; }
[data-theme="light"] .highlight-box p { color: #334155; }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote {
  margin: 36px 0;
  padding: 28px;
  text-align: center;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  display: block;
  font-size: 60px;
  color: var(--hero-bg);
  line-height: 1;
  margin-bottom: 6px;
  font-family: Georgia, serif;
}
.pull-quote__text {
  font-size: 20px;
  color: #ffffff;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}
[data-theme="light"] .pull-quote__text {
  color: #121d2b;
}

/* ============================================================
   BOTTOM LINE CARD
   ============================================================ */
.bottom-line {
  margin: 36px 0 0;
  padding: 24px 26px;
  background: rgba(17, 138, 178, 0.10);
  border-top: 2px solid #118AB2;
  border-bottom: 1px solid rgba(17, 138, 178, 0.3);
  border-radius: 12px;
}
.bottom-line__label {
  font-size: 12px;
  font-weight: 700;
  color: #118AB2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.bottom-line__text {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.7;
  margin: 0;
}
.bottom-line__text + .bottom-line__text {
  margin-top: 10px;
}
[data-theme="light"] .bottom-line__text {
  color: #121d2b;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table {
  margin: 26px 0;
  overflow-x: auto;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
}
.comparison-table th {
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.comparison-table td {
  color: rgba(255, 255, 255, 0.9);
}
.comparison-table td strong { color: #ffffff; }
[data-theme="light"] .comparison-table th {
  background: #f8fafc;
  color: #121d2b;
  border-bottom-color: #e5e5e5;
}
[data-theme="light"] .comparison-table td {
  color: #334155;
  border-bottom-color: #e5e5e5;
}
[data-theme="light"] .comparison-table td strong { color: #121d2b; }

/* ============================================================
   ARTICLE FAQ (inline faqs inside article body)
   ============================================================ */
.article-faq { margin: 36px 0; }
.article-faq__title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}
[data-theme="light"] .article-faq__title { color: #121d2b; }

.article-faq .faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.article-faq .faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  font-family: inherit;
}
.article-faq .faq__icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.article-faq .faq__item.active .faq__icon {
  transform: rotate(180deg);
}
.article-faq .faq__answer {
  display: none;
  padding-bottom: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}
.article-faq .faq__item.active .faq__answer { display: block; }
[data-theme="light"] .article-faq .faq__item { border-bottom-color: #e5e5e5; }
[data-theme="light"] .article-faq .faq__question { color: #121d2b; }
[data-theme="light"] .article-faq .faq__icon { color: #525252; }
[data-theme="light"] .article-faq .faq__answer { color: #334155; }

/* ============================================================
   SOURCES
   ============================================================ */
.article-sources {
  margin: 40px 0 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}
.article-sources h2 {
  font-size: 20px !important;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px !important;
}
.article-sources p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}
.article-sources ul,
.article-sources ol {
  padding-left: 22px;
  margin: 0;
}
.article-sources li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  line-height: 1.6;
  word-break: break-word;
}
.article-sources a {
  color: var(--hero-bg);
  text-decoration: none;
}
.article-sources a:hover { text-decoration: underline; }
[data-theme="light"] .article-sources {
  background: #f8fafc;
  border-color: #e5e5e5;
}
[data-theme="light"] .article-sources h2 { color: #121d2b; }
[data-theme="light"] .article-sources p { color: #737373; }
[data-theme="light"] .article-sources li { color: #334155; }

/* ============================================================
   GUIDE PAGER
   ============================================================ */
.guide-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 36px 0 0;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.guide-pager__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s;
  background: none;
}
.guide-pager__btn:hover {
  border-color: var(--hero-bg);
  color: var(--hero-bg);
  transform: scale(1.1);
}
.guide-pager__count {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}
[data-theme="light"] .guide-pager { border-top-color: #e5e5e5; }
[data-theme="light"] .guide-pager__btn {
  border-color: #d4d4d4;
  color: #525252;
}
[data-theme="light"] .guide-pager__count { color: #525252; }

/* ============================================================
   HUB / CATEGORY LISTING
   ============================================================ */
.blog-hero {
  padding: 8px 0 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.blog-hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.15;
}
.blog-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}
[data-theme="light"] .blog-hero { border-bottom-color: #e5e5e5; }
[data-theme="light"] .blog-hero h1 { color: #121d2b; }
[data-theme="light"] .blog-hero p { color: #525252; }

.blog-section { margin-bottom: 48px; }
.blog-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}
.blog-section__intro {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 22px;
}
.blog-section__intro a {
  color: var(--hero-bg);
  text-decoration: underline;
}
[data-theme="light"] .blog-section h2 { color: #121d2b; }
[data-theme="light"] .blog-section__intro { color: #525252; }

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-list__item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.blog-list__item:last-child { border-bottom: none; }
.blog-list__title {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}
.blog-list__title a {
  color: #ffffff;
  text-decoration: none;
}
.blog-list__title a:hover {
  color: var(--hero-bg);
  text-decoration: underline;
}
.blog-list__excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 6px 0 8px;
}
.blog-list__date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .blog-list__item { border-bottom-color: #e5e5e5; }
[data-theme="light"] .blog-list__title a { color: #121d2b; }
[data-theme="light"] .blog-list__excerpt { color: #525252; }
[data-theme="light"] .blog-list__date { color: #737373; }

/* ============================================================
   HUB LAYOUT: BREADCRUMB WRAP
   Sits above the contained featured card at the top of /blog/.
   ============================================================ */
.blog-breadcrumb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 24px 20px;
}
.blog-breadcrumb-wrap .blog-breadcrumb {
  margin: 0;
  padding: 0;
}
.blog-page-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  padding: 0 8px;
  color: #ffffff;
}

/* ============================================================
   HUB LAYOUT: FEATURED CARD (contained, not full-bleed)
   Sits inside page-content, below breadcrumb, above the main
   grid. Image placeholder on left, text on right. Stacks on
   mobile.
   ============================================================ */
.blog-featured {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 24px;
}
.blog-featured__card,
.page-content .blog-featured__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: #121d2b;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-left: none;
  border-right: none;
  border-radius: 16px;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}
.blog-featured__card *,
.page-content .blog-featured__card * {
  text-decoration: none !important;
}
.blog-featured__card:hover {
  transform: translateY(-3px);
  /* no background, no shadow, no border change */
}
.blog-featured__image {
  flex: 0 0 420px;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06D6A0 0%, #118AB2 60%, #073B4C 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.blog-featured__content {
  flex: 1 1 auto;
  min-width: 0;
}
.blog-featured__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-bg);
  margin-bottom: 14px;
}
.blog-featured__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.blog-featured__excerpt {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 16px;
}
.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}
.blog-featured__author {
  font-weight: 600;
  color: #ffffff;
}
.blog-featured__sep {
  opacity: 0.6;
}
.blog-featured__cta {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--hero-bg);
  padding: 8px 14px;
  border: 1px solid rgba(255, 188, 4, 0.55);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
/* Light-mode: solid surface, no alpha */
[data-theme="light"] .blog-featured__card {
  background: #ffffff;
  border-color: rgba(7, 59, 76, 0.12);
}
[data-theme="light"] .blog-featured__image {
  background: linear-gradient(135deg, #06D6A0 0%, #118AB2 60%, #073B4C 100%);
  border-color: rgba(18, 29, 43, 0.12);
}
[data-theme="light"] .blog-featured__title {
  color: #121d2b;
}
[data-theme="light"] .blog-featured__excerpt {
  color: #525252;
}
[data-theme="light"] .blog-featured__meta {
  color: #737373;
}
[data-theme="light"] .blog-featured__author {
  color: #121d2b;
}

/* ============================================================
   HUB LAYOUT: MAIN GRID (posts + sidebar)
   ============================================================ */
.blog-main-wrap {
  max-width: 60rem;
  margin: 40px auto 0;
  padding: 0 0 80px;
}
.blog-main {
  /* inline styles handle the glass card background/border/radius */
}
.blog-main__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
.blog-main__header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.blog-main__heading {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.2;
}
.blog-main__subheading {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}
[data-theme="light"] .blog-main__header { border-bottom-color: #e5e5e5; }
[data-theme="light"] .blog-main__heading { color: #121d2b; }
[data-theme="light"] .blog-main__subheading { color: #525252; }

/* ============================================================
   HUB LAYOUT: CATEGORY FILTER
   ============================================================ */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 28px;
}
.blog-filter__label {
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.7);
}
.blog-filter__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.blog-filter__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}
.blog-filter__btn.is-active {
  background: var(--hero-bg, #06D6A0);
  color: #0d1520;
  border-color: var(--hero-bg, #06D6A0);
}
[data-theme="light"] .blog-filter__label {
  color: #073B4C;
}
[data-theme="light"] .blog-filter__btn {
  color: #073B4C;
  border-color: rgba(7, 59, 76, 0.18);
}
[data-theme="light"] .blog-filter__btn:hover {
  background: rgba(7, 59, 76, 0.06);
}
[data-theme="light"] .blog-filter__btn.is-active {
  background: #073B4C;
  color: #ffffff;
  border-color: #073B4C;
}

/* ============================================================
   HUB LAYOUT: POST GRID (2-col cards)
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-card,
.page-content .post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 188, 4, 0.6);
}
.post-card__thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hero-bg);
}
.post-card__title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}
.post-card__excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin: 0;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: auto;
  padding-top: 4px;
}
[data-theme="light"] .post-card {
  background: #ffffff;
  border-color: #e5e5e5;
}
[data-theme="light"] .post-card:hover {
  background: #ffffff;
  border-top-color: var(--hero-bg);
}
[data-theme="light"] .post-card__title { color: #121d2b; }
[data-theme="light"] .post-card__excerpt { color: #525252; }
[data-theme="light"] .post-card__date { color: #737373; }

.blog-main__viewall {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.blog-main__viewall a {
  color: var(--hero-bg);
  text-decoration: none;
  font-weight: 600;
}
.blog-main__viewall a:hover {
  text-decoration: underline;
}
.blog-main__viewall-sep {
  opacity: 0.5;
}
[data-theme="light"] .blog-main__viewall {
  border-top-color: #e5e5e5;
  color: #525252;
}

/* ============================================================
   HUB LAYOUT: SIDEBAR (newsletter + social)
   ============================================================ */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  margin-top: 0;
  padding-top: 0;
  position: sticky;
  top: 0;
}
.sidebar-card {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 22px 22px;
}
.sidebar-card__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hero-bg);
  margin: 0 0 10px;
}
.sidebar-card__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 0 0 14px;
}
.sidebar-card__fine {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin: 8px 0 0;
  line-height: 1.5;
}
[data-theme="light"] .sidebar-card {
  background: #f8fafc;
  border-color: #e5e5e5;
}
[data-theme="light"] .sidebar-card__text { color: #334155; }
[data-theme="light"] .sidebar-card__fine { color: #737373; }

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-form__input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.sidebar-form__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.sidebar-form__input:focus {
  border-color: var(--hero-bg);
}
.sidebar-form__btn {
  width: 100%;
  padding: 10px 18px;
  border: 2px solid var(--hero-bg);
  background: var(--hero-bg);
  color: #0a1019;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sidebar-form__btn:hover {
  background: transparent;
  color: var(--hero-bg);
}
.sidebar-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.sidebar-form__status {
  font-size: 13px;
  margin: 4px 0 0;
  min-height: 18px;
}
[data-theme="light"] .sidebar-form__input {
  border-color: #d4d4d4;
  color: #121d2b;
}
[data-theme="light"] .sidebar-form__input::placeholder { color: #a3a3a3; }
[data-theme="light"] .sidebar-form__btn { color: #121d2b; }
[data-theme="light"] .sidebar-form__btn:hover { color: #0a1019; }

.sidebar-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sidebar-social a,
.page-content .sidebar-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.sidebar-social a:hover {
  color: var(--hero-bg);
  background: rgba(255, 188, 4, 0.08);
  border-color: rgba(255, 188, 4, 0.4);
}
.sidebar-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
[data-theme="light"] .sidebar-social a {
  color: #334155;
  background: #ffffff;
  border-color: #e5e5e5;
}
[data-theme="light"] .sidebar-social a:hover {
  color: #121d2b;
  background: rgba(255, 188, 4, 0.10);
  border-color: var(--hero-bg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .blog-featured__title { font-size: 30px; }
  .blog-featured__image { flex-basis: 340px; min-height: 240px; }
  .blog-main__grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-sidebar { position: static; }
  .sidebar-social { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  figure.article-hero img { border-radius: 6px; }
  .grid-2col { grid-template-columns: 1fr; }
  .callout-card { flex-direction: column; gap: 12px; }
  .pull-quote__text { font-size: 18px; }
  .article-title { font-size: 28px; }
  .article-body h2 { font-size: 22px; }
  .blog-hero h1 { font-size: 30px; }
  .blog-container { padding: 0 20px 60px; }

  .blog-featured { padding: 0 16px; margin-bottom: 20px; }
  .blog-featured__card,
  .page-content .blog-featured__card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
  }
  .blog-featured__image {
    flex: 0 0 auto;
    width: 100%;
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
  .blog-featured__title { font-size: 26px; }
  .blog-featured__excerpt { font-size: 16px; }

  .blog-breadcrumb-wrap { padding: 5rem 20px 16px; }
  .blog-main-wrap { padding: 0 16px 60px; margin-top: 20px; }
  .blog-main { padding: 28px 20px !important; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-card__thumb-icon { font-size: 40px; }
}

@media (max-width: 480px) {
  .blog-featured__title { font-size: 22px; }
  .blog-featured__tag { font-size: 11px; }
  .blog-featured__image { min-height: 180px; }
  .sidebar-social { grid-template-columns: 1fr; }
}
