.cover {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 992px) {
  .cover {
    height: 100vh;
  }
}
.cover .grade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(85, 122, 55, 0.21) 0%,
    rgba(244, 147, 30, 1) 100%
  );
  mix-blend-mode: multiply;
}
@media (max-width: 767px) {
  .cover {
    padding: 0;
    padding-top: 125px; /* header height + padding */
  }
}

.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;
}

.message {
  position: absolute;
  top: 50%;
  right: 10rem;
  transform: translateY(-50%);
  z-index: 9;
  max-width: 800px;
  color: #fff;
  line-height: 1;

  & span {
    font-size: calc(1.75vw + 16px);
  }

  & h2 {
    font-size: calc(3vw + 16px);
    margin: 0;
    position: relative;
    font-weight: 700;
  }
  & h2::after {
    content: "";
    position: absolute;
    bottom: -3rem;
    width: 320px;
    right: 0;
    z-index: 1;
    height: 5px;
    background: linear-gradient(
      to left,
      var(--col1) 0%,
      var(--col1) 25%,
      var(--col2) 25%,
      var(--col2) 50%,
      var(--col3) 50%,
      var(--col3) 75%,
      var(--col4) 75%,
      var(--col4) 100%
    );
  }
}

/**/

.container {
  width: 90%;
  max-width: 1700px;
}
/**/

@media (min-width: 992px) {
  .services {
    position: relative;
    width: 100%;
    z-index: 1;
  }
}

.services .wrap {
  display: flex;
  width: 100%;
  height: 180px;
}

.services .wrap > div {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  color: color-mix(in srgb, var(--prime1) calc(100% - var(--i) * 5%), white);
  background-color: currentColor;
  &:hover {
    background-color: var(--prime2);
  }
}

.services .wrap .orange {
  max-width: 220px;
  background: var(--prime3b);
  &:hover {
    background: var(--prime3b);
  }
}
.services .wrap > div:nth-child(2) {
  --i: 0;
}
.services .wrap > div:nth-child(3) {
  --i: 1;
}
.services .wrap > div:nth-child(4) {
  --i: 2;
}
.services .wrap > div:nth-child(5) {
  --i: 3;
}
.services .wrap > div:nth-child(6) {
  --i: 4;
}
.services .wrap > div:nth-child(7) {
  --i: 5;
}
.services .wrap > div:nth-child(8) {
  --i: 6;
}
.services .wrap > div:nth-child(8) {
  --i: 7;
}

.services .wrap h2 {
  color: #fff;
  margin: auto;
  font-size: 1.64rem;
  width: min-content;
  font-weight: 700;
  line-height: 1.1;
}
.services a {
  color: #fff;
  padding: 1rem;
  font-size: 1.45rem;
  font-weight: 500;
  margin: auto;
}
.services a figure {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.services a img {
  width: min(100%, 80px);
  display: block;
  margin: 0.5rem auto;
}

/* Articles */

.articles {
  color: var(--text);
  position: relative;
  height: 100%;
  margin: 7rem auto;

  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: calc(100% + 20rem);
    background-color: rgb(from #dae5dd r g b / 1);
    top: -13.5rem;
  }

  & .text-center {
    width: 100%;
    isolation: isolate;
    position: relative;
    z-index: 2;
    margin-block: 1rem;
  }

  & h2 {
    background-color: #dae5dd;
    padding: 0.25rem 2rem;
    width: fit-content;
    display: inline-block;
    margin: auto;
    font-size: calc(1.25vw + 16px);
    font-weight: 625;
    line-height: 1;
    color: var(--prime2);
  }

  & .text-center::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 90%;
    height: 2px;
    background-color: rgb(from var(--prime1) r g b / 0.25);
    z-index: -1;
    border-radius: 2px;
  }

  & .slick-slide > div {
    margin: 0.75rem;
    height: 100%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    border-radius: 55px;
    background-color: #fff;
    corner-shape: squircle;
  }

  & a {
    color: var(--text);
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;

    &:hover {
      text-decoration: none;
      transform: scale(1.02);
    }
  }

  & a .info {
    padding-inline: 1rem;
    height: 260px;
    display: flex;
    flex-direction: column;
  }

  & a h3 {
    color: var(--prime1);
    font-weight: 800;
    line-height: 1.1;
    font-size: calc(0.5vw + 16px);
    height: 65px;
    overflow-y: clip;
  }

  & a .pub {
    margin-block: 1.25rem;
    font-size: 1rem;
  }

  & a h3 + div {
    height: 4.5rem;
    overflow: hidden;

    & + div {
      margin-top: auto;
      font-weight: 550;
      font-size: 1.15rem;
      color: var(--prime1);
      margin-bottom: 1rem;
    }
  }

  & .pic {
    aspect-ratio: 16 / 10;
    border-radius: 50px;
    background-size: cover;
    background-position: center;
    corner-shape: squircle;
  }

  & .read-more {
    margin-right: auto;
    background: rgb(from var(--prime1) r g b / 0.35);
    display: inline-block;
    padding: 0.35rem 2.25rem;
    font-weight: 550;
    color: var(--prime1);
    font-size: 1.25rem;
    border: 1px solid #ddd;
  }
}
@media (min-width: 1200px) {
  .all {
    position: absolute;
    top: 90%;
    left: 8%;
  }
}

