/* =========================================
   Reset & Base Styles
========================================= */
:root {
    --primary-color: #184f7b;
    --secondary-color: #2b6cb0;
    --accent-color: #e53e3e;
    --text-main: #222222;
    --text-light: #666666;
    --bg-color: #ffffff;
    --border-color: #e2e8f0;
    --border-dark: #103a67;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {max-width: 1200px;margin: 0 auto;padding: 0;}

/* =========================================
   Header & Navigation
========================================= */
.site-header {
    background-color: #fff;
    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;
}
.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo img { height: 48px;}
.logo span { color: var(--accent-color); }

.main-nav {
    /* border-top: 1px solid var(--border-color); */
}
.nav-list {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-item a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    transition: color 0.2s;
}
.nav-item a:hover { color: var(--secondary-color); }

/* =========================================
   Layout
========================================= */
.content-wrapper {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}
.main-content {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* =========================================
   Main View - Top Section (Slider & List)
========================================= */
.top-section {
    margin-bottom: 40px;
}
.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 4px solid var(--border-dark);
    color: var(--text-main);
}

.top-news-container {
    display: flex;
    gap: 30px;
}

/* Slider */
.main-slider-wrap {
    flex: 1.3;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}
.slide {
    min-width: 100%;
    cursor: pointer;
}
.slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.slide-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.5px;
}
.slide-content h2:hover { color: var(--secondary-color); text-decoration: underline; }
.slide-content p {
    color: var(--text-light);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 35%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}
.slider-btn {
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 0.2s;
}
.slider-btn:hover { background: rgba(0,0,0,0.8); }
.slider-dots {
    display: flex;
    gap: 6px;
    margin-top: 15px;
    justify-content: center;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
}
.dot.active { background: var(--primary-color); }

/* Right List */
.top-news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.top-news-item {
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
}
.top-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.top-news-item h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}
.top-news-item h3:hover { color: var(--secondary-color); text-decoration: underline; }
.item-meta { font-size: 12px; color: #a0aec0; }

/* =========================================
   Main View - Category Grid Section
========================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.cat-block {
    display: flex;
    flex-direction: column;
}
.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}
.cat-header h3 { font-size: 17px; font-weight: 800; }
.cat-header i { color: #a0aec0; font-size: 14px; font-style: normal; }
.cat-header:hover h3 { color: var(--secondary-color); }

.cat-main-article {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}
.cat-main-article img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.cat-main-text h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-main-article:hover h4 { color: var(--secondary-color); text-decoration: underline; }

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cat-list li {
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-list li::before {
    content: '·';
    font-weight: bold;
    margin-right: 5px;
}
.cat-list li:hover { color: var(--secondary-color); text-decoration: underline; }

/* =========================================
   List & Detail Pages
========================================= */
.list-header { border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; }
.list-header h2 { font-size: 22px; font-weight: 800; color: var(--primary-color); }
.list-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background 0.2s; }
.list-item:hover { background: #f8fafc; }
.list-item:hover h3 { color: var(--secondary-color); text-decoration: underline; }
.list-img { width: 220px; height: 130px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.list-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.list-excerpt { font-size: 14px; color: var(--text-light); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 12px; color: #a0aec0; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.page-btn { padding: 8px 12px; border: 1px solid var(--border-color); background: #fff; border-radius: 4px; cursor: pointer; font-weight: 600; color: var(--text-light); }
.page-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.article-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.article-category { display: inline-block; padding: 4px 12px; background: var(--primary-color); color: #fff; font-size: 13px; font-weight: 700; border-radius: 20px; margin-bottom: 15px; }
.article-title { font-size: 32px; font-weight: 800; line-height: 1.35; margin-bottom: 20px; letter-spacing: -0.5px; }
.article-meta { color: var(--text-light); font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.article-actions { display: flex; gap: 10px; }
.article-actions button { padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--text-light); background: #fff; }
.article-body { font-size: 17px; line-height: 1.8; color: #1a202c; }
.article-body img { width: 100%; border-radius: 8px; margin: 25px 0; }
.article-body p { margin-bottom: 20px; }
.btn-back { display: block; width: 100%; margin: 20px auto 40px; padding: 15px 20px; background: #edf2f7; color: var(--text-main); font-weight: 700; border-radius: 6px; text-align: center; cursor: pointer; transition: background 0.2s; font-size: 16px; }

/* =========================================
   Sidebar
========================================= */
.widget {
    border-top: 2px solid var(--border-dark);
    padding-top: 15px;
    margin-bottom: 30px;
}
.widget h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}
.trending-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    gap: 10px;
}
.trending-num { color: var(--accent-color); font-weight: 900; font-size: 16px; font-style: italic; }
.trending-list a { font-size: 14px; font-weight: 600; }
.trending-list a:hover { color: var(--secondary-color); text-decoration: underline; }

/* =========================================
   Footer
========================================= */
.site-footer {
    background-color: #2d3748;
    color: #a0aec0;
    padding: 50px 0;
    margin-top: 40px;
    font-size: 13px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #4a5568; }
.footer-nav a { color: #e2e8f0; font-weight: 600; font-size: 14px; cursor: pointer; }
.footer-nav a:hover { color: var(--secondary-color); text-decoration: underline; }
.company-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; line-height: 1.8; }
.company-info strong { color: #cbd5e0; font-weight: 600; margin-right: 5px; }

/* =========================================
   Info Page Styles
========================================= */
.info-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; }
.info-tab-btn { padding: 10px 20px; font-size: 16px; font-weight: 700; color: var(--text-light); border: 1px solid var(--border-color); border-radius: 30px; background: #fff; transition: all 0.2s; }
.info-tab-btn:hover, .info-tab-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.info-pane { display: none; line-height: 1.8; font-size: 16px; }
.info-pane.active { display: block; animation: fadeIn 0.3s ease; }
.info-pane h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; color: var(--primary-color); border-bottom: 2px solid var(--border-dark); padding-bottom: 10px; }
.info-pane p { margin-bottom: 15px; }
.info-pane ol { list-style: none; padding-left: 0; }
.info-pane li { margin-bottom: 10px; }
.highlight-box { background: #f8fafc; border-left: 4px solid var(--primary-color); padding: 20px; margin: 20px 0; font-weight: 700; font-size: 18px; color: var(--primary-color); }
.copyright { margin-top: 30px; padding-top: 20px; border-top: 1px solid #4a5568; text-align: center; color: #718096; font-size: 12px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   Responsive
========================================= */
@media (max-width: 900px) {
    .container { padding: 0 20px; }
.header-top { padding: 10px 20px; }
    .content-wrapper{ padding: 10px 20px; }
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .top-news-container { flex-direction: column; }
    .category-grid { grid-template-columns: 1fr; }
    .article-title {     font-size: 24px;}
    .article-meta{     font-size: 11px;}
    .article-actions { gap:5px}
}


    /* 기본 광고 배너 */
    .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: 2rem 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:var(--primary-color)!important; font-style: normal; }
.ad_text_D li a:before { border-color:var(--primary-color)!important; }



[class*=section_] h3 {
    position: relative;
    padding-bottom: 0;
    line-height: 1.3
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 4px solid #003366;
    padding-left: 10px;
    color: #111;
}


[class*=ad_text] h4{
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-left: 4px solid #ec662a;
    padding-left: 10px;
    color: #111; 
}
