/* =========================================================
   GLOBAL STYLES
   ========================================================= */

body {
  background-color: #F1F1F1;
}


/* =========================================================
   HERO SECTION
   ========================================================= */

.articles-hero {
  position: relative;
  width: 100%;
  height: 780px;
  overflow: hidden;
}

  .articles-hero .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    display: block;
    background-color: #F1F1F1;
  }

  .articles-hero .hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100% );
  }


/* =========================================================
   MAIN ARTICLE CARD
   ========================================================= */

.articles-card-container {
  width: 804px;
  max-width: 100%;
  margin: -80px auto 0;
  padding: 48px 64px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 14px;
  position: relative;
  z-index: 2;
}


/* =========================================================
   ARTICLE META (CATEGORY, TITLE, DATE)
   ========================================================= */

.article-category {
  position: absolute;
  display: inline-block;
  padding: 10px 20px;
  background-color: #E8E8E8;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: #364153;
  border-radius: 32px;
}

.article-category-icon {
  position: absolute;
  width: 26px;
  height: 26px;
  filter: brightness(0.3) saturate(100);
  left: 36px;
  top: 54px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 60px;
  padding: 64px 0 24px;
  margin: 0;
}

.article-date {
  padding-top: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6A6A6A;
}

.article-date-border {
  width: 686px;
  max-width: 100%;
  height: 64px;
  border-bottom: 1px solid #E5E7EB;
}

.calendar-icon {
  padding-bottom: 3px;
  padding-left: 3px;
  display: inline-flex;
}


/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.article-desc {
  line-height: 26px;
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: 28px;
  margin-bottom: 28px;
}


/* =========================================================
   ARTICLE IMAGE GRID
   ========================================================= */

.article-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  justify-content: start;
  margin-bottom: 48px;
  margin-top: 48px;
}

  .article-images-grid .article-img {
    width: 100%;
    height: 247px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    background-color: #F1F1F1;
  }


/* =========================================================
   NEXT ARTICLE PREVIEW
   ========================================================= */

.next-article-text {
  width: 804px;
  max-width: 100%;
  padding: 64px 0 32px;
  margin: 0 auto;
  position: relative;
  font-size: 24px;
  font-family: var(--font-heading);
}

.next-article-card-container {
  width: 804px;
  max-width: 100%;
  height: 260px;
  margin: 0 auto 80px;
  display: flex;
  column-gap: 24px;
  background-color: #F9FAFB;
  border-radius: 14px;
  overflow: hidden;
}

.next-article-card {
  display: flex;
  width: 100%;
}

.next-article-image {
  flex: 1;
  height: 100%;
  overflow: hidden;
}

  .next-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: 6px solid #FFF;
    background-color: #F1F1F1;
  }

.next-article-text-column {
  flex: 1;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* =========================================================
   NEXT ARTICLE CONTENT
   ========================================================= */

.next-article-category {
  display: inline-block;
  padding: 2px 8px;
  background-color: #E8E8E8;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #364153;
  border-radius: 8px;
  margin: 40px 32px 0 0;
}

.next-article-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: #364153;
  padding: 16px 32px 0 0;
  line-height: 32px;
}

.next-article-date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  padding: 12px 32px 0 0;
  color: #6A6A6A;
  margin: 0;
}

.next-article-readmore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 32px 0 0;
  text-decoration: none;
}

.next-article-readmore {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #0A0A0A;
  transition: color 0.2s;
}

.readmore-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100);
  transform: rotate(180deg);
}

.next-article-readmore-link:hover {
  text-decoration: underline;
  color: #000;
}


/* =========================================================
   MORE ARTICLES SECTION
   ========================================================= */

.more-articles-container {
  padding-bottom: 80px;
  margin: 0;
}

.more-articles-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
}

.more-articles-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.four-dots-icon {
  width: 17px;
  height: 17px;
}

.more-articles-title {
  padding-top: 8px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
}

.more-articles-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: #6A6A6A;
  padding-bottom: 48px;
}