@media (max-width: 1199px) {
  .all {
    display: flex;
    justify-content: flex-end;
  }
}

/**/
.searching {
  margin-block: 1.5rem;
  & form {
    position: relative;
    width: 100%;
  }
  & form::before {
    content: "";
    position: absolute;
    background-image: url(./images/folder.png?v=2);
    background-size: 55px;
    background-position: center;
    right: 1rem;
    background-repeat: no-repeat;
    top: 50%;
    width: 100px;
    height: 100px;
    transform: translateY(-50%);
  }
  & #idx_search {
    font-size: 1.7rem;
    corner-shape: squircle;
    border-radius: 25px;
    width: 100%;
    padding-right: 7.25rem;
    padding-block: 1.75rem;
    border: 1px solid transparent;
    color: var(--text);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;

    &::placeholder {
      color: var(--text);
      font-size: 2rem;
    }

    &:focus-within,
    &:active {
      outline: 2px solid var(--col1);
      background-color: rgb(from var(--prime3b) r g b / 0.1);
    }
  }
  & button {
    border: 0;
    corner-shape: squircle;
    border-radius: 1rem;
    background: none;
    position: absolute;
    top: 50%;
    left: 1rem;
    height: inherit;
    transform: translate(0, -50%);
    background-color: var(--prime3b);
    color: #fff;
    font-size: 2rem;
    font-size: calc(0.71vw + 16px);
    font-weight: 350;
    display: flex;
    align-items: center;
    padding: 0.4rem 1.45rem;

    &:hover {
      background-color: var(--text);
    }

    & i {
      font-size: 1.25rem;
      margin-right: 14px;
    }
  }
}
/* Cards */

