/**
 * Advanced SEO Blog Engine - Frontend CSS Design System
 * Architecture: BEM, Modern CSS, High Contrast & Clean Responsive Design.
 */

:root {
  /* Color Tokens */
  --ase-color-bg-primary: #ffffff;
  --ase-color-bg-secondary: #f8fafc;
  --ase-color-bg-surface: #ffffff;
  --ase-color-bg-alt: #f1f5f9;

  --ase-color-text-main: #0f172a;
  --ase-color-text-muted: #334155;
  --ase-color-text-light: #64748b;

  --ase-color-primary: #0f172a;
  --ase-color-primary-hover: #1e293b;

  --ase-color-accent: #b30000;
  --ase-color-accent-hover: #8c0000;
  --ase-color-accent-light: #fff1f2;

  --ase-color-califano-red: #b30000;
  --ase-color-califano-red-hover: #8c0000;
  --ase-color-califano-red-light: #fff1f2;

  --ase-color-border: #e2e8f0;
  --ase-color-border-dark: #cbd5e1;

  /* Callout colors */
  --ase-color-takeaways-bg: #ecfdf5;
  --ase-color-takeaways-border: #10b981;
  --ase-color-expert-bg: #eff6ff;
  --ase-color-expert-border: #3b82f6;
  --ase-color-warning-bg: #fffbeb;
  --ase-color-warning-border: #f59e0b;
  --ase-color-code-bg: #0f172a;
  --ase-color-code-text: #f8fafc;

  /* Typography */
  --ase-font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --ase-font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ase-font-size-base: 18px;
  --ase-line-height-base: 1.65;

  /* Layout & Depth Tokens */
  --ase-container-max: 1200px;
  --ase-radius-sm: 6px;
  --ase-radius-md: 12px;
  --ase-radius-lg: 16px;
  --ase-radius-hero: 20px;
  --ase-radius-pill: 9999px;

  --ase-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --ase-shadow-md: 0 6px 20px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --ase-shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

  --ase-transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --ase-transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base Setup */
html,
body.ase-blog-page {
  overflow-x: hidden !important;
  max-width: 100vw;
}

.ase-main-site,
.ase-single-article {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-family: var(--ase-font-family-base);
  line-height: var(--ase-line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: clip;
}

/* Container */
.ase-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .ase-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Reading Progress Bar */
.ase-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #b30000, #8c0000, #2563eb);
  z-index: 9999;
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 1px 6px rgba(179, 0, 0, 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-reading-progress {
      from {
        transform: scaleX(0);
      }

      to {
        transform: scaleX(1);
      }
    }

    .ase-progress-bar {
      animation: grow-reading-progress auto linear;
      animation-timeline: scroll();
    }
  }
}

/* Breadcrumbs */
.ase-breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  max-width: 100%;
}

.ase-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.45rem;
  max-width: 100%;
}

.ase-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.ase-breadcrumbs__item a {
  color: #64748b !important;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ase-transition-fast);
}

.ase-breadcrumbs__item a:hover {
  color: #b30000 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ase-breadcrumbs__item--active {
  color: #0f172a !important;
  font-weight: 600;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .ase-breadcrumbs__item--active {
    max-width: 160px;
  }
}

@media (max-width: 380px) {
  .ase-breadcrumbs__item--active {
    max-width: 110px;
  }
}

.ase-breadcrumbs__separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.75rem;
}

.ase-breadcrumbs__separator svg {
  display: block;
  width: 12px;
  height: 12px;
  stroke: #cbd5e1;
}

