main{
  background-image: url(/portal/services/resources/assets/images/background-services.webp);
  background-repeat: no-repeat;
  background-size: cover;
}

.carousel-services{
  justify-content: center !important;
}

.btn-primary {
margin-top: 1vh;
}

.title-main {
  position: relative;
  text-align: center;
  font-size: 4rem;
  font-weight: 500;
}

.subtitle-main {
  position: relative;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
}

.text{
  text-align: justify;
}

.service-information, .service-description-information, .service-description, .service-titles {
  display: none;
  transition: 0.5s;
}

.service-information.active, .service-description-information.active {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 60px;
  text-align: center;
  transition: 0.5s;
  width: 70%;
  height: 75%;
}

#service-features{
  >.section-mask{
    >.section-content{
      gap: 0;
      padding: 30px;
    }
  }
}

.benefit{
  padding: 30px;
}

.service-description-text{
  font-size: larger;
  font-weight: 500;
}

.service-text{
  width: 50%;
  filter: drop-shadow( 0 0 10px rgba(0, 0, 0, 0.35));

  >p{
    padding: 0 5vh;
  }
}

.service-images{
  width: 50%;
  display: flex;
  flex-wrap: nowrap;
  gap: 3vh;

  >img{
    width: 27vmin;
    height: 43vh;
    border-radius: 5px;
  }

  > img:nth-child(2){
    transform: translateY(5vh);
  }
}

.services-carousel-items, .services-carousel-description-items{
  gap: 5%;
  width: 70vmin;
  height: 18vmin;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  scroll-behavior: smooth;
  mask-image: linear-gradient(to right, transparent, black 25%, black 60%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 60%, transparent);
}

.services-carousel-item:not(.active){
  cursor: pointer;
}

