/* ============================================================
   ojm — 병원 마케팅 랜딩 섹션
   2026-09-17

   기존 .ojp 문서 시스템(CSS_zzz_ojick.css)의 --oj-* 토큰을 그대로 쓴다.
   .ojp 는 글(article) 레이아웃이라 히어로가 얇다. 랜딩에 필요한
   히어로·지표·카드·단계·적합성 블록만 여기에 더한다.

   이 파일은 assets.php 의 CSS_*.css 글롭으로 전 페이지에 로드되므로
   모든 선택자를 .ojm 아래로 가둔다. 밖으로 새지 않는다.
   ============================================================ */

.ojm {
  /* 의료의 신뢰감을 주는 남색을 보조로 더한다. 주색(오렌지)은 그대로 둔다. */
  --ojm-navy:    #1f3a5f;
  --ojm-navy-dk: #142a46;
  --ojm-navy-lt: #eef3f9;
}

/* .ojp 래퍼의 본문 크기를 랜딩에 맞게 조금 키운다 */
.entry-content .ojp.ojm { font-size: 1.04rem; }

/* ============================================================
   히어로
   ============================================================ */
.entry-content .ojm-hero {
  position: relative;
  margin: 0 0 44px;
  padding: 44px 40px 40px;
  border-radius: var(--oj-radius);
  border-bottom: 0;                       /* .ojp-hero 의 밑줄을 쓰지 않는다 */
  background: linear-gradient(135deg, var(--ojm-navy-dk) 0%, var(--ojm-navy) 62%, #2c4f7c 100%);
  color: #fff;
  overflow: hidden;
}
.entry-content .ojm-hero > * { position: relative; z-index: 1; }

/* 배경 장식 — 맥박선. 내용을 가리지 않게 흐리게 깐다 */
.entry-content .ojm-hero::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -30px;
  width: 320px; height: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 220'><path d='M0 150h70l22-54 26 104 24-72 20 22h158' fill='none' stroke='%23ffffff' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  opacity: .13;
  pointer-events: none;
}

.entry-content .ojm .ojm-hero-eyebrow {
  margin: 0 0 14px !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--oj-orange);
}
.entry-content .ojm h1.ojm-hero-title {
  margin: 0 0 18px;
  font-family: var(--oj-font);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -.02em;
}
.entry-content .ojm p.ojm-hero-lead {
  margin: 0 0 26px !important;
  max-width: 44em;
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .88);
}

.entry-content .ojm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.entry-content .ojm a.ojm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border-bottom: 0;
  font-size: .97rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--oj-orange);
  color: #fff;
  transition: background .18s ease;
}
.entry-content .ojm a.ojm-btn:hover { background: var(--oj-orange-dk); color: #fff; }
.entry-content .ojm a.ojm-btn--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
}
.entry-content .ojm a.ojm-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ============================================================
   대표 그림 (인라인 SVG)
   ============================================================ */
.entry-content .ojm-figure {
  margin: 0 0 44px;
  padding: 26px;
  background: var(--oj-bg-alt);
  border: 1px solid var(--oj-line);
  border-radius: var(--oj-radius);
}
.entry-content .ojm-figure svg { display: block; width: 100%; height: auto; }
.entry-content .ojm figcaption.ojm-figure-cap {
  margin: 16px 0 0;
  font-size: .84rem;
  line-height: 1.6;
  color: var(--oj-muted);
  text-align: center;
}

/* ============================================================
   지표 — 성과가 아니라 '무엇을 하는지'를 적는다
   ============================================================ */
/* 선택자에 요소명(ul)을 넣어야 한다. .ojp 시스템의 `.entry-content .ojp ul`
   이 (0,2,1) 이라, 클래스만 쓰면 padding-left 가 그쪽에 먹혀 20px 이 샌다. */
.entry-content ul.ojm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}
.entry-content .ojm ul.ojm-stats > li {
  margin: 0;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--oj-line);
  border-top: 3px solid var(--oj-orange);
  border-radius: var(--oj-radius);
}
.entry-content .ojm .ojm-stat-n {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ojm-navy);
}
.entry-content .ojm .ojm-stat-l {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--oj-muted);
}

/* ============================================================
   카드 (아이콘 + 제목 + 설명)
   ============================================================ */
