/*
============================================================
 NEWS TALK SHOW — PREMIUM RESPONSIVE HEADER
 File: assets/css/header.css
 Theme: Astra Child Theme
============================================================

Sections:
1. Global Header Variables
2. Top Information Bar
3. Trending News Animation
4. Premium Brand Area
5. Logo and Website Name
6. Search Form
7. Live News Badge
8. Category Navigation
9. Breaking News Ticker
10. Responsive Tablet Design
11. Responsive Mobile Design
12. Accessibility and Motion Preferences

============================================================
*/


/* =========================================================
   1. GLOBAL VARIABLES
========================================================= */

:root {
    --nts-navy: #071d36;
    --nts-navy-light: #102d4d;
    --nts-navy-dark: #041326;

    --nts-red: #ed1c2e;
    --nts-red-dark: #c81025;
    --nts-red-light: #fff0f2;

    --nts-white: #ffffff;
    --nts-text: #142b46;
    --nts-muted: #68788d;

    --nts-border: #e3eaf2;
    --nts-light: #f4f8fc;
    --nts-light-blue: #edf4fb;

    --nts-shadow-sm: 0 4px 14px rgba(7, 29, 54, 0.05);
    --nts-shadow-md: 0 10px 30px rgba(7, 29, 54, 0.09);
    --nts-shadow-lg: 0 16px 40px rgba(7, 29, 54, 0.14);

    --nts-radius-sm: 6px;
    --nts-radius-md: 10px;
    --nts-radius-lg: 18px;

    --nts-transition: all 0.25s ease;
}


/* =========================================================
   2. GLOBAL HEADER RESET
========================================================= */

body.nts-website {
    margin: 0;
    color: var(--nts-text);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

body.nts-website *,
body.nts-website *::before,
body.nts-website *::after {
    box-sizing: border-box;
}

body.nts-website a {
    text-decoration: none;
}

body.nts-website button,
body.nts-website input {
    font: inherit;
}

.nts-header {
    position: relative;
    z-index: 999;
    width: 100%;
    color: var(--nts-text);
    background: var(--nts-white);
}

.nts-header a {
    text-decoration: none;
}

.nts-container {
    width: min(1320px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.nts-skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 99999;
    padding: 12px 18px;
    color: #ffffff;
    background: var(--nts-red);
}

.nts-skip-link:focus {
    top: 12px;
}


/* =========================================================
   3. TOP INFORMATION BAR
========================================================= */

.nts-topbar {
    position: relative;
    z-index: 5;
    min-height: 40px;
    color: #ffffff;
    background: linear-gradient(
        105deg,
        #06162b 0%,
        #092441 55%,
        #0c2c4d 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.nts-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 40px;
}

.nts-top-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.nts-top-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 15px;
}

.nts-top-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f3f7fc;
    white-space: nowrap;
}

.nts-top-item strong {
    color: #ffffff;
    font-weight: 800;
}

.nts-top-divider {
    display: inline-block;
    width: 1px;
    height: 16px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.22);
}

.nts-top-right a {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: var(--nts-transition);
}

.nts-top-right a:hover {
    color: #ff6875;
}


/* =========================================================
   4. TRENDING NEWS ANIMATION
========================================================= */

.nts-top-trending {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow: hidden;
}

.nts-trending-label {
    flex-shrink: 0;
    color: #ff394c;
    font-size: 12px;
    font-weight: 900;
}

.nts-trending-window {
    width: 100%;
    max-width: 410px;
    overflow: hidden;
    white-space: nowrap;
}

.nts-trending-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: ntsTrendingScroll 32s linear infinite;
}

.nts-trending-track a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nts-trending-track a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 1px;
    background: var(--nts-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nts-trending-track a:hover {
    color: #ff7c87;
}

.nts-trending-track a:hover::after {
    transform: scaleX(1);
}

.nts-trending-track:hover {
    animation-play-state: paused;
}

@keyframes ntsTrendingScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================================================
   5. PREMIUM BRAND AREA
========================================================= */

.nts-brand-area {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 78% 40%,
            rgba(210, 226, 246, 0.48),
            transparent 45%
        ),
        linear-gradient(
            110deg,
            #ffffff 0%,
            #f8fbff 52%,
            #ffffff 100%
        );
    border-bottom: 1px solid var(--nts-border);
}

