/* Slider in mobile styles */
.slider {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  display: flex;
  justify-content: center;
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
}
.slide h2 {
  position: absolute;
  bottom: 30px;
  text-align: center;
  font-size: 1em;
  color: rgb(255, 255, 255);
  z-index: 1;
  padding: 0 2%;
}
.slide a {
  width: 100%;
  display: contents;
}
.overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
  pointer-events: none;
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 20px;
  border-radius: 10px;
  background: #227669;
}

/* Trends boxes styles */
.trends {
  display: flex;
  width: 100%;
  column-gap: 15px;
}
.trends > div {
  display: flex;
  width: 50%;
  flex-direction: column;
}
.trends .trends-single {
  height: 100%;
}
.trends .trends-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Selected by editor styles */
.selected-by-editor {
  display: flex;
  flex-direction: column;
  margin: 50px 0px;
  gap: 30px;
}

.selected-by-editor > div:first-of-type,
.latest-contents > div:first-of-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.selected-by-editor > div:first-of-type h2,
.latest-contents > div:first-of-type h2 {
  font-weight: 400;
  font-size: 15px;
  text-align: center;
}

hr {
  flex-grow: 1;
  height: 1px;
  color: var(--gray-light);
  margin: 0px 10px;
}

.selected-by-editor > div:first-of-type a,
.latest-contents-grid-container > a {
  color: var(--gray-medium);
  border: solid 1px var(--gray-medium);
  border-radius: 5px;
  padding: 5px 15px;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  align-self: center;
}
.selected-by-editor > div:first-of-type a:hover,
.latest-contents-grid-container > a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.thumbnails {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.latest-contents {
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
  gap: 30px;
}
.latest-contents > div:nth-of-type(2) {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 30px;
}

.latest-contents-grid-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.latest-contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 285px));
  gap: 30px;
  justify-items: start;
}

/* .latest-contents-grid-container > a {
  color: var(--primary-color);
  border: solid 1px var(--primary-color);
  border-radius: 5px;
  padding: 5px 15px;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  align-self: center;
} */

@media screen and (max-width: 1365px) {
  .thumbnails {
    justify-content: center;
  }
  .latest-contents > div:nth-of-type(2) {
    flex-direction: column;
  }
  .latest-contents-grid {
    justify-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 1023px) {
  .slide h2 {
    font-size: 14px;
  }
  .trends {
    display: none;
  }
  .selected-by-editor > div:first-of-type h2,
  .latest-contents > div:first-of-type h2 {
    font-size: 14px;
  }
  .selected-by-editor > div:first-of-type a,
  .latest-contents-grid-container > a {
    font-size: 12px;
  }
}

@media screen and (max-width: 767px) {
  .slide h2 {
    font-size: 13px;
  }
  .trends {
    display: none;
  }
  .selected-by-editor > div:first-of-type h2,
  .latest-contents > div:first-of-type h2 {
    font-size: 13px;
  }
  .selected-by-editor > div:first-of-type a,
  .latest-contents-grid-container > a {
    font-size: 11px;
  }
}

@media screen and (min-width: 1023px) {
  .slider {
    display: none;
  }
}
