/* ===== 산타클로스의원 블로그 (home-aligned redesign) ===== */
.blog-list, .blog-single {
    max-width: 1180px;
    margin: 0 auto;
}
.blog-list { padding: 56px 20px 100px; }
.blog-single { padding: 56px 20px 100px; }

/* 공통 섹션 모티프 (홈페이지와 동일한 느낌) */
.blog-eyebrow {
    color: #f43f6a; font-size: 12px; letter-spacing: 8px; font-weight: 600;
    text-transform: uppercase; display: block; text-align: center; margin-bottom: 18px;
}
.blog-divider { width: 50px; height: 2px; background: #f43f6a; margin: 0 auto 26px; }

/* ===== 목록 헤더 ===== */
.blog-list-head { text-align: center; margin-bottom: 56px; }
.blog-list-head h1 {
    font-size: clamp(34px, 5vw, 46px); font-weight: 800; color: #161616;
    line-height: 1.2; margin: 0 0 16px; letter-spacing: -1px;
}
.blog-list-head p { color: #888; font-size: 17px; line-height: 1.7; }

/* ===== 카드 그리드: 한 줄 3개 ===== */
.blog-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid #f1e7eb; border-radius: 18px; overflow: hidden;
    text-decoration: none; color: inherit;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(244,63,106,.16);
    border-color: #f9d5df;
}
.blog-card-thumb {
    width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center;
    background-color: #fdeff3; display: flex; align-items: center; justify-content: center;
    transition: transform .5s ease;
}
.blog-card:hover .blog-card-thumb { transform: scale(1.07); }
.blog-card-noimg {
    color: #f1a7bc; font-weight: 700; font-size: 15px; letter-spacing: 1px;
    font-family: 'Dancing Script', 'Noto Sans KR', cursive;
}
.blog-card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h2, .blog-card-body h3 {
    font-size: 20px; font-weight: 700; line-height: 1.45; color: #1a1a1a; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    word-break: keep-all;
}
.blog-card-body p {
    font-size: 14.5px; color: #888; line-height: 1.65; flex: 1; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta {
    display: flex; justify-content: space-between; align-items: center; margin-top: 18px;
    padding-top: 14px; border-top: 1px solid #f4eef0; font-size: 12.5px; color: #b3aaae;
}
.blog-empty { text-align: center; color: #aaa; padding: 80px 0; font-size: 16px; }

/* ===== 페이징 ===== */
.blog-pager { display: flex; justify-content: center; gap: 8px; margin-top: 60px; flex-wrap: wrap; }
.blog-pager .pg {
    min-width: 42px; height: 42px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #ecdde3; border-radius: 10px; color: #666; text-decoration: none; font-size: 14.5px;
    background: #fff; transition: all .2s;
}
.blog-pager .pg:hover { border-color: #f43f6a; color: #f43f6a; transform: translateY(-2px); }
.blog-pager .pg.current { background: #f43f6a; border-color: #f43f6a; color: #fff; font-weight: 700; }

/* ===== 단일 글 ===== */
.blog-single { max-width: 1180px; }
.blog-breadcrumb { font-size: 13px; color: #aaa; margin-bottom: 30px; text-align: center; }
.blog-breadcrumb a { color: #aaa; text-decoration: none; }
.blog-breadcrumb a:hover { color: #f43f6a; }
.blog-breadcrumb span { margin: 0 7px; color: #ddd; }
.blog-breadcrumb strong { color: #888; font-weight: 500; }

.blog-article { max-width: 860px; margin: 0 auto; }
.blog-article-head { text-align: center; margin-bottom: 36px; }
.blog-article-head h1 {
    font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; line-height: 1.32; color: #141414;
    margin: 0 0 20px; letter-spacing: -1px; word-break: keep-all;
}
.blog-meta {
    display: flex; gap: 18px; justify-content: center; font-size: 13.5px; color: #aaa; align-items: center;
    margin-top: 4px;
}
.blog-meta time { position: relative; }
.blog-views::before { content: '·'; margin-right: 18px; color: #ddd; }

.blog-hero { margin: 0 0 44px; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.10); }
.blog-hero img { width: 100%; display: block; }

/* 본문 타이포그래피 */
.blog-content { font-size: 17.5px; line-height: 1.95; color: #2c2c2c; word-break: keep-all; }
.blog-content > *:first-child { margin-top: 0; }
.blog-content h2 {
    font-size: clamp(22px, 3vw, 27px); font-weight: 800; color: #181818; margin: 56px 0 20px;
    padding-bottom: 14px; line-height: 1.4; position: relative; letter-spacing: -.5px;
}
.blog-content h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: #f43f6a; border-radius: 2px; }
.blog-content h3 { font-size: 20px; font-weight: 700; color: #2b2b2b; margin: 38px 0 14px; padding-left: 14px; border-left: 4px solid #fbc9d6; }
.blog-content h4 { font-size: 17.5px; font-weight: 700; color: #444; margin: 26px 0 12px; }
.blog-content p { margin: 0 0 22px; }
.blog-content img { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 30px auto; box-shadow: 0 8px 26px rgba(0,0,0,.08); }
.blog-content figure { margin: 30px 0; }
.blog-content figcaption { text-align: center; font-size: 13.5px; color: #aaa; margin-top: 10px; }
.blog-content ul, .blog-content ol { padding-left: 26px; margin: 0 0 22px; }
.blog-content li { margin-bottom: 10px; }
.blog-content blockquote {
    border-left: 4px solid #f43f6a; background: linear-gradient(90deg,#fff5f8,#fff); padding: 18px 24px;
    color: #6b4f56; border-radius: 0 12px 12px 0; margin: 28px 0; font-size: 16.5px;
}
.blog-content a { color: #ea2151; text-decoration: underline; text-underline-offset: 3px; }
.blog-content strong { color: #d81c4e; font-weight: 700; }

/* ===== FAQ 아코디언 ===== */
.blog-faq { margin-top: 64px; max-width: 860px; margin-left: auto; margin-right: auto; }
.blog-faq > h2 {
    font-size: clamp(22px,3vw,26px); font-weight: 800; color: #181818; margin-bottom: 22px;
    text-align: center; letter-spacing: -.5px;
}
.blog-faq-item {
    border: 1px solid #f0e3e8; border-radius: 14px; margin-bottom: 14px; overflow: hidden; background: #fff;
    transition: box-shadow .25s, border-color .25s;
}
.blog-faq-item.open { border-color: #f9cdd9; box-shadow: 0 8px 24px rgba(244,63,106,.10); }
.blog-faq-q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 20px 24px; font-size: 16.5px; font-weight: 600; color: #2c2c2c;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; line-height: 1.5;
}
.blog-faq-q:hover { color: #f43f6a; }
.blog-faq-ico { color: #f43f6a; font-size: 24px; font-weight: 300; transition: transform .3s; flex-shrink: 0; line-height: 1; }
.blog-faq-item.open .blog-faq-ico { transform: rotate(45deg); }
.blog-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.blog-faq-item.open .blog-faq-a { max-height: 1200px; }
.blog-faq-a p { padding: 0 24px 22px; color: #6f6f6f; line-height: 1.8; font-size: 15.5px; margin: 0; }

/* ===== 태그 ===== */
.blog-tags { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 9px; max-width: 860px; margin-left: auto; margin-right: auto; }
.blog-tag { background: #fdeff3; color: #d81c4e; font-size: 13px; padding: 7px 16px; border-radius: 22px; transition: .2s; }
.blog-tag:hover { background: #f43f6a; color: #fff; }

/* ===== 관련 글 ===== */
.blog-related { margin-top: 90px; padding-top: 60px; border-top: 1px solid #f1e7eb; }
.blog-related > h2 { font-size: clamp(22px,3vw,28px); font-weight: 800; color: #181818; margin-bottom: 30px; text-align: center; letter-spacing: -.5px; }
.blog-back { margin-top: 56px; text-align: center; }
.blog-back a {
    display: inline-block; color: #f43f6a; text-decoration: none; font-weight: 700; font-size: 15px;
    padding: 12px 30px; border: 1.5px solid #f9d5df; border-radius: 30px; transition: .25s;
}
.blog-back a:hover { background: #f43f6a; color: #fff; border-color: #f43f6a; }

/* ===== 반응형 ===== */
@media (max-width: 920px) {
    .blog-card-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
    .blog-list, .blog-single { padding: 44px 16px 70px; }
    .blog-card-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-list-head { margin-bottom: 40px; }
    .blog-content { font-size: 16.5px; }
    .blog-eyebrow { letter-spacing: 6px; }
}