/* Header Archive & Top Page Positioning */
.ase-archive-page {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.ase-archive-body {
  padding-top: 0 !important;
}

/* Hide theme page titles ("Inicio", etc.) on blog pages and pages containing blog grid */
.ase-blog-page .entry-title,
.ase-blog-page .page-title,
.ase-blog-page .entry-header,
.ase-blog-page .wp-block-post-title,
.ase-blog-page header.page-header,
.ase-blog-page .wp-block-group>h1:not(.ase-card__title):not(.ase-hero__title):not(.ase-archive-header__title),
.ase-blog-page .site-main>header:not(.ase-archive-header),
.ase-blog-page .site-content>header:not(.ase-archive-header),
.ase-blog-page #primary>header:not(.ase-archive-header),
:has(.ase-blog-card-grid-wrapper) .wp-block-post-title,
:has(.ase-blog-card-grid-wrapper) .entry-title,
:has(.ase-blog-card-grid-wrapper) .page-title,
:has(.ase-blog-card-grid-wrapper) .entry-header,
:has(.ase-blog-card-grid-wrapper) header.page-header,
:has(.ase-blog-card-grid-wrapper)>h1:not(.ase-card__title):not(.ase-hero__title):not(.ase-archive-header__title) {
  display: none !important;
}

/* Eliminate top spacing/margins of block theme containers on blog pages */
.ase-blog-page #wp-skip-link-target,
.ase-blog-page #wp-skip-link-target>*,
.ase-blog-page main,
.ase-blog-page main>*,
.ase-blog-page .wp-site-blocks>main,
.ase-blog-page .wp-block-group.has-global-padding,
.ase-blog-page .is-layout-constrained,
.ase-blog-page .site-content,
.ase-blog-page #content,
.ase-blog-page .site-main,
.ase-blog-page main.ase-archive-page,
:is(body, main, section, article, div):has(.ase-blog-card-grid-wrapper),
:is(body, main, section, article, div):has(.ase-main-site) {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.ase-blog-page .ase-archive-header {
  position: static !important;
  z-index: auto !important;
  padding-top: 2rem !important;
  padding-bottom: 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1.5rem;
}

.ase-archive-header__title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #0f172a !important;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ase-archive-header__description {
  font-size: 1.1rem;
  color: #475569 !important;
  max-width: 750px;
  line-height: 1.6;
}

/* Back to Blog Button */
.ase-archive-header__back-wrapper {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.ase-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  background-color: #ffffff;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
  border-radius: var(--ase-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--ase-transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ase-btn-back:hover {
  background-color: #0f172a;
  color: #ffffff !important;
  border-color: #0f172a;
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

/* Author Profile Hero Card */
.ase-author-profile-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--ase-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-top: 0.5rem;
}

.ase-author-profile-hero__avatar-container {
  flex-shrink: 0;
}

.ase-author-profile-hero__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.ase-author-profile-hero__initial {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
  border: 3px solid #ffffff;
}

.ase-badge--author-hero {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe;
  font-size: 0.725rem;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--ase-radius-pill);
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ase-author-profile-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0f172a !important;
  margin: 0.25rem 0 0.5rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ase-author-profile-hero__description {
  font-size: 1rem;
  color: #475569 !important;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

/* Hide default page titles named "Inicio" or empty header elements on blog pages */
.ase-blog-page h1.entry-title,
.ase-blog-page h1.page-title,
.ase-blog-page .entry-header:has(.entry-title),
.ase-archive-header__title:is(:empty) {
  display: none !important;
}

/* Single Article Header */
.ase-blog-page .ase-article-header {
  position: static !important;
  z-index: auto !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem;
  background-color: #ffffff;
}

.ase-article-header__badge-wrapper {
  margin-bottom: 0.75rem;
}

.ase-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  background-color: #fff1f2 !important;
  color: #b30000 !important;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--ase-radius-pill);
  border: 1px solid rgba(179, 0, 0, 0.18);
  text-decoration: none !important;
  transition: all var(--ase-transition-fast);
  line-height: 1.3;
}

.ase-badge:hover {
  background-color: #b30000 !important;
  color: #ffffff !important;
  border-color: #b30000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 0, 0, 0.25);
}

.ase-badge--featured {
  background: linear-gradient(135deg, #b30000, #8c0000) !important;
  color: #ffffff !important;
  border-color: #b30000 !important;
  box-shadow: 0 4px 12px rgba(179, 0, 0, 0.3);
}

.ase-article-header__title {
  font-family: var(--ase-font-family-heading);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0f172a !important;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.ase-article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.ase-article-header__info {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  max-width: 100%;
}

.ase-author-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ase-author-meta__avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.ase-author-meta__name a {
  font-weight: 600;
  color: #1e293b !important;
  text-decoration: none;
  transition: color var(--ase-transition-fast);
}

.ase-author-meta__name a:hover {
  color: #b30000 !important;
}

.ase-article-date {
  color: #64748b !important;
  font-weight: 400;
  white-space: nowrap;
}

.ase-dot-divider {
  color: #cbd5e1;
  opacity: 0.9;
  font-size: 0.75rem;
  user-select: none;
}

.ase-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b !important;
  font-weight: 400;
  white-space: nowrap;
}

.ase-reading-time svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: #94a3b8;
  margin-top: -1px;
}

/* Social Share Bar */
.ase-social-share-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  max-width: 100%;
}

@media (max-width: 640px) {
  .ase-article-header__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .ase-social-share-bar {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .ase-social-btn {
    width: 36px;
    height: 36px;
  }
}

.ase-social-share-bar__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569 !important;
  margin-right: 0.25rem;
}

.ase-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #0f172a !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--ase-transition-fast);
}

.ase-social-btn:hover {
  background-color: #2563eb;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.06);
}

.ase-social-btn--facebook:hover {
  background-color: #1877f2 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}

.ase-social-btn--instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35);
}

