/*
Theme Name: Health Friend Clean
Description: 건강친구 블로그를 위한 클로드 스타일 테마 (스타일2 - 사이드바 포함)
Author: Your Name
Version: 2.3
Text Domain: health-friend-clean
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #fafafa;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    min-height: 72px;
}

.site-logo {
    font-size: 24px;
    font-weight: 600;
    color: #d97706;
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: color 0.2s ease;
}

.site-logo:hover {
    color: #b45309;
}

/* Navigation - 완전히 개선된 버전 */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    position: relative;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    display: block;
}

.main-navigation a:hover {
    color: #d97706;
    background-color: #fef3e2;
}

.main-navigation .current-menu-item > a {
    color: #d97706;
    background-color: #fef3e2;
}

/* 하위메뉴가 있는 메뉴 항목 */
.main-navigation .menu-item-has-children {
    position: relative;
}

/* 하위메뉴가 있는 항목에 화살표 표시 */
.main-navigation .menu-item-has-children > a:after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
    color: #718096;
    transition: transform 0.2s ease;
}

.main-navigation .menu-item-has-children:hover > a:after {
    transform: rotate(180deg);
    color: #d97706;
}

/* 마우스 이동을 위한 보이지 않는 연결 영역 */
.main-navigation .menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -15px; /* 하위메뉴까지 연결되는 보이지 않는 영역 */
    z-index: 198;
    background: transparent;
}

/* Dropdown Menu - 마우스 이동 문제 완전 해결 */
.main-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 220px;
    z-index: 200;
    padding: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* 호버 상태에서 하위메뉴 표시 */
.main-navigation .menu-item-has-children:hover .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 하위메뉴 항목들 */
.main-navigation .sub-menu li {
    display: block;
    margin: 0;
    position: static;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 2px 0;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.main-navigation .sub-menu a:after {
    display: none; /* 하위메뉴에서는 화살표 숨김 */
}

.main-navigation .sub-menu a:before {
    content: "→";
    color: #d97706;
    opacity: 0;
    margin-right: 8px;
    transition: opacity 0.2s ease;
}

.main-navigation .sub-menu a:hover:before {
    opacity: 1;
}

.main-navigation .sub-menu a:hover {
    background: #fef3e2;
    color: #d97706;
    transform: translateX(4px);
}

/* Main Content */
.site-main {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 32px;
    margin: 32px 0;
}

/* 싱글 포스트일 때는 더 넓게 */
.single .site-main {
    grid-template-columns: 4fr 1fr;
}

.content-area {
    background: transparent;
}

/* Post Styles */
.post {
    margin-bottom: 24px;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d97706;
}

.post-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a202c;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #d97706;
}

.post-meta {
    color: #718096;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-content {
    line-height: 1.7;
    color: #2d3748;
    max-width: none;
}

.post-content h2, .post-content h3 {
    margin: 24px 0 16px 0;
    color: #1a202c;
    font-weight: 600;
}

.post-content h2 {
    font-size: 20px;
}

