/* =============================================================================
   Blog Featured Hero — magazine layout component
   Shared between the /blog page (blog-listing.css also loads this) and any
   page using the [lfgc_blog_hero] shortcode (e.g. homepage).
   ============================================================================= */

@keyframes lfgcHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lfgc-blog-hero--fade-in {
  opacity: 0;
  animation: lfgcHeroFadeIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.lfgc-blog-hero--featured {
  position: relative;
  width: 100%;
  background-color: var(--lfgc-color-grey-lt);
  /* overflow: hidden; */
  max-width: 1550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px) 0;
}

/* Full-width title: sits BEHIND the portrait image.
   Uses 100vw + translate so it always matches the overlay regardless of container margins. */
.lfgc-blog-hero__title-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, 1550px);
  z-index: 1;
  pointer-events: none;
  padding: 0 clamp(20px, 4vw, 80px);
}

.lfgc-blog-hero__featured-title {
  font-family: 'Area_Extended_Black', 'Area Extended', sans-serif;
  font-size: clamp(18px, 5.5vw, 80px);
  font-weight: 900;
  line-height: 1.17;
  color: var(--lfgc-color-charcoal);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

div.lfgc-blog-hero__featured-title p {
  margin: 0;
  padding: 0;
}

/* Portrait image + CTA: centred, IN FRONT of the title (z-index 2) */
.lfgc-blog-hero__portrait-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: clamp(160px, 23.5vw, 501px);
  aspect-ratio: 501 / 815;
  z-index: 2;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
}

.lfgc-blog-hero__portrait {
  position: absolute;
  inset: 0;
}

.lfgc-blog-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.lfgc-blog-hero__portrait-link:hover .lfgc-blog-hero__portrait img {
  transform: scale(1.04);
}

/* White title overlay inside portrait — cut-through text effect */
.lfgc-blog-hero__title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, 1550px);
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 clamp(20px, 4vw, 80px);
}

.lfgc-blog-hero__featured-title--white {
  color: #ffffff;
}

/* Magenta CTA button floating over the photo */
.lfgc-blog-hero__cta {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: var(--lfgc-color-magenta);
  color: #ffffff;
  padding: 18px 50px;
  height: 55px;
  min-width: 150px;
  justify-content: center;
  margin-bottom: clamp(15px, 8%, 80px);
  font-family: 'Area_Extended_Bold', 'Area Extended Regular', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  transition: background-color 0.25s ease;
}

.lfgc-blog-hero__portrait-link:hover .lfgc-blog-hero__cta {
  background-color: #9c0050;
}

.lfgc-blog-hero__cta-icon {
  margin-left: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.lfgc-blog-hero__portrait-link:hover .lfgc-blog-hero__cta-icon {
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .lfgc-blog-hero--featured {
    padding: 32px 0;
  }

  .lfgc-blog-hero__portrait-link {
    width: clamp(140px, 55vw, 280px);
  }

  .lfgc-blog-hero__featured-title {
    font-size: clamp(22px, 8vw, 40px);
  }
}