.cards {
  & .row {
    justify-content: space-between;
    gap: 1.45rem;
  }
  & a {
    aspect-ratio: 9 / 5;
    corner-shape: squircle;
    flex: 1;
    max-width: 33%;
    border-radius: 30px;
    border: 10px solid #fff;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    display: flex;
    gap: 0.5rem;
    background: linear-gradient(
      10deg,
      rgba(105, 144, 117, 1) 0%,
      rgba(158, 188, 168, 1) 100%
    );
  }
  & a:first-child {
    background: linear-gradient(
      10deg,
      rgba(105, 144, 117, 1) 0%,
      rgba(158, 188, 168, 1) 100%
    );
  }
  & a:nth-child(2) {
    background: linear-gradient(
      0deg,
      rgba(238, 117, 43, 1) 0%,
      rgba(247, 188, 121, 1) 100%
    );
  }
  & a:last-child {
    background: linear-gradient(
      0deg,
      rgba(52, 88, 40, 1) 0%,
      rgba(146, 171, 133, 1) 100%
    );
  }

  & a:hover {
    background: linear-gradient(
      15deg,
      rgb(2, 37, 52) 0%,
      rgb(74, 88, 112) 100%
    );
  }
  & a .pic {
    flex: 1;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;

    & img {
      width: min(100%, 100px);
      object-fit: cover;
    }
  }
  & a > div:last-child {
    flex: 2;
    display: flex;
    align-items: center;
    color: #fff;
  }
  & a .wrap {
    text-align: center;
    /* after layout changes */
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  & a h2 {
    font-weight: 900;
    line-height: 0.9;
    font-size: calc(1.1vw + 16px);
  }
  & a h2 span {
    display: block;
    width: 100%;
  }
  & a h2 + span {
    font-size: calc(0.15vw + 16px);
    & i {
      display: inline-block;
      margin-right: 5px;
    }
  }
  /* after layout changes */
  & a:first-child .pic {
    flex: 1.18;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    & img {
      width: 100%;
      object-fit: fill;
    }
  }
  & a[href*="tourism"] {
    & img {
      width: 100%;
    }
  }
}
@media (min-width: 992px) {
  .cards {
    & a:not(:has(.pic)) {
      max-width: 25%;
    }
  }
}
@media (max-width: 1400px) {
  .cards {
    & a {
      border-width: 5px;
    }
    & a > div:last-child {
      flex: 3;
    }
  }
}
@media (max-width: 1200px) {
}
@media (max-width: 991px) {
  .cards {
    & a:not(:has(.pic)) .wrap {
      padding: 1.5rem;
    }
  }
}
/* News * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.news {
  width: 100%;
  position: relative;
  padding: 0 1rem;
  background: #fff;
  border-bottom: 1px solid var(--prime2);
}

.news .content {
  height: 50px;
  position: relative;
}

.news .buttons {
  position: absolute;
  top: 1.9rem;
  left: 1.9rem;
}

.news a {
  color: #000;
  display: block;
}

@media (min-width: 768px) {
  .news a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.news h2 {
  background: #fff;
  color: var(--prime7);
  font-size: calc(0.15vw + 16px);
  font-weight: 700;
  position: absolute;
  margin: auto;
  padding: 0 1.75rem;
  border-radius: 0;
  height: 100%;
  z-index: 5;
  border-left: 1px solid var(--prime2);
  display: flex;
  align-items: center;

  & i {
    transform: scaleX(-1);
  }
}

.news h2 a {
  display: flex;
  gap: 1rem;
  color: inherit;
  align-items: center;
}

@media (min-width: 992px) {
  .bn-news {
    padding-right: 150px;
  }
}
.breaking-news-ticker {
  height: 100% !important;
  line-height: 2 !important;
}
.bn-news ul li a {
  font-size: 1.2rem;
  padding: 0.36rem 0;
  color: inherit;
}
.bn-direction-rtl .bn-controls button {
  border-radius: 0;
  border: none;
}
.bn-news ul li a:hover {
  text-decoration: underline;
}

.bn-effect-scroll .bn-news ul li {
  padding: 0 1rem;
}

.news .date:after {
  content: "-";
  margin: 0 2px;
}
.bn-effect-scroll .bn-news ul li::after {
  content: "";
  position: absolute;
  top: 44%;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--prime7);
  border-radius: 100vw;
}
.news-toggle {
  width: 26px;
  height: 26px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #111;
  color: #fff;
  background: none;
  font-size: 14px;
}

.bn-controls {
  background: #fff;
  left: 0;
  right: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-right: 1px solid var(--prime2);
  padding: 1rem;

  & a {
    color: var(--prime7);
    font-weight: 700;
    font-size: calc(0.15vw + 16px);
  }
}
.bn-pause::before {
  color: var(--prime7);
  width: 5px;
  border-radius: 3px;
  left: 4px;
}
.bn-pause::after {
  color: var(--prime7);
  width: 5px;
  border-radius: 3px;
}
.bn-controls button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;

  color: var(--prime7);
  padding: 0;
  margin-right: 5px;
}

.bn-arrow {
  top: -1px;
}

.bn-pause::before,
.bn-pause::after {
  background-color: var(--prime1);
}
.bn-play::after {
  border-left-color: var(--prime1);
}

.bn-controls button:hover {
  color: var(--prime1);
}

/**/

.slick-dots {
  list-style-type: none;
  position: relative;
  z-index: 1;
  display: flex;
  padding: 0;
  justify-content: center;
  margin: auto;
  top: 5px;
}
.slick-nav-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 65px;
  width: 275px;
  background-image: url(./images/slick_bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  margin: 1.5rem auto;
}
.slick-dots li {
  margin-inline: 1px;
}
.slick-dots li button {
  position: relative;
  line-height: 0;
  display: block;
  width: 10px;
  height: 10px;
  padding: 5px;
  margin: 0 0.15rem;
  cursor: pointer;
  color: transparent;
  border: 1px solid var(--prime1);
  outline: none;
  background: rgba(var(--prime1RGB), 0.5);
  font-size: 0;
  border-radius: 100px;
  transition: all 0.42s ease;
}
li.slick-active button {
  width: 30px;
  background-color: var(--prime1);
}
.slick-next:before {
  content: "\f053" !important;
}
.slick-prev:before {
  content: "\f054" !important;
}
.slick-next,
.slick-prev {
  top: auto;
  bottom: 0;
  z-index: 9;
  transform: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--prime1);
  border-radius: 100vw;
  padding: 1.5rem;
}
.slick-next {
  top: auto;

  z-index: 9;
  left: 3rem;
}
.slick-prev {
  left: 12rem;
  right: auto;
}
.dark-arrows .slick-prev:before,
.dark-arrows .slick-next:before {
  color: var(--prime1);
}
/**/

