@charset "UTF-8";

/* =============================================================
  news.css
 =============================================================== */

/* archive-news
---------------------------------------------------------------- */
#archive-news .page-title,
#single-news .page-title {
  width: 22.29%;
  max-width: 428px;
}

#news {
  background: #d9fbfa;
  padding: 50px 0;
}

.news__block {
  background: var(--white);
  border-radius: 20px;
  padding: 50px 60px;
}

.news__block h3 {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 45px;
}

.news__list {
  border-top: 1px solid #bac0d5;
  margin: 0 0 55px;
}

.news__item {
  border-bottom: 1px solid #bac0d5;
  position: relative;
}

.news__item a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 0;
}

.news__item a:hover {
  opacity: 1;
}

.news__item a:hover .news__text {
  text-decoration: underline;
}

.news__date {
  font-size: 1.6rem;
  font-weight: 700;
  max-width: 185px;
  padding-left: 18px;
  width: 18.4%;
}

.news__category {
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  padding: 5px;
  width: 140px;
}

.news__text {
  flex: 1;
  font-size: 1.6rem;
  font-weight: 400;
  position: relative;
  padding-right: 30px;
}

.icon__new {
  background: #000;
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 2px 5px;
  padding: 0 5px 1px;
  text-align: center;
  vertical-align: middle;
}

.paging {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.paging a {
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bac0d5;
  color: var(--navy);
  width: 30px;
  height: 30px;
}

.paging a:hover {
  background: var(--navy);
  color: var(--white);
  opacity: 1;
}

.paging a.jp-previous:before,
.paging a.jp-next:before {
  content: "";
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-size: 7px;
  mask-position: center;
  background-color: var(--navy);
  width: 100%;
  height: 100%;
}

.paging a.jp-previous:before {
  mask-image: url(../images/news/arrow_left.svg);
}

.paging a.jp-next:before {
  mask-image: url(../images/news/arrow_right.svg);
}

.paging a.jp-previous:hover:before,
.paging a.jp-next:hover:before {
  background-color: var(--white);
}

.paging a.jp-current,
.paging a.jp-current:hover {
  background: var(--navy);
  color: var(--white);
  cursor: default;
}

.paging span {
  width: 30px;
  height: 30px;
  border: 1px solid #bac0d5;
  text-align: center;
}

.paging a.jp-hidden {
  display: none;
}

@media screen and (max-width: 1024px) {
  .news__block {
    padding: 50px 30px;
  }

  .news__date {
    width: 22%;
  }

  .news__text {
    padding-right: 18px;
  }
}

@media screen and (max-width: 768px) {
  #archive-news .page-title,
  #single-news .page-title {
    width: 47.95%;
    max-width: 360px;
  }

  #news {
    padding: 40px 0;
  }

  .news__block {
    border-radius: 10px;
    padding: 30px 20px 45px;
  }

  .news__block h3 {
    font-size: 1.9rem;
    margin-bottom: 25px;
  }

  .news__list {
    margin: 0 0 40px;
  }

  .news__item a {
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
  }

  .news__date {
    font-size: 1.5rem;
    max-width: 100%;
    padding-left: 0;
    width: 100%;
  }

  .news__category {
    font-size: 1.4rem;
    padding: 3px;
    width: 130px;
  }

  .news__text {
    font-size: 1.5rem;
    padding: 0;
    width: 100%;
  }

  .paging {
    gap: 3px;
  }

  .paging a {
    font-size: 1.4rem;
    width: 26px;
    height: 26px;
  }

  .paging a.jp-previous:before,
  .paging a.jp-next:before {
    mask-size: 6px;
  }

  .paging span {
    width: 26px;
    height: 26px;
  }
}

/* single-news
---------------------------------------------------------------- */
#single-news #news {
  padding: 50px 0 100px;
}

#single-news .news__block {
  padding: 55px 110px 30px;
}

.single-news__date {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.news__block .single-news__title {
  border-bottom: 1px solid #bac0d5;
  font-size: 3.2rem;
  line-height: 1.4;
  text-align: left;
  text-wrap: auto;
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.single-news__box {
  margin-bottom: 60px;
}

.single-news__box h4 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.8;
}

.single-news__box p {
  line-height: 1.8;
  margin-bottom: 30px;
}

.single-news__text--red {
  color: #e23d57;
}

.single-news__img {
  margin-bottom: 30px;
}

.single-news__block .button a {
  max-width: 324px;
}

@media screen and (max-width: 1024px) {
  #single-news .news__block {
    padding: 55px 70px 30px;
  }
}

@media screen and (max-width: 768px) {
  #single-news .news__block {
    padding: 30px 20px 5px;
  }

  .single-news__date {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .news__block .single-news__title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .single-news__box {
    margin-bottom: 40px;
  }

  .single-news__box h4 {
    font-size: 1.6rem;
    line-height: 1.6;
  }

  .single-news__box p {
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .single-news__img {
    margin-bottom: 20px;
  }
}
