/* 건강정보 페이지 스타일 */

/* 서브페이지 헤더 */
.sub-header {
    position: relative;
    height: 400px;
    background-image: url('/assets/images/loby2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px; /* 네비게이션 높이 */
}

/* 모바일에서 margin-top 제거 */
@media (max-width: 768px) {
    .sub-header {
        margin-top: 0;
        height: 250px;
    }
}

.sub-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sub-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%);
    z-index: 1;
}

.sub-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.sub-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* 브레드크럼 */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: white;
    font-weight: 500;
}

/* 모바일 스타일 */
@media (max-width: 768px) {
    .sub-title {
        font-size: 32px;
    }
    
    .breadcrumb {
        font-size: 14px;
        gap: 10px;
    }
}

/* 건강정보 섹션 */
.health-info-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* 게시글 목록 */
.post-list {
    display: grid;
    gap: 20px;
    margin-bottom: 60px;
}

.post-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-link {
    display: block;
    padding: 30px;
    text-decoration: none;
    color: inherit;
}

/* 게시글 헤더 */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-category {
    display: inline-block;
    padding: 6px 16px;
    background: #e8f4f8;
    color: #0066cc;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.post-date {
    color: #999;
    font-size: 14px;
}

/* 게시글 제목 */
.post-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-item:hover .post-title {
    color: #0066cc;
}

/* 게시글 내용 미리보기 */
.post-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 게시글 푸터 */
.post-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more {
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.post-item:hover .read-more {
    gap: 10px;
}

.read-more i {
    font-size: 12px;
}

/* 더보기 버튼 */
.load-more-wrapper {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: white;
    border: 2px solid #0066cc;
    border-radius: 30px;
    color: #0066cc;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #0066cc;
    color: white;
}

.load-more-btn i {
    font-size: 18px;
}

/* 카테고리별 색상 */
.post-item[data-category="nose"] .post-category {
    background: #fff3e0;
    color: #ff6b00;
}

.post-item[data-category="ear"] .post-category {
    background: #e8f5e9;
    color: #2e7d32;
}

.post-item[data-category="throat"] .post-category {
    background: #fce4ec;
    color: #c2185b;
}

.post-item[data-category="sleep"] .post-category {
    background: #e3f2fd;
    color: #1976d2;
}

.post-item[data-category="general"] .post-category {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .health-info-section {
        padding: 60px 0;
    }
    
    .post-link {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-excerpt {
        font-size: 14px;
    }
    
    .post-category {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .post-date {
        font-size: 12px;
    }
    
    .load-more-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .post-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item {
    animation: fadeIn 0.6s ease both;
}

.post-item:nth-child(1) { animation-delay: 0.1s; }
.post-item:nth-child(2) { animation-delay: 0.2s; }
.post-item:nth-child(3) { animation-delay: 0.3s; }
.post-item:nth-child(4) { animation-delay: 0.4s; }
.post-item:nth-child(5) { animation-delay: 0.5s; }
.post-item:nth-child(6) { animation-delay: 0.6s; }
.post-item:nth-child(7) { animation-delay: 0.7s; }
.post-item:nth-child(8) { animation-delay: 0.8s; }
