@charset "utf-8";
/* =====================================================================
   숨피부과 칼럼 전용 CSS  (칼럼 리스트 / 칼럼 상세)
   - 구글 폰트 : Noto Sans KR, Nanum Myeongjo  (column_lib.php 의 column_head_extra() 에서 연결)
   - 폰트어썸 : 6.5.2                           (동일)
   - 기존 사이트 CSS(design.css 등)와 겹치지 않도록 모든 선택자는 .suum-col 아래 또는 col- 접두어 사용
   - 브레이크포인트 : 1023px(태블릿) / 767px(모바일)  ← 기존 사이트와 동일
   ===================================================================== */

/* ---------- 기본 변수 ---------- */
.suum-col {
  --c-main: #84c1c5;      /* 숨피부과 메인 민트 */
  --c-deep: #5a9ea3;      /* 진한 민트 */
  --c-soft: #eaf5f6;      /* 연한 민트 */
  --c-softer: #f5fafb;    /* 아주 연한 민트 */
  --c-ink: #212121;       /* 제목 */
  --c-text: #3d4a4c;      /* 본문 */
  --c-sub: #6b7a7c;       /* 보조 텍스트 */
  --c-line: #e3ecec;      /* 구분선 */
  --c-dark: #303030;      /* 헤더·푸터 차콜 */
  --serif: 'Nanum Myeongjo', 'Noto Serif KR', serif;

  position: relative;
  /* 고정 헤더 바로 아래에서 시작 : 헤더 높이(PC 178px / 태블릿 90px / 모바일 60px) + 여백
     → column.js 가 실제 헤더 높이를 재서 --col-top 값을 다시 맞춰줍니다 (JS 가 꺼져 있어도 아래 기본값으로 충분히 보입니다) */
  padding: var(--col-top, 222px) 20px 0;
  font-family: 'Noto Sans KR', 'Malgun Gothic', dotum, sans-serif;
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.suum-col *,
.suum-col *::before,
.suum-col *::after { box-sizing: border-box; }
.suum-col :where(a) { color: inherit; text-decoration: none; }
.suum-col :where(img) { display: block; max-width: 100%; height: auto; }
/* :where() 는 우선순위가 0 이라서, 아래에서 각 클래스에 준 margin/padding 이 그대로 적용됩니다 */
.suum-col :where(h1, h2, h3, p, ul, figure) { margin: 0; padding: 0; }
.suum-col ul { list-style: none; }
.suum-col :where(button) { font-family: inherit; cursor: pointer; }
.suum-col :focus-visible { outline: 3px solid var(--c-main); outline-offset: 3px; border-radius: 6px; }

/* head.php 의 #contents > .wrap 래퍼 안에서 열렸을 때는 래퍼의 좌우 여백을 그대로 사용 */
#contents .suum-col { padding-left: 0; padding-right: 0; }

/* 모바일에서만 줄바꿈 */
.col-br-m { display: none; }

/* 스크롤 등장 효과 (JS 가 있을 때만 숨김 처리 → JS 가 꺼져 있어도 내용은 보입니다) */
.col-js [data-col-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.col-js [data-col-reveal].is-in { opacity: 1; transform: none; }


/* =====================================================================
   1. 칼럼 리스트
   ===================================================================== */

/* ---------- 상단 타이틀 카드 ---------- */
.col-hero {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  padding: 76px 24px 72px;
  text-align: center;
  background: linear-gradient(135deg, var(--c-softer) 0%, var(--c-soft) 100%);
  border-radius: 36px;
}
.col-hero::before,
.col-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(132, 193, 197, .16);
  pointer-events: none;
}
.col-hero::before { width: 320px; height: 320px; left: -90px; top: -120px; }
.col-hero::after  { width: 220px; height: 220px; right: -60px; bottom: -90px; background: rgba(132, 193, 197, .22); }

.col-hero__label { position: relative; margin-bottom: 18px; }
.col-hero__label span {
  display: inline-block;
  padding: 0 0 0 .5em;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5em;
  color: var(--c-deep);
}
.col-hero__title {
  position: relative;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.col-hero__desc {
  position: relative;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--c-sub);
}

/* ---------- 목록 영역 ---------- */
.col-listwrap { max-width: 1000px; margin: 64px auto 0; }
.col-listwrap__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 18px;
}
.col-count { font-size: 15px; color: var(--c-sub); }
.col-count b { color: var(--c-deep); font-weight: 700; }

