:root {
  --border-radius: 1.5625rem;
  --offset-top: -1.5625rem;
  --font-family: 'Montserrat', sans-serif;
  --content-offset-top: -10.09rem; /* 10.09rem / 26.65625rem */
  --bg-color: #e4e4e4;
  --article-title: 2.8125rem;
}

.related-articles-section {
  background-color: var(--bg-color);
  padding-bottom: calc(2.09rem - var(--offset-top));
  position: relative;
  margin-top: var(--content-offset-top);
  z-index: 2;
}

.section-title {
  color: #000;
  font-family: var(--font-family);
  font-size: var(--article-title);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-align: left;
  padding-bottom: 1.88rem;
}
.article-item:hover .article-title,
.article-item:hover .article-description,
.article-item:hover .article-date{
  color: #7b57ff; 
  transition: all 0.3s ease;
}
@media screen and (max-width: 820px) {
  .section-title {
    font-size: 2.2875rem;
  }
}

@media screen and (max-width: 552px) {
  .section-title {
    font-size: 1.6rem;
  }
}

.related-articles-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  /* width: 300px; */
}

.article-card {
  background-color: transparent;
  border-radius: 0.59941rem;
  /* overflow: hidden; */
  cursor: pointer;
  /* transition: transform 0.3s ease; */
}

/* .article-card:hover {
  transform: translateY(-5px);
} */

.article-image img {
  border-radius: 0.59941rem;
  width: 100%;
  /* max-height: 11.21875rem; */
  aspect-ratio: 14.96875 / 11.21875;
  object-fit: cover;
}

.article-content {
  /* padding: 20px; */
}



.article-title {
  margin-top: 0.28rem;
  color: #000;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-description {
  color: #000;
  font-family: var(--font-family);
  font-size: 0.5625rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-date {
  margin-top: 0.94rem;
  color: #000;
  font-family: var(--font-family);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
  color: #000;
}

.swiper-pagination {
  bottom: 10px;
}
