/* ═══ ARTICLE HEADER ═══ */
.article-header {
  text-align: center;
  max-width: 100%;
  margin: 0 auto 24px auto;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(254,243,199,0.93) 35%, rgba(236,253,245,0.93) 70%, rgba(255,255,255,0.95) 100%) padding-box,
    linear-gradient(135deg, rgba(249,115,22,0.5), rgba(255,255,255,0.95) 44%, rgba(16,185,129,0.5)) border-box;
  border: 2px solid transparent;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(249,115,22,0.05),
    0 12px 28px rgba(15,23,42,0.05),
    0 0 20px rgba(249,115,22,0.04);
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mirror-glass-shine, linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%));
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
  mix-blend-mode: overlay;
  border-radius: inherit;
}

.article-header > * {
  position: relative;
  z-index: 2;
}

.article-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 10px;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.article-title {
  font-family: var(--font-hero) !important;
  font-weight: 800 !important;
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
  margin: 6px 0 10px 0 !important;
  color: var(--color-text-primary) !important;
}

.article-subtitle {
  font-family: var(--font-hero) !important;
  font-weight: 700 !important;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.article-featured-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.article-content {
  border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-left: 4px solid rgba(234, 88, 12, 0.35) !important;
  border-right: 4px solid rgba(234, 88, 12, 0.35) !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, #fffbf5 0%, #fefce8 45%, #f0fdf4 100%) !important;
  padding: 40px 48px !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px -6px rgba(15,23,42,0.08),
    0 20px 48px -16px rgba(249,115,22,0.10) !important;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease !important;
  margin-bottom: 32px !important;
}
.article-content:hover {
  border-left-color: rgba(234, 88, 12, 0.85) !important;
  border-right-color: rgba(234, 88, 12, 0.85) !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 14px 32px -8px rgba(15,23,42,0.12),
    0 28px 56px -18px rgba(249,115,22,0.14) !important;
}

@media (max-width: 768px) {
  .article-header {
    padding: 20px 24px;
  }
  .article-content {
    padding: 24px;
  }
  .article-title {
    font-size: 1.25rem !important;
  }
}


/* ═══ ARTICLE CONTENT TYPOGRAPHY ═══ */
.article-content {
  max-width: 100%;
  margin: 0;
}

.article-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--color-dark);
  margin: 32px 0 14px;
  transition: text-shadow 300ms ease;
  cursor: default;
}

.article-content h2:hover {
  text-shadow:
    0 0 16px rgba(52,211,153,1),
    0 0 40px rgba(16,185,129,0.85),
    0 0 75px rgba(52,211,153,0.55),
    0 0 110px rgba(16,185,129,0.3);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--color-dark);
  margin: 24px 0 10px;
}

.article-content p {
  color: var(--color-dark);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-content a {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ease-base);
}

.article-content a:hover {
  color: var(--color-dark);
}

.article-content ul, 
.article-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-content li {
  color: var(--color-dark);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.article-content strong {
  font-weight: 600;
  color: var(--color-dark);
}

/* Custom Table in Articles */
.article-content-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  border-left: 4px solid rgba(234, 88, 12, 0.75);
  border-right: 4px solid rgba(234, 88, 12, 0.75);
  background: linear-gradient(135deg, #fffbf5 0%, #fefce8 45%, #f0fdf4 100%);
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px -6px rgba(15,23,42,0.08),
    0 20px 48px -16px rgba(249,115,22,0.10);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
  margin: 28px 0;
}
.article-content-table-wrapper:hover {
  border-left-color: rgba(234, 88, 12, 0.95);
  border-right-color: rgba(234, 88, 12, 0.95);
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 14px 32px -8px rgba(15,23,42,0.12),
    0 28px 56px -18px rgba(249,115,22,0.14);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
}

.article-content table thead tr {
  background: linear-gradient(90deg, rgba(234,88,12,0.07) 0%, rgba(249,115,22,0.04) 100%) !important;
  border-bottom: 2px solid rgba(234, 88, 12, 0.18) !important;
}

.article-content th {
  padding: 16px 24px !important;
  text-align: left !important;
  font-family: var(--font-body) !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--color-text-muted) !important;
  white-space: nowrap !important;
  border-bottom: none !important;
}

.article-content td {
  padding: 14px 24px !important;
  font-size: 0.9375rem !important;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(15, 23, 42, 0.05) !important;
  border-bottom: none !important;
  transition: background 120ms ease !important;
}

.article-content td:first-child {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
  font-size: 0.9375rem !important;
}

.article-content tbody tr {
  border: none !important;
  background: transparent !important;
}

.article-content tbody tr:hover td {
  background: rgba(249, 115, 22, 0.04) !important;
}

