section>div {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 300px 0;
}

#book>div, #book a {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
}

#book>div1 {
  align-items: center;
}

#hero {
  background: no-repeat left 30% / 140% linear-gradient(to left,rgba(255,255,255,0.0), #FFF), no-repeat left 30%/140% url('../images/pexels-akshaya-premjith-1173804-reverse.jpg');
  width:100%;
  min-height:40vw;
}

#nav {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}

.page-width {
  max-width: 1440px;
}

.narrow-width {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 25px;
}

.vertical-pad {
  padding-top: 50px;
  padding-bottom: 50px;
}

#hero-text {
  max-width: calc( 110px + ( 100vw * 0.18 )) ;
  text-align: left;
  margin: 40px 0;
}

#varicose-hero #hero-text {
  max-width: 600px;
}

#about-bio {
  display: flex;
  flex-direction: column;
}

.steps-desktop {
  display: none;
}
.steps-mobile {
  display: block;
  width: calc(100vw - 50px);
  max-width: 400px;
}

#surgeon {
  background: #f6f4ff;
}

#surgeon>div {
  display:flex;
  justify-content: center;
  align-items: center;
  flex-direction: column-reverse;
}

.surgeon-text {
  max-width: calc( 200px + ( 100vw * 0.18 )) ;
  background: #ffffff;
  position: relative;
  left: 0;
  bottom: 100px;
  border-radius: 5px;
  padding: 20px;
  margin: 0 25px;
}

.surgeon-text>h1 {
  display: none;
}

.surgeon-image>img {
  width: 100%;
}

.surgeon-image>h1 {
  position: absolute;
  color: #ffffff;
  padding-left: 25px;
  display: block;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
}

#pricing-box {
  opacity: 1;
}

#impact {
  display: flex;
  padding-top: 0;
  padding-bottom: 50px;
}

#impact>div {
  justify-content: center;
  gap: 0;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
}

.impact-title {
  flex-grow: 1;
  flex-shrink: 0;
}

.impact-slides {
  width: 100%;
  height: 140px;
  position: relative;
}

.impact-slide.results {
  flex-direction: row;
  align-items: center;
  gap:20px;
}

.impact-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
    max-width: calc(100vw - 50px);
  height: 140px;
  border: 1px black solid;
  border-radius: 5px;
  padding: 20px;
}

.impact-slide {
  position: absolute;
  top: 0;
  transition: opacity 1s ease, transform 1s ease;
  opacity: 0;
  transform: translateY(20px);
  
}

.impact-slide.active {
  z-index:200;
}

.impact-slide.slide-in {
  opacity: 1;
  transform: translateY(0);
  display: flex; /* Ensure it's visible during the animation */
}

.impact-slide.slide-out {
  opacity: 0;
  transform: translateY(-20px);
}

.impact-slide img {
  height: auto;
  max-width: 50%;
}

.impact-slide .results-text {
  flex-shrink: 1;
}

#impact .results-arrow {
  width: 20px;
}

#services>div, #associated-services>div {
  flex-direction: column;
}

#service-grid, #associated-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 50px;
  padding-bottom: 50px;
}

.service-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.service-icon, .service-heading, .service-description {
  opacity: 1;
  transform: scale(1);
}

#contact>div {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

#varicose-hero {
  background-size: cover;
}

#varicose-what>div {
  flex-direction: column;
  align-items: flex-start;
}

#treatment {
  background: #f6f4ff;
}

#associated-services {
  background: #fff;
}

.collingwood-icon>img {
  width: 100%;
  background-color: white;
  border-radius: 5px;
}

.bio-text {
  flex: 1;
  opacity: 1;
  transform: none;
}

.bio-pic {
  opacity: 1;
  border-radius: 5px;
}

.about-template #services, .results #services {
  background: #ffffff;
}

#about-quote {
  background: #f6f4ff;
}

#feedback>div {
  flex-direction: column;
}
#before-after>div {
  flex-direction: column;
  align-items: unset;
}

#before-after h1 {
  text-align: center;
}

.impact-line-h {
  display: none;
}
.impact-line-v {
  display: block;
  padding: 0 40px;
}

@media screen and (max-width: 1020px) {
  #surgeon>.page-width.vertical-pad {
    padding: 0;
  }
}

@media screen and (min-width: 501px) {
  #hero {
    background: no-repeat left 50%/calc( 300px + 90vw ) url('../images/pexels-akshaya-premjith-1173804-reverse.jpg');
  }
  #book>div {
    align-items: center;
  }

  #service-grid, #associated-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #contact>div {
    flex-direction: row;
    align-items: flex-end;
  } 
  

}

@media screen and (min-width: 801px) {
  #about-bio {
    flex-direction: row;
  }
}

@media screen and (min-width: 1021px) {
  #book>div, #book a {
    flex-direction: row;
    align-items: center;
  }
  .steps-desktop {
    display: block;
  }
  .steps-mobile {
    display: none;
  }

  #surgeon>div {
    flex-direction: row;
  }

  .surgeon-text {
    left: 50px;
    bottom: 0;
    padding: 0 40px 20px;  
    margin: 0;  
  }
  .surgeon-text>h1 {
    display: block;
  }
    
  .surgeon-image>h1 {
    display: none;
  }

  #service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  #impact {
    padding-top: 50px;
    padding-bottom: 50px;
  }
    
  #impact>div {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  .impact-line-h {
    display: block;
  }
  .impact-line-v {
    display: none;
  }
  .impact-slide {
    top: -20px;
  }


}

@media screen and (max-width: 300px) {
  #hero {
    background: no-repeat left 50%/calc( 300px + 90vw ) url('../images/pexels-akshaya-premjith-1173804-reverse.jpg');
  }
}

@media only screen and (max-width: 1020px) {
  .menu-desktop.menu-show {
      height: max-content;
      opacity: 1;
      padding-top: 15em;
      padding-bottom: 3em;
      line-height: 4em;
      z-index: 1;
  }

  .menu-desktop {
    text-align: left;
  }

  .menu-desktop .link--animated::after  {
    content: unset;
  }

  .menu-desktop ul {
    padding-left: 20px;
  }

  #nav {
    background: rgba(255, 255, 255, 1)
  }
}