/*
Theme Name: R News Red-Blue
Theme URI: https://example.com/
Author: Tahsin
Description: Responsive Hindi news portal theme inspired by the supplied reference screenshot, with swapped red/blue accent colors.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: rnews-red-blue
*/
:root {
    --primary: #d71920;
    --primary-dark: #b70f18;
    --accent: #0b3f78;
    --accent-dark: #082f5c;
    --ink: #17212b;
    --muted: #697586;
    --line: #e1e5ea;
    --soft: #f1f4f8;
    --white: #fff;
    --wrap: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Noto Sans Devanagari", "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

button,
input {
    font: inherit;
}

.container {
    width: min(var(--wrap), calc(100% - 28px));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-top {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 20px;
}


/* ==============================
   HEADER
============================== */

/* Active menu */
.main-nav a.current-menu-item,
.main-nav a.current_page_item,
.main-nav a.current-menu-ancestor,
.main-nav a.current_page_ancestor {
    background: #0B3F78 !important;
    color: #fff !important;
}

/* Hover and active same style */
.main-nav a:hover {
    background: #0B3F78;
    color: #fff !important;
}

.main-nav a.active {
    background: #0B3F78 !important;
    color: #fff !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 95px;
}

.state-panel {
    display: none;
}

.state-panel.active {
    display: block;
}

.state-tab.active {
    color: #d71920;
    border-bottom: 3px solid #d71920;
}

.brand {
    flex: 0 0 auto;
}

/* Search */

.header-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 420px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

.header-search button {
    height: 100%;
    padding: 0 16px;
    border: none;
    background: #b31d3a;
    color: #fff;
    cursor: pointer;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* LIVE link - no background */
.header-live {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #d71920 !important;
    background: #fff !important;
    border: none !important;
    padding: 6px 4px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.live-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    background: #d71920;
    border-radius: 50%;
    animation: liveBlink 1s infinite;
}

@keyframes liveBlink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

.social-links {
    display: flex !important;
    align-items: center;
    gap: 9px;
    visibility: visible !important;
    opacity: 1 !important;
}

.social-links a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0756a5 !important;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0756a5;
}

.social-icon {
    width: 18px;
    height: 18px;
    overflow: visible;
}

.instagram-icon {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.instagram-icon .insta-dot {
    fill: #fff;
    stroke: none;
}

.youtube-icon {
    fill: #fff;
    stroke: none;
}

.youtube-icon .youtube-play {
    fill: #0756a5;
}

.facebook-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    stroke: none;
}

.social-links a:hover {
    background: #d71920;
}

.social-links a:hover .youtube-play {
    fill: #d71920;
}

.social-links a:hover {
    background: #d71920 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Mobile header */
@media (max-width: 768px) {

    .header-search {
        display: none !important;
    }

    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .header-live {
        display: inline-flex !important;
        font-size: 11px;
        padding: 4px 0;
    }

    .header-pill {
        display: none !important;
    }

    .social-links {
        display: flex !important;
        gap: 6px;
    }

    .social-links a {
        width: 27px;
        height: 27px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #0756a5;
    }

    .social-icon {
        width: 18px;
        height: 18px;
        overflow: visible;
    }

    .facebook-icon {
        width: 18px;
        height: 18px;
        fill: #fff;
        stroke: none;
    }

    .instagram-icon {
        fill: none;
        stroke: #fff;
        stroke-width: 2;
    }

    .instagram-icon .insta-dot {
        fill: #fff;
        stroke: none;
    }

    .youtube-icon {
        fill: #fff;
        stroke: none;
    }

    .youtube-icon .youtube-play {
        fill: #0756a5;
    }

    .social-links a:hover {
        background: #d71920;
    }

    .social-links a:hover .youtube-play {
        fill: #d71920;
    }
}




.brand {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}

.site-title-text {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    width: min(360px, 34vw);
    background: #f2f4f7;
    border: 1px solid #e2e6ec;
    border-radius: 22px;
    overflow: hidden;
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 13px;
    outline: 0;
}

.header-search button {
    border: 0;
    background: var(--accent);
    color: #fff;
    padding: 8px 15px;
    font-weight: 700;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-pill {
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 9px;
    padding-left: 12px;
    border-left: 1px solid #ddd;
    color: #333;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 8px 11px;
    cursor: pointer;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    color: #fff;
}

.main-nav .container {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: auto;
    scrollbar-width: none;
}

.main-nav .container::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    display: block;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.main-nav a:hover,
.main-nav a:focus {
    background: var(--accent);
    color: #fff;
}

.mobile-nav-label {
    display: none;
}

/* Breaking and trending */
.breaking-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 10px auto 8px;
    border: 1px solid #e2e6ec;
    border-radius: 5px;
    overflow: hidden;
    min-height: 38px;
}

.breaking-label {
    flex: 0 0 auto;
    background: var(--accent);
    color: #fff;
    padding: 8px 8px;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.ticker-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: var(--primary-dark);
    color: #fff;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    animation: tickerMove 100s linear infinite;
}

.ticker-window:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track a {
    color: #fff;
    padding: 0 24px;
    font-size: 16px;
}

.ticker-track a:after {
    content: "•";
    color: #f7d46b;
    margin-left: 24px;
}

.trending-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 12px;
    overflow: hidden;
}

.trending-title {
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 800;
}

.trending-tags {
    display: flex;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
}

.trending-tags a {
    font-size: 12px;
    background: #f0f2f5;
    border: 1px solid #e1e5ea;
    padding: 4px 9px;
    border-radius: 4px;
}

/* Ad slots */
.ad-slot {
    margin: 12px auto;
    text-align: center;
    min-height: 18px;
}

.ad-slot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin: auto;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    border: 1px dashed #c8ced6;
    background: #fafbfc;
    color: #818a98;
    font-size: 12px;
}

/* Common sections/cards */
.section {
    margin: 18px auto 26px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
}

.section-head h2 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0;
    color: var(--accent-dark);
    font-weight: 700;
}

