.patients{
  display: flex;
  width: 100%;
  padding-top: 160px;
  position: relative;
}

.patients .social_pat{
  position: absolute;
  top: 40%;
  right: 5%;
}

.patients .social_pat .social{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.patients .social_pat .social img{
  display: flex;
  width: 40px;
  height: 40px;
  margin-left: 8px;
}

.patients .title_row{
  font-size: 200px;
  font-weight: 700;
  line-height: 200px;
  text-align: center;
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  top: 200px;

}

.cards {
  position: relative;
  width: 100%;
  height: 150vh;
  align-items: center;
  display: flex;
  justify-content: center;
}
.patients .card {
  border-radius: 2rem;
  position: absolute;
  inset: 0;
  max-width: 490px;
  margin: auto;
  height: 560px;
  margin-top: 0;
  z-index: auto;
  top: 0;
  bottom: 0;
  border: 0;
}

.patients .card img{
  width: 100%;
  border-radius: 20px;
}

.patients .card .text{
  position: absolute;
  left: 32px;
  bottom: 32px;
}

.patients .card .text span{
  padding: 12px 32px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  border-radius: 40px;
  color: #4753A3;
  text-transform: uppercase;
}


.patients .card .text img{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
}

.patients .card-1 {
  bottom: 10vh;
}
.patients .card-2 {
  bottom: 5vh;
  transform: rotate(-10deg);
}

.patients .card-3 {
  transform: rotate(-20deg);
}

.accord_row {
  padding-left: 160px;
  padding-top: 70px;
}

.accordions {
  position: relative;
  height: 580px;
  width: 100%;
}
.accordion {
  border-radius: 2rem;
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.accordion .accord_head{
  width: 5%;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 42px;
  padding-right: 32px;
  margin-bottom: 0;
}

.accordion .accord_head h4{
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.accordion .accord_head h4 span {
  font-size: 24px;
  line-height: 36px;
  margin-bottom: 10px;
}

.accordion .accord_content{
  width: 90%;
  display: flex;
  align-items: center;
}

.accordion .col_text{
  max-width: 500px;
  padding-left: 32px;
}

.accordion .col_text h4{
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  margin-bottom: 16px;
}

.accordion .col_text p{
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.accordion .col_img img{
  max-width: 320px;
  max-height: 480px;
  border-radius: 30px;
}

.accordion .accord_content .accord_cta a{
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  color: #F4F2FE;
  padding: 17px 40px;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 16px;
  background: #4753A3;
  border-radius: 30px;
  border: 1px solid #4753A3;
  text-decoration: none;
  transition: 0.3s;
}

.accordion .accord_content .accord_cta a.slider_button:hover {
  background: transparent;
  color: #4753A3;
  transition: 0.3s
}

.accordion .accord_content .accord_cta a.phone:hover {
  opacity: 0.8;
  transition: 0.3s
}

.accordion.accordion-2 .accord_content .accord_cta a.slider_button,
.accordion.accordion-5 .accord_content .accord_cta a.slider_button,
.accordion.accordion-8 .accord_content .accord_cta a.slider_button {
  background: #E0E3F5;
  color: #4753A3;
  border-color: #E0E3F5;
  transition: 0.3s;
}

.accordion.accordion-2 .accord_content .accord_cta a.slider_button:hover,
.accordion.accordion-5 .accord_content .accord_cta a.slider_button:hover,
.accordion.accordion-8 .accord_content .accord_cta a.slider_button:hover {
  background: transparent;
  transition: 0.3s;
  color: #E0E3F5
}

.accordion .accord_content .accord_cta .phone{
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 100%;
  padding: 10px;
  border: none;
  margin-left: 16px;
}
.accordion .accord_content .accord_cta .phone img{
  width: 100%;
}

.accordion-1{
  left: 0%;
  z-index: 2;
  background: #E0E3F5
}
.accordion-2 {
  left: 65%;
  z-index: 3;
  background: #4753A3;
  color: #fff;
}
.accordion-3{
  left: 70%;
  z-index: 4;
  background: #E0E3F5
}

.accordion-4{
  left: 75%;
  z-index: 5;
  background: #C1C9FC
}

.accordion-5{
  left: 80%;
  z-index: 6;
  background: #4753A3;
  color: #fff;
}

.accordion-6{
  left: 85%;
  z-index: 7;
  background: #E0E3F5;
}

.accordion-7{
  left: 90%;
  z-index: 8;
  background: #C1C9FC;
}
.accordion-8{
  left: 95%;
  z-index: 9;
  background: #4753A3;
  color: #fff;
}

@media only screen and (max-width: 1500px) {
  .patients .title_row{
    font-size: 160px;
  }
  .patients .card{
    max-width: 450px;
    height: 500px;
  }
  .accord_row{
    padding-left: 50px;
  }
  .accordion .col_text{
    max-width: 400px;
  }
  .accordion .col_text p{
    font-size: 14px;
    line-height: 22px;
  }
  .accordion .col_img img{
    max-width: 280px;
  }
}

@media only screen and (max-width: 1240px) {
  .patients{
    padding-top: 80px;
  }
  .patients .title_row{
    top: 0px;
    font-size: 140px;
  }
  .patients .card{
    top: 220px;
  }
  .accord_row{
    padding-left: 50px;
    padding-right: 50px;
  }
  .accordions{
    overflow: hidden;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
  }
  .accordion{
    width: 100%;
    left: 0;
    position: relative;

  }
}

@media only screen and (max-width: 991px) {
  .patients{
    position: relative;
    padding-bottom: 180px;
    padding-top: 0;
  }
  .patients .title_row{
    font-size: 50px;
  }
  .patients .cards{
    height: 240vh;
    /* align-items: start; */

  }
  .patients .card{
    max-width: 280px;
    height: 365px;
  }
  .patients .social_pat{
    /* top: 55%; */
  }
  .accord_row{
    padding-left: 16px;
    padding-right: 16px;
  }
  .accordion .accord_head{
    writing-mode: inherit;
    transform: rotate(0);
    text-align: left;
    width: 100%;
    justify-content: flex-start;
  }
  .accordion .accord_content{
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .accordion .col_text{
    max-width: 100%;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }
  .accordion .accord_content .accord_cta a{
    padding: 10px 25px;
    font-size: 12px;
  }
  .accordion .accord_content .accord_cta .phone{
    height: 38px;
    width: 38px;
  }

  .accordion .col_text h4{
    display: none;
  }
  .accordion .col_img img{
    max-height: 350px;
    object-fit: cover;
  }
  .accordion .accord_head h4{
    font-size: 14px;
  }
  .accordion .accord_head h4 span{
    font-size: 16px;
  }
  .accordions{
    height: 667px;
  }
}
@media only screen and (max-width: 768px) {
  .patients .card{
    max-width: 300px;
    height: 375px;
  }
}