/* =========================================================
   MORE ARTICLES GRID
   ========================================================= */

.more-articles-images {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.more-article-card {
  width: 442px;
  display: flex;
  flex-direction: column;
}

.more-article-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.more-article-link:hover {
  transform: translateY(-4px);
}

  .more-article-card img {
    width: 100%;
    height: 333px;
    object-fit: cover;
    border-radius: 12px;
    border: 6px solid white;
    background-color: #F1F1F1;
  }

.more-article-info {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

.more-article-category {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #6A6A6A;
  border: 1px solid #DBDBDB;
  border-radius: 32px;
  padding: 10px 12px;
  width: fit-content;
}

.more-article-title {
  padding-top: 16px;
  font-family: var(--font-heading);
  font-size: 28px;
  color: #090703;
  max-width: 334px;
  line-height: 34px;
}

.more-article-date {
  padding-top: 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: #888;
}


/* =========================================================
   RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 991px) {
  .article-title {
    font-size: 36px;
    line-height: 48px;
  }

  .next-article-text {
    font-size: 20px;
  }

  .next-article-title {
    font-size: 20px;
    line-height: 30px;
  }

  .more-articles-title {
    font-size: 34px;
  }

  .more-article-title {
    font-size: 24px;
    line-height: 30px;
  }
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 804px) {
  /* HERO */
  .articles-hero {
    height: 420px;
  }

  /* ARTICLE CARD */
  .articles-card-container {
    margin-top: 0px;
    padding: 24px 20px;
    border-radius: 0px;
  }

  .article-category {
    position: static;
    margin-bottom: 12px;
  }

  .article-category-icon {
    display: block;
    left: 20px;
    top: 24px;
  }

  .article-title {
    font-size: 28px;
    line-height: 40px;
    padding-top: 24px;
  }

  .article-date-border {
    height: auto;
    padding-bottom: 16px;
  }

  /* NEXT ARTICLE */
  .next-article-card-container {
    margin: 0 20px 64px;
    max-width: calc(100% - 40px);
  }

  .next-article-text {
    font-size: 18px;
    padding: 48px 20px 24px;
    text-align: center;
  }

  .next-article-image {
    height: 260px;
  }

  .next-article-text-column {
    padding: 24px 0;
  }

  .next-article-title,
  .next-article-date,
  .next-article-readmore-link {
    font-size: 12px;
    padding-right: 16px;
  }

  .next-article-category {
    margin: 0 16px 0 0;
  }

  .next-article-title {
    font-size: 18px;
    line-height: 28px;
  }

  .more-articles-title {
    font-size: 32px;
  }

  .more-article-title {
    font-size: 22px;
    line-height: 28px;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 476px) {
  .article-images-grid {
    grid-template-columns: 1fr;
  }

    .article-images-grid .article-img {
      height: 220px;
    }

  .article-title {
    font-size: 22px;
    line-height: 32px;
  }

  .next-article-card-container {
    flex-direction: column;
    height: auto;
    margin-bottom: 64px;
  }

  .next-article-card {
    flex-direction: column;
  }

  .next-article-image {
    height: 280px;
  }

  .next-article-text-column {
    padding-left: 16px;
  }

  .next-article-text {
    font-size: 16px;
  }

  .next-article-title {
    font-size: 16px;
    line-height: 24px;
  }

  .article-desc p {
    font-size: 14px;
  }

  .more-articles-container {
    padding: 0 16px 64px;
  }

  .more-article-card {
    width: 100%;
  }

    .more-article-card img {
      height: 300px;
    }

  .more-article-title {
    font-size: 18px;
    line-height: 24px;
  }

  .more-articles-title {
    font-size: 24px;
  }

  .more-articles-subtitle {
    font-size: 13px;
    padding-bottom: 32px;
  }
}


/* =========================================================
   RESPONSIVE — LARGE TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1350px) and (min-width: 896px) {
  .more-articles-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 24px;
  }

  .more-article-card {
    width: 100%;
  }
}
