/* STREAMING_CHUNK:Configuring root variables and reset... */
@charset "utf-8";

:root {
/* 논컬러(모노톤) 테마 적용 */
--primary-color: #111111;
--secondary-color: #444444;
--accent-color: #666666;
--text-main: #222222;
--text-muted: #777777;
--bg-body: #ffffff;
--bg-white: #ffffff;
--border-color: #eeeeee;
--font-main: 'Noto Sans KR', sans-serif;
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

body {
font-family: var(--font-main);
color: var(--text-main);
background-color: var(--bg-body);
line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }
ul, ol, li { list-style: none; padding: 0; margin: 0 }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* STREAMING_CHUNK:Styling layout basics... / === Layout === /
*/

        /* === Layout === */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .content-wrapper {
            display: flex;
            gap: 40px;
            padding: 40px 0;
        }

.main-content {
flex: 1;
min-width: 0; /* flex 버그 방지 */
background-color: var(--bg-white);
}

/* === Header === */
.site-header {
background-color: var(--bg-white);
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 1000;
}

.header-top {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}

.site-logo {
display: inline-block;
height: 72px;
}
.site-logo img {
height: 100%;
width: auto;
object-fit: contain;
}

/* STREAMING_CHUNK:Styling header search and GNB... */
.header-search {
display: flex;
align-items: center;
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 5px 15px;
background: #f1f5f9;
}
.header-search input {
border: none;
background: transparent;
outline: none;
padding: 5px;
font-size: 14px;
}
.header-search button {
color: var(--text-muted);
font-weight: bold;
}

        .gnb {
            background-color: var(--primary-color);
            background: linear-gradient(to right, #111, #555);
        }
        .gnb-list {
            display: flex;
            justify-content: flex-start;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch; /* 모바일 부드러운 스크롤 */
            scrollbar-width: none; /* Firefox 스크롤바 숨김 */
        }
        .gnb-list::-webkit-scrollbar {
            display: none; /* Chrome, Safari 스크롤바 숨김 */
        }
        @media (min-width: 1024px) {
            .gnb-list { justify-content: center; } /* PC에서는 가운데 정렬 유지 */
        }
.gnb-list li {
flex: 0 0 auto;
}
.gnb-list li a {
display: block;
padding: 15px 20px;
color: rgba(255,255,255,0.9);
font-weight: 500;
font-size: 16px;
transition: all 0.2s;
white-space: nowrap;
}
.gnb-list li a:hover {
color: #fff;
text-decoration: none;
background-color: rgba(255,255,255,0.1);
}

/* STREAMING_CHUNK:Styling main page specific sections... /
/ ==================== Main Page New Layouts ==================== */
.section-title {
font-size: 22px;
font-weight: 700;
margin-bottom: 20px;
border-bottom: 2px solid var(--primary-color);
padding-bottom: 10px;
display: flex;
align-items: center;
justify-content: space-between;
}

/* 1. 최신 주요 뉴스 */
.main-latest-section { margin-bottom: 50px; }
.main-latest-section .section-title { font-size: 24px; font-weight: 700; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; color: var(--primary-color);}
.main-latest-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.main-primary-article .thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; margin-bottom: 15px; background: #eee;}
.main-primary-article .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.main-primary-article:hover .thumb img { transform: scale(1.03); }
.main-primary-article .title {font-size: 24px;font-weight: 700;margin-bottom: 10px;line-height: 1.4;word-break: keep-all;}
.main-primary-article .desc {font-size: 15px;color: var(--text-muted);line-height: 1.6;display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;overflow: hidden;}

.main-list-articles { display: flex; flex-direction: column; }
.main-list-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.main-list-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.main-list-item-info { flex: 1; }
.main-list-item .title {font-size: 18px;font-weight: 700;line-height: 1.4;margin-bottom: 8px;word-break: keep-all;transition: color 0.2s;}
.main-list-item:hover .title { text-decoration: underline; }
.main-list-item .meta { font-size: 13px; color: #999; }
.main-list-item .thumb {width: 150px;aspect-ratio: 4 / 3;flex-shrink: 0;overflow: hidden;background: #eee;border-radius: 4px;}
.main-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 2. 3단 카테고리 기사 */
.col3-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.col3-column .col-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #000; padding-bottom: 10px; }
.col3-column .col-title a { font-size: 12px; color: #999; font-weight: normal; }
.col3-primary { margin-bottom: 15px; }
.col3-primary .thumb { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 10px; background: #eee;}
.col3-primary .thumb img { width: 100%; height: 100%; object-fit: cover; }
.col3-primary .title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col3-primary:hover .title { text-decoration: underline; }
.col3-primary .desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.col3-sub-list { border-top: 1px solid #eee; padding-top: 15px; }
.col3-sub-list li { margin-bottom: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; word-break: keep-all;}
.col3-sub-list li a:hover { text-decoration: underline; color: var(--accent-color); }

/* STREAMING_CHUNK:Styling multi-column and youtube sections... /
/ 3. 2단 복합 섹션 */
.col2-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; border-top: 1px solid #e2e8f0; padding-top: 40px;}
.col2-block .block-title { font-size: 20px; font-weight: 900; margin-bottom: 20px; }

.list-thumb-right li { margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.list-thumb-right li a { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.list-thumb-right li:last-child { border-bottom: none; }
.list-thumb-right .title { font-size: 15px; font-weight: 700; flex: 1; line-height: 1.4; }
.list-thumb-right li:hover .title { text-decoration: underline; }
.list-thumb-right .thumb { width: 120px; aspect-ratio: 16/10; flex-shrink: 0; overflow: hidden; border-radius: 4px; background: #eee;}
.list-thumb-right .thumb img { width: 100%; height: 100%; object-fit: cover; }

.col2-mixed { display: flex; gap: 20px; }
@media (max-width: 1024px) { .col2-mixed { flex-direction: column; } }
.col2-mixed-primary { flex: 1.2; }
.col2-mixed-primary .thumb { aspect-ratio: 16/10; margin-bottom: 15px; overflow: hidden; background: #eee;}
.col2-mixed-primary .thumb img { width: 100%; height: 100%; object-fit: cover; }
.col2-mixed-primary .title { font-size: 18px; font-weight: 900; line-height: 1.4; margin-bottom: 10px; }
.col2-mixed-primary:hover .title { text-decoration: underline; }
.col2-mixed-primary .desc { font-size: 13px; color: var(--text-muted); }
.col2-mixed-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.col2-mixed-list .list-thumb-right li { margin-bottom: 0; padding-bottom: 15px; gap: 10px;}

/* Youtube Section */
.youtube-section { background: var(--primary-color);  background: linear-gradient(to right, #111, #555); padding: 40px; margin: 0 0 50px 0; border-radius: 12px; color: #fff;}
.youtube-section .section-title { border-color: #333; color: #fff; }
.youtube-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.youtube-main-vid { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 8px; overflow: hidden;}
.youtube-main-vid img { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0.7;}
.youtube-main-vid::after { content: '▶'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.youtube-list { display: flex; flex-direction: column; gap: 15px; }
.youtube-item { display: flex; gap: 15px; align-items: center; }
.youtube-item-thumb { width: 120px; aspect-ratio: 16/9; background: #000; position: relative; border-radius: 4px; overflow: hidden; flex-shrink: 0;}
.youtube-item-thumb::after { content: '▶'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 16px; color: #fff; }
.youtube-item-title { font-size: 14px; font-weight: 500; line-height: 1.4; }

/* STREAMING_CHUNK:Styling sidebar and article view... /
/ === Sidebar (view, list 공통) === */
.aside.view-sidebar {
width: 320px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 20px;
}
.section_09 {
background: var(--bg-white);
border: 1px solid var(--border-color);
padding: 20px;
border-radius: 6px;
}
.section_09 h3 {
font-size: 16px;
font-weight: 700;
border-left: 4px solid var(--primary-color);
padding-left: 10px;
margin-bottom: 15px;
}
.section_09 ul li { margin-bottom: 15px; }
.section_09 ul li:last-child { margin-bottom: 0; }
.section_09 ul a { display: flex; gap: 10px; align-items: flex-start; }
.section_09 .thumb { width: 80px; aspect-ratio: 1; flex-shrink: 0; background: #eee; border-radius: 4px; overflow: hidden; }
.section_09 .info { flex: 1; }
.section_09 .tit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; margin-bottom: 5px; font-weight: 500;}
.section_09 .press { font-size: 11px; color: var(--text-muted); }

/* Banners in Sidebar */
/*
.ad-banner { width: 100%; background-color: #161B2E; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; margin: 2rem 0; padding: 30px 0; border-radius: 8px;}
.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; font-size: 1.125rem; }
.ad-badge {position: absolute;top: 3px;right: 3px;font-weight: bold;margin: auto;display: flex;align-items: center;font-size: 10px;background: rgba(0, 0, 0, 0.1);color: #cecdcd;padding: 2px 6px;border-radius: 3px;}
.ad_vert img { width: 100%; height: auto; border-radius: 6px; }
.banner_ad {position:absolute;top:2px; right:2px; width: auto !important; height: 16px; z-index:1;cursor:pointer}
*/

/* === View Page (Article Detailed) === */
.article-view-header { margin-bottom: 30px; border-bottom: 1px solid var(--primary-color); padding-bottom: 20px; }
.article-view-title { font-size: 32px; font-weight: 900; line-height: 1.4; margin-bottom: 15px; color: #000; letter-spacing: -0.5px;}
.article-view-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.article-view-meta span { margin-right: 15px; }

.article-view-body { font-size: 16px; line-height: 1.8; color: #333; }
.article-view-body img { margin: 20px auto; max-width: 100%; width: 600px; height: auto; border-radius: 4px; }

.article-tools { display: flex; justify-content: center; gap: 10px; margin: 40px 0; padding: 20px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.tool-btn { padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 14px; color: var(--secondary-color); background: #fff; transition: all 0.2s; }
.tool-btn:hover { background: #f1f5f9; }

/* Text Ad Area Bottom of View */
.ad_text_pic_B { background: #f8fafc; border: 1px solid var(--border-color); padding: 20px; border-radius: 6px; margin-bottom: 30px; }
.ad_text_pic_B h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; text-align: center; font-weight: normal; }
.ad_text_pic_B h4 em { font-weight: bold; font-style: normal; color: var(--text-main); }
.ad_text_pic_B ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.ad_text_pic_B li a { display: block; text-align: center; }
.ad_text_pic_B .thumb { width: 100%; aspect-ratio: 1; background: #ddd; margin-bottom: 10px; border-radius: 4px; overflow: hidden;}
.ad_text_pic_B .tit { font-size: 13px; font-weight: normal; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* STREAMING_CHUNK:Styling list and about pages... /
/ === List Page === */
.list-header { text-align: center; margin-bottom: 40px; padding: 40px 0; background: #f8fafc; border-radius: 8px;}
.list-header h2 { font-size: 28px; color: var(--primary-color); }
.issue-mixed { display: flex; flex-direction: column; gap: 20px; }
.issue-list-item { display: flex; gap: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.issue-list-item:last-child { border-bottom: none; }
.issue-list-thumb { width: 200px; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; flex-shrink: 0;}
.issue-list-info { display: flex; flex-direction: column; justify-content: center; }
.issue-list-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.issue-list-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; }
.page-btn { padding: 8px 12px; border: 1px solid var(--border-color); background: var(--bg-white); border-radius: 4px; }
.page-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* === About Page === */
.about-header { text-align: center; margin-bottom: 40px; }
.about-header h2 { font-size: 28px; margin-bottom: 10px; }
.about-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 0; margin-bottom: 30px; }
.about-tabs {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-bottom: 2px solid var(--border-color);
margin-bottom: 30px;
scrollbar-width: none;
}
.about-tabs::-webkit-scrollbar { display: none; }
.about-tab-btn {
flex: 0 0 auto;
padding: 12px 20px;
font-size: 16px;
font-weight: 500;
color: var(--text-muted);
border-bottom: 2px solid transparent;
margin-bottom: -2px;
white-space: nowrap;
}
.about-tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); font-weight: 700; }
.about-content-pane { display: none; background: var(--bg-white); padding: 40px; border: 1px solid var(--border-color); border-radius: 8px;}
.about-content-pane.active { display: block; }
.about-content-pane h3 { font-size: 20px; margin-bottom: 20px; color: var(--primary-color); }
.contact-info-box { background: #f1f5f9; padding: 20px; border-radius: 6px; margin-top: 20px; }
.contact-info-box p { margin-bottom: 10px; }
.contact-info-box strong { display: inline-block; min-width: 100px; }

/* STREAMING_CHUNK:Styling footer and mobile optimizations... /
/ === Footer === */
.site-footer {
background-color: var(--primary-color);
color: #94a3b8;
padding: 24px 0;
font-size: 14px;
margin-top: 30px;
}
.footer-top {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #333;
padding-bottom: 20px;
margin-bottom: 30px;
flex-wrap: wrap;
gap: 20px;
}
.footer-logo { height: 40px; display: flex; align-items: center; }
.footer-logo img { height: 100%; width: auto; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #cbd5e1; font-weight: 500; }
.footer-links a:hover { color: #fff; }

.footer-info { line-height: 1.8; }
.footer-info span { display: inline-block; margin-right: 15px; margin-bottom: 5px; }
.footer-info strong { color: #cbd5e1; }
.copyright { margin-top: 20px; padding-top: 20px; border-top: 1px solid #333; text-align: center; font-size: 12px; }

/* ==================== Mobile Optimization 완벽 제어 ==================== */
@media (max-width: 992px) {
.content-wrapper { flex-direction: column; }
.aside.view-sidebar { width: 100%; }
}

@media (max-width: 768px) {
.container { padding: 0 15px; }
.content-wrapper { padding: 20px 0; gap: 30px; }

/* Header */
.header-top { flex-direction: column; gap: 15px; padding: 15px; }
.site-logo { height: 45px; }
.header-search { width: 100%; max-width: 100%; }
.header-search input { width: 100%; flex: 1; }

/* Main Section Fonts & Layout */
.main-latest-grid { grid-template-columns: 1fr; }
.col3-section { grid-template-columns: 1fr; }
.col2-section { grid-template-columns: 1fr; }

.main-latest-section .section-title { font-size: 20px; margin-bottom: 15px;}
.main-primary-article .title { font-size: 20px; }
.col2-block .block-title { font-size: 18px; margin-bottom: 15px;}
.col3-column .col-title { font-size: 16px; }

.youtube-grid { grid-template-columns: 1fr; }
.youtube-section { padding: 20px 15px; margin: 0 -15px 40px -15px; border-radius: 0;}

/* List & Article View */
.issue-list-item { flex-direction: column; }
.issue-list-thumb { width: 100%; aspect-ratio: 16/9; }
.article-view-title { font-size: 24px; }
.article-view-header { margin-bottom: 20px; padding-bottom: 15px; }
.article-view-meta { flex-direction: column; gap: 10px; font-size: 13px; }

/* About Page */
.about-header { margin-bottom: 20px; }
.about-header h2 { font-size: 21px; }
.about-header p { font-size: 13px;}
.about-content-pane { padding: 20px; }

/* Footer */
.site-footer { padding: 40px 0 30px; margin-top: 40px; }
.footer-top { flex-direction: column; align-items: flex-start; gap: 15px; }
.footer-links { gap: 10px; font-size: 13px; }
.footer-info { font-size: 12px; }
/* 모바일에서는 각 항목이 한 줄씩 명확히 보이도록 처리 */
.footer-info span { display: block; margin-right: 0; margin-bottom: 5px; }
.footer-info br { display: none; }


}

@media (max-width: 480px) {
/* 매우 작은 모바일 기기 미세조정 */
.main-list-item .thumb { width: 90px; }
.main-list-item .title { font-size: 14px; }
.list-thumb-right .thumb { width: 90px; }
.list-thumb-right .title { font-size: 14px; }

.youtube-item { flex-direction: column; align-items: flex-start;}
.youtube-item-thumb { width: 100%; aspect-ratio: 16/9; }

.ad_text_pic_B ul { grid-template-columns: repeat(2, 1fr); }
    
    
    .gnb-list li a { font-size: 15px; padding: 10px}
    
    .article-view-header, .main-content 
    
    { padding-left: 15px; padding-right: 15px; }

}



/* 기본 광고 배너 */
.ad-banner { width: fit-content; background-color: #fff; /*border: 1px solid #1e293b;*/  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; margin: 2rem auto; padding:0; border-radius: 0;  }
@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: 3px;right: 3px;font-weight: bold;margin: auto;display: flex;align-items: center;font-size: 10px;background: rgba(0, 0, 0, 0.1);color: #cecdcd;padding: 2px 6px;border-radius: 3px;}

/* 우측 광고배너 */
.banner_ad{position:absolute;top:2px; right:2px; width: auto !important; height: 16px; z-index:1;cursor:pointer}
[class*=ad_text] h4 em{color: #818181 !important;font-style: normal !important;}

