/* ✅ 모달 전체 배경 */
.news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* 기본적으로 숨김 */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

/* ✅ 모달 표시 클래스 */
.news-modal.show {
    display: flex;
}

/* ✅ 콘텐츠 박스 */
.news-modal-content {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    max-height: 95vh;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ✅ 닫기 버튼 */
.news-close {
    position: absolute;
    top: 20px;
    right: 16px;
  
    /* ✅ 배경 제거 */
    background: none;
    border: none;
    box-shadow: none;
  
    /* ✅ 크기 조정: 기사보기 버튼과 비슷하게 */
    width: 40px;
    height: 40px;
    font-size: 26px;
    font-weight: 400;
    color: #fff;
  
    /* ✅ 중앙 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
  
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}
  
.news-close:hover {
    color: #ccc;
}
  
  
/* ✅ 상단 헤더 (매체명 + 요약) */
.news-modal .news-header {
    background: #002672;
    color: #fff;
    padding: 16px 24px 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    border-bottom: none;
    margin-bottom: 0;
}
.news-modal .news-headline {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}
.news-modal .news-headline strong {
    font-weight: 700;
}
.news-modal .news-link {
    background: #fff;
    color: #0a3c9f;
    padding: 8px 16px;
    margin-right: 60px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.news-modal .news-link:hover {
    background: #e0e0e0;
}
  
/* ✅ 뉴스 제목 */
#news-title {
    margin-top: 32px;
    font-size: 32px;
    font-weight: 800;
    color: #000000;
    line-height: 1.5;
    padding: 0 40px;
}
  
/* ✅ 날짜 */
#news-date {
    font-size: 14px;
    color: #999;
    margin: 12px 0 24px;
    padding: 0 40px;
}
  
/* ✅ 이미지 */
#news-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
    display: block !important;
}
  
/* ✅ 본문 텍스트 */
#news-body {
    padding: 0 40px 48px;
}
#news-body p {
    margin-bottom: 18px;
    font-size: 20px;
    color: #333;
    line-height: 1.7;
    word-break: keep-all;
}
  
/* ✅ scroll.js 등의 숨김 클래스 무력화 */
.news-modal h1,
.news-modal h2,
.news-modal h3,
.news-modal p {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}
  
/* ✅ 숨김 클래스 */
.hidden {
    display: none;
}
  
/* ✅ 등장 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
  
/* 모달 내부 모든 요소의 가상 요소 비활성화 */
.news-modal *::before,
.news-modal *::after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}

/* 이미지 래퍼 스타일 */
.news-image-wrapper {
    padding: 0 40px;
    border: none;
    border-bottom: none;
    text-align: center;
    margin-bottom: 20px;
    overflow: visible;
    position: relative;
}

.news-image-wrapper img {
    border: none;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    z-index: 10;
}
  
  