:root {
  --green: #247043;
  --lgreen: #9fc035;
  --white: #fff;
  --whitergb: 255, 255, 255;
  --swamprgb: 32, 43, 16;
  --swamp: #191a0c;
  --border9: 9px;
  --lblue: #a7c1d5;
  --tealas: #4caaa7;
  --dgreen: #004e37;
}

body {
  background-color: var(--white);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  z-index: -1;
}
main .overlay {
  position: absolute;
  bottom: 0;
  height: 22%;
  width: 100%;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.82) 60%
  );
}

@media (min-width: 992px) {
  main {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  main .container {
    max-width: 1800px;
  }
  .cover {
    height: 100vh;
  }
}

.cover-slick {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
}

.cover-slick div {
  height: 100%;
  background-size: cover;
  background-position: center;
}

.cover .toggle-slick {
  position: absolute;
  top: 125px;
  right: 15px;
  background: none;
  border: 0;
}

.cover-content {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  text-align: center;

  max-width: 600px;
  margin-top: -60px;
}
.wraplength {
  width: clamp(580px, 90%, 300px);
}
.wraplength h2 {
  font-family: "Rubik", arial, sans-serif;
  color: var(--white);
  font-weight: bold;
  font-size: 2rem;
  text-shadow: var(--swamp) 1px 0 1px;
  line-height: 1;
}

.search-wrapper {
  margin-top: 1.05rem;
}

.search-wrapper form {
  position: relative;
  display: inline-flex;
  width: 100%;
}
.search-wrapper button {
  border: 0;
  background: none;
  position: absolute;
  top: 50%;
  left: 0;
  height: inherit;
  transform: translate(0, -50%);
}
.search-wrapper .icon-btn {
  background-color: var(--lgreen);
  background-repeat: no-repeat;
  border-radius: var(--border9);
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: inherit;
  aspect-ratio: 1;
  position: absolute;
  inset: 0;
  margin: auto auto auto 9px;
}

.search-wrapper [type="text"] {
  height: 55px;
  border-radius: var(--border9);
  width: 100%;
  padding-right: 1.25rem;
  border: 1px solid rgba(49, 53, 73, 0.2);
  color: var(--swamp);
}

/**/

video {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  transition: 1s opacity;
  object-fit: cover;
  z-index: -1;
}

#toggle-video {
  position: absolute;
  top: 125px;
  right: 15px;
  background: none;
  border: 0;
}

.services figcaption {
  color: var(--swamp);
  font-weight: bold;
}

/**/

@media (min-width: 992px) {
  .services {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
  }
  .services figcaption {
    font-size: 1.18rem;
  }
  .services .slick-slider {
    width: 99%;
    margin-inline: auto;
  }
  .service {
    margin: 1rem;
    padding-bottom: 1rem;
    width: 8rem;
    max-width: 10rem;
  }
}
.services .slick-slide {
  display: flex;
  justify-content: center;
}
.services .slick-slide .services-slick {
  padding: 0.5rem 1rem;
  margin: 0 1rem;
}

.service {
  text-align: center;
  display: block;
  margin: 1rem;
}

.service:hover {
  text-decoration: none;
  /* background-color: rgba(var(--whitergb), 0.25); */
}

.service .icon img {
  display: block;
  margin: 0 auto;
  margin-bottom: 0.75rem;
  max-width: 55px;
}
.service:hover .icon img {
  filter: hue-rotate(260deg);
}

.service:hover figcaption {
  color: var(--green);
}
/* Articles */
.article-item {
  position: relative;
}
.articles {
  padding: 0;
}
.articles h2 {
  font-weight: bold;
  margin-bottom: 2rem;
}
.articles article {
  display: block;
  height: 100%;
}
.articles .row > div {
  margin-bottom: 30px;
}
.article {
  position: relative;
  margin-top: 2.2rem;
  display: block;
  background: rgba(var(--swamprgb), 0.82);
  color: #000;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 100%;
  border-radius: 9px;
}
.article:hover {
  text-decoration: none;
  background: rgba(var(--swamprgb), 0.98);
}
.article img {
  display: block;
  width: 100%;
}
.article .info {
  padding: 1rem;
}
.article .rm {
  margin-top: 0.5rem;
  color: var(--white);
  display: inline-block;
  font-size: 0.82rem;
}
.article .rm:hover {
  text-decoration: underline;
}
.article h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--lblue);
}
.article p {
  color: var(--white);
  line-height: 1.2;
}
.article span .article .date {
  padding-bottom: 56.25%;
  position: relative;
  background: rgb(206 189 111);
  background: linear-gradient(
    45deg,
    rgb(246 183 77) 0%,
    rgb(160 183 132) 50%,
    rgb(121 204 200) 100%
  );
}
.article .date > div {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);

  font-size: 3rem;
  color: #fff;
  text-align: center;
  font-weight: bold;
}
.article .date > div > span:nth-child(2) {
  font-size: 1.5rem;
  display: block;
}
.rmore {
  background: var(--swamp);
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-weight: bold;
  color: var(--white);
  border-radius: 50px;
  font-size: 0.8rem;
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
}

