/* custom.css */
.logo-header {
    background: #000;
}

.top-bar.pop>.container {
    padding: initial;
}

.top-bar.pop {
    left: initial !important;
    right: 180px;
}

.logo-link img {
    width: 350px;
}

.content-row {
    gap: 1.5rem;
}

.articles-container {
    justify-content: initial;
}

.menu-item a {
    font-size: 16px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 0 4px #7a9abc, 0 0 8px #0035d1, 0 0 15px #0566af, 0 0 30px #0095ff;
}

/* Breaking News Bar */
/* ===== Neon Ticker (전광판 스타일) ===== */
.breaking-news-bar {
    background: #05070d;
    /* 검은 배경 */
    color: #e6faff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;

    border-top: 1px solid rgba(0, 200, 255, .25);
    border-bottom: 1px solid rgba(0, 200, 255, .25);
    box-shadow:
        inset 0 0 25px rgba(0, 200, 255, .12),
        0 0 30px rgba(0, 200, 255, .12);
}

.breaking-news-bar .container {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 라벨도 네온 느낌으로 */
.breaking-label {
    background: rgba(0, 200, 255, .08);
    border: 1px solid rgba(0, 200, 255, .35);
    padding: 6px 12px;
    margin-right: 0;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;

    color: #dff7ff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;

    text-shadow:
        0 0 6px rgba(0, 200, 255, .55),
        0 0 14px rgba(0, 140, 255, .45);
    box-shadow:
        0 0 14px rgba(0, 200, 255, .18);
}

/* Live dot도 블루 네온 */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d9ff;
    box-shadow:
        0 0 6px rgba(0, 217, 255, .9),
        0 0 14px rgba(0, 140, 255, .7);
    animation: pulseNeon 1.4s infinite;
}

@keyframes pulseNeon {
    0% {
        transform: scale(.8);
        opacity: .7;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }

    100% {
        transform: scale(.8);
        opacity: .7;
    }
}

.breaking-news-content {
    flex: 1;
    overflow: hidden;
}

.news-ticker {
    overflow: hidden;
    position: relative;
}

/* 티커 애니메이션은 그대로 사용 */
.ticker-items {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: ticker 35s linear infinite;
    /* 조금 더 천천히 */
    white-space: nowrap;
}

.ticker-items.paused {
    animation-play-state: paused;
}

.ticker-items li {
    display: inline-block;
    padding-right: 56px;
    font-size: 14px;
    font-weight: 700;
    position: relative;
}

/* 링크를 네온 글씨로 */
.ticker-items a {
    color: #e6faff;
    text-decoration: none;

    text-shadow:
        0 0 4px rgba(255, 255, 255, .55),
        0 0 10px rgba(0, 217, 255, .55),
        0 0 18px rgba(0, 140, 255, .45),
        0 0 34px rgba(0, 102, 255, .35);
}

.ticker-items a:hover {
    color: #ffffff;
    text-shadow:
        0 0 6px rgba(255, 255, 255, .75),
        0 0 14px rgba(0, 217, 255, .75),
        0 0 28px rgba(0, 140, 255, .55),
        0 0 46px rgba(0, 102, 255, .45);
}

.ticker-items li:after {
    content: '•';
    position: absolute;
    right: 24px;
    color: rgba(0, 217, 255, .55);
    text-shadow:
        0 0 10px rgba(0, 217, 255, .6);
}

/* 컨트롤 버튼도 네온 */
.ticker-controls {
    margin-left: 10px;
}

.ticker-control {
    background: rgba(0, 200, 255, .06);
    border: 1px solid rgba(0, 200, 255, .25);
    color: #e6faff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;

    box-shadow: 0 0 14px rgba(0, 200, 255, .12);
}

.ticker-control:hover {
    background: rgba(0, 200, 255, .12);
    border-color: rgba(0, 200, 255, .45);
    box-shadow: 0 0 20px rgba(0, 200, 255, .18);
}

/* 기존 ticker keyframes는 그대로 */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Breaking News Bar */


/* 지금 트렌드 ------------------------------------------------------------- */
.trending-section .trend-item:nth-of-type(1) {
    flex-direction: column;
    gap: .2rem;
    padding-top: 0;
}

.trending-section .trend-item:nth-of-type(1) .trend-image-wrapper {
    order: 1;
    width: 100%;
    height: 200px;
}

.trending-section .trend-item:nth-of-type(1) .trend-text-content {
    order: 2;
    width: 100%;
}

.trending-section .trend-item:nth-of-type(1) .trend-info {
    order: 3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    font-size: .8rem;
    color: var(--text-sub);
}

.trending-section .trend-item {
    padding: 0.5rem 0;
}

/* 주요뉴스 */
.right-column .items-wrapper {
    gap: .8rem;
}

.main-text-item {
    justify-content: initial;
}

.main-text-item>div:first-child {
    text-align: initial;
    width: calc(12.5% - .5rem);
    margin-bottom: initial;
}

