/* 기본 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.wrapper {
    /* wrapper 추가하여 메뉴 닫힐 때 밀리는 현상 방지 */
    overflow-x: hidden;
}

/* 헤더 스타일 */
header {
    background-color: #004488;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 내비게이션 스타일 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* 햄버거 메뉴 버튼 */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* 서랍 메뉴 스타일 */
.drawer {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #004488;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.drawer-links {
    list-style: none;
    padding: 0;
}

.drawer-links a {
    padding: 15px 8px 15px 32px;
    /* 위아래 패딩 추가 */
    text-decoration: none;
    font-size: 20px;
    color: white;
    display: block;
    transition: 0.3s;
}

.drawer-links a:hover {
    background-color: #003366;
    /* 호버 효과 추가 */
}

/* 닫기 버튼 스타일 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

/* 메인 콘텐츠 스타일 */
main {
    padding: 2rem;
}

.headline {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 그림자 추가 */
}

.headline h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.headline a {
    color: #004488;
    text-decoration: none;
}

/* 푸터 스타일 */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #333;
    color: white;
}

/* ... (기존 스타일) */

/* 메인 뉴스 스타일 */
.main-news {
    margin-bottom: 2rem;
}

.news-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    /* 호버 효과 추가 */
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    /* 이미지 높이 고정 */
    object-fit: cover;
    /* 이미지 비율 유지하며 채우기 */
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.news-item a {
    color: #004488;
    text-decoration: none;
}

/* 서브 뉴스 스타일 */
.sub-news {
    display: flex;
    gap: 1.5rem;
}

/* 미디어 쿼리 (반응형 디자인) */
@media (max-width: 768px) {
    .sub-news {
        flex-direction: column;
        /* 작은 화면에서는 세로 배치 */
    }
}