/**
 * Blog — Listing & Article Styles
 *
 * Scoped under `.blog-landing` to avoid conflicts with Astra / Elementor.
 * Header overrides are file-scoped (not under .blog-landing) because
 * #masthead lives outside .blog-landing in the DOM.
 *
 * @package Astra Child
 * @since   1.0.0
 */

/* ===== HEADER OVERRIDE FOR BLOG =====
   Landing pages have dark heroes so the transparent header works.
   Blog pages have a white background, so the header needs a solid
   navy background with fixed positioning. These rules override
   astra-overrides.css which makes the header transparent/absolute. */
#masthead {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: rgba(14, 43, 103, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(14, 43, 103, 0.08);
}

.main-header-bar,
.ast-primary-header-bar {
  background-color: transparent !important;
}

/* Ensure header menu text stays white on navy background */
.ast-builder-menu .main-header-menu .menu-link,
[CLASS*="ast-builder-menu-"] .main-header-menu .menu-item > .menu-link,
.main-header-menu .menu-link,
.ast-masthead-custom-menu-items,
.ast-masthead-custom-menu-items a,
.ast-builder-menu .main-header-menu .menu-item > .ast-menu-toggle {
  color: #FFFFFF !important;
}

.ast-builder-menu .main-header-menu .menu-item:hover > .menu-link,
.ast-builder-menu .main-header-menu .current-menu-item > .menu-link,
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link {
  color: #FFFFFF !important;
}

.site-title a,
.site-title a:focus,
.site-title a:hover,
.site-title a:visited,
.site-header .site-description {
  color: #FFFFFF !important;
}

/* ===== PAGE BACKGROUND ===== */
body {
  background-color: #FFFFFF !important;
}

/* ===== SCOPED RESET ===== */
.blog-landing *, .blog-landing *::before, .blog-landing *::after { margin: 0; padding: 0; box-sizing: border-box; }
.blog-landing { font-family: 'Lato', sans-serif; color: #0E2B67; line-height: 1.8; width: 100%; overflow-x: hidden; -webkit-font-smoothing: antialiased; background-color: #FFFFFF; }
.blog-landing img { max-width: 100%; height: auto; }
.blog-landing a { text-decoration: none; color: inherit; }

/* ===== DESIGN TOKENS ===== */
.blog-landing {
  --navy: #0E2B67;
  --navy-dark: #002C6B;
  --blue: #0067FF;
  --blue-hover: #0052CC;
  --blue-a11y: #005CE6;
  --mint: #72F5C4;
  --mint-soft: rgba(114, 245, 196, 0.15);
  --light-bg: #E7F6FF;
  --gray-50: #F8FAFC;
  --gray-100: #EEF2F5;
  --white: #FFFFFF;
  --hero-dark: #060D1F;
  --amber-warning: #F59E0B;
  --gray-600: #5A6B7D;
  --gray-700: #3D4A5C;
  --light-gray: #B0C4DE;
  --shadow-sm: 0 2px 8px rgba(14, 43, 103, 0.08);
  --shadow-md: 0 4px 16px rgba(14, 43, 103, 0.12);
  --shadow-lg: 0 8px 24px rgba(14, 43, 103, 0.16);
}

/* ===== PLACEHOLDER IMAGES ===== */
.blog-landing .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.blog-landing .placeholder-img svg.ph-icon {
  stroke: var(--mint);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.blog-landing .placeholder-img span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.5;
}
.blog-landing .ph-navy { background: linear-gradient(135deg, #060D1F 0%, #0E2B67 100%); color: rgba(255, 255, 255, 0.5); }
.blog-landing .ph-blue { background: linear-gradient(135deg, #0E2B67 0%, #0052CC 100%); color: rgba(255, 255, 255, 0.5); }
.blog-landing .ph-mint { background: linear-gradient(160deg, #0E2B67 0%, #0E2B67 60%, rgba(114, 245, 196, 0.15) 100%); color: rgba(255, 255, 255, 0.5); }
.blog-landing .ph-light { background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-50) 100%); color: var(--gray-600); }
.blog-landing .ph-light .ph-icon { stroke: var(--blue); }

/* ===== BUTTONS ===== */
.blog-landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.blog-landing .btn-primary { background-color: var(--blue); color: var(--white); }
.blog-landing .btn-primary:hover { background-color: var(--blue-hover); box-shadow: 0 8px 24px rgba(0, 103, 255, 0.3); }

/* ===========================
   LISTING VIEW
   =========================== */

/* ===== BLOG HEADER ===== */
.blog-landing .blog-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 40px;
}
.blog-landing .blog-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--navy);
  margin-bottom: 8px;
}
.blog-landing .blog-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

/* ===== CATEGORY FILTER ===== */
.blog-landing .category-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-landing .category-filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
}
.blog-landing .category-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.blog-landing .category-filter-btn.active { background-color: var(--blue); border-color: var(--blue); color: var(--white); }

/* ===== ARTICLE GRID ===== */
.blog-landing .article-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  min-height: 50vh;
}
.blog-landing .article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

