/* ============================================================
   Column Board Skin - CSS
   ============================================================ */

/* ---- 공통 ---- */
.column-board,
.column-view,
.column-write {
  font-family:
    "SUIT",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 1200px) {
  .wrap:has(.column-board),
  .wrap:has(.column-view__breadcrumb),
  .wrap:has(.column-write) {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* ============================================================
   목록 - 카드 그리드
   ============================================================ */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0;
}

@media (max-width: 1024px) {
  .column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  /* 카드 사이는 gap이 담당 (카드 자체 margin 24px과 겹쳐 64px까지 벌어졌음) */
  .column-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 16px 0;
  }

  .column-card {
    margin: 0;
  }

  /* 목록 끝과 푸터 사이에 여백이 전혀 없었음 */
  .pg_wrap {
    padding: 20px 0 0;
    margin-bottom: 56px;
  }
}

/* ---- 카드 ---- */
.column-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.column-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.column-card.is-notice {
  border: 2px solid #5c85c1;
}

.column-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.column-card__check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.column-card__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ---- 썸네일 ---- */
.column-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
}

.column-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.column-card:hover .column-card__thumb img {
  transform: scale(1.05);
}

.column-card__nothumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  color: #bbb;
  font-size: 2.5rem;
}

.column-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #5c85c1;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.column-card__cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

/* ---- 카드 본문 ---- */
.column-card__body {
  padding: 16px;
}

.column-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* line-clamp: 2; */
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #222;
  letter-spacing: -0.7px;
}

.column-card__cmt {
  color: #5c85c1;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 4px;
}

.column-card__excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* line-clamp: 3; */
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.7px;
}

.column-card__info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #999;
}

.column-card__info time {
  color: #999;
}

.column-card__hit {
  color: #bbb;
}

/* ---- 빈 목록 ---- */
.column-empty {
  padding: 60px 0;
  text-align: center;
  color: #999;
  font-size: 1rem;
}

/* ---- 카테고리 탭 ---- */
.column-cate ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  padding-bottom: 32px;
}

#bo_cate ul li a {
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 17px;
  color: #666;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

#bo_cate ul li a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
#bo_cate ul li a#bo_cate_on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- 버튼/검색/페이지네이션: default.css 기본 스타일 사용 ---- */

/* ============================================================
   글읽기 - 브레드크럼 (column 전용 추가 요소)
   ============================================================ */
.column-view__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.5;
  color: #999;
}

.column-view__breadcrumb ol li::after {
  content: ">";
  margin-left: 4px;
  color: #ccc;
}

.column-view__breadcrumb ol li:last-child::after {
  display: none;
}

.column-view__breadcrumb a {
  color: #666;
  text-decoration: none;
}

.column-view__breadcrumb a:hover {
  color: #5c85c1;
}

/* ---- 글읽기 헤더 ---- */
#bo_v_title {
  margin: 0;
}

#bo_v_title .bo_v_tit {
  font-size: clamp(24px, 2.25vw, 38px);
  font-weight: 700;
  line-height: 1.35;
  color: #222;
}

#bo_v_info {
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.6;
}

@media (max-width: 737px) {
  .column-view__breadcrumb ol {
    font-size: clamp(11px, 3.3vw, 13px);
  }

  #bo_v_title .bo_v_tit {
    font-size: clamp(22px, 6vw, 28px);
    text-align: left;
  }
}

#bo_v_con p,
#bo_v_con h2,
#bo_v_con h3,
#bo_v_con h4 {
  letter-spacing: 0;
}

/* ---- 글읽기 나머지: basic/default.css 기본 스타일 사용 ---- */

/* ---- 목록 헤더 ---- */
.column-list-header {
  padding: 60px 0 0;
  margin-bottom: 32px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.column-list-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.column-list-desc {
  font-size: clamp(12px, 3.6vw, 17px);
  color: #888;
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---- 게시판 검색 ---- */
#bo_sch {
  float: none;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 32px;
  padding: 0;
  border: 0;
}
#bo_sch form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  width: 100%;
}
#bo_sch #sfl {
  flex-shrink: 0;
  width: auto;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 17px;
  color: #555;
  background: #fff;
  outline: none;
}
#bo_sch .sch_input {
  flex: 1;
  width: auto;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 17px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
#bo_sch #sfl:focus,
#bo_sch .sch_input:focus {
  border-color: var(--primary);
}
#bo_sch .sch_btn {
  position: static;
  flex-shrink: 0;
  width: auto;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
#bo_sch .sch_btn:hover {
  opacity: 0.85;
}
#bo_sch .sch_icon {
  display: none;
}
#bo_sch .sch_label {
  display: inline;
}

