#service-doctor {
  position: relative;
  padding: 0rem 0 6rem 0;
  overflow: hidden;
  background: #fff;
}

#service-doctor .doctor_container {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

#service-doctor .doctor_heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

#service-doctor .doctor_heading_left {
  display: flex;
  flex-direction: column;
}

#service-doctor .doctor_badge {
  display: flex;
  width: fit-content;
  padding: 0.5rem 0.875rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 2.5rem;
  background: var(--Brand-Yellow, #fcca45);
  color: #fff;

  /* PC/Sub title/16 - M */
  font-family: "Google Sans";
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 1.5rem */
  text-transform: uppercase;
  margin-bottom: 1.875rem;
}

#service-doctor .doctor_badge svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

#service-doctor .doctor_title {
  color: var(--Text-Title-Blue, #0897d8);
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  /* PC/Heading/H1/40 */
  font-family: "Google Sans";
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 130%; /* 3.25rem */
  letter-spacing: -0.05rem;
  text-transform: uppercase;
}

#service-doctor .doctor_link_button {
  display: flex;
  height: 3rem;
  padding: 0.875rem 1.75rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 6.25rem;
  border: 1.6px solid #f5f5f5;
  background: var(--Brand-Blue, #1991c7);
  box-shadow: 0 0 0 2px #a3e2ff, 0 0 4px 0 rgba(0, 0, 0, 0.12),
    0 1px 8px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  color: var(--Trng, #fff);
  font-family: "Google Sans";
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 1.5rem */
}

#service-doctor .doctor_link_button:hover {
  background: #e6b639;
  box-shadow: 0 0 0 2px #ffdca3, 0 0 4px 0 rgba(0, 0, 0, 0.12),
    0 1px 8px 0 rgba(0, 0, 0, 0.1);
}

#service-doctor .doctor_link_button svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Swiper container */
#service-doctor .doctor_swiper_wrapper {
  position: relative;
}

#service-doctor .doctor_swiper_background {
  position: absolute;
  bottom: -5rem;
  left: 0;
  width: 90.3125rem;
  height: 11.90638rem;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#service-doctor .doctor_swiper_clip {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: calc(3 * 24.9375rem + 2 * 3rem);
  margin: 0 auto;
  z-index: 1;
}

#service-doctor .doctor_swiper {
  overflow: visible;
}

#service-doctor .doctor_slide {
  width: 25.9375rem !important;
  height: 32.375rem !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

#service-doctor .doctor_slide_card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20rem;
  height: 24.96388rem;
  background: #e0e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: width 0.45s ease, height 0.45s ease, opacity 0.35s ease,
    filter 0.45s ease;
}

#service-doctor .doctor_slide .doctor_slide_image {
  width: 16.0625rem;
  height: 23.8125rem;
  object-fit: contain;
  object-position: bottom;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.45s ease, height 0.45s ease;
}

#service-doctor .doctor_slide.swiper-slide-prev .doctor_slide_card,
#service-doctor .doctor_slide.swiper-slide-next .doctor_slide_card {
  opacity: 0.55;
  filter: saturate(0.75);
}

#service-doctor .doctor_slide.swiper-slide-prev {
  z-index: 1;
}

#service-doctor .doctor_slide.swiper-slide-next {
  z-index: 1;
}

#service-doctor .doctor_slide.swiper-slide-active {
  z-index: 2;
}

#service-doctor .doctor_slide.swiper-slide-active .doctor_slide_card {
  width: 25.9375rem;
  height: 32.375rem;
  opacity: 1;
}

#service-doctor .doctor_slide.swiper-slide-active .doctor_slide_image {
  width: 23.8125rem;
  height: 32.375rem;
}

#service-doctor .doctor_active_info {
  position: absolute;
  left: 50%;
  bottom: -6rem;
  transform: translate(-50%, 0.5rem);
  display: flex;
  width: 25.9375rem;
  padding: 0.5rem 1rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0.625rem;
  background: linear-gradient(90deg, #134a9b 0%, #1b91c7 100%);
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

#service-doctor .doctor_active_info.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

#service-doctor .doctor_active_info_name {
  color: #fff;
  font-family: "Google Sans";
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 1.875rem */
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#service-doctor .doctor_active_info_position {
  margin: 0;
  color: var(--White, #fff);
  text-align: center;
  font-family: "Google Sans";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 1.5rem */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Navigation buttons */
#service-doctor .doctor_nav {
  position: absolute;
  top: calc(50% - 1rem);
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #8ccdea;
  color: #1991c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, opacity 0.2s ease;
}

#service-doctor .doctor_nav:hover {
  background: #1991c7;
  border-color: #1991c7;
  color: #fff;
}

#service-doctor .doctor_nav:disabled,
#service-doctor .doctor_nav.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#service-doctor .doctor_nav svg {
  width: 0.47906rem;
  height: 0.95813rem;
}

#service-doctor .doctor_nav_prev {
  left: 0;
}