.col-list { border-top: 2px solid var(--c-dark); }
.col-item { border-bottom: 1px solid var(--c-line); }
.col-item[hidden] { display: none; }
.col-item__link {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 34px 8px;
  transition: background-color .3s ease;
}
.col-item__link:hover { background-color: var(--c-softer); }

.col-item__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  background: var(--c-soft);
}
.col-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.col-item__link:hover .col-item__thumb img { transform: scale(1.06); }
.col-item__noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--c-main);
}

.col-item__body { min-width: 0; }
.col-item__round {
  display: inline-block;
  padding: 4px 13px 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-deep);
  background: var(--c-soft);
  border-radius: 30px;
}
.col-item__title {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  transition: color .25s ease;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.col-item__link:hover .col-item__title { color: var(--c-deep); }
.col-item__desc {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--c-sub);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.col-item__meta {
  display: flex;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
  color: #8a9899;
}
.col-item__author { color: var(--c-text); font-weight: 500; }
.col-item__dot,
.col-head__dot {
  width: 3px; height: 3px;
  margin: 0 10px;
  border-radius: 50%;
  background: #b9c6c7;
}
.col-item__more {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-deep);
}
.col-item__more i { margin-left: 6px; font-size: 12px; transition: transform .3s ease; }
.col-item__link:hover .col-item__more i { transform: translateX(5px); }

/* ---------- 페이지 이동 ---------- */
.col-paging {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.col-paging a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 8px;
  font-size: 15px;
  color: var(--c-sub);
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}
.col-paging a:hover { background: var(--c-soft); color: var(--c-deep); }
.col-paging a.is-on { background: var(--c-main); color: #fff; font-weight: 700; }
.col-paging__arrow { font-size: 13px !important; }

/* ---------- 빈 목록 ---------- */
.col-empty { padding: 90px 0; text-align: center; color: var(--c-sub); border-bottom: 1px solid var(--c-line); }
.col-empty i { font-size: 40px; color: var(--c-main); }
.col-empty p { margin-top: 16px; font-size: 16px; line-height: 1.8; }


/* =====================================================================
   2. 칼럼 상세
   ===================================================================== */

/* ---------- 읽기 진행바 ---------- */
.col-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; background: transparent; pointer-events: none; }
.col-progress__bar { display: block; width: 100%; height: 100%; background: var(--c-main); transform: scaleX(0); transform-origin: 0 50%; }

.col-article { max-width: 800px; margin: 0 auto; }

/* ---------- 경로 ---------- */
.col-crumb { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #8a9899; }
.col-crumb a:hover { color: var(--c-deep); }
.col-crumb i { font-size: 10px; color: #b9c6c7; }

/* ---------- 글 머리 ---------- */
.col-head { padding: 34px 0 34px; text-align: center; border-bottom: 1px solid var(--c-line); }
.col-head__round {
  display: inline-block;
  padding: 5px 15px 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-deep);
  background: var(--c-soft);
  border-radius: 30px;
}
.col-head__title {
  margin-top: 20px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.col-head__meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  font-size: 15px;
  color: #8a9899;
}
.col-head__author { color: var(--c-text); font-weight: 500; }
.col-head__author i { margin-right: 7px; color: var(--c-main); }
.col-head__copy {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 18px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--c-sub);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 30px;
  transition: all .2s ease;
}
.col-head__copy:hover { color: var(--c-deep); border-color: var(--c-main); background: var(--c-softer); }
.col-head__copy.is-done { color: #fff; background: var(--c-main); border-color: var(--c-main); }

/* ---------- 본문 ---------- */
.col-body { padding-top: 44px; font-size: 18px; line-height: 1.95; letter-spacing: -0.02em; color: var(--c-text); }
.col-body p { margin-bottom: 1.5em; font-weight: 400; }
.col-body strong {
  font-weight: 700;
  color: var(--c-ink);
  background: linear-gradient(transparent 60%, rgba(132, 193, 197, .38) 60%);
}

/* 큰 제목 : 숫자 배지 + 제목 */
.col-h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 78px 0 28px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.col-h2__num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  background: var(--c-main);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--c-soft);
}
/* 소제목 */
.col-h3 {
  position: relative;
  margin: 40px 0 14px;
  padding-left: 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: var(--c-deep);
}
.col-h3::before {
  content: '';
  position: absolute; left: 0; top: .32em; bottom: .32em;
  width: 4px;
  border-radius: 4px;
  background: var(--c-main);
}

