/* Member News Page Styles */

/* News Grid Container */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;
    margin-top: 40px;
}

/* News Card */
.news-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.18);
    outline: none;
}

.news-card:hover,
.news-card:focus {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    border: 2px solid rgba(139, 149, 165, 0.5);
}

.news-card:focus {
    outline: 2px solid rgba(139, 149, 165, 0.7);
    outline-offset: 2px;
}

/* Card Image */
.news-card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    padding: 30px;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

/* Card Content */
.news-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(230, 235, 240, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.news-card-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    text-align: center;
    /* line-height: 1.6; */
    margin-bottom: 0;
    flex: 1;
    /* 2줄 말줄임 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 25px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 50px 25px;
    }

    .news-card-image {
        height: 120px;
    }

    .news-card-title {
        font-size: 20px;
    }

    .news-card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-card-image {
        height: 120px;
    }

    .news-card-image img {
        padding: 15px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .news-card-subtitle {
        font-size: 14px;
    }
}