.news_banner {
  background-color: var(--bg2);
  max-width: 256rem;
  margin: 0 auto;
  padding: 6.6rem 0 15.5rem;
}
.news_banner.img_bg > img {
  height: auto;
  top: unset;
  bottom: 0;
}
.news_banner h1 {
  max-width: 75.1rem;
}
.news_banner p {
  max-width: 58.5rem;
  margin-top: 1.3rem;
}
.news_popular {
  padding-top: 6.5rem;
}
.news_popular .news_popular_swiper {
  overflow: hidden;
  border-radius: 2.6rem;
}
.news_popular .news_popular_swiper .flex {
  height: 100%;
}
.news_popular .img {
  border-radius: 2.6rem;
  width: 49.23611111%;
  --h: 76.16361072%;
}
.news_popular .img .tag {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  display: inline-block;
  font-size: 1.266rem;
  font-weight: 700;
  color: #fff;
  background-color: #7dc242;
  text-transform: uppercase;
  border-radius: 100px;
  line-height: 1.5;
  padding: 0.7113em 1.343em;
  margin: 3.5261%;
  letter-spacing: 0.0394945em;
}
.news_popular .info {
  flex: 1;
  width: 100%;
  max-width: 64.7rem;
  padding-bottom: 7rem;
  padding-top: 3%;
}
.news_popular .info .metas {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: #505151;
  text-transform: uppercase;
  gap: 1.4rem;
  letter-spacing: 0.03em;
}
.news_popular .info .metas .cat {
  display: inline-block;
  font-size: 0.844em;
  line-height: 1.5;
  color: #fff;
  background-color: var(--secondary);
  border-radius: 1.2em;
  padding: 0.39534em 1.027em;
  letter-spacing: 0.07899em;
}
.news_popular .info .title {
  font-size: 3.375rem;
  line-height: 1.24444444;
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  max-width: 49.3rem;
  margin-top: 1.7rem;
}
.news_popular .info .desc {
  line-height: 1.59444444;
  max-width: 47.9rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 5;
  margin-top: 2.1rem;
}
.news_popular .info .btn_i {
  color: #1e5631;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3.2rem;
  gap: 1.2rem;
}
.news_popular .info .btn_i::after {
  background-image: url("../images/arrow-r-s.svg");
  width: 0.667em;
  height: 0.667em;
}
.news_popular .swiper_btns {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  z-index: 2;
}
.news_main {
  padding: 16rem 0 12.2rem;
}
.news_main .nav {
  max-width: 100%;
}
.news_main .nav .nav_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.news_main .nav .nav_item {
  display: block;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  font-weight: 500;
  color: rgba(11, 14, 30, 0.8);
  border: 1px solid #e5e5e5;
  border-radius: 1.25em;
  line-height: 1.5;
  padding: 0.4375em 1.46875em;
}
.news_main .nav .nav_item:hover,
.news_main .nav .nav_item.active {
  background-color: #0b7a3f;
  border-color: #0b7a3f;
  color: #fff;
}
.news_main .sort_btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  color: rgba(11, 14, 30, 0.8);
  border: 1px solid #e5e5e5;
  border-radius: 1.25em;
  line-height: 1.5;
  padding: 0.46875em 1.5em;
  gap: 0.875em;
}
.news_main .sort_btn::before {
  display: inline-block;
  content: '';
  flex-shrink: 0;
  width: 0.75em;
  height: 0.75em;
  transition: all 0.3s;
  background: url("../images/icon-menu.svg") no-repeat center / contain;
}
.news_main .sort_btn:hover {
  background-color: #0b7a3f;
  border-color: #0b7a3f;
  color: #fff;
}
.news_main .sort_btn:hover::before {
  filter: contrast(0) brightness(2);
}
.news_main .sort_dropdown {
  position: relative;
  flex-shrink: 0;
  
  z-index: 9;
}
.news_main .sort_menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}
.news_main .sort_dropdown.open .sort_menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.news_main .sort_menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(11, 14, 30, 0.7);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.news_main .sort_menu li a:hover {
  background-color: #f5f5f5;
  color: #0b7a3f;
}
.news_main .sort_menu li a.active {
  color: #0b7a3f;
  font-weight: 500;
}
.news_main .sort_dropdown.open .sort_btn {
  background-color: #0b7a3f;
  border-color: #0b7a3f;
  color: #fff;
}
.news_main .sort_dropdown.open .sort_btn::before {
  filter: contrast(0) brightness(2);
}
.news_main .list {
  margin-top: 3.5rem;
}
.news_main .list ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(35rem, 100%), 1fr));
  gap: 4.5rem 2.29166667%;
}
.news_main nav.navigation {
  margin-top: 6.3rem;
}
@media screen and (min-width: 769px) and (max-width: 896px) {
  .news_popular .info .title {
    font-size: 2.6rem;
  }
}
@media screen and (max-width: 768px) {
  .news_banner {
    padding: 30px 0 70px;
  }
  .news_popular {
    padding: 50px 0;
  }
  .news_popular .news_popular_swiper {
    border-radius: 10px;
  }
  .news_popular .img {
    border-radius: 10px;
  }
  .news_popular .img .tag {
    font-size: 12px;
    padding: 0.5em 1em;
  }
  .news_popular .info {
    padding: 0;
  }
  .news_popular .info .metas {
    font-size: 14px;
    gap: 10px;
  }
  .news_popular .info .title {
    font-size: 18px;
    margin-top: 10px;
  }
  .news_popular .info .desc {
    margin-top: 10px;
  }
  .news_popular .info .btn_i {
    margin-top: 20px;
    gap: 8px;
  }
  .news_popular .swiper_btns {
    position: static;
    justify-content: flex-end;
    margin-top: 30px;
  }
  .news_main {
    padding: 50px 0;
  }
  .news_main .nav .nav_list {
    width: calc(100% + 40px);
    padding: 0 20px;
    margin: 0 -20px;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
  }
  .news_main .nav .nav_list::-webkit-scrollbar {
    display: none;
  }
  .news_main .nav .nav_item {
    padding: 0.44em 1.2em;
    white-space: nowrap;
  }
  .news_main .sort_btn {
    padding: 0.44em 1.2em;
  }
  .news_main .list {
    margin-top: 30px;
  }
  .news_main .list ul {
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 30px 16px;
  }
  .news_main nav.navigation {
    margin-top: 40px;
  }
  .news_main .sort_dropdown{
    margin-left: auto;
  }
}
@media screen and (max-width: 576px) {
  .news_popular .img {
    width: 100%;
  }
}
