/* =====================================================
   칼럼 상세페이지 전용 CSS
   오오피부과 의료진 칼럼 column-detail.css
   ===================================================== */

/* ── 칼럼 전용 CSS 변수 ── */
:root {
  --col-accent:     #b22c61;
  --col-accent-lt:  #d94f82;
  --col-text:       #3a3a3a;
  --col-muted:      #777;
  --col-border:     #e8e8e8;
  --col-bg-soft:    #faf9f8;
  --col-max-w:      760px;
}

/* =====================================================
   1. 칼럼 히어로 배너
   ===================================================== */
.column-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1a1a1a;
}

/* 배경 이미지 레이어 */
.column-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(2px) brightness(0.7);
  transform: scale(1.05); /* blur 가장자리 보정 */
}

/* 오버레이 그라데이션 */
.column-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,26,0.45) 0%,
    rgba(26,26,26,0.65) 100%
  );
}

/* 텍스트 영역 */
.column-hero__inner {
  position: relative;
  z-index: 2;
  padding: 5em 2em 4.5em;
  max-width: 860px;
  margin: 0 auto;
}

/* 카테고리 뱃지 */
.column-category {
  display: inline-block;
  background: var(--col-accent);
  color: #fff;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 1.1em;
  border-radius: 2em;
  margin-bottom: 1.1em;
}

/* 히어로 제목 */
.column-hero__title {
  color: #ffffff !important;
  font-size: 2.4em !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* 부제 */
.column-hero__subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.05em;
  margin: 0 0 1.6em !important;
  line-height: 1.5;
  text-align: center !important;
}

/* 작성자 배지 줄 */
.column-hero__author {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em 1.2em;
  color: rgba(255,255,255,0.7);
  font-size: 0.82em;
  letter-spacing: 0.03em;
  margin-top: 0;
}

/* 아이콘+텍스트 쌍 */
.column-hero__author span {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

/* 의료진 뱃지 강조 */
.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(178,44,97,0.82);
  color: #fff !important;
  font-size: 0.78em !important;
  font-weight: 500;
  padding: 0.35em 1em;
  border-radius: 2em;
  margin-top: 0.6em;
  letter-spacing: 0.04em;
}

/* =====================================================
   2. 칼럼 본문 wrapper
   ===================================================== */
.wrapper.column-detail-page {
  background: #fff;
  padding-top: 4em;
  padding-bottom: 5em;
}

/* =====================================================
   3. 칼럼 article
   ===================================================== */
.column-detail {
  max-width: var(--col-max-w);
  margin: 0 auto;
}

/* ── 본문 헤더(히어로 아래 보조 메타) ── */
.column-detail-header {
  margin-bottom: 2.6em;
  padding-bottom: 1.6em;
  border-bottom: 2px solid var(--col-border);
  text-align: center;
}

.column-detail-header h1 {
  font-size: 1.9em;
  color: #2a2a2a;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.3em 0 0.4em;
}

.column-subtitle {
  font-size: 1em;
  color: var(--col-muted);
  margin: 0 0 1em;
  text-align: center;
}

.column-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3em 1em;
  font-size: 0.8em;
  color: #999;
  margin-top: 0.6em;
}

.column-meta span {
  position: relative;
  padding-left: 0;
}

.column-meta span + span::before {
  content: '·';
  margin-right: 1em;
}

/* =====================================================
   4. 본문 타이포그래피
   ===================================================== */
.column-body {
  color: var(--col-text);
  font-size: 1em;
  line-height: 1.95;
}

.column-body p {
  margin-bottom: 1.3em;
  text-align: justify;
  word-break: keep-all;
}

.column-body h2 {
  font-size: 1.45em !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin: 2.4em 0 0.7em !important;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--col-accent);
  line-height: 1.3 !important;
}

.column-body h3 {
  font-size: 1.12em !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 1.8em 0 0.5em !important;
  line-height: 1.4 !important;
}

/* ── 인용 블록 ── */
.column-body blockquote {
  border-left: 4px solid var(--col-accent);
  background: var(--col-bg-soft);
  padding: 1.1em 1.5em;
  margin: 1.8em 0;
  font-style: italic;
  color: #555;
  border-radius: 0 6px 6px 0;
}

/* ── 이미지 ── */
.column-image {
  margin: 2em 0;
}