.ase-social-btn--linkedin:hover {
  background-color: #0a66c2 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
}

.ase-social-btn--twitter:hover {
  background-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}

.ase-social-btn--whatsapp:hover {
  background-color: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.ase-social-btn--share:hover {
  background-color: #8b5cf6 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

.ase-social-btn--copy:hover {
  background-color: #b30000 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(179, 0, 0, 0.35);
}

/* Toast Feedback Notification */
.ase-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.95);
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--ase-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 99999;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ase-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Article Bottom Share Box */
.ase-article-bottom-share {
  margin-top: 3.5rem !important;
  margin-bottom: 3.5rem !important;
  padding: 2.25rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--ase-radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--ase-shadow-md);
  width: 100%;
  box-sizing: border-box;
}

.ase-article-bottom-share__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a !important;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Featured Image */
.ase-article-featured-image {
  margin-top: 2rem;
  border-radius: var(--ase-radius-lg);
  overflow: hidden;
  box-shadow: var(--ase-shadow-md);
}

.ase-featured-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Layout Grid for Single Article (Content + Sidebar) */
.ase-article-body-wrapper {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  background-color: #ffffff;
}

.ase-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .ase-article-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
  }
}

.ase-article-content-column {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Single Article Body Typography & High-Contrast Colors */
.ase-entry-content {
  font-family: var(--ase-font-family-base);
  font-size: var(--ase-font-size-base);
  line-height: 1.72;
  color: #1e293b !important;
  background-color: #ffffff;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.ase-entry-content>p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #0f172a;
  font-weight: 450;
}

.ase-entry-content p,
.ase-entry-content li,
.ase-entry-content span,
.ase-entry-content div {
  color: #334155;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ase-entry-content h1,
.ase-entry-content h2,
.ase-entry-content h3,
.ase-entry-content h4,
.ase-entry-content h5,
.ase-entry-content h6 {
  color: #0f172a !important;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ase-entry-content h2 {
  font-size: 1.85rem;
  margin-top: 2.75rem;
  margin-bottom: 1.1rem;
  scroll-margin-top: 90px;
  position: relative;
  padding-left: 0.85rem;
  border-left: 4px solid #b30000;
}

.ase-entry-content h3 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  scroll-margin-top: 90px;
}

.ase-entry-content p {
  margin-bottom: 1.5rem;
}

.ase-entry-content a {
  color: #2563eb !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ase-transition-fast);
}

.ase-entry-content a:hover {
  color: #b30000 !important;
}

.ase-entry-content img,
.ase-entry-content figure,
.ase-entry-content video,
.ase-entry-content iframe,
.ase-entry-content embed,
.ase-entry-content object,
.ase-entry-content .wp-block-embed,
.ase-entry-content .wp-block-image {
  max-width: 100% !important;
  height: auto;
  border-radius: var(--ase-radius-md);
  box-shadow: var(--ase-shadow-sm);
  box-sizing: border-box !important;
}

.ase-entry-content pre,
.ase-entry-content .wp-block-code {
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: pre;
  word-break: normal;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--ase-radius-md);
}

