/* ============================================
   기본 스타일
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #e3f2fd;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 웹도우미 정도 너비로 콘텐츠 영역 (헤더·메인 동일 너비) */
.main-content .container,
.panel-meta .container,
.page-hero .container,
.header .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.main-content .container {
    padding-left: 24px;
    padding-right: 24px;
}

/* ============================================
   헤더 (보험 정보 블로그 톤)
   ============================================ */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-top {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    text-align: left;
}

.logo-block .logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    display: block;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(21, 101, 192, 0.1);
}

.logo-block .logo:hover {
    color: var(--primary-color);
}

.logo-block .tagline {
    font-size: 14px;
    color: var(--text-light);
    margin: 6px 0 0 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* 헤더 오른쪽: 검색 + 메뉴 아이콘 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-icon svg {
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 메인 탭 네비게이션 (HOME, 금융정보, FAQ 등) */
.main-tab-nav {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e0e0e0;
}

.main-tab-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-tab-list li {
    margin: 0;
}

.main-tab-list a {
    display: inline-block;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.main-tab-list a:hover {
    color: var(--primary-color);
}

.main-tab-list a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.main-tab-list .nav-arrow {
    font-size: 10px;
    margin-left: 2px;
    vertical-align: middle;
    opacity: 0.8;
}

/* ============================================
   왼쪽 슬라이드 메뉴 패널
   ============================================ */
.side-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.side-panel-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 2001;
    overflow-y: auto;
    padding: 20px 0 24px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 12px 12px 0;
}

.side-panel.is-open {
    transform: translateX(0);
}

.side-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.side-panel-close:hover {
    color: var(--text-color);
    background: var(--bg-light);
}

.side-panel-brand {
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.side-panel-logo {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.side-panel-logo:hover {
    color: var(--primary-color);
}

.side-panel-tagline {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.side-panel-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.side-panel-search-input {
    flex: 1;
    height: 42px;
    padding: 0 12px 0 14px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
}

.side-panel-search-input::placeholder {
    color: var(--text-light);
}

.side-panel-search-input:focus {
    border-color: var(--primary-color);
}

.side-panel-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: var(--bg-light);
    color: var(--text-color);
    cursor: pointer;
}

.side-panel-search-btn:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* 검색 결과 드롭다운 (관련 글 + 키워드) */
.search-results-wrap {
    width: 100%;
    margin-top: 12px;
    padding: 12px 0 0;
    border-top: 1px solid var(--border-color);
    display: none;
    max-height: 280px;
    overflow-y: auto;
}

.search-results-wrap.is-visible {
    display: block;
}

.search-results-label,
.search-results-keywords-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.search-results-list {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
}

.search-results-list li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

.search-results-list li:last-child {
    border-bottom: none;
}

.search-results-list a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.35;
}

.search-results-list a:hover {
    color: var(--primary-color);
}

.search-results-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-results-keywords .keyword-chip {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.search-results-keywords .keyword-chip:hover {
    background: var(--primary-color);
    color: #fff;
}

.side-panel-nav {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.side-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-panel-list li {
    margin: 0;
}

.side-panel-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--text-color);
    transition: background 0.2s, color 0.2s;
}

.side-panel-list a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.side-panel-arrow {
    font-size: 18px;
    color: var(--text-light);
}

.side-panel-category {
    padding: 20px 24px 0;
}

.side-panel-category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.side-panel-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-panel-category-list li {
    margin: 0;
}

.side-panel-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}

.side-panel-category-list li:last-child a {
    border-bottom: none;
}

.side-panel-category-list a:hover {
    color: var(--primary-color);
}

.side-panel-category-list .count {
    color: var(--text-light);
    font-size: 13px;
}

/* 패널 메타 (날짜 / 보험정보블로그 / 로그인) */
.panel-meta {
    padding: 12px 0;
    background: var(--bg-light);
}

/* 제일 상단 바: 흰 배경, 얇은 구분선 */
.panel-meta-top {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.panel-meta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 24px;
    padding-right: 24px;
}

.panel-meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meta-sep {
    color: var(--text-light);
    font-weight: 400;
    user-select: none;
}

.meta-date {
    font-weight: 600;
    color: var(--text-color);
}

.panel-meta-right {
    display: flex;
    align-items: center;
}

.btn-login {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: var(--bg-color);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-login:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.panel-meta-top .meta-category {
    font-weight: 700;
    color: #1565c0;
}

.panel-meta-top .meta-category::before {
    display: none;
}

.meta-category::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* 페이지 히어로 (사이트 타이틀) */
.page-hero {
    padding: 28px 0;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .header-actions .btn-icon {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .side-panel {
        width: 300px;
        max-width: 85vw;
    }

    .main-tab-nav .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-tab-list {
        flex-wrap: nowrap;
        min-width: max-content;
    }

    .main-tab-list a {
        padding: 12px 14px;
        font-size: 14px;
        white-space: nowrap;
    }
}

/* ============================================
   메인 컨텐츠 (가운데 정렬, 쭉 흐르는 레이아웃)
   ============================================ */
.main-content {
    padding: 40px 0 56px;
    min-height: calc(100vh - 200px);
}

/* 메인 넓게: 우측 Editors' 픽 제거로 생긴 여백만큼 구름/카드 영역(메인) 가로 확대 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 32px;
    align-items: start;
    margin: 0 auto;
}

.main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

/* 섹션 → 피처 카드 → 글 그리드 순서로 쭉 흐르게 */
.main-section .section-label {
    margin-bottom: 20px;
}

.main-section #featured-cards {
    margin-bottom: 32px;
}

/* 글이 없을 때 피처/그리드 영역은 비워둠 */
.main-section #featured-cards:empty {
    margin-bottom: 0;
    display: none;
}

.main-section .posts-grid:empty {
    min-height: 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* 섹션 제목 공통 스타일: 왼쪽 파란 세로바 + 굵은 글씨 + 아래 얇은 파란 가로선 */
.section-label,
.editors-pick-section-title,
.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    padding-left: 12px;
    padding-bottom: 8px;
    border-left: 4px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.section-label {
    margin-bottom: 24px;
}

/* ============================================
   피처 카드 (메인 중간 - 큰 카드 1 + 작은 카드 2)
   ============================================ */
.featured-cards {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.featured-card-large,
.featured-card-small {
    border-radius: 12px;
    overflow: hidden;
    padding: 32px 28px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
    text-decoration: none;
}

.featured-card-large {
    min-height: 420px;
    padding: 40px 32px;
}

.featured-card-large:hover,
.featured-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: #fff;
}

/* 글에 있는 이미지 레이어 */
.featured-card-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.featured-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 이미지 위 어두운 오버레이 (텍스트 가독) */
.featured-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.15) 100%);
}

