:root {
    --news-title-color: #f9fafb;
}

body[data-theme='light'] {
    --news-title-color: #1f2937;
}

/* 뉴스 페이지 공통: 기본 폰트/스크롤 및 포인트 컬러(주황) */
body[data-page='news'] {
    --color-primary: #f97316;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* 뉴스 라이트 모드: 기존 밝은 팔레트 유지 */
body[data-page='news'][data-theme='light'] {
    --color-bg: #f5f6f9;
    --color-surface: #ffffff;
    --color-surface-2: #f1f3f7;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    background: var(--color-bg);
}

/* 뉴스 페이지 라이트 모드일 때만 밝은 헤더 사용 */
body[data-page='news'][data-theme='light'] .header {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.header .brand {
    gap: 12px;
    align-items: center;
}

.header .container {
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 0;
}

.header__top {
    min-height: auto;
    align-items: flex-end;
    padding: 14px 0;
}


.header__nav-row {
    min-height: 50px;
    align-items: center;
    padding: 6px 0 10px;
    width: 100%;
    justify-self: stretch;
    margin-top: -10px;
}
.header__nav-row .nav--primary a,
.header__nav-row .nav--secondary a {
    line-height: 1.2;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 모바일/태블릿(≤992px): 뉴스 섹션 메뉴(홈·분야별·기획…)를
   모바일 내비(.header__mobile-nav) 하단에 가로 스크롤 줄로 노출.
   base.css가 .header__nav-row 와 .nav--primary 를 각각 display:none !important
   로 숨기므로 !important 로 되살린다. 가로 스크롤 동작은 .scroll-x 유틸리티가 담당. */
@media (max-width: 992px) {
    .header--overlay .header__nav-row {
        display: flex !important;
        min-height: auto;
        margin-top: 0;
        padding: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--border-color);
    }

    .header--overlay .header__nav-row .nav--primary {
        display: flex !important; /* base 의 display:none !important 무력화 */
        gap: 30px;
        width: 100%;
        height: 46px;
        padding: 0 16px;
    }

    .header--overlay .header__nav-row .nav--primary a {
        padding: 0;
        margin-left: 0 !important; /* 뉴스관리 링크의 inline margin-left:auto 무력화 */
        font-size: 0.95rem;
        font-weight: 600;
        transform: none; /* 데스크톱 scaleY(1.1) 해제 */
    }

    /* 분야별(섹션) 페이지: 카테고리 subnav 는 데스크톱용으로 grid-row:3 에 고정돼
       있어, 모바일에선 자동 배치되는 .header__nav-row 가 점유된 행3을 건너뛰고
       행4로 밀려 카테고리가 섹션 메뉴보다 위에 표시된다.
       모바일에선 고정을 풀어(소스 순서) 섹션 메뉴 아래에 오도록 한다. */
    .header--overlay .subnav--categories {
        grid-row: auto;
        padding: 14px 16px 6px 16px !important;
        gap: 30px !important;
    }
}

.brand__text {
    margin-left: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.header__top .nav--primary a,
.header__top .nav--primary a:hover,
.header__top .nav--primary a.is-active {
    color: var(--color-text);
    background: transparent;
}

/* 뉴스 상단 오른쪽 보조 메뉴(공연/행사 안내, 시청자 참여, 편성표) 가독성 향상 */
.header__top .nav--secondary a {
    color: #fff !important;
    font-weight: 400;
}

/* 뉴스 라이트 모드에서는 검정 계열로 표시 */
body[data-page='news'][data-theme='light'] .header__top .nav--secondary a {
    color: #333 !important;
}

.header__top .nav--secondary a:hover,
.header__top .nav--secondary a.is-active {
    color: var(--color-primary);
}

/* 활성 메뉴 표시 — nav.js 가 body 의 data-news / data-category 와 링크의 동일
   속성을 매칭해 .is-active 를 부여한다(데스크톱·모바일 공통).
   섹션 메뉴(홈/분야별…)와 카테고리(전체/정치…) 모두 색상+굵기로 강조한다. */
.header__nav-row .nav--primary a.is-active,
.header__nav-row .nav--secondary a.is-active,
.subnav--categories a.is-active {
    color: var(--color-primary) !important;
    font-weight: 700;
}

/* 섹션 메뉴는 가로 스크롤(.scroll-x) 컨테이너라 밑줄(::after, bottom:-2px)이
   잘린다. 밑줄 대신 색상+굵기로만 활성/호버를 표시한다.
   (데스크톱 상단 .header__top .nav--primary 밑줄에는 영향 없음) */
.header__nav-row .nav--primary a::after {
    display: none;
}

.subnav--categories {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: hidden;
    border-top: 0;
    /*background: var(--color-surface);*/
    padding: 0;
    height: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    grid-row: 3;
    margin-top: 0;
}

/* 뉴스 다크 모드에서는 하위 카테고리 바 배경을 전체 배경색과 통일 */
body[data-page='news']:not([data-theme='light']) .subnav--categories {
    /*background: var(--color-bg);*/
}

body[data-page='news'][data-news="home"] .subnav--categories,
body[data-page='news'][data-news="sectors"] .subnav--categories {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    overflow-x: auto;
    overflow-y: hidden;
    /* 모바일: 폭 초과 시 터치로 가로 스크롤(관성 스크롤) */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    /* 스크롤바는 숨겨 max-height 안에서 잘리지 않도록 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-top: 1px solid var(--border-color);
    padding: 14px 0 6px;
    height: auto;
    margin-top: -8px;
    min-height: 40px;
    max-height: 40px;
}

/* 가로 스크롤바 숨김(WebKit/Blink) */
body[data-page='news'][data-news="home"] .subnav--categories::-webkit-scrollbar,
body[data-page='news'][data-news="sectors"] .subnav--categories::-webkit-scrollbar {
    display: none;
}

/* 홈: 헤더 영역 폰트만 Pretendard로 변경 (모든 뉴스 페이지 적용) */
.header .brand__logo,
.header .brand__text,
.header .nav a,
.header .subnav a,
.header .mobile-menu a,
.header .hamburger {
    font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.subnav--categories a {
    position: relative;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
    border: none !important;
    border-bottom: none !important;
    line-height: 1.2;
}

/* 상단 메뉴(홈/단독/기획...)와 좌측 정렬선 맞추기 위해 첫 항목만 왼쪽 패딩 제거 */
.subnav--categories a:first-child {
    padding-left: 0;
}

.subnav--categories a::before,
.subnav--categories a::after {
    display: none !important;
    content: none !important;
}

.subnav--categories a:hover,
.subnav--categories a.is-active {
    color: var(--color-primary);
    background: transparent;
    border: none !important;
    border-bottom: none !important;
}

.subnav--categories a.is-active {
    font-weight: 600;
}

.news-listing {
    padding: 24px 0 40px;
}

.news-listing__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.news-listing__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

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

.news-list-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: inherit;
}

.news-list-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 600;
}

.news-list-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.news-list-desc {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    font-size: 0.82rem;
    color: #9ca3af;
    /* 왼쪽 날짜 / 오른쪽 기자명 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.news-side-block {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
}

.news-side-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.news-side-list {
    list-style: none;
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.news-side-list a {
    color: var(--color-text);
    font-size: 0.9rem;
}

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

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.pagination__btn {
    background: var(--color-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.pagination__pages {
    display: flex;
    gap: 6px;
}

.pagination__pages button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--color-surface);
    font-size: 0.85rem;
    cursor: pointer;
}

.pagination__pages button.is-active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

@media (max-width: 1024px) {
    .news-listing__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-listing__side {
        order: 2;
    }
}

@media (max-width: 720px) {
    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-thumb {
        width: 100%;
    }
}

.news-hero {
    padding: 24px 0 16px;
}

.news-hero__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: stretch;
}

@media (max-width: 1200px) {  }
@media (max-width: 992px) { .news-hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { }
@media (max-width: 576px) { }
@media (max-width: 360px) { }

.news-hero__main {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: all var(--transition-base);
}

.news-hero__main:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.news-hero__media-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.news-hero__media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-hero__main:hover .news-hero__media-wrapper img {
    transform: scale(1.05);
}

.news-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4) 60%, transparent);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.news-hero__title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.news-hero__meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

.news-hero__side {
    display: grid;
    gap: 16px;
}

.news-hero__side-feature {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: all var(--transition-base);
}

.news-hero__side-feature:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.news-hero__side-media-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.news-hero__side-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-hero__side-feature:hover .news-hero__side-media-wrapper img {
    transform: scale(1.05);
}

.news-hero__side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3) 50%, transparent);
    color: white;
}

.news-hero__side-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

.news-hero__side-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}

.news-hero__side-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.news-hero__list-item {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: all var(--transition-base);
    position: relative;
    padding-left: 14px;

    /* 1줄 말줄임 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-hero__list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.news-hero__list-item:hover {
    color: var(--color-primary);
    padding-left: 18px;
}

.news-hero__list-item:last-child {
    border-bottom: none;
}

.news-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.news-card {
    background: var(--color-surface);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all var(--transition-base);
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.news-card__media {
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(148, 163, 184, 0.18));
    display: grid;
    place-items: center;
    color: var(--color-muted);
    font-size: 0.8rem;
    overflow: hidden;
}

.news-hero__media img,
.news-hero__side-media img,
.news-card__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-card__title {
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.4;
    transition: color var(--transition-base);
}

.news-card:hover .news-card__title {
    color: var(--color-primary);
}

.news-card__meta {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.clip-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.clip-card {
    display: grid;
    gap: 8px;
    transition: all var(--transition-base);
    transform-origin: center;
    position: relative;
    z-index: 1;
}

.clip-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.clip-card:first-child {
    transform-origin: left center;
}

.clip-card:last-child {
    transform-origin: right center;
}

.clip-card__media {
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(59, 130, 246, 0.18));
    display: grid;
    place-items: center;
    color: var(--color-muted);
    font-size: 0.8rem;
    transition: all var(--transition-base);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.clip-card:hover .clip-card__media {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    border-color: var(--color-primary);
}

.clip-card__title {
    font-size: 0.85rem;
    font-weight: 600;
}

.channel-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(80px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.channel {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-surface);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    border: 2px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all var(--transition-base);
    cursor: pointer;
}

.channel:hover {
    background: linear-gradient(135deg, var(--color-primary), #fb923c);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    border-color: var(--color-primary);
}

.news-detail {
    display: grid;
    gap: 20px;
}

.news-detail__content {
    color: var(--color-muted);
}

@media (max-width: 980px) {


    .news-hero__title {
        font-size: 1.2rem;
    }

    .news-hero__overlay {
        padding: 12px;
        gap: 0;
    }

    .news-hero__side-overlay {
        padding: 12px;
    }

    .news-hero__side-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 720px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .news-card__title {
        font-size: 1.05rem;
    }
}

/* news.html 에서 이전 */
.section__title,
.news-section-label {
    font-size: 1.5rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    letter-spacing: normal;
    word-break: keep-all;
    position: relative;
    padding-left: 16px;
}

.section__title::before,
.news-section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    background: var(--title-color, var(--color-primary));
    border-radius: 2px;
    display: var(--title-bar-display, block);
}

.news-section-label {
    margin-bottom: 16px;
}

.news-hero__main {
    background: var(--color-surface);
    border: 1px solid var(--border-color);
}

.news-hero__side-feature {
    background: transparent;
    border: none;
    box-shadow: none;
}

.news-hero__side-feature:hover {
    box-shadow: none;
    transform: none;
}

.news-hero__side-list {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.news-hero__side-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    justify-content: space-between;
}

@media (max-width: 1200px) {  }
@media (max-width: 992px) { .news-hero__side-list { gap: 10px; } }
@media (max-width: 768px) { }
@media (max-width: 576px) { }
@media (max-width: 360px) { }

.news-hero__side-list .news-hero__list-item {
    padding-left: 0;
    border-bottom: none;
}

.news-hero__side-list .news-hero__list-item {
    font-size: 1rem;
    /*font-weight: 500;*/
    line-height: 1.35;
    letter-spacing: normal;
    word-break: keep-all;
    color: var(--news-title-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-hero__side-list .news-hero__list-item {
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-width: 0;
    padding: 0;
    text-decoration: underline;
}

.news-hero__side-list .news-hero__list-item > span {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-hero__side-list .news-hero__list-item::before {
    content: none;
}

.news-hero__side-list .news-hero__list-item:hover {
    padding-left: 0;
}



.section--latest {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    margin-top: 8px;
    padding-bottom: 16px;
}

body[data-theme='light'] .section--latest .news-card {
    background: #fff;
}

body[data-theme='light'] .section--latest .news-card:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.22);
}

.section--latest .news-card:hover .news-card__title {
    color: var(--news-title-color);
}

body[data-theme='light'] .section--latest .news-card__media,
body[data-theme='light'] .section--latest .news-card__media img {
    background: #fff;
}

.section--latest .news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) { .section--latest .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 992px) { .section--latest .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {  }
@media (max-width: 576px) {.section--latest .news-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); } }
@media (max-width: 360px) { }

.section--latest .news-card__title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: normal;
    word-break: keep-all;
    color: var(--news-title-color);
}





.news-hero__side {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 16px;
}

.news-hero__title,
.news-hero__side-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: normal;
    word-break: keep-all;
    color: var(--news-title-color);
}

