/* ============================================================
   Polimer Style News - Main Stylesheet
   Sections:
   1.  Variables, Reset
   2.  Typography, Buttons
   3.  Top bar
   4.  Site header / Logo / Ad slot
   5.  Navigation (mega menu, sticky)
   6.  Breaking news ticker
   7.  Hero slider
   8.  Section titles
   9.  News cards / grids
   10. Video section
   11. Trending
   12. Live TV
   13. Web stories
   14. Gallery
   15. Sidebar / widgets
   16. Single article
   17. Archive / search / 404
   18. Footer
   19. Mobile bottom nav, back to top
   20. Dark mode
   21. Responsive breakpoints
   ============================================================ */

/* ---------- 1. Variables & Reset ---------- */
:root {
    --polimer-primary:   #c8102e;
    --polimer-secondary: #1a1a1a;
    --polimer-accent:    #ffcc00;
    --bg:                #ffffff;
    --bg-alt:            #f5f5f7;
    --text:              #1a1a1a;
    --text-muted:        #666;
    --border:            #e6e6e6;
    --shadow:            0 4px 20px rgba(0,0,0,.06);
    --radius:            8px;
    --container-max:     1240px;
    --font-en:           'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-ta:           'Noto Sans Tamil', 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-ta), var(--font-en);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--polimer-primary); }

.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: var(--polimer-primary); color: #fff; padding: .5rem 1rem; position: fixed; }

.container { max-width: var(--container-max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---------- 2. Typography & Buttons ---------- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-ta), var(--font-en); margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }

.btn { display: inline-block; padding: .5rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; font-weight: 600; transition: all .2s; text-align: center; }
.btn-primary { background: var(--polimer-primary); color: #fff; }
.btn-primary:hover { background: var(--polimer-secondary); color: #fff; }
.btn-outline-primary { background: transparent; border-color: var(--polimer-primary); color: var(--polimer-primary); }
.btn-outline-primary:hover { background: var(--polimer-primary); color: #fff; }
.btn-read { color: var(--polimer-primary); font-weight: 600; }
.btn-read:hover { letter-spacing: .5px; }

/* ---------- 3. Top Bar ---------- */
.top-bar {
    background: var(--polimer-secondary);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-bar-left i { margin-right: 4px; color: var(--polimer-accent); }
.top-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-menu { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.topbar-menu a { color: #fff; }
.btn-live, .btn-epaper, .btn-login {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px;
    background: var(--polimer-primary); color: #fff; font-weight: 600; font-size: 12px;
}
.btn-epaper { background: transparent; border: 1px solid #fff; }
.btn-login  { background: transparent; border: 1px solid #fff; }
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
    display: inline-block; animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.social-links a { color: #fff; margin: 0 5px; font-size: 14px; }
.social-links a:hover { color: var(--polimer-accent); }
.dark-mode-toggle { background: transparent; color: #fff; border: 0; cursor: pointer; font-size: 14px; }

/* ---------- 4. Site Header ---------- */
.site-header { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--border); }
.site-title { color: var(--polimer-primary); font-size: 2.25rem; margin: 0; font-weight: 900; letter-spacing: -.5px; }
.site-description { color: var(--text-muted); margin: 0; font-size: 14px; }
.custom-logo-link img { max-height: 80px; width: auto; }
.ad-slot { background: var(--bg-alt); border: 1px dashed var(--border); border-radius: var(--radius); padding: 8px; text-align: center; color: var(--text-muted); }
.ad-slot--header { max-width: 728px; min-height: 90px; margin-left: auto; display: flex; align-items: center; justify-content: center; }
.ad-slot--placeholder { font-size: 12px; }
.ad-row { padding: 18px 0; }
.ad-slot--banner { min-height: 90px; }

/* ---------- 5. Navigation / Mega Menu ---------- */
.main-navigation {
    background: var(--polimer-primary);
    position: sticky; top: 0; z-index: 200;
    transition: box-shadow .3s;
}
.main-navigation .container { display: flex; align-items: center; justify-content: space-between; }
.main-navigation.is-stuck { box-shadow: 0 4px 14px rgba(0,0,0,.15); }

.primary-menu, .primary-menu * { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; flex-wrap: wrap; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
    color: #fff; display: block; padding: 14px 14px; font-weight: 600; font-size: 14px;
    text-transform: uppercase; letter-spacing: .3px; transition: background .2s;
}
.primary-menu > li > a:hover, .primary-menu > li.current-menu-item > a { background: rgba(0,0,0,.18); color: #fff; }
.primary-menu .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .2s ease; z-index: 300;
}
.primary-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { color: var(--text); display: block; padding: 10px 14px; font-size: 14px; }
.primary-menu .sub-menu a:hover { background: var(--bg-alt); color: var(--polimer-primary); }

.menu-toggle {
    display: none; background: transparent; color: #fff; border: 0; padding: 12px;
    font-weight: 600; cursor: pointer; align-items: center; gap: 8px;
}
.hamburger { width: 22px; height: 2px; background: #fff; position: relative; display: inline-block; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; }
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-search { position: relative; }
.search-toggle { background: transparent; border: 0; color: #fff; padding: 12px; cursor: pointer; }
.search-dropdown {
    position: absolute; right: 0; top: 100%; min-width: 280px; padding: 10px; background: #fff;
    box-shadow: var(--shadow); display: none;
}
.search-dropdown.is-open { display: block; }
.search-form { display: flex; }
.search-field { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; }
.search-submit { padding: 8px 14px; background: var(--polimer-primary); color: #fff; border: 0; border-radius: 0 4px 4px 0; cursor: pointer; }

/* ---------- 6. Breaking News Ticker ---------- */
.breaking-ticker {
    background: #fff8e6; border-top: 2px solid var(--polimer-primary);
    border-bottom: 1px solid var(--border); padding: 8px 0; overflow: hidden;
}
.breaking-ticker .container { display: flex; align-items: center; gap: 12px; }
.breaking-label {
    background: var(--polimer-primary); color: #fff; padding: 4px 12px; border-radius: 4px;
    font-weight: 800; font-size: 12px; text-transform: uppercase; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
}
.breaking-label i { animation: blink 1s infinite; }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; white-space: nowrap; animation: tickerScroll 40s linear infinite; }
.ticker-list li a { color: var(--text); font-weight: 500; }
.ticker-list .dot { color: var(--polimer-primary); margin-left: 30px; }
.breaking-ticker:hover .ticker-list { animation-play-state: paused; }
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- 7. Hero Slider ---------- */
.hero-slider-section { padding: 24px 0; }
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-slide { display: none; position: relative; }
.hero-slide.is-active { display: block; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-slide img { width: 100%; height: 480px; object-fit: cover; }
.hero-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 100%);
    color: #fff;
}
.hero-cat .post-cat-link {
    display: inline-block; background: var(--polimer-primary); padding: 4px 12px;
    border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase;
    color: #fff !important; margin-bottom: 12px;
}
.hero-title { color: #fff; font-size: clamp(1.25rem, 3vw, 2.25rem); margin-bottom: 8px; }
.hero-meta { font-size: 13px; opacity: .9; margin-bottom: 14px; }
.hero-overlay .btn-read { color: var(--polimer-accent); font-weight: 700; }
.hero-prev, .hero-next {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
    border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; z-index: 5;
}
.hero-prev { left: 16px; } .hero-next { right: 16px; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button.is-active { background: var(--polimer-primary); }

/* ---------- 8. Section Titles ---------- */
.section { padding: 36px 0; }
.section-title {
    position: relative; font-size: 1.5rem; font-weight: 800;
    margin: 0 0 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.section-title > span:first-child {
    position: relative; padding: 8px 16px 8px 0; border-bottom: 3px solid var(--polimer-primary);
    margin-bottom: -1px;
}
.section-title--light { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.section-title .see-all { font-size: 13px; color: var(--polimer-primary); font-weight: 600; }

/* ---------- 9. News Cards ---------- */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.news-card-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card-thumb img { transform: scale(1.06); }
.news-card-cat {
    position: absolute; top: 10px; left: 10px;
}
.news-card-cat .post-cat-link {
    background: var(--polimer-primary); color: #fff !important; padding: 3px 10px;
    border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.news-card-body { padding: 14px; }
.news-card-title { font-size: 1.05rem; line-height: 1.4; margin-bottom: 8px; }
.news-card-title a { color: var(--text); }
.news-card-title a:hover { color: var(--polimer-primary); }
.news-card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.news-card-excerpt { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Category tabs */
.category-tabs { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.category-tabs button {
    background: transparent; border: 1px solid var(--border); padding: 6px 14px;
    border-radius: 20px; font-size: 13px; cursor: pointer; transition: all .2s;
}
.category-tabs button:hover { border-color: var(--polimer-primary); color: var(--polimer-primary); }
.category-tabs button.active { background: var(--polimer-primary); color: #fff; border-color: var(--polimer-primary); }

.latest-posts.is-loading { opacity: .5; pointer-events: none; }
.btn-load-more { min-width: 200px; }

/* ---------- 10. Video Section ---------- */
.section-video-news { background: var(--polimer-secondary); }
.video-card { background: #222; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.video-card-thumb { position: relative; aspect-ratio: 16/9; display: block; overflow: hidden; }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-card-thumb img { transform: scale(1.05); }
.play-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.5rem; background: rgba(0,0,0,.25); transition: background .2s;
}
.video-card:hover .play-icon { background: rgba(200,16,46,.55); }
.video-card-title { padding: 12px 14px; color: #fff; font-size: 1rem; margin: 0; }
.video-card-title a { color: #fff; }
.video-card-title a:hover { color: var(--polimer-accent); }
.video-meta { padding: 0 14px 12px; color: #aaa; font-size: 12px; }

/* ---------- 11. Trending ---------- */
.trending-numbered { list-style: none; padding: 0; counter-reset: n; margin: 0; }
.trending-numbered li { counter-increment: n; padding: 12px 0; border-bottom: 1px solid var(--border); position: relative; padding-left: 50px; }
.trending-numbered li::before {
    content: counter(n, decimal-leading-zero);
    position: absolute; left: 0; top: 12px; width: 40px;
    font-size: 1.5rem; font-weight: 900; color: var(--polimer-primary);
}
.trending-numbered li a { display: flex; gap: 14px; align-items: flex-start; }
.trending-numbered li img { width: 100px; height: 70px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.trend-body { flex: 1; }
.trend-body h3 { font-size: 1rem; margin: 4px 0; line-height: 1.4; }
.trend-body .post-views { font-size: 12px; color: var(--text-muted); }
.popular-tags a {
    display: inline-block; margin: 4px; padding: 4px 12px; background: var(--bg-alt);
    border-radius: 20px; font-size: 13px;
}
.popular-tags a:hover { background: var(--polimer-primary); color: #fff; }

/* ---------- 12. Live TV ---------- */
.section-live-tv { background: var(--bg-alt); }
.live-tv-player { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.live-tv-placeholder { padding: 80px 20px; text-align: center; background: #222; color: #fff; border-radius: var(--radius); }
.schedule-list { list-style: none; padding: 0; }
.schedule-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }

/* ---------- 13. Web Stories ---------- */
.stories-slider, .stories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; overflow-x: auto; }
.stories-grid { grid-template-columns: repeat(4, 1fr); }
.story-card {
    position: relative; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden;
    display: block; background: #000; transition: transform .3s;
}
.story-card:hover { transform: translateY(-3px); }
.story-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.story-overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.9) 100%);
}
.story-title { color: #fff; font-size: .95rem; margin: 0; line-height: 1.3; font-weight: 600; }

/* ---------- 14. Gallery ---------- */
.gallery-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gp-item { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); display: block; }
.gp-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gp-item:hover img { transform: scale(1.08); }
.gp-title {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 12px;
    color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); font-weight: 600;
}
.masonry-grid { columns: 3 320px; column-gap: 12px; }
.masonry-item { break-inside: avoid; margin-bottom: 12px; }

/* ---------- 15. Sidebar / Widgets ---------- */
.page-with-sidebar { display: flex; flex-wrap: wrap; gap: 24px; padding: 36px 0; }
.page-with-sidebar > .col-lg-8 { flex: 1; min-width: 0; }
.page-with-sidebar > .col-lg-4 { width: 320px; }
@media (max-width: 991px) { .page-with-sidebar > .col-lg-4 { width: 100%; } }
.sticky-sidebar { position: sticky; top: 80px; }
.widget { background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.widget-title {
    font-size: 1.1rem; font-weight: 800; margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 2px solid var(--polimer-primary);
    display: inline-block;
}
.recent-news-widget { list-style: none; padding: 0; margin: 0; }
.recent-news-widget li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.recent-news-widget a { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.recent-news-widget img { width: 70px; height: 50px; object-fit: cover; border-radius: 4px; }
.trending-list { list-style: decimal; padding-left: 1.5em; }
.trending-list a { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.trending-list img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.newsletter-form input[type="email"] { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 8px; }
.newsletter-form button { width: 100%; }

/* ---------- 16. Single Article ---------- */
.single-article { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb .sep { margin: 0 6px; color: var(--border); }
.breadcrumb .current { color: var(--polimer-primary); }
.post-cat-tag .post-cat-link { background: var(--polimer-primary); color: #fff !important; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.article-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 14px 0; line-height: 1.2; }
.article-meta { color: var(--text-muted); font-size: 13px; gap: 16px; margin-bottom: 16px; }
.article-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.author-block img { border-radius: 50%; margin-right: 8px; }
.article-featured-image { margin: 20px -30px; }
.article-featured-image img { width: 100%; }
.article-featured-image figcaption { font-size: 13px; color: var(--text-muted); padding: 8px; text-align: center; }
.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2, .article-body h3 { margin: 1.5em 0 .5em; }
.article-body p { margin: 0 0 1em; }
.article-body blockquote { border-left: 4px solid var(--polimer-primary); padding: 0 1em; color: var(--text-muted); font-style: italic; }
.social-share { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.social-share .ss {
    width: 36px; height: 36px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; color: #fff; font-size: 14px; cursor: pointer; border: 0;
}
.ss.fb { background: #1877f2; } .ss.tw { background: #1da1f2; }
.ss.wa { background: #25d366; } .ss.tg { background: #0088cc; }
.ss.em { background: #555; }    .ss.copy { background: #777; }
.article-tags { margin: 18px 0; }
.article-tags a { background: var(--bg-alt); padding: 4px 12px; border-radius: 20px; margin-right: 6px; font-size: 13px; }
.author-box { display: flex; gap: 16px; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); margin: 20px 0; }
.author-box img { border-radius: 50%; }
.related-posts { margin-top: 30px; }

/* Comments */
#comments { margin-top: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 14px; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 14px; }

/* ---------- 17. Archive / Search / 404 ---------- */
.archive-banner { background: linear-gradient(135deg, var(--polimer-primary), var(--polimer-secondary)); color: #fff; padding: 36px 0; }
.archive-title { font-size: 2rem; color: #fff; margin: 0; }
.archive-description { color: rgba(255,255,255,.85); margin-top: 8px; }
.view-toggle { display: flex; gap: 6px; margin-bottom: 16px; }
.view-toggle button { background: transparent; border: 1px solid var(--border); padding: 6px 12px; cursor: pointer; border-radius: 4px; }
.view-toggle button.active { background: var(--polimer-primary); color: #fff; border-color: var(--polimer-primary); }
.view-list .col-md-6, .view-list .col-lg-4 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
.view-list .news-card { display: flex; align-items: stretch; }
.view-list .news-card-thumb { width: 280px; aspect-ratio: auto; flex-shrink: 0; }
.error-404-wrap { padding: 80px 0; }
.error-code { font-size: 8rem; color: var(--polimer-primary); margin: 0; font-weight: 900; }

/* Pagination */
.nav-links, .pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.page-numbers {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px;
    color: var(--text); font-weight: 600;
}
.page-numbers.current, .page-numbers:hover { background: var(--polimer-primary); color: #fff; border-color: var(--polimer-primary); }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--polimer-secondary); color: #ddd; padding: 50px 0 0; margin-top: 50px; }
.site-footer h3, .site-footer .widget-title { color: #fff; border-bottom-color: var(--polimer-primary); }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--polimer-accent); }
.footer-widgets { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-widgets > [class*="col-"] { flex: 1; min-width: 200px; }
.footer-menu, .footer-cats, .contact-list { list-style: none; padding: 0; margin: 0; }
.footer-menu li, .footer-cats li, .contact-list li { padding: 4px 0; }
.contact-list i { color: var(--polimer-accent); margin-right: 6px; }
.app-download { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.app-download a { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); padding: 8px 12px; border-radius: 4px; font-size: 13px; }
.site-info { background: #000; padding: 14px 0; margin-top: 40px; font-size: 13px; }

/* ---------- 19. Mobile bottom nav, back-to-top ---------- */
.mobile-bottom-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
    background: #fff; box-shadow: 0 -2px 14px rgba(0,0,0,.08); border-top: 1px solid var(--border);
}
.mobile-bottom-list { list-style: none; display: flex; justify-content: space-around; margin: 0; padding: 6px 0; }
.mobile-bottom-list a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); font-size: 11px; }
.mobile-bottom-list i { font-size: 18px; color: var(--polimer-primary); }
.back-to-top {
    position: fixed; right: 16px; bottom: 80px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--polimer-primary); color: #fff; border: 0; cursor: pointer;
    opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 200; box-shadow: var(--shadow);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- 20. Dark Mode ---------- */
body.dark-mode {
    --bg: #121212;
    --bg-alt: #1e1e1e;
    --text: #f0f0f0;
    --text-muted: #aaa;
    --border: #333;
    --shadow: 0 4px 20px rgba(0,0,0,.4);
}
body.dark-mode .news-card,
body.dark-mode .widget,
body.dark-mode .single-article,
body.dark-mode .ad-slot { background: var(--bg-alt); color: var(--text); }
body.dark-mode .site-header { background: var(--bg-alt); border-bottom-color: var(--border); }
body.dark-mode .primary-menu .sub-menu { background: var(--bg-alt); }
body.dark-mode .breaking-ticker { background: #2a1f00; }
body.dark-mode .search-dropdown { background: var(--bg-alt); }

/* ---------- 21. Responsive ---------- */
@media (max-width: 991px) {
    .header-ad { display: none; }
    .stories-slider, .stories-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-slide img { height: 360px; }
}
@media (max-width: 767px) {
    .top-bar { font-size: 11px; }
    .top-bar-left { display: none; }
    .menu-toggle { display: inline-flex; }
    .primary-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: #fff; box-shadow: var(--shadow); z-index: 250;
    }
    .primary-menu.is-open { display: flex; }
    .primary-menu > li > a { color: var(--text); padding: 14px 20px; border-bottom: 1px solid var(--border); }
    .primary-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 20px; }
    .hero-slide img { height: 260px; }
    .hero-overlay { padding: 16px 20px; }
    .hero-title { font-size: 1.1rem; }
    .stories-slider, .stories-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 60px; }
    .article-featured-image { margin: 14px -16px; }
    .single-article { padding: 16px; }
}
@media (max-width: 480px) {
    .stories-slider, .stories-grid { grid-template-columns: 1fr 1fr; }
    .masonry-grid { columns: 1; }
}
