 /* ==========================================================================
           초기화 및 변수
           ========================================================================== */
        :root {
            --primary-color: #1e3a8a;
            --secondary-color: #2563eb;
            --text-main: #111827;
            --text-muted: #6b7280;
            --border-color: #e5e7eb;
            --bg-light: #f9fafb;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; color: var(--text-main); line-height: 1.6; background-color: #ffffff; }
        a { text-decoration: none; color: inherit; }
        ul, ol, li { list-style: none; }
        img {max-width: 100%;height: auto;display: block;}
        button { cursor: pointer; border: none; background: none; font-family: inherit; }
        .blind { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

        /* ==========================================================================
           공통 레이아웃
           ========================================================================== */
        .container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
        .mt-6 { margin-top: 24px; }
        .mt-12 { margin-top: 48px; }
        .mb-16 { margin-bottom: 64px; }
        .py-10 { padding-top: 40px; padding-bottom: 40px; }
        .bg-gray-50 { background-color: var(--bg-light); }
        .section-title { font-size: 22px; font-weight: bold; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); display: inline-block; color: var(--text-main); }
        
        /* ==========================================================================
           헤더 (로고 - 메뉴 - 검색)
           ========================================================================== */
        .site-header { border-bottom: 1px solid var(--border-color); background-color: #ffffff; position: sticky; top: 0; z-index: 100; }
        .header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
        .site-logo { display: flex; align-items: center; flex-shrink: 0; }
        .site-logo img { height: 55px; width: auto; display: block; }
        
        .main-nav { flex: 1; display: flex; justify-content: center; }
        .nav-list { display: flex; gap: 3px; }
        .nav-list li a { 
            position: relative; display: block; padding: 10px 15px; color: var(--text-main); font-weight: bold; font-size: 16px; 
            transition: color 0.3s ease; 
        }
        /* 메뉴 마우스 오버 애니메이션 */
        .nav-list li a::after {
            content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--secondary-color);
            transition: all 0.3s ease; transform: translateX(-50%);
        }
        .nav-list li a:hover { color: var(--secondary-color); }
        .nav-list li a:hover::after { width: 80%; }

        .header-utils { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
        .btn-search-open img { width: 24px; height: auto; transition: transform 0.2s; }
        .btn-search-open:hover img { transform: scale(1.1); }
        .btn-mobile-menu { display: none; font-size: 28px; color: var(--text-main); }
        .btn_side { display: none; }

        @media (max-width: 1024px) {
            /* 버튼 기본 스타일 (기존 사이트 디자인에 맞게 position, width, height는 조절하세요) */ 
            .btn_side {/* position: absolute;*/ right: 15px; width: 40px; height: 40px; /* 기존 80px에서 모바일에 맞게 약간 줄임 */ transition: .2s; z-index: 101; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;}

            /* 햄버거 아이콘을 담는 영역 */.btn_side .ico { position: relative; width: 30px; height: 18px; display: block;}

            /* 햄버거 3줄 기본 설정 */.btn_side .line { position: absolute; left: 0; width: 100%; height: 1px; background-color: #223b72; transition: all ease .3s; }

            /* 햄버거 줄 간격 (18px 높이 안에 균일하게 배치) */
            .btn_side .line.line1 { top: 0; }
            .btn_side .line.line2 { top: 8px; }
            .btn_side .line.line3 { top: 16px; }

            /* 클릭 시 X로 변하는 애니메이션
              버튼에 'active' 클래스가 추가되었을 때 적용됩니다.
            */
            .btn_side.active .line.line1 {
                top: 8px;
                transform: rotate(45deg);
            }

            .btn_side.active .line.line2 {
                transform: scaleX(0); /* 가운데 줄은 사라짐 */
            }

            .btn_side.active .line.line3 {
                top: 8px;
                transform: rotate(-45deg);
            }
            
        }


        /* 검색 레이어 팝업 */
        .search-popup { 
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
            background: rgba(255, 255, 255, 0.95); z-index: 1000; 
            align-items: center; justify-content: center; backdrop-filter: blur(5px); 
        }
        .search-popup.active { display: flex; animation: fadeIn 0.3s ease; }
        .search-popup-inner { text-align: center; width: 100%; max-width: 600px; padding: 20px; position: relative; }
        .btn-search-close { position: absolute; top: -50px; right: 20px; font-size: 35px; color: #333; cursor: pointer; transition: transform 0.2s; }
        .btn-search-close:hover { transform: rotate(90deg); }
        .search-popup h2 { margin-bottom: 30px; font-size: 24px; color: var(--primary-color); }
        .search-input-wrap { display: flex; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; }
        .search-input-wrap input { flex: 1; border: none; outline: none; font-size: 20px; background: transparent; padding: 10px; }
        .search-input-wrap button { font-size: 18px; font-weight: bold; color: var(--primary-color); padding: 0 20px; }

        /* ==========================================================================
           메인 페이지 섹션
           ========================================================================== */
        /* 히어로 섹션 */
        .hero-section { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
        .hero-main { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; height: 100%; min-height: 400px; }
        .hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
        .hero-main:hover img { transform: scale(1.05); }
        .hero-main-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; }
        .hero-badge { display: inline-block; font-size: 12px; font-weight: bold; background-color: var(--secondary-color); padding: 4px 8px; border-radius: 4px; margin-bottom: 10px; }
        .hero-title { font-size: 28px; font-weight: bold; margin-bottom: 10px; line-height: 1.3; }
        .hero-desc { font-size: 15px; opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        
        .hero-sub { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
        .hero-sub-item { display: flex; gap: 15px; align-items: center; cursor: pointer; }
        .hero-sub-img { width: 150px; height: 150px; overflow: hidden; border-radius: 6px; flex-shrink: 0; }
        .hero-sub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
        .hero-sub-item:hover .hero-sub-img img { transform: scale(1.1); }
        .hero-sub-title { font-weight: bold; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s; }
        .hero-sub-item:hover .hero-sub-title { color: var(--secondary-color); text-decoration: underline; }

        /* 뉴스 카드 (최신 주요 뉴스) */
        .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
        .news-card { cursor: pointer; }
        .news-card-img { height: 190px; overflow: hidden; border-radius: 8px; margin-bottom: 12px; }
        .news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
        .news-card:hover .news-card-img img { transform: scale(1.1); }
        .news-card-category { font-size: 13px; color: var(--secondary-color); font-weight: bold; margin-bottom: 6px; display: block; }
        .news-card-title { font-size: 18px; font-weight: bold; margin-bottom: 8px; line-height: 1.4; transition: color 0.3s; }
        .news-card:hover .news-card-title { text-decoration: underline; color: var(--primary-color); }
        .news-card-desc { font-size: 14px; line-height: 1.3; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

        /* 비디오 카드 */
        .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
        .video-card { cursor: pointer; }
        .video-card-img { position: relative; height: 160px; overflow: hidden; border-radius: 8px; margin-bottom: 10px; }
        .video-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
        .video-card-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); transition: background 0.3s; }
        .video-card:hover .video-card-play { background: rgba(0,0,0,0.1); }
        .video-card-play span { color: #fff; font-size: 40px; }
        .video-card-title { font-size: 15px; font-weight: bold; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

        /* 리스트 아이템 (핫이슈) */
        .issue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
        .issue-item { display: flex; gap: 15px; align-items: center; cursor: pointer; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
        .issue-item-img { width: 150px; height: 120px; overflow: hidden; border-radius: 6px; flex-shrink: 0; }
        .issue-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
        .issue-item:hover .issue-item-img img { transform: scale(1.1); }
        .issue-item-content { flex: 1; }
        .issue-item-category { font-size: 12px; color: var(--secondary-color); font-weight: bold; margin-bottom: 4px; display: block; }
        .issue-item-title { font-weight: bold; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .issue-item:hover .issue-item-title { text-decoration: underline; color: var(--primary-color); }
        .issue-item-date { font-size: 12px; color: var(--text-muted); }

        /* ==========================================================================
           서브 페이지 (리스트, 뷰, 어바웃) 및 컴포넌트
           ========================================================================== */
        /* SPA용 숨김 클래스 */
        .page-section { display: none; }
        .page-section.active { display: block; animation: fadeIn 0.4s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* 뷰 페이지 레이아웃 */
        .content-wrapper { display: flex; gap: 30px; padding: 30px 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; }

        /* 기사 본문 스타일 */
        .article-view-header { border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 30px; }
        .article-view-title { font-size: 28px; font-weight: bold; color: var(--text-main); margin-bottom: 15px; line-height: 1.4; }
        .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: 30px auto; max-width: 100%; border-radius: 8px; }
        
        /* 기사 하단 툴 및 텍스트 광고 */
        .article-tools {display: flex;gap: 10px;margin: 30px 0;padding-top: 20px;border-top: 1px solid var(--border-color);justify-content: center;}
        .tool-btn { padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 14px; color: var(--text-main); transition: all 0.2s; }
        .tool-btn:hover { background-color: var(--bg-light); border-color: #ccc; }
        
        .ad_text_pic_B {border: 1px solid var(--border-color);padding: 20px;border-radius: 8px;background-color: var(--bg-light);}
   .ad_text_pic_B li a { display: flex; gap: 10px; align-items: center; }
  .ad_text_pic_B .tit { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

        /* 사이드바 구성 요소 */
        .ad-banner { width: 100%; background-color: #161B2E; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; padding: 40px 20px; border-radius: 8px; }
        .ad-content { position: relative; z-index: 10; text-align: center; }
        .ad-label { font-size: 11px; color: #64748b; font-weight: bold; margin-bottom: 5px; display: block; }
        .ad-text { color: #94a3b8; font-size: 16px; font-weight: bold; }
        .ad-badge { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.2); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 3px; }

        .section_09 { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; }
        .section_09 h3 { font-size: 18px; border-bottom: 2px solid var(--text-main); padding-bottom: 10px; margin-bottom: 15px; }
        .section_09 li { margin-bottom: 15px; }
        .section_09 li:last-child { margin-bottom: 0; }
        .section_09 a { display: flex; gap: 12px; }
        .section_09 .thumb { width: 80px; height: 60px; overflow: hidden; border-radius: 4px; flex-shrink: 0; }
        .section_09 .thumb img { width: 100%; height: 100%; object-fit: cover; }
        .section_09 .info { display: flex; flex-direction: column; justify-content: center; }
        .section_09 .tit { font-size: 14px; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .section_09 .press { font-size: 12px; color: var(--text-muted); }

        /* 소개(About) 페이지 탭 UI */
        .tab-menu { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 30px; flex-wrap: wrap; }
        .tab-btn { padding: 15px 25px; font-size: 16px; font-weight: bold; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.3s; }
        .tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
        .tab-btn:hover { color: var(--primary-color); }
        .tab-content { display: none; background: #fff; padding: 30px; border: 1px solid var(--border-color); border-radius: 8px; line-height: 1.8; }
        .tab-content.active { display: block; animation: fadeIn 0.4s ease; }
        .about-company-img { width: 100%; max-width: 600px; margin: 20px auto; border-radius: 8px; }

        /* ==========================================================================
           푸터
           ========================================================================== */
        .site-footer { background-color: #1f2937; color: #9ca3af; padding: 40px 0; margin-top: 60px; font-size: 14px; }
        .footer-inner {display: flex;justify-content: flex-start;flex-wrap: wrap;gap: 60px;}
        .footer-logo img {height: 65px;width: auto;opacity: 0.8;margin-bottom: 15px;}
        .footer-info p { margin-bottom: 5px; }
        .footer-links {display: flex;gap: 15px;margin-bottom: 15px;}
        .footer-links a { color: #d1d5db; }
        .footer-links a:hover { color: #fff; text-decoration: underline; }

        /* ==========================================================================
           반응형 미디어 쿼리
           ========================================================================== */
        @media (max-width: 1024px) {

            .hero-section { grid-template-columns: 1fr; }
            .hero-main { min-height: 300px; }
            .hero-sub { flex-direction: row; flex-wrap: wrap; gap: 15px; }
            .hero-sub-item { flex: 1; min-width: 280px; }
            
            .content-wrapper {flex-direction: column;padding: 30px 0px;}
            .aside.view-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
            .aside.view-sidebar > div { flex: 1; min-width: 300px; }
            
            /* 모바일 헤더 메뉴 처리 */
            .nav-list { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background: #ffffff; border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.05); padding: 10px 0; }
            .nav-list.show { display: flex; animation: fadeIn 0.3s ease; }
            .nav-list li a { padding: 15px 20px; border-bottom: 1px solid #f1f1f1; }
            .nav-list li a::after { display: none; }
            .btn-mobile-menu { display: block; }
            .main-nav { flex: none; }
        }
        @media (max-width: 768px) {
            
        .issue-item-title { font-size: 16px;}
        .article-view-title { font-size: 22px;}
        .article-view-header {padding: 0 20px 20px;}
        .article-view-body {padding: 0 20px;letter-spacing: -0.09rem;}
        .ad_text_pic_B {border: 0;padding: 0px;border-radius: 8px;background-color: var(--bg-light);}
      
        .issue-grid { grid-template-columns: 1fr; gap: 15px; }
        .tab-btn { flex: 1; min-width: 50%; text-align: center; padding: 10px; font-size: 14px; }
        .ad_text_pic_B ul { grid-template-columns: 1fr; }
        .footer-inner {flex-direction: column;text-align: center;align-items: center;gap: 20px;font-size: 12px;}
        .footer-links {justify-content: center;gap: 10px;}
            
            /* 모바일에서는 탭 콘텐츠의 여백과 폰트 크기를 약간 줄여 가독성을 높입니다 */
    .tab-content { padding: 20px; }
    .tab-content h3 { font-size: 18px; margin-bottom: 15px; }
    .tab-content .info-box { padding: 12px; font-size: 14px; }
        }


/* ==========================================================================
   회사소개 (About) 페이지 전용 레이아웃 및 탭 UI
   ========================================================================== */

/* 1. 상단 헤더 영역 (슬로건) */
.about-header {
    background-color: var(--bg-light);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.about-header p {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    word-break: keep-all;
}

/* 2. 탭 메뉴 영역 (핵심: 모바일 가로 스크롤 지원) */
.about-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    
    /* 모바일 가로 스크롤을 위한 설정 */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
}

/* 탭 스크롤바 숨김 처리 (웹킷 브라우저 및 파이어폭스/IE 호환) */
.about-tabs::-webkit-scrollbar { display: none; }
.about-tabs { -ms-overflow-style: none; scrollbar-width: none; }

.tab-btn {
    flex: 0 0 auto; /* 탭이 좁아지거나 찌그러지지 않도록 고정 */
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* 하단 테두리를 부모 컨테이너와 겹치게 처리 */
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

/* 3. 탭 본문 내용 영역 */
.tab-content {
    display: none;
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* 본문 타이포그래피 및 세부 요소 */
.tab-content h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    color: var(--text-main);
}

.tab-content p { margin-bottom: 15px; color: #333; }
.tab-content p:last-child { margin-bottom: 0; }

.tab-content ul { list-style-type: disc; margin-left: 20px; margin-bottom: 20px; color: #333; }
.tab-content ul li { margin-bottom: 8px; }

/* 연락처/제보 인포 박스 */
.info-box {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
    font-size: 15px;
}

/* 회사소개 이미지 */
.about-company-img {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    display: block;
}


/* ==========================================================================
   반응형 미디어 쿼리 (모바일 화면)
   ========================================================================== */
@media (max-width: 768px) {
    .about-header { padding: 30px 20px; margin-bottom: 25px; }
    .about-header p { font-size: 18px; }

    /* 탭 버튼 패딩 및 폰트 축소 */
    .tab-btn { padding: 12px 16px; font-size: 14px; }
    
    /* 본문 영역 패딩 축소 및 모바일 최적화 */
    .tab-content { padding: 25px 20px; border-radius: 6px; }
    .tab-content h3 { font-size: 20px; margin-bottom: 15px; padding-bottom: 10px; }
    
    .info-box { padding: 15px; font-size: 14px; }
}



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

