/*
Theme Name: BeaconWire
Theme URI: https://beaconwire.net
Author: BeaconWire
Description: BeaconWire's custom news-site theme — global news, business, technology, entertainment, sports, science, and health coverage. Ported from the original Blogger theme (same layout, colors, and widgets), rebuilt for WordPress.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: beaconwire
*/

    /*------------------------------------------------------------
    BEACONWIRE - AUTO-DYNAMIC TAGS & FULL AD INTEGRATED ENGINE
    ------------------------------------------------------------*/
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        background-color: #f8fafc;
        color: #1a1a1a;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    a { text-decoration: none; color: inherit; }
    .bw-container { max-width: 1440px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

    /* --- GOOGLE ADS PLACEHOLDERS STYLING --- */
    .ad-slot-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 2px dashed #f59e0b;
        background-color: #fef3c7;
        color: #92400e;
        border-radius: 8px;
        margin: 20px auto;
        padding: 12px;
        text-align: center;
        position: relative;
        box-sizing: border-box;
        width: 100%;
    }
    .ad-slot-green {
        border-color: #10b981;
        background-color: #ecfdf5;
        color: #065f46;
    }
    .ad-title-tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
    .ad-sub-tag { font-size: 10px; opacity: 0.85; font-weight: 600; margin-top: 2px; }
    .ad-brand-mark { position: absolute; right: 12px; bottom: 8px; font-size: 10px; font-weight: 700; opacity: 0.6; }

    /* SPECIFIC AD SIZES MATCHING DIAGRAM */
    .ad-leaderboard-970 { width: 100%; max-width: 970px; min-height: 80px; }
    .ad-banner-728 { width: 100%; max-width: 728px; min-height: 80px; }
    .ad-rectangle-336 { width: 100%; max-width: 336px; min-height: 250px; }
    .ad-sidebar-300 { width: 100%; max-width: 300px; min-height: 250px; }

    /* --- BREAKING TICKER STYLING --- */
    .bw-ticker-bar { 
        background: #002244; 
        color: #fff; 
        font-size: 12px; 
        height: 36px;
        display: flex;
        align-items: center;
        overflow: hidden;
        position: sticky;
        top: 0;
        z-index: 1001;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }
    .bw-ticker-wrap { display: flex; align-items: center; width: 100%; height: 100%; gap: 15px; }
    .bw-ticker-label { display: flex; align-items: center; flex-shrink: 0; z-index: 10; background: #002244; height: 100%; padding-right: 8px; }
    .bw-ticker-badge { background: #cc0000; color: #fff; font-weight: 800; padding: 4px 8px; border-radius: 3px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
    
    .bw-ticker-scroll-area { flex-grow: 1; overflow: hidden; white-space: nowrap; position: relative; display: flex; align-items: center; }
    .bw-ticker-track { display: inline-flex; white-space: nowrap; animation: tickerScroll 35s linear infinite; }
    .bw-ticker-track:hover { animation-play-state: paused !important; }
    
    .ticker-news-item { color: #ffffff; margin-right: 35px; font-weight: 500; transition: color 0.2s; display: inline-flex; align-items: center; gap: 8px; }
    .ticker-news-item:hover { color: #38bdf8; text-decoration: underline; }
    .ticker-bullet { color: #cc0000; font-weight: bold; font-size: 14px; }

    @keyframes tickerScroll { 
        0% { transform: translateX(0); } 
        100% { transform: translateX(-50%); } 
    }

    /* --- HEADER --- */
    .bw-header { background: #ffffff; border-bottom: 1px solid #e5e8ed; position: sticky; top: 36px; z-index: 1000; }
    .bw-top-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; flex-wrap: wrap; }
    .bw-brand-wrap { display: flex; flex-direction: column; white-space: nowrap; flex-shrink: 0; }
    .bw-brand { font-size: 28px; font-weight: 800; color: #0056b3; letter-spacing: -0.5px; word-break: keep-all; }
    .bw-brand-logo { display: inline-flex; align-items: center; }
    .bw-brand-logo img { height: 44px; width: auto; display: block; }
    .bw-tagline { font-size: 11px; color: #6c757d; font-weight: 500; margin-top: -2px; }

    .bw-search-box { flex-grow: 1; max-width: 500px; display: flex; align-items: center; background: #f8f9fa; border: 1px solid #e1e5eb; border-radius: 24px; padding: 6px 16px; box-sizing: border-box; }
    .bw-search-input { border: none; background: transparent; width: 100%; font-size: 13px; outline: none; padding-right: 8px; }

    .bw-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
    .bw-weather-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #2b3648; background: #eef2f7; padding: 6px 10px; border-radius: 20px; white-space: nowrap; }
    .bw-btn-follow { background: #0056b3; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px; border: none; cursor: pointer; white-space: nowrap; }

    /* --- NAV BAR --- */
    .bw-nav-bar { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f2f5; padding: 4px 0; overflow-x: auto; scrollbar-width: none; }
    .bw-nav-bar::-webkit-scrollbar { display: none; }
    .bw-nav-links { display: flex; align-items: center; gap: 4px; }
    .bw-nav-item { padding: 10px 12px; font-size: 13px; font-weight: 600; color: #495057; border-bottom: 2px solid transparent; white-space: nowrap; }
    .bw-nav-item.active, .bw-nav-item:hover { color: #0056b3; border-bottom-color: #0056b3; }

    /* GENERAL CATEGORY HUB STYLES */
    .cat-banner-box { 
        background: linear-gradient(135deg, #021b38 0%, #003366 50%, #0056b3 100%); 
        border-radius: 12px; 
        padding: 24px; 
        color: #ffffff; 
        margin: 16px 0; 
        position: relative;
        overflow: hidden;
    }
    .cat-banner-title { font-size: 28px; font-weight: 800; margin: 0 0 8px 0; }
    .cat-banner-desc { font-size: 13px; opacity: 0.85; margin: 0; max-width: 600px; }

    .sub-cat-pills { display: flex; gap: 8px; border-bottom: 1px solid #e5e8ed; padding-bottom: 12px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
    .sub-cat-pills::-webkit-scrollbar { display: none; }
    .sub-pill { padding: 6px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #495057; background: #fff; border: 1px solid #e1e5eb; white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 6px; }
    .sub-pill.active, .sub-pill:hover { background: #0056b3; color: #fff; border-color: #0056b3; }

    .cat-filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 12px; color: #64748b; }
    .filter-actions { display: flex; gap: 10px; align-items: center; }
    .filter-select { padding: 6px 10px; border-radius: 6px; border: 1px solid #cbd5e1; font-size: 12px; font-weight: 600; background: #fff; outline: none; }

    .cat-page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-bottom: 40px; }
    .cat-grid-50 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    
    .cat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
    .cat-card img { width: 100%; height: 140px; object-fit: cover; }
    .cat-card-body { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
    .cat-card-tag { font-size: 10px; font-weight: 800; color: #0056b3; text-transform: uppercase; margin-bottom: 4px; }
    .cat-card-title { font-size: 13px; font-weight: 700; margin: 0 0 8px 0; line-height: 1.4; color: #0f172a; flex-grow: 1; }
    .cat-card-time { font-size: 11px; color: #94a3b8; }

    .bw-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
    .bw-page-btn { background: #fff; color: #0056b3; border: 1px solid #cbd5e1; padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
    .bw-page-btn.active { background: #0056b3; color: #fff; border-color: #0056b3; }

    /* DEDICATED SPORTS HUB HERO BANNER */
    .sports-hero-box {
        background: linear-gradient(rgba(2, 27, 56, 0.85), rgba(0, 51, 102, 0.85)), url('https://picsum.photos/seed/cricket/1200/400') center/cover;
        border-radius: 12px;
        padding: 32px 24px;
        color: #ffffff;
        margin: 16px 0;
    }

    .sports-top-stories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
    .sports-story-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
    .sports-story-card img { width: 100%; height: 120px; object-fit: cover; }
    .sports-story-body { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; }
    .sports-story-tag { font-size: 9px; font-weight: 800; color: #0056b3; text-transform: uppercase; margin-bottom: 4px; }
    .sports-story-title { font-size: 12px; font-weight: 700; color: #0f172a; line-height: 1.35; margin: 0 0 4px 0; flex-grow: 1; }
    .sports-story-time { font-size: 10px; color: #94a3b8; }

    /* SINGLE ARTICLE LAYOUT */
    .article-page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin: 20px 0 40px 0; }
    .article-cat-badge { background: #0056b3; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; display: inline-block; margin-bottom: 12px; }
    .article-main-title { font-size: 34px; line-height: 1.25; font-weight: 800; color: #0f172a; margin: 0 0 12px 0; letter-spacing: -0.5px; }
    .article-sub-desc { font-size: 15px; line-height: 1.5; color: #475569; margin: 0 0 20px 0; font-weight: 500; }

    .article-meta-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
    .author-info-wrap { display: flex; align-items: center; gap: 10px; }
    .author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #0056b3; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; text-transform: uppercase; }
    .author-details { display: flex; flex-direction: column; font-size: 13px; }
    .author-name { font-weight: 700; color: #0f172a; }
    .author-role { color: #64748b; font-size: 11px; }

    .social-share-row { display: flex; align-items: center; gap: 6px; }
    .share-btn-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; cursor: pointer; }
    .share-fb { background: #1877f2; }
    .share-x { background: #000; }
    .share-li { background: #0a66c2; }
    .share-link { background: #64748b; }
    .share-print { background: #475569; }

    .article-hero-media { margin-bottom: 24px; }
    .article-hero-media img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; }
    .media-caption-text { font-size: 12px; color: #64748b; margin-top: 8px; }

    .article-body-text { font-size: 16px; line-height: 1.75; color: #1e293b; }
    .article-body-text p { margin-bottom: 20px; }

    /* DYNAMIC TAGS PILLS STYLES */
    .article-tags-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
    .article-tag-pill { background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1px solid #e2e8f0; transition: all 0.2s; }
    .article-tag-pill:hover { background: #0056b3; color: #fff; border-color: #0056b3; }

    /* SIDEBAR STYLES */
    .bw-card-box { background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; padding: 16px; margin-bottom: 16px; }
    .bw-box-title { font-size: 14px; font-weight: 800; margin: 0 0 14px 0; display: flex; justify-content: space-between; align-items: center; color: #0f172a; }

    .most-read-list { counter-reset: read-counter; display: flex; flex-direction: column; gap: 12px; }
    .most-read-item { display: flex; gap: 10px; align-items: flex-start; }
    .most-read-item::before { counter-increment: read-counter; content: counter(read-counter); font-size: 18px; font-weight: 800; color: #0056b3; min-width: 16px; }
    .most-read-info h4 { font-size: 12px; font-weight: 700; margin: 0; line-height: 1.35; color: #1e293b; }

    /* ADVANCED GOOGLE FINANCE SECTOR SNAPSHOT WIDGET (WITH BTC FRONT) */
    .market-mini-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 11px; text-decoration: none; color: inherit; transition: background 0.2s; }
    .market-mini-row:hover { background: #f8fafc; }
    .market-mini-info { display: flex; flex-direction: column; }
    .market-mini-symbol { font-weight: 800; color: #0f172a; font-size: 12px; }
    .market-mini-sector { font-size: 10px; color: #64748b; font-weight: 500; }
    .market-sparkline-svg { width: 50px; height: 20px; }
    .market-mini-price-box { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
    .market-mini-val { font-weight: 700; color: #1e293b; font-size: 11px; }
    .market-mini-badge-up { color: #16a34a; font-weight: 700; font-size: 10px; display: flex; align-items: center; gap: 2px; }
    .market-mini-badge-down { color: #dc2626; font-weight: 700; font-size: 10px; display: flex; align-items: center; gap: 2px; }

    .sidebar-related-list { display: flex; flex-direction: column; gap: 12px; }
    .sidebar-related-item { display: flex; gap: 10px; align-items: flex-start; }
    .sidebar-related-thumb { width: 75px; height: 55px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
    .sidebar-related-tag { font-size: 9px; font-weight: 800; color: #0056b3; text-transform: uppercase; margin-bottom: 2px; }
    .sidebar-related-title { font-size: 12px; font-weight: 700; color: #0f172a; line-height: 1.35; margin: 0 0 2px 0; }
    .sidebar-related-time { font-size: 10px; color: #94a3b8; }

    /* MARKET CAROUSEL WIDGET */
    .market-widget-card { background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; padding: 14px; position: relative; }
    .market-widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
    .market-widget-title { font-size: 14px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 6px; }
    .market-nav-btn { background: #f1f5f9; border: 1px solid #cbd5e1; width: 24px; height: 24px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 10px; }
    
    .market-slides-container { overflow: hidden; position: relative; }
    .market-track { display: flex; transition: transform 0.4s ease-in-out; }
    .market-slide { min-width: 100%; display: flex; flex-direction: column; gap: 4px; }

    .market-footer-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
    .market-dots { display: flex; gap: 4px; }
    .market-dot-item { width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; cursor: pointer; }
    .market-dot-item.active { background: #0056b3; width: 12px; border-radius: 3px; }

    /* HOMEPAGE STYLES */
    .bw-main-grid { display: grid; grid-template-columns: 2.2fr 1fr 0.9fr; gap: 20px; margin: 20px 0; }
    .bw-slider-container { position: relative; border-radius: 10px; overflow: hidden; height: 420px; background: #0f172a; }
    .bw-slide-track { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
    .bw-slide { min-width: 100%; height: 100%; position: relative; display: flex !important; flex-direction: column !important; justify-content: flex-end !important; text-decoration: none !important; }
    .bw-slide img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .bw-slide-overlay { position: relative !important; z-index: 5 !important; padding: 28px 16px 20px 16px !important; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 60%, transparent 100%) !important; color: #ffffff !important; width: 100% !important; box-sizing: border-box !important; }
    .bw-slide-title { font-size: 20px; line-height: 1.3; font-weight: 800; margin: 0 0 6px 0; color: #ffffff !important; }

    .bw-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; background: rgba(255,255,255,0.75); border: none; width: 30px; height: 50px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; }
    .bw-prev-btn { left: 6px; } .bw-next-btn { right: 6px; }

    .bw-trending-list { display: flex; flex-direction: column; gap: 12px; counter-reset: trend-counter; }
    .bw-trend-item { display: flex; gap: 10px; align-items: flex-start; }
    .bw-trend-item::before { counter-increment: trend-counter; content: counter(trend-counter); font-size: 18px; font-weight: 800; color: #0056b3; min-width: 16px; }
    .bw-trend-thumb { width: 65px; height: 55px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
    .bw-trend-info h4 { font-size: 12px; font-weight: 700; margin: 0 0 2px 0; line-height: 1.35; color: #1a1a1a; }

    .bw-categories-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 20px 0; }
    .bw-cat-box { background: #fff; border: 1px solid #e5e8ed; border-left: 3px solid #cbd5e1; border-radius: 10px; padding: 14px 8px; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
    .bw-cat-box:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(15,23,42,0.10); }
    .bw-cat-icon { font-size: 22px; margin-bottom: 6px; display: block; }
    .bw-cat-name { font-size: 12px; font-weight: 700; color: #111; }
    .bw-cat-box:nth-child(1) { border-left-color: #0056b3; } .bw-cat-box:nth-child(1) .bw-cat-icon { color: #0056b3; }
    .bw-cat-box:nth-child(2) { border-left-color: #16a34a; } .bw-cat-box:nth-child(2) .bw-cat-icon { color: #16a34a; }
    .bw-cat-box:nth-child(3) { border-left-color: #7c3aed; } .bw-cat-box:nth-child(3) .bw-cat-icon { color: #7c3aed; }
    .bw-cat-box:nth-child(4) { border-left-color: #db2777; } .bw-cat-box:nth-child(4) .bw-cat-icon { color: #db2777; }
    .bw-cat-box:nth-child(5) { border-left-color: #ea580c; } .bw-cat-box:nth-child(5) .bw-cat-icon { color: #ea580c; }
    .bw-cat-box:nth-child(6) { border-left-color: #0891b2; } .bw-cat-box:nth-child(6) .bw-cat-icon { color: #0891b2; }
    .bw-cat-box:nth-child(7) { border-left-color: #dc2626; } .bw-cat-box:nth-child(7) .bw-cat-icon { color: #dc2626; }

    .bw-section-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; margin-bottom: 28px; }
    .bw-tabs-row { display: flex; gap: 8px; border-bottom: 1px solid #e5e8ed; padding-bottom: 8px; margin-bottom: 16px; overflow-x: auto; }
    .bw-tab-btn { font-size: 12px; font-weight: 700; color: #6c757d; cursor: pointer; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
    .bw-tab-btn.active, .bw-tab-btn:hover { color: #0056b3; background: #eef4ff; }

    .bw-news-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .bw-news-card { background: #fff; border: 1px solid #e5e8ed; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
    .bw-news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15,23,42,0.10); border-color: #d6dce5; }
    .bw-news-card img { width: 100%; height: 110px; object-fit: cover; }
    .bw-news-card-body { padding: 10px; }

    /* DENSE "TOP STORIES" STRIP — BELOW HERO, EDITORIAL-STYLE HEADLINE GRID */
    .bw-section-heading-row { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px 0; }
    .bw-section-heading-row h3 { font-size: 16px; font-weight: 800; margin: 0; padding-left: 10px; border-left: 4px solid #0056b3; }
    .bw-section-heading-row a { font-size: 11px; font-weight: 700; color: #0056b3; white-space: nowrap; }
    .bw-topstories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
    .bw-topstory-card { display: flex; gap: 10px; background: #fff; border: 1px solid #e5e8ed; border-radius: 8px; padding: 8px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
    .bw-topstory-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(15,23,42,0.08); }
    .bw-topstory-card img { width: 88px; height: 66px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
    .bw-topstory-card h4 { font-size: 12px; font-weight: 700; line-height: 1.35; margin: 0 0 4px 0; color: #1a1a1a; }
    .bw-topstory-card span { font-size: 10px; color: #8a94a3; font-weight: 600; }

    /* TOPIC/CATEGORY ROW BLOCKS (World, Business, Technology...) — reuse the news-card grid look */
    .bw-topic-block { margin-bottom: 28px; }

    .topic-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .topic-tag { background: #f1f5f9; color: #334155; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1px solid #e2e8f0; }

    .bw-footer { background: #001a33; color: #94a3b8; padding: 32px 0 20px 0; margin-top: 32px; border-top: 3px solid #0056b3; font-size: 12px; }
    .bw-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
    .bw-footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
    .bw-footer-links { display: flex; flex-direction: column; gap: 6px; }
    .bw-footer-links a { color: #cbd5e1; }
    .bw-footer-links a:hover { color: #38bdf8; text-decoration: underline; }
    .bw-social-row { display: flex; gap: 8px; margin-top: 4px; }
    .bw-social-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 13px; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
    .bw-social-icon:hover { background: #0056b3; color: #fff; }
    .bw-footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 14px; font-size: 11px; color: #64748b; }

    .bw-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999; align-items: center; justify-content: center; padding: 16px; }
    .bw-modal-content { background: #fff; border-radius: 12px; width: 100%; max-width: 400px; padding: 24px; position: relative; box-sizing: border-box; }
    .bw-modal-close { position: absolute; top: 12px; right: 12px; border: none; background: none; font-size: 18px; cursor: pointer; }

    @media (max-width: 768px) {
        .bw-top-bar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 0; }
        .mobile-header-top-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
        .bw-brand { font-size: 22px; font-weight: 800; line-height: 1; display: inline-block; }
        .bw-brand-logo img { height: 32px; }
        .bw-tagline { font-size: 9px; }
        
        .bw-header-right { gap: 6px; }
        .bw-weather-badge { font-size: 10px; padding: 4px 8px; }
        .bw-btn-follow { font-size: 11px; padding: 5px 10px; }

        .bw-search-box { max-width: 100%; width: 100%; margin-top: 2px; }

        .bw-main-grid, .bw-section-layout, .cat-page-layout, .article-page-grid { grid-template-columns: 1fr !important; gap: 16px; }
        .cat-grid-50 { grid-template-columns: 1fr !important; }
        .bw-categories-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
        .bw-news-cards-grid, .sports-top-stories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
        .bw-topstories-grid { grid-template-columns: 1fr !important; }
        .bw-footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
        
        .bw-slider-container { height: 260px !important; }
        .bw-slide-title { font-size: 16px !important; }
        .article-main-title { font-size: 22px !important; }
        
        .ad-leaderboard-970, .ad-banner-728, .ad-rectangle-336, .ad-sidebar-300 { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
    }

    @media (max-width: 480px) {
        .bw-categories-grid { grid-template-columns: repeat(3, 1fr) !important; }
        .bw-news-cards-grid, .sports-top-stories-grid { grid-template-columns: 1fr !important; }
        .bw-footer-grid { grid-template-columns: 1fr !important; }
    }