.entry-content .ojm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 0 0 12px;
}
.entry-content .ojm-card {
  padding: 24px 22px 22px;
  background: #fff;
  border: 1px solid var(--oj-line);
  border-radius: var(--oj-radius);
  transition: border-color .18s ease, transform .18s ease;
}
.entry-content .ojm-card:hover { border-color: var(--oj-orange); transform: translateY(-2px); }
.entry-content .ojm-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--oj-orange-lt);
  color: var(--oj-orange-dk);
}
.entry-content .ojm-card-ico svg { width: 24px; height: 24px; }
.entry-content .ojm h3.ojm-card-h {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--oj-ink);
}
.entry-content .ojm .ojm-card p { margin: 0 !important; font-size: .93rem; line-height: 1.72; }

/* ============================================================
   진행 단계
   ============================================================ */
/* ol 도 같은 이유로 요소명을 붙인다 */
.entry-content ol.ojm-steps { margin: 0; padding: 0; list-style: none; counter-reset: ojmstep; }
.entry-content .ojm ol.ojm-steps > li {
  position: relative;
  margin: 0 0 14px;
  padding: 20px 22px 20px 74px;
  background: #fff;
  border: 1px solid var(--oj-line);
  border-radius: var(--oj-radius);
}
.entry-content .ojm ol.ojm-steps > li::before {
  counter-increment: ojmstep;
  content: counter(ojmstep, decimal-leading-zero);
  position: absolute;
  top: 18px; left: 22px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--oj-orange);
  font-variant-numeric: tabular-nums;
}
.entry-content .ojm .ojm-step-h {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--oj-ink);
}
.entry-content .ojm .ojm-step-d { font-size: .92rem; line-height: 1.7; color: var(--oj-body); }

/* ============================================================
   적합성 — 맞는 경우 / 맞지 않는 경우
   ============================================================ */
.entry-content .ojm-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin: 0;
}
.entry-content .ojm-fit-col {
  padding: 22px 24px;
  border-radius: var(--oj-radius);
  border: 1px solid var(--oj-line);
}
.entry-content .ojm-fit-col--yes { background: var(--ojm-navy-lt); border-color: #cfe0f0; }
.entry-content .ojm-fit-col--no  { background: var(--oj-bg-alt); }
.entry-content .ojm h3.ojm-fit-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: .97rem;
  font-weight: 800;
  color: var(--oj-ink);
}
.entry-content .ojm h3.ojm-fit-h svg { width: 18px; height: 18px; flex: none; }
.entry-content .ojm .ojm-fit-col--yes h3.ojm-fit-h svg { color: var(--ojm-navy); }
.entry-content .ojm .ojm-fit-col--no  h3.ojm-fit-h svg { color: var(--oj-muted); }
.entry-content .ojm ul.ojm-fit-list { margin: 0 !important; padding-left: 1.1em; }
.entry-content .ojm ul.ojm-fit-list li { font-size: .93rem; line-height: 1.7; }

/* ============================================================
   법규 안내 박스
   ============================================================ */
.entry-content .ojm-law {
  padding: 22px 24px;
  border-radius: var(--oj-radius);
  background: #fff;
  border: 1px solid var(--oj-line);
  border-left: 4px solid var(--ojm-navy);
}
.entry-content .ojm .ojm-law-label {
  margin: 0 0 10px !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ojm-navy);
}
.entry-content .ojm .ojm-law p:last-child { margin-bottom: 0 !important; }

/* ============================================================
   모바일
   ============================================================ */
@media (max-width: 768px) {
  .entry-content .ojm-hero { padding: 32px 22px 30px; }
  .entry-content .ojm-hero::after { width: 210px; height: 150px; right: -26px; bottom: -18px; }
  .entry-content .ojm a.ojm-btn { padding: 12px 20px; font-size: .92rem; }
  .entry-content .ojm-figure { padding: 16px; }
  .entry-content .ojm ol.ojm-steps > li { padding: 18px 18px 18px 62px; }
  .entry-content .ojm ol.ojm-steps > li::before { left: 18px; }
  .entry-content .ojm-fit-col,
  .entry-content .ojm-law { padding: 18px 18px; }
}

/* ============================================================
   운영 중인 프로그램
   ============================================================ */
