@charset "utf-8";

/* ── 외부 스타일 충돌 방지: .news-ticker-swiper-design 네임스페이스로 완전 격리 ── */

.news-ticker-swiper-design,
.news-ticker-swiper-design * {
    box-sizing: border-box;
    line-height: normal;
}

.news-ticker-swiper-design {
    padding: 0;
    margin: 0;
    width: 100%;
}

.news-ticker-swiper-design .news-ticker-container {
    width: 100%;
}

/* 전체 박스 */
.news-ticker-swiper-design .news-ticker-box {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    background-color: #f6f9fc;
    border: 1px solid #e3e9ef;
    border-radius: 0.25rem;
    min-height: 38px;
    overflow: hidden;
    padding: 0;
}

/* NEWS 뱃지 */
.news-ticker-swiper-design .news-ticker-title {
    flex-shrink: 0;
    background-color: #4158d1;
    color: #fff;
    font-size: 0.78em;
    font-weight: bold;
    padding: 0 0.8rem;
    white-space: nowrap;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 0;
}

/* 흐르는 트랙 감싸는 영역: overflow:hidden 이 핵심 */
.news-ticker-swiper-design .nts-track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;        /* ← 이것이 바깥 잘림 담당 */
    height: 38px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 실제로 흐르는 트랙 */
.news-ticker-swiper-design .nts-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: nts-marquee 40s linear infinite;  /* JS가 duration 덮어씀 */
}

/* 마퀴 키프레임: translate3d로 GPU 가속 */
@keyframes nts-marquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* 각 뉴스 아이템 */
.news-ticker-swiper-design .nts-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;          /* 아이템 간 간격 */
    font-size: 0.88em;
    color: #333;
    position: relative;
}

/* 구분선 */
.news-ticker-swiper-design .nts-item::after {
    content: '▸';
    position: absolute;
    right: 0.5rem;
    color: #bbb;
    font-size: 0.7em;
}

.news-ticker-swiper-design .nts-item a {
    color: #222;
    font-weight: normal;
    text-decoration: none;
    white-space: nowrap;
}

.news-ticker-swiper-design .nts-item a:hover {
    color: #4158d1;
    text-decoration: underline;
}

.news-ticker-swiper-design .nts-item .new_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    line-height: 1;
    font-size: 0.75em;
    color: #FF0000;
    background: #fff;
    text-align: center;
    border-radius: 2px;
    margin-left: 4px;
    font-weight: bold;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.news-ticker-swiper-design .nts-item .hot_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
    font-size: 0.75em;
    color: #ff0000;
    background: #ffb9b9;
    text-align: center;
    border-radius: 2px;
    margin-left: 2px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.news-ticker-swiper-design .nts-item .lt_cmt {
    display: inline-flex;
    align-items: center;
    font-size: 0.78em;
    color: #4158d1;
    background: #e8ebff;
    border-radius: 2px;
    padding: 0 4px;
    margin-left: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.news-ticker-swiper-design .nts-item .fa-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    line-height: 1;
    font-size: 11px;
    color: #4f818c;
    background: #cbe3e8;
    text-align: center;
    border-radius: 2px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