.section-head a {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.story-title {
    font-size: 14px;
    line-height: 1.45;
    margin: 6px 0 0;
    font-weight: 800;
}

.story-title a:hover {
    color: var(--accent);
}

.story-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.thumb {
    display: block;
    overflow: hidden;
    background: #edf0f4;
    border-radius: 4px;
}

.thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.thumb:hover img {
    transform: scale(1.035);
}

.placeholder-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #dce4ee, #f5f7fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8793a3;
    font-size: 12px;
}

/* Main top layout */
.lead-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.lead-main {
    min-width: 0;
}

.lead-story {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0b1b2d;
}

.lead-story .thumb {
    aspect-ratio: 16/9;
    border-radius: 0;
}

.lead-story .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 48px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
}

.lead-overlay h1 {
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.25;
    margin: 0;
    font-weight: 900;
    text-shadow: 0 1px 2px #000;
}

.lead-overlay .story-meta {
    color: #eee;
}

.lead-excerpt {
    margin: 8px 0;
    color: #444;
    font-size: 18px;
}

.lead-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mini-story {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.mini-story .thumb {
    aspect-ratio: 4/3;
}

.mini-story .story-title {
    font-size: 12px;
    margin: 0;
}

/* World section news content */
.mini-story-content {
    padding: 8px 0;
}

.mini-story-content .story-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

.mini-story-content .story-title a {
    color: #222;
    text-decoration: none;
}

.mini-story-content .story-title a:hover {
    color: #b31d3a;
}

.story-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 5px;
}

.lead-subgrid .mini-story {
    display: block;
}

.lead-subgrid .thumb {
    aspect-ratio: 16/9;
    margin-bottom: 5px;
}

.lead-subgrid .story-title {
    font-size: 18px;
}

.lead-sidebar {
    min-width: 0;
}

.video-feature {
    position: relative;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}

.video-feature .thumb {
    aspect-ratio: 16/9;
}

