/**********************************************************************************
    BLOG PAGE STYLES
**********************************************************************************/

/* 블로그 인트로 섹션 */
.blog-intro-section {
    padding: var(--section-padding);
    background-color: var(--primary-black);
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.blog-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.blog-intro-section .container {
    position: relative;
    z-index: 2;
}

.blog-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
}

.blog-subtitle {
    font-size: 22px;
    color: var(--text-light-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 블로그 게시물 섹션 */
.blog-posts-section {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

.blog-filter-bar {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    background: transparent;
    border: 2px solid var(--border-gray);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-white);
    border-color: var(--accent-blue);
}

.filter-btn.active {
    color: var(--text-white);
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    display: block;
    background: var(--bg-navy);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

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

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

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

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

.post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.post-category {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--accent-blue);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.post-media {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light-gray);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.post-title {
    font-size: 20px;
    color: var(--text-white);
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 600;
    /* 여러 줄 말줄임 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 60px; /* 2줄 높이 확보 */
}

.post-summary {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
    /* 3줄 말줄임 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-date {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.blog-footer {
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid var(--border-gray);
    padding-top: 60px;
}

.blog-footer p {
    font-size: 18px;
    color: var(--text-light-gray);
    margin-bottom: 24px;
}