.post-content h3 {
    font-size: 18px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content ul, .post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d97706;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.read-more:hover {
    background-color: #fef3e2;
}

/* Single Post Styles */
.single-post {
    max-width: none;
}

.post-body {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1a202c;
    font-weight: 600;
}

.post-body h1 {
    font-size: 28px;
}

.post-body h2 {
    font-size: 24px;
}

.post-body h3 {
    font-size: 20px;
}

.post-body h4 {
    font-size: 18px;
}

.post-body blockquote {
    border-left: 4px solid #d97706;
    background: #fef3e2;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.post-body th,
.post-body td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.post-body th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.post-tags {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.post-tags a {
    display: inline-block;
    background: #f7fafc;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    background: #fef3e2;
    color: #d97706;
}

/* Sidebar */
.sidebar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    height: fit-content;
    overflow: hidden;
}

.widget {
    padding: 24px;
    border-bottom: 1px solid #f7fafc;
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
}

.widget ul li:last-child {
    margin-bottom: 0;
}

.widget a {
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
    padding: 8px 0;
}

.widget a:hover {
    color: #d97706;
}

/* Footer */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 48px 0;
    margin-top: 64px;
}

.footer-content p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Category Badge - 개선된 색상 */
.category-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    margin-right: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
    transition: all 0.2s ease;
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

/* 카테고리별 다른 색상 */
.category-건강관리 {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.category-예방정보 {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.category-연령별건강 {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.category-건강상식 {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.category-질병정보 {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Health Highlight */
.health-highlight {
    background: linear-gradient(135deg, #fef3e2, #fef7ed);
    padding: 20px;
    border-left: 4px solid #d97706;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}

.health-highlight p {
    margin-bottom: 8px;
}

.health-highlight strong {
    color: #d97706;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.02);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #fef3e2;
    border-color: #d97706;
    color: #d97706;
}

.pagination .current {
    background-color: #d97706;
    border-color: #d97706;
    color: white;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.post-navigation a {
    color: #d97706;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.post-navigation a:hover {
    background-color: #fef3e2;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e2e8f0;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    width: 0%;
    transition: width 0.1s ease;
}

/* Archive and Category Pages */
.archive-header {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
    text-align: center;
}

.archive-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.archive-description {
    color: #4a5568;
    font-size: 16px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    background: #d97706;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: #b45309;
}

/* Additional Claude-inspired elements */
.claude-card {
    background: linear-gradient(135deg, #fef3e2 0%, #ffffff 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.claude-button {
    background: #d97706;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.claude-button:hover {
    background: #b45309;
    transform: translateY(-1px);
}

/* Enhanced focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* ===================================
   HOMEPAGE SPECIFIC STYLES
   =================================== */

/* Hero Section - Grid Style */
.hero-section {
    background: #ffffff;
    padding: 40px 0 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #1f2937;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 500px;
}

.hero-main {
    grid-row: 1 / 3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.hero-small {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-item:hover .hero-image img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: white;
    z-index: 2;
}

.hero-small .hero-content {
    padding: 16px;
}

.hero-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: #f59e0b;
    color: white;
}

.hero-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.hero-small .hero-title {
    font-size: 16px;
    margin-bottom: 6px;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-title a:hover {
    opacity: 0.9;
}

.hero-meta {
    font-size: 13px;
    opacity: 0.9;
}

.hero-small .hero-meta {
    font-size: 12px;
}

/* Latest Posts Section */
.latest-posts-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.latest-posts-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-bottom: 40px;
}

.section-more {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.section-more:hover {
    color: #1f2937;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.grid-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.grid-image {
    height: 200px;
    overflow: hidden;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-post:hover .grid-image img {
    transform: scale(1.05);
}

.grid-content {
    padding: 20px;
}

.grid-category {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.grid-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.grid-title a {
    color: #1f2937;
    text-decoration: none;
}

.grid-title a:hover {
    color: #4b5563;
}

.grid-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 16px;
}

.grid-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}

/* ===================================
   CATEGORIES CONTAINER - 3:1 비율로 수정
   =================================== */

/* Categories Container */
.categories-container {
    padding: 50px 0;
    background: #ffffff;
}

.categories-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 2fr 1fr에서 3fr 1fr로 변경 */
    gap: 40px;
    align-items: start;
}

.categories-main {
    display: flex;
    flex-direction: column;
    gap: 50px; /* 카테고리 간 간격 */
}

.category-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 40px;
}

.category-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
}

.category-badge {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-more-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.category-more-link:hover {
    color: #1f2937;
}

.category-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* 간격을 35px에서 40px로 늘림 */
}

/* Featured Post (Left Side) */
.category-featured {
    display: flex;
    flex-direction: column;
}

.featured-image {
    width: 100%;
    height: 300px; /* 280px에서 300px로 늘림 */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-title {
    font-size: 24px; /* 22px에서 24px로 늘림 */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.featured-title a {
    color: #1f2937;
    text-decoration: none;
}

.featured-title a:hover {
    color: #4b5563;
}

.featured-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6b7280;
}

.featured-excerpt {
    color: #4b5563;
    line-height: 1.6;
    font-size: 16px; /* 15px에서 16px로 늘림 */
}

/* List Posts (Right Side) */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-image {
    flex-shrink: 0;
    width: 130px; /* 120px에서 130px로 늘림 */
    height: 100px; /* 90px에서 100px로 늘림 */
    border-radius: 8px;
    overflow: hidden;
}

.list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-image:hover img {
    transform: scale(1.05);
}

.list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-title {
    font-size: 17px; /* 16px에서 17px로 늘림 */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.list-title a {
    color: #1f2937;
    text-decoration: none;
}

.list-title a:hover {
    color: #4b5563;
}

.list-meta {
    font-size: 13px;
    color: #6b7280;
}

/* Categories Sidebar - 더 컴팩트하게 조정 */
.categories-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px; /* 24px에서 20px로 줄임 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    padding: 0 0 20px 0; /* 24px에서 20px로 줄임 */
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 20px; /* 24px에서 20px로 줄임 */
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-title {
    font-size: 15px; /* 16px에서 15px로 줄임 */
    font-weight: 600;
    margin-bottom: 14px; /* 16px에서 14px로 줄임 */
    color: #1a202c;
}

/* 인기 주제 */
.popular-topics {
    list-style: none;
}

.popular-topics li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0; /* 8px에서 6px로 줄임 */
    border-bottom: 1px solid #f7fafc;
}

.popular-topics li:last-child {
    border-bottom: none;
}

.popular-topics a {
    color: #4a5568;
    text-decoration: none;
    font-size: 13px; /* 14px에서 13px로 줄임 */
    transition: color 0.2s ease;
}

.popular-topics a:hover {
    color: #d97706;
}

.topic-count {
    font-size: 11px; /* 12px에서 11px로 줄임 */
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 건강 체크 */
.health-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px; /* 12px에서 10px로 줄임 */
}

.check-icon {
    font-size: 14px; /* 16px에서 14px로 줄임 */
}

.check-text {
    font-size: 12px; /* 13px에서 12px로 줄임 */
    color: #4a5568;
    flex: 1;
}

.check-progress {
    position: relative;
    width: 50px; /* 60px에서 50px로 줄임 */
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #22c55e;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 10px; /* 11px에서 10px로 줄임 */
    color: #6b7280;
    position: absolute;
    top: -16px; /* -18px에서 -16px로 조정 */
    right: 0;
}

.check-more {
    display: inline-block;
    margin-top: 10px; /* 12px에서 10px로 줄임 */
    font-size: 11px; /* 12px에서 11px로 줄임 */
    color: #d97706;
    text-decoration: none;
}

/* 오늘의 팁 */
.tip-content p {
    font-size: 13px; /* 14px에서 13px로 줄임 */
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 8px;
    font-style: italic;
}

.tip-category {
    font-size: 10px; /* 11px에서 10px로 줄임 */
    color: #d97706;
    background: #fef3e2;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 응급 정보 */
.emergency-list {
    display: flex;
    flex-direction: column;
    gap: 6px; /* 8px에서 6px로 줄임 */
}

.emergency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px; /* 8px 12px에서 6px 10px로 줄임 */
    background: #fef2f2;
    border-radius: 6px;
}

.emergency-number {
    font-weight: 600;
    color: #dc2626;
    font-size: 13px; /* 14px에서 13px로 줄임 */
}

.emergency-desc {
    font-size: 11px; /* 12px에서 11px로 줄임 */
    color: #6b7280;
}

/* 앱 추천 */
.app-item {
    display: flex;
    align-items: center;
    gap: 10px; /* 12px에서 10px로 줄임 */
    padding: 6px 0; /* 8px에서 6px로 줄임 */
    border-bottom: 1px solid #f7fafc;
}

.app-item:last-child {
    border-bottom: none;
}

.app-icon {
    font-size: 18px; /* 20px에서 18px로 줄임 */
    width: 28px; /* 32px에서 28px로 줄임 */
    text-align: center;
}

.app-info {
    display: flex;
    flex-direction: column;
}

.app-name {
    font-size: 12px; /* 13px에서 12px로 줄임 */
    font-weight: 500;
    color: #1f2937;
}

.app-desc {
    font-size: 10px; /* 11px에서 10px로 줄임 */
    color: #6b7280;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .categories-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .categories-sidebar {
        position: static;
        order: -1; /* 모바일에서는 위쪽에 표시 */
    }
    
    .category-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .categories-main {
        gap: 35px;
    }
    
    .category-item {
        padding-bottom: 30px;
    }
    
    .category-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .list-item {
        gap: 12px;
        padding-bottom: 15px;
    }
    
    .list-image {
        width: 100px;
        height: 75px;
    }
    
    .categories-sidebar {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: white;
    padding: 60px 0;
    margin-top: 60px;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-text p {
    font-size: 16px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    gap: 12px;
}

.subscribe-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.subscribe-form button {
    background: #d97706;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-form button:hover {
    background: #b45309;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-sidebar {
        position: static;
        order: -1; /* 모바일에서는 위쪽에 표시 */
    }
    
    .category-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    
    .hero-main {
        grid-column: 1 / 3;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .site-main,
    .single .site-main {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 24px 0;
    }
    
    .post {
        padding: 24px 20px;
        margin-bottom: 16px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .widget {
        padding: 20px;
    }
    
    /* 모바일에서 포스트 본문 너비 */
    .single-post .post-body {
        max-width: none;
    }
    
    /* 모바일에서 하위메뉴 */
    .main-navigation .menu-item-has-children::before {
        display: none;
    }
    
    .main-navigation .sub-menu {
        position: static;
        display: none;
        background: #f8f9fa;
        border: none;
        border-radius: 8px;
        box-shadow: none;
        margin-top: 8px;
        padding: 8px;
        opacity: 1;
        transform: none;
    }
    
    .main-navigation .menu-item-has-children:hover .sub-menu {
        display: block;
    }
    
    .main-navigation .sub-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .main-navigation .sub-menu a:hover {
        transform: none;
    }
    
    .main-navigation .sub-menu a:before {
        content: "•";
        margin-right: 8px;
    }
    
    /* 홈페이지 모바일 반응형 */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-main {
        grid-column: 1;
        height: 250px;
    }
    
    .hero-small {
        height: 200px;
    }
    
    .category-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .category-content-grid {
        gap: 25px;
    }
    
    .list-item {
        gap: 12px;
    }
    
    .list-image {
        width: 100px;
        height: 75px;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .latest-posts-section .section-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-sidebar {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .sidebar-widget .widget-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .post {
        padding: 20px 16px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .main-navigation ul {
        gap: 12px;
    }
    
    .main-navigation a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* 홈페이지 작은 화면 */
    .hero-section {
        padding: 20px 0 40px 0;
    }
    
    .category-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-small .hero-title {
        font-size: 14px;
    }
    
    .featured-title {
        font-size: 18px;
    }
    
    .list-title {
        font-size: 14px;
    }
    
    .newsletter-section {
        padding: 40px 0;
    }
    
    .newsletter-text h2 {
        font-size: 22px;
    }
}