/* 블로그 목록 스타일 */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
}

.blog-section {
    text-align: center;
    padding: 100px 0 60px 0;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.blog-tabs {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.tab-links {
    display: flex;
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tab-link {
    padding: 15px 30px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin: 0;
    border-radius: 0;
}

.tab-link:hover {
    background: transparent;
    color: #333;
}

.tab-link.active {
    background: #fff;
    color: #008385;
    border: 1px solid #e0e0e0;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.tab-link:first-child {
    border-top-left-radius: 4px;
}

.tab-link:last-child {
    border-top-right-radius: 4px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.no-posts {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .blog-container {
        padding: 20px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .tab-links {
        gap: 10px;
    }

    .tab-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 15px;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-subtitle {
        font-size: 0.9rem;
    }

    .tab-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* 카테고리 필터 버튼 스타일 */
.blog-category-filter {
    display: flex;
    gap: 10px;
    margin: 40px 0 30px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.category-btn {
    padding: 8px 22px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.category-btn.active,
.category-btn:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* 반응형 */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-image {
        height: 140px;
    }
}
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .card-image {
        height: 120px;
    }
}

/* 페이지네이션 */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.pagination-numbers {
    display: flex;
    gap: 10px;
}

.page-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    border-color: #007bff;
    color: #007bff;
}

.page-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .blog-container {
        margin: 100px auto 40px;
    }

    .post-link {
        flex-direction: column;
        padding: 15px;
    }

    .post-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .post-title {
        font-size: 1.2rem;
        text-align: left;
    }

    .post-excerpt {
        font-size: 0.9rem;
        height: auto;
        -webkit-line-clamp: 4;
    }

    .post-meta {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        margin: 80px auto 30px;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .post-image {
        height: 180px;
    }

    .pagination-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .page-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .post-excerpt {
        font-size: 0.85rem;
    }
} 