/* ==========================================================================
   최신뉴스 위젯 전용 캡슐화 CSS (스타일 충돌 방지)
   ========================================================================== */
.gn-news-widget-v2 {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
}

.gn-news-widget-v2 *,
.gn-news-widget-v2 *::before,
.gn-news-widget-v2 *::after {
    box-sizing: border-box;
}

/* 상단 타이틀 영역 */
.gn-news-widget-v2__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0px solid #e5e7eb;
    border-bottom: 2px solid #111111;
    padding: 8px 0 6px 0;
    margin-bottom: 8px;
}

.gn-news-widget-v2__title {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

.gn-news-widget-v2__title a {
    color: #111111 !important;
    text-decoration: none !important;
}

.gn-news-widget-v2__title-highlight {
    color: #1a6fb8 !important; /* 포인트 블루 컬러 */
}

.gn-news-widget-v2__title .text-blue {
    color: #1a6fb8 !important;
}

/* 리스트 스타일 초기화 및 재정의 */
.gn-news-widget-v2__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gn-news-widget-v2__item {
    display: flex !important;
    align-items: center !important;
    padding: 4px 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
}

/* 좌측 점 불릿 */
.gn-news-widget-v2__bullet {
    font-weight: bold;
    color: #9ca3af;
    margin-right: 6px;
    user-select: none;
}

/* 링크 및 제목 (말줄임 처리) */
.gn-news-widget-v2__link {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important; /* flex 하위 요소 text-overflow 작동용 */
    color: #1f2937 !important;
    text-decoration: none !important;
}

.gn-news-widget-v2__subject {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.gn-news-widget-v2__link:hover .gn-news-widget-v2__subject {
    color: #1a6fb8 !important;
    text-decoration: underline !important;
}

/* 배지 공통 스타일 */
.gn-news-widget-v2__badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    margin-left: 4px !important;
    flex-shrink: 0 !important;
}

/* 공지 / NEW / HOT 배지 색상 */
.gn-news-widget-v2__badge--notice {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    margin-right: 4px !important;
    margin-left: 0 !important;
}

.gn-news-widget-v2__badge--new {
    background-color: #ef4444 !important; /* 빨간색 NEW */
    color: #ffffff !important;
}

.gn-news-widget-v2__badge--hot {
    background-color: #f97316 !important; /* 주황색 HOT */
    color: #ffffff !important;
}

/* 댓글 수 */
.gn-news-widget-v2__comment {
    font-size: 0.75rem !important;
    color: #ef4444 !important;
    font-weight: 600 !important;
    margin-left: 5px !important;
    flex-shrink: 0 !important;
}

.gn-news-widget-v2__empty {
    padding: 15px 0 !important;
    text-align: center !important;
    color: #9ca3af !important;
    font-size: 0.85rem !important;
}