/* ========== Cancer Immunity Center (IMC) - BIG TYPOGRAPHY ========== */
.imc{
  --imc-max: 1100px;
  --imc-ink: #3b3b3b;
  --imc-muted: #7a7a7a;
  --imc-olive: #8f9e74;
  --imc-olive-2:#a9b48e;
  --imc-line: #d7d2c8;
  --imc-paper:#ffffff;
  --imc-warm:#f6f2ea;
  --imc-brown:#7b5c49;

  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--imc-ink);
  background: #fff;
}

/* 공통 래퍼 */
.imc__wrap,
.imc__top,
.imc-process,
.imc-effect__inner,
.imc-bottom__inner{
  width: min(var(--imc-max), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- TOP ---------- */
.imc__top{
  padding: 62px 0 26px;
  text-align: center;
}

.imc__top-kicker{
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--imc-brown);
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ✅ 메인 타이틀 40px */
.imc__top-title{
  margin: 0 0 16px;
  font-size: 40px;
  letter-spacing: -0.04em;
  color: #5a4639;
  font-weight: 800;
}

/* ✅ 본문 최소 17px */
.imc__top-desc{
  margin: 0 auto;
  max-width: 860px;
  font-size: 17px;
  line-height: 1.9;
  color: #7f7f7f;
  letter-spacing: -0.02em;
}

/* tabs */
.imc__tabs{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px auto 0;
  align-items: end;
}

.imc__tab{
  position: relative;
  border: 0;
  background: transparent;
  padding: 12px 0 16px;
  font-size: 18px;
  color: #a07962;
  transition: color .25s ease;
  cursor: pointer;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.imc__tab::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:4px;
  background:#b79179;
  opacity:.25;
  transition: opacity .25s ease;
}

/* hover */
.imc__tab:hover{
  color: #8a5f49;
}

.imc__tab.is-active{
  color: #8a5f49;
}

.imc__tab.is-active::after,
.imc__tab:hover::after{
  opacity:1;
}

/* ---------- Cards ---------- */

.imc-card{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 34px 0;
}

.imc-card + .imc-card{
  border-top: 1px solid rgba(0,0,0,0.05);
}

.imc-card.is-reverse{
  grid-template-columns: 1fr 1.05fr;
}
.imc-card.is-reverse .imc-card__media{ order: 2; }
.imc-card.is-reverse .imc-card__body{ order: 1; }

.imc-card__media img{
  width: 100%;
  height: 400px;
  display: block;
  object-fit: contain;
}

.imc-card__body{
  position: relative;
}

/* 라벨(치료명)*/
.imc-label{
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: #a9b48e;
  color: #fff;
  padding: 12px 16px;
  border-radius: 2px;
  margin: 0 0 16px;
}

.imc-label__kr{
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 20px;
}
.imc-label__en{
  font-size: 13px;
  opacity: .92;
  letter-spacing: -0.01em;
}

.imc-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ✅ 카드 본문도 17px 이상 */
.imc-list li{
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.9;
  color: #666;
  letter-spacing: -0.02em;
  margin: 10px 0;
}

.imc-list li::before{
  content:"";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  background: rgba(143,158,116,0.22);
  border-radius: 50%;
}

.imc-list li::after{
  content:"";
  position: absolute;
  left: 5px;
  top: 13px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--imc-olive);
  border-bottom: 2px solid var(--imc-olive);
  transform: rotate(-45deg);
}


/* ---------- Banner (응급/야간) ---------- */
.imc-banner{
  position: relative;
  margin: 28px 0 0;
  height: 200px;
  overflow: hidden;
}
.imc-banner__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
}
.imc-banner__overlay{
  position:absolute;
  inset:0;

}
.imc-banner__inner{
  position: relative;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ✅ 배너 타이틀도 40px */
.imc-banner__title{
  margin:0;
  color:#fff;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 18px 26px;
  background: rgba(0,0,0,0.18);
  border-radius: 6px;
}

/* 응급·야간 케어 시스템 설명(핑크 하이라이트 문장) */
.imc-night{
  width: min(var(--imc-max), calc(100% - 40px));
  margin: 22px auto 0;
}

.imc-night__list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.imc-night__list li{
  display: inline-block;       /* 각 줄이 ‘하이라이트 박스’처럼 보이게 */
  background: rgba(188, 224, 188, 0.22); /* 연핑크 하이라이트 */
  color: #0e4638;              /* 살구/주황 텍스트 */
  font-size: 17px;             /* ✅ 본문 최소 17px */
  line-height: 1.9;
  letter-spacing: -0.02em;
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 2px;
}

/* 한 줄이 너무 길어도 보기 좋게 */
.imc-night__list li{
  width: 100%;
  box-sizing: border-box;
}



/* ---------- Process ---------- */
.imc-process{
  padding: 54px 0 46px;
  text-align:center;
}

/* ✅ 섹션 타이틀 40px */
.imc-process__title{
  margin: 0 0 22px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #6a7a54;
}

.imc-process__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.imc-step{
  background: var(--imc-paper);
  border: 1px solid var(--imc-line);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.imc-step__head{
  width: 96px;
  margin: 0 auto 14px;
  padding: 10px 0;
  border: 1px solid #d9d6cd;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  color: #6c6c6c;
  background: #faf8f4;
}

.imc-step__body p{
  margin: 8px 0;
  font-size: 17px;   /* ✅ 최소 17px */
  line-height: 1.75;
  color: #6c6c6c;
  letter-spacing: -0.02em;
}

.imc-divider{
  width: 100%;
  height: 2px;
  background: rgba(143,158,116,0.45);
  margin: 36px auto 0;
}

/* ---------- Effect ---------- */
.imc-effect{
  background: var(--imc-warm);
  padding: 58px 0 58px;
}

/* ✅ 섹션 타이틀 40px */
.imc-effect__title{
  margin: 0 0 26px;
  text-align: left;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #6b6b6b;
}

.imc-effect__brand{
  font-size: 20px;
  font-weight: 800;
  color: #8a8a8a;
}

.imc-icons{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}

.imc-icon{
  text-align: center;
  padding: 12px 8px;
}

.imc-icon img{
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  opacity: .5;
}

.imc-icon p{
  margin: 0;
  font-size: 17px;   /* ✅ 최소 17px */
  line-height: 1.6;
  color: #7a6b5f;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ---------- Bottom banner ---------- */
.imc-bottom{
  position: relative;
  height: 500px;
  overflow: hidden;
}
.imc-bottom__bg{
  position:absolute;
  opacity: 0.75;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
}
.imc-bottom__overlay{
  position:absolute;
  inset:0;
}

.imc-bottom__inner h3{
  text-align: center;
}

.imc-bottom__inner{
  position: relative;
  height: 100%;
  display:flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  color: #fff;
  text-align: left;
}

/* ✅ 하단 타이틀도 40px */
.imc-bottom__title{
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.imc-bottom__bullets{
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  opacity: .96;
}
.imc-bottom__bullets li{
  margin: 10px 0;
  font-size: 17px;  /* ✅ 최소 17px */
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.imc-bottom__bullets{
  list-style: none;
  padding-left: 0;
}

.imc-bottom__bullets li{
  position: relative;
  padding-left: 34px;   /* 체크 들어갈 공간 */
  margin: 14px 0;
  line-height: 1.85;
}

/* 체크 아이콘 */
.imc-bottom__bullets li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15em;

  margin-top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;

  background: rgba(78, 30, 30, 0.25); /* 배경 위라면 살짝 밝게 */
  color: #fff;

  font-size: 14px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================
   IMC Responsive (Mobile)
   ========================= */
@media (max-width: 980px){

  /* 0) 전체 폭/여백 */
  .imc__wrap,
  .imc__top,
  .imc-process,
  .imc-effect__inner,
  .imc-bottom__inner{
    width: calc(100% - 40px);
    margin: 0 auto;
  }

  /* 1) 탭: 2열 */
  .imc__tabs{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* 2) 카드 레이아웃: 모든 카드 1열 + “이미지 위 / 본문 아래” 강제 */
  .imc-card,
  .imc-card.is-reverse{
    display: grid;
    grid-template-columns: 1fr !important; /* reverse의 2열 설정 완전 무력화 */
    gap: 18px;
    align-items: start;
  }

  .imc-card__media{ order: 1; width: 100%; }
  .imc-card__body{  order: 2; width: 100%; }

  .imc-card__media img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  /* 3) 프로세스 1열 */
  .imc-process__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* 4) 효과 아이콘 2열 */
  .imc-icons{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  /* 5) 모바일 타이틀 크기(너무 커질 수 있어 단계 축소) */
  .imc__top-title,
  .imc-process__title,
  .imc-effect__title,
  .imc-banner__title,
  .imc-bottom__title{
    font-size: 32px; /* 필요하면 34~36으로 올려도 됨 */
  }

  /* 6) 본문 최소 17px 유지 */
  .imc__top-desc,
  .imc-list li,
  .imc-step__body p,
  .imc-icon p,
  .imc-bottom__bullets li{
    font-size: 17px;
    line-height: 1.85;
  }

  /* 7) ✅ 초록 박스(라벨) 모바일 고정: 폭 100% + 일정 높이 + 줄바꿈 안정화 */
  .imc-label{
    display: flex;                 /* inline-flex → flex */
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    min-height: 92px;              /* 시안에 맞춰 84~104 사이로 조절 가능 */
  }

  /* 한글이 글자 단위로 세로 줄바꿈 되는 현상 방지 */
  .imc-label__kr{
    white-space: normal;
    word-break: keep-all;
    line-break: strict;
    flex: 0 0 auto;
    font-size: 20px;               /* 라벨 한글 */
  }

  /* 영문은 오른쪽에서 자연스럽게 줄바꿈 */
  .imc-label__en{
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    word-break: normal;
    font-size: 13px;               /* 라벨 영문 */
    line-height: 1.35;
  }

  /* 8) reverse 카드에서 혹시 남는 정렬 꼬임 방지 */
  .imc-card.is-reverse .imc-card__media,
  .imc-card.is-reverse .imc-card__body{
    order: unset;
  }
  .imc-card.is-reverse .imc-card__media{ order: 1; }
  .imc-card.is-reverse .imc-card__body{ order: 2; }

  .imc-night{
    margin-top: 18px;
  }
  .imc-night__list li{
    padding: 10px 12px;
    font-size: 17px; /* ✅ 유지 */
  }

    .imc-bottom{
    min-height: 720px !important;   /* 내용 길면 더 늘어나게 */
  }

  .imc-bottom__inner{
    gap: 18px !important;
  }

  .imc-bottom__title{
    font-size: 30px !important;     /* 40px가 답답하면 조절 */
    line-height: 1.25 !important;
  }

  .imc-bottom__bullets{
    max-width: 92% !important;
  }

}

/* ✅ 아주 작은 폰에서만 추가 여유 */
@media (max-width: 420px){
  .imc-bottom{
    min-height: 820px !important;
  }
}