/* 이미지 */
.col-fig { margin: 8px 0 38px; }
.col-fig--cover { margin: 0 0 46px; }
.col-fig img {
  width: 100%;
  border-radius: 24px;
  background: var(--c-soft);
  box-shadow: 0 10px 34px rgba(132, 193, 197, .22);
  transition: opacity .6s ease;
}
/* JS 가 켜져 있을 때만 페이드인 (JS 가 꺼져 있어도 이미지는 보입니다) */
.col-js .col-fig img { opacity: 0; }
.col-js .col-fig img.is-loaded { opacity: 1; }

/* ---------- 상담 바로가기 ---------- */
.col-cta {
  margin-top: 70px;
  padding: 54px 40px 50px;
  text-align: center;
  background: linear-gradient(135deg, var(--c-softer) 0%, var(--c-soft) 100%);
  border-radius: 32px;
}
.col-cta__eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .45em; color: var(--c-deep); padding-left: .45em; }
.col-cta__title { margin-top: 14px; font-size: 27px; font-weight: 700; line-height: 1.4; letter-spacing: -0.04em; color: var(--c-ink); }
.col-cta__desc { margin-top: 10px; font-size: 16px; font-weight: 300; color: var(--c-sub); }
.col-cta__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }

.col-btn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 14px;
  text-align: left;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(132, 193, 197, .2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.col-btn:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(90, 158, 163, .3); }
