@charset "UTF-8";

/* ========================================================
   1. 공통 변수 및 초기화
   ======================================================== */
:root {
    --primary-color: #1a2a40; /* Navy */
    --accent-color: #b8924e;  /* Gold */
    --text-main: #333;
    --text-sub: #666;
    --border-color: #eee;
    --bg-light: #f9f9f9;
}

*, *::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;
}

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; }

/* ========================================================
   2. 헤더 및 네비게이션
   ======================================================== */
.site-header { border-bottom: 1px solid var(--border-color); background: #fff; position: sticky; top: 0; z-index: 1000; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; position: relative; }
.site-logo { font-size: 28px; font-weight: 900; color: var(--primary-color); letter-spacing: -1px; display: flex; align-items: center; }
.site-logo span { color: var(--accent-color); }
.header-actions { display: flex; align-items: center; gap: 15px; }

.search-area { display: flex; background: var(--bg-light); border-radius: 20px; padding: 5px 15px; align-items: center; }
.search-input { border: none; background: transparent; padding: 5px; outline: none; width: 150px; }
.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: 30px; padding: 12px 0; }
.nav-item { font-weight: 700; font-size: 16px; color: var(--text-main); transition: color 0.3s; display: block; }
.nav-item:hover, .nav-item.active { color: var(--accent-color); }

/* ========================================================
   3. 메인 레이아웃
   ======================================================== */
