/* ============================================
   사이드바 공통 스킨 1
   ============================================ */

/* 많이 본 기사 박스 */
.popular_news_box {
    background: #fff;
}

/* 제목과 탭을 같은 줄에 배치 */
.popular_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000000;
    margin-bottom: 18px;
}

.sidebar_title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #000000;
}

.popular_tabs {
    display: flex;
    gap: 0;
    align-items: center;
}

.tab_btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab_btn:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.tab_btn:hover {
    color: #5AB2FF;
}

.tab_btn.active {
    color: #5AB2FF;
    font-weight: 700;
}


/* 리스트 */
.popular_list {
    display: none;
    padding: 0;
}

.popular_list.active {
    display: block;
}

.popular_list ol {
    list-style: none;
    counter-reset: popular-counter;
    margin: 0;
    padding: 0;
}

.popular_list ol li {
    counter-increment: popular-counter;
    margin-bottom: 18px;
    position: relative;
    padding-left: 35px;
}

.popular_list ol li:last-child {
    margin-bottom: 0;
}

/* 순위 숫자 (크게) */
.popular_list ol li::before {
    content: counter(popular-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* 썸네일 있는 항목 (1번만) */
.popular_item_with_thumb {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.popular_item_with_thumb .item_title {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.popular_item_with_thumb .item_title:hover {
    color: #5AB2FF;
}

.popular_item_with_thumb .item_thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0;
}

.popular_item_with_thumb .item_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 일반 링크 */
.popular_list a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.popular_list a:hover {
    color: #5AB2FF;
}

/* 실시간뉴스 박스 */
.latest_news_box {
    background: #fff;
    margin-top: 50px;
}

.latest_news_title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px 0;
    color: #000000;
    border-bottom: 1px solid #000000;
    padding-bottom: 0;
}

.latest_news_list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    padding-left: 70px;
}

/* 타임라인 세로선 */
.latest_news_list::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e5e5;
}

.latest_news_item {
    position: relative;
    margin-bottom: 12px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.latest_news_item:last-child {
    margin-bottom: 0;
}

/* 타임라인 원형 마커 (세로선 위의 점) */
.latest_news_item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5e5e5;
    z-index: 1;
}

.news_time {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 40px;
}


.news_title {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
    flex: 1;
}

.news_title:hover {
    color: #5AB2FF;
}

.latest_news_footer {
    margin-top: 20px;
    text-align: right;
}

.view_all_link {
    color: #5AB2FF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.view_all_link:hover {
    color: #4a9fdf;
    text-decoration: underline;
}

.ad_block {
    margin-top: 50px;
}