/* Smooth scrolling for anchor links (Content Table) */
html {
  scroll-behavior: smooth;
}

/* Blog Article Header Styles */
.blog-article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.blog-article-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--heading-color);
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  overflow: visible;
  display: block;
}

/* Blog article meta cards (date/read time/back/author) */
.blog-article-meta-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 900px;
  margin: 1.25rem auto 0 auto;
  text-align: left;
}

@media (max-width: 968px) {
  .blog-article-meta-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .blog-article-meta-cards {
    grid-template-columns: 1fr;
  }
}

.blog-meta-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  box-sizing: border-box;

  /* override global <a> styling when used on links */
  text-decoration: none !important;
  color: inherit;
}

/* base_style.css has `a { border-bottom: none !important; }`
   which removes ONLY the bottom border on our clickable meta cards.
   Re-apply it here for consistent card borders. */
.blog-meta-card.blog-meta-card-link {
  border-bottom-style: solid !important;
  border-bottom-width: 1px !important;
  border-bottom-color: var(--border-color) !important;
}

.blog-meta-card i {
  color: var(--primary-blue);
  font-size: 1.35rem;
  width: 1.6rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.95;
}

.blog-meta-card-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.blog-meta-card-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-text);
  line-height: 1.1;
}

.blog-meta-card-value {
  font-size: 1.18rem;
  font-weight: 650;
  color: var(--heading-color);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Primary card (Back to blog) */
.blog-meta-card-primary {
  border-color: rgba(99, 102, 241, 0.55);
}

/* Keep primary border consistent even with the link override above */
.blog-meta-card-primary.blog-meta-card-link {
  border-bottom-color: rgba(99, 102, 241, 0.55) !important;
}

body.theme-dark .blog-meta-card-primary {
  background: rgba(99, 102, 241, 0.14);
}

body.theme-light .blog-meta-card-primary {
  background: rgba(99, 102, 241, 0.06);
}

.blog-meta-card-link {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.blog-meta-card-link:hover {
  transform: translateY(-1px);
  border-color: var(--primary-blue);
  border-bottom-color: var(--primary-blue) !important;
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

@media (max-width: 520px) {
  .blog-meta-card {
    padding: 1rem 1.1rem;
  }

  .blog-meta-card-label {
    font-size: 0.8rem;
  }

  .blog-meta-card-value {
    font-size: 1.08rem;
  }
}

.blog-meta-card-link:active {
  transform: translateY(0);
}

.blog-meta-card-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.25),
    0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Blog article content headings */
.blog-post-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 2.25rem 0 1rem 0;
  letter-spacing: -0.02em;
  color: var(--heading-color);
}

.blog-post-content h3 {
  font-size: 1.3em;
  margin: 20px 0 10px 0;
  color: var(--text-color);
  font-weight: 400;
  line-height: 1.4;
}

.blog-post-content h4 {
  font-size: 1.15em;
  margin: 18px 0 8px 0;
  color: var(--text-color);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .blog-post-content h3 {
    font-size: 1.2em;
  }

  .blog-post-content h4 {
    font-size: 1.05em;
  }
}

/* Content Table (Table of Contents) - Light theme default */
.blog-toc {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-medium);
  padding: 18px 20px;
  margin: 20px 0;
  color: #212529;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-toc p {
  color: #212529;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.05em;
}

.blog-toc ul {
  margin: 0;
  padding-left: 20px;
}

.blog-toc li {
  margin: 8px 0;
  line-height: 1.6;
}

.blog-toc a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.blog-toc a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Dark theme support for Content Table */
body.theme-dark .blog-toc {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body.theme-dark .blog-toc p {
  color: var(--heading-color);
}

body.theme-dark .blog-toc a {
  color: #a5b4fc;
}

body.theme-dark .blog-toc a:hover {
  color: #c7d2fe;
  opacity: 1;
}

@media (max-width: 968px) {
  .blog-article-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .blog-article-header h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
}

.blog-article-meta {
  color: var(--muted-text);
  font-size: 0.9em;
}

.blog-article-meta-separator {
  margin: 0 0.5rem;
}

.blog-article-author {
  margin-top: 0.75rem;
  font-size: 0.95em;
  color: var(--muted-text);
}

.blog-article-author-link,
.blog-article-author-name {
  font-weight: 600;
}

/* Scroll-to-top button (desktop only) */
.blog-scroll-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.95) 0%,
    rgba(168, 85, 159, 0.95) 100%
  );
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12000;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(10px);

  /* hidden by default (JS toggles .is-visible) */
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease;
}

.blog-scroll-to-top i {
  font-size: 18px;
  line-height: 1;
}

.blog-scroll-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.blog-scroll-to-top:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.blog-scroll-to-top:active {
  transform: translateY(0) scale(0.98);
}

.blog-scroll-to-top:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .blog-scroll-to-top {
    transition: none;
  }
}