.ase-entry-content pre code {
  white-space: pre;
  word-break: normal;
}

/* Table inside entry content */
.ase-entry-content table {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.25rem 0;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--ase-radius-md);
  box-shadow: var(--ase-shadow-sm);
  box-sizing: border-box;
}

.ase-entry-content table tr {
  display: table-row;
}

.ase-entry-content table th {
  background-color: #f8fafc;
  color: #0f172a !important;
  font-weight: 700;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.ase-entry-content table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155 !important;
  background-color: #ffffff;
}

.ase-entry-content table tr:last-child td {
  border-bottom: none;
}

.ase-entry-content table tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* Dark Card: Table of Contents (TOC) Component */
.ase-toc {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-radius: var(--ase-radius-lg);
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.ase-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.ase-toc__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  color: #ffffff !important;
  letter-spacing: -0.01em;
}

.ase-toc__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #94a3b8 !important;
  transition: color var(--ase-transition-fast);
}

.ase-toc__toggle:hover {
  color: #ffffff !important;
}

.ase-toc__chevron {
  transition: transform 0.25s ease;
}

.ase-toc__toggle[aria-expanded="false"] .ase-toc__chevron {
  transform: rotate(-90deg);
}

.ase-toc__list {
  margin-top: 1rem;
  padding-left: 1.25rem;
  margin-bottom: 0;
  color: #cbd5e1 !important;
}

.ase-toc__item {
  margin-bottom: 0.65rem;
}

.ase-toc__item--h3 {
  padding-left: 1rem;
  font-size: 0.95em;
}

.ase-toc__link {
  color: #93c5fd !important;
  text-decoration: none;
  transition: all var(--ase-transition-fast);
  font-size: 0.925rem;
  line-height: 1.4;
  display: inline-block;
}

.ase-toc__link:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.ase-toc__link.ase-toc__link--active {
  color: #ffffff !important;
  font-weight: 700;
  position: relative;
  padding-left: 0.6rem;
}

