/* ===========================================
   News Section
   뉴스 섹션 스타일
   =========================================== */

/* News Section */
.news-section {
    padding: 80px 0 0px 0;
    background: #fff;
}

.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.news-section-title {
    font-family: "Noto Sans KR", sans-serif;
    font-weight: bold;
    font-size: 48px;
    line-height: normal;
    color: #000000;
    margin: 0;
}

.news-section-title span {
    font-weight: bold;
}

.news-view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #8c8c8c;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 22px;
    font-weight: normal;
    line-height: normal;
    transition: color 0.3s ease;
    margin-right: 10px;
}

.news-view-all:hover {
    color: #9b2246;
}

.news-view-all-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
    transition: opacity 0.3s ease;
}

.news-view-all-icon rect[fill="#8C8C8C"] {
    transition: fill 0.3s ease;
}

.news-view-all:hover .news-view-all-icon rect[fill="#8C8C8C"] {
    fill: #9b2246;
}

.news-cards-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 20px;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card-desktop-only {
    display: flex;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: transparent;
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

.news-card-image img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: top;
    display: block;
}

.news-card-image .news-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #8c8c8c;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 14px;
}

.news-card-content {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-badge {
    background: #9b2246;
    color: #ffffff;
    font-family: "Noto Sans KR", sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.5;
    padding: 5.714px 11.429px;
    border-radius: 47.619px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    letter-spacing: -0.64px;
}

.news-headline {
    font-family: "Noto Sans KR", sans-serif;
    font-weight: bold;
    font-size: 22px;
    line-height: 1.5;
    color: #000000;
    margin: 0;
    letter-spacing: -0.88px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.news-date {
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #8c8c8c;
    margin: 0;
    letter-spacing: -0.64px;
    white-space: pre-wrap;
}

/* Mobile Responsive */
@media (max-width: 1240px) {
    .news-cards-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0 10px 0;
    }

    .news-section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        margin-bottom: 10px;
        padding: 0 20px;
    }

    .news-section-title {
        font-size: 20px;
        letter-spacing: normal;
    }

    .news-section-title span {
        font-weight: bold;
    }

    .news-view-all {
        font-size: 14px;
        gap: 3.657px;
    }

    .news-view-all-icon {
        width: 16px;
        height: 16px;
    }

    .news-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 20px;
    }

    .news-card-desktop-only {
        display: none !important;
    }

    /* 모바일에서 2번째 카드부터 무조건 숨김 (안전장치) */
    .news-cards-container .news-card:nth-child(n+2) {
        display: none !important;
    }

    .news-card {
        flex: 1 1 100%;
        max-width: 320px;
        width: 100%;
        border-radius: 14px;
        box-shadow: 0px 0px 15.238px 0px rgba(0, 0, 0, 0.1);
    }

    .news-card-image {
        height: 190px;
        display: flex;
        align-items: flex-start;
    }

    .news-card-image img {
        height: 190px;
        object-position: top;
    }

    .news-card-content {
        padding: 10.971px;
        gap: 10px;
    }

    .news-badge {
        padding: 4px 8px;
        font-size: 12px;
        letter-spacing: -0.48px;
        border-radius: 45.714px;
    }

    .news-headline {
        font-size: 14px;
        letter-spacing: -0.56px;
        line-height: 1.5;
    }

    .news-date {
        font-size: 12px;
        letter-spacing: -0.48px;
    }
}