/* Hide on smaller devices */
@media (max-width: 768px) {
  .blog-scroll-to-top {
    display: none !important;
  }
}

/* Blog post images - centered, responsive, never upscale */
/* Max dimensions: 100% width (container), 700px height for optimal SEO and UX */
.blog-post-content img {
  display: block;
  max-width: 100%;
  max-height: 700px;
  width: auto;
  height: auto;
  margin: 1.5rem auto;
  border-radius: var(--radius-small, 0.25rem);
  object-fit: contain;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-post-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Blog Image Preview Modal */
#blogImagePreviewModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

#blogImagePreviewModal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide theme toggle when preview modal is open */
#blogImagePreviewModal.show ~ * #theme-toggle,
body:has(#blogImagePreviewModal.show) #theme-toggle {
  display: none !important;
}

.blog-image-preview-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.blog-image-preview-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: default;
  transform: none;
}

/* Same design for both themes since backdrop is always dark */
.blog-image-preview-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.9) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-size: 32px;
  font-weight: 300;
  font-family: Arial, sans-serif;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0 0 0;
  margin: 0;
  transition: all 0.2s ease;
  z-index: 10001;
}

.blog-image-preview-close:hover {
  background: rgba(60, 60, 60, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

.blog-image-preview-close:active {
  transform: scale(0.98);
}

.blog-post-content .alert {
  display: block !important;
}

.blog-post-content .alert > p {
  display: block !important;
  margin: 0 0 0.75rem 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

.blog-post-content .alert strong {
  display: inline !important;
  margin-bottom: 0 !important;
}

.blog-post-content .alert > ul {
  display: block !important;
  margin: 0 !important;
  padding-left: 1.5rem !important;
  clear: both !important;
  width: 100% !important;
  float: none !important;
}

.faq-container {
  max-width: 900px;
  margin: 50px auto 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.faq-item:hover {
  border-color: var(--primary-blue);
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.15),
    0 0 0 1px rgba(99, 102, 241, 0.05) inset;
  transform: translateX(5px);
}

.faq-item[aria-expanded='true'] {
  border-color: var(--primary-blue);
}

.faq-question {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none !important;
  padding: 20px 25px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  color: var(--heading-color);
  font-size: 1.05em;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
  overflow: hidden;
  white-space: normal;
}

.faq-question span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.5;
  white-space: normal !important;
  display: block;
}

.faq-question:hover {
  color: var(--primary-blue);
}

.faq-item[aria-expanded='true'] .faq-question {
  color: var(--primary-blue);
}

.faq-question i {
  font-size: 0.9em;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  padding: 0 25px;
}

.faq-item[aria-expanded='true'] .faq-answer {
  padding: 0 25px 20px 25px;
}

.faq-answer p {
  color: var(--muted-text);
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.faq-features {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
}

body.theme-light .faq-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

body.theme-light .faq-item:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow:
    0 3px 15px rgba(99, 102, 241, 0.1),
    0 0 0 1px rgba(99, 102, 241, 0.05) inset;
}

body.theme-light .faq-item[aria-expanded='true'] {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
}

@media (max-width: 768px) {
  .faq-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.95em;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }

  .faq-question span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 30px) !important;
    padding-right: 0;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto;
    white-space: normal !important;
    display: block !important;
  }

  .faq-question i {
    flex-shrink: 0;
    flex-grow: 0;
    align-self: flex-start;
    margin-top: 2px;
    width: auto;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item[aria-expanded='true'] .faq-answer {
    padding: 0 20px 18px 20px;
  }
}

/* Blog promotional card (in-content) */
.blog-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 180px) 1fr;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  background: var(--card-bg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-decoration: none !important;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  /* Override global link styles - keep all borders consistent */
  border-bottom-style: solid !important;
  border-bottom-width: 1px !important;
  border-bottom-color: var(--border-color) !important;
}

.blog-promo-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
  border-bottom-color: var(--primary-blue) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
  text-decoration: none !important;
  color: inherit;
}

.blog-promo-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.blog-promo-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  justify-content: center;
}

.blog-promo-eyebrow {
  display: none;
}

.blog-promo-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.3;
}

.blog-promo-text {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-color);
}

.blog-promo-cta {
  margin: 0;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .blog-promo-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .blog-promo-media {
    order: -1;
  }
}

/* Footer blog recommendations carousel (blog articles only) */
.footer-blog-recommendations {
  --footer-rec-per-view: 3;
  --footer-rec-gap: 16px;
  --footer-rec-gutter: 76px; /* reserved space for arrows (no peeking cards) */
  --footer-rec-btn-size: 40px;
  --footer-rec-thumb-height: 190px;

  /* Stretch to match the main page container width (cancel footer container padding) */
  margin: 1.25rem -40px 5.75rem -40px;
  padding: 1.1rem 1.25rem 1.25rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  background: var(--container-bg);
  box-shadow: var(--shadow-strong);
  position: relative;
}