/* ===== ARTICLE CARD ===== */
.blog-landing .article-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.blog-landing .article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-landing .article-card-image { aspect-ratio: 16/9; overflow: hidden; }
.blog-landing .article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-landing .article-card:hover .article-card-image img { transform: scale(1.03); }
.blog-landing .article-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-landing .article-card-category {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-a11y);
  margin-bottom: 8px;
}
.blog-landing .article-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 8px;
}
.blog-landing .article-card-title a { color: inherit; text-decoration: none; }
.blog-landing .article-card-title a:hover { color: var(--blue); }
.blog-landing .article-card-excerpt {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-landing .article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--gray-600);
}

/* ===== FEATURED CARD ===== */
.blog-landing .article-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
}
.blog-landing .article-card-featured .article-card-image {
  aspect-ratio: auto;
  min-height: 320px;
  border-radius: 16px 0 0 16px;
}
.blog-landing .article-card-featured .article-card-content { padding: 40px; justify-content: center; }
.blog-landing .article-card-featured .article-card-title { font-size: 24px; line-height: 1.3; }

/* ===== PAGINATION ===== */
.blog-landing .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  padding: 40px 0;
}
.blog-landing .pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.blog-landing .pagination-btn:hover { border-color: var(--blue); color: var(--blue); }
.blog-landing .pagination-btn.active { background-color: var(--blue); border-color: var(--blue); color: var(--white); }
.blog-landing .pagination-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.blog-landing .pagination-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ===========================
   ARTICLE VIEW
   =========================== */

/* ===== BREADCRUMBS ===== */
.blog-landing .breadcrumbs-container {
  max-width: 1000px;
  margin: 0 auto 24px;
  padding: 120px 40px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.blog-landing .breadcrumbs {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--gray-600);
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.blog-landing .breadcrumbs li { display: flex; align-items: center; }
.blog-landing .breadcrumbs a { color: var(--gray-600); text-decoration: none; transition: color 0.3s ease; }
.blog-landing .breadcrumbs a:hover { color: var(--blue); }
.blog-landing .breadcrumb-separator { margin: 0 8px; color: var(--gray-600); font-size: 14px; }

/* ===== ARTICLE HEADER ===== */
.blog-landing .article-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 40px 40px;
  text-align: left;
}
.blog-landing .article-header .category-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue-a11y);
  margin-bottom: 16px;
}
.blog-landing .article-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.blog-landing .article-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.blog-landing .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--gray-600);
}
.blog-landing .meta-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--gray-100);
  display: inline-block;
}

