@media only screen and (max-width: 859px) {

  .carousel, .carousel2, .carousel3, .carousel4 {
    display: flex;
    justify-content: center;
  }

  .carousel__cards, .carousel__cards2, .carousel__cards3, .carousel__cards4 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .card, .card2, .card3, .card4 {
    display: none;
  }

  .card.show, .card2.show, .card4.show {
    display: flex;
    justify-content: space-around;
    padding: 50px 0;
    max-height: auto;
  }

  .card, .card2, .card3, .card4 {
    transition: opacity 0.3s, transform 0.3s;
  }

  .show {
    opacity: 1;
    transform: translateX(0);
  }

  .card-buttons a {
    margin-right: 1rem;
  }

  .carousel-control,  .carousel-control2,  .carousel-control3,  .carousel-control4 {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .prev,
  .next {
    width: 40px;
    color: #ffffff;
    background-color: #74E0C1;
    font-size: 1rem;
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 30px;
  }

  .prev:hover,
  .next:hover {
    background-color: #277e65;
    color: #fff;
    transition: background-color 0.3s;
  }
  .prev2,
  .next2 {
    width: 40px;
    color: #ffffff;
    background-color: #000000;
    font-size: 1rem;
    margin: 0.5rem 0.5rem 0.5rem 0rem;
    padding: 0.5rem 0.7rem;
    border-radius: 30px;
  }

  .prev2:hover,
  .next2:hover {
    background-color: #393a3a;
    color: #fff;
    transition: background-color 0.3s;
  }
  .card3.show{
    display: flex;
    justify-content: space-around;
    padding: 0px 0;
    max-height: auto;
  }
  .prev3,
  .next3 {
    width: 10px;
    margin: 0;
    padding: 0;
    border-radius: 0px;
  }

  .prev4,
  .next4 {
    width: 40px;
    color: #ffffff;
    background-color: #7ADBD4;
    font-size: 1rem;
    margin: 0.5rem 0.5rem 0.5rem 0rem;
    padding: 0.5rem 0.7rem;
    border-radius: 30px;
  }

  .prev4:hover,
  .next4:hover {
    background-color: #427975;
    color: #fff;
    transition: background-color 0.3s;
  }  
}
@media only screen and (min-width: 860px) {
  .card3{
    margin:10px;
  }
  .carousel-control2, .carousel-control4{
    display:none;
  }
}
/*
@media only screen and (max-width: 1150px) {
  .section__card-title {
    font-size: 3.5rem;
  }
}

@media only screen and (max-width: 850px) {
  .section__card-img {
    padding: 50px 0;
  }

  .section__card-title {
    font-size: 3rem;
  }

  .section__card.show {
    flex-direction: column;
    max-height: 100%;
    padding-bottom: 0;
  }

  .section__card-content {
    margin-bottom: 2rem;
  }

  .carousel__sections {
    justify-content: center;
  }

  .carousel__sections-cards {
    justify-content: flex-end;
  }

  .carousel-control {
    flex-direction: row;
    align-items: center;
    position: static;
  }
}

@media only screen and (max-width: 510px) {
  .section__card-text,
  .section__card-title {
    text-align: center;
  }

  .section__card-buttons {
    display: flex;
    flex-direction: column;
  }

  .section__card-buttons a {
    margin: 0;
    text-align: center;
  }

  .section__card-buttons a:nth-child(1) {
    margin-bottom: 10px;
  }
}*/