.news-filter {
  background: #f2f2f2;
  padding: 10rem 0;

  display: none;
}

.news-filter__select-wrap {
  position: relative;
  max-width: 30rem;
  margin-bottom: 3rem;
}

.news-filter__select {
  font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
  padding: 2rem 5rem 2rem 3rem;
  border: none;
  border-radius: 5px;
  background: #fff;
  color: #666;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  cursor: pointer;
}

.news-filter__select:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

.news-filter__select-wrap::after {
  content: "";
  position: absolute;
  right: 2.5rem;
  top: 2rem;
  transform: rotate(45deg);
  width: 10px;
  height: 10px;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  pointer-events: none;
}

.news-filter__category-wrap {
  width: 100%;
}

.news-category-filter {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

.news-category-filter li {
  width: calc((100% - 4rem) / 5);
}

.news-category-filter li button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3.2rem;
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  font-weight: 500;
  border-radius: 8px;
  background-color: #fff;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 10rem;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-family: futura-pt, sans-serif;
  border: 0;
}

.news-category-filter li button:hover {
  background-color: #f8f8f8;
  border-color: #bbb;
  color: #333;
}

.news-category-filter li button.is-active {
  background-color: #555;
  color: #fff;
  border-color: #555;
  font-weight: 600;
}

.news-list-section {
  margin-top: 10rem;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10rem 5rem;
  align-items: stretch;
  min-height: 60rem;
}

.news-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.news-item__thumb {
  margin-bottom: 3rem;
  height: 20rem;
  overflow: hidden;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item__thumb img {
  display: block;
  object-fit: contain;
}

.news-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  margin-bottom: 2rem;
  font-family: 'futura-pt', sans-serif;
}

.news-item__category {
  color: #fff;
  background: linear-gradient(-45deg, #662d91, #1992cb);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-transform: capitalize;
  white-space: nowrap;
  line-height: 1.4;
  display: inline-block;
  text-align: center;
}

.newsList .news-item__category {
  min-width: 10rem;
}

.news-item__date {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
  color: #999;
  font-family: 'futura-pt', sans-serif;
}

.news-item__title {
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  font-weight: 500;
  color: #000;
  line-height: 1.6;
  margin-bottom: 1rem;
}


#newsList.fadeout {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#newsList.fadein {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.bg-gray-page {
  padding: 10rem 0;
}

article.single-news {
  padding: 5rem 5rem 10rem;
  background-color: #fff;
}

.single-news__header {
  text-align: left;
  margin-bottom: 3rem;
}

.single-news__title {
  font-size: clamp(1.8rem, 1.622rem + 0.89vw, 2.4rem);
  font-weight: 700;
  line-height: 1.6;
  margin: 5rem 0;
}

.single-news__thumb {
  margin-bottom: 2rem;
}

.single-news__thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.single-news__content {
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  line-height: 2;
  padding-bottom: 6rem;
  margin-bottom: 6rem;
  border-bottom: 1px solid #CCC;
}

.single-news__content p {
  margin-bottom: 5rem;
}

.single-news__content img {
  /* width: 100%; */
}

.single-news__detail-link {
  width: 35rem;
}

.single-news__detail-link .btn-detail {
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 2.2rem 4rem;
  border-radius: 40px;
  font-weight: 500;
  position: relative;
  width: 100%;
}

.single-news__detail-link .icon-link {
  background: url('../images/common/icon-visit-site.svg') no-repeat center;
  width: 16px;
  height: 16px;
}

.single-news__detail-link .icon-link::before {
  content: none;
}

.single-news__footer .btn-archive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  padding: 1.5rem 4rem;
  border-radius: 4rem;
  position: relative;
}

.single-news__footer .btn-archive:before {
  border-color: #000;
  border-style: solid;
  border-width: 1px 1px 0 0;
  content: "";
  display: block;
  left: 1rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-135deg);
  width: 14px;
  height: 14px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  padding: 1.4rem 3rem;
  border-radius: 4rem;
  position: relative;
  justify-content: center;
}

.single-news__share-buttons .btn-share span {
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
}

.btn-share .icon-facebook {
  background: url('../images/common/facebook-icon.svg') no-repeat center;
}

.btn-share .icon-x {
  background: url('../images/common/x-icon.svg') no-repeat center;
}

.icon-facebook::before,
.icon-x::before {
  content: none !important;
}

.single-news__footer {
  padding: 4rem 0 0 5rem;
}

.single-news__footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.single-news__share-buttons {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
}

.no-posts {
  font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
}

/* PC */
@media (max-width: 1440px) {}

@media (max-width: 1280px) {}

@media (max-width: 1024px) {}

/* Tablet */
@media (max-width: 768px) {
  .bg-gray-page {
    padding: 5rem 0;
  }

  .news-filter {
    padding: 10rem 0 5rem;
  }

  .news-filter__select-wrap {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .news-filter__select {
    padding: 1.4rem 4rem 1.4rem 2rem;
  }

  .news-filter__select-wrap::after {
    right: 2rem;
    top: 1.4rem;
  }

  .news-category-filter {
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1.5rem;
  }

  .news-category-filter li {
    width: 100%;
  }

  .news-category-filter li button {
    padding: 1rem 1.6rem;
  }

  .news-list-section {
    margin-top: 5rem;
  }

  .news-list {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .news-item {
    padding-bottom: 1rem;
  }

  article.single-news {
    padding: 3rem;
  }

  .single-news__category {
    font-size: clamp(1rem, 0.98rem + 0.1vw, 1.1rem);
    padding: 0.4rem 1rem;
    margin-bottom: 0.6rem;
  }

  .single-news__content p {
    margin-bottom: 3rem;
  }

  .single-news__header {
    margin-bottom: 0;
  }

  .single-news__date {
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
  }

  .single-news__title {
    font-size: clamp(1.5rem, 1.44rem + 0.3vw, 1.8rem);
    line-height: 1.5;
    margin: 2rem 0;
  }

  .single-news__thumb {
    text-align: center;
    margin-bottom: 3rem;
  }

  .single-news__thumb img {
    width: 100%;
  }


  .single-news__content {
    font-size: clamp(1.2rem, 1.111rem + 0.44vw, 1.5rem);
    line-height: 1.8;
    margin-bottom: 3rem;
    padding-bottom: 0;
  }

  .single-news__footer .btn-archive {
    padding: 1rem 3rem;
  }

  .single-news__share {
    flex-direction: column;
    align-items: center;
  }

  .single-news__share a,
  .single-news__share button {
    width: 100%;
    text-align: center;
  }

  .single-news__footer .btn-archive:before {
    width: 10px;
    height: 10px;
  }

  .single-news__footer {
    padding: 3rem 0 0 2rem;
  }

  .single-news__footer-inner {
    flex-wrap: wrap;
  }

  .single-news__detail-link {
    width: 100%;
    margin: 0 auto 3rem;
  }

  .single-news__share-buttons {
    width: 100%;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .btn-share {
    width: 100%;
  }
}

/* Smartphone */
@media (max-width: 480px) {}