/* ══════════════════════════════════════════════════════════
   StudioX News — sx-main.css v2.1
   Unified theme for all 44 subdomains
   ══════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  --sx-red:        #C8102E;
  --sx-navy:       #1a2744;
  --sx-green:      #195c4a;
  --sx-white:      #ffffff;
  --sx-light:      #f5f5f5;
  --sx-light-gray: #f0f0f0;
  --sx-border:     #e0e0e0;
  --sx-text:       #111111;
  --sx-text-muted: #666666;
  --sx-radius:     6px;
  --sx-font:       'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sx-max:        1200px;
  --sx-sidebar:    300px;
}

/* ── DARK MODE ─────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --sx-white:      #1a1a1a;
    --sx-light:      #242424;
    --sx-light-gray: #2a2a2a;
    --sx-border:     #333333;
    --sx-text:       #e8e8e8;
    --sx-text-muted: #999999;
  }
  .sx-header, .sx-nav-bar { background: #111 !important; }
  .sx-card, .sx-list-row, .sx-widget { background: #242424; }
  .sx-footer-main { background: #111 !important; }
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sx-font); color: var(--sx-text); background: var(--sx-light); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sx-red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.3; color: var(--sx-text); }

/* ── RTL SUPPORT ───────────────────────────────────────── */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .sx-nav-links { flex-direction: row-reverse; }
[dir="rtl"] .sx-article-meta { flex-direction: row-reverse; }
[dir="rtl"] .sx-footer-grid { direction: rtl; }
[dir="rtl"] .sx-mobile-bar { direction: rtl; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.sx-container { max-width: var(--sx-max); margin: 0 auto; padding: 0 16px; }
.sx-main-inner { display: grid; grid-template-columns: 1fr var(--sx-sidebar); gap: 24px; align-items: start; }
#sx-main { padding: 20px 0 60px; }
#sx-content { min-width: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--sx-red); color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 4px 0; }
.skip-link:focus { top: 0; }

/* ── HEADER (old class support) ─────────────────────────── */
.sx-header { background: var(--sx-white); border-bottom: 0.5px solid var(--sx-border); position: sticky; top: 0; z-index: 100; }
.sx-header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.sx-logo { display: flex; align-items: center; flex-shrink: 0; }
.sx-logo img { height: 36px; width: auto; }
.sx-logo-text { font-size: 18px; font-weight: 700; color: var(--sx-navy); letter-spacing: -0.3px; }
.sx-logo-text span { color: var(--sx-red); }
.sx-hamburger { display: none; background: none; border: none; color: var(--sx-text); cursor: pointer; padding: 8px; }

/* ── NEW HEADER (v2.1) ───────────────────────────────────── */
#sx-header { background: var(--sx-red); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
#sx-header .sx-container { padding: 0 16px; }
#sx-header .sx-header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.sx-hbtn { background: none; border: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.sx-hbtn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.sx-logo-center a { text-decoration: none; display: flex; align-items: center; }
.sx-hdr-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sx-lang-wrapper { position: relative; }
.sx-lang-top { display: flex; align-items: center; gap: 2px; }
.sx-lang-top a { color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; padding: 4px 5px; text-decoration: none; border-radius: 3px; }
.sx-lang-top a:hover { color: #fff; background: rgba(255,255,255,.15); }
.sx-lang-more-btn { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 7px; cursor: pointer; border-radius: 3px; font-family: var(--sx-font); }
.sx-lang-more-btn:hover { background: rgba(255,255,255,.15); }
.sx-lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.18); width: 480px; max-width: 95vw; z-index: 999; padding: 12px; max-height: 70vh; overflow-y: auto; }
.sx-lang-group { margin-bottom: 10px; }
.sx-lang-group-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--sx-text-muted); margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--sx-border); }
.sx-lang-group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sx-lang-option { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 4px; border: 1px solid var(--sx-border); background: var(--sx-light); text-decoration: none; transition: all .15s; }
.sx-lang-option:hover, .sx-lang-option.active { background: var(--sx-red); border-color: var(--sx-red); }
.sx-lang-code { font-size: 10px; font-weight: 700; color: var(--sx-navy); }
.sx-lang-native { font-size: 9px; color: var(--sx-text-muted); }
.sx-lang-option:hover .sx-lang-code, .sx-lang-option.active .sx-lang-code { color: #fff; }
.sx-lang-option:hover .sx-lang-native, .sx-lang-option.active .sx-lang-native { color: rgba(255,255,255,.8); }
.sx-search-toggle { background: none; border: none; cursor: pointer; color: #fff; padding: 6px; display: flex; align-items: center; }
.sx-search-toggle:hover { color: rgba(255,255,255,.8); }
#sx-search-bar { display: none; background: #fff; padding: 12px 16px; border-bottom: 2px solid var(--sx-red); }
#sx-search-bar.is-open { display: block; }
#sx-search-bar .search-form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
#sx-search-bar input[type="search"] { flex: 1; padding: 8px 12px; border: 1px solid var(--sx-border); border-radius: 4px; font-size: 14px; font-family: var(--sx-font); }
#sx-search-bar input[type="submit"] { background: var(--sx-red); color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-family: var(--sx-font); }

/* ── MOBILE MENU ─────────────────────────────────────────── */
#sx-mobile-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--sx-navy); z-index: 9999; overflow-y: auto; }
#sx-mobile-menu.open { display: block; }
#sx-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 9998; }
#sx-menu-overlay.open { display: block; }

/* ── CATEGORY NAV ────────────────────────────────────────── */
#sx-cat-nav { background: var(--sx-navy); }
.sx-cat-nav-inner { display: flex; overflow-x: auto; scrollbar-width: none; max-width: var(--sx-max); margin: 0 auto; padding: 0 16px; }
.sx-cat-nav-inner::-webkit-scrollbar { display: none; }
.sx-cat-nav-inner a { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; padding: 10px 14px; white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; border-bottom: 2px solid transparent; display: inline-block; }
.sx-cat-nav-inner a:hover, .sx-cat-nav-inner a.active { color: #fff; border-bottom-color: var(--sx-red); }

/* ── NEWS TICKER ─────────────────────────────────────────── */
#sx-ticker { background: var(--sx-red); color: #fff; overflow: hidden; height: 32px; display: flex; align-items: center; }
.sx-ticker-inner { display: flex; align-items: center; gap: 12px; width: 100%; overflow: hidden; padding: 0 16px; }
.sx-ticker-label { font-size: 10px; font-weight: 900; letter-spacing: 1px; background: #fff; color: var(--sx-red); padding: 2px 8px; border-radius: 3px; flex-shrink: 0; }
.sx-ticker-track { display: flex; gap: 32px; animation: sx-ticker 40s linear infinite; white-space: nowrap; }
.sx-ticker-track a { color: #fff; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sx-ticker-track a:hover { text-decoration: underline; }
@keyframes sx-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── WEATHER BAR ─────────────────────────────────────────── */
#sx-weather-bar { background: #f0f0f0; border-bottom: 1px solid var(--sx-border); padding: 4px 16px; font-size: 11px; color: var(--sx-text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sx-wx-detect-btn { background: none; border: none; cursor: pointer; color: var(--sx-navy); font-size: 11px; padding: 0; font-family: var(--sx-font); text-decoration: underline; }
.sx-wx-pills { display: flex; gap: 6px; }
.sx-wx-pill { background: var(--sx-border); padding: 1px 6px; border-radius: 10px; font-size: 10px; }

/* ── NAV BAR (old) ───────────────────────────────────────── */
.sx-nav-bar { background: var(--sx-navy); }
.sx-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.sx-nav-links { display: flex; align-items: center; gap: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.sx-nav-links::-webkit-scrollbar { display: none; }
.sx-nav-links a { color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 500; padding: 0 14px; height: 42px; display: flex; align-items: center; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid transparent; transition: all 0.2s; }
.sx-nav-links a:hover, .sx-nav-links .current-menu-item a { color: #fff; border-bottom-color: var(--sx-red); text-decoration: none; }
.sx-nav-search { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; padding: 0 12px; font-size: 16px; height: 42px; display: flex; align-items: center; }
.sx-nav-search:hover { color: #fff; }

/* ── LANG SUGGESTION BANNER ─────────────────────────────── */
.sx-lang-suggest { background: var(--sx-navy); color: #fff; padding: 8px 16px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sx-lang-suggest a { color: #fff; font-weight: 600; text-decoration: underline; }
.sx-lang-suggest button { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }

/* ── AD SLOTS ────────────────────────────────────────────── */
.sx-ad-wrap { text-align: center; margin: 12px auto; overflow: hidden; }
.sx-ad-label { display: block; font-size: 9px; color: var(--sx-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.sx-ad-content-wrap { margin: 16px 0; }

/* ── SECTIONS ────────────────────────────────────────────── */
.sx-section { margin-bottom: 28px; background: var(--sx-white); border-radius: var(--sx-radius); padding: 16px; border: 0.5px solid var(--sx-border); }
.sx-section h2 { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sx-navy); border-bottom: 2px solid var(--sx-red); padding-bottom: 8px; margin-bottom: 14px; }
.sx-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sx-section-title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sx-navy); }
.sx-see-all { font-size: 11px; color: var(--sx-red); font-weight: 600; }

/* ── LEAD CARD ───────────────────────────────────────────── */
.sx-lead-card { display: block; margin-bottom: 12px; border-radius: var(--sx-radius); overflow: hidden; }
.sx-lead-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sx-lead-card h3 { font-size: 18px; font-weight: 700; color: var(--sx-text); padding: 10px 0 4px; line-height: 1.4; }
.sx-lead-card:hover h3 { color: var(--sx-red); text-decoration: none; }

/* ── GRIDS ───────────────────────────────────────────────── */
.sx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sx-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sx-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sx-card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ── CARD ────────────────────────────────────────────────── */
.sx-card { display: block; background: var(--sx-white); border-radius: var(--sx-radius); overflow: hidden; border: 0.5px solid var(--sx-border); transition: box-shadow 0.2s; }
.sx-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); text-decoration: none; }
.sx-card img, .sx-card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sx-card p, .sx-card-body { font-size: 12px; font-weight: 600; color: var(--sx-text); padding: 8px; line-height: 1.4; }
.sx-card-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 4px 0; }
.sx-card-title a { color: var(--sx-text); }
.sx-card-title a:hover { color: var(--sx-red); text-decoration: none; }
.sx-card-meta { font-size: 11px; color: var(--sx-text-muted); }

/* ── LIST ROW ────────────────────────────────────────────── */
.sx-list-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 0.5px solid var(--sx-border); }
.sx-list-row:last-child { border-bottom: none; }
.sx-list-row img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sx-list-row p { font-size: 13px; font-weight: 600; color: var(--sx-text); line-height: 1.4; }
.sx-list-row:hover p { color: var(--sx-red); }

/* ── CATEGORY LABEL ──────────────────────────────────────── */
.sx-cat-label { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 3px; color: #fff; background: var(--sx-red); margin-bottom: 6px; }

/* ── MULTILINGUAL SCROLL ─────────────────────────────────── */
.sx-multi-section { margin-bottom: 24px; }
.sx-multi-title { font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--sx-navy); margin-bottom: 10px; border-left: 3px solid var(--sx-red); padding-left: 10px; }
.sx-multi-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.sx-multi-scroll::-webkit-scrollbar { height: 4px; }
.sx-multi-card { flex-shrink: 0; width: 200px; display: block; background: var(--sx-white); border-radius: var(--sx-radius); overflow: hidden; border: 0.5px solid var(--sx-border); }
.sx-multi-card img { width: 100%; height: 120px; object-fit: cover; }
.sx-multi-card p { font-size: 11px; font-weight: 600; padding: 6px 8px; color: var(--sx-text); line-height: 1.4; }

/* ── LANG BAR ─────────────────────────────────────────────── */
.sx-lang-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 14px; background: var(--sx-white); border-radius: var(--sx-radius); border: 0.5px solid var(--sx-border); }
.sx-lang-bar a { font-size: 11px; font-weight: 600; color: var(--sx-navy); padding: 3px 10px; border-radius: 12px; border: 0.5px solid var(--sx-border); }
.sx-lang-bar a:hover { background: var(--sx-red); color: #fff; border-color: var(--sx-red); text-decoration: none; }

/* ── NEWSLETTER ──────────────────────────────────────────── */
.sx-newsletter-section { background: var(--sx-navy); padding: 32px 0; margin: 0; }
.sx-newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; max-width: var(--sx-max); margin: 0 auto; padding: 0 16px; }
.sx-newsletter-text h2, .sx-newsletter-text h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.sx-newsletter-text p { color: rgba(255,255,255,0.75); font-size: 13px; }
.sx-newsletter-text svg { margin-bottom: 12px; }
.sib_signup_form input[type="email"], .sib_signup_form input[type="text"] { width: 100%; padding: 10px 14px; border: none; border-radius: 4px; font-size: 14px; margin-bottom: 8px; font-family: var(--sx-font); }
.sib_signup_form input[type="submit"] { background: var(--sx-red); color: #fff; border: none; padding: 10px 24px; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; font-family: var(--sx-font); }
.sib_signup_form input[type="submit"]:hover { background: #a50d25; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
#sx-sidebar { position: sticky; top: 76px; }
.sx-widget { background: var(--sx-white); border-radius: var(--sx-radius); border: 0.5px solid var(--sx-border); margin-bottom: 16px; overflow: hidden; }
.sx-widget-header { background: var(--sx-navy); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 9px 14px; }
.sx-lang-group-wrap { padding: 8px 10px; border-bottom: 0.5px solid var(--sx-border); }
.sx-lng-grp-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--sx-text-muted); letter-spacing: 0.5px; margin-bottom: 6px; }
.sx-lng-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.sx-lng-grid a { font-size: 11px; font-weight: 600; color: var(--sx-navy); padding: 5px 8px; border-radius: 4px; border: 0.5px solid var(--sx-border); text-align: center; background: var(--sx-light); }
.sx-lng-grid a:hover, .sx-lng-grid a.on { background: var(--sx-red); color: #fff; border-color: var(--sx-red); text-decoration: none; }
.sx-lng-grid a span { display: block; font-size: 9px; color: var(--sx-text-muted); font-weight: 400; }
.sx-lng-grid a:hover span, .sx-lng-grid a.on span { color: rgba(255,255,255,0.8); }
.sx-mr-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-bottom: 0.5px solid var(--sx-border); }
.sx-mr-item:last-child { border-bottom: none; }
.sx-mr-num { font-size: 20px; font-weight: 700; color: var(--sx-red); min-width: 28px; line-height: 1; }
.sx-mr-num.gray { color: var(--sx-border); }
.sx-prov-pills { padding: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.sx-prov-pill { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 12px; background: var(--sx-light); color: var(--sx-navy); border: 0.5px solid var(--sx-border); }
.sx-prov-pill:hover { background: var(--sx-navy); color: #fff; text-decoration: none; border-color: var(--sx-navy); }

/* ── ARTICLE / SINGLE ────────────────────────────────────── */
.sx-single-article { max-width: 800px; background: var(--sx-white); border-radius: var(--sx-radius); padding: 24px; border: 0.5px solid var(--sx-border); }
.sx-article-header { margin-bottom: 16px; }
.sx-article-title { font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--sx-text); margin: 8px 0 10px; }
.sx-article-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sx-text-muted); flex-wrap: wrap; }
.sx-article-author { font-weight: 600; color: var(--sx-navy); }
.sx-article-thumb { margin-bottom: 20px; border-radius: var(--sx-radius); overflow: hidden; }
.sx-article-thumb img { width: 100%; border-radius: var(--sx-radius); }
.sx-article-thumb figcaption { font-size: 11px; color: var(--sx-text-muted); margin-top: 6px; font-style: italic; }
.sx-article-body { font-size: 17px; line-height: 1.8; color: var(--sx-text); margin-bottom: 28px; }
.sx-article-body p { margin-bottom: 1.2em; }
.sx-article-body h2 { font-size: 22px; font-weight: 700; margin: 1.8em 0 0.6em; color: var(--sx-text); }
.sx-article-body h3 { font-size: 18px; font-weight: 700; margin: 1.4em 0 0.5em; }
.sx-article-body a { color: var(--sx-red); text-decoration: underline; }
.sx-article-body img { border-radius: 4px; margin: 12px 0; }
.sx-article-body ul, .sx-article-body ol { padding-left: 24px; margin-bottom: 1em; }
.sx-article-body li { margin-bottom: 6px; }
.sx-article-body blockquote { border-left: 3px solid var(--sx-red); padding: 8px 16px; margin: 16px 0; font-style: italic; color: var(--sx-text-muted); background: var(--sx-light); border-radius: 0 4px 4px 0; }
.sx-article-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.sx-article-tags a { font-size: 11px; padding: 4px 10px; border: 0.5px solid var(--sx-border); border-radius: 3px; color: var(--sx-text-muted); }
.sx-article-tags a:hover { border-color: var(--sx-red); color: var(--sx-red); text-decoration: none; }

/* ── AUTHOR BOX ──────────────────────────────────────────── */
.sx-author-box { background: var(--sx-white); border: 0.5px solid var(--sx-border); border-radius: var(--sx-radius); padding: 16px; margin: 20px 0; }
.sx-author-box-inner { display: flex; gap: 14px; align-items: flex-start; }
.sx-author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--sx-border); }
.sx-author-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--sx-navy); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.sx-author-name { font-size: 15px; font-weight: 700; color: var(--sx-navy); margin-bottom: 4px; }
.sx-author-role { font-size: 11px; color: var(--sx-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.sx-author-bio { font-size: 13px; color: var(--sx-text-muted); line-height: 1.5; }
.sx-author-sidebar { padding: 12px; text-align: center; }
.sx-author-sidebar .sx-author-avatar, .sx-author-sidebar .sx-author-avatar-placeholder { margin: 0 auto 8px; }
.sx-author-sidebar .sx-author-name { font-size: 14px; text-align: center; }
.sx-author-sidebar .sx-author-bio { font-size: 12px; text-align: center; }

/* ── FOLLOW BUTTONS ──────────────────────────────────────── */
.sx-follow-wrap { background: var(--sx-light); border-radius: var(--sx-radius); padding: 14px 16px; margin: 20px 0; border: 0.5px solid var(--sx-border); }
.sx-follow-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sx-text-muted); margin-bottom: 10px; }
.sx-follow-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sx-follow-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.sx-follow-btn:hover { text-decoration: none; transform: translateY(-1px); }
.sx-follow-gn { background: #fff; color: #333; border: 1px solid #ddd; }
.sx-follow-gn:hover { background: #f5f5f5; }
.sx-follow-wa { background: #25D366; color: #fff; }
.sx-follow-wa:hover { background: #1ebc5b; color: #fff; }
.sx-follow-fb { background: #1877F2; color: #fff; }
.sx-follow-fb:hover { background: #0d65d8; color: #fff; }
.sx-follow-x { background: #000; color: #fff; }
.sx-follow-x:hover { background: #333; color: #fff; }
.sx-article-langs { margin: 20px 0; padding: 14px; background: var(--sx-light); border-radius: var(--sx-radius); border: 0.5px solid var(--sx-border); }
.sx-article-langs-label { font-size: 11px; color: var(--sx-text-muted); margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sx-lang-switch { display: flex; flex-wrap: wrap; gap: 5px; }
.sx-province-pill { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 12px; background: var(--sx-white); color: var(--sx-navy); border: 0.5px solid var(--sx-border); }
.sx-province-pill:hover { background: var(--sx-red); color: #fff; border-color: var(--sx-red); text-decoration: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
.sx-footer-main { background: var(--sx-navy); color: rgba(255,255,255,0.85); padding: 40px 0 24px; margin-top: 32px; }
.sx-ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.sx-ft-brand { }
.sx-ft-logo { margin-bottom: 12px; }
.sx-ft-desc { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 14px; }
.sx-ft-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.5); margin-bottom: 12px; border-bottom: 0.5px solid rgba(255,255,255,0.15); padding-bottom: 6px; }
.sx-ft-col a { display: block; font-size: 12px; color: rgba(255,255,255,0.75); margin-bottom: 7px; font-weight: 500; }
.sx-ft-col a:hover { color: #fff; text-decoration: none; }
.sx-ft-tags { margin-top: 20px; padding-top: 16px; border-top: 0.5px solid rgba(255,255,255,0.1); }
.sx-ft-tags-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.sx-ft-tags-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.sx-ft-tag { font-size: 10px; padding: 3px 9px; border-radius: 10px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); border: 0.5px solid rgba(255,255,255,0.15); }
.sx-ft-tag:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }
.sx-ft-bottom-bar { background: var(--sx-green); padding: 12px 0; }
.sx-ft-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sx-ft-copy { font-size: 11px; color: rgba(255,255,255,0.75); }
.sx-ft-legal { display: flex; flex-wrap: wrap; gap: 14px; }
.sx-ft-legal a { font-size: 11px; color: rgba(255,255,255,0.75); font-weight: 500; }
.sx-ft-legal a:hover { color: #fff; text-decoration: none; }
.sx-social-icons { display: flex; gap: 10px; margin-top: 10px; }
.sx-social-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); transition: all 0.2s; }
.sx-social-icon:hover { background: var(--sx-red); color: #fff; text-decoration: none; }
.sx-social-fb:hover { background: #1877F2; }
.sx-social-x:hover { background: #000; }
.sx-social-wa:hover { background: #25D366; }
.sx-social-gn:hover { background: #4285F4; }

/* ── MOBILE BOTTOM BAR ───────────────────────────────────── */
.sx-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--sx-white); border-top: 0.5px solid var(--sx-border); box-shadow: 0 -2px 12px rgba(0,0,0,0.08); }
.sx-mobile-bar-inner { display: flex; align-items: stretch; height: 54px; }
.sx-mobile-bar-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9px; font-weight: 600; color: var(--sx-text-muted); text-transform: uppercase; letter-spacing: 0.3px; border-right: 0.5px solid var(--sx-border); background: none; border-top: none; border-bottom: none; border-left: none; cursor: pointer; padding: 4px 0; text-decoration: none; transition: color 0.2s; }
.sx-mobile-bar-btn:last-child { border-right: none; }
.sx-mobile-bar-btn svg { width: 20px; height: 20px; }
.sx-mobile-bar-btn:hover { color: var(--sx-red); text-decoration: none; }

/* ── COOKIE CONSENT ──────────────────────────────────────── */
#sx-cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--sx-navy); color: #fff; z-index: 9000; padding: 12px 0; }
.sx-cookie-inner { max-width: var(--sx-max); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sx-cookie-inner p { font-size: 12px; color: rgba(255,255,255,0.85); }
.sx-cookie-inner a { color: #fff; text-decoration: underline; }
.sx-cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.sx-btn-accept { background: var(--sx-red); color: #fff; border: none; padding: 7px 16px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--sx-font); }
.sx-btn-essential { background: transparent; color: rgba(255,255,255,0.8); border: 0.5px solid rgba(255,255,255,0.4); padding: 7px 16px; border-radius: 4px; font-size: 12px; cursor: pointer; font-family: var(--sx-font); }
.sx-btn-accept:hover { background: #a50d25; }

/* ── PAGINATION ──────────────────────────────────────────── */
.sx-pagination { display: flex; justify-content: center; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.sx-pagination a, .sx-pagination span { padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; border: 0.5px solid var(--sx-border); color: var(--sx-text); background: var(--sx-white); }
.sx-pagination .current, .sx-pagination a:hover { background: var(--sx-red); color: #fff; border-color: var(--sx-red); text-decoration: none; }

/* ── SEARCH ──────────────────────────────────────────────── */
.sx-search-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 500; align-items: flex-start; justify-content: center; padding-top: 80px; }
.sx-search-overlay.active { display: flex; }
.sx-search-box { background: var(--sx-white); border-radius: 8px; padding: 20px; width: 90%; max-width: 600px; }
.sx-search-box input { width: 100%; font-size: 18px; padding: 10px; border: 0.5px solid var(--sx-border); border-radius: 4px; font-family: var(--sx-font); color: var(--sx-text); background: var(--sx-white); }
.sx-search-close { float: right; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--sx-text); }

/* ── BREADCRUMBS ─────────────────────────────────────────── */
.rank-math-breadcrumb { font-size: 12px; color: var(--sx-text-muted); margin-bottom: 12px; }
.rank-math-breadcrumb a { color: var(--sx-text-muted); }
.rank-math-breadcrumb a:hover { color: var(--sx-red); text-decoration: none; }
.rank-math-breadcrumb .separator { margin: 0 5px; }

/* ── PAGE TEMPLATE ───────────────────────────────────────── */
.sx-page-content { background: var(--sx-white); border-radius: var(--sx-radius); padding: 28px; border: 0.5px solid var(--sx-border); max-width: 860px; }
.sx-page-content h1 { font-size: 28px; margin-bottom: 20px; color: var(--sx-navy); border-bottom: 2px solid var(--sx-red); padding-bottom: 12px; }
.sx-page-content h2 { font-size: 20px; margin: 24px 0 10px; color: var(--sx-text); }
.sx-page-content p { font-size: 15px; line-height: 1.7; margin-bottom: 14px; color: var(--sx-text); }
.sx-page-content ul, .sx-page-content ol { padding-left: 22px; margin-bottom: 14px; }
.sx-page-content li { font-size: 15px; margin-bottom: 6px; color: var(--sx-text); }
.sx-page-content a { color: var(--sx-red); }

/* ── 404 ─────────────────────────────────────────────────── */
.sx-404 { text-align: center; padding: 60px 20px; }
.sx-404 h1 { font-size: 80px; color: var(--sx-red); line-height: 1; }
.sx-404 h2 { font-size: 24px; margin: 10px 0 16px; }
.sx-404 p { color: var(--sx-text-muted); margin-bottom: 20px; }
.sx-btn-home { display: inline-block; background: var(--sx-red); color: #fff; padding: 10px 24px; border-radius: 4px; font-weight: 600; }
.sx-btn-home:hover { background: #a50d25; color: #fff; text-decoration: none; }

/* ── HIDDEN H1 FOR SEO ───────────────────────────────────── */
.sx-seo-h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sx-main-inner { grid-template-columns: 1fr; }
  #sx-sidebar { position: static; }
  .sx-ft-grid { grid-template-columns: 1fr 1fr; }
  .sx-grid4, .sx-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sx-lang-dropdown { width: 360px; }
  .sx-lang-group-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --sx-sidebar: 100%; }
  .sx-nav-links { display: none; }
  .sx-hamburger { display: flex; }
  .sx-mobile-bar { display: block; }
  #sx-main { padding-bottom: 70px; }
  .sx-grid3 { grid-template-columns: 1fr 1fr; }
  .sx-grid2 { grid-template-columns: 1fr; }
  .sx-ft-grid { grid-template-columns: 1fr; gap: 20px; }
  .sx-newsletter-inner { grid-template-columns: 1fr; }
  .sx-article-title { font-size: 22px; }
  .sx-article-body { font-size: 16px; }
  .sx-ft-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
  .sx-ft-legal { justify-content: center; }
  .sx-cookie-inner { flex-direction: column; gap: 10px; }
  .sx-multi-card { width: 160px; }
  .sx-follow-btns { flex-direction: column; }
  .sx-author-box-inner { flex-direction: column; align-items: center; text-align: center; }
  .sx-article-meta { justify-content: center; }
  .sx-lang-top { display: none; }
  .sx-lang-more-btn { display: none; }
  .sx-lang-dropdown { display: none; }
}

@media (max-width: 480px) {
  .sx-grid3, .sx-grid4, .sx-card-grid-4 { grid-template-columns: 1fr; }
  .sx-header-inner { height: 48px; }
  .sx-article-title { font-size: 19px; }
}
