/* =============================
   최신 뉴스 스타일 (전체 CSS)
   ============================= */

.news-latest-wrap {
    width: 100%;
    font-family: Pretendard, sans-serif;
    color: #111;
    margin-top: 10px;
}

/* ---------- 헤더 ---------- */
.news-head {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.news-head h2 {
    font-size: 20px;
    font-weight: 700;
    margin-right: 8px;
}
.news-head .info {
    font-size: 13px;
    color: #777;
}

/* ---------- 큰 뉴스 2개 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.news-big .big-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
    font-family: "Pretendard Variable";
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-big .big-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.5;
    padding-top: 10px;
}

.big-time {
    font-size: 12px;
    color: #999;
}

/* ---------- 리스트 뉴스 ---------- */
.news-list {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    padding: 0 0 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #111;
    margin-bottom: 15px;
}

.news-title {
    flex: 1;
    padding-right: 10px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-time {
    white-space: nowrap;
    color: #999;
    font-size: 12px;
}

/* =============================
            반응형
   ============================= */

@media (max-width: 768px) {

    /* 큰 뉴스 2개 → 1개 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 리스트 뉴스 → 1열 */
    .news-list {
        grid-template-columns: 1fr;
    }

    /* 큰 제목 크기 감소 */
    .news-big .big-title {
        font-size: 16px;
    }

    /* 큰 텍스트 크기 감소 */
    .news-big .big-text {
        font-size: 13px;
    }

    /* 리스트 항목 */
    .news-item {
        display: block; /* flex 해제하여 이탈 방지 */
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    /* 모바일에서 제목 2줄까지만 표시 */
    .news-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;   /* ★ 두 줄까지만 보여줌 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 13px;
        line-height: 1.4;
        padding-right: 0;
    }

    /* 시간 표시 */
    .news-time {
        text-align: right;
        margin-top: 4px;
        font-size: 12px;
    }
}
@media (max-width: 430px) {

    /* 큰뉴스 박스 자체의 레이아웃 안정화 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px; /* 갭 줄여 튀어나옴 방지 */
    }

    /* 큰 제목: 한 줄 고정 → 두 줄 표시 */
    .news-big .big-title {
        white-space: normal; /* 줄바꿈 허용 */
        display: -webkit-box;
        -webkit-line-clamp: 2;  /* 두 줄만 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 15px; /* 더 좁은 화면 고려 */
        line-height: 1.4;
    }

    /* 요약 글자 줄이기 */
    .news-big .big-text {
        font-size: 13px;
        line-height: 1.45;
    }
}