@font-face {
  font-family: 'Graphik';
  src: url("../font/Graphik-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Graphik';
  src: url("../font/Graphik-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Graphik';
  src: url("../font/Graphik-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Graphik';
  src: url("../font/Graphik-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

#news .s1 h1 {
  margin-bottom: 5.5rem;
}

#news .s1 .wrap {
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#news .s1 .wrap .filters {
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}

#news .s1 .wrap .filter-dropdown {
  position: relative;
}

#news .s1 .wrap .filter-dropdown .filter-btn {
  background: #5B784D;
  border-radius: 25px;
  color: #fff;
  padding: 12px 40px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  font-weight: 300;
}

#news .s1 .wrap .filter-dropdown .filter-btn:hover {
  background: #6CAB69;
}

#news .s1 .wrap .filter-dropdown .filter-btn.active {
  background: #6CAB69;
}

#news .s1 .wrap .filter-dropdown .filter-dropdown-content {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  border-radius: 10px;
  min-width: 190px;
  z-index: 1000;
  display: none;
  padding: 1.67rem;
}

#news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #23221F;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.1rem;
  transition: background-color 0.2s ease;
}

#news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio input[type="radio"] {
  display: none;
}

#news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio .radio-custom {
  width: 20px;
  height: 20px;
  border: 1px solid #224E42;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
}

#news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio .radio-custom::after {
  content: '';
  width: 14px;
  height: 14px;
  background: #6CAB69;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

#news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio input[type="radio"]:checked + .radio-custom {
  border-color: #6CAB69;
}

#news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio input[type="radio"]:checked + .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

#news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio:last-of-type {
  margin-bottom: 0;
}

#news .s1 .wrap .content-type-buttons {
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}

#news .s1 .wrap .content-type-buttons .content-btn {
  border-radius: 25px;
  color: #fff;
  padding: 11px 40px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: solid 1px #fff;
  font-weight: 300;
  background: none;
}

#news .s1 .wrap .content-type-buttons .content-btn:hover {
  background: #fff;
  color: #224E42;
}

#news .s1 .wrap .content-type-buttons .content-btn.active {
  background: #fff;
  color: #224E42;
}

#news .s1 .wrap .search-wrapper {
  position: relative;
  flex-shrink: 0;
}

#news .s1 .wrap .search-wrapper .search-input {
  border: 1px solid #fff;
  border-radius: 50px;
  color: #fff;
  padding: 13px 60px 13px 24px;
  font-size: 16px;
  width: 500px;
  height: 45px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  outline: none;
  background: none;
}

#news .s1 .wrap .search-wrapper .search-input::placeholder {
  color: #fff;
  font-size: 16px;
}

#news .s1 .wrap .search-wrapper .search-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

#news .s1 .wrap .search-wrapper .search-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

#news .s1 .wrap .search-wrapper .search-btn svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

#news .s2 {
  background: #E7E6E2;
}

#news .s2 .featured .article {
  display: block;
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
}

#news .s2 .featured .article .img-wrap {
  width: 50%;
  position: relative;
  max-height: 400px;
  overflow: hidden;
}

#news .s2 .featured .article .img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#news .s2 .featured .article .img-wrap .sec {
  padding: 7px 30px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 16px;
  line-height: 20px;
  color: #fff;
  position: absolute;
  top: 20px;
  left: 20px;
  border-radius: 100px;
}

#news .s2 .featured .article .main {
  width: 50%;
  background: #fff;
  padding: 2.7rem 1rem;
}

#news .s2 .featured .article .main > div {
  max-width: 455px;
  margin: 0 auto;
}

#news .s2 .featured .article .main h4 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 300;
  color: #23221F;
}

#news .s2 .featured .article .main h3 {
  font-size: 1.88rem;
  line-height: 2.4rem;
  color: #23221F;
  margin: 1.67rem 0 3.35rem 0;
}

#news .s2 .featured .article .main .global-btn {
  border-color: #224E42;
}

#news .s2 .featured .article .main .global-btn .text {
  color: #224E42;
}

