/* News Section */
.news-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
        font-weight: 600;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.news-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.news-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-card .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-card .btn-link:hover {
    color: var(--info-color);
    padding-left: 5px;
}

/* .news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
} */

.news-detail-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 1rem;
}

.news-images-gallery {
    display: grid;
    gap: 1rem;
}

.news-image-item {
    width: 100%;
    overflow: hidden;
}

.news-image-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.news-image-item img:hover {
    transform: scale(1.02);
}

.news-detail-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.news-detail-meta {
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

/* 이미지가 여러 개일 때 그리드 레이아웃 */
.news-images-gallery:has(.news-image-item:nth-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}

.news-images-gallery:has(.news-image-item:nth-child(3)) {
    grid-template-columns: repeat(2, 1fr);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .news-images-gallery {
        grid-template-columns: 1fr !important;
    }
}