/* =========================================================
   8FLiX Title Hero
   Moves the existing Astra H1/meta over the featured image
   ========================================================= */

.ast-single-post-featured-section.efx-title-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Make sure the image behaves like a hero background */
.ast-single-post-featured-section.efx-title-hero img.wp-post-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Optional extra readability layer.
   You already have an overlay baked in, so this is deliberately gentle. */
.ast-single-post-featured-section.efx-title-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(5, 8, 14, .72) 0%,
      rgba(5, 8, 14, .48) 42%,
      rgba(5, 8, 14, .16) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 8, 14, .72) 0%,
      rgba(5, 8, 14, .18) 45%,
      rgba(5, 8, 14, .10) 100%
    );
}

/* Existing entry header, now living inside the featured image */
.ast-single-post-featured-section.efx-title-hero .efx-title-hero__header {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 7vw, 120px);
  right: clamp(22px, 7vw, 120px);
  bottom: clamp(26px, 7vw, 92px);
  margin: 0;
  padding: 0;
  max-width: 1180px;
}

/* Existing H1 */
.ast-single-post-featured-section.efx-title-hero .entry-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.35rem, 5.2vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.025em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .75);
}

/* Existing meta/genres */
.ast-single-post-featured-section.efx-title-hero .entry-meta {
  max-width: 1050px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.86rem, 1.05vw, 1rem);
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .82);
}

.ast-single-post-featured-section.efx-title-hero .entry-meta a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
}

.ast-single-post-featured-section.efx-title-hero .entry-meta a:hover,
.ast-single-post-featured-section.efx-title-hero .entry-meta a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Tiny cinematic accent above the title */
.ast-single-post-featured-section.efx-title-hero .entry-title::before {
  content: "";
  display: block;
  width: clamp(54px, 8vw, 120px);
  height: 4px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #D3239A, #FF6A00);
  box-shadow: 0 0 18px rgba(211, 35, 154, .35);
}

/* Mobile/tablet tuning */
@media (max-width: 768px) {
  .ast-single-post-featured-section.efx-title-hero .efx-title-hero__header {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .ast-single-post-featured-section.efx-title-hero .entry-title {
    margin-bottom: 10px;
    font-size: clamp(2rem, 9vw, 3.15rem);
    line-height: 1.02;
  }

  .ast-single-post-featured-section.efx-title-hero .entry-title::before {
    height: 3px;
    margin-bottom: 14px;
  }

  .ast-single-post-featured-section.efx-title-hero .entry-meta {
    font-size: .82rem;
    line-height: 1.45;
    max-height: 4.4em;
    overflow: hidden;
  }
}

/* Very small screens: keep the genre spaghetti from eating the hero */
@media (max-width: 480px) {
  .ast-single-post-featured-section.efx-title-hero .entry-meta {
    display: none;
  }
}

/* =========================================================
   8FLiX Title Hero Breadcrumbs
   Moves breadcrumbs under title/meta inside the hero.
   ========================================================= */

.ast-single-post-featured-section.efx-title-hero .efx-title-hero__breadcrumbs {
  margin-top: clamp(10px, 1.4vw, 16px);
  max-width: 100%;
  color: rgba(255,255,255,.82);
  font-size: clamp(.78rem, .9vw, .95rem);
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0,0,0,.82);
}

.ast-single-post-featured-section.efx-title-hero .efx-title-hero__breadcrumbs a {
  color: rgba(255,255,255,.86);
  text-decoration: none;
}

.ast-single-post-featured-section.efx-title-hero .efx-title-hero__breadcrumbs a:hover,
.ast-single-post-featured-section.efx-title-hero .efx-title-hero__breadcrumbs a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Mobile: keep breadcrumbs tidy inside the hero */
@media (max-width: 640px) {
  .ast-single-post-featured-section.efx-title-hero .efx-title-hero__breadcrumbs {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  }

  .ast-single-post-featured-section.efx-title-hero .efx-title-hero__breadcrumbs::-webkit-scrollbar {
    display: none;
  }
}

/* =========================================================
   8FLiX Title Hero Alignment Fix
   Keeps hero title/meta/breadcrumbs aligned as one stack.
   ========================================================= */

.ast-single-post-featured-section.efx-title-hero .efx-title-hero__header,
.ast-single-post-featured-section.efx-title-hero header.entry-header {
  text-align: left !important;
}

.ast-single-post-featured-section.efx-title-hero .entry-title,
.ast-single-post-featured-section.efx-title-hero .entry-meta,
.ast-single-post-featured-section.efx-title-hero .efx-title-hero__breadcrumbs {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Archive pages only */

body.archive .ast-archive-description .ast-breadcrumbs-wrapper #ast-breadcrumbs-yoast {
padding-left: clamp(1.4rem, 3vw, 1.5rem) !important;
}