/* newsArchive */

.newsArchive {
  padding: 0px !important;
}

.newsArchive__container {
  display: flex;
  padding-top: 80px;
  gap: 4vw;
  width: 90%;
  margin: auto;
}

.newsArchive__genreBtnContainer {
  width: 160px;
  height: fit-content;
  position: sticky;
  top: 100px;
  margin-bottom: 120px;
}

.newsArchive__genreBtn {
  margin-bottom: 0.5em;
}

.newsArchive__genreBtn a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  line-height: 2rem;
  color: var(--bg);
  white-space: nowrap;
  border: 1px solid var(--bg);
  background-color: var(--bggradient);
  padding: 4px 12px;
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
}

.newsArchive__genreBtn a:hover {
  background-color: var(--bg);
  color: #fff;
}

.newsArchive__postContainer {
  flex: 1;
}

.newsArchive__post {
  display: flex;
  gap: 24px;
  padding-top: 40px;
}

.newsArchive__post:first-child {
  padding: 0;
}

.newsArchive__thumbnail {
  flex: 1;
}

.newsArchive__thumbnailImg {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 8px;
}

.newsArchive__post .newsArchive__thumbnailImg img {
  transition: transform 0.3s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsArchive__post:hover .newsArchive__post .newsArchive__thumbnailImg img {
  transform: scale(1.1);
}

.newsArchive__thumbnailNoImg img {
  object-fit: contain !important;
}

.newsArchive__textArea {
  flex: 1;
}

.newsArchive__info {
  display: flex;

  font-weight: bold;
  color: var(--btn);
}

.newsArchive__title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text);
  margin-top: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.newsArchive__title a {
  color: var(--text);
}

.newsArchive__infoCategory a {
  color: var(--btn);
}

/* animation */

.newsArchive__thumbnailImg img:hover {
  transform: scale(1.1);
  transition: transform 0.6s;
}

.newsArchive__title a:hover {
  color: var(--btn);
  transition: color 0.2s;
}

/* pagination */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-bottom: 80px;
  margin-top: 80px;
}

.current {
  padding: 16px;
  background: var(--btn) !important;
  color: var(--white) !important;
  font-weight: bold;
  border-radius: 100vh;
}

.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 16px;
  background: var(--bggradient);
  color: var(--btn);
  font-weight: bold;
  border-radius: 50%;
}

/* breadcrumbs */

.breadcrumbs {
  display: flex;
  align-content: center;
  gap: 4px;
  padding-top: 40px;
}

.breadcrumbs__list {
  display: flex;
  justify-content: center;
  align-content: center;
}

.breadcrumbs__list.breadcrumbs__listNewsTitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.breadcrumbs__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

a.breadcrumbs__listNews {
  white-space: nowrap;
}

.breadcrumbs__list i {
  margin-left: 4px;

  font-weight: bold;
  color: var(--btn) !important;
}

/* newsSingle */
.newsSingle__content {
  margin-top: 80px;
}

a.newsSingle__content {
  padding: 40px 0px;
  max-width: 800px;
  margin: 0 auto;
  color: #000;
}

.newsSingle__info {
  display: flex;
  gap: 4px;

  margin-top: 8px;
  font-weight: bold;
  color: var(--btn);
}

.newsSingle__title {
  font-size: 28px;
  font-weight: bold;
}

.newsSingle__thumbnail {
  margin-top: 40px;
}

.newsSingle__thumbnailImg img {
  border-radius: 8px;
}

.newsPost__info {
  font-weight: bold;
}

.newsSingle__infoCategory a {
  color: var(--btn);
}

.newsPost__category a {
  padding: 4px 8px;
  background: var(--bg);
  color: var(--white) !important;
  border-radius: 40px;
}

@media screen and (max-width: 860px) {
  .newsArchive__container {
    padding: 80px 0;
    flex-direction: column;
    gap: 40px;
    width: 90%;
    margin: auto;
  }
  .newsArchive__genreBtnContainer {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    position: static;
  }
  .newsArchive__genreBtnContainer::-webkit-scrollbar {
    display: none;
  }
  .newsArchive__genreBtn {
    width: 100%;
    margin: 0px;
    border-radius: 40px;
    text-align: center;
  }

  .newsArchive__genreBtn a {
    width: 100%;
    padding: 4px 16px;
    margin: 0 auto;
  }

  .newsArchive__post {
    gap: 8px;
    flex-direction: column;
    padding-top: 60px;
  }
  .newsArchive__title {
    margin: 0;
    font-size: 20px;
  }

  .pagination {
    margin: 0;
  }

  .breadcrumbs {
    padding-top: 0;
  }
}
