/*
Theme Name: StudioX News
Theme URI: https://studioxnews.ca
Description: RCI-style news theme for StudioX News multilingual network
Version: 1.0.0
Author: StudioX Film & TV Corporation
Author URI: https://studioxfilmtv.com
Text Domain: studiox-news
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --sx-red:        #C8102E;
    --sx-navy:       #1a2744;
    --sx-dark:       #1a1a1a;
    --sx-white:      #ffffff;
    --sx-light-gray: #f4f4f4;
    --sx-mid-gray:   #e0e0e0;
    --sx-text:       #1a1a1a;
    --sx-text-muted: #666666;
    --sx-border:     #e0e0e0;
    --sx-font:       'Noto Sans', 'Segoe UI', Arial, sans-serif;
    --sx-radius:     4px;
    --sx-max-width:  1200px;
    --sx-gap:        16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: var(--sx-font);
    background: var(--sx-light-gray);
    color: var(--sx-text);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.sx-container {
    max-width: var(--sx-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
.sx-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   HEADER — RED TOP BAR
   ============================================================ */
#sx-header {
    background: var(--sx-red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 100%;
    left: 0;
    right: 0;
}
#sx-header .sx-container,
#sx-cat-nav .sx-container,
#sx-ticker .sx-container {
    max-width: 100%;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}
.sx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    width: 100%;
}

/* Logo */
.sx-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--sx-white);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.sx-logo-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0;
}

/* Language switcher */
.sx-lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.sx-lang-switch a {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    padding: 3px 7px;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}
.sx-lang-switch a:hover,
.sx-lang-switch a.sx-lang-active {
    color: var(--sx-white);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}

/* Header right — search + hamburger */
.sx-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sx-search-toggle,
.sx-menu-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 6px;
    font-size: 18px;
    line-height: 1;
}
.sx-search-toggle:hover,
.sx-menu-toggle:hover { color: var(--sx-white); }

/* Search bar (hidden by default, toggled by JS) */
#sx-search-bar {
    display: none;
    background: var(--sx-dark);
    padding: 10px 20px;
}
#sx-search-bar.is-open { display: block; }
#sx-search-bar form {
    display: flex;
    max-width: var(--sx-max-width);
    margin: 0 auto;
    gap: 8px;
}
#sx-search-bar input[type="search"] {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: var(--sx-radius);
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: var(--sx-white);
}
#sx-search-bar input[type="search"]::placeholder { color: rgba(255,255,255,0.4); }
#sx-search-bar button {
    padding: 8px 16px;
    background: var(--sx-red);
    color: var(--sx-white);
    border: none;
    border-radius: var(--sx-radius);
    cursor: pointer;
    font-size: 13px;
}

/* ============================================================
   CATEGORY NAV — DARK BAR
   ============================================================ */
#sx-cat-nav {
    background: var(--sx-dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}
.sx-cat-nav-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}
.sx-cat-nav-inner::-webkit-scrollbar { display: none; }
.sx-cat-nav-inner a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 12px 16px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.sx-cat-nav-inner a:hover,
.sx-cat-nav-inner a.current-cat-link {
    color: var(--sx-white);
    border-bottom-color: var(--sx-red);
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
#sx-ticker {
    background: var(--sx-navy);
    padding: 8px 0;
    overflow: hidden;
    width: 100%;
}
.sx-ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.sx-ticker-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--sx-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    background: rgba(200,16,46,0.15);
    padding: 3px 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.sx-ticker-track {
    display: flex;
    gap: 48px;
    animation: sx-ticker-scroll 40s linear infinite;
    white-space: nowrap;
}
.sx-ticker-track:hover { animation-play-state: paused; }
.sx-ticker-track a {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    transition: color 0.15s;
}
.sx-ticker-track a:hover { color: var(--sx-white); }
.sx-ticker-track a::before {
    content: '·';
    margin-right: 48px;
    color: rgba(255,255,255,0.3);
}
.sx-ticker-track a:first-child::before { display: none; }
@keyframes sx-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#sx-main {
    padding: 24px 0 40px;
}
.sx-main-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .sx-main-inner { grid-template-columns: 1fr; }
    #sx-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 600px) {
    .sx-main-inner { grid-template-columns: 1fr; }
    #sx-sidebar { display: flex; flex-direction: column; gap: 16px; }
}

/* ============================================================
   BREAKING NEWS ALERT BAR
   ============================================================ */