/* ===== HERO IMAGE ===== */
.blog-landing .article-hero-image {
  max-width: 1000px;
  margin: 0 auto 48px;
  border-radius: 12px;
  overflow: hidden;
}
.blog-landing .article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-landing .article-hero-image figcaption {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--gray-600);
  padding: 12px 0 0;
  text-align: center;
}

/* ===== ARTICLE LAYOUT B: SIDEBAR ===== */
.blog-landing .article-layout-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}
.blog-landing .article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== PROSE TYPOGRAPHY ===== */
.blog-landing .article-body {
  max-width: 720px;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--navy);
}
.blog-landing .article-body p { margin-bottom: 1.5em; }
.blog-landing .article-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.3;
  color: var(--navy);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  scroll-margin-top: 100px;
}
/* First heading in article body: no top margin so it aligns with sidebar */
.blog-landing .article-body > h2:first-child,
.blog-landing .article-body > h3:first-child {
  margin-top: 0;
}
.blog-landing .article-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--navy);
  margin-top: 2em;
  margin-bottom: 0.5em;
  scroll-margin-top: 100px;
}
.blog-landing .article-body h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--navy);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.blog-landing .article-body a {
  color: var(--blue-a11y);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}
.blog-landing .article-body a:hover { color: var(--blue-hover); }
.blog-landing .article-body ul,
.blog-landing .article-body ol { margin: 1em 0 1.5em 1.5em; line-height: 1.75; }
.blog-landing .article-body li { margin-bottom: 0.5em; }
.blog-landing .article-body ul li::marker { color: var(--blue); }
.blog-landing .article-body ol li::marker { color: var(--blue); font-weight: 700; }
.blog-landing .article-body strong { font-weight: 700; color: var(--navy); }
.blog-landing .article-body em { font-style: italic; }

/* ===== BLOCKQUOTE ===== */
.blog-landing .article-body blockquote {
  margin: 2em 0;
  padding: 24px 32px;
  border-left: 4px solid var(--blue);
  background-color: var(--gray-50);
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: var(--navy);
}
.blog-landing .article-body blockquote p:last-child { margin-bottom: 0; }
.blog-landing .article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--gray-600);
}

/* ===== PULL QUOTE ===== */
.blog-landing .pull-quote {
  margin: 2.5em -60px;
  padding: 32px 40px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.4;
  color: var(--navy);
  border-top: 3px solid var(--mint);
  border-bottom: 3px solid var(--mint);
}

/* ===== CALLOUT BOXES ===== */
.blog-landing .callout {
  margin: 2em 0;
  padding: 20px 24px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
/* When callout has a leading SVG icon (Liveness pattern), switch to row layout */
.blog-landing .callout:has(> svg) {
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}
.blog-landing .callout h3 {
  margin: 0 0 4px 0 !important;
  font-size: 18px;
}
.blog-landing .callout svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blog-landing .callout p:last-child { margin-bottom: 0; }
.blog-landing .callout-tip { background-color: rgba(114, 245, 196, 0.1); border-left: 4px solid var(--mint); }
.blog-landing .callout-tip svg { stroke: var(--mint); }
.blog-landing .callout-info { background-color: var(--light-bg); border-left: 4px solid var(--blue); }
.blog-landing .callout-info svg { stroke: var(--blue); }
.blog-landing .callout-warning { background-color: rgba(245, 158, 11, 0.1); border-left: 4px solid var(--amber-warning); }
.blog-landing .callout-warning svg { stroke: var(--amber-warning); }

/* ===== FAQ LIST (dl semántica — componente blog §8.3, Semana 03) ===== */
.blog-landing .faq-list { margin: 32px 0; }
.blog-landing .faq-list dt {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 8px;
}
.blog-landing .faq-list dt:first-child { margin-top: 0; }
.blog-landing .faq-list dd {
  margin-left: 0;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
}

/* ===== DATA TABLE ===== */
.blog-landing .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2em 0; }
.blog-landing .article-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.blog-landing .article-body thead { background-color: var(--navy); color: var(--white); }
.blog-landing .article-body th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
}
.blog-landing .article-body td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.blog-landing .article-body tbody tr:hover { background-color: var(--gray-50); }