.video-feature .thumb img {
    opacity: 0.8;
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 34px;
    background: var(--accent);
    border-radius: 9px;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.sidebar-ad {
    margin: 12px 0;
}

.sidebar-list {
    display: grid;
    gap: 8px;
}

.sidebar-list .mini-story {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.sidebar-list .story-title {
    font-size: 16px;
}

/* Video section */
.video-band {
    background: #e9eef5;
    padding: 18px 0 20px;
}

.video-layout {
    display: grid;
    grid-template-columns: 1fr 1.9fr 1fr;
    gap: 14px;
    align-items: center;
}

.video-stack {
    display: grid;
    gap: 12px;
}

.video-card .thumb {
    aspect-ratio: 16/9;
    position: relative;
}

.video-card .play-icon {
    width: 32px;
    height: 25px;
    font-size: 14px;
}

.video-card .story-title {
    font-size: 12px;
}

.video-center .thumb {
    aspect-ratio: 16/9;
    position: relative;
}

.video-center .story-title {
    font-size: 17px;
}

/* Category content grids */
.category-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.category-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.category-feature .thumb {
    aspect-ratio: 16/9;
}

.category-list {
    display: grid;
    gap: 9px;
}

.category-list .mini-story {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.category-list .mini-story:last-child {
    border-bottom: 0;
}

.wide-ad {
    margin: 20px 0;
}

.viral-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.viral-card {
    border: 1px solid #e3e6eb;
    padding: 6px;
    background: #fff;
}

.viral-card .thumb {
    aspect-ratio: 9/16;
}

.viral-card .story-title {
    font-size: 12px;
}


/* ==================================
   STATE NEWS SECTION
================================== */

.state-news-section {
    margin-top: 25px;
    margin-bottom: 30px;
}

/* Section heading */

.state-section-heading {
    border-bottom: 1px solid #ddd;
    margin-bottom: 12px;
}

.state-section-heading h2 {
    display: inline-block;
    color: #073f7d;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    padding: 8px 5px 10px;
    border-bottom: 2px solid #d71920;
}

/* State navigation tabs */

.state-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.state-tabs::-webkit-scrollbar {
    display: none;
}

.state-tab {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    padding: 10px 3px 12px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    font-family: inherit;
}

.state-tab:hover,
.state-tab.active {
    color: #073f7d;
}

.state-tab.active {
    font-weight: 700;
}

.state-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #d71920;
}

/* Tab panels */

.state-panel {
    display: none;
}

.state-panel.active {
    display: block;
}

/* Three-column news layout */

.state-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 22px;
}

/* Individual news card */

.state-news-card {
    display: grid;
    grid-template-columns: 48% minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #ddd;
}

.state-news-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 9px;
}

.state-news-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 9px;
}

.state-news-details {
    min-width: 0;
}

.state-news-category {
    font-size: 12px;
    color: #073f7d;
    margin-bottom: 4px;
    font-weight: 600;
}

.state-news-details h3 {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0 0 6px;
}

.state-news-details h3 a {
    color: #222;
    text-decoration: none;
}

.state-news-details h3 a:hover {
    color: #d71920;
}

.state-news-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* View more */

.state-view-more {
    text-align: right;
    margin-top: 18px;
}

.state-view-more a {
    color: #073f7d;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.state-view-more a:hover {
    color: #d71920;
}

.state-no-news {
    grid-column: 1 / -1;
    color: #777;
    padding: 15px 0;
}

/* Tablet */

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

/* Mobile */

@media (max-width: 600px) {

    .state-tabs {
        gap: 18px;
        margin-bottom: 18px;
    }

    .state-tab {
        font-size: 14px;
        padding: 10px 2px;
    }

    .state-news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .state-news-card {
        grid-template-columns: 38% minmax(0, 1fr);
        gap: 10px;
        padding-bottom: 13px;
    }

    .state-news-details h3 {
        font-size: 14px;
        line-height: 1.45;
    }

    .state-news-excerpt {
        font-size: 11px;
    }

    .state-news-thumb img {
        aspect-ratio: 16 / 10;
    }
}



/* State archive page */

.state-archive-page {
    padding-top: 25px;
    padding-bottom: 40px;
}

