/* Endoscopy page */
.page-endoscopy__bg {
  padding: 54px 0 90px;
}

.endoscopy-intro {
  max-width: 1080px;
  padding-bottom: 64px;
}

.endoscopy-intro__header {
  margin-bottom: 54px;
  text-align: center;
}

.endoscopy-intro__label {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.endoscopy-intro__text {
  max-width: 920px;
  margin: 0 auto;
  color: var(--clinic-text-sub);
  font-size: 20px;
  line-height: 2;
}

.page-endoscopy .feature-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
}

.page-endoscopy .feature-photo-tile {
  aspect-ratio: 16 / 9;
  background: #b8bcbc;
}

.page-endoscopy .feature-photo-tile::after {
  background: rgba(42, 47, 47, 0.22);
}

.page-endoscopy .feature-photo-tile__caption {
  left: 5%;
  right: 5%;
  top: 50%;
  bottom: auto;
  font-size: clamp(24px, 3vw, 48px);
  line-height: 1.45;
  text-align: center;
  transform: translateY(-50%);
}

.endoscopy-types {
  max-width: 1430px;
  margin: 0 auto;
  padding-top: 70px;
  padding-bottom: 72px;
}

.endoscopy-types .section-heading {
  margin-top: 0;
  margin-bottom: 34px;
  text-align: center;
}

.endoscopy-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.endoscopy-type-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
  border: 3px solid #55b9aa;
  background: #fff;
  color: #25aaa8;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.endoscopy-type-card:hover,
.endoscopy-type-card:focus-visible {
  background: #effaf8;
  color: #087a78;
}

.endoscopy-type-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.endoscopy-type-card__content img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.endoscopy-type-card__arrow {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 100% 0 0 0;
  background: #28b5bd;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.page-endoscopy__bg > .container {
  max-width: 1430px;
  margin-right: auto;
  margin-left: auto;
}

.callout-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1430px;
  margin: 0 auto 48px;
  padding: 14px 28px;
  background: #eee;
}

.callout-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clinic-teal);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.callout-box__text {
  flex: 1;
  margin: 0;
  color: var(--clinic-text);
  font-size: 20px;
}

.page-endoscopy .faq-block {
  padding-top: 0;
  padding-bottom: 40px;
}

@media screen and (max-width: 1023px) {
  .page-endoscopy__bg {
    padding: 34px 0 54px;
  }

  .endoscopy-intro {
    padding-bottom: 38px;
  }

  .endoscopy-intro__header {
    margin-bottom: 32px;
  }

  .endoscopy-intro__text {
    font-size: 16px;
  }

  .endoscopy-features {
    padding-inline: var(--page-gutter-sp);
  }

  .page-endoscopy .feature-photo-grid,
  .endoscopy-type-grid {
    grid-template-columns: 1fr;
  }

  .page-endoscopy .feature-photo-tile__caption {
    font-size: clamp(20px, 6vw, 34px);
  }

  .endoscopy-types {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .endoscopy-type-card {
    min-height: 150px;
    font-size: 22px;
  }

  .endoscopy-type-card__content img {
    width: 58px;
    height: 58px;
  }

  .callout-box {
    align-items: flex-start;
    padding: 18px;
  }

  .callout-box__text {
    font-size: 16px;
  }
}

@media screen and (max-width: 479px) {
  .page-endoscopy .feature-photo-tile__caption {
    font-size: 1.25rem;
  }
  .endoscopy-type-card {
    min-height: 132px;
    padding-inline: 18px;
    font-size: 1.1875rem;
  }
  .callout-box {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .endoscopy-type-card {
    transition: none;
  }
}