.ase-toc__link.ase-toc__link--active::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background-color: #38bdf8;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Desktop vs Mobile TOC & Author Card */
.ase-toc-mobile-container {
  display: block !important;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.ase-article-author-card-wrapper {
  display: block !important;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.ase-article-author-card-wrapper .ase-author-card {
  margin-top: 0 !important;
}

.ase-toc-desktop-container {
  display: none !important;
}

.ase-sidebar-author-card {
  display: block !important;
  margin-top: 1.75rem;
}

@media (min-width: 992px) {
  .ase-toc-mobile-container {
    display: none !important;
  }

  .ase-toc-desktop-container {
    display: block !important;
  }

  .ase-sticky-sidebar-inner {
    position: sticky;
    top: 90px;
  }
}

/* Callout Boxes */
.ase-callout {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.6rem;
  border-radius: var(--ase-radius-md);
  margin: 2.25rem 0;
  border-left: 5px solid;
  box-shadow: var(--ase-shadow-sm);
}

.ase-callout--takeaways {
  background-color: var(--ase-color-takeaways-bg);
  border-color: var(--ase-color-takeaways-border);
}

.ase-callout--expert {
  background-color: var(--ase-color-expert-bg);
  border-color: var(--ase-color-expert-border);
}

.ase-callout--warning {
  background-color: var(--ase-color-warning-bg);
  border-color: var(--ase-color-warning-border);
}

.ase-callout--code {
  background-color: var(--ase-color-code-bg);
  color: var(--ase-color-code-text);
  border-left: none;
  flex-direction: column;
  border-radius: var(--ase-radius-md);
}

.ase-callout__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Dark Card: Author Profile Card */
.ase-author-card {
  padding: 1.75rem;
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-radius: var(--ase-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.ase-author-card__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.ase-author-card__avatar {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ase-author-card__label {
  color: #94a3b8 !important;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.25rem;
}

.ase-author-card__name,
.ase-author-card__name a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.ase-author-card__role {
  color: #cbd5e1 !important;
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

.ase-author-card__bio {
  color: #94a3b8 !important;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.ase-author-card__footer .ase-btn {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  background: transparent !important;
  border-radius: var(--ase-radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--ase-transition-fast);
}

.ase-author-card__footer .ase-btn:hover {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Post Navigation Cards (Prev / Next) */
.ase-post-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.ase-post-nav-wrapper {
  flex: 1 1 260px;
  min-width: 0;
}

.ase-post-nav-wrapper.is-empty {
  display: none;
}

.ase-post-nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--ase-radius-lg);
  text-decoration: none !important;
  box-shadow: var(--ase-shadow-sm);
  transition: all var(--ase-transition-fast);
  height: 100%;
  box-sizing: border-box;
}

.ase-post-nav-card:hover {
  transform: translateY(-3px);
  border-color: #b30000;
  box-shadow: 0 8px 24px rgba(179, 0, 0, 0.12);
}

.ase-post-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff1f2;
  color: #b30000;
  flex-shrink: 0;
  transition: all var(--ase-transition-fast);
}

.ase-post-nav-card:hover .ase-post-nav-icon {
  background-color: #b30000;
  color: #ffffff;
}

.ase-post-nav-wrapper--prev .ase-post-nav-card:hover .ase-post-nav-icon {
  transform: translateX(-4px);
}

.ase-post-nav-wrapper--next .ase-post-nav-card:hover .ase-post-nav-icon {
  transform: translateX(4px);
}

.ase-post-nav-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.ase-post-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.ase-post-nav-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ase-post-nav-card:hover .ase-post-nav-title {
  color: #b30000;
}

/* Related Posts Section */
.ase-article-footer {
  width: 100% !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  clear: both;
}

.ase-article-footer .ase-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

.ase-related-posts-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}

.ase-related-posts-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.015em;
}

.ase-related-posts-title::after {
  content: "";
  display: block;
  width: 45px;
  height: 3px;
  background-color: #b30000;
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* Grid System for Blog Cards */
.ase-blog-card-grid-wrapper {
  margin-bottom: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.ase-blog-card-grid-wrapper--fullwidth {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Category Filter Header & Search Bar */
.ase-filter-header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  margin-top: 0.25rem !important;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--ase-radius-lg);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: visible;
}

.ase-filter-pills-scroll-container {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 12px 8px 6px;
  margin: -6px -12px -8px -6px;
}

.ase-filter-pills-scroll-container::-webkit-scrollbar {
  display: none;
}

.ase-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 2px 14px 2px 2px;
  list-style: none;
  width: max-content;
}

.ase-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--ase-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  outline: none;
}

.ase-filter-pill:hover {
  background-color: #fff1f2;
  color: #b30000;
  border-color: rgba(179, 0, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 0, 0, 0.14);
}

.ase-filter-pill--active {
  background: linear-gradient(135deg, #c50000, #8c0000) !important;
  color: #ffffff !important;
  border-color: #b30000 !important;
  box-shadow: 0 4px 16px rgba(179, 0, 0, 0.32);
  transform: translateY(-1px);
}

.ase-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: var(--ase-radius-pill);
  background-color: rgba(0, 0, 0, 0.07);
  color: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ase-filter-pill--active .ase-pill-count {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.ase-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

.ase-search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  width: 18px;
  height: 18px;
  transition: color 0.2s ease;
}

.ase-search-input {
  width: 100%;
  height: 44px;
  padding: 0 2.5rem 0 2.6rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--ase-radius-pill) !important;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ase-search-input:focus {
  outline: none;
  background-color: #ffffff !important;
  border-color: #b30000 !important;
  box-shadow: 0 0 0 3.5px rgba(179, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.ase-search-box:focus-within .ase-search-icon {
  color: #b30000;
}

.ase-search-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ase-search-clear:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Relative Container & Loading Spinner */
.ase-grid-container-relative {
  position: relative;
  min-height: 200px;
}

.ase-grid-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  border-radius: 14px;
}

.ase-grid-container-relative.is-loading .ase-grid-loading-overlay {
  opacity: 1;
  pointer-events: auto;
}

.ase-spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid #e2e8f0;
  border-top-color: #b30000;
  border-radius: 50%;
  animation: ase-spin 0.8s linear infinite;
}

@keyframes ase-spin {
  to {
    transform: rotate(360deg);
  }
}

.ase-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.ase-grid--cols-1 {
  grid-template-columns: 1fr;
}

.ase-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ase-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ase-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
  .ase-grid--tablet-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ase-grid--tablet-1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ase-grid--mobile-1 {
    grid-template-columns: 1fr;
  }

  .ase-grid {
    gap: 1.5rem;
  }
}

.ase-grid__empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: #f8fafc;
  border-radius: var(--ase-radius-md);
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 500;
}