@media (max-width: 737px) {
  /* 카테고리 칩 — 기본 규칙(#bo_cate ul li a)이 파일 뒤쪽에 있어
     앞선 640px 블록에서는 순서에 밀림 */
  #bo_cate ul li a {
    font-size: 15px;
    padding: 0 16px;
  }

  .column-cate ul {
    margin-top: 16px;
    padding-bottom: 20px;
  }

  #bo_sch {
    margin-bottom: 20px;
  }

  #bo_sch form {
    max-width: 100%;
    padding: 0 16px;
  }
  /* flex 자식의 기본 min-width: auto가 입력창을 내용 최소 폭(216px) 아래로
     줄지 못하게 해 검색 영역이 부모를 밀어내고 가로 스크롤을 만들었음 */
  #bo_sch .sch_input {
    min-width: 0;
    font-size: 15px;
  }
  #bo_sch #sfl {
    font-size: 15px;
  }
  #bo_sch .sch_btn {
    width: 40px;
    padding: 0;
  }
  #bo_sch .sch_icon {
    display: inline;
  }
  #bo_sch .sch_label {
    display: none;
  }
}

/* ---- 그 외: default.css / board.css 기본 스타일 사용 ---- */

/* ============================================================
   View - clinic profile card
   ============================================================ */
#na-clinic-profile-card {
  max-width: 800px;
  margin: 40px auto;
  background-color: #f3f3f3;
  border-radius: 40px;
  overflow: hidden;
  box-sizing: border-box;
}

.na-flex-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 30px;
  padding: 30px;
  border-radius: 20px;
  background-color: #fff8f6;
}

.na-img-column {
  flex: 0 0 260px;
}

.na-img-column img {
  display: block;
  width: 260px;
  height: 260px;
  border-radius: 20px;
  object-fit: cover;
}

.na-text-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.na-main-subject {
  margin: 0 0 8px;
  color: #111;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.na-career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.na-career-item {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.na-benefit-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 0;
  border-radius: 999px;
  background-color: #efa28f;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  animation: na-profile-card-cta-shake 1.6s ease-in-out 2s 2;
}

@keyframes na-profile-card-cta-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  12.5%,
  37.5%,
  62.5%,
  87.5% {
    transform: translateX(-4px);
  }
  25%,
  50%,
  75% {
    transform: translateX(4px);
  }
}

@media (max-width: 768px) {
  .na-flex-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .na-img-column {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 20px;
  }

  .na-img-column img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
  }

  .na-text-column {
    width: 100%;
    justify-content: flex-start;
    gap: 15px;
  }

  .na-main-subject {
    margin-bottom: 5px;
    text-align: left;
  }

  .na-career-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* ============================================================
   View - expanded OB/GYN profile card
   ============================================================ */
.nawe-obgyn-card-shell {
  --nawe-obgyn-primary: #efa28f;
  --nawe-obgyn-primary-dark: #d47f6b;
  --nawe-obgyn-primary-soft: #fff1ed;
  --nawe-obgyn-ink: #241d1e;
  --nawe-obgyn-muted: #706365;
  --nawe-obgyn-line: #efd4cd;
  --nawe-obgyn-soft: #fff8f5;
  width: 100%;
  max-width: 800px;
  margin: 28px auto;
  padding: 36px;
  border: 1px solid var(--nawe-obgyn-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(239, 162, 143, 0.16);
  color: var(--nawe-obgyn-ink);
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#na-clinic-profile-card.nawe-obgyn-card-shell {
  max-width: 800px;
  margin: 28px auto;
  padding: 36px;
  border: 1px solid var(--nawe-obgyn-line);
  border-radius: 22px;
  background: #fff;
  overflow: visible;
}

.nawe-obgyn-card-shell *,
.nawe-obgyn-card-shell *::before,
.nawe-obgyn-card-shell *::after {
  box-sizing: border-box;
}

.nawe-obgyn-card-hero {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

#bo_v_con .nawe-obgyn-card-hero > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--nawe-obgyn-soft);
  object-fit: cover;
  object-position: center center;
}

.nawe-obgyn-card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 2px;
}

.nawe-obgyn-card-title {
  margin: 0 0 14px;
  padding: 0;
  color: var(--nawe-obgyn-ink);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -1.05px;
  word-break: keep-all;
}

.nawe-obgyn-card-role {
  margin: 0 0 6px;
  padding: 0;
  color: var(--nawe-obgyn-ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -0.55px;
  word-break: keep-all;
}

.nawe-obgyn-card-intro {
  margin: 0 0 20px;
  padding: 0;
  color: var(--nawe-obgyn-primary-dark);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.35px;
  word-break: keep-all;
}

.nawe-obgyn-card-highlights {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nawe-obgyn-card-highlights li {
  position: relative;
  margin: 0;
  padding: 0 0 0 17px;
  color: #453b3c;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.56;
  letter-spacing: -0.38px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.nawe-obgyn-card-highlights li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nawe-obgyn-primary);
}

.nawe-obgyn-card-highlights strong {
  color: var(--nawe-obgyn-ink);
  font-weight: 700;
}

.nawe-obgyn-card-accordion-button {
  appearance: none;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-height: 38px;
  margin: 15px 0 0;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--nawe-obgyn-primary-dark);
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.35px;
  cursor: pointer;
}

