.article-grid {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-grid {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.article-grid__wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.article-grid__header {
  width: 100%;
  margin-bottom: 2rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-grid__header {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
  }
}

.article-grid__header aside p {
  font-size: 15px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.article-grid__header h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-grid__header h2 {
    font-size: 42px;
  }
}

.article-grid__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-grid__list {
    width: 100%;
  }
}

.article-grid__list article {
  margin-bottom: 2rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-grid__list article {
    width: 48%;
  }
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .three-columns .article-grid__list article {
    width: 32%;
  }
}

.article-grid__list article a {
  display: block;
  background-color: var(--white);
  height: 100%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.article-grid__list article a:hover {
  background-color: #F1FFED;
  transform: translateY(-2px);
}

.article-grid__list article a header {
  padding: 1rem;
  background-color: var(--white);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.article-grid__list article a:hover header {
  background-color: #F1FFED;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-grid__list article a header {
    padding: 2rem;
  }
}

.article-grid__list article a header h3 {
  font-size: 24px;
  letter-spacing: -0.5px;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-grid__list article a header h3 {
    font-size: 28px;
    max-width: 80%;
  }
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .three-columns .article-grid__list article a header h3 {
    font-size: 28px;
    max-width: 100%;
  }
}

.article-grid__list article a figure {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.article-grid__list article a figure img {
  width: 100%;
  max-height: 365px;
  height: 100%;
  object-fit: cover;
}

/* Pagination Styles */
.article-grid__pagination {
  font-family: var(--body-font-family);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem;
}

.article-grid__pagination a {
  padding: 0.5rem 1rem;
  background-color: var(--white);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-color);
  transition: background-color 0.2s ease;
}

.article-grid__pagination a:hover {
  background-color: #F1FFED;
}

.article-grid__pagination-current {
  padding: 0.5rem 1rem;
  background-color: #F1FFED;
  border-radius: 5px;
  font-weight: bold;
}

.article-grid__pagination-prev,
.article-grid__pagination-next {
  font-weight: bold;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .article-grid__pagination {
    margin-top: 3rem;
  }
}