/* Standard Card */
.ase-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff !important;
  border-radius: var(--ase-radius-lg);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--ase-shadow-md);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.ase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ase-shadow-lg);
  border-color: #cbd5e1;
}

.ase-card__image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #f1f5f9;
}

.ase-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ase-card:hover .ase-card__image {
  transform: scale(1.06);
}

.ase-card__content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #ffffff;
}

.ase-card__meta-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin-bottom: 0.85rem !important;
  width: 100% !important;
}

.ase-card__meta-tags {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  flex-wrap: wrap !important;
}

.ase-card__reading-time,
.ase-reading-time {
  font-size: 0.775rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  background-color: #f8fafc;
  padding: 0.25rem 0.6rem;
  border-radius: var(--ase-radius-sm);
  border: 1px solid #f1f5f9;
}

.ase-card__reading-time svg,
.ase-reading-time svg {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  margin: 0 !important;
  stroke: currentColor !important;
}

.ase-card__category-tag {
  display: inline-block;
  width: fit-content;
  padding: 0.3rem 0.8rem;
  background-color: #fff1f2 !important;
  color: #b30000 !important;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--ase-radius-pill);
  border: 1px solid rgba(179, 0, 0, 0.18);
  margin-bottom: 0;
  transition: all var(--ase-transition-fast);
}

.ase-card__category-tag:hover {
  background-color: #b30000 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(179, 0, 0, 0.22);
}

.ase-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #0f172a !important;
  letter-spacing: -0.01em;
}

.ase-card__title a {
  color: #0f172a !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ase-card__title a:hover {
  color: #b30000 !important;
}

.ase-card__excerpt {
  font-size: 0.925rem;
  line-height: 1.6;
  color: #475569 !important;
  margin-bottom: 1.5rem;
}

.ase-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
}

.ase-card__meta-details {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ase-card__author-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569 !important;
  text-decoration: none !important;
  transition: color var(--ase-transition-fast);
}

.ase-card__author-link:hover {
  color: #b30000 !important;
}

.ase-card__date {
  font-size: 0.8rem;
  color: #94a3b8 !important;
  font-weight: 500;
}

/* Button Pill "LEER" */
.ase-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.3rem;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #b30000 !important;
  background-color: #fff1f2 !important;
  border: 1.5px solid #b30000 !important;
  border-radius: var(--ase-radius-pill) !important;
  text-decoration: none !important;
  transition: all var(--ase-transition-fast);
  cursor: pointer;
  width: fit-content;
}

.ase-btn-pill__icon {
  display: inline-block;
  transition: transform 0.22s ease;
}

