@charset "utf-8";

/* ============================================================
   MAIN SECTION 3 — 뉴스 카드 섹션
   ============================================================ */
.news-section {
    width: 100%;
    padding-bottom: 100px;
}

/* ===== 섹션 헤더 ===== */
.news-section__header {
    text-align: center;
}

.news-section__label {
    display: inline-block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.news-section__title {
    color: var(--aticle-title);
    letter-spacing: -5%;
}

.news-section__desc {
    color: var(--desc);
    font-weight: 100;
}

/* ===== 카드 그리드 ===== */
.news-section__grid {
    display: flex;
}

/* ===== 뉴스 카드 ===== */
.news-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
}

/* 썸네일 */
.news-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background-color: #e9e9e9;
}

.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card__thumb img {
    transform: scale(1.04);
}

/* 카드 텍스트 */
.news-card__title {
    color: var(--title);
    line-height: 134%;
    letter-spacing: -5%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.news-card__desc {
    color: var(--desc);
    line-height: 150%;
    letter-spacing: -5%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: center;

    overflow: hidden;
    font-weight: 300;
}

/* ===== 플레이스홀더 ===== */
.news-card__thumb--placeholder {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
=========================
   반응형
   ============================================================ */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .news-section__grid {
        gap: 16px;
    }
}

@media screen and (max-width: 768px) {
    .news-section__grid {
        flex-direction: column;
    }

    .news-card__thumb {
        aspect-ratio: 16 / 9;
    }
}