/**/

@media (max-width: 991px) {
  .cover .toggle-slick {
    display: none;
  }

  .articles {
    & a .info {
      padding: 0.25rem;
    }
    & a h3 + div {
      & + div {
        font-size: 1rem;
      }
    }
    & .slick-slide > div {
      box-shadow: none;
    }
  }

  .news h2 {
    display: none;
  }
  .bn-controls {
    display: none;
  }
  .news {
    position: absolute;
    top: 1px;
  }
  .bn-news {
    left: 0 !important;
  }
  .message {
    right: 2.5rem;
    top: 170px;
    transform: none;

    & span {
      font-size: calc(2.75vw + 16px);
    }

    & h2 {
      font-size: calc(5vw + 16px);
    }

    & h2::after {
      bottom: -1rem;
      width: 210px;
    }
  }
  .cards {
    & a h2 {
      font-size: calc(3.35vw + 16px);
    }
    & a .wrap {
      text-align: right;
    }
    & a > div:last-child {
      text-align: right;
    }
    & .row {
      flex-direction: column;
    }

    & a {
      max-width: 100%;
      max-height: 25vh;
    }
    & a:first-child > div:first-child {
      & img {
        width: auto;
        height: 97%;
      }
    }
  }
  .services .wrap .orange {
    display: none;
  }
  .services .wrap {
    flex-wrap: wrap;

    & a {
      padding: 0.82rem;
    }
  }
}

@media (max-width: 700px) {
  .cover {
    position: relative;
    justify-content: center;
    gap: 4rem;
  }
  .message {
    position: relative;
    top: auto;
  }
  .articles {
    & .pub {
      display: none;
    }
    & a h3 {
      font-size: 1.4rem;
      height: 72px;
    }
    & a h3 + div {
      display: none;
    }
    & a .info {
      height: 200px;
    }
  }
  .services {
    padding: 0.7rem;
    position: relative;
    display: block;
    margin-top: auto;
    margin-bottom: 1rem;
  }

  .services .wrap {
    gap: 0.5rem;
    height: auto;
    justify-content: flex-start;

    &::after {
      content: "";
    }
  }

  .searching {
    margin-block: 2.5rem;
    & form::before {
      width: 20px;
      height: 20px;
      background-size: 100%;
      /* content: none; */
    }
    & #idx_search {
      padding-block: 1.15rem;
      font-size: 1.2rem;
      padding-right: 2.5rem;

      &::placeholder {
        font-size: 1.2rem;
      }
    }
    & button {
      padding: 8px;
      aspect-ratio: 1;
      border-radius: 100vw;
      left: 0.5rem;

      & i {
        margin: auto;
      }
    }
  }

  .searching button span {
    display: none;
  }

  .services a {
    font-size: 1.135rem;
  }

  .services a img {
    width: 39px;
    margin: 0;
  }

  .services .wrap > div {
    flex: 0 0 30%;
    width: 30%;
    border-radius: 100vw;
    aspect-ratio: 1;
  }
}

@media (max-width: 600px) {
  .message {
    right: auto;
    padding-inline: 2.5rem;
    & h2 {
      font-size: 3rem;
      line-height: 1;
    }
  }
}