.services-carousel-item{
  position: relative;
  width: 16vmin;
  height: 13vmin;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 3/2;
  background:var(--item-bg-color, #3f96ffc4);
  border-radius: 20px;
  transform: translateX(0);
}

.services-description-carousel {
  >.services-carousel-description-items{
    display: flex;
    justify-content: center;
    align-items: center;

    >.services-carousel-item{
      justify-content: flex-end;
      padding-bottom: 1%;
    
      >p{
        font-size: 2vh;
        font-weight: 600;
      }

      >img{
        max-width: 100%;
        max-height: 100%;
      }
    }
  }
}

.services-carousel-items .services-carousel-item img{
  width: 80%;
  z-index: 1;
  transition: 0.5s;
}

.services-carousel-prev{
  transform: rotateY(180deg);
}

.services-carousel-prev,
.services-carousel-next{
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 2px solid #ffff;
  border-radius: 50%;
  cursor: pointer;
}

.services-carousel-prev:hover,
.services-carousel-next:hover{
  background-color: #00B5E5;
  transition: 0.5s;
  border: 0px solid #00B5E5;

}

.service-title-up, .service-description-title-up {
  font-size: 1.5rem;
  font-weight: 400;
}

.service-title-down, .service-description-title-down{
  font-size: 3.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-description.active{
    display: flex;
    font-size: 1rem;
    font-weight: 200;
    width: 75%;
    text-align: justify;
    margin: 3rem 0;
    transition: 0.5s;
    z-index: 1;
}

.mw-90{ max-width: 90%; }

.service-text {
  padding: 0 5%;

  > p{
    text-align: justify;
    margin: 0.5rem 0;
  }
}

.benefits-list-title{
  margin-top: 3rem;
}

.benefits-list-desc{
  margin: 1rem 0 2rem 0 !important;
}

.benefits .service-information {
  margin: 0 12%;
}

.service-text h1, .service-titles h1{
  font-size: 32px;
  text-align: center;
}

.hidden {
  display: none;
}

.services-carousel-item p{
  position: absolute;
  opacity: 0;
  transition: 0.8s;
  font-size: 1.3vh;
  padding: 0 1vh;
  z-index: 1;
  text-align: center;
}

.services-carousel-description-items .services-carousel-item p{
  color: #ffffff;
  opacity: unset;
}

.service-titles.active{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 0;
  /*margin-bottom: 2rem;*/

  >p{
    font-size: 1.5rem;
  }
}

.steps-container{
  padding-top: 2%;
}

.steps-content {
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 55%;
  width: 80%;
  z-index: 0;

  >.result{
    >.counter-container{
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;

      >.count-step{
        width: 3vw;
        padding-top: 3vw;
        border-radius: 50%;
        background-color: #00B5E5;
        position: fixed;
        text-align: center;
  
        >p{
          position: absolute;
          top: 50%;
          left: 50%;
          font-weight: 500;
          transform: translate(-50%, -50%);
          font-size: 2vw;
          color: white;
        }
      }
    }

    >.step-text{
      >.title-step{
        font-size: 1.2rem;
        font-weight: bolder;
        text-align: center;
        margin: 1.5% 0;
      }

      >.description-step{
        font-size: 0.8rem;
        text-align: justify;
      }
    }
  }
}

.steps-content > * {
  position: absolute;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.step-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.result{
  width: 20vw;
}

@media (max-width: 1024px) {
  main{
    background-image: url(/portal/services/resources/assets/images/background-services-tablet.webp);
  }

  .section-content{
    justify-content: center;
    gap: 5%;
  }

  .title-main{
    width: 85%;
  }

  .w-40 {
    width: 70%;
    text-align: justify;
  }

  .service-images{ 
    width: 100%;

    >img{
      width: auto;
      height: 25vh;
    }

    > img:nth-child(2) {
      transform: translateY(2vh);
    }
  }

  .services-carousel-item p{
    font-size: 10px;
    padding: 0 0.2rem;
  }

  .service-information, .service-description-information {
    flex-direction: column;
    max-width: 95%;
    margin: auto;
    align-content: center;
    gap: 2vh;
  }
  
  .service-text {
    width: 100%;

    >p{
      max-width: 100%;
      margin: 0.5rem 0;
      padding: 0 2vh;
    }
  }

  .service-description{
    width: 100%;
    margin: 0;
    flex-direction: column-reverse;
    gap: 2rem;

    >.service-images{
      width: auto;
      height: 35vh;

      >img{
        height: 100%;
      }

      > img:nth-child(2) {
        transform: translateY(5vh);
    }
    }
  }

  .steps-content {
    >.result {
      > .counter-container {
        >.count-step {
          width: 8vw;
          height: 8vw;

          >p{
            font-size: 4vw;
          }
        }
      }
    }
  }

  .services-description-carousel {
    >.services-carousel-description-items{
      >.services-carousel-item{      
        >p{
          font-size: small;
          font-weight: 600 ;
        }
      }
    }
  }

  .services-carousel {
    width: 100%;
  }

  .btn-primary {
    margin: 2% 0;
  }

  .benefits-list-title{
    margin-top: 2vh;
  }

  .service-titles.active {
    margin: 0;
  }
}


@media (max-width: 700px) {
  main{
    background-image: url(/portal/services/resources/assets/images/background-services-mobile.webp);
  }

  .title-main {
    width: 80%;
  }

  .service-images {
    display: none;
  }

  .service-information, .service-description-information {
    margin: auto;
  }

  .service-description-feature {
    margin-bottom: 0;
  }

  .service_logo {
    width: 65vmin;
    height: 9.2vh;
  }

  .service-title-down{
    font-size: 2.5rem;
  }

  .service-text {
    width: 100%;
    padding: 0;
  }

  .service-text > p {
    padding: 0;
  }

  #service-features {
    & > .section-mask {
        >.section-content {
          justify-content: center;
          padding: 30px 10px;
      }
    }
  }

  .service-description.active .service-text{
    height: 40%;
  }

  .service-information.active, .service-description-information.active {
    top: 0;
    max-width: 95%;
    margin: auto 0;
    position: relative;
    width: 85%;
    height: 70%;
    justify-content: flex-start;
  }

  .services-carousel-items {
    gap: 12%;
    width: 14rem;
    height: 12rem;
  }

  .services-carousel {
    height: 25%;
    gap: 6%;
  }

  .services-carousel-items .services-carousel-item {
    width: 6.9rem;
    height: 6rem;
  }

  .w-40 {
    width: 70%;
    margin: 0 auto;
  }

  .title-main {
    font-size: 2.5rem;
  }

  .subtitle-main {
    font-size: 1.5rem;
  }

  .services-carousel-prev,
  .services-carousel-next {
    width: 30px;
    height: 30px;
  }

  .btn-primary {
    width: 100%;
    margin-top: 1rem;
  }

  .services-carousel-item p{
    font-size: 1.8vmin;
    padding: 0.2vh 0.5vh;
  }

  .service-text{
    padding: 0 5%;
    justify-content: flex-start;
    height: 100%;
  }

  .service-text h2, .service-titles h2 {
    margin-top: 11dvh;
  }

  .service-description.active{
    align-items: center;
    width: 90%;
    gap: 1rem;
    height: 100%;
    margin: 0;
    justify-content: flex-end;
    
    >.service-images{
      display: inherit;
      width: 90%;
      height: 53%;

      >img{
        width: 100%;
        object-fit: cover;
        height: 50%;
      }

      > img:nth-child(2){
        display: none;
      }
    }

    >.service-text{
      margin: auto;
    }
  }

  .service-text p {
    margin: 1vh;
    font-size: 0.8rem;
    margin: 5% 0;
  }

  .service-titles.active {
    padding: 0 12%;
    margin: 0;
    margin-top: 2%;
    height: 40%;
    justify-content: flex-start;
  }

  .steps-content {
    height: 65% !important;

    >.result {
      > .counter-container {
        >.count-step {
          width: 12vw;
          height: 12vw;
  
          >p{
            font-size: 10vw;
          }
        }
      }
    }
  }

  .services-description-carousel{
    width: 100%;
    height: 25%;
    gap: 6%;
  }

  .services-carousel-description-items {
    gap: 12%;
    width: 14rem;
    height: 12rem;
  }

  .services-carousel-description-items .services-carousel-item {
    width: 6.9rem;
    height: 6rem;
    border-radius: 8px;
    transition: transform 0.5s ease-out;
    position: relative;
  }

  .services-carousel-description-items .services-carousel-item p {
    font-size: 2vmin;
    padding: 0 0.8vh;
    padding-bottom: 3%;
  }

  .section-content:not(#index-services .section-content){
    padding: 30px 10px;
    gap: 0;
  }
}

@media (max-width: 350px) {
  .img-service-feature{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1500px) {
  .service-titles{
    margin-bottom: 0;
  }

  .steps-content {
    transform: scale(0.9);
    height: 65%;
  }
}

@media (max-width: 1020px) {
  .steps-content {
    flex-direction: column;
    width: 100%;
    gap: 2vh;
    transform: translateY(1rem);
  }

  .result {
    width: 60vw;
    max-width: 80vw;
  }

  .result .counter-container .count-step {
    width: 12vw;
    padding-top: 12vw;
    position: relative;
  }

  .result .counter-container .count-step > p {
    font-size: 5vw;
  }

  .step-text .title-step {
    font-size: 1.3rem;
    margin: 5% 0 1% 0;
  }

  .step-text .description-step {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 5%;
    text-align: center;
  }

  .step-img {
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
  }

  .step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  .steps-content {
    height: 50%
  }
}

@media(min-height: 700px){
  .steps-content {
    height: 65% !important;
  }
}

@media(max-height: 700px){
  .service-text h2, .service-titles h2 {
    margin-top: 5dvh;
  }

  .service-titles.active {
    margin-top: 0;
  }

  .service-text {
    padding: 0;
    >p {
      margin: 1rem 0;
    }
  }

  .benefits-list-title{
    margin-top: 1rem;
  }
}

@media(max-height: 645px) and (max-width: 700px){
  .service-description.active {
    >.service-images {
      height: 50%;
      align-items: flex-end;
    }
  }

  .steps-content {
    transform: translateY(0);
    height: 60% !important;
  }

  .service-titles.active {
    height: 40%;
  }
}

@media (min-width: 700px) and (max-width: 1024px) and (max-height: 900px){
  .service-images:not(.service-description.active .service-images){
    display: none;
  }

  .result {
    min-width: 35vw;
    max-width: 40vw;
  }
}

@media (min-width: 700px) and (max-width: 1024px) and (min-height: 400px) and (max-height: 750px){
  .steps-content{
    height: 60%;

    > .result {
      > .counter-container {
        >.count-step {
          width: 4vw;
          height: 4vw;
        }
      }
    }
  }

  .result{
    min-width: 15vw;
    max-width: 20vw
  }
}

@media (min-width: 500px) and (max-width: 700px) and (min-height: 400px) and (max-height: 900px){
  .steps-content{
    height: 60%;

    > .result {
      > .counter-container {
        >.count-step {
          width: 4vw;
          height: 4vw;

          >p {
            font-size: 4vw;
          }
        }
      }
    }
  }

  .result{
    min-width: 15vw;
    max-width: 20vw
  }
}

@media (min-width: 1024px) and (max-width:1500px) and (min-height: 1300px){
    .result {
      width: 50vw;
      max-width: 70vw;
    }
}