/**
 * Trenue Theme Custom Styles
 * - 헤더 → 티커 순서 (둘 다 스크롤 고정)
 * - 검색 돋보기 드롭다운
 * - 모바일 메뉴 개선
 * - 페이지네이션 수정
 * - WP 관리자 바 대응
 */

/* ========== CSS 변수 ========== */
:root {
    --header-height: 64px;
    --ticker-height: 46px;
    --admin-bar-height: 0px;
    --container-width: 1200px;
    --sidebar-width: 320px;
    --post-gap: 16px;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

/* WP 관리자 바 로그인 시 */
body.admin-bar {
    --admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --admin-bar-height: 46px;
    }
}

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

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========== 컨테이너 ========== */
.container {
    max-width: var(--container-width) !important;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========== 헤더 (최상단 고정) ========== */
.site-header {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 로고 */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.site-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ★★★ 메인 네비게이션 ★★★ */
#site-navigation,
.main-navigation {
    display: flex !important;
    flex: 1;
    justify-content: center;
}

#site-navigation ul,
.main-navigation ul,
#primary-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px;
}

#site-navigation li,
.main-navigation li {
    position: relative;
}

#site-navigation a,
.main-navigation a {
    display: block;
    padding: 10px 16px;
    color: #1a1a1a; /* 검은색 */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700; /* 볼드체 */
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

/* 커뮤니티 메뉴 - 녹색 볼드체 */
#site-navigation .menu-community > a,
.main-navigation .menu-community > a {
    color: #10b981 !important; /* 녹색 */
    font-weight: 700;
}

#site-navigation .menu-community > a:hover,
.main-navigation .menu-community > a:hover {
    color: #059669 !important; /* 진한 녹색 */
    background: rgba(16, 185, 129, 0.1);
}

#site-navigation a:hover,
.main-navigation a:hover,
#site-navigation .current-menu-item > a,
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

/* 서브메뉴 */
#site-navigation ul ul,
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    flex-direction: column;
    gap: 0;
    z-index: 1001;
}

#site-navigation li:hover > ul,
.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 헤더 액션 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ★★★ 헤더 아이콘 버튼 (돋보기) ★★★ */
.header-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.header-icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* ★★★ 헤더 버튼 (로그인/회원가입) ★★★ */
.btn-header {
    height: 40px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-outline {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: transparent;
}

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

.btn-primary {
    color: white;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* ★★★ 검색 드롭다운 ★★★ */
.search-dropdown-wrapper {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1001;
}

.search-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown .search-form {
    display: flex;
    gap: 8px;
}

.search-dropdown .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
}

.search-dropdown .search-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-dropdown .search-submit {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.search-dropdown .search-submit:hover {
    background: var(--primary-hover);
}

/* ========== 티커 테이프 (헤더 아래 고정) ========== */
.ticker-tape-wrapper {
    position: fixed;
    top: calc(var(--admin-bar-height) + var(--header-height));
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    height: var(--ticker-height);
    overflow: hidden;
}

.ticker-tape-container {
    max-width: 100%;
    height: 100%;
    background: #ffffff !important;
}

.ticker-tape-container .tradingview-widget-container,
.ticker-tape-container .tradingview-widget-container__widget,
.ticker-tape-container iframe {
    height: 100% !important;
    background: #ffffff !important;
}

/* 본문 시작 위치 조정 */
.site-main {
    margin-top: calc(var(--admin-bar-height) + var(--header-height) + var(--ticker-height));
}

/* ========== 모바일 메뉴 토글 ========== */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ★★★ 모바일 메뉴 (슬라이드 패널) ★★★ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: var(--bg-primary);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu-panel {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* 모바일 검색 */
.mobile-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.mobile-search-input svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.mobile-search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.mobile-search-input input::placeholder {
    color: var(--text-muted);
}

/* 모바일 네비게이션 */
.mobile-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item > a {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* 모바일 액션 버튼 */
.mobile-actions {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.mobile-action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.mobile-action-btn.primary:hover {
    background: var(--primary-hover);
}

.mobile-action-btn.outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.mobile-action-btn.outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ========== 콘텐츠 그리드 ========== */
.content-grid,
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 30px;
    padding: 16px 0 !important;
}

.main-content,
.main-area {
    min-width: 0;
    max-width: 100%;
}

/* 오버플로우 방지 */
.main-content img,
.main-content iframe,
.article-content img,
.article-content iframe {
    max-width: 100% !important;
    height: auto;
}

/* 사이드바 - 본문과 함께 스크롤 */
.sidebar {
    /* sticky 제거 - 본문과 함께 스크롤 */
}

/* ========== 섹션 헤더 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px !important;
    flex-wrap: wrap;
    gap: 8px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 탭 버튼 */
.section-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

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

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 뷰 전환 버튼 */
.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ========== 뉴스 리스트 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--post-gap, 16px);
}

/* 뉴스 카드 */
.news-card {
    display: flex;
    gap: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* 썸네일 이미지 */
.news-thumb {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.news-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    color: var(--text-muted);
}

/* 카테고리 뱃지 */
.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    z-index: 10;
}

/* 뉴스 콘텐츠 */
.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.premium-badge,
.mini-premium-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--premium-badge-bg, #D4AF37);
    color: var(--premium-badge-text, #1a1a1a);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 8px;
    width: fit-content;
}

.mini-premium-badge {
    padding: 2px 6px;
    font-size: 9px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.meta-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 그리드형 뷰 */
.news-list.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--post-gap, 16px);
}

.news-list.grid-view .news-card {
    flex-direction: column;
}

.news-list.grid-view .news-thumb {
    width: 100%;
    height: 140px;
}

/* 로딩 상태 */
.news-list.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.news-list.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 페이지네이션 ========== */
.pagination-nav {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.pagination-nav .nav-links,
.pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-nav .page-numbers,
.pagination .page-link,
.page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.pagination-nav .page-numbers:hover,
.pagination .page-link:hover,
.page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.pagination-nav .page-numbers.current,
.pagination .page-link.current,
.page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-nav .page-numbers.dots,
.page-dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 8px;
    cursor: default;
}

.pagination-nav .page-numbers.dots:hover,
.page-dots:hover {
    background: transparent;
    color: var(--text-secondary);
}

/* ========== 카루셀 섹션 ========== */
/* ========== 카루셀 섹션 ========== */
.carousel-section {
    padding: 16px 0 !important;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px !important;
}

.carousel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.carousel-title-icon {
    font-size: 1.3rem;
}

/* 카루셀 네비게이션 - 항상 가로로 배치 */
.carousel-nav {
    display: flex;
    flex-direction: row !important;
    gap: 8px;
    align-items: center;
}

.carousel-nav-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 카루셀 트랙 컨테이너 */
.carousel-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

/* 슬라이드 - 4개 보이도록 설정 */
.carousel-slide {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: calc((100% - 48px) / 4);
    max-width: calc((100% - 48px) / 4);
}

@media (max-width: 1200px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 32px) / 3);
        min-width: calc((100% - 32px) / 3);
        max-width: calc((100% - 32px) / 3);
    }
}