.col-btn > i {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-size: 18px;
  border-radius: 50%;
}
.col-btn__txt { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--c-ink); letter-spacing: -0.03em; }
.col-btn__txt small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--c-sub); letter-spacing: 0; }
.col-btn--tel > i   { color: #fff; background: var(--c-main); }
.col-btn--kakao > i { color: #3b1e1e; background: #fee500; }
.col-btn--event > i { color: #fff; background: var(--c-dark); }

/* ---------- 이전글 / 다음글 ---------- */
.col-pn { margin-top: 56px; border-top: 2px solid var(--c-dark); }
.col-pn__row {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--c-line);
  transition: background-color .25s ease;
}
.col-pn__row:hover { background: var(--c-softer); }
.col-pn__label { flex: 0 0 76px; font-size: 14px; font-weight: 500; color: var(--c-sub); }
.col-pn__label i { margin-right: 7px; font-size: 11px; color: var(--c-main); }
.col-pn__title { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-pn__date { flex: 0 0 auto; font-size: 14px; color: #8a9899; }

/* ---------- 목록으로 ---------- */
.col-back { margin-top: 44px; text-align: center; }
.suum-col a.col-back__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--c-dark);
  border-radius: 40px;
  transition: background-color .25s ease, transform .25s ease;
}
.suum-col a.col-back__btn:hover { background: var(--c-deep); transform: translateY(-2px); }
.suum-col a.col-back__btn i { font-size: 14px; }


/* =====================================================================
   3. 반응형
   ===================================================================== */

/* 태블릿 (헤더 높이 90px) */
@media (max-width: 1023px) {
  #contents .suum-col { padding-left: 0; padding-right: 0; }
  .suum-col { padding: var(--col-top, 130px) 4% 0; }
  .col-hero { padding: 60px 24px 56px; border-radius: 30px; }
  .col-hero__title { font-size: 36px; }
  .col-hero__desc { font-size: 16px; }
  .col-listwrap { margin-top: 48px; }
  .col-item__link { grid-template-columns: 240px 1fr; gap: 28px; padding: 28px 6px; }
  .col-item__title { font-size: 21px; }
  .col-head__title { font-size: 31px; }
  .col-h2 { font-size: 23px; margin-top: 64px; }
  .col-cta { padding: 46px 28px 42px; }
  .col-cta__btns { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* 모바일 (헤더 높이 60px) */
@media (max-width: 767px) {
  #contents .suum-col { padding-left: 0; padding-right: 0; }
  .suum-col { padding: var(--col-top, 92px) 16px 0; }
  .col-br-m { display: inline; }

  /* 리스트 */
  .col-hero { padding: 44px 20px 42px; border-radius: 24px; }
  .col-hero__label span { font-size: 11px; letter-spacing: .4em; }
  .col-hero__title { font-size: 27px; }
  .col-hero__desc { margin-top: 14px; font-size: 14px; line-height: 1.7; }
  .col-hero::before { width: 220px; height: 220px; left: -80px; top: -90px; }
  .col-hero::after { width: 150px; height: 150px; right: -50px; bottom: -60px; }

  .col-listwrap { margin-top: 34px; }
  .col-count { font-size: 14px; }
  .col-item__link { grid-template-columns: 116px 1fr; gap: 16px; align-items: start; padding: 20px 2px; }
  .col-item__thumb { border-radius: 14px; }
  .col-item__round { padding: 3px 10px 4px; font-size: 12px; }
  .col-item__title { margin-top: 8px; font-size: 16.5px; line-height: 1.45; -webkit-line-clamp: 3; }
  .col-item__desc { display: none; }
  .col-item__meta { margin-top: 10px; font-size: 12.5px; }
  .col-item__dot { margin: 0 7px; }
  .col-item__more { display: none; }
  .col-paging { margin-top: 34px; gap: 2px; }
  .col-paging a { min-width: 36px; height: 36px; font-size: 14px; }

  /* 상세 */
  .col-crumb { font-size: 13px; }
  .col-head { padding: 24px 0 26px; }
  .col-head__round { font-size: 13px; }
  .col-head__title { margin-top: 16px; font-size: 24px; line-height: 1.45; }
  .col-head__meta { flex-wrap: wrap; row-gap: 10px; margin-top: 20px; font-size: 13.5px; }
  .col-head__copy { margin-left: 12px; padding: 5px 12px; font-size: 12px; }
  .col-body { padding-top: 30px; font-size: 16px; line-height: 1.9; }
  .col-body p { margin-bottom: 1.35em; }
  .col-h2 { gap: 11px; margin: 52px 0 22px; font-size: 20px; align-items: flex-start; }
  .col-h2__num { width: 34px; height: 34px; font-size: 16px; box-shadow: 0 0 0 5px var(--c-soft); margin-top: -2px; }
  .col-h3 { margin: 30px 0 10px; font-size: 16.5px; padding-left: 13px; }
  .col-fig { margin: 4px 0 28px; }
  .col-fig--cover { margin-bottom: 32px; }
  .col-fig img { border-radius: 16px; }
  .col-cta { margin-top: 50px; padding: 38px 20px 30px; border-radius: 24px; }
  .col-cta__title { font-size: 21px; }
  .col-cta__desc { font-size: 14px; }
  .col-cta__btns { margin-top: 24px; gap: 10px; }
  .col-btn { justify-content: flex-start; padding: 14px 18px; border-radius: 16px; }
  .col-btn > i { width: 40px; height: 40px; font-size: 16px; }
  .col-btn__txt { font-size: 16px; }
  .col-pn { margin-top: 40px; }
  .col-pn__row { flex-wrap: wrap; gap: 4px 12px; padding: 16px 4px; }
  .col-pn__label { flex-basis: auto; font-size: 13px; }
  .col-pn__title { flex-basis: 100%; order: 3; font-size: 15px; }
  .col-pn__date { margin-left: auto; font-size: 13px; }
  .col-back { margin-top: 32px; }
  /* 모바일 하단 고정 상담바(.qick)에 가려지지 않도록 */
  .col-back { padding-bottom: 8px; }
}

/* 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
  .suum-col *, .suum-col *::before, .suum-col *::after { transition: none !important; }
  .col-js [data-col-reveal] { opacity: 1; transform: none; }
}
