.news {
  position: relative;
  padding: 178px 0;
  background-color: #fff;
  height: 100%;
  overflow: hidden;
}

.news-page {
  padding: 100px 0;
}

.news__container {
  position: relative;
  z-index: 2;
}

.news__title {
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.news__subtitle {
  font-family: 'Bebas-Neue-bold';
  position: absolute;
  font-size: 220px;
  line-height: 20px;
  color: #F0F1F3;
  z-index: 1;
}

.news__all {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.news__all-link {
  color: #1D1C1C;
  font-size: 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 5px 0;
  transition: color .3s ease;
}

.news__arrow {
  transition: transform .4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.news__all-link:hover .news__arrow {
  transform: translateX(8px) scale(1.1);
}

.news__content {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.news__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 20px;
}

.news__link {
  text-decoration: none;
  color: #747880;
  transition: all .4s ease;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news__link:hover .news__card-title {
  color: #FF1493;
}

.news__card-pic,
.news__img {
  width: 100%;
  border-radius: 16px;
}

.news__card-pic {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.news__arrow {
  margin-left: 10px;
}

.news__card-title {
  margin-bottom: 10px;
  color: #1D1C1C;
  font-weight: 600;
  flex-shrink: 0;
}

.news__card-text {
  flex-grow: 1;
  margin-bottom: 0;
}

.pagination {
  padding: 40px 0 80px 0;
  background-color: #fff;
}

.pagination__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #DEE1E5;
  color: #1D1C1C;
}

.pagination__item:hover {
  background-color: #c8ccd1;
  transform: translateY(-2px);
}

.pagination__item--active {
  background-color: #1D1C1C;
  color: #DEE1E5;
}

.pagination__item--active:hover {
  background-color: #1D1C1C;
  transform: none;
  cursor: default;
}

.pagination__item--prev,
.pagination__item--next {
  font-weight: 700;
}


/* detail */

.news-detail__container {
  margin-top: 40px;
  padding-bottom: 140px;
  max-width: 950px;
}

.news-detail__title {
  font-family: 'Bebas-Neue-bold';
  font-size: 72px;
  line-height: 84px;
  color: #1D1C1C;
  margin-bottom: 16px;
}

.news-detail__date {
  margin-bottom: 48px;
}

.news-detail__pic,
.news-detail__img {
  width: 100%;
  border-radius: 16px;
}

.news-detail__pic {
  margin-bottom: 48px;
}

.news-detail__text {
  margin-bottom: 24px;
}

.news__pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 6;
}

.news__pagination .swiper-pagination-bullet {
  width: 90px; 
  height: 3px; 
  border-radius: 0;
  background: rgba(205, 210, 216, 1);
  opacity: 1;
  transition: all 0.3s ease;
}

.news__pagination .swiper-pagination-bullet-active {
  background: #FF1493; 
  transform: none; 
}

.news__swiper {
  display: none !important;
}

@media (max-width:1500px) {
  .news__subtitle {
    font-size: 120px;
  }
}

@media (max-width: 1200px) {
  .news {
    padding: 100px 0 64px 0;
  }
}

@media (max-width: 768px) {
  .news__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news__subtitle {
    display: none;
  }
  .news-page {
    padding: 40px 0;
  }
}

@media (max-width: 520px) {
  .news__content {
    display: none;
  }

  .news-page .news__content {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    display: grid;
  }
  
  .news__swiper {
    display: block !important;
  }
}