@media (max-width: 900px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* 카루셀 카드 */
.carousel-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.2s;
}

.carousel-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.carousel-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.carousel-card-image {
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.carousel-card:hover .carousel-card-image img {
    transform: scale(1.05);
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    color: var(--text-muted);
}

.carousel-card-content {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-card-category {
    margin-bottom: 8px;
}

.carousel-card-category .category-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 3px;
}

.carousel-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.carousel-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.carousel-card-meta .meta-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 카루셀 인디케이터 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-indicator:hover,
.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ========== 위젯 ========== */
.widget,
.sidebar-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

/* 위젯 제목 - 모든 헤딩 태그 통일 */
.widget-title,
.sidebar-widget h2,
.sidebar-widget h3,
.sidebar-widget h4,
.widget h2,
.widget h3,
.widget h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    line-height: 1.4;
}

/* 워드프레스 기본 위젯 제목 스타일 강제 적용 */
.sidebar .widget h2.widget-title,
.sidebar .widget h2.widgettitle,
.sidebar .widget h2,
aside.sidebar .widget h2 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary) !important;
}

/* 사이드바 리스트 스타일 통일 */
.widget ul,
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li,
.sidebar-widget li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.widget li:last-child,
.sidebar-widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget li:first-child,
.sidebar-widget li:first-child {
    padding-top: 0;
}