.article-content blockquote {
  border-left: 4px solid var(--color-orange);
  padding: 16px 20px;
  background-color: var(--color-orange-10);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  color: var(--color-dark);
  font-style: italic;
}


/* ═══ TAKEAWAYS & HIGHLIGHTS ═══ */
.key-takeaways {
  background:
    linear-gradient(var(--color-emerald-10), var(--color-emerald-10)) padding-box,
    linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(255, 255, 255, 0.90) 44%, rgba(16, 185, 129, 0.42)) border-box;
  border: 1.5px solid transparent;
  border-left: 4px solid var(--color-emerald);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 32px 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.82) inset,
    0 8px 22px rgba(16, 185, 129, 0.085);
}

.key-takeaways ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-takeaways li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  padding: 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.key-takeaways li::before {
  content: "✓";
  color: var(--color-emerald);
  font-weight: 700;
  flex-shrink: 0;
}


/* ═══ IN-ARTICLE CALL TO ACTION BOX ═══ */
.cta-box {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3) 0%, rgba(245, 158, 11, 0.3) 100%);
  padding: 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 40px 0;
  color: var(--color-text-primary);
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-box-title {
  color: var(--color-text-primary);
}

.cta-box-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 8px 0 24px;
}

.cta-box .btn-primary {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-orange-2) !important;
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-box .btn-primary:hover {
  background-color: rgba(255, 255, 255, 1);
  color: var(--color-orange-2) !important;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
  transform: translateY(-1px);
}


/* ═══ SHARING ROW ═══ */
.share-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.share-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-btn[data-platform="twitter"] {
  background-color: var(--color-sea-10);
  color: var(--color-sea);
}

.share-btn[data-platform="twitter"]:hover {
  background-color: var(--color-sea);
  color: var(--color-white);
}

.share-btn[data-platform="linkedin"] {
  background-color: rgba(10, 102, 194, 0.1);
  color: #0a66c2;
}

.share-btn[data-platform="linkedin"]:hover {
  background-color: #0a66c2;
  color: var(--color-white);
}

.share-btn[data-platform="copy"] {
  background-color: var(--color-surface-2);
  color: var(--color-muted);
}

.share-btn[data-platform="copy"]:hover {
  background-color: var(--color-muted);
  color: var(--color-white);
}


/* ═══ AUTHOR PROFILE BOX ═══ */
.author-box {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(255, 255, 255, 0.88) 44%, rgba(16, 185, 129, 0.38)) border-box;
  border-radius: var(--radius-xl);
  border: 1.5px solid transparent;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 40px 0;
  padding: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.82) inset,
    0 10px 26px rgba(15, 23, 42, 0.055),
    0 0 16px rgba(249, 115, 22, 0.045),
    0 0 22px rgba(16, 185, 129, 0.07);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  user-select: none;
}

.author-name {
  color: var(--color-dark);
}

.author-bio {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* ═══ HELPFULNESS VOTING ═══ */
.was-helpful {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 24px 0;
}

.was-helpful-title {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-dark);
}

.was-helpful-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.was-helpful-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 8px;
}


/* ═══ RELATED POSTS ═══ */
.related-posts {
  margin: 40px 0;
}

/* Flexbox fallback for browsers without CSS Grid support (IE11, old Edge) */
.related-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px; /* Negative margin to create gaps */
}

.related-grid > * {
  padding: 10px; /* Padding creates gaps between items */
  box-sizing: border-box;
  flex: 0 0 33.333%; /* 3 columns fallback */
  max-width: 33.333%;
}

/* CSS Grid for modern browsers */
@supports (display: grid) {
  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0; /* Reset margin */
  }

  .related-grid > * {
    padding: 0; /* Reset padding */
    flex: none; /* Reset flex */
    max-width: none; /* Reset max-width */
  }

  @media (max-width: 768px) {
    .related-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* Flexbox fallback responsive - for old browsers */
@media (max-width: 768px) {
  .related-grid > * {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* ═══ PREVIOUS / NEXT POST NAVIGATION ═══ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.post-nav-link {
  flex: 1;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 16px;
  text-decoration: none;
  max-width: 260px;
  border: 1px solid var(--color-border);
  transition: border-color var(--ease-base), box-shadow var(--ease-base);
}

.post-nav-link:hover {
  border-color: var(--color-orange);
  box-shadow: var(--shadow-sm);
}

.post-nav-direction {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.post-nav-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-dark);
  margin-top: 4px;
  display: block;
}

@media (max-width: 576px) {
  .post-nav-link {
    max-width: 100%;
  }
}


/* ═══ SIDEBAR WIDGET GLASSMORPHISM ═══ */
.article-layout .sidebar-widget {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, rgba(249, 115, 22, 0.26), rgba(255, 255, 255, 0.88) 44%, rgba(16, 185, 129, 0.34)) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.80) inset,
    0 8px 24px rgba(15, 23, 42, 0.05),
    0 0 16px rgba(249, 115, 22, 0.04),
    0 0 20px rgba(16, 185, 129, 0.065);
}

