 @charset "UTF-8";

        /* ========================================================
           1. 공통 변수 및 초기화
           ======================================================== */
        :root {
            --primary-color: #2d2f36; 
            --accent-color: #b347ea;  
            --text-main: #333333;
            --text-sub: #666666;
            --border-color: #eaeaea;
            --bg-light: #f8f9fa;
        }

        *, *::before, *::after { box-sizing: border-box; }

        body {
            font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            margin: 0; padding: 0;
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
        }
        dl,ul,ol,li{list-style:none; padding: 0;}
        body,p,h1,h2,h3,h4,h5,h6,div,ul,ol,li,dl,dt,dd,table,th,td,form,fieldset,legend,input,textarea,select,button,iframe{padding:0;margin:0}


        a { text-decoration: none; color: inherit; cursor: pointer; }
        ul { list-style: none; padding: 0; margin: 0; }
        img { max-width: 100%; height: auto; display: block; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        /* ========================================================
           스크롤 애니메이션 (추가)
           ======================================================== */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .animate-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ========================================================
           2. 헤더 및 네비게이션
           ======================================================== */
        .site-header { border-bottom: 1px solid var(--border-color); background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
        .header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; position: relative; }
        .site-logo { cursor: pointer; display: flex; align-items: center; }
        .header-logo-img { height: 28px; display: block; }
        .header-actions { display: flex; align-items: center; gap: 15px; }

        /* 날씨 위젯 */
        .weather-info { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary-color); padding-right: 15px; border-right: 1px solid var(--border-color); }
        .weather-info .icon { font-size: 18px; }

        /* 검색바 개선 */
        .search-area { display: flex; background: var(--bg-light); border-radius: 30px; padding: 10px 20px; align-items: center; border: 1px solid transparent; width: 300px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: inset 0 1px 3px rgba(0,0,0,0.02); }
        .search-area:focus-within { background: #fff; border-color: var(--accent-color); box-shadow: 0 4px 15px rgba(179, 71, 234, 0.1); width: 340px; }
        .search-input { border: none; background: transparent; outline: none; width: 100%; font-size: 15px; font-weight: 500; color: var(--primary-color); }
        .search-input::placeholder { color: #aaa; }
        .search-btn { border: none; background: none; cursor: pointer; font-size: 18px; padding: 0; color: var(--primary-color); display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
        .search-area:focus-within .search-btn { color: var(--accent-color); }

        .mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary-color); cursor: pointer; padding: 5px; }

        .nav-main { background: #fff; border-top: 1px solid var(--border-color); }
        .nav-list { display: flex; justify-content: center; gap: 40px; padding: 14px 0; }
        .nav-item { font-weight: 700; font-size: 16px; color: var(--primary-color); transition: color 0.3s; display: block; position: relative; }
        .nav-item:hover, .nav-item.active { color: var(--accent-color); }
        .nav-item::after { content: ''; position: absolute; bottom: -14px; left: 0; width: 0; height: 3px; background: var(--accent-color); transition: width 0.3s; }
        .nav-item:hover::after { width: 100%; }

        /* ========================================================
           3. 메인 레이아웃 및 범용 클래스
           ======================================================== */
        .main-wrapper, .main-layout { display: flex; gap: 40px; padding: 40px 0; }
        .content-area { flex: 1; min-width: 0; }
        .aside-sidebar, .aside.view-sidebar { width: 320px; flex-shrink: 0;  }
        .section-title { font-size: 20px; font-weight: 800; border-left: 4px solid var(--accent-color); padding-left: 10px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

        /* ========================================================
           4. 빙 뉴스 스타일 컴포넌트 & 광고 배너
           ======================================================== */
        .news-section { margin-bottom: 45px; }
        .section-title-bing { font-size: 18px; font-weight: 700; margin-bottom: 15px; display: inline-flex; align-items: center; cursor: pointer; transition: color 0.2s;}
        .section-title-bing:hover { color: var(--accent-color); }
        .section-title-bing::after { content: '›'; margin-left: 8px; font-weight: 400; color: #999; font-size: 20px; line-height: 1; margin-top: -2px; }
        
        .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 16px;}
        .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

        .bing-card { cursor: pointer; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
        .bing-card-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #eee; border-radius: 8px; margin-bottom: 10px; position: relative;}
        .bing-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;}
        .bing-card:hover .bing-card-img-wrap img { transform: scale(1.05); }
        .bing-card-info { flex: 1; display: flex; flex-direction: column; }
        .bing-card-source { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-sub); margin-bottom: 6px; }
        .bing-card-source img { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }
        .bing-card-title { font-size: 15px; line-height: 1.45; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-main); transition: color 0.2s;}
        .bing-card:hover .bing-card-title { color: var(--accent-color); text-decoration: underline; }

        .hot-topic-wrap { background: #fdfaf6; padding: 25px 25px 10px; border-radius: 12px; margin-bottom: 45px; border: 1px solid #f0e6d2; }
        .hot-topic-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
        .hot-topic-title-wrapper { display: flex; align-items: center; gap: 10px; }
        .hot-topic-badge { background: #fee2e2; color: #ef4444; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; display: flex; align-items: center; gap:4px;}
        .hot-topic-main-title { font-weight: 700; font-size: 16px; }
        
        .bing-list-item { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); cursor: pointer; }
        .bing-list-item:hover .bing-card-title { color: var(--accent-color); text-decoration: underline; }
        .bing-list-info { flex: 1; }
        .bing-list-thumb { width: 110px; height: 75px; border-radius: 6px; object-fit: cover; flex-shrink: 0;}
        .bing-list-title-text { font-size: 15px; }

        .more-news-section { border-top: 1px solid var(--border-color); padding-top: 40px; margin-top: 20px; }

        /* 가로형 광고 배너 */
        .ad-banner-wide { width: 100%; height: auto; background: #f1f3f5; border: 1px solid #e9ecef; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #adb5bd; font-size: 13px; font-weight: 600; letter-spacing: 1px; margin: 20px 0; overflow: hidden; position: relative; cursor: pointer; }
        .ad-banner-wide::before { content: 'AD'; position: absolute; top: 8px; right: 8px; font-size: 10px; background: rgba(0,0,0,0.1); color: #666; padding: 2px 6px; border-radius: 3px; }

        /* ========================================================
           5. 서브 페이지 (List, View, About)
           ======================================================== */
        /* 리스트 페이지 신규 카드 그리드 스타일 */
        .page-header { margin-bottom: 40px; border-bottom: 3px solid var(--primary-color); padding-bottom: 20px; }
        .page-header-about { border-bottom: none; }
        .page-title { font-size: 32px; font-weight: 800; margin: 0; color: var(--primary-color); }
        .page-desc { font-size: 16px; color: var(--text-sub); margin-top: 10px; }

        .list-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
        .list-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; cursor: pointer; display: flex; flex-direction: column; }
        .list-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border-color: transparent; }
        .list-card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #f8f9fa; }
        .list-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
        .list-card:hover .list-card-img img { transform: scale(1.05); }
        .list-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
        .list-card-body h2 { font-size: 18px; line-height: 1.4; margin: 0 0 10px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
        .list-card:hover .list-card-body h2 { color: var(--accent-color); }
        .list-card-body p { font-size: 14px; color: var(--text-sub); line-height: 1.6; margin: 0 0 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
        .list-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: auto; }
        .list-card-source { display: flex; align-items: center; gap: 5px; }
        .source-icon { width: 14px; border-radius: 50%; }
        
        .pagination { display: flex; justify-content: center; gap: 8px; padding: 20px 0 60px; }
        .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-size: 15px; transition: all 0.3s; font-weight: 600; cursor: pointer; background: #fff; }
        .page-link:hover { border-color: var(--primary-color); color: var(--primary-color); }
        .page-link.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

        /* 뷰 페이지 */
        .view-header { margin-bottom: 30px; }
        .view-title { font-size: 34px; font-weight: 800; line-height: 1.4; margin: 0 0 15px; word-break: keep-all; color: var(--primary-color); }
        .view-meta { color: var(--text-sub); font-size: 14px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 30px; }
        .view-main-image { width: 100%; border-radius: 10px; margin-bottom: 25px; object-fit: cover; }
        .view-content { font-size: 17px; line-height: 1.8; color: #222; padding-bottom: 40px; }
        .view-content p { margin: 0; }
        .view-content blockquote { border-left: 4px solid var(--accent-color); padding: 20px 25px; background: var(--bg-light); margin: 35px 0; font-style: italic; font-size: 18px; color: #444; border-radius: 0 8px 8px 0; }
        .view-actions { display: flex; gap: 10px; border-top: 1px solid var(--border-color); padding: 25px 0; margin: 20px 0; }

        /* 매체 소개 (About) 페이지 */
        .tabs-container { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
        .tab-menu { display: flex; background: var(--bg-light); border-bottom: 1px solid var(--border-color); overflow-x: auto; scrollbar-width: none; }
        .tab-btn { padding: 18px 20px; border: none; background: none; font-weight: 700; font-size: 15px; cursor: pointer; flex: 1; text-align: center; white-space: nowrap; color: var(--text-sub); border-bottom: 3px solid transparent; transition: all 0.3s; }
        .tab-btn:hover { color: var(--primary-color); }
        .tab-btn.active { background: #fff; color: var(--accent-color); border-bottom: 3px solid var(--accent-color); }
        .tab-content { padding: 50px 40px; }
        
        .about-illust { width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
        .about-title { margin-top: 0; color: var(--primary-color); }
        .about-desc { font-size: 16px; line-height: 1.7; }
        .about-info-box { background: var(--bg-light); padding: 20px; border-radius: 8px; margin-top: 20px; border: 1px solid var(--border-color); }

        /* 버튼 공통 스타일 */
        .btn-primary, .btn-outline { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 6px; font-weight: 600; transition: all 0.3s; font-size: 15px; cursor: pointer; }
        .btn-primary { background: var(--primary-color); color: #fff; border: 1px solid var(--primary-color); }
        .btn-primary:hover { background: var(--accent-color); border-color: var(--accent-color); }
        .btn-outline { background: #fff; color: var(--primary-color); border: 1px solid var(--border-color); }
        .btn-outline:hover { background: var(--bg-light); border-color: var(--primary-color); }

        /* ========================================================
           6. 뷰 페이지용 사이드바
           ======================================================== */
        .aside-widget { margin-bottom: 35px; border: 1px solid var(--border-color); padding: 25px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
        .aside-title { font-size: 18px; font-weight: 800; margin-bottom: 20px; display: block; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; color: var(--primary-color); }
        .popular-list li { padding: 12px 0; border-bottom: 1px dashed var(--border-color); font-size: 15px; transition: color 0.3s; cursor: pointer; }
        .popular-list li:hover { color: var(--accent-color); font-weight: 500; }
        .popular-list li:last-child { border-bottom: none; }

        .aside-sponsor-banner { background: var(--bg-light); text-align: center; padding: 0; border: none; }
        .aside-sponsor-banner img { width: 100%;}
        .sponsor-text { color: #aaa; margin: 0; font-size: 14px; }
        
        .aside-newsletter { background: var(--primary-color); color: #fff; border: none; }
        .newsletter-title { color: #fff; border-bottom-color: rgba(255,255,255,0.2); }
        .newsletter-desc { font-size: 13px; color: #ddd; margin-bottom: 15px; }
        .newsletter-input { width: 100%; padding: 12px 15px; margin-bottom: 12px; border: none; border-radius: 6px; outline: none; font-size: 14px; transition: box-shadow 0.3s; }
        .newsletter-input:focus { box-shadow: 0 0 0 2px var(--accent-color); }
        .newsletter-btn { width: 100%; padding: 12px; background: var(--accent-color); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 15px; transition: background 0.3s; }
        .newsletter-btn:hover { background: #9d3ad6; }

        /* ========================================================
           7. 다크 테마 푸터
           ======================================================== */
        .site-footer { background: #1a1a1c; color: #a0a0a0; padding: 70px 0 40px; margin-top: 60px; font-size: 14px; }
        .footer-grid { display: grid; grid-template-columns: 1.5fr 0.5fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
        .footer-logo { display: inline-block; margin-bottom: 25px; }
        .footer-logo-img { height: 24px; filter: brightness(0) invert(1); opacity: 0.9; }
        .footer-info-text { line-height: 1.8; margin-top: 10px; color: #888; }
        
        .footer-links h4 { color: #ffffff; margin: 0 0 20px 0; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
        .footer-links ul { padding: 0; margin: 0; }
        .footer-links li { margin-bottom: 12px; cursor: pointer; transition: color 0.2s; display: flex; align-items: center; }
        .footer-links li:hover { color: #ffffff; }
        .footer-info-list { color: #888; cursor: default; }
        .footer-info-list li:hover { color: #888; cursor: default; }
        
        .footer-bottom { border-top: 1px solid #2a2a2c; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #666; }
        .footer-sns { display: flex; gap: 15px; }
        .footer-sns-icon { width: 36px; height: 36px; border-radius: 50%; background: #2a2a2c; display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.3s; cursor: pointer; }
        .footer-sns-icon:hover { background: var(--accent-color); }

        /* ========================================================
           8. 반응형 미디어 쿼리 최적화
           ======================================================== */
        @media (max-width: 1024px) {
            .container { padding-left: 20px; padding-right: 20px; }
            .search-area { width: 220px; }
            .search-area:focus-within { width: 260px; }
            
            .grid-4, .list-page-grid { grid-template-columns: repeat(3, 1fr); }
            .grid-4 > div:nth-child(4n) { display: none; } 
            .grid-2 { grid-template-columns: 1fr; gap: 0; }
            
            .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
        }

        @media (max-width: 768px) {
            .container { padding-left: 16px; padding-right: 16px; }
            
            /* 모바일 로고 사이즈 조정 */
            .header-logo-img { height: 28px; }
            
            .weather-info { display: none; }
            .search-area { display: none; }
            .mobile-menu-toggle { display: block; }
            
            .nav-main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-top: none; padding: 0 16px; }
            .nav-main.mobile-active { display: block; z-index: 999; }
            .nav-list { flex-direction: column; gap: 0; padding: 0; }
            .nav-item { padding: 15px 5px; border-bottom: 1px solid var(--border-color); width: 100%; text-align: left; }
            .nav-item::after { display: none; }

            .main-wrapper, .main-layout { flex-direction: column; gap: 30px; padding: 20px; }
            .aside-sidebar, .aside.view-sidebar { width: 100%; }

            /* 모바일 폰트 사이즈 최적화 */
            .section-title-bing { font-size: 17px; }
            .bing-card-title { font-size: 14px; }
            .bing-list-title-text { font-size: 14px; }
            .hot-topic-main-title { font-size: 15px; }

            /* 가로 스크롤 영역 (모바일 반응형 빙뉴스 스타일) 및 좌우 패딩 보정 */
            .grid-4 { 
                display: flex; 
                flex-wrap: nowrap; 
                overflow-x: auto; 
                scroll-snap-type: x mandatory; 
                gap: 12px; 
/*
                margin: 0 -16px 5px -16px; 
                padding: 0 16px 15px 16px; 
*/
                -webkit-overflow-scrolling: touch; 
            }
            .grid-4::-webkit-scrollbar { display: none; }
            .grid-4 { -ms-overflow-style: none; scrollbar-width: none; }
            .grid-4 > div:nth-child(4n) { display: flex; } 
            
            /* 카드 너비를 조정하여 다음 카드가 살짝 보이도록 유도 */
            .bing-card { flex: 0 0 75%; scroll-snap-align: start; }
            .hot-topic-wrap { padding: 20px 16px 5px; }
            .bing-list-thumb { width: 90px; height: 60px; }
            
            /* 리스트 페이지 카드 */
            .list-page-grid { grid-template-columns: 1fr; gap: 20px; }
            .list-card-img { aspect-ratio: 16/9; }

            /* 푸터 모바일 */
            .footer-grid { grid-template-columns: 1fr; gap: 30px; }
            .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
        }

        @media (max-width: 480px) {
            /* 초소형 모바일 화면 최적화 */
            .header-logo-img { height: 18px; }
            .bing-card { flex: 0 0 85%; } 
            .bing-list-item { flex-direction: column-reverse; gap: 10px; align-items: flex-start; }
            .bing-list-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }

            .bing-card-title { font-size: 13px; }
            .view-title { font-size: 22px; }
            .list-card-body h2 { font-size: 16px; }
        }