/* ============================================
   Blog Listing Page Styles
   ============================================ */

.lfgc-blog-listing {
  width: 100%;
  background-color: var(--lfgc-bl-bg);
  position: relative;
}

/* AJAX progress bar */
.lfgc-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--lfgc-bl-magenta);
  width: 0%;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

/* Hero Section */
.lfgc-blog-hero {
  width: 100%;
  padding: 80px 20px;
  background-color: var(--lfgc-bl-bg);
}

.lfgc-blog-hero__inner {
  max-width: 1552px;
  margin: 0 auto;
}

.lfgc-blog-hero__title {
  font-family:
    'Zalando Sans Expanded',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: clamp(32px, 6vw, 50px);
  font-weight: 400;
  line-height: 1.17;
  color: var(--lfgc-bl-dark);
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ──────────────────────────────────────────────
   Featured Post Hero — magazine layout
   Title spans full width behind centred portrait
   ────────────────────────────────────────────── */

@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-bl-bg);
  overflow: hidden;
  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 duplicate inside portrait — clipped by overflow:hidden to create cut-through 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-bl-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;
  /* font-weight: 700; */
  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);
}

/* Mobile: narrower image, smaller title */
@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);
  }
}

/* Blog Listing Wrapper */
.lfgc-blog-listing__wrapper {
  width: 100%;
  background-color: var(--lfgc-bl-bg);
}

/* Category Filters */
.lfgc-blog-filters {
  width: 100%;
  padding: 40px 20px;
  background-color: var(--lfgc-bl-bg);
  overflow-x: auto;
}