.main-text-item>div:nth-child(2) {
    max-width: calc(72% - .5rem);
}

.main-text-item>div:last-child {
    width: initial;
    margin-left: auto;
}

/* 주간 인기 뉴스 ------------------------------------------------------------- */
.popular-section .items-wrapper {
    padding-left: initial;
    gap: .8rem;
}

.popular-section .popular-news-item.first-item {
    flex-direction: column;
    padding: initial;
}

.popular-section .popular-news-item.first-item:before {
    content: none;
}

.popular-section .popular-news-item.first-item .popular-news-thumb {
    width: 100%;
    height: 200px;
}

.popular-section .popular-news-item.first-item .popular-news-content {
    width: 100%;
    margin-bottom: 30px;
}


.popular-section .popular-news-item.first-item .pop-excerpt {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.5;
    margin-top: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-section .popular-news-item {
    padding: 0;
}

.popular-section .popular-news-item:not(:first-child) {
    margin-left: 25px;
    padding-left: 8px;
    max-width: 94%;
}

/* 포토뉴스 */
.pn-header {
    max-width: 1340px;
    margin: 30px 0;
}

.pn-container {
    padding: 2.5rem auto;
}

/* 최신 뉴스 ------------------------------------------------------------- */
.latest-section {
    max-width: 1400px;
    margin: 4.5rem auto;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 16px;
}

/* 전체 레이아웃 */
.latest-split-wrap {
    display: flex;
    gap: 20px;
}

/* 왼쪽 메인 뉴스 박스 */
.latest-left {
    width: 40%;
    position: relative;
    transition: all 0.3s ease;
}

.latest-left::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #e01e1e;
    transition: width 0.3s ease;
}

.latest-left:hover::after {
    width: 100%;
}

.latest-left:hover {
    transform: translateY(-8px);
}



.latest-left .thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 6px;
}

.latest-left .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.latest-left:hover .thumb img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* 왼쪽 제목 */
.latest-left .title {
    color: #000;
    font-size: 20px;
    font-weight: 700;
    margin: 14px 0 6px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* 🔥 한 줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.latest-left .excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-top: .5rem;
}

/* 오른쪽 리스트 */
.latest-right {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-right-item {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.latest-right-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #e01e1e;
    transition: width 0.3s ease;
}

.latest-right-item:hover::after {
    width: 100%;
}

.latest-right-item:hover {
    transform: translateX(5px);
}

.latest-right-item img {
    width: 88px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.latest-right-item .right-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

/* 카테고리 라벨 */
.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #e01e1e;
    padding: 4px 8px;
}

/* 오른쪽 리스트용 */
.latest-right-item .post-category {
    font-size: 11px;
    padding: 3px 6px;
    margin-bottom: 0;
    margin-right: 6px;
}

.latest-side {
    width: 25%;
    border-left: 1px solid #eee;
    padding-left: 16px;
}

.latest-side-inner {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}

.latest-side-inner::-webkit-scrollbar {
    width: 4px;
}

.latest-side-inner::-webkit-scrollbar-thumb {
    background: #e01e1e;
    border-radius: 4px;
}

.latest-side-inner::-webkit-scrollbar-track {
    background: #f2f2f2;
}

.side-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.25s ease;
    position: relative;
}

.side-item:hover {
    padding-left: 6px;
    background: rgba(224, 30, 30, 0.04);
    /* #e01e1e 아주 옅게 */
}

.side-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #e01e1e;
    transition: width 0.25s ease;
}

.side-item:hover::after {
    width: 100%;
}

.side-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

/* 많이 본 뉴스 ------------------------------------------------------------- */
.most-viewed-wrapper {
    margin: 4.5rem auto;
}

/* 많이 본 뉴스 6번째 카드 숨기기 → 5개만 보임 */
.most-viewed-card:nth-child(6) {
    display: none;
}

/* 카테고리별 ------------------------------------------------------------- */
.category-header {
    padding: .5rem 0;
}

/* 레이아웃 단 (PC 3 / TB 2 / MB 1) */
.news-wrapper {
    margin: 4.5rem auto;
}

.custom-box .category-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-header h2 {
    border-top: 4px solid #e01e1e;
    color: #e01e1e;
    font-weight: 600;
}

.category-header a:after {
    font-weight: bold;
    font-size: 2rem;
}

.category-item {
    width: 100%;
    box-shadow: none;
}


/* 기본 구조 */
.articles-container {
    display: flex;
    flex-direction: column;
    padding-top: initial;
}

.article-item {
    display: flex;
}

.article-item:first-of-type {
    flex-direction: column;
}

.article-item:hover {
    background: none;
}

.article-item>div {
    min-height: 84px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.article-item div {
    width: 100%;
}

.article-item:hover .image-container img {
    transform: scale(1.1);
}

.article-text a {
    font-size: 16px;
    font-weight: 900;
}

.article-date {
    font-size: .8rem;
    margin-top: 0;
}

.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: none;
}

