/* ============================================
   기본 스타일
   ============================================ */
* {
    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);
}

html {
    min-height: 100vh;
}

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: #b8d4e8;
    /* 배경 이미지 1장만 사용, 반복 없음: viewport에 맞춰 고정(cover), 스크롤 시 배경은 그대로 */
    background-image: url("../images/bg-main.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* 배경이 너무 진해 보이지 않도록 전체를 살짝 밝게 덮는 레이어 */
.bg-dim-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: rgba(255, 255, 255, 0.45);
}

/* 배경 위에 올라오는 실제 페이지 콘텐츠 (사이드패널·오버레이는 예외) */
body > :not(.bg-dim-layer):not(.side-panel):not(.side-panel-overlay) {
    position: relative;
    z-index: 1;
}

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: #fff;
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-inner {
    padding: 18px 0;
    background: linear-gradient(180deg, rgba(248, 250, 253, 0.95) 0%, #fff 70%);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.header-row .logo-block {
    flex-shrink: 0;
}

.header-row .header-actions {
    flex-shrink: 0;
    margin-left: auto;
}

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

.logo-block .logo {
    font-family: 'Gowun Dodum', -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    display: block;
    letter-spacing: -0.025em;
    line-height: 1.25;
    text-shadow: 0 1px 1px rgba(21, 101, 192, 0.06);
}

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

/* 웹도우미 스타일 로고: 컬러 글자 + 흰색 아웃라인, 보험 옆 insurance */
.logo-webdoumi-style {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 2px;
    text-decoration: none;
}
.logo-webdoumi-style .logo-w {
    font-family: 'Gowun Dodum', -apple-system, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 0 0 2px #fff, 0 0 0 2px #fff, 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}
.logo-webdoumi-style .logo-d { color: #2e7d32; }
.logo-webdoumi-style .logo-b { color: #f9a825; }
.logo-webdoumi-style .logo-blog { color: #e65100; }
.logo-webdoumi-style .logo-i { color: #1565c0; }
.logo-webdoumi-style .logo-eng {
    font-size: 0.55em;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 2px;
    vertical-align: baseline;
    text-shadow: none;
    opacity: 0.72;
    letter-spacing: 0.02em;
}
.logo-block .logo.logo-webdoumi-style { display: inline-flex; font-size: 26px; }
.logo-block .logo.logo-webdoumi-style .logo-eng { font-size: 0.5em; opacity: 0.72; }
.logo-block .logo.logo-webdoumi-style:hover .logo-w,
.logo-block .logo.logo-webdoumi-style:hover .logo-eng { opacity: 0.9; }

.side-panel-logo.logo-webdoumi-style { font-size: 20px; }
.side-panel-logo.logo-webdoumi-style .logo-eng { font-size: 0.5em; opacity: 0.72; }

.logo-block .tagline {
    font-size: 13px;
    color: var(--text-light);
    margin: 6px 0 0 0;
    font-weight: 500;
    letter-spacing: 0.025em;
    position: relative;
    padding-left: 10px;
    line-height: 1.4;
}

.logo-block .tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 10px;
    background: linear-gradient(180deg, #2e7d32 0%, #1565c0 100%);
    border-radius: 2px;
    opacity: 0.7;
}

/* 헤더 오른쪽: 검색 + 메뉴 아이콘 */
.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-light);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-icon:hover {
    background: rgba(21, 101, 192, 0.08);
    color: var(--primary-dark);
    transform: scale(1.04);
}

.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);
}

/* 메인 탭 네비게이션 (로고·탭·검색·햄버거 한 줄) */
.header-row .main-tab-nav {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
}

.main-tab-nav {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e0e0e0;
}

/* 배너 광고 영역 바로 밑 네비 바 (첫 번째·두 번째 사진처럼) */
.main-tab-nav-below-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
    min-height: 48px;
    background: linear-gradient(180deg, #e8f4fc 0%, #fff 100%);
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.main-tab-nav-below-banner .main-tab-list {
    flex: 1;
    min-width: 0;
}

.main-tab-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.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: 10px 14px 12px;
    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: none;
    padding-bottom: 10px;
    position: relative;
}

.main-tab-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    min-width: 24px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 0;
}

.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: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

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

.side-panel-brand {
    padding: 20px 52px 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(21, 101, 192, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    position: relative;
}

.side-panel-logo {
    display: block;
    font-family: 'Gowun Dodum', -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

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

/* 로고 텍스트(보험 정보 블로그) 공통 - 고운돋움 폰트 (post-1 등 다른 레이아웃) */
.header .logo a,
.header .logo h1 {
    font-family: 'Gowun Dodum', -apple-system, sans-serif;
    font-weight: 700;
}

.side-panel-tagline {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    padding-left: 11px;
    letter-spacing: 0.02em;
    position: relative;
}

.side-panel-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    opacity: 0.8;
}

.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;
    transition: box-shadow 0.25s ease;
}

.side-panel-search:focus-within {
    box-shadow: inset 0 0 0 2px var(--primary-light);
    border-radius: 10px;
    margin: 0 8px;
    padding: 14px 12px 16px;
    background: rgba(21, 101, 192, 0.04);
}

.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;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.side-panel-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.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;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

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

.side-panel-search:focus-within .side-panel-search-btn {
    border-color: var(--primary-color);
    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-list .search-results-empty {
    color: var(--text-light);
    font-size: 13px;
    padding: 8px 0;
}

.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: 0;
    background: var(--bg-light);
}

/* 제일 상단 바: 날짜·날씨·로그인 - 헤더와 톤 통일 */
.panel-meta-top {
    background: linear-gradient(180deg, #fafbfd 0%, #f5f7fa 100%);
    border-bottom: 1px solid rgba(21, 101, 192, 0.08);
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.panel-meta-top .meta-date,
.panel-meta-top .meta-sep {
    color: var(--text-color);
}

.panel-meta-top .meta-date {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
}

.panel-meta-top .meta-sep {
    color: rgba(0, 0, 0, 0.2);
    font-size: 12px;
}

.panel-meta-top .weather-widget {
    color: var(--text-color);
}

.panel-meta-top .weather-icon-placeholder,
.panel-meta-top .weather-widget-loaded .weather-icon {
    color: #1565c0;
}

.panel-meta-top .weather-temp-placeholder,
.panel-meta-top .weather-temp {
    color: var(--text-color);
    font-weight: 700;
}

.panel-meta-top .weather-unit {
    color: var(--text-color);
    font-weight: 600;
}

.panel-meta-top .weather-desc {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    margin-left: 2px;
}

.panel-meta-top .btn-login {
    color: var(--primary-dark);
    border-color: rgba(21, 101, 192, 0.35);
    background: #fff;
    box-shadow: 0 1px 2px rgba(21, 101, 192, 0.06);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.panel-meta-top .btn-login:hover {
    background: rgba(21, 101, 192, 0.06);
    color: var(--primary-dark);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.12);
}

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

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

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

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

/* 날씨 위젯: 그날 날씨(구름/해 등) + 기온 표시 (두 번째·세 번째 사진 느낌) */
.weather-widget {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    min-width: 4em;
}

.weather-widget-loading,
.weather-widget-loaded {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.weather-icon-placeholder {
    flex-shrink: 0;
    color: var(--text-light);
    opacity: 0.8;
}

.weather-temp-placeholder {
    font-variant-numeric: tabular-nums;
    color: var(--text-light);
    font-weight: 600;
}

.weather-widget-loaded .weather-icon {
    flex-shrink: 0;
    color: var(--text-color);
    stroke-width: 2.2;
}

.weather-temp {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--text-color);
}

.weather-unit {
    font-weight: 600;
    color: var(--text-color);
    font-size: 13px;
    opacity: 0.9;
}

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

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-login .btn-login-icon {
    flex-shrink: 0;
    opacity: 0.9;
    width: 14px;
    height: 14px;
}

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

.btn-login:hover .btn-login-icon {
    opacity: 1;
}

.is-login-modal-open {
    overflow: hidden;
}

/* 로그인 모달: 메인 위에서 열리는 중앙 박스 */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(15, 20, 30, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-modal-overlay.is-open {
    display: flex;
}

.login-modal {
    width: min(420px, 92vw);
    margin: auto;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
    padding: 22px 20px 18px;
    position: relative;
    transform: scale(0.98);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.login-modal-overlay.is-open .login-modal {
    transform: scale(1);
    opacity: 1;
}

.login-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--text-light);
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.login-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.14);
}

.login-modal-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 4px 0 14px;
    color: var(--text-color);
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-modal-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 6px;
}

.login-modal-field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    outline: none;
    font-size: 14px;
    color: var(--text-color);
}

.login-modal-field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.login-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.login-modal-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    user-select: none;
}