.lfgc-blog-filters__inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.lfgc-blog-filter-tab {
  font-family: 'Area_Extended_Medium', 'Area Extended', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 0.887;
  color: var(--lfgc-bl-dark);
  padding: 17px 0 21px 0;
  display: inline-block;
  border: none;
  border-bottom: 3px solid transparent;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.lfgc-blog-filter-tab:hover {
  color: var(--lfgc-bl-magenta);
}

.lfgc-blog-filter-tab--active {
  border-bottom-color: var(--lfgc-bl-magenta);
  color: var(--lfgc-bl-dark);
}

/* Blog Grid */
.lfgc-blog-grid {
  width: 100%;
  padding: 80px 20px;
  background-color: var(--lfgc-bl-bg);
}

.lfgc-blog-grid__inner {
  max-width: 1552px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

@media (min-width: 768px) {
  .lfgc-blog-grid__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lfgc-blog-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: var(--lfgc-bl-muted);
}

/* Blog Card */
.lfgc-blog-card {
  display: flex;
  flex-direction: column;
  gap: 19px;
  background-color: transparent;
  transition: transform 0.3s ease;
}

.lfgc-blog-card__image {
  width: 100%;
  height: 341px;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--lfgc-bl-placeholder);
}

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

.lfgc-blog-card__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.lfgc-blog-card:hover .lfgc-blog-card__image img {
  transform: scale(1.05);
}

.lfgc-blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.lfgc-blog-card__date {
  font-family:
    'Zalando Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14.467px;
  font-weight: 500;
  line-height: 1.53;
  color: var(--lfgc-bl-date);
}

.lfgc-blog-card__title {
  font-family: 'Area_Extended_Semibold', 'Area Extended', sans-serif;
  font-size: clamp(16px, 4vw, 20px);
  /* font-weight: 600; */
  line-height: 1.45;
  color: var(--lfgc-bl-dark);
  margin: 0;
  padding: 0;
}

.lfgc-blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lfgc-blog-card__title a:hover {
  color: var(--lfgc-bl-magenta);
}

.lfgc-blog-card__excerpt {
  font-family:
    'Lato',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 400;
  line-height: 1.53;
  color: var(--lfgc-color-grey-body);
  margin: 0;
  padding: 0;
}

.lfgc-blog-card__category {
  font-family: 'Area_Extended_Semibold', 'Area Extended', sans-serif;
  font-size: 12px;
  /* font-weight: 600; */
  line-height: 1.53;
  color: var(--lfgc-bl-dark);
  padding: 7px 10px;
  display: inline-block;
  width: fit-content;
  border: 1px solid var(--lfgc-bl-border);
  border-radius: 89px;
  background-color: transparent;
}

/* Pagination Navigation */
.lfgc-blog-pagination {
  width: 100%;
  padding: 50px 20px;
  background-color: var(--lfgc-bl-bg);
}

.lfgc-blog-pagination ul {
  max-width: 1552px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lfgc-blog-pagination li {
  margin: 0;
}

.lfgc-blog-pagination a,
.lfgc-blog-pagination span {
  font-family:
    'Zalando Sans Expanded',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--lfgc-bl-dark);
  padding: 7px 12px;
  display: inline-block;
  border: 1px solid var(--lfgc-bl-border);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lfgc-blog-pagination a:hover {
  border-color: var(--lfgc-bl-magenta);
  color: var(--lfgc-bl-magenta);
}

.lfgc-blog-pagination .current {
  border-color: var(--lfgc-bl-magenta);
  color: var(--lfgc-bl-white);
  background-color: var(--lfgc-bl-magenta);
}

/* Load More Button */
.lfgc-blog-load-more {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--lfgc-bl-bg);
  display: flex;
  justify-content: center;
}

.lfgc-blog-load-more__button {
  font-family: 'Area_Extended_Bold', 'Area Extended', sans-serif;
  font-size: 14px;
  /* font-weight: 700; */
  color: var(--lfgc-bl-charcoal);
  background-color: transparent;
  border: 1px solid var(--lfgc-bl-charcoal);
  padding: 18px 18px 19px;
  min-width: 120px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.1;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.lfgc-blog-load-more__button svg line {
  transition: stroke 0.3s ease;
}

.lfgc-blog-load-more__button:hover {
  background-color: var(--lfgc-bl-charcoal);
  color: var(--lfgc-bl-white);
}

.lfgc-blog-load-more__button:hover svg line {
  stroke: var(--lfgc-bl-white);
}

/* Previous / Next Navigation */
.lfgc-blog-prev-next {
  width: 100%;
  padding: 50px 20px;
  background-color: var(--lfgc-bl-bg);
}

.lfgc-blog-prev-next__inner {
  max-width: 1552px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.lfgc-blog-prev-next__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  position: relative;
}

.lfgc-blog-prev-next__button:hover:not(.lfgc-blog-prev-next__button--disabled) {
  transform: scale(1.1);
}

.lfgc-blog-prev-next__button--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lfgc-blog-prev-next__arrow {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.lfgc-blog-prev-next__counter {
  font-family:
    'Zalando Sans Expanded',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--lfgc-bl-dark);
  text-align: center;
  min-width: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .lfgc-blog-hero {
    padding: 40px 15px;
  }

  .lfgc-blog-hero__title {
    font-size: 32px;
  }

  .lfgc-blog-filters {
    padding: 20px 15px;
  }

  .lfgc-blog-filters__inner {
    gap: 16px;
  }

  .lfgc-blog-filter-tab {
    font-size: 14px;
    padding: 12px 0 15px 0;
  }

  .lfgc-blog-grid {
    padding: 40px 15px;
  }

  .lfgc-blog-grid__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lfgc-blog-load-more {
    padding: 40px 15px;
  }

  .lfgc-blog-prev-next {
    padding: 30px 15px;
  }

  .lfgc-blog-prev-next__inner {
    gap: 10px;
  }
}

/* AJAX navigation transitions */
.lfgc-blog-listing__wrapper {
  transition: opacity 0.2s ease;
}

.lfgc-blog-listing__wrapper--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Small screens */
@media (max-width: 480px) {
  .lfgc-blog-hero {
    padding: 30px 12px;
  }

  .lfgc-blog-hero__title {
    font-size: 24px;
  }

  .lfgc-blog-filters {
    padding: 15px 12px;
  }

  .lfgc-blog-filters__inner {
    gap: 12px;
  }

  .lfgc-blog-filter-tab {
    font-size: 12px;
    padding: 10px 0 12px 0;
  }

  .lfgc-blog-grid {
    padding: 30px 12px;
  }

  .lfgc-blog-card__image {
    height: 250px;
  }

  .lfgc-blog-card__title {
    font-size: 16px;
  }

  .lfgc-blog-card__date {
    font-size: 12px;
  }

  .lfgc-blog-pagination ul {
    gap: 5px;
  }

  .lfgc-blog-pagination a,
  .lfgc-blog-pagination span {
    padding: 5px 8px;
    font-size: 10px;
  }

  .lfgc-blog-load-more__button {
    font-size: 12px;
    letter-spacing: 0;
    padding: 14px 14px 15px;
    height: auto;
  }

  .lfgc-blog-prev-next__button {
    width: 40px;
    height: 40px;
  }

  .lfgc-blog-prev-next__arrow {
    width: 40px;
    height: 40px;
  }

  .lfgc-blog-prev-next__counter {
    font-size: 12px;
    min-width: 50px;
  }
}