.image-container img {
    object-fit: cover;
    object-position: center;
}

.articles-container .article-item:not(:first-child) .image-container {
    display: none;
}

/* 숨길 때 텍스트 영역 확장 */
.articles-container .article-item:not(:first-child)>div {
    flex: 1;
}

/* footer 디자인 수정 */
.hd-magazine-footer {
    background: #000;
    padding: 60px 0 0;
}

.hd-magazine-footer .hd-footer-info a {
    color: rgba(255, 255, 255, .9);
}

.hd-footer-container {
    text-align: center;
}

.hd-footer-top {
    flex-direction: column;
    padding-bottom: 12px;
    margin-bottom: 0;
}

/* 로고 영역 */
.hd-footer-logo-container {
    margin-bottom: 20px;
}

.hd-footer-logo-container .logo-link {
    display: inline-block;
}

.hd-footer-logo-container img {
    width: 80%;
    height: initial;
}

.hd-footer-nav {
    gap: 30px 45px;
}

.hd-footer-nav>li {
    position: relative;
}

.hd-footer-nav>li>a {
    display: block;
}

.hd-footer-nav>li>ul {
    display: none;
    /* 1번 스타일은 서브메뉴 안 보이게 */
}

.hd-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hd-footer-menu-item a {
    text-decoration: none;
    color: inherit;
}

.hd-footer-menu-item a:hover {
    text-decoration: underline;
}

/* 회사 정보 영역 */
.hd-footer-info {
    color: #777;
    font-size: 13px;
    line-height: 2;
    margin-top: 12px;
    margin-bottom: 40px;
}

.hd-footer-company {
    margin-bottom: 10px;
    display: inline-block;
}

.hd-footer-company span {
    position: relative;
    padding: 0 10px;
}

.hd-footer-company span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #ccc;
}

/* 주소, 사업자명 등 한 줄씩 */
.hd-footer-company span {
    white-space: nowrap;
}

/* DMCA 배지 & 카피라이트 */
.hd-copyright {
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    margin-top: 0;
}

.dcma_badge a {
    display: flex;
    justify-content: center;
}



@media (max-width: 1400px) {
    .news-layout-container {
        padding: 2rem 30px
    }

    /* 최신 뉴스 ------------------------------------------------------------- */
    .latest-section {
        padding: 0 0.5rem;
    }

    /* 포토뉴스 */
    .pn-header {
        padding: 0 .5rem;
    }
}