.sx-breaking-alert {
    background: var(--sx-red);
    color: var(--sx-white);
    padding: 10px 16px;
    border-radius: var(--sx-radius);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.sx-breaking-badge {
    background: var(--sx-white);
    color: var(--sx-red);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: 1px;
}
.sx-breaking-alert a {
    color: var(--sx-white);
    line-height: 1.4;
}
.sx-breaking-alert a:hover { text-decoration: underline; }

/* ============================================================
   HERO GRID
   ============================================================ */
.sx-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: var(--sx-gap);
    margin-bottom: 28px;
}

/* ============================================================
   CARDS — BASE
   ============================================================ */
.sx-card {
    background: var(--sx-white);
    border-radius: var(--sx-radius);
    overflow: hidden;
    border: 1px solid var(--sx-border);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}
.sx-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.sx-card:hover .sx-card-title { color: var(--sx-red); }

.sx-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #c0c0c0;
    position: relative;
}
.sx-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sx-card:hover .sx-card-thumb img { transform: scale(1.03); }

.sx-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.sx-card-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--sx-red);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.sx-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--sx-text);
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.15s;
    flex: 1;
}
.sx-card-meta {
    font-size: 11px;
    color: var(--sx-text-muted);
    margin-top: auto;
}
.sx-card-excerpt {
    font-size: 13px;
    color: var(--sx-text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Lead card — spans 2 cols */
.sx-card-lead {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}
.sx-card-lead .sx-card-thumb { aspect-ratio: 16/8; }
.sx-card-lead .sx-card-title { font-size: 22px; line-height: 1.3; }
.sx-card-lead .sx-card-cat { font-size: 11px; }

/* Side stacked card — spans 2 rows */
.sx-card-side {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}
.sx-card-side .sx-card-thumb { aspect-ratio: 4/3; }
.sx-card-side-secondary {
    padding: 12px 14px;
    border-top: 1px solid var(--sx-border);
    flex: 1;
}
.sx-card-side-secondary .sx-card-cat { font-size: 10px; margin-bottom: 4px; }
.sx-card-side-secondary .sx-card-title { font-size: 14px; margin-bottom: 4px; }
.sx-card-side-secondary .sx-card-meta { font-size: 11px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sx-section { margin-bottom: 28px; }
.sx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sx-red);
}
.sx-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sx-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sx-section-more {
    font-size: 12px;
    color: var(--sx-red);
    font-weight: 600;
    letter-spacing: 0.3px;
}
.sx-section-more:hover { text-decoration: underline; }

/* ============================================================
   CARD GRIDS
   ============================================================ */
.sx-card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sx-gap);
}
.sx-card-grid-4 .sx-card-title { font-size: 14px; }

.sx-card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sx-gap);
}

/* ============================================================
   LIST CARD (Community / Immigration sections)
   ============================================================ */
.sx-list-card {
    background: var(--sx-white);
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    overflow: hidden;
}
.sx-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--sx-border);
    transition: background 0.1s;
    text-decoration: none;
    color: inherit;
}
.sx-list-item:last-child { border-bottom: none; }
.sx-list-item:hover { background: var(--sx-light-gray); }
.sx-list-item:hover .sx-list-title { color: var(--sx-red); }
.sx-list-thumb {
    width: 88px;
    min-width: 88px;
    height: 60px;
    border-radius: 3px;
    overflow: hidden;
    background: #c0c0c0;
}
.sx-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sx-list-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--sx-red);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}
.sx-list-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--sx-text);
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.15s;
}
.sx-list-meta {
    font-size: 11px;
    color: var(--sx-text-muted);
}
.sx-list-lang-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.sx-lang-tag {
    font-size: 10px;
    color: var(--sx-navy);
    background: rgba(26,39,68,0.08);
    padding: 1px 6px;
    border-radius: 2px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sx-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sx-widget {
    background: var(--sx-white);
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    overflow: hidden;
}
.sx-widget-header {
    background: var(--sx-dark);
    color: var(--sx-white);
    font-size: 11px;
    font-weight: 700;
    padding: 9px 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Language browser widget */
.sx-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.sx-lang-grid a {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--sx-text-muted);
    border: 0.5px solid var(--sx-border);
    transition: all 0.1s;
    text-align: center;
}
.sx-lang-grid a:hover {
    background: var(--sx-light-gray);
    color: var(--sx-text);
}
.sx-lang-grid a.sx-lang-current {
    color: var(--sx-red);
    font-weight: 600;
    background: rgba(200,16,46,0.04);
}
.sx-lang-grid-more {
    grid-column: 1/-1;
    font-size: 12px;
    color: var(--sx-red) !important;
    font-weight: 600 !important;
    border-top: 1px solid var(--sx-border) !important;
}

/* Most read widget */
.sx-most-read-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--sx-border);
    transition: background 0.1s;
    text-decoration: none;
    color: inherit;
}
.sx-most-read-item:last-child { border-bottom: none; }
.sx-most-read-item:hover { background: var(--sx-light-gray); }
.sx-most-read-item:hover .sx-list-title { color: var(--sx-red); }
.sx-most-read-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--sx-red);
    min-width: 24px;
    line-height: 1.1;
    flex-shrink: 0;
}
.sx-most-read-item:nth-child(n+2) .sx-most-read-num { color: var(--sx-mid-gray); }

