/* color */
/* font */
/* transition */
.newsCategoryList a,
.toolbar .btn span,
.newsTopList .newsItem::before,
.newsTopList .newsItem:hover .date:after,
.newsTopList .newsItem:hover .date {
  transition: all 0.5s ease-in-out;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.newsCategoryList {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

@media (max-width: 640px) {
  .newsCategoryList {
    flex-wrap: wrap;
  }
}

.newsCategoryList a {
  color: #fff;
  font-weight: 500;
  padding: 10px 40px;
  background-color: #3d6933;
  border-radius: 18px;
}

@media (max-width: 640px) {
  .newsCategoryList a {
    padding: 5px 25px;
  }
}

@media (min-width: 1181px) {
  .newsCategoryList a:hover {
    color: #3d6933;
    background-color: #fff22b;
  }
}

.newsCategoryList a.current {
  color: #3d6933;
  background-color: #fff22b;
}

.newsTopList {
  margin-bottom: 50px;
}

.newsTopList .newsItem {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}

.newsTopList .newsItem:hover::before,
.newsTopList .newsItem:hover::after {
  opacity: 1;
}

.newsTopList .newsItem:hover .date {
  color: #fff;
}

.newsTopList .newsItem:hover .date:after {
  background-color: #fff;
}

.newsTopList .newsItem:hover .textBox .title {
  color: #fff;
}

.newsTopList .newsItem:hover .textBox .desc {
  color: #dfcbad;
}

.newsTopList .newsItem::before{
  content: "";
  position: absolute;  
  width: 80%;
  height: 320px;
  right: 0;
  top: -20px;
  background-color: #335c29;
  z-index: 1;
  box-shadow: 0px 1px 9.3px 0.7px rgba(0, 0, 0, 0.54);  
  opacity: 0;
}

.newsTopList .newsItem::after{
  content: "";
  position: absolute;  
  width: 120px;
  height: 120px;
  background-image: url('../assets/images/news_deco_circle2.png');
  background-size: cover;
  background-size: center;
  background-repeat: no-repeat;
  right: 125px;
  top: -70px;
  z-index: 2;
  opacity: 0;
}

@media (max-width: 768px) {
  .newsTopList .newsItem {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .newsTopList .newsItem {
    flex-direction: column;
  }
}

.newsTopList .newsItem .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.newsTopList .newsItem .imgBox {
  flex-basis: 42%;
  flex-shrink: 0;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.newsTopList .newsItem .imgBox img {
  width: 100%;
  height: 275px;
  object-fit: cover;
  aspect-ratio: 385/275;
}

.newsTopList .newsItem .textBox {
  flex: 1;
  padding-right: 90px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .newsTopList .newsItem .textBox {
    padding-right: 30px;
  }
}

.newsTopList .newsItem .date {
  color: #593f29;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .newsTopList .newsItem .date {
    margin-bottom: 20px;
  }
}

.newsTopList .newsItem .date:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: #593f29;
  rotate: 45deg;
  left: -20px;
  bottom: 5px;
}

.newsTopList .newsItem .title {
  color: #3d6933;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.2;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newsTopList .newsItem .text {
  color: #a5c48e;
  font-weight: 500;
  letter-spacing: 1.6px;
  line-height: 1.3125;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newsTopList .newsItem .btnBox {
  margin-top: 20px;
  justify-content: flex-end;
}

.newsList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

@media (max-width: 768px) {
  .newsList {
    grid-template-columns: repeat(2, 1fr);
  }
}

.newsList .newsItem {
  position: relative;
  padding-bottom: 30px;
  border-bottom: 1px solid #593f29;
}

.newsList .newsItem .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.newsList .newsItem .imgBox {
  margin-bottom: 20px;
  max-width: 100%;
}

.newsList .newsItem .imgBox img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 325/275;
}

.newsList .newsItem .date {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2.16px;
  color: #593f29;
  margin-bottom: 15px;
  position: relative;
}

.newsList .newsItem .date:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: #593f29;
  rotate: 45deg;
  left: -20px;
  bottom: 5px;
}

.newsList .newsItem .title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.4;
  color: #3d6933;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.newsList .newsItem .text {
  color: #a5c48e;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1.8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.newsList .newsItem .btnBox {
  justify-content: flex-end;
}

.newsInfo .topBox {
  max-width: 810px;
  margin: 0 auto 50px;
}

.newsInfo .imgBox {
  text-align: center;
}

.newsInfo .date {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2.16px;
  color: #593f29;
  position: relative;
  margin-left: auto;
  width: fit-content;
}

.newsInfo .date:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: #593f29;
  rotate: 45deg;
  left: -20px;
  bottom: 5px;
}

.newsInfo .pageTitle {
  color: #386934;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3.6px;
}

.toolbar {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

@media (max-width: 640px) {
  .toolbar {
    flex-wrap: wrap;
    padding: 10px 0;
  }
}

.toolbar .btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
  font-size: 14px;
  color: #593f29;
  letter-spacing: 0.84px;
}

@media (max-width: 640px) {
  .toolbar .btn {
    width: 50%;
    margin: 10px 0;
  }
}

@media (min-width: 1181px) {
  .toolbar .btn:hover span {
    transform: translateX(15px);
  }
}