@media (max-width: 1200px) {

    /* 많이 본 뉴스 6번째 카드 다시 보이게 → 6개 보임 */
    .most-viewed-card:nth-child(6) {
        display: block;
    }

    /* 포토뉴스 */
    .pn-title {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {

    /* 주요뉴스 */
    .main-text-item>div:first-child {
        line-height: 2rem;
    }

    .main-center-image {
        width: 70% !important;
        height: 250px !important;
    }

    .custom-box .category-section {
        gap: 24px;
    }

    .news-wrapper {
        padding: 0 30px;
    }

    .image-container {
        height: 150px;
    }

    /* 지금 트렌드 */
    .trending-section .trend-item:nth-of-type(1) .trend-image-wrapper {
        width: 50%;
        height: 250px;
    }

    /* 주간 인기 뉴스 */
    .popular-section .popular-news-item.first-item .popular-news-thumb {
        width: 50%;
        height: 250px;
    }

    .popular-section .items-wrapper {
        padding-left: 0;
    }

    .popular-section .popular-news-content:not(:first-child) {
        flex: 1;
        width: 94%;
    }

    .popular-section .popular-news-item:before {
        left: -25px;
    }

    .popular-section .popular-news-item:not(:first-child) {
        max-width: 97%;
    }

    /* 포토뉴스 */
    .pn-header {
        padding: 0 30px;
    }

    /* 최신 뉴스  */
    .latest-section {
        padding: 0 30px;
    }

    /* 많이 본 뉴스 */
    .most-viewed-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 900px) {

    /* 최신 뉴스  */
    .latest-split-wrap {
        flex-direction: column;
    }

    .latest-left,
    .latest-right {
        width: 100%;
    }

    .latest-left .thumb {
        height: 220px;
    }

    .latest-right-item img {
        width: 72px;
        height: 48px;
    }

    .latest-left,
    .latest-right,
    .latest-side {
        width: 100%;
    }

    .latest-side {
        border-left: none;
        padding-left: 0;
    }

}

@media (max-width: 768px) {
    .user-profile {
        display: none;
    }

    .main-nav {
        display: block !important;
        overflow: hidden;
    }

    .main-nav .container {
        padding: 0;
    }

    .main-nav .nav-menu {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .main-nav .menu-items {
        width: max-content;
        min-width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 2px;
        padding: 0 12px;
    }

    .main-nav .menu-item {
        flex: 0 0 auto;
    }

    .main-nav .menu-item a {
        white-space: nowrap;
        padding: 13px 14px;
    }

    .logo-link img {
        /* width: 190px; */
    }

    .logo-area {
        text-align: center;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .news-layout-container {
        padding: 0 calc(.5rem + 8px);
    }

    .items-wrapper {
        justify-content: space-around;
    }

    .wpb_wrapper[data-sticky-enabled-on] {
        position: relative !important;
        top: 0 !important;
    }

    /* 최신 뉴스  */
    .latest-section {
        padding: 0 calc(.5rem + 8px);
    }

    .latest-side-inner {
        max-height: 240px;
    }

    /* 포토뉴스 */
    .pn-header {
        margin: 24px calc(.5rem + 8px);
        padding: 0;
    }

    .pn-title {
        font-size: 22px;
    }

    /* 카테고리 별 */
    .news-wrapper {
        padding: 0 8px;
    }

    .custom-box .category-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .most-viewed-wrapper {
        padding: 0 calc(.5rem + 8px);
    }


    /* footer 디자인 수정 */
    .hd-footer-logo-container img {
        width: 80%;
    }

    .hd-footer-nav {
        gap: 20px 30px;
        font-size: 14.5px;
    }

    .hd-footer-company {
        display: flex;
    }

    .hd-footer-company span {
        display: block;
        padding: 4px 0;
        white-space: normal;
        word-break: keep-all;
    }

    .hd-footer-company span:not(:last-child)::after {
        display: none;
    }

    .hd-magazine-footer {
        padding: 40px .5rem 0;
    }

    .hd-footer-top {
        gap: 0;
    }

    /* footer 디자인 수정 */



}

@media (min-width: 577px) and (max-width: 768px) {
    .main-nav .nav-menu {
        overflow-x: visible;
    }

    .main-nav .menu-items {
        width: 100%;
        min-width: 0;
        justify-content: stretch;
        gap: 0;
        padding: 0;
    }

    .main-nav .menu-item {
        flex: 1 1 0;
    }

    .main-nav .menu-item a {
        text-align: center;
        padding: 13px 8px;
    }
}

@media (max-width: 640px) {

    /* 주요뉴스 */
    .main-center-image {
        width: 100% !important;
        height: 200px !important;
    }

    .custom-box .category-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .custom-box .category-section {
        gap: initial
    }
}

@media (max-width: 600px) {

    /* 최신 뉴스  */
    .latest-right-item {
        gap: 8px;
    }

    .latest-right-item img {
        width: 60px;
        height: 40px;
    }

    .latest-left .excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}


@media (max-width: 480px) {

    /* header, footer logo */
    .logo-link img {
        /* width: 150px; */
    }

    /* 포토뉴스 */
    .pn-title {
        font-size: 20px;
        padding-bottom: 8px;
    }

    /* 카테고리 */
    .article-text {
        margin-left: 0;
    }

    /* footer 디자인 수정 */
    .hd-footer-container {
        padding: 0;
    }

    .hd-footer-logo-container {
        margin-bottom: 0;
    }

    .hd-footer-logo-container img {
        width: 80%;
    }

    .hd-footer-top {
        padding-bottom: 10px;
    }

    .hd-footer-nav {
        gap: 10px;
    }

    .hd-footer-nav>li>a {
        font-size: 13px;
    }

    .hd-footer-company {
        gap: 0;
        margin-bottom: 0;
    }

    .hd-magazine-footer .hd-footer-container .hd-footer-info .hd-footer-company span {
        padding: 2px 0;
        line-height: 1.4;
        font-size: 11px;
    }

    .hd-copyright {
        gap: 0;
        padding-top: 10px;
        border-top: none;
    }

    .dcma_badge a img {
        width: 30%;
        margin-bottom: 8px;
    }

    .hd-footer-warning {
        font-size: .8em;
    }

    .hd-social-links {
        gap: 8px;
    }

}

/* Neon Dark Unify Override */
:root {
    --neon-bg-deep: #07080b;
    --neon-bg-soft: #0b0d12;
    --neon-card: #141824;
    --neon-line: #1f2633;
    --neon-text: #e9eef5;
    --neon-sub: #a7b0bf;
    --neon-weak: #7a8597;
    --neon-blue: #4CC9FF;
    --neon-blue-strong: #2AA7FF;
    --neon-white: #EAF6FF;
    --neon-glow-text: 0 0 6px rgba(76, 201, 255, .55), 0 0 14px rgba(76, 201, 255, .25);
    --neon-glow-box: 0 0 0 1px rgba(76, 201, 255, .18), 0 8px 26px rgba(0, 0, 0, .6);
}

/* Home main recovery: force neon-dark theme over inline light styles */
body.home .news-layout-container,
body.blog .news-layout-container {
    background: var(--neon-bg-deep, #07080b) !important;
    color: var(--neon-text, #e9eef5) !important;
}

body.home .issue_pick,
body.blog .issue_pick {
    border-bottom-color: var(--neon-blue, #4CC9FF) !important;
}

body.home .issue_pick .date,
body.home .issue_pick .description,
body.blog .issue_pick .date,
body.blog .issue_pick .description {
    color: var(--neon-sub, #a7b0bf) !important;
}

body.home .issue_pick .list_issue .list_item:before,
body.blog .issue_pick .list_issue .list_item:before {
    background: var(--neon-line, #1f2633) !important;
}

body.home .issue_pick .list_issue .headline>a,
body.home .issue_pick .description>a,
body.blog .issue_pick .list_issue .headline>a,
body.blog .issue_pick .description>a {
    color: var(--neon-white, #EAF6FF) !important;
}

body.home .issue_pick:not(.only) .swiper-container.between:before,
body.home .issue_pick:not(.only) .swiper-container.end:before,
body.home .issue_pick:not(.only) .swiper-container:after,
body.blog .issue_pick:not(.only) .swiper-container.between:before,
body.blog .issue_pick:not(.only) .swiper-container.end:before,
body.blog .issue_pick:not(.only) .swiper-container:after {
    background: none !important;
}

.latest-section,
.most-viewed-wrapper,
.news-wrapper,
.pn-container,
.pn-header,
.custom-box {
    color: var(--neon-text);
}

.section-title,
.pn-title,
.row-title {
    color: var(--neon-white);
    text-shadow: 0 0 6px rgba(76, 201, 255, .22);
}

.latest-left,
.latest-right-item,
.custom-box .category-item {
    background: var(--neon-card);
    border: 1px solid var(--neon-line);
    box-shadow: var(--neon-glow-box);
}

.latest-left::after,
.latest-right-item::after,
.side-item::after {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.custom-box .category-header h2 {
    background: transparent;
    color: var(--neon-blue);
    border-top-color: var(--neon-blue);
}

.custom-box .category-header h2 a {
    background: transparent !important;
    color: inherit !important;
    text-shadow: none !important;
}

.latest-left .title,
.latest-right-item .right-title,
.article-text a,
.main-news-title,
.main-text-title,
.news-content .title,
.trend-text,
.popular-news-content .pop-title {
    color: var(--neon-text);
}

.latest-left .title:hover,
.latest-right-item .right-title:hover,
.article-text a:hover,
.main-text-title a:hover,
.news-content .title a:hover,
.trend-text a:hover,
.popular-news-content .pop-title a:hover {
    color: var(--neon-blue);
    text-shadow: var(--neon-glow-text);
}

.latest-left .excerpt,
.article-date,
.post-date,
.hd-footer-info,
.side-item {
    color: var(--neon-sub);
}

.post-category,
.category-header h2,
.main-text-category,
.news-content .category,
.trend-category,
.popular-news-content .pop-cat {
    color: var(--neon-blue);
}

.latest-side,
.side-item,
.article-item>div,
.custom-box .category-header,
.hd-copyright {
    border-color: var(--neon-line);
}

.side-item:hover,
.article-item:hover,
.latest-right-item:hover,
.news-item:hover,
.trend-item:hover,
.popular-news-item:hover {
    background: rgba(76, 201, 255, .08);
}

.latest-side-inner::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
}

.latest-side-inner::-webkit-scrollbar-track {
    background: #101520;
}

.image-container,
.latest-left .thumb,
.latest-right-item img {
    box-shadow: 0 0 0 1px rgba(76, 201, 255, .12), 0 8px 20px rgba(0, 0, 0, .45);
}

.category-header h2 {
    border-top-color: var(--neon-blue);
}

.hd-magazine-footer {
    background: #000;
}

.hd-magazine-footer .hd-footer-info a {
    color: var(--neon-white);
}

.hd-footer-info {
    color: var(--neon-sub);
}

.hd-footer-company span:not(:last-child)::after {
    background: var(--neon-line);
}

.hd-copyright {
    border-top-color: var(--neon-line);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(76, 201, 255, .22);
}

/* Top category nav size override (smaller than section titles) */
.main-nav .menu-item a {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

@media (max-width: 1140px) {
    .main-nav .menu-item a {
        font-size: 13px !important;
    }
}

/* Author page readability fix on dark background */
body.author .archive-neon-layout .tdi_52 .tdm-descr,
body.author .archive-neon-layout .meta-info,
body.author .archive-neon-layout .meta-info span,
body.author .archive-neon-layout .td-editor-date,
body.author .archive-neon-layout .td-author-date {
    color: var(--neon-sub, #a7b0bf) !important;
}

body.author .archive-neon-layout .tdi_53 .tdb-single-auth-text,
body.author .archive-neon-layout .infinite-tag-title a,
body.author .archive-neon-layout .archive-neon-title a,
body.author .archive-neon-layout .related-neon-item .entry-title a,
body.author .archive-neon-layout .related-neon-title {
    color: var(--neon-white, #EAF6FF) !important;
}

body.author .archive-neon-layout .infinite-tag-title a:hover,
body.author .archive-neon-layout .archive-neon-title a:hover,
body.author .archive-neon-layout .related-neon-item .entry-title a:hover {
    color: var(--neon-blue, #4CC9FF) !important;
}

body.author .archive-neon-layout .excerpt,
body.author .archive-neon-layout .excerpt p,
body.author .archive-neon-layout .related-neon-item .td-excerpt,
body.author .archive-neon-layout .related-neon-item .td-excerpt p {
    color: var(--neon-sub, #a7b0bf) !important;
}

body.author .archive-neon-layout .read-more {
    background: rgba(76, 201, 255, 0.14) !important;
    border: 1px solid var(--neon-blue, #4CC9FF) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.author .archive-neon-layout .read-more:hover {
    background: rgba(76, 201, 255, 0.22) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.author .archive-neon-layout .archive-neon-pagination {
    margin-top: 32px !important;
    gap: 8px !important;
}

body.author .archive-neon-layout .archive-neon-pagination .page-numbers,
body.author .archive-neon-layout .archive-neon-pagination a,
body.author .archive-neon-layout .archive-neon-pagination .prev,
body.author .archive-neon-layout .archive-neon-pagination .next,
body.author .archive-neon-layout .archive-neon-pagination .disabled {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    border: 1px solid var(--neon-line, #1f2633) !important;
    background: var(--neon-card, #141824) !important;
    color: var(--neon-sub, #a7b0bf) !important;
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all .2s ease !important;
}

body.author .archive-neon-layout .archive-neon-pagination a:hover,
body.author .archive-neon-layout .archive-neon-pagination .page-numbers:hover {
    border-color: var(--neon-blue, #4CC9FF) !important;
    color: var(--neon-white, #EAF6FF) !important;
    background: rgba(76, 201, 255, 0.12) !important;
    transform: translateY(-1px);
}

body.author .archive-neon-layout .archive-neon-pagination .current {
    border-color: var(--neon-blue, #4CC9FF) !important;
    color: #061017 !important;
    background: var(--neon-blue, #4CC9FF) !important;
    box-shadow: 0 0 16px rgba(76, 201, 255, 0.35) !important;
}

body.author .archive-neon-layout .archive-neon-pagination .dots {
    border-color: var(--neon-line, #1f2633) !important;
    color: var(--neon-weak, #7a8597) !important;
    background: rgba(76, 201, 255, 0.04) !important;
    box-shadow: none !important;
}

/* Author archive: improve tag badge readability over thumbnails */
body.author .archive-neon-layout .tag-badge {
    background: linear-gradient(180deg, rgba(7, 12, 20, 0.82), rgba(7, 12, 20, 0.66)) !important;
    border: 1px solid rgba(76, 201, 255, 0.5) !important;
    color: var(--neon-white, #EAF6FF) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65) !important;
    box-shadow: 0 0 10px rgba(76, 201, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.45) !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Category page neon dark sync */
body.category .archive-neon-layout .infinite-cat-container {
    background: var(--neon-bg-soft, #0b0d12) !important;
    border: 1px solid var(--neon-line, #1f2633) !important;
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

body.category .archive-neon-layout .infinite-cat-main {
    background: var(--neon-card, #141824) !important;
    border: 1px solid var(--neon-line, #1f2633) !important;
    box-shadow: none !important;
}

body.category .archive-neon-layout .infinite-cat-title-bar {
    border-bottom-color: var(--neon-blue, #4CC9FF) !important;
}

body.category .archive-neon-layout .infinite-cat-heading,
body.category .archive-neon-layout .infinite-tag-title a,
body.category .archive-neon-layout .archive-neon-title a {
    color: var(--neon-white, #EAF6FF) !important;
}

body.category .archive-neon-layout .infinite-tag-title a:hover,
body.category .archive-neon-layout .archive-neon-title a:hover {
    color: var(--neon-blue, #4CC9FF) !important;
}

body.category .archive-neon-layout .infinite-cat-heading:before {
    background-color: var(--neon-blue, #4CC9FF) !important;
}

body.category .archive-neon-layout .tag-badge {
    background: linear-gradient(180deg, rgba(7, 12, 20, 0.82), rgba(7, 12, 20, 0.66)) !important;
    border: 1px solid rgba(76, 201, 255, 0.5) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.category .archive-neon-layout .current-date,
body.category .archive-neon-layout .meta-info,
body.category .archive-neon-layout .meta-info span,
body.category .archive-neon-layout .td-editor-date,
body.category .archive-neon-layout .td-author-date,
body.category .archive-neon-layout .excerpt,
body.category .archive-neon-layout .excerpt p {
    color: var(--neon-sub, #a7b0bf) !important;
}

body.category .archive-neon-layout .read-more {
    background: rgba(76, 201, 255, 0.14) !important;
    border: 1px solid var(--neon-blue, #4CC9FF) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.category .archive-neon-layout .read-more:hover {
    background: rgba(76, 201, 255, 0.22) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.category .archive-neon-layout .infinite-tag-item {
    border-bottom-color: var(--neon-line, #1f2633) !important;
}

body.category .archive-neon-layout .infinite-tag-item:hover {
    background: rgba(76, 201, 255, 0.06) !important;
}

body.category .archive-neon-layout .news-left {
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}

body.category .archive-neon-layout .pagination a,
body.category .archive-neon-layout .pagination .page-numbers,
body.category .archive-neon-layout .pagination .disabled,
body.category .archive-neon-layout .archive-neon-pagination .page-numbers,
body.category .archive-neon-layout .archive-neon-pagination a,
body.category .archive-neon-layout .archive-neon-pagination .prev,
body.category .archive-neon-layout .archive-neon-pagination .next,
body.category .archive-neon-layout .archive-neon-pagination .disabled {
    border: 1px solid var(--neon-line, #1f2633) !important;
    background: var(--neon-card, #141824) !important;
    color: var(--neon-sub, #a7b0bf) !important;
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

body.category .archive-neon-layout .pagination a:hover,
body.category .archive-neon-layout .pagination .page-numbers:hover,
body.category .archive-neon-layout .archive-neon-pagination a:hover,
body.category .archive-neon-layout .archive-neon-pagination .page-numbers:hover {
    border-color: var(--neon-blue, #4CC9FF) !important;
    color: var(--neon-white, #EAF6FF) !important;
    background: rgba(76, 201, 255, 0.12) !important;
}

body.category .archive-neon-layout .pagination .current,
body.category .archive-neon-layout .archive-neon-pagination .current {
    border-color: var(--neon-blue, #4CC9FF) !important;
    color: #061017 !important;
    background: var(--neon-blue, #4CC9FF) !important;
    box-shadow: 0 0 16px rgba(76, 201, 255, 0.35) !important;
}

/* Search page neon dark sync */
body.search .archive-neon-layout .archive-neon-row {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.search .archive-neon-layout .tdi_46 .tdm-descr,
body.search .archive-neon-layout .tdi_48 .tdb-search-msg {
    color: var(--neon-sub, #a7b0bf) !important;
}

body.search .archive-neon-layout .tdi_46 .tdm-descr font,
body.search .archive-neon-layout .tdb-search-title .tdb-title-text,
body.search .archive-neon-layout .infinite-tag-title a,
body.search .archive-neon-layout .archive-neon-title a {
    color: var(--neon-white, #EAF6FF) !important;
}

body.search .archive-neon-layout .infinite-tag-title a:hover,
body.search .archive-neon-layout .archive-neon-title a:hover {
    color: var(--neon-blue, #4CC9FF) !important;
}

body.search .archive-neon-layout .tdb-search-form-inner {
    background: var(--neon-card, #141824) !important;
    border: 1px solid var(--neon-line, #1f2633) !important;
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

body.search .archive-neon-layout .tdi_48 .tdb-search-form-input {
    color: var(--neon-white, #EAF6FF) !important;
}

body.search .archive-neon-layout .tdi_48 .tdb-search-form-border {
    border-color: var(--neon-line, #1f2633) !important;
}

body.search .archive-neon-layout .tdi_48 .tdb-search-form-btn {
    background: rgba(76, 201, 255, 0.18) !important;
    border: 1px solid var(--neon-blue, #4CC9FF) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.search .archive-neon-layout .tdi_48 .tdb-search-form-btn:hover {
    background: rgba(76, 201, 255, 0.28) !important;
}

body.search .archive-neon-layout .infinite-cat-container {
    background: var(--neon-bg-soft, #0b0d12) !important;
    border: 1px solid var(--neon-line, #1f2633) !important;
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

body.search .archive-neon-layout .infinite-cat-main {
    background: var(--neon-card, #141824) !important;
    border: 1px solid var(--neon-line, #1f2633) !important;
    box-shadow: none !important;
}

body.search .archive-neon-layout .infinite-cat-title-bar {
    border-bottom-color: var(--neon-blue, #4CC9FF) !important;
}

body.search .archive-neon-layout .infinite-cat-heading:before {
    background-color: var(--neon-blue, #4CC9FF) !important;
}

body.search .archive-neon-layout .tag-badge {
    background: linear-gradient(180deg, rgba(7, 12, 20, 0.82), rgba(7, 12, 20, 0.66)) !important;
    border: 1px solid rgba(76, 201, 255, 0.5) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.search .archive-neon-layout .meta-info,
body.search .archive-neon-layout .meta-info span,
body.search .archive-neon-layout .td-editor-date,
body.search .archive-neon-layout .td-author-date,
body.search .archive-neon-layout .excerpt,
body.search .archive-neon-layout .excerpt p {
    color: var(--neon-sub, #a7b0bf) !important;
}

body.search .archive-neon-layout .read-more {
    background: rgba(76, 201, 255, 0.14) !important;
    border: 1px solid var(--neon-blue, #4CC9FF) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.search .archive-neon-layout .read-more:hover {
    background: rgba(76, 201, 255, 0.22) !important;
    color: var(--neon-white, #EAF6FF) !important;
}

body.search .archive-neon-layout .infinite-tag-item {
    border-bottom-color: var(--neon-line, #1f2633) !important;
}

body.search .archive-neon-layout .infinite-tag-item:hover {
    background: rgba(76, 201, 255, 0.06) !important;
}

body.search .archive-neon-layout .news-left {
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}

body.search .archive-neon-layout .pagination a,
body.search .archive-neon-layout .pagination .page-numbers,
body.search .archive-neon-layout .pagination .disabled,
body.search .archive-neon-layout .archive-neon-pagination .page-numbers,
body.search .archive-neon-layout .archive-neon-pagination a,
body.search .archive-neon-layout .archive-neon-pagination .prev,
body.search .archive-neon-layout .archive-neon-pagination .next,
body.search .archive-neon-layout .archive-neon-pagination .disabled {
    border: 1px solid var(--neon-line, #1f2633) !important;
    background: var(--neon-card, #141824) !important;
    color: var(--neon-sub, #a7b0bf) !important;
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

body.search .archive-neon-layout .pagination a:hover,
body.search .archive-neon-layout .pagination .page-numbers:hover,
body.search .archive-neon-layout .archive-neon-pagination a:hover,
body.search .archive-neon-layout .archive-neon-pagination .page-numbers:hover {
    border-color: var(--neon-blue, #4CC9FF) !important;
    color: var(--neon-white, #EAF6FF) !important;
    background: rgba(76, 201, 255, 0.12) !important;
}

body.search .archive-neon-layout .pagination .current,
body.search .archive-neon-layout .archive-neon-pagination .current {
    border-color: var(--neon-blue, #4CC9FF) !important;
    color: #061017 !important;
    background: var(--neon-blue, #4CC9FF) !important;
    box-shadow: 0 0 16px rgba(76, 201, 255, 0.35) !important;
}

/* Category/Search sidebar widget neon text sync */
body.category .archive-neon-layout .archive-neon-sidebar .related-neon-title,
body.search .archive-neon-layout .archive-neon-sidebar .related-neon-title {
    color: var(--neon-white, #EAF6FF) !important;
    text-shadow: 0 0 6px rgba(76, 201, 255, 0.22);
}

body.category .archive-neon-layout .archive-neon-sidebar .related-neon-item .entry-title a,
body.search .archive-neon-layout .archive-neon-sidebar .related-neon-item .entry-title a {
    color: var(--neon-white, #EAF6FF) !important;
}

body.category .archive-neon-layout .archive-neon-sidebar .related-neon-item .entry-title a:hover,
body.search .archive-neon-layout .archive-neon-sidebar .related-neon-item .entry-title a:hover {
    color: var(--neon-blue, #4CC9FF) !important;
}

body.category .archive-neon-layout .archive-neon-sidebar .related-neon-item .td-excerpt,
body.search .archive-neon-layout .archive-neon-sidebar .related-neon-item .td-excerpt,
body.category .archive-neon-layout .archive-neon-sidebar .related-neon-item .td-excerpt p,
body.search .archive-neon-layout .archive-neon-sidebar .related-neon-item .td-excerpt p,
body.category .archive-neon-layout .archive-neon-sidebar .related-neon-item .td-author-date,
body.search .archive-neon-layout .archive-neon-sidebar .related-neon-item .td-author-date {
    color: var(--neon-sub, #a7b0bf) !important;
}

@media (max-width: 767px) {
    .main-nav .menu-item a {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .main-nav .menu-item a {
        font-size: 11px !important;
    }
}

/* Unified section title size override */
.section-title,
.pn-title,
.most-viewed-title,
.category-header h2,
.latest-section .section-title,
.pn-header .pn-title,
.most-viewed-header .most-viewed-title,
.middle-column .section-title,
.right-column .section-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
}

@media (max-width: 1140px) {

    .section-title,
    .pn-title,
    .most-viewed-title,
    .category-header h2,
    .latest-section .section-title,
    .pn-header .pn-title,
    .most-viewed-header .most-viewed-title,
    .middle-column .section-title,
    .right-column .section-title {
        font-size: 19px !important;
    }
}

@media (max-width: 767px) {

    .section-title,
    .pn-title,
    .most-viewed-title,
    .category-header h2,
    .latest-section .section-title,
    .pn-header .pn-title,
    .most-viewed-header .most-viewed-title,
    .middle-column .section-title,
    .right-column .section-title {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {

    .section-title,
    .pn-title,
    .most-viewed-title,
    .category-header h2,
    .latest-section .section-title,
    .pn-header .pn-title,
    .most-viewed-header .most-viewed-title,
    .middle-column .section-title,
    .right-column .section-title {
        font-size: 17px !important;
    }
}
