/* ================================================================
 * news.css — 뉴스 목록 카드 + 뉴스 상세 override
 * (원본: src/common-layout.ts 의 CSS export 를 정적 파일로 분리)
 * 주의: 내용/선언 순서/우선순위를 원본 그대로 보존합니다.
 * ================================================================ */

/* ---- commonCardListCSS (뉴스 목록 카드) ---- */
    /* News Carousel Wrapper */
    .news-carousel-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        /*padding: 20px 0 60px;*/
         position: relative;
        padding: 0;
        width: 100%;
        overflow: hidden;
     }

       /* News Carousel Section */
    .news-section {
        padding: 60px 20px;
        background: #f8f9fa;
    }

    .news-section .section-title {
        text-align: center;
        margin-bottom: 50px;
    }

    .news-section .section-title h2 {
        font-size: 32px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .news-section .section-title p {
        font-size: 16px;
        color: #7f8c8d;
    }

    .news-carousel-container {
        max-width: 800px;
        margin: 0 auto 60px;
        position: relative;
    }

    .news-carousel-container .news-carousel {
        background: var(--pastel-bg, white);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: relative;
        transition: background 0.3s ease;
    }

    .news-carousel-container .news-carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }

    .news-carousel-container .news-card {
        min-width: 100%;
        padding: 40px;
        box-sizing: border-box;
    }

    .news-carousel-container .news-card h3 {
        font-size: 24px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .news-carousel-container .news-card .news-date {
        color: #3498db;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 15px;
        display: block;
    }

    .news-carousel-container .news-card p {
        color: #5a6c7d;
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .news-carousel-container .news-card .news-source {
        color: #95a5a6;
        font-size: 14px;
        font-style: italic;
    }

    /* Responsive for News Carousel Section */
    @media (max-width: 968px) {
        .news-carousel-container .carousel-arrow.prev { left: 10px; }
        .news-carousel-container .carousel-arrow.next { right: 10px; }
        .news-carousel-container .carousel-arrow {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
    }

    @media (max-width: 768px) {
        .news-section { padding: 40px 15px; }
        .news-section .section-title h2 { font-size: 24px; }
        .news-carousel-container .news-card { padding: 30px 20px; }
        .news-carousel-container .news-card h3 { font-size: 20px; }
        .news-carousel-container .news-card p { font-size: 14px; }
        .news-carousel-container .carousel-arrow {
            width: 35px;
            height: 35px;
            font-size: 14px;
        }
        .news-carousel-container .carousel-arrow.prev { left: 5px; }
        .news-carousel-container .carousel-arrow.next { right: 5px; }
    }

    /* Carousel Container */
    .news-carousel {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow: hidden;
        position: relative;
        margin: 0;
        width: 100%;
    }

    /* Carousel Track */
    .news-carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
    }

    /* News Card */
    .news-card {
        min-width: 100%;
        max-width: 100%;
        min-height: 550px;
        height: auto;
        padding: 60px 80px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        word-wrap: break-word;
        overflow-wrap: break-word;
        background: #fff;
    }

    .news-card-image {
        display: none;
    }

    .news-date {
        color: var(--primary-color);
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 20px;
        display: block;
    }

    .news-card h2 {
        font-size: 32px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .news-content {
        color: #5a6c7d;
        font-size: 22px;
        font-weight: 400;
        line-height: 1.8;
        margin-bottom: 25px;
        flex: 1;
    }

    /* Read more button */
    .news-read-more {
        display: inline-block;
        padding: 12px 30px;
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s;
        margin-top: auto;        
    }
    .news-read-more:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(44, 95, 158, 0.3);
    }
    @media (max-width: 768px) {
       /*.news-read-more {
            padding: 10px 25px;
            font-size: 14px;
        }*/
        .news-read-more:hover {
            background: var(--primary-color, #2C5F9E);
            transform: none;
            box-shadow: none;
        }
    }

    /* Carousel Arrows */
    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: all 0.3s;
        z-index: 10;
        color: var(--primary-color);
        font-size: 20px;
    }

    .carousel-arrow:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        background: var(--primary-color);
        color: white;
    }

    .carousel-arrow.prev {
        left: 20px;
    }

    .carousel-arrow.next {
        right: 20px;
    }

    /* Carousel Indicators */
   .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .carousel-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #bdc3c7;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-indicator.active {
        background: #3498db;
        width: 30px;
        border-radius: 6px;
    }

    /*.carousel-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 30px 0;
    }

    .carousel-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ddd;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        cursor: pointer;
        transition: all 0.3s;
    }*/

    /* Empty state */
    .empty-state {
        text-align: center;
        padding: 80px 20px;
        color: #999;
    }

    @media (max-width: 768px) {
        .news-carousel-wrapper {
            max-width: 100vw;
            width: 100%;
            padding: 0;
            margin: 0;
            overflow-x: hidden;
        }
        .news-carousel {
            width: 100%;
            max-width: 100%;
            margin: 0;
            overflow: hidden;
        }
        .news-carousel-track {
            width: 100%;
        }
        .news-card {
            min-height: 460px;
            min-width: 100%;
            max-width: 100%;
            width: 100%;
            padding: 30px 15px;
            box-sizing: border-box;
        }
        .news-card-image {
            display: none;
        }
                    
        .news-card h2 {
            font-size: 27px;
            word-break: keep-all;
            line-height: 1.4;
            margin-bottom: 15px;
        }
        .news-content {
            font-size: 21px;
            word-break: keep-all;
            line-height: 1.6;
        }
        .carousel-arrow {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
        .carousel-arrow.prev { left: 5px; }
        .carousel-arrow.next { right: 5px; }
    }

/* ---- newsArticleDetailCSS (뉴스 상세, article.css 뒤에서 override) ---- */
    /* === 뉴스 카테고리 전용 - article-content 내부 요소 디자인 === */

    /* h2: 컬러 좌측 라인 + 큰 폰트 + 부드러운 배경 */
    .article-content h2 {
        font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
        font-size: 26px;
        font-weight: 700;
        color: var(--primary-color);
        line-height: 1.4;
        margin: 48px 0 20px;
        padding: 6px 0 6px 16px;
        border-left: 5px solid var(--accent-color);
        background: linear-gradient(90deg, rgba(44, 95, 158, 0.06) 0%, rgba(44, 95, 158, 0) 100%);
    }

    /* h3: 컬러 밑줄 강조 */
    .article-content h3 {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: 21px;
        font-weight: 700;
        color: var(--secondary-color);
        margin: 36px 0 14px;
        padding-bottom: 6px;
        border-bottom: 2px solid rgba(74, 144, 200, 0.35);
        display: inline-block;
    }

    /* h4: 작은 강조 헤딩 */
    .article-content h4 {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: var(--text-dark);
        margin: 28px 0 10px;
    }

    /* 본문 단락: 가독성 향상 (행간 ↑) */
    .article-content p {
        font-size: 17px;
        line-height: 1.95;
        margin-bottom: 22px;
        color: #2a2a2a;
    }

    /* 리스트: 마커 강조 */
    .article-content ul {
        list-style: none;
        padding-left: 0;
        margin: 22px 0;
    }
    .article-content ul li {
        position: relative;
        padding-left: 22px;
        margin-bottom: 12px;
        line-height: 1.85;
    }
    .article-content ul li::before {
        content: '';
        position: absolute;
        left: 4px;
        top: 13px;
        width: 8px;
        height: 8px;
        background: var(--accent-color);
        border-radius: 50%;
    }

    /* 번호 리스트도 약간 강조 */
    .article-content ol {
        padding-left: 24px;
        margin: 22px 0;
    }
    .article-content ol li {
        margin-bottom: 12px;
        line-height: 1.85;
    }
    .article-content ol li::marker {
        color: var(--primary-color);
        font-weight: 700;
    }

    /* 인용구 */
    .article-content blockquote {
        border-left: 4px solid var(--primary-color);
        background: #f5f8fc;
        margin: 28px 0;
        padding: 18px 24px;
        color: #34495e;
        font-style: italic;
        border-radius: 0 6px 6px 0;
    }

    /* 강조 텍스트 */
    .article-content strong {
        color: var(--primary-color);
        font-weight: 700;
    }

    /* 링크: 컬러 + 점선 밑줄 */
    /*.article-content a {
        color: var(--secondary-color);
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 3px;
    }*/
    .article-content a:hover {
        color: var(--primary-color);
    }

    /* 코드 */
    .article-content code {
        background: #f1f3f5;
        color: #c92a2a;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.92em;
    }

    /* 모바일 보정 */
    @media (max-width: 768px) {
        .article-content h2 {
            font-size: 22px;
            margin: 36px 0 16px;
            padding-left: 12px;
            border-left-width: 4px;
        }
        .article-content h3 {
            font-size: 18px;
            margin: 28px 0 12px;
        }
        .article-content h4 {
            font-size: 16px;
        }
        .article-content p {
            font-size: 16px;
            line-height: 1.85;
        }
    }

/* ---- news 캐러셀 페이지 전용 body 오버라이드 ----
 * (원본: src/news.ts showNewsCarousel 의 인라인 <style>)
 * overflow-x/max-width 는 상세 페이지에도 무해하여 news.css 에 통합. */
body {
    overflow-x: hidden;
    max-width: 100vw;
}