#news .s2 .title {
  margin: 5rem 0;
}

#news .s2 .all {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.23rem;
  position: relative;
  padding-bottom: 8rem;
}

#news .s2 .all .article {
  display: block;
  border: 1px solid rgba(91, 120, 77, 0.5);
  border-radius: 20px;
  overflow: hidden;
  display: none;
  min-height: 360px;
}

#news .s2 .all .article .img-wrap {
  position: relative;
  max-height: 200px;
  overflow: hidden;
}

#news .s2 .all .article .img-wrap img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

#news .s2 .all .article .img-wrap .sec {
  padding: 7px 30px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 16px;
  line-height: 20px;
  color: #fff;
  position: absolute;
  top: 20px;
  left: 20px;
  border-radius: 100px;
}

#news .s2 .all .article .main {
  height: 100%;
  padding: 1.67rem;
  transition: background-color .3s ease;
}

#news .s2 .all .article .main h4 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 300;
  color: #23221F;
  margin-bottom: 1.167rem;
}

#news .s2 .all .article .main h3 {
  font-size: 1.167rem;
  line-height: 1.8rem;
  color: #23221F;
}

#news .s2 .all .article .main p {
  color: red;
}

#news .s2 .all .article:hover .main {
  background-color: #fff;
}

#news .s2 .all .article:nth-child(-n+9) {
  display: block;
}

#news .s2 .all .global-btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-color: #224E42;
  cursor: pointer;
}

#news .s2 .all .global-btn .text {
  color: #224E42;
}

#news .s2 .all .no-results {
  font-weight: 400;
}

/***** MEDIA *****/
@media screen and (max-width: 1023px) {
  #news .s2 .featured .article {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  #news .s2 .featured .article .img-wrap, #news .s2 .featured .article .main {
    width: 100%;
  }
  #news .s2 .featured .article .main {
    padding: 2.5rem 1rem;
  }
  #news .s2 .featured .article .main > div {
    max-width: none;
  }
  #news .s2 .all {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  #news .s1 h1 {
    margin-bottom: 3rem;
  }
  #news .s1 .wrap .filters {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    align-items: flex-start;
  }
  #news .s1 .wrap .filter-dropdown .filter-btn {
    font-size: 14px;
    padding: 9px 20px;
  }
  #news .s1 .wrap .filter-dropdown .filter-dropdown-content {
    padding: 1.2rem;
  }
  #news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio {
    font-size: 14px;
    margin-bottom: 11px;
  }
  #news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio .radio-custom {
    width: 16px;
    height: 16px;
  }
  #news .s1 .wrap .filter-dropdown .filter-dropdown-content .filter-radio input[type="radio"]:checked + .radio-custom::after {
    width: 9px;
    height: 9px;
  }
  #news .s1 .wrap .content-type-buttons .content-btn {
    font-size: 14px;
    padding: 8px 20px;
  }
  #news .s1 .wrap .search-wrapper .search-input {
    width: 200px;
    height: 34px;
    padding: 9px 30px 9px 20px;
    font-size: 14px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  #news .s1 .wrap .search-wrapper .search-input::placeholder {
    font-size: 14px;
  }
  #news .s1 .wrap .search-wrapper .search-btn {
    right: 9px;
    width: 35px;
    height: 35px;
  }
  #news .s2 .featured .article .main h3 {
    font-size: 1.4rem;
    line-height: 2rem;
    margin: 1rem 0 2rem 0;
  }
  #news .s2 .featured .article .img-wrap .sec {
    font-size: 14px;
    padding: 7px 25px;
    top: 16px;
    left: 16px;
  }
  #news .s2 .title {
    margin: 3rem 0;
  }
  #news .s2 .all {
    grid-template-columns: repeat(1, 1fr);
  }
  #news .s2 .all .article .main {
    padding: 1.5rem 1rem;
  }
  #news .s2 .all .article .img-wrap .sec {
    font-size: 14px;
    padding: 7px 25px;
    top: 16px;
    left: 16px;
  }
}