.entry-content .ojm-progs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}
.entry-content .ojm-prog {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  background: #fff;
  border: 1px solid var(--oj-line);
  border-radius: var(--oj-radius);
}
.entry-content .ojm h3.ojm-prog-h {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--oj-ink);
}
.entry-content .ojm .ojm-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  background: var(--ojm-navy-lt);
  color: var(--ojm-navy);
}
.entry-content .ojm .ojm-prog p { margin: 0 0 14px !important; font-size: .93rem; line-height: 1.72; }

/* 주소 — 링크일 때와 텍스트일 때 같은 모양으로 보이게 한다 */
.entry-content .ojm .ojm-prog-u,
.entry-content .ojm a.ojm-prog-u {
  margin-top: auto;
  font-size: .86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  color: var(--oj-orange-dk);
  border-bottom: 0;
}
.entry-content .ojm a.ojm-prog-u:hover { color: var(--oj-ink); text-decoration: underline; }
.entry-content .ojm span.ojm-prog-u { color: var(--oj-muted); }

.entry-content .ojm p.ojm-prog-note {
  margin: 0 !important;
  padding: 14px 18px;
  background: var(--oj-bg-alt);
  border-radius: var(--oj-radius);
  font-size: .89rem;
  line-height: 1.7;
  color: var(--oj-muted);
}

@media (max-width: 768px) {
  .entry-content .ojm-prog { padding: 20px 18px 18px; }
}

/* ============================================================
   가로폭 1440 — 2026-09-17
   .ojp 는 글 읽기용이라 max-width:820px 로 묶여 있다. 랜딩은 그 폭을
   쓸 이유가 없으므로 사이트 컨테이너(1440)까지 푼다.
   대신 '읽는 글'은 넓어지면 줄이 길어져 읽기 어려워지므로
   문단 성격의 블록만 따로 읽기 폭으로 제한한다.
   ============================================================ */
.entry-content .ojp.ojm {
  max-width: 1440px;
  padding-inline: clamp(0px, 1.6vw, 24px);
}

/* 문단이 길게 늘어지면 안 되는 블록들 */
.entry-content .ojm p.ojm-hero-lead { max-width: 46em; }
.entry-content .ojm .ojp-sec > p     { max-width: 60em; }
.entry-content .ojm .ojm-law         { max-width: 68em; }
.entry-content .ojm .ojp-faq         { max-width: 68em; }
.entry-content .ojm .ojm-step-d      { max-width: 68em; }
.entry-content .ojm p.ojm-prog-note  { max-width: 68em; }

/* 히어로는 넓어져도 제목이 한 줄로 늘어지지 않게 */
.entry-content .ojm h1.ojm-hero-title { max-width: 18em; }

/* 넓은 화면에서 카드가 지나치게 커지지 않도록 최소 폭을 올린다.
   3장이면 3열, 4장이면 4열로 떨어진다. */
@media (min-width: 1100px) {
  .entry-content .ojm-cards  { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .entry-content .ojm-progs  { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .entry-content ul.ojm-stats { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .entry-content .ojm-hero   { padding: 56px 52px 52px; }
  .entry-content .ojm-figure { padding: 34px; }
}

/* ============================================================
   중간 폭 (태블릿~작은 노트북) — 1열로 떨어지기 전 구간을 다듬는다
   ============================================================ */
@media (max-width: 1024px) {
  .entry-content .ojp.ojm { padding-inline: 0; }
  .entry-content .ojm-hero { padding: 38px 30px 34px; }
}

/* ============================================================
   좁은 화면 보강
   ============================================================ */
@media (max-width: 600px) {
  /* 히어로 버튼이 두 줄로 깨지지 않게 폭을 채운다 */
  .entry-content .ojm-hero-actions { flex-direction: column; align-items: stretch; }
  .entry-content .ojm a.ojm-btn { justify-content: center; }

  /* 대표 그림은 가로로 긴 도해라 좁은 화면에서 글자가 뭉갠다.
     가로 스크롤을 허용해 원래 비율로 보게 한다. */
  .entry-content .ojm-figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .entry-content .ojm-figure svg { min-width: 560px; }

  /* 프로그램 주소가 카드 밖으로 넘치지 않게 */
  .entry-content .ojm .ojm-prog-u { font-size: .8rem; }

  .entry-content .ojm h1.ojm-hero-title { max-width: none; }
}