.nts-brand-area::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.17;
    background-image: radial-gradient(
        #9db5d3 1.2px,
        transparent 1.2px
    );
    background-size: 12px 12px;
    mask-image: linear-gradient(
        90deg,
        transparent 15%,
        #000000 55%,
        transparent 92%
    );
}

.nts-brand-area::after {
    position: absolute;
    z-index: -1;
    top: -100px;
    right: -130px;
    width: 340px;
    height: 340px;
    content: "";
    border: 1px solid rgba(237, 28, 46, 0.06);
    border-radius: 50%;
    box-shadow:
        0 0 0 30px rgba(237, 28, 46, 0.025),
        0 0 0 60px rgba(7, 29, 54, 0.018);
    pointer-events: none;
}

.nts-brand-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: 32px;
    min-height: 150px;
    padding-top: 22px;
    padding-bottom: 22px;
}


/* =========================================================
   6. LOGO AND WEBSITE NAME
========================================================= */

.nts-brand {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}

.nts-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nts-logo-link:hover {
    transform: translateY(-2px);
}

.nts-logo-link img {
    display: block;
    width: 100%;
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
}

.nts-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 3px solid var(--nts-red);
    border-radius: 50%;
    color: var(--nts-red);
    background: #ffffff;
    box-shadow: var(--nts-shadow-sm);
    font-size: 38px;
    font-weight: 900;
}

.nts-brand-text {
    min-width: 0;
}

.nts-brand-title {
    display: block;
    margin: 0;
    color: var(--nts-navy);
    font-size: clamp(30px, 3.1vw, 49px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -2px;
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}

.nts-brand-text > a:hover .nts-brand-title {
    color: #173b61;
}

.nts-title-red {
    color: var(--nts-red);
}

.nts-brand-tagline {
    margin-top: 10px;
    color: #66758b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    line-height: 1.6;
}

.nts-brand-tagline span {
    padding: 0 4px;
    color: var(--nts-red);
}


/* =========================================================
   7. SEARCH FORM
========================================================= */

.nts-brand-tools {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}

.nts-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #dce5f0;
    border-radius: 50px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(7, 29, 54, 0.04);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.nts-search-form:hover {
    border-color: #c4d3e5;
}

.nts-search-form:focus-within {
    border-color: var(--nts-red);
    box-shadow: 0 0 0 4px rgba(237, 28, 46, 0.08);
}

.nts-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
    color: var(--nts-navy);
    font-size: 23px;
}

.nts-search-input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    border: 0 !important;
    outline: none !important;
    color: var(--nts-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
}

.nts-search-input::placeholder {
    color: #8795a7;
    opacity: 1;
}

.nts-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    flex-shrink: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #ff2539,
        #d80e25
    );
    box-shadow: 0 4px 12px rgba(237, 28, 46, 0.12);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.nts-search-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(
        135deg,
        #f51229,
        #bd0a20
    );
    box-shadow: 0 7px 18px rgba(237, 28, 46, 0.25);
}


/* =========================================================
   8. LIVE NEWS BADGE
========================================================= */

.nts-live-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    flex-shrink: 0;
    padding-left: 15px;
    border-left: 1px solid var(--nts-border);
    color: var(--nts-muted);
    font-size: 12px;
}

.nts-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 5px;
    color: #ffffff;
    background: var(--nts-red);
    box-shadow: 0 4px 12px rgba(237, 28, 46, 0.14);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.nts-live-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
    animation: ntsLivePulse 1.3s infinite;
}

@keyframes ntsLivePulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    }
}


/* =========================================================
   9. CATEGORY NAVIGATION
========================================================= */