/* ═══ TWO-COLUMN ARTICLE LAYOUT ═══ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 48px;
  align-items: start;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Related Posts - Full width below article layout */
.related-posts {
  width: 100%;
  max-width: 100%;
}

/* ═══ PREMIUM GLASSMORPHISM CARDS ═══ */
.learn-card {
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.95) 0%, rgba(254, 252, 232, 0.90) 45%, rgba(240, 253, 244, 0.90) 100%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: var(--radius-xl) !important;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 250ms cubic-bezier(.34,1.56,.64,1), box-shadow 250ms ease, border-color 250ms ease !important;
  text-decoration: none;
  color: var(--color-dark);
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.04),
    0 0 12px rgba(249, 115, 22, 0.03) !important;
}

.learn-card.card-orange {
  border-left: 4px solid rgba(234, 88, 12, 0.35) !important;
  border-right: 4px solid rgba(234, 88, 12, 0.35) !important;
}
.learn-card.card-orange:hover {
  border-left-color: rgba(234, 88, 12, 0.85) !important;
  border-right-color: rgba(234, 88, 12, 0.85) !important;
  transform: translateY(-4px) !important;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 0 24px rgba(249, 115, 22, 0.06) !important;
}

.learn-card.card-emerald {
  border-left: 4px solid rgba(16, 185, 129, 0.35) !important;
  border-right: 4px solid rgba(16, 185, 129, 0.35) !important;
}
.learn-card.card-emerald:hover {
  border-left-color: rgba(16, 185, 129, 0.85) !important;
  border-right-color: rgba(16, 185, 129, 0.85) !important;
  transform: translateY(-4px) !important;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 0 24px rgba(16, 185, 129, 0.06) !important;
}

.learn-card.card-sea {
  border-left: 4px solid rgba(14, 165, 233, 0.35) !important;
  border-right: 4px solid rgba(14, 165, 233, 0.35) !important;
}
.learn-card.card-sea:hover {
  border-left-color: rgba(14, 165, 233, 0.85) !important;
  border-right-color: rgba(14, 165, 233, 0.85) !important;
  transform: translateY(-4px) !important;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 0 24px rgba(14, 165, 233, 0.06) !important;
}

.learn-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.learn-card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.learn-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.learn-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

/* Card Reveal Keyframes */
@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ EXPANDED WIDER CONTAINER OVERRIDES FOR HUBS & INDEX PAGES ═══ */
.blog-hero > .container,
.learn-hero > .container {
  width: min(100%, 1200px) !important;
  max-width: 1200px !important;
}


/* Home theme override for blog and learn pages. */
html,
body {
  background-color: var(--color-bg-base, #FAFAF7) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 1px;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.blog-hero,
.learn-hero,
.article-header {
  --page-hero-panel-height: 244px;
  position: relative;
  padding: 104px 24px 36px !important;
  margin-bottom: 32px !important;
  overflow: hidden;
  text-align: center;
  background: transparent !important;
}

.blog-hero > .container,
.learn-hero > .container,
.article-header {
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  min-height: var(--page-hero-panel-height);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 38px 44px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 253, 245, 0.74) 38%, rgba(254, 243, 199, 0.38) 72%, rgba(255, 255, 255, 0.9) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 48px rgba(16, 185, 129, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.035) !important;
}

.blog-hero > .container > *,
.learn-hero > .container > *,
.article-header > * {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.blog-hero h1,
.learn-hero h1,
.article-title,
.article-header h1 {
  color: var(--color-text-primary) !important;
  text-align: center !important;
  margin: 0 0 12px !important;
}

.blog-hero p,
.learn-hero p,
.article-subtitle,
.article-header p {
  color: var(--color-text-secondary) !important;
  text-align: center !important;
}

.post-card,
.sidebar-widget {
  border-radius: var(--radius-xl) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 253, 245, 0.72) 36%, rgba(254, 243, 199, 0.34) 72%, rgba(255, 255, 255, 0.92) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.30) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 30px rgba(16, 185, 129, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.035) !important;
}

.post-card:hover,
.sidebar-widget:hover {
  transform: none !important;
  border-color: rgba(249, 115, 22, 0.70) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 42px rgba(16, 185, 129, 0.13),
    0 0 24px rgba(249, 115, 22, 0.08) !important;
}

.blog-filter-btn,
.filter-btn,
.share-btn {
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(16, 185, 129, 0.24) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--color-text-secondary) !important;
  box-shadow: none !important;
}

