.home_banner_container {
  display: flex;
  flex-flow: row nowrap;
  margin: 0 auto;
  gap: 5px;
  background-color: var(--primary-color);
  flex-direction: column;
}

.top_category_block {
  display: flex;
  flex-flow: row nowrap;
  margin: 0 auto;
  gap: 5px;
  flex-direction: column;
}

.home_ban_left {
  box-sizing: border-box;
  position: relative;
}

.home_ban_left_container {
  position: relative;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: black;
  opacity: 0.2;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  opacity: 0.7;
}

.dots_container {
  bottom: 20px;
  text-align: center;
  left: 0;
  position: absolute;
  text-align: center;
  width: 100%;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active-slide,
.dot:hover {
  background-color: var(--primary-color);
}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.home_slides {
  display: none;
  height: 100%;
}

.home_slides img {
  vertical-align: middle;
}

.home_ban_right {
  display: grid;
}

.home_ban_collection {
  display: block;
  margin-bottom: 30px;
}

.home_ban_collection:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .prev,
  .next {
    padding: 7px;
  }
}

@media (max-width: 1024px) {
  .home_banner_container {
    justify-content: center;
    flex-flow: column nowrap;
  }

  .top_category_block {
    justify-content: center;
    flex-flow: column nowrap;
  }

  .home_ban_right {
    display: flex;
    margin: 0px;
  }

  .home_ban_collection {
    width: 100%;
    margin-bottom: 0px;
    margin-right: 20px;
  }

  .home_ban_collection a {
    width: 100%;
  }

  .home_ban_collection img {
    width: 100%;
  }

  .home_ban_collection:last-child {
    margin-right: 0px;
  }

  .home_ban_left {
    padding-right: 0px;
  }

  .next {
    margin-right: 0px;
  }
}