.nawe-obgyn-card-accordion-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nawe-obgyn-card-accordion-button.is-open::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nawe-obgyn-card-accordion-button:hover {
  color: var(--nawe-obgyn-ink);
}

.nawe-obgyn-card-accordion-button:focus-visible {
  outline: 3px solid rgba(239, 162, 143, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

.nawe-obgyn-card-expanded {
  display: none;
  padding-top: 10px;
}

.nawe-obgyn-card-expanded.is-open {
  display: block;
}

.nawe-obgyn-card-career {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  gap: 7px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nawe-obgyn-card-career li {
  position: relative;
  margin: 0;
  padding: 0 0 0 16px;
  color: var(--nawe-obgyn-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.32px;
  white-space: nowrap;
  word-break: keep-all;
}

.nawe-obgyn-card-career li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nawe-obgyn-primary);
}

.nawe-obgyn-card-notice {
  margin: 28px 0 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--nawe-obgyn-primary-dark);
  border-radius: 0 10px 10px 0;
  background: var(--nawe-obgyn-primary-soft);
  color: #4d4243;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.34px;
  word-break: keep-all;
}

.nawe-obgyn-card-notice strong {
  color: var(--nawe-obgyn-ink);
  font-weight: 700;
}

.nawe-obgyn-card-symptoms-title {
  margin: 0;
  padding: 22px 24px 0;
  border-radius: 14px 14px 0 0;
  background: var(--nawe-obgyn-soft);
  color: var(--nawe-obgyn-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.5px;
}

.nawe-obgyn-card-symptoms-title + ul {
  display: grid;
  gap: 7px;
  margin: 0 0 22px;
  padding: 13px 24px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--nawe-obgyn-soft);
  list-style: none;
}

.nawe-obgyn-card-symptoms-title + ul li {
  position: relative;
  margin: 0;
  padding: 0 0 0 24px;
  color: #403839;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.38px;
  word-break: keep-all;
}

.nawe-obgyn-card-symptoms-title + ul li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--nawe-obgyn-primary-dark);
  font-weight: 800;
}

.nawe-obgyn-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.nawe-obgyn-card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 20px;
  border: 2px solid var(--nawe-obgyn-primary);
  border-radius: 999px;
  background: var(--nawe-obgyn-primary);
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.4px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nawe-obgyn-card-button:hover {
  border-color: var(--nawe-obgyn-primary-dark);
  background: var(--nawe-obgyn-primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
}

.nawe-obgyn-card-button:focus-visible {
  outline: 3px solid rgba(239, 162, 143, 0.28);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .nawe-obgyn-card-shell {
    padding: 32px;
  }

  .nawe-obgyn-card-hero {
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    gap: 26px;
  }

  .nawe-obgyn-card-title {
    font-size: 26px;
  }

  .nawe-obgyn-card-career {
    grid-template-columns: 1fr;
  }

  .nawe-obgyn-card-career li {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .nawe-obgyn-card-shell {
    margin: 24px auto;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .nawe-obgyn-card-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #bo_v_con .nawe-obgyn-card-hero > img {
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: 14px;
  }

  .nawe-obgyn-card-title {
    font-size: 23px;
  }

  .nawe-obgyn-card-role {
    font-size: 16px;
  }

  .nawe-obgyn-card-highlights li {
    font-size: 14px;
    white-space: normal;
  }

  .nawe-obgyn-card-accordion-button {
    justify-content: space-between;
    width: 100%;
    padding: 10px 2px;
  }

  .nawe-obgyn-card-notice {
    margin-top: 24px;
    padding: 16px;
  }

  .nawe-obgyn-card-symptoms-title {
    padding: 20px 18px 0;
  }

  .nawe-obgyn-card-symptoms-title + ul {
    padding: 13px 18px 20px;
  }
}

@media (max-width: 480px) {
  .nawe-obgyn-card-shell {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .nawe-obgyn-card-title {
    font-size: 21px;
  }

  .nawe-obgyn-card-notice,
  .nawe-obgyn-card-career li {
    font-size: 13.5px;
  }

  .nawe-obgyn-card-symptoms-title {
    font-size: 16px;
  }

  .nawe-obgyn-card-symptoms-title + ul li {
    font-size: 14px;
  }

  .nawe-obgyn-card-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nawe-obgyn-card-button {
    min-height: 52px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nawe-obgyn-card-accordion-button::after,
  .nawe-obgyn-card-button {
    transition: none;
  }
}
