:root {
    --primary-color: #1a365d;
    --primary-hover: #2b6cb0;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --border-color: #e2e8f0;
    --container-width: 1140px;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { text-decoration: underline; color: var(--primary-hover); }
ul, ol, li { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Layout === */
.site-container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; gap: 30px; padding: 30px 0; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; background-color: #fff; }

/* === Header === */
.site-header { border-bottom: 2px solid var(--primary-color); background: #fff; position: sticky; top: 0; z-index: 100; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.site-logo { font-size: 32px; font-weight: 900; color: var(--primary-color); letter-spacing: -1px; text-decoration: none !important; }
.site-logo span { color: #e53e3e; }
.header-search { display: flex; border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; }
.search-input { padding: 8px 15px; border: none; outline: none; font-size: 14px; width: 200px; }
.search-btn { padding: 8px 15px; background: var(--bg-light); border-left: 1px solid var(--border-color); }

.main-nav { background: var(--primary-color); color: #fff; }
.nav-list { display: flex; justify-content: center; flex-wrap: wrap; }
.nav-item { padding: 12px 20px; font-weight: 600; font-size: 15px; }
.nav-item:hover { background: var(--primary-hover); text-decoration: none; }

/* === Utilities === */
.section-title {font-size: 20px;font-weight: 600;margin-bottom: 25px;padding-bottom: 10px;border-bottom: 2px solid #333;display: flex;justify-content: space-between;align-items: center;}
.section-title .more-link { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* === New Header Styles === */
.top-breaking-bar { background: #111; color: #fff; font-size: 13px; padding: 8px 0; }
.top-breaking-inner { display: flex; justify-content: space-between; align-items: center; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.breaking-left { display: flex; align-items: center; gap: 15px; }
.breaking-badge { background: #e53e3e; color: #fff; padding: 2px 8px; font-weight: bold; font-size: 12px; }
.breaking-text { color: #ccc; cursor: pointer; }
.breaking-text:hover { color: #fff; text-decoration: underline; }
.breaking-right .member-btn { background: #3b82f6; color: #fff; padding: 4px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px;}

.header-logo-area { text-align: center; padding: 30px 0; border-bottom: 1px solid var(--border-color); }
.site-logo.v2 { display: inline-block; text-decoration: none; }
.site-logo.v2 img { height: 50px; width: auto; display: block; margin: 0 auto; }

.main-nav.v2 { background: #fff; border-bottom: 2px solid var(--primary-color); position: sticky; top: 0; z-index: 100; color: #333;}
.nav-inner-v2 { display: flex; justify-content: space-between; align-items: center; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

.btn-menu { width: 24px; height: 18px; position: relative; background: transparent; border: none; cursor: pointer; padding: 0; margin: 15px 5px; flex-shrink: 0;}
.btn-menu span { display: block; position: absolute; height: 2px; width: 100%; background: #333; border-radius: 2px; left: 0; transition: .25s ease-in-out; }
.btn-menu span:nth-child(1) { top: 0px; }
.btn-menu span:nth-child(2) { top: 8px; }
.btn-menu span:nth-child(3) { top: 16px; }

.nav-search-btn { font-size: 24px; color: #333; background: none; border: none; cursor: pointer; padding: 15px 5px;}
.nav-list.v2 { display: flex; justify-content: center; flex: 1; }
.nav-list.v2 .nav-item { padding: 15px 18px; font-weight: 600; font-size: 16px; color: #333; }
.nav-list.v2 .nav-item:hover { color: #fff; }
.nav-list.v2 .nav-item.highlight { color: #111; font-weight: 900; position: relative; }
.nav-list.v2 .nav-item.highlight::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 14px; width: 1px; background: #ddd; }

/* === Popup Layers (Menu & Search) === */
.mobile-menu-layer { position: fixed; top: 0; left: -100%; width: 300px; max-width: 80%; height: 100vh; background: #fff; z-index: 1000; transition: left 0.3s ease; box-shadow: 2px 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.mobile-menu-layer.active { left: 0; }
.mobile-menu-dim { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999; display: none; }
.mobile-menu-dim.active { display: block; }
.mobile-menu-header { display: flex; justify-content: space-between; padding: 20px; border-bottom: 1px solid #eee; align-items: center;}
.mobile-menu-close { font-size: 28px; cursor: pointer; background: none; border: none; color: #333; line-height: 1; }
.mobile-nav-list { display: flex; flex-direction: column; padding: 20px; overflow-y: auto;}
.mobile-nav-list a { padding: 15px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid #f5f5f5; color: #333; }

.search-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(255,255,255,0.98); z-index: 1001; display: none; justify-content: center; align-items: center; flex-direction: column; }
.search-layer.active { display: flex; }
.search-layer-close { position: absolute; top: 30px; right: 30px; font-size: 40px; cursor: pointer; background: none; border: none; color: #333; line-height: 1;}
.search-input-wrap { display: flex; border-bottom: 3px solid var(--primary-color); width: 80%; max-width: 600px; padding-bottom: 10px; }
.search-input-wrap input { flex: 1; font-size: 24px; border: none; outline: none; background: transparent; padding: 10px; }
.search-input-wrap button { font-size: 24px; background: none; border: none; cursor: pointer; color: var(--primary-color); padding: 0 10px;}

/* === Topic Slider === */
.topic-slider { background: #f8f9fa; border-bottom: 1px solid var(--border-color); padding: 15px 0; }
.topic-inner { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.topic-list { display: flex; gap: 40px; flex: 1; justify-content: center;}
.topic-item { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.topic-icon { width: 40px; height: 40px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.topic-icon img { width: 100%; height: 100%; object-fit: cover; }
.topic-info .t-title { font-size: 15px; font-weight: 600; color: #111; }
.topic-info .t-desc { font-size: 12px; color: #666; margin-top: 2px;}
.topic-arrow { width: 30px; height: 30px; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; cursor: pointer; color: #666;}

/* === New Main Hero Section === */
.hero-section {display: flex;gap: 30px;margin-bottom: 40px;border-bottom: 1px solid #000;padding-bottom: 30px;}
.hero-main {flex: 1;min-width: 0;}
.hero-side { width: 320px; flex-shrink: 0; }

.hero-primary { display: flex; gap: 30px; align-items: stretch; margin-bottom: 30px; cursor: pointer; group; }
.hero-primary-txt { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-primary-txt .cat { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.hero-primary-txt h2 { font-size: 32px; font-weight: 600; line-height: 1.35; letter-spacing: -1px; margin-bottom: 15px; word-break: keep-all; }
.hero-primary-txt h2:hover { text-decoration: underline; }
.hero-primary-txt p { font-size: 15px; color: #555; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-primary-img { width: 55%; flex-shrink: 0; overflow: hidden; }
.hero-primary-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;}
.hero-primary:hover .hero-primary-img img { transform: scale(1.03); }

.hero-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.hero-sub-card { border-top: 1px solid var(--border-color); padding-top: 15px; cursor: pointer; }
.hero-sub-card .cat { font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 8px; }
.hero-sub-card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; word-break: keep-all; letter-spacing: -0.5px;}
.hero-sub-card p { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-sub-card h3:hover { text-decoration: underline; }

.hero-banner { width: 100%; height: 100px; background: #3c3833; color: #d4a373; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; letter-spacing: -1px; cursor: pointer;}

.hero-side-card {margin-bottom: 30px;cursor: pointer;display: block;}
.hero-side-card .thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; margin-bottom: 15px; }
.hero-side-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hero-side-card:hover .thumb img { transform: scale(1.05); }
.hero-side-card .cat { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.hero-side-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; word-break: keep-all; }
.hero-side-card p { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hero-opinion { border: 1px solid var(--border-color); padding: 20px; }
.hero-opinion .sec-title { font-size: 16px; font-weight: 600; margin-bottom: 15px; display: flex; justify-content: space-between; border-bottom: 1px solid #111; padding-bottom: 10px; }
.hero-opinion .sec-title a { font-size: 12px; color: #888; font-weight: 400; }
.hero-opinion-list li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); }
.hero-opinion-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.hero-opinion-list h4 { font-size: 15px; font-weight: 600; line-height: 1.4; word-break: keep-all; }
.hero-opinion-list h4:hover { text-decoration: underline; color: #2563eb; cursor: pointer; }

/* === Main Page Components === */
.top-news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.news-card { position: relative; display: flex; flex-direction: column; overflow: hidden; group; cursor: pointer; }
.news-card-thumb { overflow: hidden; background: #eee; border-radius: 4px; }
.news-card-thumb img { width: 100%; aspect-ratio: 16/9; transition: transform 0.3s; }
.news-card:hover .news-card-thumb img { transform: scale(1.05); }
.news-card-info { padding: 15px 0; }
.news-card-title { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; word-break: keep-all;}
.news-card-excerpt { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px;}
.news-card-meta { font-size: 12px; color: var(--text-light); }

.top-news-main .news-card-title { font-size: 24px; }
.top-news-side { display: flex; flex-direction: column; gap: 15px; }
.top-news-side .news-card { flex-direction: row; gap: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.top-news-side .news-card:last-child { border-bottom: none; padding-bottom: 0; }
.top-news-side .news-card-thumb { width: 120px; flex-shrink: 0; }
.top-news-side .news-card-info { padding: 0; }
.top-news-side .news-card-title { font-size: 15px; }
.top-news-side .news-card-excerpt { display: none; }

.category-grid {display: grid;grid-template-columns: repeat(2, 1fr);gap: 30px;/* margin-bottom: 40px; */}
.cat-list-item {display: flex;gap: 15px;/* margin-bottom: 15px; */padding-bottom: 25px;border-bottom: 1px dashed var(--border-color);}
.cat-list-item:last-child {/* border-bottom: none; */margin-bottom: 0;padding-bottom: 0;}
.cat-list-thumb { width: 100px; height: 70px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.cat-list-thumb img { width: 100%; height: 100%; }
.cat-list-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 5px;}

.video-section { background: #111; padding: 40px 0; margin: 40px 0; color: #fff; }
.video-section .section-title { border-bottom-color: #444; color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card-title { color: #fff; font-size: 15px; margin-top: 10px; font-weight: 500; }

/* === View Page Components === */
.article-view-header { border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 30px; }
.article-view-title { font-size: 32px; font-weight: 600; line-height: 1.3; margin-bottom: 15px; word-break: keep-all; letter-spacing: -0.5px;}
.article-view-meta { display: flex; gap: 15px; font-size: 14px; color: var(--text-muted); }

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

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

/* === List Page Components === */
.list-wrap { display: flex; flex-direction: column; gap: 20px; }
.list-item { display: flex; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.list-item-thumb { width: 240px; flex-shrink: 0; border-radius: 4px; overflow: hidden;}
.list-item-thumb img { aspect-ratio: 16/10; }
.list-item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-item-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.list-item-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* === Sidebar & Ads === */
.aside.view-sidebar { width: 320px; flex-shrink: 0; }
.ad_vert { margin-bottom: 2rem;}

/* === About Page === */
.about-header { text-align: center; padding: 40px 0; background: var(--bg-light); margin-bottom: 30px; border-radius: 8px; }
.about-header h2 { font-size: 28px; color: var(--primary-color); margin-bottom: 10px; }
.about-header p { font-size: 16px; color: var(--text-muted); }

.about-tabs { display: flex; border-bottom: 2px solid var(--primary-color); overflow-x: auto;}
.tab-btn { padding: 15px 25px; font-size: 16px; font-weight: 600; color: var(--text-muted); border: none; background: none; white-space: nowrap; }
.tab-btn.active { color: #fff; background: var(--primary-color); border-radius: 8px 8px 0 0; }

.tab-pane { display: none; padding: 20px; background: #fff; border: 1px solid var(--border-color); border-radius: 0 0 8px 8px; border-top: none; min-height: 400px;}
.tab-pane.active { display: block; }
.tab-content-inner { max-width: 600px; margin: 0 auto; line-height: 1.8; font-size: 16px; color: #444; }
.tab-content-inner h3 { font-size: 22px; color: var(--primary-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.company-img { width: 100%; max-width: 600px; margin: 0 auto 30px auto; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.info-box { background: var(--bg-light); padding: 20px; border-radius: 8px; margin-top: 20px; }
.info-box p { margin-bottom: 10px; }
.info-box strong { display: inline-block; width: -webkit-fill-available; color: #333; }

/* === Footer === */
.site-footer { background: #1a1a1a; color: #a0a0a0; padding: 50px 0 30px; font-size: 13px; margin-top: 60px; }
.footer-top { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; flex-wrap: wrap; }
.footer-top a { color: #ddd; font-weight: 500; }
.footer-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; line-height: 2; margin-bottom: 20px;}
.footer-info-grid span { display: block; }
.footer-info-grid strong { color: #ccc; font-weight: normal; margin-right: 5px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 35px; width: auto; opacity: 0.8; }
.copyright { margin-top: 20px; border-top: 1px solid #333; padding-top: 20px; text-align: center; }

/* Responsive Design */
@media (min-width: 769px) {
    .btn-menu { display: none; }
}
@media (max-width: 1024px) {
    .content-wrapper { flex-direction: column; }
    .aside.view-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .aside.view-sidebar > div { flex: 1; min-width: 300px; }
    .top-news-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .list-item { flex-direction: column; }
    .list-item-thumb { width: 100%; }
}
@media (max-width: 768px) {
    .main-content { padding: 0 20px; flex: 1;
    min-width: 0;
    width: 100%;}
    .category-grid { grid-template-columns: 1fr; }
    .nav-list.v2 { display: none; }
    .header-search { display: none; }
    .article-view-title { font-size: 24px; }
    .hero-primary { flex-direction: column; }
    .hero-primary-img { width: 100%; }
    .hero-sub-grid { grid-template-columns: 1fr; }
    
    .topic-list { gap:20px; }
    .topic-item {  flex-direction: column; }
    .topic-arrow, .breaking-right { display: none; }
    .topic-info { text-align: center}
    
    .hero-section { display: flex; flex-direction: column; align-items: center;}
    
    
    .article-view-body { font-size: 16px; letter-spacing: -0.06rem; }
    
    .tab-btn { padding: 10px 15px; font-size: 14px; }
    
    .ad_text_B ul { padding: 0}
}


    /* H3 스타일: 사이드바 메인 타이틀 */
    .view-sidebar h3 {
        font-size: 20px;
        color: #2c3e50;
        border-bottom: 2px solid #2980b9;
        padding-bottom: 8px;
        margin-bottom: 15px;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    /* H4 스타일: 각 섹션 서브 타이틀 */
    .main-content h4, .view-sidebar h4 {
        font-size: 16px;
        color: #333;
        background-color: #f8f9fa;
        padding: 10px 12px;
        border-left: 4px solid #e74c3c;
        margin-bottom: 12px;
        font-weight: 600;
        border-radius: 0 4px 4px 0;
        letter-spacing: -0.5px;
    }
    
    /* H4 내부 강조(em) 텍스트 스타일 */
    .main-content h4 em, .view-sidebar h4 em {
        color: #e74c3c;
        font-style: normal;
        font-weight: bold;
    }

    /* H4 내부 링크 스타일 */
    .view-sidebar h4 a {
        text-decoration: none;
        color: inherit;
        display: block;
    }
    .view-sidebar h4 a:hover {
        color: #e74c3c;
    }


/* 기본 광고 배너 */
.ad-banner {width: 100%;display: flex;align-items: center;justify-content: center;position: relative;overflow: hidden;cursor: pointer;margin: 1rem 0;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}