/* ===== CODE ===== */
.blog-landing .article-body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background-color: var(--gray-50);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--navy);
}
.blog-landing .article-body pre {
  margin: 2em 0;
  padding: 24px;
  background-color: var(--navy);
  border-radius: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-landing .article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== INLINE IMAGES ===== */
.blog-landing .article-body figure { margin: 2em 0; }
.blog-landing .article-body figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
.blog-landing .article-body figure figcaption {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--gray-600);
  padding-top: 8px;
  text-align: center;
}

/* ===== HR ===== */
.blog-landing .article-body hr {
  border: none;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  margin: 3em auto;
  border-radius: 2px;
}

/* ===== TOC SIDEBAR ===== */
.blog-landing .toc {
  padding: 24px;
  background-color: var(--gray-50);
  border-radius: 12px;
}
.blog-landing .toc-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 16px;
}
.blog-landing .toc-list { list-style: none; padding: 0; margin: 0; }
.blog-landing .toc-list li { margin-bottom: 8px; }
.blog-landing .toc-list a {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
}
.blog-landing .toc-list a:hover { color: var(--blue); }
.blog-landing .toc-list a.active { color: var(--blue-a11y); border-left-color: var(--blue); font-weight: 700; }
.blog-landing .toc-list .toc-h3 { padding-left: 24px; font-size: 13px; }

/* ===== TOC INLINE (Layout A) ===== */
.blog-landing .toc-inline {
  margin: 24px 0 40px;
  padding: 24px;
  background-color: var(--gray-50);
  border-radius: 12px;
}
.blog-landing .toc-inline-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  padding: 0;
}
.blog-landing .toc-inline-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}
.blog-landing .toc-inline .toc-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.blog-landing .toc-inline.open .toc-list {
  max-height: 500px;
  margin-top: 16px;
}
.blog-landing .toc-inline.open .toc-inline-toggle svg {
  transform: rotate(180deg);
}

/* ===== NEWSLETTER CTA SIDEBAR ===== */
.blog-landing .sidebar-newsletter {
  padding: 24px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 12px;
  color: var(--white);
  text-align: center;
}
.blog-landing .sidebar-newsletter h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 8px;
}
.blog-landing .sidebar-newsletter p {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-landing .sidebar-newsletter input[type="email"] {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}
.blog-landing .sidebar-newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.blog-landing .sidebar-newsletter input[type="email"]:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(114, 245, 196, 0.2);
}
.blog-landing .sidebar-newsletter .btn { width: 100%; padding: 10px 20px; font-size: 14px; }
.blog-landing .sidebar-newsletter .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Newsletter feedback messages */
.blog-landing .newsletter-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
  animation: nlFadeIn 0.3s ease;
}
.blog-landing .newsletter-feedback[hidden] { display: none; }
.blog-landing .newsletter-feedback svg { flex-shrink: 0; }
.blog-landing .newsletter-success {
  background: rgba(114, 245, 196, 0.15);
  color: var(--mint);
  border: 1px solid rgba(114, 245, 196, 0.3);
}
.blog-landing .newsletter-error {
  background: rgba(255, 107, 107, 0.15);
  color: #ff8a8a;
  border: 1px solid rgba(255, 107, 107, 0.3);
}
@keyframes nlFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SHARE BAR ===== */
.blog-landing .share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-100);
  margin-top: 48px;
}
.blog-landing .share-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
}
.blog-landing .share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}
.blog-landing .share-btn:hover { border-color: var(--blue); background-color: var(--light-bg); }
.blog-landing .share-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-600);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}
.blog-landing .share-btn:hover svg { stroke: var(--blue); }