.news-hero__title,
.news-hero__side-title {
    color: #fff;
    font-weight: 700;
}

.news-hero__title { font-size: calc(1.05rem + 8pt); }
.news-hero__side-title { font-size: calc(1.05rem + 2pt); }

@media (max-width: 1200px) {  }
@media (max-width: 992px) { .news-hero__title { font-size: calc(1.05rem + 2pt); margin-bottom: 4px; } }
@media (max-width: 768px) { }
@media (max-width: 576px) { }
@media (max-width: 360px) { }



.clip-card__title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: normal;
    word-break: keep-all;
    color: var(--news-title-color);
}

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

.news-youtube-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--color-text);
    opacity: 0.7;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
}

.news-youtube-header .section__title {
    margin: 0;
}

.clip-card__media {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.clip-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section--ubctv .scroll-container {
    position: relative;
    margin: 0;
    padding: 0 0 var(--spacing-sm);
    perspective: 1000px;
    overflow: hidden;
}

.section--ubctv .scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding: 10px 4px 30px;
    scroll-behavior: smooth;
}

.section--ubctv .scroll-container::before,
.section--ubctv .scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: var(--spacing-sm);
    width: 60px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section--ubctv .scroll-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg), transparent);
}

.section--ubctv .scroll-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg), transparent);
}