/* 텍스트 영역은 이미지/오버레이 위에 */
.featured-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* 이미지 있을 때 카테고리 뱃지 (어두운 배경으로 가독) */
.featured-card-has-img .featured-card-content .category {
    background: rgba(0,0,0,0.5) !important;
    color: #fff;
}

.featured-card-large .category,
.featured-card-small .category {
    align-self: flex-start;
    margin-bottom: 12px;
    font-size: 11px;
}

.featured-card-large .card-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.featured-card-small .card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.featured-card-large .card-desc {
    font-size: 16px;
    line-height: 1.55;
    opacity: 0.95;
    margin-bottom: 16px;
}

.featured-card-small .card-desc {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.9;
    margin-bottom: 10px;
}

.featured-card-large .card-meta,
.featured-card-small .card-meta {
    font-size: 12px;
    opacity: 0.9;
}

.featured-card-small-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 피처 카드 배경색 (카테고리별) */
.feat-bg-cancer { background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%); }
.feat-bg-medical { background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%); }
.feat-bg-driver { background: linear-gradient(135deg, #e65100 0%, #bf360c 100%); }
.feat-bg-child { background: linear-gradient(135deg, #7b1fa2 0%, #4a148c 100%); }
.feat-bg-car { background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%); }
.feat-bg-lifestyle { background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%); }
.feat-bg-economy { background: linear-gradient(135deg, #f57c00 0%, #e65100 100%); }
.feat-bg-tech { background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%); }
.feat-bg-travel { background: linear-gradient(135deg, #0288d1 0%, #01579b 100%); }

/* 새 카테고리 추가 전 임시용 기본 배경 */
.feat-bg-default { background: linear-gradient(135deg, #546e7a 0%, #37474f 100%); }

.featured-card-large .category.cancer,
.featured-card-small .category.cancer { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.medical,
.featured-card-small .category.medical { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.driver,
.featured-card-small .category.driver { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.child,
.featured-card-small .category.child { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.car,
.featured-card-small .category.car { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.lifestyle,
.featured-card-small .category.lifestyle { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.economy,
.featured-card-small .category.economy { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.tech,
.featured-card-small .category.tech { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.travel,
.featured-card-small .category.travel { background: rgba(255,255,255,0.25); color: #fff; }

/* Editors' 픽 - 메인 중간, 피처 카드처럼 큰 카드 4개, 호버 시 카드 안에서만 확대 */
.editors-pick-section {
    margin-bottom: 40px;
}

.editors-pick-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.editors-pick-card {
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
    display: block;
    position: relative;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #546e7a 0%, #37474f 100%);
}

.editors-pick-card .editors-pick-card-inner {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
    transition: transform 0.4s ease;
    will-change: transform;
}

.editors-pick-card:hover .editors-pick-card-inner {
    transform: scale(1.06);
}

.editors-pick-card-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.editors-pick-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editors-pick-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.15) 100%);
}

.editors-pick-card-content {
    position: relative;
    z-index: 2;
    padding: 24px 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.editors-pick-card .category {
    align-self: flex-start;
    margin-bottom: 10px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.editors-pick-card-has-img .editors-pick-card-content .category {
    background: rgba(0,0,0,0.5) !important;
    color: #fff;
}

.editors-pick-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.editors-pick-card-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editors-pick-card-meta {
    font-size: 12px;
    opacity: 0.9;
}

/* Editors' 픽 카드 배경 (이미지 없을 때 피처와 동일 그라데이션) */
.editors-pick-card.feat-bg-cancer { background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%); }
.editors-pick-card.feat-bg-medical { background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%); }
.editors-pick-card.feat-bg-driver { background: linear-gradient(135deg, #e65100 0%, #bf360c 100%); }
.editors-pick-card.feat-bg-child { background: linear-gradient(135deg, #7b1fa2 0%, #4a148c 100%); }
.editors-pick-card.feat-bg-car { background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%); }
.editors-pick-card.feat-bg-lifestyle { background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%); }
.editors-pick-card.feat-bg-economy { background: linear-gradient(135deg, #f57c00 0%, #e65100 100%); }
.editors-pick-card.feat-bg-tech { background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%); }
.editors-pick-card.feat-bg-travel { background: linear-gradient(135deg, #0288d1 0%, #01579b 100%); }
.editors-pick-card.feat-bg-default { background: linear-gradient(135deg, #546e7a 0%, #37474f 100%); }

/* 나머지 글 그리드 - 메인 중앙에 쭉 (Editors' 픽 제거 후 여유 있게 키움) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
}

@media (max-width: 968px) {
    .featured-cards {
        grid-template-columns: 1fr;
    }

    .featured-card-large {
        min-height: 360px;
    }

    .featured-card-large,
    .featured-card-small {
        min-height: 300px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .featured-card-large .card-title {
        font-size: 22px;
    }

    .featured-card-small .card-title {
        font-size: 15px;
    }

    .featured-card-large {
        min-height: 320px;
    }

    .featured-card-large,
    .featured-card-small {
        min-height: 280px;
    }
}

/* ============================================
   게시글 카드
   ============================================ */
.post-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
}

.post-meta .author {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.category.cancer {
    background-color: #FFEBEE;
    color: #C62828;
}

.category.medical {
    background-color: #E3F2FD;
    color: #1565C0;
}

.category.driver {
    background-color: #FFF3E0;
    color: #E65100;
}

.category.child {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

.category.car {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.category.lifestyle {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.category.economy {
    background-color: #FFF3E0;
    color: #E65100;
}

.category.tech {
    background-color: #E3F2FD;
    color: #1565C0;
}

.category.travel {
    background-color: #E1F5FE;
    color: #0277BD;
}

.date {
    color: var(--text-light);
}

.post-meta.author-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.post-meta.author-date .author {
    font-style: italic;
}

.post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.post-footer {
    margin-top: auto;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* 더보기 링크 (웹도우미 스타일) */
.read-more.more-link {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   게시글 상세 페이지
   ============================================ */
.post-detail {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.post-header {
    margin-bottom: 40px;
}

.post-header .post-meta {
    margin-bottom: 20px;
}

.post-header .author {
    color: var(--text-light);
    font-size: 14px;
}

.post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--text-color);
}

.post-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-color);
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tag-label {
    font-weight: 600;
    color: var(--text-color);
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--bg-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    gap: 20px;
}

.nav-link {
    padding: 10px 20px;
    background-color: var(--bg-light);
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-link.home {
    flex: 1;
    text-align: center;
}

/* ============================================
   사이드바
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

/* Editors' 픽 (사이드바 제거로 미사용 시에도 widget-title 공통 스타일 유지) */
.editors-pick .widget-title {
    font-size: 16px;
}

.editors-pick-list {
    list-style: none;
}

.editors-pick-list li {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.editors-pick-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.editors-pick-list a {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-color);
}

.editors-pick-list a:hover {
    color: var(--primary-color);
}

.editors-pick-list .post-date {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.recent-posts,
.popular-posts {
    list-style: none;
}

.recent-posts li,
.popular-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child,
.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a,
.popular-posts a {
    display: block;
    transition: color 0.3s ease;
}

.recent-posts .post-title,
.popular-posts .post-title {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
    color: var(--text-color);
}

.recent-posts .post-date {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.popular-posts .post-rank {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
    vertical-align: middle;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list .count {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   페이지네이션
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   푸터 (웹도우미 스타일)
   ============================================ */
.footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 32px 0 24px;
    margin-top: 48px;
}

.footer-links {
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-section a {
    color: var(--text-light);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 13px;
}

/* ============================================
   반응형 디자인
   ============================================ */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-block .logo {
        font-size: 26px;
    }

    .logo-block .tagline {
        font-size: 13px;
    }

    .site-title {
        font-size: 20px;
    }

    .main-content {
        padding: 20px 0;
    }

    .section-title,
    .section-label {
        font-size: 20px;
    }

    .post-card {
        margin-bottom: 20px;
    }

    .post-card-image {
        height: 200px;
    }

    .post-card-content {
        padding: 20px;
    }

    .post-title {
        font-size: 20px;
    }

    .post-detail {
        padding: 25px;
    }

    .post-detail .post-title {
        font-size: 24px;
    }

    .post-featured-image {
        height: 250px;
    }

    .post-content {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 22px;
    }

    .post-content h3 {
        font-size: 20px;
    }

    .post-navigation {
        flex-direction: column;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-block .logo {
        font-size: 22px;
    }

    .post-card-content {
        padding: 15px;
    }

    .post-title {
        font-size: 18px;
    }

    .post-excerpt {
        font-size: 14px;
    }

    .post-detail {
        padding: 20px;
    }

    .post-detail .post-title {
        font-size: 20px;
    }

    .post-featured-image {
        height: 200px;
    }

    .sidebar-widget {
        padding: 15px;
    }
}

