:root {
  --one-stop-blue: #1656a1;
  --one-stop-teal: #23aeb8;
}

.main-nav a[aria-current="page"]::after {
  left: 0;
  right: 0;
}

.one-stop-inner {
  width: min(calc(100% - 80px), 1200px);
  margin: 0 auto;
}

.one-stop-hero {
  position: relative;
  min-height: 780px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: url("../assets/subpages/one-stop-care/one-stop-hero.png") center / cover no-repeat;
}

.one-stop-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(34, 31, 29, .36);
}

.one-stop-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 80px), 1000px);
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.one-stop-hero .breadcrumb {
  margin-bottom: 22px;
}

.one-stop-hero h1 {
  margin: 0 0 10px;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(54px, 3.55vw, 68px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.2;
}

.one-stop-hero h2 {
  margin: 0 0 28px;
  font-size: clamp(27px, 1.75vw, 34px);
  font-weight: 600;
  letter-spacing: -.04em;
}

.one-stop-hero-inner > p:last-child {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.care-flow {
  min-height: 800px;
  display: grid;
  align-items: center;
  padding: 120px 0 130px;
  background: #fff;
}

.care-flow-copy {
  margin-bottom: 62px;
}

.care-flow-copy h2,
.care-continuity-copy h2 {
  margin: 0;
  font-size: clamp(34px, 2.15vw, 42px);
  line-height: 1.25;
  letter-spacing: -.045em;
}

.care-flow-copy p {
  margin: 45px 0 0;
  color: #4c4c4c;
  font-size: 17px;
  line-height: 1.75;
}

.care-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.care-step {
  position: relative;
  min-height: 225px;
  padding: 54px 27px 28px;
  border: 2px solid var(--one-stop-blue);
}

.care-step:nth-child(2) {
  border-color: var(--one-stop-teal);
}

.care-step:nth-child(3) {
  border-color: #184663;
}

.care-step > span {
  position: absolute;
  top: -20px;
  left: 38px;
  min-width: 98px;
  padding: 5px 14px;
  color: #fff;
  background: var(--one-stop-blue);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.care-step:nth-child(2) > span {
  background: var(--one-stop-teal);
}

.care-step:nth-child(3) > span {
  background: #184663;
}

.care-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -25px;
  width: 26px;
  color: #1d5185;
  background: #fff;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}

.care-step h3 {
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d9d9d9;
  font-size: 20px;
}

.care-step p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.75;
}

.care-continuity {
  min-height: 780px;
  display: grid;
  align-items: center;
  background: #f3f3f3;
}

.care-continuity-grid {
  width: min(100%, 1920px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(450px, .95fr);
  align-items: center;
  margin: 0 auto;
}

.care-photo-composition {
  position: relative;
  min-height: 700px;
}

.care-room-photo {
  position: absolute;
  inset: 0 24% 0 0;
  margin: 0;
  overflow: hidden;
}

.care-room-photo img,
.care-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-doctor-photo {
  position: absolute;
  top: 130px;
  right: 0;
  width: 53%;
  height: 510px;
  margin: 0;
  overflow: hidden;
}

.care-continuity-copy {
  padding: 70px clamp(60px, 8vw, 150px) 70px 80px;
}

.care-continuity-copy h2 {
  margin-bottom: 48px;
  font-size: clamp(38px, 2.45vw, 47px);
}

.care-continuity-copy p {
  margin: 0 0 24px;
  color: #565656;
  font-size: 18px;
  line-height: 1.8;
}

.care-message {
  position: relative;
  min-height: 820px;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 0 24px 125px;
  overflow: hidden;
  isolation: isolate;
  background-color: #fff;
  background-image: url("../assets/subpages/one-stop-care/logo-symbol-soft.svg");
  background-repeat: no-repeat;
  background-position: 68% -32px;
  background-size: clamp(429px, 35.1vw, 676px) auto;
  text-align: center;
}

.care-message-line,
.care-message-copy {
  position: relative;
  z-index: 1;
}

.care-message-line {
  position: relative;
  width: 1px;
  height: 150px;
  margin-bottom: 55px;
  background: #d6d6d6;
}

.care-message-line span {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1756ae;
  transform: translateX(-50%);
}

.care-message-quote {
  margin: 0 0 48px;
  color: #777;
  font-size: 17px;
}

.care-message h2 {
  margin: 0 0 72px;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(38px, 2.45vw, 48px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.045em;
}

.care-message-copy > p:last-child {
  margin: 0;
  color: #777;
  font-size: 18px;
  line-height: 1.8;
}

@media (max-width: 1500px) {
  .one-stop-hero { min-height: 620px; }
  .care-flow { min-height: 660px; padding: 100px 0; }
  .care-step { min-height: 200px; }
  .care-continuity { min-height: 650px; }
  .care-photo-composition { min-height: 580px; }
  .care-doctor-photo { top: 100px; height: 430px; }
  .care-message { min-height: 690px; }
}

@media (max-width: 1100px) {
  .care-continuity-grid { grid-template-columns: 1fr 1fr; }
  .care-photo-composition { min-height: 560px; }
  .care-doctor-photo { top: 105px; height: 390px; }
  .care-continuity-copy { padding: 60px 40px; }
}

@media (max-width: 800px) {
  .one-stop-inner { width: min(calc(100% - 40px), 1200px); }
  .one-stop-hero { min-height: 500px; background-position: 68% center; }
  .one-stop-hero-inner { width: calc(100% - 40px); }
  .one-stop-hero h1 { font-size: 42px; }
  .one-stop-hero h2 { font-size: 23px; }
  .one-stop-hero-inner > p:last-child { font-size: 15px; }
  .one-stop-hero-inner > p:last-child br { display: none; }
  .care-flow { min-height: 0; padding: 82px 0 92px; }
  .care-flow-copy { margin-bottom: 58px; }
  .care-flow-copy p br { display: none; }
  .care-steps { grid-template-columns: 1fr; gap: 44px; }
  .care-step { min-height: auto; }
  .care-step:not(:last-child)::after { content: "⌄"; top: auto; right: 50%; bottom: -37px; transform: translateX(50%); }
  .care-continuity { min-height: 0; padding-bottom: 78px; }
  .care-continuity-grid { grid-template-columns: 1fr; }
  .care-photo-composition { min-height: 560px; }
  .care-room-photo { right: 22%; }
  .care-doctor-photo { width: 56%; }
  .care-continuity-copy { padding: 65px 24px 0; }
  .care-continuity-copy p br { display: none; }
  .care-message { min-height: 0; padding: 0 24px 64px; }
  .care-message { background-position: 74% -18px; background-size: 403px auto; }
  .care-message-line { height: 56px; margin-bottom: 28px; }
}

@media (max-width: 520px) {
  .one-stop-hero { min-height: 460px; }
  .one-stop-hero h1 { font-size: 37px; }
  .one-stop-hero h2 { font-size: 20px; }
  .care-flow-copy h2,
  .care-continuity-copy h2 { font-size: 31px; }
  .care-flow-copy p,
  .care-continuity-copy p,
  .care-message-copy > p:last-child { font-size: 15px; }
  .care-photo-composition { min-height: 450px; }
  .care-doctor-photo { top: 90px; height: 320px; }
  .care-message h2 { margin-bottom: 52px; font-size: 32px; }
  .care-message-quote { font-size: 15px; }
}