/* Province pills widget */
.sx-province-pills {
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sx-province-pill {
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid var(--sx-border);
    border-radius: 3px;
    color: var(--sx-text-muted);
    transition: all 0.1s;
}
.sx-province-pill:hover {
    border-color: var(--sx-red);
    color: var(--sx-red);
    background: rgba(200,16,46,0.04);
}

/* ============================================================
   FOOTER
   ============================================================ */
#sx-footer {
    background: var(--sx-navy);
    padding: 32px 0 20px;
    margin-top: 40px;
}
.sx-footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.sx-footer-brand {}
.sx-footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--sx-white);
    margin-bottom: 8px;
}
.sx-footer-tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}
.sx-footer-col-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}
.sx-footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
    transition: color 0.15s;
}
.sx-footer-col a:hover { color: var(--sx-white); }
.sx-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.sx-footer-bottom a { color: rgba(255,255,255,0.45); }
.sx-footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   RTL SUPPORT (Urdu, Farsi, Hebrew, Arabic)
   ============================================================ */
.rtl,
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .sx-header-inner { flex-direction: row-reverse; }
[dir="rtl"] .sx-lang-switch { flex-direction: row-reverse; }
[dir="rtl"] .sx-cat-nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .sx-list-item { flex-direction: row-reverse; }
[dir="rtl"] .sx-most-read-item { flex-direction: row-reverse; }
[dir="rtl"] .sx-footer-top { direction: rtl; }
[dir="rtl"] .sx-main-inner { direction: rtl; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .sx-main-inner { grid-template-columns: 1fr; }
    #sx-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .sx-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .sx-logo { font-size: 18px; }
    .sx-lang-switch { display: none; }
    .sx-hero-grid {
        grid-template-columns: 1fr;
    }
    .sx-card-lead { grid-column: 1; }
    .sx-card-side { grid-column: 1; grid-row: auto; }
    .sx-card-grid-4 { grid-template-columns: 1fr 1fr; }
    .sx-card-grid-3 { grid-template-columns: 1fr 1fr; }
    #sx-sidebar { grid-template-columns: 1fr; }
    .sx-footer-top { grid-template-columns: 1fr; gap: 20px; }
    .sx-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .sx-card-grid-4 { grid-template-columns: 1fr; }
    .sx-card-grid-3 { grid-template-columns: 1fr; }
    .sx-lang-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   v5 ADDITIONS — RCI header, weather, newsletter, footer
   ============================================================ */

/* ── HEADER v5 ── */
#sx-header {
    background: var(--sx-red);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    width: 100%;
}
.sx-hdr-inner {
    display: grid;
    grid-template-columns: 56px 1fr 100px;
    align-items: center;
    height: 56px;
    padding: 0 12px;
    width: 100%;
}
.sx-hbtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}
.sx-hbtn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}
.sx-hbtn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.sx-hbtn.open span:nth-child(2) { opacity: 0; }
.sx-hbtn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.sx-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sx-logo-center a { display: flex; align-items: center; }
.sx-logo-center svg, .sx-logo-center img { height: 40px; width: auto; }
.sx-hdr-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.sx-lang-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 3px;
    cursor: pointer;
    padding: 5px 8px;
    letter-spacing: .5px;
}
.sx-lang-btn svg { width: 12px; height: 12px; }
.sx-search-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,.85);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}
.sx-search-toggle:hover { color: #fff; }
#sx-search-bar {
    display: none;
    background: var(--sx-dark);
    padding: 10px 12px;
}
#sx-search-bar.is-open { display: block; }
#sx-search-bar .search-form {
    display: flex;
    gap: 8px;
    max-width: var(--sx-max-width);
    margin: 0 auto;
}
#sx-search-bar input[type="search"] {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: var(--sx-radius);
    font-size: 14px;
    background: rgba(255,255,255,.1);
    color: #fff;
}
#sx-search-bar input::placeholder { color: rgba(255,255,255,.4); }
#sx-search-bar button {
    padding: 8px 16px;
    background: var(--sx-red);
    color: #fff;
    border: none;
    border-radius: var(--sx-radius);
    cursor: pointer;
}