.nts-nav {
    position: relative;
    z-index: 1000;
    width: 100%;
    color: #ffffff;
    background: linear-gradient(
        105deg,
        #061a32,
        #0b2d4d
    );
    box-shadow: 0 5px 18px rgba(7, 29, 54, 0.1);
}

.nts-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 59px;
}

.nts-nav-list {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 3px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--nts-red) var(--nts-navy-light);
}

.nts-nav-list::-webkit-scrollbar {
    height: 3px;
}

.nts-nav-list::-webkit-scrollbar-track {
    background: var(--nts-navy-light);
}

.nts-nav-list::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: var(--nts-red);
}

.nts-nav-list > li {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.nts-nav-list > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 59px;
    padding: 0 16px;
    color: #f5f8fc;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nts-nav-list > li > a::after {
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    content: "";
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nts-nav-list > li > a:hover,
.nts-nav-list > li.current-cat > a,
.nts-nav-list > li.current-menu-item > a {
    color: #ffffff;
    background: var(--nts-red);
}

.nts-nav-list > li > a:hover::after {
    transform: scaleX(1);
}

.nts-nav-list > li.nts-nav-home {
    margin-right: 6px;
    border-radius: 0 0 8px 8px;
    background: var(--nts-red);
}

.nts-nav-list > li.nts-nav-home > a {
    padding-right: 23px;
    padding-left: 23px;
}

.nts-nav-list > li.nts-nav-home > a::before {
    content: "⌂";
    margin-right: 8px;
    font-size: 21px;
}

.nts-nav-list > li.nts-nav-home > a:hover {
    background: var(--nts-red-dark);
}

.nts-nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
}

.nts-nav-action,
.nts-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 22px;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nts-nav-action:hover,
.nts-mobile-toggle:hover {
    color: #ffffff;
    background: var(--nts-red);
}

.nts-mobile-toggle {
    display: none;
}


/* =========================================================
   10. BREAKING NEWS TICKER
========================================================= */

.nts-breaking-wrap {
    padding: 14px 0;
    background: #f2f6fb;
}

.nts-breaking {
    display: flex;
    align-items: stretch;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--nts-shadow-sm);
}

.nts-breaking-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 0 23px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #fa1c32,
        #d70d25
    );
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.nts-breaking-label::after {
    position: absolute;
    top: 0;
    right: -13px;
    z-index: 1;
    width: 27px;
    height: 100%;
    content: "";
    background: inherit;
    transform: skewX(20deg);
}

.nts-breaking-lightning,
.nts-breaking-label-text {
    position: relative;
    z-index: 2;
}

.nts-breaking-lightning {
    font-size: 22px;
}

.nts-breaking-window {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding-left: 24px;
}

.nts-breaking-track {
    display: flex;
    align-items: center;
    gap: 35px;
    width: max-content;
    animation: ntsBreakingScroll 38s linear infinite;
}

.nts-breaking-track:hover {
    animation-play-state: paused;
}

.nts-breaking-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--nts-text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nts-breaking-item::before {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    content: "";
    border-radius: 50%;
    background: var(--nts-red);
}

.nts-breaking-item:hover {
    color: var(--nts-red);
}

@keyframes ntsBreakingScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.nts-breaking-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 9px;
    background: #ffffff;
}

.nts-breaking-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    background: var(--nts-red);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.nts-breaking-controls button:hover {
    background: var(--nts-red-dark);
}