.rmore em {
  margin-right: 1px;
}

/**/

.events {
  background-color: #fff;
}

.ribbon-date {
  position: absolute;
  top: 0;
  left: 15px;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
}
.ribbon-date span {
  display: block;
}
.ribbon-date span:nth-child(1) {
  font-weight: bold;
  font-size: 1.5rem;
}

/* News * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.news {
  padding: 0.5rem;
  background: rgba(var(--swamprgb), 0.8);
  position: absolute;
  top: 100px;
  width: 100%;
  z-index: 9;
  height: 50px;
}

.news .content {
  position: relative;
}

.news .buttons {
  position: absolute;
  top: 1.9rem;
  left: 1.9rem;
}

.news a {
  color: var(--white);
  display: block;
}

@media (min-width: 768px) {
  .news a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.news h2 {
  background: var(--tealas);
  color: #fff;
  font-size: 1.05rem;
  font-weight: normal;
  position: absolute;
  top: 5px;
  right: 0;
  padding: 2px 10px;
  margin: 0;
  border-radius: var(--border9);
  z-index: 5;
}

.news h2 a {
  color: inherit;
}
.news h2 a:hover {
  color: #fff !important;
}

@media (min-width: 992px) {
  .bn-news {
    padding-right: 100px;
    right: 5.75rem;
  }
}

.bn-news ul li a {
  font-size: 1rem;
  line-height: 1.2rem;
  padding: 0.36rem 0;
  color: var(--white);
}
span.fa.fa-plus-circle.bn-next {
  color: var(--tealas);
}
.bn-news ul li a:hover {
  color: var(--lgreen);
}

.bn-effect-scroll .bn-news ul li {
  padding: 0 2.5rem 0 1.7rem;
  position: relative;
}

.bn-effect-scroll .bn-news ul li:after {
  content: "//";
  margin: 0 5px;
  right: -4px;
  position: absolute;
  top: 0;
  width: 10px;
  height: inherit;
  color: var(--lblue);
}

.news .date {
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--lblue);
}

.news .date:after {
  content: "";
  margin: 0 5px;
}

.news-toggle {
  width: 26px;
  height: 26px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #111;
  color: #fff;
  background: none;
  font-size: 14px;
}

.bn-controls {
  left: 0;
  right: auto;
}
.bn-direction-rtl .bn-controls {
  display: flex;
  align-items: center;
  padding-right: 1rem;
}
.bn-controls button {
  border: 0;
  border-radius: 50%;
  color: #fff;
  padding: 0;
  border: 2px solid var(--white);
  margin-right: 5px;
  background-color: transparent;
}
.bn-direction-rtl .bn-controls button {
  border-right: 2px solid var(--white);
  border-left: 2px solid var(--white);
}
.bn-controls button.play {
  height: 16px;
  width: 16px;
  display: flex;
  place-content: center;
}
.bn-direction-rtl .bn-controls button.nxt {
  border: none;
}
.bn-arrow {
  top: -1px;
}
.bn-pause {
  height: 11px;
  left: 0;
  top: 2px;
  width: 0;
}
.bn-pause::before,
.bn-pause::after {
  height: 75%;
}
.bn-pause::before {
  left: 1px;
}
.bn-pause::after {
  left: -3px;
}
.bn-play::after {
  border-width: 6px;
  margin-top: -6px;
}
.bn-pause::before,
.bn-pause::after {
  background-color: var(--white);
}
.bn-play::after {
  border-left-color: var(--white);
}

.bn-controls button:hover {
  background-color: transparent;
  color: #fff;
  box-shadow: none;
}

/**/

@media (min-width: 992px) {
  .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
  }
}
.commune {
  display: none;
}
/**/
@media (max-width: 1199px) {
  .commune {
    margin-block: 2rem;
    display: flex;
    justify-content: flex-start;
  }
  .commune a {
    color: var(--dgreen);
    background-color: var(--lgreen);
    border-radius: var(--border9);
    font-size: 1.65rem;
    padding: 5px 15px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  }
  .commune span {
    font-family: "Rubik", sans-serif;
  }
}
/* Fast Nav */