/* Ensure visible gap to the footer link grid (avoid margin-collapsing surprises) */
.footer-blog-recommendations + .footer-nav-grid {
  padding-top: 2.5rem;
}

/* Blog article footer: reduce the large empty gap above/below the footer area
   so the recommendations section sits closer to surrounding sections. */
.footer:has(.footer-blog-recommendations) {
  margin-top: 36px;
}

.footer-navigation:has(.footer-blog-recommendations) {
  padding-top: 22px;
  padding-bottom: 26px;
}

@media (max-width: 750px) {
  .footer-navigation:has(.footer-blog-recommendations) {
    padding-top: 18px;
    padding-bottom: 22px;
  }
}

.footer-blog-recommendations-carousel {
  position: relative;
  padding: 0 var(--footer-rec-gutter);
}

.footer-blog-recommendations-btn {
  width: var(--footer-rec-btn-size);
  height: var(--footer-rec-btn-size);
  min-width: var(--footer-rec-btn-size);
  min-height: var(--footer-rec-btn-size);
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(99, 102, 241, 0.08);
  color: var(--heading-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.footer-blog-recommendations-btn-prev {
  left: calc((var(--footer-rec-gutter) - var(--footer-rec-btn-size)) / 2);
}

.footer-blog-recommendations-btn-next {
  right: calc((var(--footer-rec-gutter) - var(--footer-rec-btn-size)) / 2);
}

.footer-blog-recommendations-btn:hover {
  transform: translateY(calc(-50% - 1px));
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  background: rgba(99, 102, 241, 0.14);
}

.footer-blog-recommendations-btn:active {
  transform: translateY(-50%);
}

.footer-blog-recommendations-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.25),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

.footer-blog-recommendations-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

.footer-blog-recommendations-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0;
}

.footer-blog-recommendations-viewport:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-medium);
}

.footer-blog-recommendations-track {
  display: flex;
  gap: var(--footer-rec-gap);
  will-change: transform;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer-blog-recommendations-card {
  flex: 0 0
    calc(
      (100% - (var(--footer-rec-gap) * (var(--footer-rec-per-view) - 1))) /
        var(--footer-rec-per-view)
    );
  box-sizing: border-box;
  padding: 0;
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-decoration: none !important;
  /* base_style.css applies `a { border-bottom: 1px dotted ... }`.
     Keep the card's full border (including bottom) instead. */
  border-bottom-style: solid !important;
  border-bottom-width: 1px !important;
  border-bottom-color: var(--border-color) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: auto;
  position: relative;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.footer-blog-recommendations-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.95) 0%,
    rgba(168, 85, 159, 0.9) 50%,
    rgba(129, 140, 248, 0.95) 100%
  );
  opacity: 0;
  z-index: 3; /* above the thumbnail image */
  pointer-events: none;
}

.footer-blog-recommendations-thumb {
  width: 100%;
  height: var(--footer-rec-thumb-height);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(168, 85, 159, 0.16) 100%
  );
  display: block;
  overflow: hidden;
}

.footer-blog-recommendations-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-blog-recommendations-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

body.theme-light .footer-blog-recommendations-thumb-placeholder {
  color: rgba(17, 24, 39, 0.7);
}

.footer-blog-recommendations-thumb-placeholder i {
  font-size: 2.25rem;
  opacity: 0.9;
}

.footer-blog-recommendations-card-body {
  padding: 0.9rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.footer-blog-recommendations-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.8);
  border-bottom-color: rgba(99, 102, 241, 0.8) !important;
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.footer-blog-recommendations-card:hover::before {
  opacity: 1;
}

.footer-blog-recommendations-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.25),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.footer-blog-recommendations-card:focus-visible::before {
  opacity: 1;
}

.footer-blog-recommendations-card-meta {
  font-size: 0.88rem;
  color: var(--muted-text);
}

.footer-blog-recommendations-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.footer-blog-recommendations-card-excerpt {
  color: var(--muted-text);
  opacity: 0.95;
  line-height: 1.55;
  font-size: 1.18rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 920px) {
  .footer-blog-recommendations {
    --footer-rec-per-view: 2;
    --footer-rec-thumb-height: 185px;
  }
}

@media (max-width: 750px) {
  .footer-blog-recommendations {
    margin-left: -20px;
    margin-right: -20px;
  }
}

@media (max-width: 620px) {
  .footer-blog-recommendations {
    --footer-rec-per-view: 1;
    --footer-rec-gutter: 64px;
    --footer-rec-btn-size: 36px;
    --footer-rec-thumb-height: 180px;
  }

  /* gutter + button size handled via CSS vars above */
}

@media (prefers-reduced-motion: reduce) {
  .footer-blog-recommendations-track {
    transition: none;
  }

  .footer-blog-recommendations-btn,
  .footer-blog-recommendations-card {
    transition: none;
  }
}
