/* =========================================
           1. 공통 및 리셋 스타일
        ========================================= */
        :root {
            --primary: #003087;
            --accent: #e30613;
            --text: #222222;
            --light-text: #555555;
            --border: #e5e5e5;
            --bg: #f8f9fa;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; line-height: 1.5; color: var(--text); background-color: var(--bg); -webkit-tap-highlight-color: transparent; }
        a { text-decoration: none; color: inherit; }
        ul, ol { list-style: none; }
        
        /* 화면 전환용 클래스 */
        .page-section { display: none; animation: fadeIn 0.3s ease-in-out; }
        .page-section.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        
        /* 기본 광고 배너 */
        .ad-banner { width: 100%; background-color: #161B2E; /*border: 1px solid #1e293b;*/  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; margin: 3rem 0; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); }
        @media (min-width: 768px) { .ad-banner {  } }
        .ad-bg { position: absolute; inset: 0; background: linear-gradient(to right, rgba(30,58,138,0.1), transparent, rgba(30,58,138,0.1)); opacity: 0.5; }
        .ad-content { position: relative; z-index: 10; text-align: center; }
        .ad-label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.1em; font-weight: bold; display: block; margin-bottom: 0.25rem; }
        .ad-text { color: #94a3b8; font-weight: 500; }
        @media (min-width: 768px) { .ad-text { font-size: 1.125rem; } }
        .ad-badge { position: absolute; top: 0; right: 0; font-size: 9px; color: #475569; font-weight: bold; background-color: rgba(255, 255, 255, 0.5); padding: 0px 10px;}

        .ad_vert_wide{clear:both;position:relative;margin: auto;margin-bottom:4rem;display: inline-block;text-align: center;}
        .ad_vert_wide a{display:block}
        .ad_vert_wide a img{width:100%;}
        .ad_vert{position:relative;margin-bottom:4rem}
        .ad_vert a{display:block}
        .ad_vert a img{width:100%;height:auto}
        .banner_ad{position:absolute;top:2px;right:2px; height: 16px; z-index:1;cursor:pointer}

        .ad_text_pic_E { position: relative; }
        
        /* =========================================
           2. 헤더 & 네비게이션
        ========================================= */
        .top-bar { background-color: #111111; color: #ffffff; font-size: 13px; padding: 7px 0; }
        .top-bar-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
        
        .site-header { background-color: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; }
        .header-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
        .header-top {display: flex;align-items: center;justify-content: space-between;padding: 14px 0;}
        @media (min-width: 768px) {.header-top {justify-content: center;}}
        
        .logo { display: flex; font-size: 26px; font-weight: 900; color: var(--primary); letter-spacing: -1px; cursor: pointer; }
        .logo span { color: var(--accent); }
        .logo-domain { font-size: 13px; font-weight: 500; color: var(--text); margin-left: 2px; }
        .logo img { height: 30px; }
        @media (min-width: 768px) { .logo img { height: 40px; } }
        
        .search-container {flex: 1;max-width: 250px;margin: 0;position: relative;}
        .search-input { width: 100%; padding: 11px 20px 11px 48px; border: 2px solid #ddd; border-radius: 50px; font-size: 15px; outline: none; transition: border 0.2s; }
        .search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #777; }
        
        .header-actions { display: flex; align-items: center; gap: 12px; }
        .header-actions button { background: none; border: none; font-size: 20px; cursor: pointer; padding: 8px; border-radius: 50%; }
        .hamburger { display: none !important; }
        
        .main-nav {border-top: 1px solid var(--border);display: flex;justify-content: space-between;padding: 5px 0;align-items: center;}
        .nav-container {max-width: 1280px;/* margin: 0 auto; */padding: 0 16px;}
        .category-list { display: flex; overflow-x: auto; padding: 12px 0; gap: 36px; scrollbar-width: none; }
        .category-list::-webkit-scrollbar { display: none; }
        .category-list li a { font-size: 18px; font-weight: 600; padding: 8px 0; position: relative; white-space: nowrap; cursor: pointer; }
        .category-list li a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }

        @media (max-width: 768px) {
            .search-container { display: none; }
            .category-list { display: none; }
            .hamburger { display: block !important; }
            .nav-container.mobile-open .category-list { display: flex; flex-direction: column; padding: 20px; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: 0 10px 10px rgba(0,0,0,0.1); z-index: 999; }
        }

        /* =========================================
           3. 공통 컴포넌트: 메인 상단 카드
        ========================================= */
        .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 16px; max-width: 1280px; margin-left: auto; margin-right: auto; }
        .section-title { font-size: 18px; font-weight: 800; color: var(--primary); }
        .more-link { font-size: 14px; font-weight: 600; color: #555; cursor: pointer; }
        
        .top-stories { max-width: 1280px; margin: 0 auto 48px; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
        
        /* Flexbox 구조 보완: 카드가 꽉 차게 정렬되도록 수정 */
        .news-card { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer; display: flex; flex-direction: column; }
        .news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); }
        .news-card-image { height: 180px; background-size: cover; background-position: center; position: relative; flex-shrink: 0; }
        .news-card-category { position: absolute; top: 12px; left: 12px; background-color: rgba(227, 6, 19, 0.95); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 3px; font-weight: 700; }
        
        .news-card-content { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
        .news-card-title { font-size: 17.5px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        .news-card-excerpt { font-size: 14px; color: var(--light-text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
        .news-card-meta { font-size: 13px; color: #777; margin-top: auto; }

        /* 좌우 분할 구조 */
        .main-content-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; max-width: 1280px; margin: 0 auto 48px; padding: 0 16px; }
        @media (max-width: 992px) { .main-content-layout { grid-template-columns: 1fr; gap: 24px; } }
        
        /* 트윈 카테고리 섹션 (여행/건강) */
        .twin-category-section { max-width: 1280px; margin: 48px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
        
        /* =========================================
           4. 공통 컴포넌트: MSN Style Feed 카드
        ========================================= */
        .feed-section, .news-feed-section { max-width: 1280px; margin: 40px auto; padding: 0 16px; }
        .feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 12px; }
        @media (max-width: 768px) { .feed-header{ flex-direction: column; row-gap: 15px;} }
        .feed-header h2 { font-size: 22px; font-weight: 800; color: var(--primary); }
        
        .feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
        
        /* 5열 피드 그리드 (리스트 페이지용) */
        .feed-grid-5col { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
        @media (max-width: 1200px) { .feed-grid-5col { grid-template-columns: repeat(4, 1fr); } }
        @media (max-width: 992px) { .feed-grid-5col { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 768px) { .feed-grid-5col { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 480px) { .feed-grid-5col { grid-template-columns: 1fr; } }
        
        .feed-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s; border: 1px solid #eaeaea; display: flex; flex-direction: column; cursor: pointer; }
        .feed-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
        
        .feed-card-img { height: 160px; background-size: cover; background-position: center; position: relative; flex-shrink: 0; }
        .feed-play-icon { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.7); color: white; padding: 4px 8px; border-radius: 20px; font-size: 12px; display: flex; align-items: center; gap: 4px; }
        
        .feed-card-content { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
        .feed-source { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 10px; }
        .feed-source-logo { width: 16px; height: 16px; border-radius: 50%; background: var(--primary); display: inline-block; }
        .feed-title { font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #111; }
        
        .feed-excerpt { font-size: 13.5px; color: #666; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        
        .feed-meta { margin-top: auto; font-size: 12px; color: #888; display: flex; justify-content: space-between; align-items: center; }
        .feed-actions { display: flex; gap: 12px; opacity: 0; transition: opacity 0.2s; }
        .feed-card:hover .feed-actions { opacity: 1; }
        @media (max-width: 768px) { .feed-actions { opacity: 1; } }
        .feed-action-btn { background: none; border: none; color: #999; font-size: 16px; cursor: pointer; }
        .feed-action-btn:hover { color: var(--primary); }

        /* 피드 탭 */
        .feed-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
        .feed-tab { background: #f0f0f0; border: none; font-size: 14.5px; font-weight: 600; color: #555; padding: 8px 16px; border-radius: 20px; cursor: pointer; white-space: nowrap; }
        .feed-tab.active { background: var(--primary); color: white; }

        /* =========================================
           5. 메인 페이지 전용 스타일 (#page-main)
        ========================================= */
        .hero-section { max-width: 1280px; margin: 20px auto 40px; padding: 0 16px; position: relative; }
        .hero-slider { position: relative; border-radius: 12px; overflow: hidden; height: 480px; }
        @media (max-width: 768px) { .hero-slider { height: 380px; } }
        
        .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; display: flex; align-items: flex-end; }
        .slide.active { opacity: 1; z-index: 1; }
        .slide-image { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.7); }
        .slide-content { position: relative; padding: 40px; max-width: 700px; color: #ffffff; z-index: 2; cursor: pointer; }
        .slide-category { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; }
        .slide-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
        .slide-excerpt { font-size: 16px; opacity: 0.9; }

        .slider-controls { position: absolute; bottom: 24px; right: 24px; display: flex; gap: 10px; z-index: 10; }
        .slider-btn { width: 44px; height: 44px; background-color: rgba(255,255,255,0.92); color: #111; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }

        /* =========================================
           6. 리스트 페이지 전용 스타일 (#page-list)
        ========================================= */
        .page-header { max-width: 1280px; margin: 40px auto 20px; padding: 0 16px; }
        .page-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
        .page-desc { font-size: 16px; color: var(--light-text); margin-bottom: 24px; }
        .list-filters { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 16px; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }

        /* =========================================
           7. 기사 뷰 페이지 전용 스타일 (#page-view)
        ========================================= */
        .view-layout {  display: grid; grid-template-columns: 1fr 340px; gap: 40px; max-width: 1280px; margin: 40px auto; padding: 0 16px; }
        @media (max-width: 992px) { .view-layout { grid-template-columns: 100%; } }
        
        .article-container { flex: 1; min-width: 0; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        @media (max-width: 768px) { .article-container { padding: 20px 16px; } }
        
        .breadcrumb { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
        .article-title { font-size: 32px; font-weight: 800; line-height: 1.35; margin-bottom: 20px; word-break: keep-all; }

        @media (max-width: 768px) { .article-title { font-size: 24px; } }
        
        .article-meta { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
        .meta-info { font-size: 14px; color: #666; }
        .meta-author { font-weight: 700; color: #333; margin-right: 12px; }
        
        .article-body { font-size: 17.5px; line-height: 1.8; color: #333;      border-bottom: #e2e2e2 solid 5px;
    margin-bottom: 30px;}

.article-body img { width: 100%; border-radius: 8px; display: block; margin: 20px auto; }
        .article-body p { margin: 0; }
        .article-figure { margin: 32px 0; text-align: center; }
        .article-figure img { max-width: 100%; border-radius: 8px; }
        .article-figure figcaption { font-size: 14px; color: #777; margin-top: 8px; background: #f8f8f8; padding: 10px; border-left: 3px solid #ddd; text-align: left; }
        
        /* 사이드바 공통 */
        .sidebar, view-sidebar { position: sticky; top: 90px; height: fit-content; }
        .side-box { background: #fff; border-radius: 12px; padding: 24px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 24px; }
        .side-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; border-bottom: 2px solid var(--primary); padding-bottom: 10px; }
        .side-list { counter-reset: num; }
        .side-list li { padding: 12px 0; border-bottom: 1px solid #eee; font-size: 15px; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; }
        .side-list li::before { counter-increment: num; content: counter(num); background: var(--primary); color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; flex-shrink: 0; margin-top: 2px; }
        .side-list li:hover { color: var(--primary); font-weight: bold; }

        /* =========================================
           8. 소개/약관 페이지 전용 스타일 (#page-about)
        ========================================= */
        .about-layout { max-width: 1000px; margin: 40px auto 80px; padding: 0 16px; display: flex; gap: 40px; }
        @media (max-width: 768px) { .about-layout { flex-direction: column; gap: 20px; } }
        
        .about-nav { width: 220px; flex-shrink: 0; }
        @media (max-width: 768px) { .about-nav { width: 100%; overflow-x: auto; white-space: nowrap; display: flex; gap: 5px; padding-bottom: 10px; border-bottom: 1px solid #ddd; } }
        
        .about-tab { display: block; padding: 16px 20px; background: #fff; border: 1px solid #eee; margin-bottom: 8px; border-radius: 8px; font-size: 16px; font-weight: 600; color: #555; cursor: pointer; text-align: left; width: 100%; }
        @media (max-width: 768px) { .about-tab { display: inline-block; width: auto; margin-bottom: 0; padding: 10px 8px; font-size: 14px;} }
        .about-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
        
        .about-content-area { flex: 1; background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        @media (max-width: 768px) { .about-content-area { padding: 24px 16px; } }
        
        .about-panel { display: none; animation: fadeIn 0.3s; }
        .about-panel.active { display: block; }
        
        .about-panel h2 { font-size: 28px; font-weight: 800; margin-bottom: 24px; color: var(--primary); border-bottom: 2px solid #eee; padding-bottom: 16px; }
        .about-panel p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 16px; }
        
        /* =========================================
           9. 푸터
        ========================================= */
        .site-footer { background-color: #111111; color: #cccccc; padding: 50px 16px 30px; }
        .footer-container { max-width: 1280px; margin: 0 auto; }
        .footer-grid { display: grid; grid-template-columns: 40% 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
        .footer-column h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
        .footer-column ul { font-size: 14px; line-height: 2; }
        .footer-column ul li a { cursor: pointer; }
        .footer-column ul li a:hover { color: #fff; }
        .footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }




@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; 
    }
    
    
        .footer-column ul{ display: flex;
    flex-direction: row;
    gap: 30px; }
    
    .footer-bottom {
        flex-direction: column-reverse; gap: 30px;}
}