.fast-navigation {
  padding: 1rem 0;
  border-radius: 0 0 2rem 2rem;
  color: #fff;
  width: fit-content;
  margin: 0 auto;
}

.fast-navigation:after {
  clear: both;
  display: block;
  content: "";
}

@media (min-width: 992px) {
  .fast-navigation > label,
  .fast-navigation > select,
  .fast-navigation > span {
    float: right;
    display: block;
  }
}

.fast-navigation label {
  background: #0372ac;
  border-radius: 0 2rem 2rem 0;
  padding: 5px 10px;
  border: 0;
  margin: 0;
}

.fast-navigation select {
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 5px 10px;
  border-right: 1px solid #ddd;
  border-left: 1px solid #ddd;
}

.fast-navigation button {
  background: #0372ac;
  border: 0;
  border-radius: 2rem 0 0 2rem;
  padding: 5px 10px;
  color: #fff;
  font-weight: bold;
}

@media (min-width: 992px) {
  .fast-navigation .smart-nav-sub > label,
  .fast-navigation .smart-nav-sub > select,
  .fast-navigation .smart-nav-sub > button {
    float: right;
    display: block;
  }
}

@media (max-width: 991px) {
  .search-wrapper .icon-btn {
    margin-left: 0;
  }
  .commune {
    justify-content: center;
  }
  .bn-direction-rtl .bn-controls {
    display: none;
  }
  .bn-news {
    left: 0 !important;
  }
  body {
    /* padding-bottom: 0; */
  }
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 2;
  }
  main .overlay {
    z-index: -1;
    height: 67%;
    background: rgb(255, 255, 255);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.82) 25%
    );
  }
  main .container {
    margin-top: 6.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .search-wrapper button {
    left: 5px;
  }
  .search-wrapper [type="text"] {
    height: 40px;
  }
  .search-wrapper .icon-btn {
    width: 30px;
    height: 30px;
    background-size: 80%;
  }
  video,
  #toggle-video {
    display: none;
  }
  .cover .toggle-slick {
    display: none;
  }
  .cover {
    position: inherit;
    position: absolute;
    min-height: auto;
    height: auto;
    height: 100%;
    padding: 15px;
    padding-top: 125px; /* header height + padding */
  }

  .news h2 {
    display: none;
  }
  .centered {
    text-align: center;
  }
  .centered-banner img {
    max-width: 100%;
  }
  .fast-navigation > label,
  .fast-navigation > select,
  .fast-navigation > span {
    display: block;
    border-radius: 2rem;
    width: 100%;
  }

  .fast-navigation .smart-nav-sub > label,
  .fast-navigation .smart-nav-sub > select,
  .fast-navigation .smart-nav-sub > button {
    display: block;
    border-radius: 2rem;
  }

  .fast-navigation .smart-nav-sub > select {
    width: 100%;
    margin: 0.5rem 0;
  }

  .smart-nav-submit {
    margin: 0 auto;
  }
  .services {
    padding: 1rem 0;
    margin-bottom: 20%;
  }
  .service {
    width: inherit;
  }
  .service .icon img {
    max-width: 40px;
  }
  /* .service:hover {
    background-color: transparent;
  } */
  .service figcaption {
    line-height: 1;
    font-weight: bold;
  }
  .article h3 {
    font-size: 0.9rem;
  }
  .article p {
    font-size: 0.85rem;
  }
  .wraplength h2 {
    font-size: 1.2rem;
  }
  /* .rmore {
    font-size: 0.7rem;
  } */
  .article p {
    max-height: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
  }
  .article p::after {
    content: "...";
    position: absolute;
    left: 5px;
    bottom: 0;
    font-size: 18px;
    bottom: 0;
    color: inherit;
    width: 10px;
  }
}

/**/

@media (min-width: 992px) {
  .side-banners {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
  }
  .side-banners.side-banners-right {
    right: 0;
  }
  .side-banners.side-banners-left {
    left: 0;
  }
}
.side-banners a {
  background-color: #fff;
  display: block;
  padding: 1rem;
  margin: 1rem 0;
}

@media (max-width: 1800px) {
  .services figcaption {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .article-item {
    display: none;
  }
}
@media (max-width: 375px) {
  .wraplength h2 {
    font-size: 1.1rem;
  }
}