.login-modal-remember input {
    width: 16px;
    height: 16px;
}

.login-modal-links {
    display: inline-flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
}

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

.login-modal-submit {
    margin-top: 8px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.login-modal-submit:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.login-modal-hint {
    margin: 10px 2px 0;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.panel-meta-top .meta-category {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 13px;
}

.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: 48px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.4);
    min-height: 280px;
    display: grid;
    align-items: center;
    position: relative;
}

/* 히어로 텍스트 가독을 위한 그라데이션 오버레이 */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

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

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

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

    .header-row .main-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 0;
        padding-right: 0;
    }

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

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

    .page-hero {
        min-height: 200px;
        padding: 32px 0;
        background-position: center center;
    }
}

/* ============================================
   페이지 중앙 레이아웃 (양옆 광고 여백 + 본문 박스)
   ============================================ */
.page-center-wrap {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1100px) minmax(120px, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 16px;
    margin-bottom: 24px;
    min-height: 50vh;
}

.ad-side {
    min-width: 0;
    padding: 16px 8px;
    font-size: 12px;
    color: var(--text-light);
    background: transparent;
}

.ad-side-left { grid-column: 1; }
.ad-side-right { grid-column: 3; }

.page-center {
    grid-column: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ad-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.ad-banner-inner {
    width: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ad-banner-placeholder {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.main-content-box {
    width: 100%;
    margin: 0;
    padding: 24px 0 32px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    flex: 1;
    min-height: 400px;
}

.page-center .main-content {
    padding: 0;
    min-height: 0;
    background: transparent;
}

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

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

/* 메인 페이지 제목: 보험 비교 및 추천 사이트 */
.page-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* 메인 넓게: 우측 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,
.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);
}

/* EDITORS' 픽 섹션 제목: 왼쪽 마젠타 블록 + 제목 + 오른쪽 연한 회색 바 */
.editors-pick-section-title {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border: none;
    padding: 0;
    background: transparent;
}

.editors-pick-section-title::before {
    content: '';
    width: 8px;
    flex-shrink: 0;
    background: #e43a6d;
}

.editors-pick-section-title-inner {
    padding: 10px 14px 10px 12px;
    flex-shrink: 0;
    background: #fff;
    letter-spacing: 0.02em;
}

.editors-pick-section-title::after {
    content: '';
    flex: 1;
    min-width: 20px;
    background: #f2f2f2;
}

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

/* 검색 결과 페이지: 섹션 제목 강조 */
.main-section.is-search-results .section-label {
    color: var(--primary-dark);
    font-size: 20px;
}

.search-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* 검색 결과 페이지: 에디터스 픽·사이드바 숨기고 검색 결과만 표시 */
body.is-search-results-page .page-heading {
    display: none;
}
body.is-search-results-page .editors-pick-section {
    display: none !important;
}
body.is-search-results-page .content-wrapper .sidebar {
    display: none !important;
}
body.is-search-results-page .content-wrapper {
    grid-template-columns: 1fr;
}

/* ============================================
   피처 카드 (메인 중간 - 큰 카드 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: 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 {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: #fff;
}

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

.featured-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    will-change: transform;
}

.featured-card-large:hover .featured-card-img-wrap img,
.featured-card-small:hover .featured-card-img-wrap img {
    transform: scale(1.08);
}

/* 이미지 위 어두운 오버레이 (텍스트 가독) */
.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-pregnancy-early { background: linear-gradient(135deg, #ad1457 0%, #880e4f 100%); }
.feat-bg-birth-prep { background: linear-gradient(135deg, #3949ab 0%, #283593 100%); }
.feat-bg-driver-rider { background: linear-gradient(135deg, #f9a825 0%, #f57f17 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.pregnancy-early,
.featured-card-small .category.pregnancy-early { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.birth-prep,
.featured-card-small .category.birth-prep { background: rgba(255,255,255,0.25); color: #fff; }
.featured-card-large .category.driver-rider,
.featured-card-small .category.driver-rider { 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-pregnancy-early { background: linear-gradient(135deg, #ad1457 0%, #880e4f 100%); }
.editors-pick-card.feat-bg-birth-prep { background: linear-gradient(135deg, #3949ab 0%, #283593 100%); }
.editors-pick-card.feat-bg-driver-rider { background: linear-gradient(135deg, #f9a825 0%, #f57f17 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%); }

/* 나머지 글 그리드 - 리스트형: 이미지 좌측, 글 우측, 세로로 나열 */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    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: 20px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
}

.post-card-image {
    width: 320px;
    min-width: 220px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

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

.post-card-content {
    padding: 20px 24px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.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.pregnancy-early {
    background-color: #FCE4EC;
    color: #AD1457;
}

.category.birth-prep {
    background-color: #E8EAF6;
    color: #3949AB;
}

.category.driver-rider {
    background-color: #FFF8E1;
    color: #F9A825;
}

.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: #e8eaec;
    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-title,
.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-light);
}

.footer-info,
.footer-section p {
    margin: 0 0 8px 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-list li {
    margin-bottom: 8px;
}

.footer-list li:last-child {
    margin-bottom: 0;
}

.footer-list a,
.footer-section a {
    color: var(--text-light);
    font-size: 14px;
}

.footer-list a:hover,
.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;
}

.footer-bottom p {
    margin: 0;
}

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

    .ad-side {
        display: none;
    }

    .page-center {
        grid-column: 1;
        padding-left: 12px;
        padding-right: 12px;
    }

    .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;
        flex-direction: column;
    }

    .post-card-image {
        width: 100%;
        min-width: 0;
        height: 220px;
    }

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

    .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;
    }
}