.widget li a,
.sidebar-widget li a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget li a:hover,
.sidebar-widget li a:hover {
    color: var(--primary-color);
}

/* 검색 위젯 */
.widget_search .search-form,
.widget.widget_search form {
    display: flex;
    gap: 8px;
}

.widget_search .search-field,
.widget.widget_search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
}

.widget_search .search-field:focus,
.widget.widget_search input[type="search"]:focus {
    border-color: var(--primary-color);
}

.widget_search .search-submit,
.widget.widget_search button,
.widget.widget_search input[type="submit"] {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 인기 뉴스 위젯 */
.popular-news-list .popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-news-list .popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-news-list .popular-item:first-child {
    padding-top: 0;
}

.popular-item .rank-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.popular-item .rank-number.top-3 {
    background: var(--primary-color);
    color: white;
}

.popular-item .popular-content {
    flex: 1;
    min-width: 0;
}

.popular-item .popular-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.popular-item .popular-title a {
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item .popular-title a:hover {
    color: var(--primary-color);
}

.popular-item .popular-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== 공유 버튼 ========== */
/* 플러그인 공유 버튼 숨김 (테마 설정 버튼만 사용) */
.social-share,
.share-section:not(.trenue-share-wrap) {
    display: none !important;
}

.share-section {
    margin-top: 30px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.share-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.share-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-kakao { background: #FEE500; color: #3C1E1E; }
.share-naver-blog { background: #03C75A; color: white; }
.share-facebook { background: #1877F2; color: white; }
.share-x { background: #000000; color: white; }
.share-threads { background: #000000; color: white; }
.share-linkedin { background: #0A66C2; color: white; }
.share-telegram { background: #26A5E4; color: white; }
.share-link { background: #6b7280; color: white; }

/* ========== 콘텐츠 섹션 ========== */
.content-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* ========== 반응형 ========== */
@media (max-width: 1024px) {
    #site-navigation,
    .main-navigation {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .header-actions .btn-header {
        display: none;
    }
    
    .content-grid,
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .news-list.grid-view {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --ticker-height: 40px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .site-logo .logo-text {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-card {
        flex-direction: column;
        padding: 16px;
    }
    
    .news-thumb {
        width: 100%;
        height: 200px;
    }
    
    .search-dropdown {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    /* 모바일 페이지네이션 */
    .pagination-nav .page-numbers,
    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

/* ========== 유틸리티 ========== */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* 아카이브 헤더 */
.archive-header {
    position: relative;
    padding: 10px 0 !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px !important;
}

.archive-header.has-bg-image {
    background-size: cover;
    background-position: center;
    padding: 15px 0 !important;
}

.archive-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.archive-header.has-bg-image .archive-header-content {
    position: relative;
    z-index: 1;
}

.archive-header.has-bg-image .archive-title,
.archive-header.has-bg-image .archive-count,
.archive-header.has-bg-image .archive-description {
    color: white;
}

.archive-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.archive-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    font-size: 36px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.archive-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.archive-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== 관련 뉴스 (이미지 없이 제목/링크만) ========== */
.related-news {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.related-news h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item:first-child {
    padding-top: 0;
}

.related-item:hover {
    background: transparent;
}

.related-item-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
}

.related-item-badge.premium {
    background: var(--premium-badge-bg, #D4AF37);
    color: var(--premium-badge-text, #1a1a1a);
}

.related-item-content {
    flex: 1;
    min-width: 0;
}

.related-item-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.related-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item-title a:hover {
    color: var(--primary-color);
}

.related-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.no-related {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 콘텐츠 섹션 (최신뉴스와 동일한 형태) */
.content-section.news-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.content-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.content-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.content-section .section-title-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.content-section .section-title-link:hover {
    color: var(--primary-color);
}

.content-section .section-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.content-section .section-more {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.content-section .section-more:hover {
    text-decoration: underline;
}

/* 섹션 뉴스 리스트 - 최신뉴스와 동일 */
.content-section .news-list {
    display: flex;
    flex-direction: column;
    gap: var(--post-gap, 16px);
}

/* 리스트 뷰 (기본) - 최신뉴스와 동일한 스타일 */
.content-section .news-list.list-view {
    display: flex;
    flex-direction: column;
    gap: var(--post-gap, 16px);
}

.content-section .news-list.list-view .news-card {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.content-section .news-list.list-view .news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.content-section .news-list.list-view .news-thumb {
    width: 280px;
    min-width: 280px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.content-section .news-list.list-view .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 그리드 뷰 */
.content-section .news-list.grid-view {
    display: grid !important;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    gap: 20px;
}

.content-section .news-list.grid-view .news-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
    transition: all 0.2s;
}

.content-section .news-list.grid-view .news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 그리드 3열 이상: 이미지 16:9 비율 */
.content-section .news-list.grid-view .news-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 0;
    position: relative;
}

.content-section .news-list.grid-view .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-section .news-list.grid-view .news-content {
    padding: 16px;
    flex: 1;
}

.content-section .news-list.grid-view .news-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* 그리드 3열 이상: excerpt 숨김 */
.content-section .news-list.grid-view .news-excerpt {
    display: none;
}

/* 그리드 2열: 이미지 1:1 비율, excerpt 표시 */
.content-section .news-list.grid-view[style*="--grid-columns: 2"] .news-thumb,
.content-section .news-list.grid-view[style*="--grid-columns:2"] .news-thumb {
    aspect-ratio: 4/3;
}

.content-section .news-list.grid-view[style*="--grid-columns: 2"] .news-excerpt,
.content-section .news-list.grid-view[style*="--grid-columns:2"] .news-excerpt {
    display: block !important;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 섹션 카루셀 래퍼 */
.section-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 카루셀 화살표 버튼 */
.section-carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.section-carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.section-carousel-btn:hover svg {
    stroke: #fff;
}

.section-carousel-btn svg {
    stroke: var(--text-secondary);
    transition: stroke 0.2s;
}

/* 카루셀 뷰 */
.content-section .news-list.carousel-view,
.section-carousel-wrapper .news-list.carousel-view {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* 카루셀 스크롤바 숨김 (화살표로 이동) */
.section-carousel-wrapper .news-list.carousel-view::-webkit-scrollbar {
    display: none;
}

.section-carousel-wrapper .news-list.carousel-view {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.content-section .news-list.carousel-view .news-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
    transition: all 0.2s;
}

.content-section .news-list.carousel-view .news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.content-section .news-list.carousel-view .news-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 0;
    position: relative;
}

.content-section .news-list.carousel-view .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-section .news-list.carousel-view .news-content {
    padding: 16px;
    flex: 1;
}

.content-section .news-list.carousel-view .news-title {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.content-section .news-list.carousel-view .news-excerpt {
    display: none;
}

@media (max-width: 1024px) {
    .content-section .news-list.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 2열로 변경되면 excerpt 표시 */
    .content-section .news-list.grid-view .news-excerpt {
        display: block !important;
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .content-section .news-list.list-view .news-card {
        flex-direction: column;
        padding: 16px;
    }
    
    .content-section .news-list.list-view .news-thumb {
        width: 100%;
        height: 200px;
        min-width: 100%;
    }
    
    .content-section .news-list.grid-view {
        grid-template-columns: 1fr;
    }
    
    .content-section .news-list.carousel-view .news-card {
        flex: 0 0 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
    }
    
    /* 모바일에서 카루셀 버튼 크기 조정 */
    .section-carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .section-carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ========== 사이드바 위젯 통일 스타일 ========== */
.sidebar .widget,
.sidebar .sidebar-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar .widget-title,
.sidebar .widget h3,
.sidebar .widget h4,
.sidebar-widget h3,
.sidebar-widget h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Recent Posts 위젯 스타일 */
.widget_recent_entries ul,
.widget.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li,
.widget.widget_recent_entries li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.widget_recent_entries li:last-child,
.widget.widget_recent_entries li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget_recent_entries li:first-child,
.widget.widget_recent_entries li:first-child {
    padding-top: 0;
}

.widget_recent_entries a,
.widget.widget_recent_entries a {
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.widget_recent_entries a:hover,
.widget.widget_recent_entries a:hover {
    color: var(--primary-color);
}

.widget_recent_entries .post-date,
.widget.widget_recent_entries .post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 인기 뉴스 위젯 통일 */
.popular-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-news-list .popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-news-list .popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-news-list .popular-item:first-child {
    padding-top: 0;
}

.popular-item .rank-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.popular-item .rank-number.top-3 {
    background: var(--primary-color);
    color: white;
}

.popular-item .popular-content {
    flex: 1;
    min-width: 0;
}

.popular-item .popular-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.popular-item .popular-title a {
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item .popular-title a:hover {
    color: var(--primary-color);
}

.popular-item .popular-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== 추가 스타일 v1.0.9 ========== */

/* 뉴스 카드 이미지 크기 확대 */
.news-list.list-view .news-thumb {
    width: 300px;
    height: 190px;
}

@media (max-width: 768px) {
    .news-list.list-view .news-thumb {
        width: 100%;
        height: 180px;
    }
}

/* 사이드바 내 모든 위젯 스타일 통일 */
.sidebar .widget,
aside.sidebar .widget,
.sidebar > .widget {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

/* 워드프레스 Recent Posts 위젯 스타일 */
.widget_recent_entries h2,
.widget_recent_entries .widget-title,
.widget_recent_entries .widgettitle {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.widget_recent_entries ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_recent_entries li {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.widget_recent_entries li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.widget_recent_entries li:first-child {
    padding-top: 0 !important;
}

.widget_recent_entries li a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.widget_recent_entries li a:hover {
    color: var(--primary-color) !important;
}

.widget_recent_entries li .post-date {
    display: block;
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px;
}

/* 관련뉴스 동일 박스 내 리스트 스타일 개선 */
.related-news {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.related-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-item:hover {
    background: transparent;
}

/* 콘텐츠 섹션 - 최신뉴스와 동일한 형태 */
.content-section.news-section .section-header {
    margin-bottom: 16px;
}

.content-section.news-section .section-title {
    font-size: 1.1rem;
}

.content-section.news-section .section-title-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section.news-section .section-title-link:hover {
    color: var(--primary-color);
}

.content-section.news-section .section-more {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

.content-section.news-section .section-more:hover {
    text-decoration: underline;
}

/* 콘텐츠 섹션 뷰 토글 */
.section-view-toggle {
    display: flex;
    gap: 4px;
}

.section-view-toggle .view-btn {
    width: 32px;
    height: 32px;
}

/* ========== 사이드바 위젯 완전 통일 (v1.0.10) ========== */

/* 모든 사이드바 위젯 기본 스타일 */
.sidebar .widget,
aside.sidebar .widget,
.sidebar > div,
.sidebar-widget {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* 모든 위젯 제목 통일 */
.sidebar .widget h2,
.sidebar .widget h3,
.sidebar .widget h4,
.sidebar .widget .widget-title,
.sidebar .widget .widgettitle,
.sidebar-widget h2,
.sidebar-widget h3,
.sidebar-widget h4,
.sidebar-widget .widget-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* 위젯 리스트 스타일 통일 */
.sidebar .widget ul,
.sidebar-widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar .widget ul li,
.sidebar-widget ul li {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.sidebar .widget ul li:last-child,
.sidebar-widget ul li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.sidebar .widget ul li:first-child,
.sidebar-widget ul li:first-child {
    padding-top: 0 !important;
}

.sidebar .widget ul li a,
.sidebar-widget ul li a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.sidebar .widget ul li a:hover,
.sidebar-widget ul li a:hover {
    color: var(--primary-color) !important;
}

/* 검색 위젯 스타일 개선 */
.sidebar .widget_search,
.sidebar .widget.widget_search {
    background: var(--bg-primary) !important;
}

.sidebar .widget_search h2,
.sidebar .widget_search .widget-title,
.sidebar .widget_search .widgettitle {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.sidebar .widget_search form,
.sidebar .widget_search .search-form {
    display: flex !important;
    gap: 8px !important;
}

.sidebar .widget_search input[type="search"],
.sidebar .widget_search .search-field {
    flex: 1 !important;
    padding: 12px 14px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.9rem !important;
    outline: none !important;
    background: var(--bg-secondary) !important;
    min-width: 0 !important;
}

.sidebar .widget_search input[type="search"]:focus,
.sidebar .widget_search .search-field:focus {
    border-color: var(--primary-color) !important;
    background: var(--bg-primary) !important;
}

.sidebar .widget_search input[type="submit"],
.sidebar .widget_search button[type="submit"],
.sidebar .widget_search .search-submit {
    padding: 12px 20px !important;
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
}

.sidebar .widget_search input[type="submit"]:hover,
.sidebar .widget_search button[type="submit"]:hover,
.sidebar .widget_search .search-submit:hover {
    background: var(--primary-hover) !important;
}

/* Recent Posts 위젯 PREMIUM 뱃지 */
.sidebar .widget_recent_entries li .mini-premium-badge,
.sidebar .widget_recent_entries li .premium-badge {
    display: inline-block !important;
    padding: 2px 6px !important;
    background: var(--premium-badge-bg, #D4AF37) !important;
    color: var(--premium-badge-text, #1a1a1a) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
}

/* 관련뉴스 - "기사 관련 최신뉴스"와 동일한 스타일 */
.related-news {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.related-news h3 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    color: var(--text-primary) !important;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-bottom: none;
    background: transparent;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item:first-child {
    padding-top: 0;
}

.related-item:hover {
    background: transparent;
}

.related-item-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
}

.related-item-badge.premium {
    background: var(--premium-badge-bg, #D4AF37);
    color: var(--premium-badge-text, #1a1a1a);
}

.related-item-content {
    flex: 1;
    min-width: 0;
}

.related-item-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item-link:hover {
    color: var(--primary-color);
}

.related-item-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.related-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item-title a:hover {
    color: var(--primary-color);
}

.related-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

.no-related {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 광고 영역 - 내용 없을 때 숨김 */
.ad-slot:empty,
.ad-wrapper:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 사이드바 내 인기 뉴스 스타일 통일 */
.sidebar .popular-list,
.sidebar-widget .popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar .popular-item,
.sidebar-widget .popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.sidebar .popular-item:last-child,
.sidebar-widget .popular-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.sidebar .popular-item:first-child,
.sidebar-widget .popular-item:first-child {
    padding-top: 0 !important;
}

.sidebar .popular-rank,
.sidebar-widget .popular-rank {
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.sidebar .popular-content a,
.sidebar-widget .popular-content a {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: var(--text-primary) !important;
}

/* ========== 댓글 영역 스타일 ========== */
.comments-area {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list > li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment-list > li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-meta .fn {
    font-weight: 600;
    color: var(--text-primary);
    font-style: normal;
}

.comment-meta time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-meta .edit-link {
    font-size: 0.75rem;
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment-content p {
    margin: 0;
}

.reply {
    margin-top: 10px;
}

.reply a {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

.reply a:hover {
    text-decoration: underline;
}

/* 대댓글 */
.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin-top: 20px;
}

/* 댓글 폼 */
.comment-respond {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comment-reply-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-primary);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: block;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    width: fit-content;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: var(--primary-hover);
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

.comment-awaiting-moderation {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

/* ========== 모바일 추가 수정 (v1.0.58) ========== */

/* On Top 버튼 중복 방지 - 테마 버튼만 표시 */
button[id*="scroll"]:not(#scroll-to-top),
a[id*="scroll"]:not(#scroll-to-top),
.scroll-top-btn:not(#scroll-to-top),
.back-to-top:not(#scroll-to-top),
.scrolltop:not(#scroll-to-top),
.to-top:not(#scroll-to-top),
a[href="#top"]:not(#scroll-to-top),
#wpfront-scroll-top-container,
.wpfront-scroll-top-wrap,
.rocket-to-top,
.go-top,
.totop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 플러그인 소셜 공유 버튼 완전 숨김 - 테마 설정 버튼만 표시 */
.social-share,
.share-section:not(.trenue-share-wrap),
.sharedaddy,
.jp-relatedposts-post-share,
.post-share:not(.trenue-share-wrap),
.entry-share:not(.trenue-share-wrap),
.sharing-buttons:not(.trenue-share-wrap) {
    display: none !important;
}

/* 모바일 티커 - 투명 제거, 배경 추가 */
@media (max-width: 768px) {
    :root {
        --ticker-height: 50px !important;
    }
    
    .ticker-tape-wrapper {
        height: 50px !important;
        overflow: visible !important;
        background: #fff !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .ticker-tape-container,
    .ticker-tape-container .tradingview-widget-container,
    .ticker-tape-container .tradingview-widget-container__widget,
    .ticker-tape-container iframe {
        height: 50px !important;
        background: #fff !important;
    }
    
    /* site-main 상단 마진 조정 */
    .site-main {
        margin-top: calc(var(--admin-bar-height, 0px) + var(--header-height, 60px) + 50px) !important;
    }
    
    /* 모바일 광고 배너 */
    .header-ad-banner {
        padding: 5px 10px !important;
        margin-bottom: 10px !important;
    }
    
    .header-ad-banner img,
    .header-ad-banner iframe,
    .header-ad-banner > div {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* 모바일 소셜 공유 아이콘 크기 축소 */
    .trenue-share-wrap {
        padding: 12px !important;
        margin: 16px 0 !important;
    }
    
    .trenue-share-btns button,
    .trenue-share-btns a {
        width: 32px !important;
        height: 32px !important;
    }
    
    .trenue-share-btns svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .trenue-share-label {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
}

/* ========== 모바일 메뉴 스타일 개선 ========== */
.mobile-menu-panel {
    padding: 15px 20px !important;
}

.mobile-nav ul {
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-nav li {
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 0 !important;
}

.mobile-nav a {
    padding: 12px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: block !important;
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item > a {
    color: #2563eb !important;
}

/* 커뮤니티 메뉴 - 데스크톱과 동일 스타일 (녹색) */
.mobile-nav a[href*="community"],
.mobile-nav a[href*="커뮤니티"] {
    color: #10b981 !important;
}

.mobile-actions {
    margin-top: 15px !important;
    padding-top: 15px !important;
    gap: 10px !important;
}

.mobile-action-btn {
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* 모바일 검색 */
.mobile-search {
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
}

/* ========== 커뮤니티 페이지 스타일 ========== */

/* 커뮤니티 왼쪽 사이드바 메뉴 폭 - 홈페이지 사이드바와 동일 */
.community-sidebar,
.forum-sidebar,
.bbp-sidebar,
.community-nav,
.community-left-menu,
.forum-menu,
.board-sidebar,
[class*="community"] aside,
[class*="forum"] aside,
.community-wrapper aside,
.community-container aside {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    flex-shrink: 0 !important;
}

/* 커뮤니티 사이드바 내부 여백 줄이기 */
.community-sidebar .sidebar-menu,
.forum-sidebar .menu,
.community-nav ul,
.community-left-menu ul {
    padding: 10px !important;
}

.community-sidebar .menu-item a,
.forum-sidebar .menu-item a,
.community-nav a,
.community-left-menu a {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

/* 커뮤니티 메인 콘텐츠 영역 확장 */
.community-content,
.forum-content,
.bbp-content,
.community-main,
.board-content {
    flex: 1 !important;
    min-width: 0 !important;
}

/* 커뮤니티 레이아웃 */
.community-wrapper,
.community-container,
.forum-wrapper,
.board-wrapper {
    display: flex !important;
    gap: 20px !important;
}

/* 검색창 placeholder 가운데 정렬 */
.community-search input::placeholder,
.forum-search input::placeholder,
.board-search input::placeholder,
input[placeholder*="검색"]::placeholder,
input[placeholder*="게시글"]::placeholder,
.search-form input::placeholder {
    text-align: center !important;
}

.community-search input,
.forum-search input,
.board-search input,
.community-wrapper input[type="text"],
.community-wrapper input[type="search"] {
    text-align: left !important;
}

.community-search input:placeholder-shown,
.forum-search input:placeholder-shown,
input[placeholder*="검색"]:placeholder-shown,
input[placeholder*="게시글"]:placeholder-shown {
    text-align: center !important;
}

/* 추천 버튼을 메타 영역(댓글, 조회수 옆)으로 이동 */
.post-vote,
.vote-box,
.topic-vote,
.entry-vote,
.article-vote,
[class*="vote-count"],
[class*="recommend"] {
    display: none !important; /* 원래 위치 숨김 */
}

/* 포스트 메타 영역에 좋아요/싫어요 표시 */
.post-meta .vote-inline,
.entry-meta .vote-inline,
.topic-meta .vote-inline,
.article-meta .vote-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: 10px !important;
}

.vote-inline .vote-up,
.vote-inline .vote-down {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 13px !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
}

.vote-inline .vote-up:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
}

.vote-inline .vote-down:hover {
    color: #ef4444 !important;
    background: #fef2f2 !important;
}

.vote-inline .vote-up.active {
    color: #2563eb !important;
}

.vote-inline .vote-down.active {
    color: #ef4444 !important;
}

/* 커뮤니티 포스트 리스트 아이템 */
.community-post-item,
.forum-topic-item,
.board-item {
    display: flex !important;
    gap: 16px !important;
    padding: 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    align-items: flex-start !important;
}

/* 추천 숫자를 없애고 메타에 통합 */
.community-post-item .vote-count,
.forum-topic-item .vote-count,
.board-item .vote-count {
    display: none !important;
}

/* 포스트 메타 스타일 */
.community-post-meta,
.forum-topic-meta,
.board-item-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13px !important;
    color: #64748b !important;
    flex-wrap: wrap !important;
}

.community-post-meta span,
.forum-topic-meta span,
.board-item-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 좋아요/싫어요 아이콘 스타일 */
.meta-likes,
.meta-dislikes {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
}

.meta-likes {
    color: #2563eb !important;
}

.meta-likes:hover {
    background: #eff6ff !important;
}

.meta-dislikes {
    color: #64748b !important;
}

.meta-dislikes:hover {
    background: #f1f5f9 !important;
    color: #ef4444 !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .community-sidebar,
    .forum-sidebar,
    .bbp-sidebar,
    .community-nav,
    .community-left-menu {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    .community-wrapper,
    .community-container,
    .forum-wrapper {
        flex-direction: column !important;
    }
}

/* ========== v1.0.80 간격 통일 (16px) ========== */
/* 모든 WordPress 위젯 테두리 완전 제거 */
.sidebar .widget,
.sidebar > .widget,
.sidebar-widget-area .widget,
.sidebar-home .widget,
.sidebar-top .widget,
.sidebar-main .widget,
aside .widget,
aside > .widget,
.sidebar .widget_custom_html,
.sidebar .widget_text,
.sidebar .textwidget {
    background: transparent !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 트레이딩뷰 위젯 테두리 완전 제거 */
.tradingview-widget-container,
.tradingview-widget-container__widget,
.sidebar .tradingview-widget-container,
.widget .tradingview-widget-container,
[class*="tradingview"],
.tradingview-widget-container *,
.widget_custom_html .tradingview-widget-container,
.textwidget .tradingview-widget-container,
.sidebar iframe,
.widget iframe {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 빈 위젯 및 광고 컨테이너 숨기기 */
.sidebar .widget:empty,
.sidebar .widget_custom_html:empty,
.sidebar .textwidget:empty,
.ad-container:empty,
.sidebar .ad-container:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* 광고 컨테이너 기본 스타일 */
.ad-container {
    border: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 사이드바 위젯 간격 통일 */
.sidebar-widget {
    margin: 0 !important;
}

/* 스톡티커 아래 간격 제거 */
.site-main {
    padding-top: 0 !important;
}

/* 카루셀 섹션 간격 */
.carousel-section {
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
}

/* 콘텐츠 그리드 상단 간격 */
.content-grid {
    padding-top: 16px !important;
}

/* ==========================================================================
   기사 하단 고지 (Disclaimer)
   ========================================================================== */

.article-disclaimer {
    margin: 30px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.disclaimer-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-icon svg {
    color: #fff;
    width: 20px;
    height: 20px;
}

.disclaimer-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.7;
    color: #64748b;
    word-break: keep-all;
}

.disclaimer-source {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 20px 24px;
    text-align: center;
}

.source-notice {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.3px;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.source-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.source-icon {
    font-size: 18px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.source-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
    .disclaimer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .disclaimer-text {
        font-size: 10px;
    }
    
    .disclaimer-source {
        padding: 16px;
    }
    
    .source-notice {
        font-size: 14px;
    }
    
    .source-link {
        padding: 12px 24px;
        font-size: 14px;
    }
}
