.your-first-visit {
  --your-first-visit-vw: var(--vw, 100vw);
  --your-first-visit-bleed-margin: var(--bleed-margin, calc(50% - 50vw));
  --yfv-image-col: min(860px, 55vw);
  position: relative;
  width: var(--your-first-visit-vw);
  margin-left: var(--your-first-visit-bleed-margin);
  margin-right: var(--your-first-visit-bleed-margin);
  background: #fff;
  overflow-x: clip;
  overflow-y: visible;
  font-family: "Nunito", sans-serif;
  display: grid;
  grid-template-columns: var(--yfv-image-col) 1fr;
  align-items: stretch;
}

.your-first-visit__inner {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px clamp(12px, 1.5vw, 36px);
}

.your-first-visit__media-rail {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 100%;
}

.your-first-visit__image-wrap {
  width: 100%;
  height: 100%;
  border-radius: 0 24px 24px 0;
  overflow: hidden;
  transform: scale(1);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.your-first-visit__image-wrap:hover,
.your-first-visit__image-wrap:focus-within {
  transform: scale(1.04);
}

.your-first-visit__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Match Figma intent: hide part of image on the right while keeping rail corners. */
  -webkit-clip-path: inset(0 8% 0 0 round 0 24px 24px 0);
  clip-path: inset(0 8% 0 0 round 0 24px 24px 0);
}

@media (prefers-reduced-motion: reduce) {
  .your-first-visit__image-wrap {
    transition: none;
  }

  .your-first-visit__image-wrap:hover,
  .your-first-visit__image-wrap:focus-within {
    transform: none;
  }
}

.your-first-visit__content {
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.your-first-visit__eyebrow {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a5565;
}

.your-first-visit__title {
  width: 520px;
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 47px);
  line-height: 1.1;
  font-weight: 400;
  color: #4a5565;
  text-wrap: balance;
}

.your-first-visit__body {
  position: relative;
  width: min(680px, 100%);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: #101828;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.your-first-visit__body.is-collapsed {
}

.your-first-visit__body.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.your-first-visit__body p {
  margin: 0 0 1em;
}

.your-first-visit__body p:last-child {
  margin-bottom: 0;
}

.your-first-visit__show-more {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #007893;
  font: 600 18px/1.2 "Nunito", sans-serif;
  cursor: pointer;
}

.your-first-visit__show-more svg {
  transition: transform 0.2s ease;
}

.your-first-visit__show-more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (max-width: 1100px) {
  .your-first-visit {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .your-first-visit__inner {
    width: min(1290px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 0;
    padding: 40px 0 48px;
    justify-content: flex-start;
  }

  .your-first-visit__content,
  .your-first-visit__body {
    width: 100%;
  }

  .your-first-visit__media-rail {
    position: relative;
    width: min(1290px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 40px;
  }

  .your-first-visit__image-wrap {
    width: 100%;
    height: min(72vw, 560px);
    border-radius: 24px;
  }

  .your-first-visit__image {
    clip-path: none;
  }
}

@media (max-width: 768px) {
  .your-first-visit {
    padding: 0;
    min-height: auto;
  }

  .your-first-visit__inner {
    width: calc(100% - 32px);
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .your-first-visit__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .your-first-visit__image-wrap {
    height: min(78vw, 420px);
    border-radius: 18px;
  }

  .your-first-visit__media-rail {
    width: calc(100% - 32px);
    padding-bottom: 32px;
  }

  .your-first-visit__eyebrow {
    font-size: 12px;
  }

  .your-first-visit__body,
  .your-first-visit__show-more {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .your-first-visit {
    padding: 0;
  }

  .your-first-visit__inner {
    width: calc(100% - 24px);
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .your-first-visit__title {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  }

  .your-first-visit__image-wrap {
    height: min(76vw, 350px);
    border-radius: 12px;
  }

  .your-first-visit__media-rail {
    width: calc(100% - 24px);
    padding-bottom: 40px;
  }

  .your-first-visit__eyebrow {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .your-first-visit__body,
  .your-first-visit__show-more {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .your-first-visit__body,
  .your-first-visit__show-more svg {
    transition: none;
  }
}
