@charset "utf-8";

/* --- 뉴스 섹션 전체 컨테이너 --- */
.news_section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    /* 위아래 여백을 넉넉히 줌 */
}

/* --- 상단 타이틀 영역 --- */
.news_header {
    text-align: left;
    /* 수평 가운데 정렬 */
    margin-bottom: 60px;
    /* 리스트와의 간격 */
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.news_header h2 {
    font-size: 70px;
    /* 이미지처럼 크고 굵은 제목 */
    color: #000000;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
}

.news_header p {
    font-size: 24px;
    color: #333333;
    margin: 0;
}

/* --- 뉴스 리스트 그리드 레이아웃 --- */
.news_grid_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 1줄에 3개 배치 */
    gap: 30px;
    /* 아이템 사이 간격 */
    padding: 0;
    margin: 0;
    list-style: none;
}

.news_item a {
    display: block;
    text-decoration: none;
}

.news_img_box {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 75%;
    /* 💡 4:3 비율 고정 */
    border-radius: 16px;
    margin-bottom: 15px;
    background-color: #f5f5f5;

    /* 배경 설정 */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.3s ease;
}

.news_item:hover .news_img_box {
    transform: scale(1.03);
    /* PC에서 마우스 올리면 살짝 커짐 */
}

.news_txt_box h2{
    font-size:18px;
}

/* --- 반응형 레이아웃 (모바일/태블릿) --- */
@media all and (max-width: 1024px) {
    .news_section {
        padding: 80px 20px;
    }

    .news_grid_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news_header h2 {
        font-size: 42px;
    }
}

@media all and (max-width: 768px) {
    .news_section {
        padding: 60px 20px;
    }

    .news_grid_list {
        grid-template-columns: 1fr;
        /* 모바일 1열 */
    }

    .news_header h2 {
        font-size: 36px;
    }

    .news_img_box {
        aspect-ratio: 16 / 9;
        /* 모바일 와이드 비율 */
    }
}