/* ── MOBILE MENU ── */
#sx-mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--sx-navy);
    z-index: 1000;
    overflow-y: auto;
    flex-direction: column;
}
#sx-mobile-menu.open { display: flex; }
.sx-mmenu-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--sx-red);
    flex-shrink: 0;
}
.sx-mmenu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}
.sx-mmenu-body { padding: 16px; flex: 1; }
.sx-mmenu-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.sx-mmenu-nav a:hover { color: var(--sx-red); }
.sx-mmenu-social {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sx-mmenu-langs { padding-top: 16px; }
.sx-mmenu-langs h4 {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.sx-mmenu-lang-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 6px;
}
.sx-mmenu-lang-grid a {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.07);
    padding: 7px 6px;
    border-radius: 3px;
    text-align: center;
}
.sx-mmenu-lang-grid a:hover,
.sx-mmenu-lang-grid a.active { background: var(--sx-red); color: #fff; }
.sx-mmenu-lang-grid a.all { background: rgba(200,16,46,.35); color: #fff; font-weight: 700; }
#sx-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
}
#sx-menu-overlay.open { display: block; }

/* ── SOCIAL ICONS ── */
.sx-social-icons { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── CATEGORY NAV v5 ── */
#sx-cat-nav {
    background: var(--sx-dark);
    border-bottom: 1px solid rgba(255,255,255,.05);
    width: 100%;
}
.sx-cat-nav-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    padding: 0 8px;
}
.sx-cat-nav-inner::-webkit-scrollbar { display: none; }
.sx-cat-nav-inner a {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.65);
    padding: 11px 14px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .15s;
}
.sx-cat-nav-inner a:hover,
.sx-cat-nav-inner a.active { color: #fff; border-bottom-color: var(--sx-red); }

/* ── TICKER v5 ── */
#sx-ticker {
    background: var(--sx-red);
    padding: 7px 0;
    overflow: hidden;
    width: 100%;
}
.sx-ticker-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    overflow: hidden;
    width: 100%;
}
.sx-ticker-label {
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    background: rgba(0,0,0,.25);
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}
.sx-ticker-track {
    display: flex;
    animation: sx-ticker-scroll 55s linear infinite;
    white-space: nowrap;
}
.sx-ticker-track:hover { animation-play-state: paused; }
.sx-ticker-track a {
    font-size: 12px;
    color: rgba(255,255,255,.92);
    padding-right: 40px;
}
.sx-ticker-track a::before { content: '▸ '; color: rgba(255,255,255,.55); }
@keyframes sx-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── WEATHER BAR ── */
#sx-weather-bar {
    background: var(--sx-navy);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.sx-wx-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sx-wx-loc-icon { color: rgba(255,255,255,.7); display: flex; align-items: center; }