.state-archive-heading {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.state-archive-heading h1 {
    font-size: 28px;
    color: #073f7d;
    margin: 0 0 5px;
}

.state-archive-heading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Individual state panel heading */

.state-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.state-panel-heading h2 {
    font-size: 21px;
    color: #073f7d;
    margin: 0;
}

.state-panel-heading>a {
    color: #d71920;
    font-size: 13px;
    text-decoration: none;
}

.state-news-date {
    font-size: 11px;
    color: #888;
    margin-top: 7px;
}

/* Responsive archive */

@media (max-width: 600px) {
    .state-archive-page {
        padding-top: 15px;
    }

    .state-archive-heading h1 {
        font-size: 23px;
    }

    .state-panel-heading h2 {
        font-size: 18px;
    }
}


.viral-band {
    background: #e9eef5;
    padding: 18px 0 22px;
}

.bottom-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bottom-news-grid .mini-story {
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

/* Footer */
.site-footer {
    background: #0B3F78;
    color: #fff;
    margin-top: 30px;
    padding: 24px 0 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-column h3 {
    font-size: 14px;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
}

.footer-links a {
    font-size: 16px;
    color: #e4edf7;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact .contact-info {
    margin-bottom: 18px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact .contact-icon {
    min-width: 18px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-contact .contact-item p {
    margin: 0;
    color: #e4edf7;
    font-size: 12px;
    line-height: 1.8;
}

.footer-contact .contact-item a {
    color: #e4edf7;
    text-decoration: none;
}

.footer-contact .contact-item a:hover {
    color: #fff;
}

.footer-contact .social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-contact .contact-icon {
    color: #fff;
    filter: grayscale(1) brightness(0) invert(1);
}

.footer-contact .location-icon {
    width: 19px;
    height: 19px;
    display: block;
    fill: #fff;
}

.footer-logo img {
    max-width: 160px;
    width: 100%;
    height: auto;
    display: block;
}

.lead-sidebar .top-stories-ad {
    width: 100%;
    margin-bottom: 22px;
}

.lead-sidebar .advertisement-label {
    font-size: 10px;
    color: #888;
    text-align: right;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lead-sidebar .ad-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.lead-sidebar .ad-slide {
    display: none;
    width: 100%;
    opacity: 0;
}

.lead-sidebar .ad-slide.active {
    display: block;
    animation: adFadeZoom 0.8s ease both;
}

.lead-sidebar .ad-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes adFadeZoom {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* State Archive Advertisement */

.state-page-ad {
    width: 100%;
    margin: 20px 0 25px;
}

.state-page-ad .advertisement-label {
    font-size: 10px;
    color: #888;
    text-align: right;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.state-page-ad .ad-slider {
    width: 100%;
    overflow: hidden;
}

.state-page-ad .ad-slide {
    display: none;
    width: 100%;
}

.state-page-ad .ad-slide.active {
    display: block;
    animation: adFadeZoom 0.8s ease both;
}

.state-page-ad .ad-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.state-page-ad .ad-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
}

.state-page-ad .ad-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
}

.state-page-ad .ad-dot.active {
    background: #d71920;
}

@keyframes adFadeZoom {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.trending-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    overflow: hidden;
}

.trending-title {
    flex-shrink: 0;
    white-space: nowrap;
}

.trending-tags {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.trending-tags::-webkit-scrollbar {
    display: none;
}

.trending-tags a {
    flex-shrink: 0;
}

.lead-sidebar .ad-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
}

.lead-sidebar .ad-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
}

.lead-sidebar .ad-dot.active {
    background: #d71920;
}

.app-badge {
    display: block;
    background: #07111f;
    border: 1px solid #34465c;
    border-radius: 5px;
    padding: 7px 9px;
    margin: 7px 0;
    max-width: 150px;
    font-size: 11px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 18px;
    padding-top: 12px;
    font-size: 11px;
    color: #dbe7f4;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Archive/single defaults */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    margin: 22px auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.archive-card .thumb {
    aspect-ratio: 16/9;
}

.single-article h1 {
    font-size: 32px;
    line-height: 1.3;
}

.single-article .article-image {
    width: 100%;
    height: auto;
}

.single-article .entry-content {
    font-size: 17px;
    line-height: 1.9;
}

.pagination {
    margin: 24px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid var(--line);
    margin: 2px;
}

.pagination .current {
    background: var(--primary);
    color: #fff;
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1000px) {
    .header-inner {
        gap: 12px;
    }

    .header-search {
        display: none;
    }

    .lead-layout {
        grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
    }

    .lead-subgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-layout {
        grid-template-columns: 1fr 1.5fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 20px);
    }

    .header-inner {
        min-height: 90px;
        gap: 9px;
    }

    .brand {
        flex: 0 0 auto;
        max-width: 100px;
    }

    .custom-logo {
        max-width: 170px;
        max-height: 80px;
    }

    .site-title-text {
        font-size: 19px;
    }

    .header-search {
        width: auto;
        flex: 1;
        margin-left: auto;
    }

    .header-search input {
        padding: 7px 9px;
        font-size: 11px;
    }

    .header-search button {
        padding: 7px 9px;
        font-size: 11px;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .header-actions {
        display: none;
    }

    .main-nav .container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 5px 0;
        overflow: visible;
    }

    .main-nav a {
        text-align: center;
        padding: 8px 16px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 16px;
    }

    .breaking-row {
        margin: 8px auto 4px;
        min-height: 34px;
    }

    .breaking-label {
        padding: 7px 8px;
        font-size: 10px;
    }

    .ticker-track a {
        font-size: 14px;
        padding: 0 14px;
    }

    .ticker-track a:after {
        margin-left: 14px;
    }

    .trending-strip {
        padding: 6px 0 8px;
    }

    .trending-title {
        font-size: 11px;
    }

    .trending-tags a {
        font-size: 10px;
        padding: 3px 7px;
    }

    .ad-slot img {
        max-height: 90px;
    }

    .lead-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lead-overlay {
        padding: 36px 10px 10px;
    }

    .lead-overlay h1 {
        font-size: 21px;
    }

    .lead-excerpt {
        font-size: 12px;
    }

    .lead-subgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .lead-subgrid .story-title {
        font-size: 11px;
    }

    .lead-sidebar {
        display: flex;
        flex-direction: column;
    }

    .video-feature {
        order: 0;
    }

    .sidebar-ad {
        order: 1;
    }

    .sidebar-list {
        order: 2;
        grid-template-columns: 1fr;
    }

    .section {
        margin: 15px auto 20px;
    }

    .section-head h2 {
        font-size: 18px;
    }

    .video-band {
        padding: 14px 0;
    }

    .video-layout {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .video-center {
        grid-column: 1/-1;
        grid-row: 1;
    }

    .video-stack {
        gap: 10px;
    }

    .video-center .story-title {
        font-size: 14px;
    }

    .video-card .story-title {
        font-size: 14px;
    }

    .category-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-list .mini-story {
        grid-template-columns: 34% minmax(0, 1fr);
    }

    .category-list .story-title {
        font-size: 12px;
    }

    .viral-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .viral-card {
        padding: 4px;
    }

    .viral-card .story-title {
        font-size: 11px;
    }

    .bottom-news-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bottom-news-grid .mini-story {
        grid-template-columns: 35% minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .footer-column h3 {
        font-size: 12px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-bottom {
        display: block;
        line-height: 1.8;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .single-article h1 {
        font-size: 25px;
    }

    .single-article .entry-content {
        font-size: 16px;
    }

    .sidebar-list .mini-story {
        grid-template-columns: 36% minmax(0, 1fr);
    }

    .main-nav {
        display: block !important;
        width: 100%;
        overflow: hidden;
    }

    .main-nav>.container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    /* WordPress menu list */
    .main-nav .menu, .main-nav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start;
        width: max-content;
        min-width: max-content;
        margin: 0;
        padding: 0;
        list-style: none !important;
    }

    /* Menu items */
    .main-nav li {
        flex: 0 0 auto;
        list-style: none !important;
        margin-right: 10 !important;
        padding: 0;
    }

    /* Both WordPress links and fallback links */
    .main-nav a {
        display: block;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Hide horizontal scrollbar */
    .main-nav>.container::-webkit-scrollbar {
        display: none;
    }
}

/* Remove default list markers from all navigation menus */
nav ul li::marker,
nav ol li::marker,
.navlinks li::marker,
.main-navigation li::marker {
    content: "" !important;
}

/* Remove list styling from menu lists */
nav ul,
nav ol,
nav li,
.navlinks,
.navlinks li,
.main-navigation ul,
.main-navigation li {
    list-style: none !important;
    list-style-type: none !important;
}