/*
Theme Name: VioNews
Author: Themevio
Description: Direct WordPress conversion baseline from the supplied VioNews Blogger XML. Standalone.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vionews
*/

  /* ========================================================
     VioNews v12.0 - English International News Edition
     ======================================================== */
  :root {
    --primary: #591bc5;
    --primary-dark: #3f1092;
    --primary-light: #f3e8ff;
    --accent: #ff0055;
    --dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --border: #e2e8f0;
    --card-shadow: 0 2px 5px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.03);
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html, body {
    width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
  }
  body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
  }
  body.drawer-open { overflow: hidden; }
  a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
  a:hover { color: var(--primary); }
  img { max-width: 100%; height: auto; display: block; }

  .container { max-width: 1320px; margin: 0 auto; padding: 0 16px; }

  /* ========================================================
     1. TOP BAR
     ======================================================== */
  .top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 11.5px;
    padding: 6px 0;
    border-bottom: 1px solid #1e293b;
  }
  .top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
  .top-date { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #cbd5e1; }
  .badge-live { background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 9.5px; font-weight: 800; }

  /* ========================================================
     2. HEADER & AGGRESSIVE YAHOO LIVE SEARCH BAR
     ======================================================== */
  .main-header { background: #ffffff; padding: 14px 0 10px; border-bottom: 1px solid var(--border); }
  .header-grid {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    align-items: center;
    gap: 20px;
  }
  .header-left-group { display: flex; align-items: center; gap: 12px; }
  
  .btn-hamburger {
    display: none;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .btn-hamburger:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
  
  .brand-logo {
    display: inline-flex;
    align-items: center;
  }
  .brand-logo svg { height: 44px; width: auto; max-width: 100%; }

  .yahoo-search-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    position: relative;
  }
  .yahoo-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 3px 4px 3px 14px;
    box-shadow: 0 2px 8px rgba(89, 27, 197, 0.08);
    transition: all 0.25s ease;
    position: relative;
    z-index: 1001;
  }
  .yahoo-search-form:focus-within {
    box-shadow: 0 0 0 3.5px rgba(89, 27, 197, 0.22);
    border-color: var(--primary-dark);
  }
  .yahoo-search-icon { color: #94a3b8; font-size: 14px; margin-right: 8px; }
  .yahoo-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    min-width: 0;
  }
  .yahoo-search-input::placeholder { color: #94a3b8; font-weight: 500; }
  
  .search-action-group { display: flex; align-items: center; gap: 4px; }
  .search-clear-btn {
    display: none;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 12px;
  }
  .search-clear-btn:hover { color: var(--accent); }
  
  .yahoo-search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #7928ca 100%);
    color: #ffffff;
    border: none;
    outline: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  /* Popup Floating Live Search */
  .yahoo-live-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.15);
    z-index: 1000;
    max-height: 440px;
    overflow-y: auto;
    display: none;
  }
  .yahoo-live-results.active {
    display: block;
    animation: liveSearchAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes liveSearchAnim {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .live-results-header {
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .live-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
  }
  .live-result-item:hover { background: #faf5ff; }
  .live-result-thumb {
    width: 52px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
  }
  .live-result-info { flex: 1; min-width: 0; }
  .live-result-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .live-result-title mark {
    background: #fef08a;
    color: #854d0e;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 3px;
  }
  .live-result-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
  }
  .live-result-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 800;
  }
  
  .live-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    background: #f8fafc;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    border-top: 1px solid var(--border);
    transition: all 0.2s ease;
  }
  .live-view-all:hover { background: var(--primary); color: #ffffff; }

  .live-loading-state, .live-empty-state {
    padding: 24px 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
  }

  .search-trending-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-left: 10px;
    font-size: 11.5px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .search-trending-tags::-webkit-scrollbar { display: none; }
  .trending-title { font-weight: 800; color: var(--accent); display: flex; align-items: center; gap: 4px; }
  .trending-link { color: #64748b; font-weight: 600; }

  .header-right-ad { display: flex; flex-direction: column; align-items: flex-end; }
  .ad-label-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .ad-slot-header {
    width: 100%;
    height: 56px;
    background: #f1f5f9;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11px;
  }

  /* ========================================================
     3. NAVIGATION BAR & MOBILE DRAWER
     ======================================================== */
  .nav-bar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  }
  .nav-menu { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
  }
  .nav-menu li a:hover, .nav-menu li a.active {
    background: var(--primary-dark);
    border-bottom-color: var(--accent);
  }

  /* Mobile Slide Drawer */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .menu-overlay.active { opacity: 1; visibility: visible; }

  .mobile-drawer {
    position: fixed;
    top: 0;
    left: -310px;
    width: 290px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mobile-drawer.active { transform: translateX(310px); }
  .drawer-header {
    padding: 18px 16px;
    background: var(--dark);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
  }
  .drawer-header .drawer-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
  .btn-close-drawer {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
  }
  .drawer-content { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
  .drawer-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
  }
  .drawer-menu-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
  .drawer-menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
  }
  .drawer-menu-list li a:hover { background: var(--primary-light); color: var(--primary); }

  /* Billboard Banner */
  .billboard-section { margin-top: 16px; text-align: center; }
  .ad-slot-billboard {
    max-width: 970px;
    min-height: 80px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    padding: 8px;
  }

  /* ========================================================
     4. 3-COLUMN MAIN LAYOUT
     ======================================================== */
  .news-wrapper {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr) 320px;
    gap: 20px;
    margin: 18px auto;
    align-items: start;
  }

  .section-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 18px;
  }
  .widget-title {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* LEFT STICKY FLOATING CHANNELS */
  .col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 75px !important;
    z-index: 25 !important;
    align-self: flex-start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }
  .col-left::-webkit-scrollbar { width: 4px; }
  .col-left::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

  .pro-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .pro-nav-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .pro-nav-list li a .nav-left-meta { display: flex; align-items: center; gap: 10px; }
  .pro-nav-list li a .nav-emot {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
  }
  .pro-nav-list li a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(89, 27, 197, 0.08);
  }
  .pro-nav-list .nav-arrow-icon {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .pro-nav-list li a:hover .nav-arrow-icon { transform: translateX(2px); color: var(--primary); }

  /* ========================================================
     5. FEED POST & IN-FEED ADS
     ======================================================== */
  .col-center { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .feed-stream { display: flex; flex-direction: column; gap: 14px; }
  
  @keyframes feedCardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .feed-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 14px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: feedCardFadeIn 0.35s ease forwards;
  }
  .feed-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.05); }
  
  .feed-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
  }
  .feed-thumb-link { display: block; width: 100%; height: 100%; position: relative; }
  .feed-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
  }
  .feed-card:hover .feed-thumb-wrap img { transform: scale(1.05); }
  
  .feed-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
  .feed-content { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
  .feed-title {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.38;
    color: var(--dark);
    margin-bottom: 6px;
  }
  .feed-snippet {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .feed-meta { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 10px; }

  .ad-slot-feed {
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .infeed-ad-wrapper {
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: var(--card-shadow);
    animation: feedCardFadeIn 0.35s ease forwards;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .infeed-ad-wrapper:hover {
    border-color: var(--primary);
    background: #faf8ff;
  }
  .infeed-ad-inner {
    width: 100%;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 6px;
    padding: 10px;
  }

  .infinite-scroll-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
  }
  .infinite-scroll-loader.active { display: flex; }
  .loader-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spinnerRotate 0.7s linear infinite;
  }
  @keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .end-of-posts-notice {
    display: none;
    text-align: center;
    padding: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: #f1f5f9;
    border-radius: 8px;
    margin-top: 10px;
  }
  .feed-pager { display: none; }

  /* ========================================================
     ARTICLE READING VIEW & RELATED STREAM
     ======================================================== */
  .article-container {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
  }
  .breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
  .breadcrumb a { color: var(--primary); font-weight: 600; }
  .article-title { font-size: 26px; font-weight: 800; line-height: 1.3; color: var(--dark); margin-bottom: 12px; }
  .article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
  }
  .share-buttons { display: flex; gap: 8px; }
  .share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
  }
  .btn-wa { background: #25d366; }
  .btn-fb { background: #1877f2; }
  .btn-tw { background: #0f1419; }
  .article-body { font-size: 16px; line-height: 1.8; color: #1e293b; word-break: break-word; }
  .article-body p { margin-bottom: 16px; }
  .article-body img { margin: 16px auto; border-radius: 8px; max-width: 100%; height: auto; }

  .related-stream-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
  }
  .related-stream-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* ========================================================
     6. RIGHT COLUMN: POPULAR POSTS & STICKY AD
     ======================================================== */
  .col-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    height: 100%;
  }

  .popular-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    counter-reset: pop-rank-num;
  }
  .popular-item-card {
    list-style: none !important;
    margin: 0 !important;
    padding: 8px !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative !important;
    transition: all 0.2s ease !important;
  }
  .popular-item-card:hover {
    border-color: var(--primary) !important;
    background: #faf8ff !important;
    transform: translateY(-2px);
  }
  .popular-item-card::before {
    counter-increment: pop-rank-num;
    content: counter(pop-rank-num);
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: #475569;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  .popular-item-card:nth-child(1)::before { background: linear-gradient(135deg, #ff0055, #e11d48); }
  .popular-item-card:nth-child(2)::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
  .popular-item-card:nth-child(3)::before { background: linear-gradient(135deg, #10b981, #059669); }

  .popular-thumb-wrap {
    flex: 0 0 80px !important;
    width: 80px !important;
    height: 60px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
  }
  .popular-thumb-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  .popular-info-wrap { flex: 1 1 auto; min-width: 0; }
  .popular-item-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--dark) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .sticky-sidebar-box {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 75px !important;
    z-index: 30 !important;
    will-change: transform;
    align-self: flex-start;
    width: 100%;
  }

  /* ========================================================
     7. SLEEK ONE-ROW FOOTER BAR
     ======================================================== */
  .main-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 22px 0;
    margin-top: 40px;
    border-top: 1px solid #1e293b;
  }
  .footer-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
  }
  .footer-left-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
  }
  .footer-left-copy strong { color: #f1f5f9; }
  
  .footer-right-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .footer-right-links li { margin: 0; padding: 0; }
  .footer-right-links li a {
    color: #94a3b8;
    font-weight: 600;
    transition: color 0.2s ease;
  }
  .footer-right-links li a:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  /* ========================================================
     8. RESPONSIVE MOBILE
     ======================================================== */
  @media (max-width: 1024px) {
    .header-grid { grid-template-columns: 200px 1fr; }
    .header-right-ad { display: none; }
    .news-wrapper { grid-template-columns: 200px 1fr; }
    .col-right { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .col-left, .sticky-sidebar-box { position: static !important; max-height: none !important; }
  }

  @media (max-width: 768px) {
    body { font-size: 14px; }
    .container { padding: 0 12px; }
    .btn-hamburger { display: flex; }
    .nav-bar { display: none; }
    .col-left { display: none !important; }

    .main-header { padding: 10px 0 8px; }
    .header-grid { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
    
    .header-left-group {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 42px;
    }
    .btn-hamburger {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      margin: 0;
    }
    .brand-logo {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto;
      text-align: center;
    }
    .brand-logo svg {
      height: 38px;
      margin: 0 auto;
    }
    
    .yahoo-search-container { width: 100%; max-width: 100%; }
    .yahoo-search-form { padding: 2px 3px 2px 12px; }
    .yahoo-search-input { font-size: 13px; }
    .yahoo-search-btn { padding: 7px 14px; font-size: 12px; }
    .search-trending-tags { padding-left: 4px; font-size: 11px; }

    .news-wrapper { display: flex; flex-direction: column; gap: 16px; margin: 14px auto; }
    .col-center { order: 1; }
    .col-right { order: 2; display: flex; flex-direction: column; }
    .sticky-sidebar-box { position: static !important; }

    .feed-card {
      display: flex;
      flex-direction: row-reverse;
      align-items: flex-start;
      gap: 12px;
      padding: 12px;
      border-radius: 8px;
    }
    .feed-thumb-wrap {
      flex: 0 0 105px;
      width: 105px;
      aspect-ratio: 4 / 3;
      border-radius: 6px;
    }
    .feed-tag { font-size: 8px; padding: 2px 4px; top: 4px; left: 4px; }
    .feed-content { flex: 1 1 auto; }
    .feed-title {
      font-size: 14.5px;
      line-height: 1.35;
      margin-bottom: 4px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .feed-snippet { display: none; }
    .feed-meta { font-size: 10.5px; gap: 8px; }

    .article-container { padding: 16px 14px; border-radius: 8px; }
    .article-title { font-size: 21px; line-height: 1.3; }
    .article-meta-bar { font-size: 11.5px; }
    .article-body { font-size: 15.5px; line-height: 1.75; }

    .popular-thumb-wrap { flex: 0 0 68px !important; width: 68px !important; height: 52px !important; }
    .popular-item-title { font-size: 12px !important; }

    .footer-bar-inner {
      flex-direction: column-reverse;
      text-align: center;
      justify-content: center;
      gap: 12px;
    }
    .footer-right-links {
      justify-content: center;
      gap: 14px;
    }
  }

  @media (max-width: 480px) {
    .feed-thumb-wrap { flex: 0 0 95px; width: 95px; }
    .feed-title { font-size: 13.5px; -webkit-line-clamp: 3; }
    .footer-right-links { gap: 10px 14px; }
  }
  
/* VioNews WordPress article-detail compatibility */
.article-container .article-body > * { max-width:100%; }
.article-container .article-body h1,
.article-container .article-body h2,
.article-container .article-body h3,
.article-container .article-body h4,
.article-container .article-body h5,
.article-container .article-body h6 { color:var(--dark); line-height:1.35; margin:24px 0 12px; font-weight:800; }
.article-container .article-body h2 { font-size:24px; }
.article-container .article-body h3 { font-size:20px; }
.article-container .article-body h4 { font-size:18px; }
.article-container .article-body ul,
.article-container .article-body ol { margin:0 0 18px; padding-left:26px; }
.article-container .article-body li { margin:7px 0; }
.article-container .article-body a { color:var(--primary); text-decoration:underline; text-underline-offset:2px; }
.article-container .article-body blockquote { margin:20px 0; padding:14px 18px; border-left:4px solid var(--primary); background:#f8f7ff; color:#475569; border-radius:0 8px 8px 0; }
.article-container .article-body pre { overflow:auto; background:#0f172a; color:#e2e8f0; padding:16px; border-radius:8px; font-size:13px; line-height:1.6; }
.article-container .article-body code { background:#f1f5f9; padding:2px 5px; border-radius:4px; font-size:.9em; }
.article-container .article-body pre code { background:transparent; padding:0; }
.article-container .article-body figure { margin:20px 0; }
.article-container .article-body figure img { margin:0 auto 8px; display:block; }
.article-container .article-body figcaption { text-align:center; color:var(--text-muted); font-size:12px; }
.article-container .article-body table { width:100%; border-collapse:collapse; margin:20px 0; display:block; overflow-x:auto; }
.article-container .article-body th,
.article-container .article-body td { border:1px solid var(--border); padding:9px 11px; text-align:left; }
.article-container .article-body iframe,
.article-container .article-body video { max-width:100%; }
.article-container .article-body .separator,
.article-container .article-body .tr-caption-container { max-width:100%; }
.article-container .article-body img { display:block; max-width:100%; width:auto; height:auto; }
.article-container .article-body .wp-block-image { margin:20px 0; }
.article-container .article-body .wp-block-image img { margin:0 auto; }
.article-container .article-body .aligncenter { margin-left:auto !important; margin-right:auto !important; }
.article-container .article-body .alignleft { float:left; margin:8px 20px 12px 0; }
.article-container .article-body .alignright { float:right; margin:8px 0 12px 20px; }
.article-container .article-body .wp-caption-text { font-size:12px; color:var(--text-muted); text-align:center; }
.article-comments { margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }
.article-comments h3 { font-size:18px; margin:0 0 15px; }
.article-comments ol { margin:0; padding:0; list-style:none; }
.article-comments li { margin:0 0 14px; padding:14px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.article-comments .comment-meta { font-size:11px; color:var(--text-muted); margin-bottom:8px; }
@media(max-width:760px){
 .article-container{padding:16px 14px;border-radius:8px}
 .article-title{font-size:21px;line-height:1.3}
 .article-meta-bar{font-size:11.5px}
 .article-body{font-size:15.5px;line-height:1.75}
 .article-container .article-body h2{font-size:21px}
 .article-container .article-body h3{font-size:18px}
 .article-container .article-body .alignleft,
 .article-container .article-body .alignright{float:none;margin:16px auto}
}

/* =========================================================
   VioNews Layout & Advertisement Controls
   ========================================================= */
.vionews-ad{position:relative;width:100%;box-sizing:border-box;margin:14px 0;}
.vionews-ad-label{display:block;font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;text-align:center;margin-bottom:6px;}
.vionews-ad-code{width:100%;min-height:90px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.vionews-ad-code iframe,.vionews-ad-code ins,.vionews-ad-code img{max-width:100%;}
.vionews-ad-header .vionews-ad-code{min-height:90px;}
.vionews-ad-billboard .vionews-ad-code{min-height:90px;}
.vionews-ad-feed .vionews-ad-code{min-height:90px;}
.vionews-ad-related{margin:20px 0 24px;padding:0;}
.vionews-ad-related .vionews-ad-code{min-height:100px;border:1px dashed #e2e8f0;background:#fafbff;border-radius:8px;}
.vionews-ad-sidebar .vionews-ad-code{min-height:250px;}
.vionews-ad-sticky{position:sticky;top:18px;}
.vionews-ad-footer .vionews-ad-code{min-height:90px;}
.vionews-layout-settings{font-size:12px;}
@media(max-width:1000px){
 
 .vionews-ad-sidebar .vionews-ad-code{min-height:250px;}
}
@media(max-width:760px){
 .vionews-ad-billboard .vionews-ad-code{min-height:70px;}
 .vionews-ad-related{margin:16px 0 20px;}
 .vionews-ad-code{min-height:70px;}
}

/* Infinite scrolling */
.vionews-infinite-sentinel{width:100%;min-height:42px;margin:18px 0;display:flex;align-items:center;justify-content:center;}
.vionews-loading{display:flex;align-items:center;gap:5px;color:#94a3b8;font-size:11px;opacity:.75;}
.vionews-loading span{width:6px;height:6px;border-radius:50%;background:var(--primary);animation:vionewsDot 1s infinite ease-in-out;}
.vionews-loading span:nth-child(2){animation-delay:.15s}.vionews-loading span:nth-child(3){animation-delay:.3s}
.vionews-loading b{margin-left:7px;font-weight:600;}
@keyframes vionewsDot{0%,80%,100%{transform:scale(.6);opacity:.35}40%{transform:scale(1);opacity:1}}