.section--ubctv .scroll-container.has-scroll-left::before {
    opacity: 1;
}

.section--ubctv .scroll-container.has-scroll-right::after {
    opacity: 1;
}

.section--ubctv .scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--color-text);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: var(--transition-base);
}

.section--ubctv .scroll-container:hover .scroll-nav-btn {
    opacity: 1;
}

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

.section--ubctv .scroll-nav-btn--prev {
    left: 10px;
}

.section--ubctv .scroll-nav-btn--next {
    right: 10px;
}

.section--ubctv .scroll-nav-btn[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}

.section--ubctv .tile {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    will-change: transform;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    min-width: 260px;
    overflow: hidden;
}

.section--ubctv .tile:hover {
    transform: none !important;
}

.section--ubctv .tile__media {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--color-surface-2);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

.section--ubctv .tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section--ubctv .tile__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.5;
    padding: 0 var(--spacing-xs);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

.section--ubctv .tile__meta {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: var(--spacing-xs);
    padding: 0 var(--spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section--latest .pagination {
    margin-top: 40px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

body[data-page='news'][data-news='home']:not([data-theme='light']) .section--latest .pagination__btn {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

body[data-page='news'][data-news='home']:not([data-theme='light']) .section--latest .pagination__btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.section--ubctv {
    padding-top: 16px;
}

body[data-page='news'][data-news='home'][data-theme='light'] .header__right .nav--secondary a {
    color: #333;
}

body[data-page='news'][data-news='home']:not([data-theme='light']) .header__right .nav--secondary a {
    color: #ffffff;
}

/********************************************
 category.html 에서 이전
 ********************************************/
.news-listing__main .news-list-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: normal;
}

.news-listing__main .news-list-desc {
    font-size: 0.975rem;
    line-height: 1.8;
    color: #666;
}

.news-listing__main .news-list,
.news-listing__main .news-pagination {
    width: min(100%, calc(1720px - 100%));
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* 카테고리 목록: 기사 카드를 2단(2열)으로 배치 */
.news-listing__main .news-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.news-listing__main .news-list-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    border-bottom: none;
}

/* 빈 목록 안내 문구는 2단 그리드 전체 폭을 차지해 중앙 정렬 */
.news-listing__main .news-list > p {
    grid-column: 1 / -1;
    font-size: 20px;
}

@media (max-width: 576px) {
    .news-listing__main .news-list { grid-template-columns: 1fr; }
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-muted);
    width: min(100%, calc(1720px - 100%));
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
    margin-bottom: 24px;
}

.news-breadcrumb a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

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

.news-breadcrumb .separator {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.news-breadcrumb .current {
    color: var(--color-text);
    font-weight: 600;
}

.news-list-item.is-featured {
    grid-template-columns: 234px 1fr;
}

/* 다크모드: 카테고리 무관하게 모든 카테고리 페이지에 적용 */
body[data-page='news'][data-category]:not([data-theme='light']) .news-listing__main .news-list-desc {
    color: #bcbcbc;
}

body[data-page='news'][data-category]:not([data-theme='light']) .news-listing__side {
    color: #e5e5e5;
}

body[data-page='news'][data-category]:not([data-theme='light']) .news-listing__side .news-side-title {
    color: #f9fafb !important;
    border-bottom-color: rgba(148, 163, 184, 0.7) !important;
}

body[data-page='news'][data-category]:not([data-theme='light']) .news-listing__side .news-side-list li {
    border-bottom-color: rgba(148, 163, 184, 0.5) !important;
}

body[data-page='news'][data-category]:not([data-theme='light']) .news-listing__side .news-side-list h4 {
    color: #e5e7eb !important;
}

body[data-page='news'][data-category]:not([data-theme='light']) .news-listing__side .news-side-list a > div span {
    color: #9ca3af !important;
}

body[data-page='news'][data-category]:not([data-theme='light']) .news-listing__side .news-side-list a > div:last-child {
    background: #111827 !important;
}