.articles-list {
  display: flex;
  gap: 48px;
  margin-bottom: 64px;

  @media (max-width: 800px) {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
  }
}

.articles-list__large-article {
  flex: 2;

  @media (max-width: 1020px) {
    flex: 1;
  }
}

.articles-list__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 3;

  @media (min-width: 1020px) {
    & .post-card__title {
      font-size: 34px;
    }
  }

  @media (max-width: 1020px) {
    flex: 1;
  }
}


/* FEATURED ARTICLES */
.featured-articles {
  display: flex;
  gap: 40px;
  margin-bottom: 64px;

  @media (max-width: 1020px) {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
  }

  @media (max-width: 600px) {

    & .post-card {
      flex-direction: column;
    }

    & .post-card__image {
      max-height: 240px;
      /* aspect-ratio: 3/2; */
      /* height: 240px; */
      margin-bottom: 20px !important;
    }
  }
}

.featured-articles__large-article {
  flex: 1;

  & .post-card__image {
    max-height: 240px;
    width: 100%;
    /* aspect-ratio: 4/2; */
  }

  @media (max-width: 1020px) {
    flex-direction: row;

    & .post-card__image {
      flex: 1;
      /* aspect-ratio: 3/2; */
      margin-right: 34px;
      margin-bottom: 0;
    }

    & .post-card__content {
      flex: 2;
    }
  }
}

.featured-articles__post-and-baner {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 32px;
  container-type: inline-size;
}


/* HERO */
.hero {
  display: flex;
  gap: 40px;
  margin-bottom: 64px;

  @media (max-width: 1020px) {
    flex-direction: column;
    gap: 32px;
  }

  @media (max-width: 640px) {
    margin-bottom: 32px;
  }

  &:hover {
    .hero-title {
      text-decoration-line: underline;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 3px;
      text-decoration-color: var(--clr-theme-pop-element);
    }
  }
}

.hero-image {
  display: flex;
  align-items: flex-end;
  flex: 1;
  border-radius: 20px;
  background-color: var(--clr-bg-3);
  overflow: hidden;
  object-fit: cover;
}

.hero-content {
  align-self: flex-end;
  flex: 1.1;
  display: flex;
  flex-direction: column;

  @media (max-width: 1020px) {
    flex: 1;
    align-self: flex-start;
  }
}

.hero-caption {
  font-size: 14px;
  color: var(--clr-text-2);
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--text-fontfamily-accent);
  color: var(--clr-text-1);
  text-wrap: balance;
  text-decoration: none;
  line-height: 1.05;
  font-size: 58px;
  margin-bottom: 16px;

  @media (max-width: 1200px) {
    font-size: 48px;
  }

  @media (max-width: 640px) {
    font-size: 38px;
  }
}

.hero-excerpt {
  font-size: 18px;
  color: var(--clr-text-1);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 16px;
  color: var(--clr-text-1);
  line-height: 1.6;
  -webkit-line-clamp: 4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.yt-promo {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 64px;

  @media (max-width: 1200px) {
    flex-direction: column;
    margin-bottom: 40px;
  }
}

.yt-promo__large-preview {
  flex: 3;
  min-height: 420px;

  @media (max-width: 1200px) {
    aspect-ratio: 16/9;
    min-height: auto;
  }
}

.yt-promo__content {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: space-between;
  padding: 34px;
  background-color: rgb(219, 233, 229);
  background-size: cover;

  @media (max-width: 1200px) {
    padding: 20px;
  }
}

.yt-promo__header {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
  justify-content: space-between;
}

.yt-promo__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  @media (max-width: 1200px) {
    display: none;
  }
}

.yt-promo__logos__bb {
  width: 100%;
  min-width: 100px;
  max-width: 220px;

}

.yt-promo__title {
  color: var(--clr-text-1);
  text-wrap: balance;
  text-decoration: none;
  line-height: 1.1;


  & h2 {
    font-family: var(--text-fontfamily-accent);
    font-size: 48px;
    font-size: 48px;
    margin-bottom: 10px;
  }

  &:hover {
    & h2 {
      text-decoration-line: underline;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 3px;
    }
  }
}


.yt-promo__previews {
  display: flex;
  margin-bottom: -90px;
  margin-right: -50px;
  overflow: hidden;
  gap: 10px;
  transition: all 0.2s ease-in-out;

  &:hover {
    margin-bottom: -40px;
  }
}

.yt-promo__preview {
  height: 150px;

  border-radius: 10px;
  overflow: hidden;
  background-color: var(--clr-bg-3);
  background-size: cover;
  transition: all 0.2s ease-in-out;

  &:first-child {
    width: 240px;

    &:hover {
      width: 260px;
    }
  }

  &:not(:first-child) {
    flex: 1;

    &:hover {
      flex: 1.4;
    }
  }


}

