.home-doctor-carousel {
  position: relative;
  isolation: isolate;
}

.home-doctor-carousel__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-doctor-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.home-doctor-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}

.home-doctor-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.home-team-doctor-photo {
  object-position: center bottom !important;
}

.home-doctor-carousel__dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.home-doctor-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: width 220ms ease, border-radius 220ms ease, background 220ms ease;
}

.home-doctor-carousel__dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: #fff;
}

.home-whatsapp-cta--green {
  background: #25d366 !important;
  color: #fff !important;
}

.home-whatsapp-cta--green:hover,
.home-whatsapp-cta--green:focus-visible {
  background: #1fbd5b !important;
  color: #fff !important;
}

.home-whatsapp-cta__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.home-whatsapp-cta--green .home-whatsapp-cta__icon {
  filter: brightness(0) invert(1);
}

.home-floating-whatsapp__icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.home-whatsapp-nudge {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 49;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  width: min(320px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #171717;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

.home-whatsapp-nudge[hidden] {
  display: none;
}

.home-whatsapp-nudge.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.home-whatsapp-nudge::after {
  content: "";
  position: absolute;
  right: 23px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  transform: rotate(45deg);
}

.home-whatsapp-nudge__close {
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #707070;
  font-size: 22px;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}

.home-whatsapp-nudge__photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 34%;
}

.home-whatsapp-nudge__content {
  min-width: 0;
  padding-right: 12px;
}

.home-whatsapp-nudge__name {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.home-whatsapp-nudge__message {
  margin: 0 0 10px;
  color: #3f3f3f;
  font-size: 13px;
  line-height: 1.45;
}

.home-whatsapp-nudge__action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #25d366;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.home-whatsapp-nudge__action-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.home-whatsapp-nudge__action:hover,
.home-whatsapp-nudge__action:focus-visible {
  background: #1fbd5b;
}

@media (max-width: 767px) {
  body section,
  body section .text-left {
    text-align: center !important;
  }

  body section .items-start {
    align-items: center !important;
  }

  body section .justify-start {
    justify-content: center !important;
  }

  body section a.btn-shimmer {
    margin-right: auto;
    margin-left: auto;
  }

  .home-about-content > .mt-8 p {
    margin-right: auto;
    margin-left: auto;
  }

  .home-about-content > .mt-10 {
    justify-self: center;
    margin-right: auto;
    margin-left: auto;
  }

  .home-doctor-carousel__dots {
    bottom: 14px;
  }

  .home-whatsapp-nudge {
    right: 16px;
    bottom: 92px;
  }
}

@media (max-width: 1023px) {
  .home-about-grid {
    gap: 0 !important;
  }

  .home-about-content {
    display: contents;
  }

  .home-about-content > div:first-child,
  .home-about-content > h2 {
    order: 1;
  }

  .home-about-media {
    order: 2 !important;
    margin-top: 32px;
  }

  .home-about-content > .mt-8 {
    order: 3;
    margin-top: 32px;
  }

  .home-about-content > .mt-10 {
    order: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-doctor-carousel__track,
  .home-doctor-carousel__dot,
  .home-whatsapp-nudge {
    transition: none;
  }
}