/* ===== AUTHOR BIO ===== */
.blog-landing .author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px;
  background-color: var(--gray-50);
  border-radius: 12px;
  margin-top: 32px;
}
.blog-landing .author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
}
.blog-landing .author-bio-info { flex: 1; }
.blog-landing .author-bio-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
}
.blog-landing .author-bio-role {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.blog-landing .author-bio-description {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ===========================
   SHARED COMPONENTS
   =========================== */

/* ===== RELATED POSTS ===== */
.blog-landing .related-posts-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid var(--gray-100);
}
.blog-landing .related-posts-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 32px;
}
.blog-landing .related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===== BLOG FOOTER CTA ===== */
.blog-landing .blog-cta {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 80px 40px;
  text-align: center;
  margin-top: 64px;
}
.blog-landing .blog-cta-container { max-width: 700px; margin: 0 auto; }
.blog-landing .blog-cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--white);
  margin-bottom: 16px;
}
.blog-landing .blog-cta p {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* ===== TABLET (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  .blog-landing .article-layout-sidebar { grid-template-columns: 1fr; gap: 40px; }
  .blog-landing .article-sidebar { position: static; order: 2; }
  .blog-landing .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
  .blog-landing .blog-header { padding: 80px 24px 32px; }
  .blog-landing .category-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .blog-landing .category-filter-btn { flex-shrink: 0; }
  .blog-landing .article-grid-container { padding: 24px; }
  .blog-landing .article-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-landing .article-card-featured { grid-template-columns: 1fr; }
  .blog-landing .article-card-featured .article-card-image {
    border-radius: 16px 16px 0 0;
    min-height: auto;
    aspect-ratio: 16/9;
  }
  .blog-landing .breadcrumbs-container { padding: 120px 24px 0; }
  .blog-landing .article-header { padding: 24px 24px 24px; }
  .blog-landing .article-hero-image { margin: 0 -24px 32px; border-radius: 0; }
  .blog-landing .article-layout-sidebar { padding: 0 24px; }
  .blog-landing .pull-quote { margin: 2em 0; padding: 24px 0; font-size: 20px; }
  .blog-landing .related-posts-section { padding: 60px 24px; }
  .blog-landing .related-posts-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-landing .blog-cta { padding: 60px 24px; }
  .blog-landing .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }
}

/* ===========================
   ARTICLE VIEW — LAYOUT A (full-width, no sidebar)
   =========================== */

/* ===== LAYOUT A CONTAINER ===== */
.blog-landing .article-layout-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
/* Center header, hero, TOC and article body within Layout A */
.blog-landing .article-layout-full .article-header {
  max-width: 1000px;
  margin: 0 auto;
}
.blog-landing .article-layout-full .article-body {
  margin: 0 auto;
}
.blog-landing .article-layout-full .toc-inline {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO FIGURE (Layout A) ===== */
.blog-landing .hero-figure {
  margin: 48px auto;
  max-width: 1000px;
}
.blog-landing .hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow-md);
}
.blog-landing .hero-figure figcaption {
  margin-top: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--gray-600);
  font-style: italic;
}

/* ===== ARTICLE META WITH ICONS (Layout A) ===== */
.blog-landing .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-landing .icon-inline {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
}

/* ===== SECTION DIVIDER (Layout A) ===== */
.blog-landing .section-divider {
  margin: 56px 0;
  height: 2px;
  border: none;
  background: linear-gradient(
    to right,
    transparent,
    var(--mint) 20%,
    var(--mint) 80%,
    transparent
  );
}

/* ===== INLINE CTA (mid-article product mention) ===== */
.blog-landing .inline-cta {
  background-color: var(--mint-soft);
  padding: 20px;
  border-radius: 6px;
  margin: 2em 0;
  border-left: 4px solid var(--mint);
}
.blog-landing .inline-cta p {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 16px;
}
.blog-landing .inline-cta p:last-of-type { margin-bottom: 16px; }
.blog-landing .inline-cta .cta-button,
.blog-landing .inline-cta a.cta-button:link,
.blog-landing .inline-cta a.cta-button:visited {
  display: inline-block;
  margin-top: 8px;
  background-color: var(--blue);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}