.column-image > img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.column-image figcaption {
  font-size: 0.78em;
  color: #999;
  text-align: center;
  margin-top: 0.5em;
  font-style: italic;
}

/* =====================================================
   5. 정보 박스
   ===================================================== */
.column-info-box {
  background: var(--col-bg-soft);
  border: 1px solid var(--col-border);
  border-left: 4px solid var(--col-accent);
  border-radius: 0 8px 8px 0;
  padding: 1.4em 1.6em;
  margin: 1.6em 0;
}

.column-info-box p {
  margin-bottom: 0.7em !important;
  font-size: 0.95em;
}

.column-info-box p:last-child {
  margin-bottom: 0 !important;
}

.column-info-box strong {
  color: var(--col-accent);
}

/* =====================================================
   6. FAQ 섹션
   ===================================================== */
.column-faq {
  margin: 1.5em 0;
}

.column-faq h3 {
  font-size: 0.97em !important;
  font-weight: 600 !important;
  color: var(--col-accent) !important;
  margin: 1.6em 0 0.35em !important;
  padding-left: 0.9em;
  border-left: 3px solid var(--col-accent);
}

.column-faq p {
  padding-left: 0.9em;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 0.6em !important;
}

/* =====================================================
   7. 공지 박스 (면책)
   ===================================================== */
.column-notice {
  background: #fff8f0;
  border: 1px solid #f0d9c0;
  border-radius: 6px;
  padding: 1em 1.3em;
  font-size: 0.8em;
  color: #996633;
  margin: 2.5em 0 1.5em;
  line-height: 1.7;
}

/* =====================================================
   8. 의사 노트
   ===================================================== */
.column-doctor-note {
  background: var(--col-bg-soft);
  border-radius: 10px;
  padding: 1.4em 1.6em;
  margin-top: 3em;
  border: 1px solid var(--col-border);
  font-size: 0.88em;
  color: #555;
}

.column-doctor-note strong {
  display: block;
  font-size: 0.78em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-accent);
  margin-bottom: 0.5em;
}

.column-doctor-note p {
  margin: 0 !important;
  line-height: 1.7;
}

/* =====================================================
   9. 하단 네비
   ===================================================== */
.column-bottom-nav {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--col-border);
}

.column-bottom-nav a {
  font-size: 0.88em;
  color: var(--col-muted);
  text-decoration: none;
  border-bottom: 0;
  transition: color 0.2s;
}

.column-bottom-nav a:hover {
  color: var(--col-accent);
}

/* =====================================================
   10. 반응형
   ===================================================== */
@media screen and (max-width: 840px) {
  .column-hero {
    min-height: 340px;
  }
  .column-hero__title {
    font-size: 1.8em !important;
  }
  .column-hero__inner {
    padding: 4em 1.5em 3.5em;
  }
  .column-detail {
    padding: 0 1.2em;
  }
}

@media screen and (max-width: 736px) {
  .column-hero {
    min-height: 300px;
  }
  .column-hero__title {
    font-size: 1.5em !important;
  }
  .column-hero__inner {
    padding: 3.5em 1.2em 3em;
  }
  .column-hero__subtitle {
    font-size: 0.92em;
  }
  .column-detail-header h1 {
    font-size: 1.45em;
  }
  .column-body h2 {
    font-size: 1.2em !important;
  }
  .column-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
  }
  .column-meta span + span::before {
    display: none;
  }
  .wrapper.column-detail-page {
    padding-top: 2.5em;
    padding-bottom: 3em;
  }
}
/* 모바일 nav 여백 보정 */
@media screen and (max-width: 1023px) {
  .nav-spacer {
    height: 96px !important;
  }
}
/* 이미지 나란히 배치 */
.column-image-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  margin: 2em 0;
}

.column-image-row img,
.column-image .column-image-row img {
  flex: 1 1 0% !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px;
}

@media screen and (max-width: 736px) {
  .column-image-row {
    flex-direction: column !important;
  }
  .column-image-row img,
  .column-image .column-image-row img {
    width: 100% !important;
    flex: none !important;
  }
}
/* 칼럼 상세페이지: 2장/3장 이미지 한 줄 정렬 */
.column-image-row{
  display:flex;
  gap:12px;
  margin:2em 0;
}

.column-image-row img{
  width:100%;
  flex:1;
  display:block;
  border-radius:8px;
  object-fit:cover;
}