/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 130px 100px;
  background: var(--color-bg);
}


/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  padding: 0 130px;
  height: 154px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-tab {
  font-size: 28px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
  background: none;
  border: none;
  color: var(--color-muted);
  white-space: nowrap;
}

.filter-tab.active,
.filter-tab:hover {
  color: var(--color-white);
}

.filter-tab::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.filter-tab.active::after,
.filter-tab:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   ARTICLES GRID
   ============================================================ */
.articles {
  padding: 20px 54px 80px;
  background: var(--color-bg);
}

.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* POST CARDS */
.post-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: var(--card-height-fluid);
  background: var(--color-bg-card);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-card__bg-wrap {
  position: absolute;
  inset: 0;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.55s ease;
}

.post-card:hover .post-card__bg-wrap {
  transform: scale(1.06);
  filter: brightness(0.45) saturate(1.2);
}

.post-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.post-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.10) 60%,
    transparent 100%);
  transition: background 0.5s ease;
  z-index: 1;
}

.post-card:hover .post-card__overlay {
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.97) 0%,
    rgba(0, 0, 0, 0.82) 50%,
    rgba(255, 255, 255, 0.04) 100%);
}

.post-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 44px;
  z-index: 2;
}

.post-card__tag {
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  display: block;
}

.post-card__title {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-white);
}

.post-card__desc {
  font-size: var(--fs-label);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.45s ease,
              opacity 0.45s ease,
              transform 0.45s ease;
}

.post-card:hover .post-card__desc {
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s 0.07s ease,
              transform 0.4s 0.07s ease,
              gap 0.2s ease;
  text-decoration: none;
}

.post-card:hover .post-card__link {
  opacity: 1;
  transform: translateY(0);
}

.post-card__link:hover {
  gap: 10px;
}

.post-card--hidden {
  display: none;
}

.post-card[href] {
  text-decoration: none;
  color: inherit;
}

.post-card[href]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.articles__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  font-size: var(--fs-label);
  color: var(--color-muted);
  display: none;
}

/* ============================================================
   LOAD MORE
   ============================================================ */
.load-more {
  display: flex;
  justify-content: center;
  padding: 48px 0 80px;
}

.load-more__btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  padding: 30px 60px;
  font-size: var(--fs-label);
  font-weight: 500;
  cursor: pointer;
  background: none;
  color: var(--color-white);
  font-family: var(--font-base);
  transition: background 0.2s, border-color 0.2s;
}

.load-more__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   LAPTOP / SMALLER MONITOR SCREENS
   ============================================================ */
@media (min-width: 769px) and (max-width: 1280px) {

  .hero {
    padding: 120px 80px 180px;
  }

  .filter-tabs {
    padding: 0 80px;
    gap: 36px;
  }

  .filter-tab {
    font-size: clamp(18px, 2vw, 24px);
  }

  .articles {
    padding: 20px 54px 60px;
  }

  .articles__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .load-more {
    padding: 40px 0 70px;
  }
}

/* ============================================================
   MOBILE SCREENS
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: unset;
    padding: 80px 24px 120px;
  }

  .filter-tabs {
    padding: 0 24px;
    gap: 24px;
    height: 80px;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .filter-tab {
    font-size: 16px;
    white-space: nowrap;
  }

  .articles {
    padding: 20px 24px 60px;
  }

  .articles__grid {
    grid-template-columns: 1fr;
  }

  .load-more {
    padding: 32px 0 60px;
  }
}