.blog-landing .inline-cta .cta-button:hover,
.blog-landing .inline-cta a.cta-button:hover {
  background-color: var(--blue-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
}
.blog-landing .inline-cta .cta-button:focus {
  outline: 2px solid var(--blue-a11y);
  outline-offset: 2px;
}

/* ===== CTA BOX (end-article gradient) ===== */
.blog-landing .cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  margin: 48px 0;
  text-align: center;
}
.blog-landing .cta-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  font-size: 22px;
}
.blog-landing .cta-box p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}
.blog-landing .cta-box .cta-button,
.blog-landing .cta-box a.cta-button:link,
.blog-landing .cta-box a.cta-button:visited {
  display: inline-block;
  background-color: var(--blue);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}
.blog-landing .cta-box .cta-button:hover,
.blog-landing .cta-box a.cta-button:hover {
  background-color: var(--blue-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
}
.blog-landing .cta-box .cta-button:focus {
  outline: 2px solid var(--blue-a11y);
  outline-offset: 2px;
}

/* ===== AUTHOR BIO — Layout A (stacked with header) ===== */
.blog-landing .author-bio-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.blog-landing .author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--mint);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-landing .author-avatar img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.blog-landing .author-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.blog-landing .author-info p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 0;
}
.blog-landing .author-bio-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
}

/* FAQ (Layout A — pillar pages with FAQPage schema) */
.blog-landing .faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}
.blog-landing .faq-item:last-child { border-bottom: none; }
.blog-landing .faq-item h3 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

/* Layout A: pull-quote with left border (matches mockup) */
.blog-landing .article-layout-full .pull-quote {
  margin: 40px 0;
  padding: 24px 0 24px 24px;
  text-align: left;
  border-top: none;
  border-bottom: none;
  border-left: 4px solid var(--mint);
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

/* Layout A: author-bio — vertical layout matching DS mockup */
.blog-landing .article-layout-full .author-bio {
  display: block;
  border-top: 2px solid var(--mint);
  border-radius: 8px;
  margin: 56px 0 0 0;
  padding: 32px;
}
.blog-landing .article-layout-full .author-bio-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.blog-landing .article-layout-full .author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--mint);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-landing .article-layout-full .author-avatar img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}
.blog-landing .article-layout-full .author-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.blog-landing .article-layout-full .author-info p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 0;
}
.blog-landing .article-layout-full .author-bio-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ===== BLOG FOOTER CTA — NEWSLETTER (Layout A full-width breakout) ===== */
.blog-landing .article-layout-full .blog-cta {
  margin-top: 64px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}
.blog-landing .newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 24px auto 0;
}
.blog-landing .blog-cta .newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}
.blog-landing .blog-cta .newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.blog-landing .blog-cta .newsletter-form input[type="email"]:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(114, 245, 196, 0.2);
}
.blog-landing .blog-cta .newsletter-form .cta-button {
  flex-shrink: 0;
  display: inline-block;
  background-color: var(--blue);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}
.blog-landing .blog-cta .newsletter-form .cta-button:hover {
  background-color: var(--blue-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* ===========================
   RESPONSIVE — LAYOUT A
   =========================== */

@media (max-width: 768px) {
  .blog-landing .article-layout-full { padding: 0 24px; }
  .blog-landing .hero-figure { margin: 32px 0; }
  .blog-landing .section-divider { margin: 40px 0; }
  .blog-landing .cta-box { padding: 32px 24px; }
  .blog-landing .article-layout-full .author-bio { padding: 24px; display: block; }
  .blog-landing .blog-cta .newsletter-form { flex-direction: column; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .blog-landing *, .blog-landing *::before, .blog-landing *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