.sx-wx-city { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.sx-wx-icon { font-size: 22px; line-height: 1; }
.sx-wx-temp { font-size: 20px; font-weight: 900; color: #fff; }
.sx-wx-desc { font-size: 11px; color: rgba(255,255,255,.6); }
.sx-wx-pills { display: flex; gap: 8px; }
.sx-wx-pill { font-size: 11px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 10px; }
.sx-wx-traffic {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    padding: 5px 12px;
    border-radius: 3px;
    letter-spacing: .5px;
    white-space: nowrap;
}
.sx-wx-traffic:hover { background: rgba(255,255,255,.25); }

/* ── AD SLOTS ── */
.sx-ad-slot-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-top: 1px solid var(--sx-border);
    border-bottom: 1px solid var(--sx-border);
    padding: 8px 16px;
    min-height: 60px;
}
.sx-ad-slot-wrap img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* ── MULTILINGUAL SCROLL SECTION ── */
.sx-multi-section { margin-bottom: 28px; }
.sx-multi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sx-multi-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sx-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sx-multi-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--sx-red);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}
.sx-multi-more { font-size: 12px; color: var(--sx-red); font-weight: 700; }
.sx-multi-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.sx-multi-scroll::-webkit-scrollbar { display: none; }
.sx-multi-card {
    flex-shrink: 0;
    width: 200px;
    background: #fff;
    border-radius: var(--sx-radius);
    overflow: hidden;
    border: 1px solid var(--sx-border);
    transition: box-shadow .15s;
    display: flex;
    flex-direction: column;
}
.sx-multi-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.sx-multi-thumb { width: 200px; height: 120px; overflow: hidden; background: #d0d0d0; }
.sx-multi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sx-multi-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.sx-multi-lang {
    font-size: 10px;
    font-weight: 700;
    color: var(--sx-red);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sx-multi-lang-badge {
    background: var(--sx-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
}
.sx-multi-headline { font-size: 13px; font-weight: 600; line-height: 1.35; flex: 1; }
.sx-multi-time { font-size: 11px; color: var(--sx-text-muted); margin-top: 5px; }

/* ── LANGUAGE BAR ── */
.sx-lang-bar {
    background: #fff;
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    padding: 12px 16px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sx-lang-bar-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
.sx-lang-bar-links { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.sx-lang-pill {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid var(--sx-mid-gray);
    border-radius: 20px;
    color: var(--sx-text-muted);
    background: #fff;
    white-space: nowrap;
    transition: all .15s;
}
.sx-lang-pill:hover,
.sx-lang-pill.active { border-color: var(--sx-red); color: var(--sx-red); background: rgba(200,16,46,.05); font-weight: 600; }
.sx-lang-pill-more {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid var(--sx-red);
    border-radius: 20px;
    color: var(--sx-red);
    font-weight: 700;
    background: rgba(200,16,46,.05);
}

/* ── SECTION HEADERS v5 ── */
.sx-sec-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sx-sec-hdr-bar { display: flex; align-items: stretch; overflow: hidden; border-radius: var(--sx-radius); }
.sx-sec-hdr-icon {
    background: var(--sx-red);
    color: #fff;
    font-size: 13px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
}
.sx-sec-hdr-name {
    background: var(--sx-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
}
.sx-sec-more { font-size: 12px; color: var(--sx-red); font-weight: 700; }

/* ── CBC-STYLE RED BORDER LEAD CARD ── */
.sx-lead-card {
    background: #fff;
    border: 3px solid var(--sx-red);
    border-radius: var(--sx-radius);
    overflow: hidden;
    margin-bottom: 12px;
    display: block;
    transition: box-shadow .15s;
}
.sx-lead-card:hover { box-shadow: 0 6px 20px rgba(200,16,46,.15); }
.sx-lead-thumb { width: 100%; overflow: hidden; background: #d0d0d0; }
.sx-lead-thumb img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .3s; display: block; }
.sx-lead-card:hover .sx-lead-thumb img { transform: scale(1.02); }
.sx-lead-body { padding: 16px; }
.sx-lead-cat { font-size: 11px; font-weight: 900; color: var(--sx-red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.sx-lead-title { font-size: 22px; font-weight: 900; line-height: 1.2; margin-bottom: 8px; color: var(--sx-text); }
.sx-lead-excerpt { font-size: 14px; color: var(--sx-text-muted); line-height: 1.5; margin-bottom: 10px; }
.sx-lead-meta { font-size: 11px; color: var(--sx-text-muted); }
.sx-lead-card:hover .sx-lead-title { color: var(--sx-red); }

/* ── LIST ROW (CBC-style) ── */
.sx-list-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    padding: 12px;
    margin-bottom: 8px;
    transition: box-shadow .15s;
    text-decoration: none;
    color: inherit;
}
.sx-list-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sx-list-row:hover .sx-list-row-title { color: var(--sx-red); }
.sx-list-row-thumb { width: 100px; min-width: 100px; height: 68px; border-radius: 3px; overflow: hidden; background: #d0d0d0; }
.sx-list-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sx-list-row-cat { font-size: 10px; font-weight: 700; color: var(--sx-red); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 3px; }
.sx-list-row-title { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; transition: color .15s; }
.sx-list-row-meta { font-size: 11px; color: var(--sx-text-muted); }

/* ── NEWSLETTER SECTION ── */
.sx-newsletter-section {
    background: var(--sx-navy);
    padding: 32px 0;
    margin-top: 40px;
}
.sx-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.sx-newsletter-text { flex: 1; min-width: 260px; }
.sx-newsletter-text svg { margin-bottom: 12px; }
.sx-newsletter-text h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sx-newsletter-text p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; }
.sx-newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 400px; }
.sx-newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--sx-radius);
    font-size: 13px;
    background: rgba(255,255,255,.1);
    color: #fff;
    outline: none;
}
.sx-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.sx-newsletter-form input:focus { border-color: rgba(255,255,255,.5); }
.sx-newsletter-form button {
    padding: 10px 18px;
    background: var(--sx-red);
    color: #fff;
    border: none;
    border-radius: var(--sx-radius);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.sx-newsletter-form button:hover { background: #a50d25; }

/* ── FOOTER v5 ── */
#sx-footer { background: var(--sx-dark); }
.sx-ft-main { padding: 36px 0 24px; }
.sx-ft-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 0;
}
.sx-ft-logo { margin-bottom: 12px; }
.sx-ft-logo svg, .sx-ft-logo img { height: 34px; width: auto; }
.sx-ft-desc { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 16px; }
.sx-ft-col-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.sx-ft-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.sx-ft-col a:hover { color: #fff; }
.sx-ft-bottom-bar { background: #000; }
.sx-ft-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 8px;
}
.sx-ft-copy { font-size: 11px; color: rgba(255,255,255,.3); }
.sx-ft-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.sx-ft-legal a { font-size: 11px; color: rgba(255,255,255,.35); }
.sx-ft-legal a:hover { color: rgba(255,255,255,.7); }

/* ── GRID HELPERS ── */
.sx-grid2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.sx-grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.sx-grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── RESPONSIVE v5 ── */
@media (max-width: 1024px) {
    .sx-ft-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .sx-main-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sx-lead-title { font-size: 18px; }
    .sx-grid4 { grid-template-columns: 1fr 1fr; }
    .sx-grid3 { grid-template-columns: 1fr 1fr; }
    .sx-grid2 { grid-template-columns: 1fr; }
    .sx-ft-grid { grid-template-columns: 1fr; gap: 20px; }
    .sx-ft-bottom-inner { flex-direction: column; align-items: flex-start; }
    .sx-newsletter-inner { flex-direction: column; }
    .sx-newsletter-form { width: 100%; max-width: 100%; }
    .sx-wx-pills { display: none; }
    #sx-sidebar { display: flex; flex-direction: column; gap: 16px; }
    .sx-lang-bar { display: none; }
}
@media (max-width: 480px) {
    .sx-grid4 { grid-template-columns: 1fr; }
    .sx-grid3 { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE CRITICAL FIXES — patch for live site issues
   ============================================================ */

/* Fix 1: Logo centered on all screen sizes */
.sx-hdr-inner {
    display: grid !important;
    grid-template-columns: 56px 1fr 100px !important;
    align-items: center !important;
    height: 56px !important;
    padding: 0 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.sx-logo-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Fix 2: Multilingual scroll — force horizontal on mobile */
.sx-multi-scroll {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    width: 100% !important;
}
.sx-multi-scroll::-webkit-scrollbar { display: none !important; }
.sx-multi-card {
    flex: 0 0 180px !important;
    min-width: 180px !important;
    width: 180px !important;
}

/* Fix 3: Mobile menu — proper overlay styling */
#sx-mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--sx-navy) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-direction: column !important;
    display: none !important;
}
#sx-mobile-menu.open {
    display: flex !important;
}
.sx-mmenu-hdr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: var(--sx-red) !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}
.sx-mmenu-body {
    padding: 16px !important;
    flex: 1 !important;
    width: 100% !important;
}
.sx-mmenu-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}
.sx-mmenu-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #fff !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    text-decoration: none !important;
}
.sx-mmenu-lang-grid {
    display: grid !important;
    grid-template-columns: repeat(4,1fr) !important;
    gap: 6px !important;
    width: 100% !important;
}
.sx-mmenu-lang-grid a {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.75) !important;
    background: rgba(255,255,255,.07) !important;
    padding: 7px 6px !important;
    border-radius: 3px !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
}
#sx-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6);
    z-index: 9998;
}
#sx-menu-overlay.open { display: block; }

/* Fix 4: Footer mobile — no more run-together text */
@media (max-width: 768px) {
    .sx-ft-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .sx-ft-col a {
        display: block !important;
        margin-bottom: 8px !important;
        color: rgba(255,255,255,.6) !important;
    }
    .sx-ft-col-title {
        display: block !important;
        margin-bottom: 12px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        color: rgba(255,255,255,.4) !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }
    .sx-ft-bottom-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .sx-ft-legal {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .sx-newsletter-inner {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .sx-newsletter-form {
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Sidebar visible on all screens - collapsible on mobile via JS */
    /* Lang bar hide on mobile */
    .sx-lang-bar { display: none !important; }
    /* Weather pills hide on mobile */
    .sx-wx-pills { display: none !important; }
    /* Multilingual section title smaller */
    .sx-multi-title { font-size: 10px !important; }
    /* Lead card title smaller */
    .sx-lead-title { font-size: 17px !important; }
    /* Section header fix on mobile */
    .sx-sec-hdr {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    /* Grid fixes */
    .sx-grid2, .sx-grid3, .sx-grid4 {
        grid-template-columns: 1fr !important;
    }
}

/* Fix 5: Ticker full width no overflow */
#sx-ticker {
    width: 100% !important;
    overflow: hidden !important;
}
.sx-ticker-inner {
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 12px !important;
}

/* Fix 6: Weather bar mobile */
@media (max-width: 480px) {
    #sx-weather-bar {
        padding: 6px 12px !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .sx-wx-traffic {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}

/* Fix 7: Section headers not breaking on mobile */
.sx-sec-hdr-bar {
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
    border-radius: var(--sx-radius) !important;
    flex-shrink: 0 !important;
}

/* ============================================================
   SIDEBAR FINAL FIX — always visible, responsive
   ============================================================ */

/* Desktop: sidebar 300px column */
.sx-main-inner {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    gap: 24px !important;
    align-items: start !important;
}

/* Tablet: sidebar stacks below, 2 columns */
@media (max-width: 1024px) {
    .sx-main-inner {
        grid-template-columns: 1fr !important;
    }
    #sx-sidebar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
}

/* Mobile: sidebar stacks, single column */
@media (max-width: 600px) {
    .sx-main-inner {
        grid-template-columns: 1fr !important;
    }
    #sx-sidebar {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
}

/* Sidebar widget header */
.sx-widget .sx-widget-header,
.sx-widget .sx-wgt-hdr {
    background: var(--sx-dark) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 9px 14px !important;
    letter-spacing: .8px !important;
    text-transform: uppercase !important;
}

/* Language group label */
.sx-lang-group-wrap {
    border-top: 1px solid var(--sx-border);
}
.sx-lang-group-wrap:first-of-type {
    border-top: none;
}

/* Most read items */
.sx-mr-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--sx-border) !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: background .1s !important;
}
.sx-mr-item:last-child { border-bottom: none !important; }
.sx-mr-item:hover { background: var(--sx-light-gray) !important; }
.sx-mr-num {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: var(--sx-red) !important;
    min-width: 24px !important;
    line-height: 1.1 !important;
    flex-shrink: 0 !important;
}
.sx-mr-num.gray { color: var(--sx-mid-gray) !important; }

/* Province pills */
.sx-prov-pills {
    padding: 10px 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}
.sx-prov-pill {
    font-size: 11px !important;
    padding: 4px 9px !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: 3px !important;
    color: var(--sx-text-muted) !important;
    transition: all .1s !important;
    text-decoration: none !important;
}
.sx-prov-pill:hover {
    border-color: var(--sx-red) !important;
    color: var(--sx-red) !important;
}

/* Ad content wrap — shows on all screen sizes */
.sx-ad-content-wrap {
    margin: 0 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.sx-ad-content-wrap .sx-ad-slot-wrap {
    width: 100% !important;
}

/* Newsletter fix — prevent redirect to home */
.sx-newsletter-form {
    display: flex !important;
    gap: 8px !important;
}
.sx-newsletter-form input[type="email"] {
    flex: 1 !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: var(--sx-radius) !important;
    font-size: 13px !important;
    background: rgba(255,255,255,.1) !important;
    color: #fff !important;
    outline: none !important;
}
.sx-newsletter-form button[type="submit"] {
    padding: 10px 18px !important;
    background: var(--sx-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--sx-radius) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