/* =========================================================
   11. TABLET RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .nts-brand-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .nts-brand {
        justify-content: center;
    }

    .nts-brand-tools {
        width: 100%;
    }

    .nts-top-trending {
        display: none;
    }

    .nts-nav-list > li > a {
        padding-right: 13px;
        padding-left: 13px;
    }

}


/* =========================================================
   12. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .nts-container {
        width: calc(100% - 24px);
    }


    /* Top bar */

    .nts-topbar,
    .nts-topbar-inner {
        min-height: 36px;
    }

    .nts-topbar-inner {
        gap: 8px;
    }

    .nts-top-left {
        gap: 8px;
    }

    .nts-top-item {
        font-size: 10px;
    }

    .nts-top-tagline,
    .nts-top-divider,
    .nts-top-trending {
        display: none;
    }

    .nts-top-right {
        gap: 9px;
    }

    .nts-top-right a {
        font-size: 11px;
    }


    /* Brand area */

    .nts-brand-inner {
        min-height: auto;
        gap: 15px;
        padding-top: 18px;
        padding-bottom: 17px;
    }

    .nts-brand {
        justify-content: flex-start;
        gap: 10px;
    }

    .nts-logo-link {
        width: 58px;
        height: 58px;
    }

    .nts-logo-link img {
        max-width: 58px;
        max-height: 58px;
    }

    .nts-logo-fallback {
        width: 52px;
        height: 52px;
        font-size: 25px;
    }

    .nts-brand-title {
        font-size: clamp(24px, 6.7vw, 35px);
        letter-spacing: -1px;
    }

    .nts-brand-tagline {
        margin-top: 5px;
        font-size: 8px;
        letter-spacing: 1px;
    }


    /* Search */

    .nts-brand-tools {
        gap: 0;
    }

    .nts-search-form {
        min-height: 48px;
    }

    .nts-search-icon {
        width: 31px;
        font-size: 20px;
    }

    .nts-search-input {
        font-size: 12px;
    }

    .nts-search-submit {
        min-height: 38px;
        padding: 0 15px;
        font-size: 12px;
    }

    .nts-live-status {
        display: none;
    }


    /* Navigation */

    .nts-nav-inner {
        position: relative;
        min-height: 52px;
        justify-content: space-between;
    }

    .nts-mobile-toggle {
        display: inline-flex;
    }

    .nts-nav-list {
        position: absolute;
        top: 100%;
        right: -12px;
        left: -12px;
        z-index: 9999;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 70vh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px 12px 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: #071d36;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    }

    .nts-nav-list.nts-menu-open {
        display: flex;
    }

    .nts-nav-list > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nts-nav-list > li > a {
        justify-content: flex-start;
        width: 100%;
        min-height: 45px;
        padding: 12px 14px;
        white-space: normal;
        font-size: 13px;
    }

    .nts-nav-list > li.nts-nav-home {
        margin: 0;
        border-radius: 6px;
    }


    /* Breaking news */

    .nts-breaking-wrap {
        padding: 10px 0;
    }

    .nts-breaking {
        min-height: 45px;
        border-radius: 6px;
    }

    .nts-breaking-label {
        gap: 5px;
        padding: 0 10px;
        font-size: 10px;
    }

    .nts-breaking-label::after {
        right: -9px;
        width: 18px;
    }

    .nts-breaking-lightning {
        font-size: 15px;
    }

    .nts-breaking-window {
        padding-left: 14px;
    }

    .nts-breaking-track {
        gap: 24px;
        animation-duration: 30s;
    }

    .nts-breaking-item {
        gap: 7px;
        font-size: 11px;
    }

    .nts-breaking-controls {
        padding: 0 5px;
    }

    .nts-breaking-controls button {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

}


/* =========================================================
   13. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .nts-top-right {
        gap: 6px;
    }

    .nts-top-right a {
        font-size: 10px;
    }

    .nts-brand-title {
        font-size: 23px;
    }

    .nts-logo-link {
        width: 47px;
        height: 47px;
    }

    .nts-logo-link img {
        max-width: 47px;
        max-height: 47px;
    }

    .nts-brand-tagline {
        font-size: 7px;
        letter-spacing: 0.6px;
    }

    .nts-search-submit {
        padding: 0 10px;
    }

    .nts-breaking-label {
        gap: 4px;
        padding: 0 7px;
        font-size: 9px;
    }

    .nts-breaking-controls button {
        width: 22px;
        height: 22px;
    }

}


/* =========================================================
   14. ACCESSIBILITY
========================================================= */

.nts-header a:focus-visible,
.nts-header button:focus-visible,
.nts-header input:focus-visible {
    outline: 3px solid #ffb7bf;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .nts-trending-track,
    .nts-breaking-track,
    .nts-live-dot {
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }

}