.main-wrapper, .main-layout { display: flex; gap: 40px; padding: 30px 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(--primary-color); padding-left: 10px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

/* ========================================================
   4. 컴포넌트: 뉴스 카드 모음 (메인 페이지용)
   ======================================================== */
.news-card { display: flex; gap: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); cursor: pointer; align-items: flex-start; align-items: center;}
.news-card:last-child { border-bottom:0}
.news-card-thumb { width: 120px; height: 115px; border-radius: 60px; background: #eee; object-fit: cover; flex-shrink: 0; }
.news-card-info { flex: 1; }
.news-card-title { font-size: 15px; margin: 0 0 5px; line-height: 1.4; }
.news-card-meta { font-size: 12px; color: #999; }

.news-card-compact { display: flex; gap: 15px; align-items: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--border-color); cursor: pointer; }
.news-card-compact.no-border { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-card-thumb-sm { width: 70px; height: 50px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }

/* ========================================================
   5. 메인 페이지 전용 섹션들
   ======================================================== */
.hero-news { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.hero-main-card { position: relative; height: 400px; border-radius: 8px; overflow: hidden; cursor: pointer; }
.hero-main-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.badge-hot { background: var(--accent-color); padding: 3px 8px; font-size: 12px; border-radius: 3px; display: inline-block; margin-bottom: 5px; font-weight:bold; }
.hero-title { font-size: 26px; margin: 10px 0; line-height: 1.3; }
.hero-desc { font-size: 14px; opacity: 0.8; margin: 0; }
.hero-side-list { display: flex; flex-direction: column; gap: 10px; }

.category-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.category-block { border-top: 2px solid var(--primary-color); padding-top: 15px; }
.category-block-title { font-size: 18px; font-weight: 800; color: var(--primary-color); margin-bottom: 15px; display: block; }
.category-main-link { display: block; margin-bottom: 15px; cursor: pointer; }
.category-block-img { width: 100%; height: 180px; border-radius: 4px; object-fit: cover; margin-bottom: 10px; }
.category-main-title { margin: 5px 0; font-size: 16px; }
.category-sub-list { font-size: 14px; color: var(--text-sub); }
.category-sub-list li { margin-bottom: 8px; }

.youtube-section { background: #000; padding: 40px 20px; border-radius: 8px; margin-bottom: 50px; color: #fff; }
.youtube-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.youtube-header-title { font-size: 20px; font-weight: 800; }
.badge-live { color: #ff0000; font-size: 12px; border: 1px solid red; padding: 2px 5px; border-radius: 3px; font-weight:bold; }
.youtube-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.youtube-thumb { aspect-ratio: 16/9; background: #333; border-radius: 8px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; }
.youtube-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.youtube-thumb span { position: absolute; font-size: 30px; color: #fff; }
.youtube-desc { font-size: 14px; font-weight: 600; margin: 0; line-height:1.4; }

.opinion-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 30px; background: var(--bg-light); padding: 30px; border-radius: 8px; margin-bottom: 50px; }
.editorial-box { border-right: 1px solid #ddd; padding-right: 30px; }
.editorial-profile { text-align: center; margin-bottom: 20px; }
.editorial-img { width: 100px; height: 120px; border-radius: 4px; background: #ddd; margin: 0 auto 10px; object-fit: cover; }
.editorial-title { margin: 0; font-size: 16px; }
.editorial-author { font-size: 13px; color: var(--text-sub); margin: 5px 0 0; }
.editorial-text { font-size: 14px; line-height: 1.6; color: #444; margin:0; }

.columnist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.columnist-card { display: flex; align-items: center; gap: 15px; padding: 10px; background: #fff; border-radius: 4px; cursor: pointer; border: 1px solid var(--border-color); }
.columnist-avatar { width: 60px; height: 60px; border-radius: 50%; background: #eee; object-fit: cover; flex-shrink: 0; }
.columnist-title { margin: 0; font-size: 14px; }
.columnist-desc { margin: 5px 0 0; font-size: 13px; color: var(--text-sub); line-height: 1.3; }

.photo-news-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 50px; }
.photo-news-item { position: relative; height: 180px; border-radius: 8px; overflow: hidden; cursor: pointer; background: #eee; }
.photo-news-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-news-item:hover img { transform: scale(1.05); }
.photo-title { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; padding: 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ========================================================
   6. 서브 페이지 (List, View, About)
   ======================================================== */
/* 리스트 페이지 헤더 */
.page-header { margin-bottom: 30px; border-bottom: 2px solid var(--primary-color); padding-bottom: 15px; }
.page-title { font-size: 28px; margin: 0 0 10px; color: var(--primary-color); }
.page-subtitle { margin: 0; font-size: 14px; color: var(--text-sub); }

.article-list { display: flex; flex-direction: column; }

/* 리스트 아이템 (list-item 및 article-list-item 모두 호환) */
.list-item, .article-list-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border-color); align-items: flex-start; cursor: pointer;  align-items: center;}
.list-item .thumb, .article-list-item img { width: 240px; height: 160px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #eee; display: block; object-fit: cover; }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.list-item:hover .thumb img { transform: scale(1.05); }

.list-item .content, .article-list-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-item .title, .article-list-body h2 { font-size: 20px; line-height: 1.4; margin: 0 0 10px; transition: color 0.3s; }
.list-item:hover .title, .article-list-item:hover .article-list-body h2 { color: var(--accent-color); }
.list-item .desc, .article-list-body p { font-size: 15px; color: var(--text-sub); line-height: 1.6; margin: 0 0 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item .meta, .article-list-body span { font-size: 13px; color: #999; }

.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #ddd; border-radius: 4px; color: var(--text-main); font-size: 14px; transition: all 0.3s; }
.page-link:hover, .page-link.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* 뷰(상세) 페이지 */
.view-title { font-size: 32px; font-weight: 800; line-height: 1.4; margin: 0 0 15px; word-break: keep-all; }
.view-meta { color: var(--text-sub); font-size: 14px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 30px; }
.view-content { font-size: 18px; line-height: 1.8; color: #222; padding-bottom: 40px; }
.view-content p { margin: 0;}
.view-content img { width: 100%; border-radius: 8px; margin-bottom: 20px; height: auto; }
.view-content blockquote { border-left: 4px solid var(--accent-color); padding: 15px 20px; background: var(--bg-light); margin: 30px 0; font-style: italic; font-size: 16px; color: #555; }

/* 매체소개(About) 페이지 */
.tabs-container { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: #fff; }
.tab-menu { display: flex; background: var(--bg-light); border-bottom: 1px solid var(--border-color); overflow-x: auto; scrollbar-width: none; }
.tab-menu::-webkit-scrollbar { display: none; }
.tab-btn { padding: 15px 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: 2px solid transparent; transition: all 0.3s; }
.tab-btn:hover { color: var(--primary-color); }
.tab-btn.active { background: #fff; color: var(--accent-color); border-bottom: 2px solid var(--accent-color); }
.tab-content { padding: 40px; }
.about-illust { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background: #eee; }
.about-title { margin-top: 0; font-size: 24px; color: var(--primary-color); margin-bottom: 15px; }
.about-desc { font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.about-list { line-height: 1.8; margin-bottom: 20px; padding-left: 20px; }
.about-info-box { background: var(--bg-light); padding: 20px; border-radius: 6px; margin-top: 25px; line-height: 1.6; }
.about-info-title { color: var(--primary-color); font-size: 18px; display: block; margin-bottom: 8px; }

/* --- [ 뷰 페이지 하단 버튼 영역 & 공통 버튼 스타일 ] --- */
.view-action-wrap { 
    display: flex; 
    gap: 10px; 
    border-top: 1px solid var(--border-color); 
    padding-top: 20px; 
    margin-top: 40px; 
}

/* 버튼 공통 속성 */
.btn { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; 
    border-radius: 4px; 
    font-weight: 500;
    transition: all 0.3s; /* 부드러운 호버 효과 */
    font-size: 14px;
}

/* 색상이 채워진 메인 버튼 */
.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(--text-main); 
    border: 1px solid #ddd; 
}
.btn-outline:hover { 
    background: var(--bg-light); 
    color: var(--primary-color);
}

/* ========================================================
   7. 사이드바 및 푸터
   ======================================================== */
.aside-widget { margin-bottom: 30px; border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; }
.aside-title { font-size: 18px; font-weight: 800; margin-bottom: 15px; display: block; border-bottom: 1px solid var(--primary-color); padding-bottom: 5px; }
.popular-list li { padding: 10px 0; border-bottom: 1px dashed var(--border-color); font-size: 14px; }
.popular-list li:last-child { border-bottom: none; }

.aside-ad-box { background: #f1f1f1; text-align: center; padding: 40px 0; }
.aside-ad-text { color: #999; margin:0; }
.newsletter-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 15px; }
.newsletter-input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 4px; outline: none; }
.newsletter-btn { width: 100%; padding: 10px; background: var(--primary-color); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }

.site-footer { background: #222; color: #ccc; padding: 60px 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 20px; display: flex; align-items: center; }
.footer-info-text { font-size: 13px; line-height: 1.8; }
.footer-links h4 { color: #fff; margin-bottom: 15px; font-size: 16px; }
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; font-size: 12px; text-align: center; line-height: 1.6; }

/* ========================================================
   8. 반응형 미디어 쿼리 (Responsive Web) - [핵심 최적화 구간]
   ======================================================== */

/* [태블릿 사이즈 - 1024px 이하] */
@media (max-width: 1024px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .main-wrapper, .main-layout { flex-direction: column; gap: 30px; padding: 20px 0; }
    .aside-sidebar, .aside.view-sidebar { width: 100%; margin-top: 10px; }
    
    .hero-news { grid-template-columns: 1fr; }
    .hero-main-card { height: 350px; }
    .opinion-grid { grid-template-columns: 1fr; }
    .editorial-box { border-right: none; border-bottom: 1px solid #ddd; padding-bottom: 20px; padding-right: 0; }
}

/* [모바일 사이즈 - 768px 이하] */
@media (max-width: 768px) {
    /* 기본 여백 및 가로 스크롤 방지 */
    html, body { overflow-x: hidden; }
    * { word-break: keep-all; overflow-wrap: break-word; }
    .container { padding-left: 15px; padding-right: 15px; }
    .main-wrapper, .main-layout { padding-top: 20px; padding-bottom: 20px; }
    .header-top { padding-top: 15px; padding-bottom: 15px; }

    /* 네비게이션 모바일 메뉴화 */
    .mobile-menu-toggle { display: block; }
    .search-area { display: none; }
    .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 15px; }
    .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 #eee; width: 100%; text-align: left; }

    /* 메인 페이지 모바일 1단 그리드 강제 */
    .youtube-grid, .category-grid-3, .columnist-grid, .photo-news-scroll { grid-template-columns: 1fr; gap: 15px;}
    .news-card { align-items: center; gap: 12px; }
    .hero-main-card { height: 280px; }
    .hero-title { font-size: 20px; }
    .hero-overlay { padding: 15px; }
    .category-block-img, .photo-news-item img { border-radius: 8px; }
    .aside-widget { padding: 15px; margin-bottom: 20px; }

    /* 푸터 모바일 최적화 */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-links ul { display: flex; gap: 10px; justify-content: center;}

    /* --- [ 서브페이지 (About, List, View) 모바일 최적화 ] --- */
    
    /* 매체소개(About) */
    .tab-menu { justify-content: flex-start; }
    .tab-btn { padding: 12px 15px; font-size: 14px; flex: none; }
    .tab-content { padding: 20px; }
    .about-illust { height: 180px; margin-bottom: 20px; }
    .about-title { font-size: 20px; }
    .about-desc { font-size: 15px; }
    .about-info-box { padding: 15px; }
    .about-info-title { font-size: 16px; }

    /* 리스트 (List) */
    .list-item, .article-list-item { flex-direction: column; gap: 15px; }
    .list-item .thumb, .article-list-item img { width: 100%; height: auto; aspect-ratio: 16/9; }
    .list-item .title, .article-list-body h2 { font-size: 18px; }
    .list-item .desc, .article-list-body p { font-size: 14px; }
    .page-title { font-size: 24px; }

    /* 뷰 (View) */
    .view-title { font-size: 24px; }
    .view-meta { font-size: 13px; }
    .view-content { font-size: 16px; line-height: 1.7; }
}

/* [초소형 모바일 사이즈 - 480px 이하] */
@media (max-width: 480px) {
    .news-card { flex-direction: column; align-items: flex-start; }
    .news-card-thumb { width: 100%; height: auto; aspect-ratio: 16/9; margin-bottom: 5px; }
    
    .news-card-compact { flex-direction: column-reverse; align-items: flex-start; gap: 10px; padding-bottom:15px; margin-bottom:15px;}
    .news-card-thumb-sm { width: 100%; height: auto; aspect-ratio: 16/9; margin-bottom: 0; }
}

.banner_ad{position:absolute;top:2px;right:2px; height: 16px; z-index:1;cursor:pointer}