.ase-btn-pill:hover {
  background: linear-gradient(135deg, #c50000, #8c0000) !important;
  color: #ffffff !important;
  border-color: #b30000 !important;
  box-shadow: 0 4px 14px rgba(179, 0, 0, 0.28);
  transform: translateY(-1px);
}

.ase-btn-pill:hover .ase-btn-pill__icon {
  transform: translateX(3px);
}

/* Hero Featured Card */
.ase-card--hero {
  display: flex;
  flex-direction: column;
  background-color: #ffffff !important;
  border-radius: var(--ase-radius-hero);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 3.5rem;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ase-card--hero:hover {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

.ase-hero-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: linear-gradient(135deg, #b30000, #8c0000);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--ase-radius-pill);
  box-shadow: 0 4px 14px rgba(179, 0, 0, 0.35);
  z-index: 2;
}

.ase-hero-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.ase-hero-author__name {
  color: #0f172a !important;
  font-weight: 600;
}

@media (min-width: 850px) {
  .ase-card--hero {
    flex-direction: row;
    align-items: stretch;
  }

  .ase-card--hero .ase-card__image-container {
    width: 50%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .ase-card--hero .ase-card__content {
    width: 50%;
    padding: 2.75rem 3rem;
    justify-content: center;
  }

  .ase-card--hero.ase-card--hero-no-image .ase-card__content,
  .ase-card--hero:not(:has(.ase-card__image-container)) .ase-card__content {
    width: 100% !important;
  }

  .ase-card--hero .ase-card__title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .ase-card--hero .ase-card__excerpt {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem;
  }
}

/* Theme Parent Container Overrides & Full-Width Outer Containers */
.ase-single-article,
.ase-single-article.alignfull,
.ase-main-site,
.ase-main-site.alignfull,
.is-layout-constrained>.ase-main-site,
.is-layout-constrained>.ase-single-article,
.is-layout-constrained>.alignfull,
body.ase-blog-page .is-layout-constrained>*,
body.ase-blog-page .wp-block-group>*,
body.ase-blog-page #wp-skip-link-target>*,
body.ase-blog-page #page,
body.ase-blog-page #content,
body.ase-blog-page #primary,
body.ase-blog-page #main,
body.ase-blog-page #wp-skip-link-target,
body.ase-blog-page .wp-site-blocks,
body.ase-blog-page .wp-block-group,
body.ase-blog-page .has-global-padding,
body.ase-blog-page .is-layout-constrained,
body.ase-blog-page .site-content,
body.ase-blog-page .site-main,
body.ase-blog-page .content-area,
body.ase-blog-page .ast-container,
body.ase-blog-page .ast-plain-container,
body.ase-blog-page .site-inner,
body.ase-blog-page .entry-content,
body.ase-blog-page .post-content,
body.ase-blog-page .page-content,
body.ase-blog-page .wp-block-post-content,
:is(body, main, section, article, div):has(.ase-blog-card-grid-wrapper),
:is(body, main, section, article, div):has(.ase-main-site),
:is(body, main, section, article, div):has(.ase-single-article) {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
  overflow-x: clip;
}

/* Align blog card grid wrapper with header logo and navigation (max 1200px centered) */
.ase-blog-card-grid-wrapper:not(.ase-blog-card-grid-wrapper--fullwidth) {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

.ase-blog-card-grid-wrapper--fullwidth {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Fallback Header Banner for Hero Posts without Image */
.ase-hero-fallback-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 1.1rem 1.75rem;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #b30000;
}

.ase-hero-badge-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background-color: #b30000;
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--ase-radius-pill);
  box-shadow: 0 2px 8px rgba(179, 0, 0, 0.35);
}

/* Pagination */
.ase-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.ase-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 0.5rem;
}

.ase-pagination a,
.ase-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: var(--ase-radius-pill);
  border: 1px solid #cbd5e1;
  color: #0f172a !important;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--ase-transition-fast);
}

.ase-pagination a:hover {
  border-color: #b30000;
  color: #b30000 !important;
  background-color: #fff1f2;
  transform: translateY(-1px);
}

.ase-pagination .current {
  background: linear-gradient(135deg, #c50000, #8c0000);
  color: #ffffff !important;
  border-color: #b30000;
  box-shadow: 0 4px 14px rgba(179, 0, 0, 0.32);
}