.blog-filter-btn:hover,
.blog-filter-btn.active,
.filter-btn:hover,
.filter-btn.active,
.share-btn:hover {
  background: var(--color-orange-10) !important;
  border-color: rgba(249, 115, 22, 0.48) !important;
  color: var(--color-orange-2) !important;
}

.article-content p,
.article-content li,
.article-content td,
.article-content strong {
  color: var(--color-text-secondary) !important;
}

.article-content h2,
.article-content h3,
.learn-card-title,
.post-card-title {
  color: var(--color-text-primary) !important;
}

@media (max-width: 768px) {
  .blog-hero,
  .learn-hero,
  .article-header {
    --page-hero-panel-height: 214px;
    padding: 88px 16px 28px !important;
  }

  .blog-hero > .container,
  .learn-hero > .container,
  .article-header {
    padding: 30px 20px !important;
    border-radius: var(--radius-xl) !important;
  }
}

/* Blog/learn background parity with the home hero. */
.blog-hero,
.learn-hero {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse 62% 42% at 18% 4%, rgba(249, 115, 22, 0.10) 0%, transparent 48%),
    radial-gradient(ellipse 50% 30% at 42% 78%, rgba(14, 165, 233, 0.06) 0%, transparent 54%),
    var(--color-bg-base, #FAFAF7) !important;
}

.blog-hero::before,
.learn-hero::before {
  opacity: 0 !important;
  background: transparent !important;
}

.blog-hero > .container,
.learn-hero > .container {
  background: rgba(255, 255, 255, 0.58) !important;
  border-color: rgba(16, 185, 129, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 48px rgba(16, 185, 129, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.025) !important;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.blog-hero > .container::before,
.learn-hero > .container::before {
  opacity: 0.18 !important;
}

/* Global background parity: match the cleaner legal/disclaimer page atmosphere. */
html,
body {
  background: var(--color-bg-base, #FAFAF7) !important;
  background-color: var(--color-bg-base, #FAFAF7) !important;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 1px !important;
  background:
    radial-gradient(ellipse 72% 42% at 50% 0%, rgba(16, 185, 129, 0.095) 0%, transparent 58%),
    radial-gradient(ellipse 48% 38% at 18% 20%, rgba(249, 115, 22, 0.055) 0%, transparent 58%),
    radial-gradient(ellipse 46% 34% at 82% 35%, rgba(14, 165, 233, 0.045) 0%, transparent 58%),
    var(--color-bg-base, #FAFAF7) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.hero,
.calc-hub-hero,
.calculator-page-hero,
.legal-hero,
.about-hero,
.contact-hero,
.blog-hero,
.learn-hero,
.article-header {
  background:
    radial-gradient(ellipse 72% 42% at 50% 0%, rgba(16, 185, 129, 0.095) 0%, transparent 58%),
    radial-gradient(ellipse 48% 38% at 18% 20%, rgba(249, 115, 22, 0.055) 0%, transparent 58%),
    radial-gradient(ellipse 46% 34% at 82% 35%, rgba(14, 165, 233, 0.045) 0%, transparent 58%),
    var(--color-bg-base, #FAFAF7) !important;
}

.hero-bg-orbs,
.calc-hub-hero-orbs {
  opacity: 0.16 !important;
}

.hero-orb,
.calc-hub-orb {
  filter: blur(120px) !important;
  opacity: 0.08 !important;
}

.blog-hero > .container,
.learn-hero > .container,
.calc-hub-hero > .container,
.calculator-page-hero > div,
.legal-hero > .container,
.about-hero > .container,
.contact-hero > .container,
.article-header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(236, 253, 245, 0.34) 42%, rgba(254, 243, 199, 0.22) 74%, rgba(255, 255, 255, 0.72) 100%) !important;
}

/* === MAIN CONTENT WRAPPER WITH ORANGE BORDERS (BLOG & LEARN HUBS) === */
.blog-main-content,
.learn-main-content {
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.95) 0%, rgba(254, 252, 232, 0.90) 45%, rgba(240, 253, 244, 0.90) 100%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-left: 4px solid rgba(234, 88, 12, 0.35) !important;
  border-right: 4px solid rgba(234, 88, 12, 0.35) !important;
  border-radius: 24px !important;
  padding: 40px 48px !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px -6px rgba(15,23,42,0.08),
    0 20px 48px -16px rgba(249,115,22,0.10) !important;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease !important;
}

.blog-main-content:hover,
.learn-main-content:hover {
  border-left-color: rgba(234, 88, 12, 0.85) !important;
  border-right-color: rgba(234, 88, 12, 0.85) !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 14px 32px -8px rgba(15,23,42,0.12),
    0 28px 56px -18px rgba(249,115,22,0.14) !important;
}

@media (max-width: 768px) {
  .blog-main-content,
  .learn-main-content {
    padding: 24px !important;
  }
}
