/* ===== NEWS PAGE STYLES ===== */
/* News Content Section */
.news-section {
    padding: var(--spacing-12) 0; /* 48px */
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--spacing-8); /* 32px between cards */
    row-gap: var(--spacing-16); /* 64px between rows */
    margin-bottom: var(--spacing-16); /* 64px before pagination */
}

/* No news message */
.no-news {
    text-align: center;
    padding: var(--spacing-12);
    color: var(--color-text-600);
}

/* News Card */
.news-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5); /* 20px between thumbnail and content */
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-width: 0; /* Allow flex items to shrink below content size */
    cursor: pointer;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.news-thumbnail {
    width: 100%;
    height: 15rem; /* 240px - 60px * 4 */
    border-radius: var(--radius-lg); /* 16px */
    overflow: hidden;
    background-color: var(--color-bg-1); /* 임시 배경색 */
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card-link:hover .thumbnail-image {
    transform: scale(1.05);
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1); /* 4px between title and date */
}

.news-title {
    margin-bottom: 0.25rem;
    /* 긴 제목 처리 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-date {
    font-size: var(--font-size-sm); /* 14px */
    font-weight: var(--font-weight-normal);
    color: var(--color-text-700);
    line-height: var(--line-height-normal);
    margin: 0;
}

/* Pagination - Import from pagination.css */

/* Responsive Design - variables.css의 반응형 변수 활용 */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-6); /* 24px between cards */
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-5); /* 20px between cards */
    }
    
    .news-thumbnail {
        height: 12.5rem; /* 200px */
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4); /* 16px between cards */
    }
}
