/* ==========================================================================
    1. Common CSS (전체스타일)
    ========================================================================== */
:root {
    --primary-color: #1a365d; /* 네이비 계열의 신뢰감 있는 색상 */
    --primary-hover: #2b6cb0;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --max-width: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text-main); background-color: #ffffff; line-height: 1.5; }
a {text-decoration: none;color: inherit;}
a:hover { text-decoration: underline; }
ul, ol, li { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
em { font-style: normal; color: var(--primary-color); font-weight: bold; }

/* Layout */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; gap: 40px; padding: 40px 0; }
.main-content { flex: 1; min-width: 0; background-color: #fff; }
.aside.view-sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 30px; }

/* 반응형 */
@media (max-width: 992px) {
    .content-wrapper { flex-direction: column; }
    .aside.view-sidebar { width: 100%; }
}

/* Header */
/*.site-header { border-bottom: 1px solid var(--border-color); }*/
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.site-logo { font-size: 32px; font-weight: 900; color: var(--primary-color); letter-spacing: -1px; }
.site-logo a:hover { text-decoration: none; }
.site-logo span { color: #e53e3e; }
.site-logo img { height: 48px; }
.header-search { display: flex; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; }
.header-search input { padding: 8px 12px; border: none; outline: none; width: 200px; font-size: 14px; }
.header-search button { padding: 8px 15px; background: var(--bg-light); border-left: 1px solid var(--border-color); }

.gnb {/* background-color: var(--primary-color); */color: #fff;}
.gnb-list {display: flex;justify-content: center;max-width: var(--max-width);margin: 0 auto;overflow-x: auto;white-space: nowrap;border: var(--primary-color) solid 3px;border-radius: 20px;}
.gnb-list::-webkit-scrollbar { display: none; }
.gnb-item a {display: block;padding: 15px 20px;font-weight: 500;font-size: 16px;transition: background 0.2s;color: var(--primary-color);}
.gnb-item a:hover, .gnb-item.active a { background-color: var(--primary-hover); text-decoration: none; color:#fff; }

/* Footer */
.site-footer { background-color: #1a202c; color: #a0aec0; padding: 40px 0; font-size: 14px; margin-top: 60px; }
.footer-nav { display: flex; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid #2d3748; padding-bottom: 20px; flex-wrap: wrap; }
.footer-nav a { color: #cbd5e0; font-weight: 500; }
.footer-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin-bottom: 20px; }
.footer-info p { margin-bottom: 5px; }
.footer-copyright { border-top: 1px solid #2d3748; padding-top: 20px; text-align: center; font-size: 12px; }

@media (max-width: 768px) {
    .site-header { margin:0 20px}
    
    .gnb-item a {padding: 5px 10px;font-size: 14px; }


    .site-logo img { height: 32px;}
    .article-view-header { margin: 0 20px; letter-spacing: -0.09rem; }
    .article-view-body { margin: 0 20px; letter-spacing: -0.09rem; }
}
/* ==========================================================================
    2. Main Page CSS
    ========================================================================== */
.main-hero-section { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.hero-main-card { position: relative; border-radius: 8px; overflow: hidden; }
.hero-main-card img { width: 100%; height: 400px; object-fit: cover; }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.hero-category { background: var(--primary-color); padding: 4px 8px; font-size: 12px; font-weight: bold; border-radius: 4px; margin-bottom: 10px; display: inline-block; }
.hero-title { font-size: 28px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }

.hero-sub-cards { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; }
.hero-sub-card { display: flex; gap: 15px; align-items: center; }
.hero-sub-card img { width: 120px; height: 100%; min-height: 120px; object-fit: cover; border-radius: 8px; }
.hero-sub-title { font-size: 16px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 768px) {
    .main-hero-section { grid-template-columns: 1fr; }
    .hero-main-card img { height: 300px; }
}

.section-header { font-size: 24px; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--text-main); }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.cat-card-img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.cat-card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.cat-card-desc { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 992px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .category-grid { grid-template-columns: 1fr; } }

/* Section News */
.section-news-wrapper { margin-bottom: 50px; }
.section-news-main-title { font-size: 24px; font-weight: 900; margin-bottom: 15px; color: #111; }
.section-news-grid-wrap { border-top: 2px solid #e53e3e; padding-top: 25px; }
.section-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.section-news-block { display: flex; flex-direction: column; }
.section-news-cate { font-size: 18px; font-weight: 800; margin-bottom: 15px; }
.section-news-top { display: flex; gap: 12px; margin-bottom: 15px; align-items: flex-start; }
.section-news-top img { width: 90px; height: 65px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.section-news-top .tit { font-size: 14px; font-weight: 700; line-height: 1.4; color: #222; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section-news-list { padding: 0; margin: 0; border-top: 1px solid var(--border-color); padding-top: 15px; }
.section-news-list li { margin-bottom: 8px; font-size: 13px; color: #4a5568; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; position: relative; }
.section-news-list li::before { content: '·'; position: absolute; left: 0; top: 0; font-weight: bold; color: #718096; }
.section-news-list li a:hover { color: var(--primary-color); }

@media (max-width: 992px) { .section-news-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; } }
@media (max-width: 576px) { .section-news-grid { grid-template-columns: 1fr; } }

/* Network News (Full Bleed Dark Background) */
.network-news-fullbleed { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); background: linear-gradient(to bottom, #1a1e24, #0d0f12); padding: 40px 0 50px 0; margin-bottom: 50px; }
.network-news-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.network-news-title { color: #fff; font-size: 24px; font-weight: 900; margin-bottom: 25px; }
.network-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.network-news-item img { width: 100%; height: 160px; object-fit: cover; margin-bottom: 12px; border-radius: 4px; }
.network-news-item p { color: #e2e8f0; font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; transition: color 0.2s; }
.network-news-item:hover p { color: #fff; text-decoration: underline; }

@media (max-width: 992px) { .network-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .network-news-grid { grid-template-columns: 1fr; } }

/* Youtube Section */
.youtube-section { background-color: var(--bg-light); padding: 40px; border-radius: 12px; margin-bottom: 50px; text-align: center; }
.youtube-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.youtube-item { position: relative; border-radius: 8px; overflow: hidden; }
.youtube-item img { width: 100%; height: 250px; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(255,0,0,0.8); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 24px; padding-left: 5px; }
@media (max-width: 768px) { .youtube-grid { grid-template-columns: 1fr; } .youtube-section { padding: 20px; } }

/* Issue Section (List + Card) */
.issue-section { margin-bottom: 50px; }
.issue-container { display: flex; gap: 30px; }
.issue-main { flex: 1; }
.issue-main img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.issue-main h3 { font-size: 22px; margin-bottom: 10px; }
.issue-list { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.issue-item { display: flex; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.issue-item:last-child { border: none; }
.issue-item img { width: 100px; height: 75px; object-fit: cover; border-radius: 4px; }
.issue-item-text h4 { font-size: 16px; margin-bottom: 5px; }
@media (max-width: 768px) { .issue-container { flex-direction: column; } }

/* ==========================================================================
    3. List Page CSS
    ========================================================================== */
.list-article { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border-color); }
.list-article-img { width: 240px; height: 160px; flex-shrink: 0; overflow: hidden; border-radius: 8px; }
.list-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.list-article:hover .list-article-img img { transform: scale(1.05); }
.list-article-content { display: flex; flex-direction: column; justify-content: center; }
.list-article-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.list-article-desc { color: var(--text-muted); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-article-meta { font-size: 13px; color: #a0aec0; }
@media (max-width: 768px) {
    .list-article { flex-direction: column; }
    .list-article-img { width: 100%; height: 200px; }
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; }
.page-btn { display: inline-block; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 4px; background: #fff; font-size: 14px; }
.page-btn:hover { background: var(--bg-light); text-decoration: none; }
.page-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* ==========================================================================
    4. View Page & Sidebar CSS
    ========================================================================== */
.article-view-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.article-view-title { font-size: 32px; font-weight: 900; line-height: 1.4; margin-bottom: 15px; letter-spacing: -1px; }
.article-view-meta { display: flex; gap: 15px; color: var(--text-muted); font-size: 14px; }

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

.article-tools { display: flex; justify-content: flex-end; gap: 10px; margin: 30px 0; padding-top: 20px; border-top: 1px solid var(--border-color); }
.tool-btn { padding: 8px 15px; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 4px; font-size: 14px; color: var(--text-main); }
.tool-btn:hover { background: #e2e8f0; }

.ad_text_pic_B { border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; margin-top: 40px; background: #fafafa; }
.ad_text_pic_B h4 { font-size: 16px; margin-bottom: 15px; color: #4a5568; }
.ad_text_pic_B ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.ad_text_pic_B li a { display: flex; gap: 10px; align-items: center; }
.ad_text_pic_B .thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.ad_text_pic_B .tit { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


.ad_vert { margin-bottom: 20px; }
.ad_vert img { width: 100%; border-radius: 8px; }

@media (max-width: 576px) { 
    
    .ad_text_pic_B ul { grid-template-columns: 1fr; }

.ad_vert { padding:0 20px ; }
.ad_vert img { width: 100%; border-radius: 8px; }


    .article-view-title { font-size: 24px;}



}


/*
.section_09 { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; }
.section_09 h3 { font-size: 18px; font-weight: 700; margin-bottom: 15px; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; display: inline-block; }
.section_09 ul li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); }
.section_09 ul li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.section_09 ul li a { display: flex; gap: 12px; }
.section_09 .thumb img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.section_09 .info { display: flex; flex-direction: column; justify-content: space-between; }
.section_09 .tit { font-size: 15px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section_09 .press { font-size: 12px; color: var(--text-muted); }
*/

/*
.ad-banner { width: 100%; background-color: #161B2E; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; margin: 2rem 0; height: 90px; 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.3); color: #cecdcd; padding: 2px 6px; border-radius: 3px; z-index: 20; }
*/


    /* 타이틀 디자인을 위한 추가 CSS */
    .content-wrapper h3 {
        font-size: 1.4rem;
        color: #2c3e50;
        border-bottom: 2px solid #2980b9;
        padding-bottom: 8px;
        margin-bottom: 15px;
        font-weight: 700;
        letter-spacing: -0.5px;
    }
    
    .content-wrapper h4 {
        font-size: 1.15rem;
        color: #333;
        border-left: 4px solid #e74c3c;
        padding-left: 10px;
        margin-bottom: 12px;
        font-weight: 600;
        letter-spacing: -0.3px;
        line-height: 1.2;
    }

    .content-wrapper h4 em {
        color: #e74c3c;
        font-style: normal;
        font-weight: 700;
    }

    .content-wrapper h4 a {
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items: center;
    }


/* ==========================================================================
    5. About Page CSS
    ========================================================================== */
.about-header { text-align: center; margin-bottom: 40px; }
.about-header img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.about-title { font-size: 32px; font-weight: 800; color: var(--primary-color); }

.tabs { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 30px; overflow-x: auto; white-space: nowrap; }
.tab-btn { padding: 15px 25px; font-size: 16px; font-weight: 700; color: var(--text-muted); background: transparent; border: none; outline: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-btn:hover { color: var(--primary-hover); }

.tab-content { display: none; background: #fff; padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); line-height: 1.8; }
.tab-content.active { display: block; }
.tab-content h3 { font-size: 24px; margin-bottom: 20px; color: var(--text-main); border-bottom: 1px solid var(--bg-light); padding-bottom: 10px; }
.tab-content p { margin-bottom: 15px; }
.tab-content ul { padding-left: 20px; margin-bottom: 15px; }
.tab-content li { list-style-type: disc; margin-bottom: 8px; }

.contact-box { background: var(--bg-light); padding: 20px; border-radius: 8px; margin-top: 20px; border-left: 4px solid var(--primary-color); }
.contact-box p { margin-bottom: 5px; font-weight: 500; }









/* 기본 광고 배너 */
.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}