#service-doctor .doctor_nav_next {
  right: 0;
}

/* Pagination dots - hidden on desktop */
#service-doctor .doctor_pagination {
  display: none;
}

/* Mobile-only link button - hidden on desktop */
#service-doctor .doctor_link_button--mobile {
  display: none;
}

#service-doctor .doctor_active_info_position {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

#service-doctor .doctor_active_info_icon {
  display: none;
}

/* ============== Mobile ============== */
@media (max-width: 639.98px) {
  #service-doctor .doctor_pagination {
    margin-bottom: 1.875rem;
  }
  #service-doctor .doctor_active_info_icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #fff;
    display: block;
  }
  #service-doctor .doctor_swiper_wrapper {
    padding: 0 1.37rem;
  }
  #service-doctor {
    padding: 3rem 0;
  }

  #service-doctor .doctor_container {
    padding: 0 1rem;
  }

  #service-doctor .doctor_heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 1.875rem;
  }

  #service-doctor .doctor_heading_left {
    align-items: center;
    text-align: center;
  }

  #service-doctor .doctor_badge {
    margin-bottom: 1.5rem;
    display: flex;
    padding: 0.3125rem 0.625rem;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    border-radius: 2.5rem;
    background: var(--Brand-Yellow, #fcca45);
    color: #fff;
    font-family: "Google Sans";
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 160%; /* 1.2rem */
    text-transform: uppercase;
  }

  #service-doctor .doctor_title {
    color: var(--Text-Title-Blue, #0897d8);
    font-family: "Google Sans";
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 1.95rem */
    letter-spacing: -0.03rem;
    text-transform: uppercase;
  }

  #service-doctor .doctor_link_button--desktop {
    display: none;
  }

  /* Swiper layout on mobile */
  #service-doctor .doctor_swiper_background {
    position: relative;
    display: block;
    width: 21.4375rem;
    height: 2.82619rem;
    bottom: 1.8125rem;
    left: -1.375rem;
    margin: 2.25rem auto 0;
    transform: none;
  }

  #service-doctor .doctor_swiper_clip {
    max-width: 100%;
    padding: 0 0.25rem;
  }

  #service-doctor .doctor_slide {
    width: 100% !important;
    height: 22.8125rem !important;
  }

  #service-doctor .doctor_slide_card,
  #service-doctor .doctor_slide.swiper-slide-active .doctor_slide_card {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    opacity: 1;
    filter: none;
    border-radius: 1rem;
  }

  #service-doctor .doctor_slide .doctor_slide_image,
  #service-doctor .doctor_slide.swiper-slide-active .doctor_slide_image {
    width: 16.8125rem;
    height: 22.8125rem;
    object-fit: contain;
    object-position: bottom;
    position: absolute;
    transform: none;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Navigation arrows positioned on the sides of the image */
  #service-doctor .doctor_nav {
    width: 2.5rem;
    height: 2.5rem;
    top: 45%;
    transform: translateY(-50%);
  }

  #service-doctor .doctor_nav_prev {
    left: 0.5rem;
  }

  #service-doctor .doctor_nav_next {
    right: 0.5rem;
  }

  /* Active info card: always visible, attached below the image */
  #service-doctor .doctor_active_info {
    position: relative;
    left: auto;
    bottom: auto;
    transform: translate(0, 2rem) !important;
    width: calc(100% - 1rem);
    display: flex;
    width: 18.75rem;
    padding: 0.58594rem 1.17188rem;
    flex-direction: column;
    align-items: center;
    margin: -1.5rem auto 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-radius: 0.48831rem;
    background: linear-gradient(90deg, #134a9b 0%, #1b91c7 100%);
    z-index: 3;
  }

  #service-doctor .doctor_active_info_name {
    color: #fff;
    font-family: "Google Sans";
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 1.5rem */
  }

  #service-doctor .doctor_active_info_position {
    color: var(--White-80, rgba(255, 255, 255, 0.8));
    font-family: "Google Sans";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 1.3125rem */
  }

  /* Pagination dots */
  #service-doctor .doctor_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0rem;
    position: relative;
    bottom: auto;
    width: 100%;
    transform: none;
    z-index: 2;
  }

  #service-doctor .doctor_pagination_bullet {
    display: inline-block;
    width: 1.25rem;
    height: 0.125rem;
    padding: 0;
    border: 0;
    border-radius: 62.5rem;
    opacity: 0.32;
    background: var(--Brand-Dark-Burgundy, #041821);
    cursor: pointer;
    transition: all 0.25s ease;
  }

  #service-doctor .doctor_pagination_bullet--active {
    width: 2.6875rem;
    height: 0.125rem;
    border-radius: 62.5rem;
    background: var(--Brand-Blue, #1991c7);
    opacity: 1;
  }

  /* Mobile button */
  #service-doctor .doctor_link_button--mobile {
    display: inline-flex;
    margin: 0rem auto 0;
    width: fit-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}
