/*
Theme Name: TNC News
Theme URI: https://thenewscorner.example.com/
Author: TNC Team
Description: Mobile-first Hindi news theme. Clean article list layout inspired by top Indian news apps. Fully responsive — works beautifully on both mobile and desktop.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tnc-news
Tags: news, hindi, mobile, responsive, blog
*/

/* =====================================================
   GOOGLE FONTS — loaded via functions.php
   ===================================================== */

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --red:        #d32f2f;
  --red-dark:   #9a0007;
  --red-light:  #ffebee;
  --black:      #111;
  --text:       #1c1c1c;
  --text-2:     #555;
  --text-3:     #888;
  --border:     #e8e8e8;
  --bg:         #f4f4f4;
  --card:       #ffffff;
  --shadow:     0 1px 4px rgba(0,0,0,.08);
  --radius:     8px;
  --header-h:   56px;
  --tr:         .18s ease;
  --font:       'Noto Sans Devanagari', 'Noto Sans', Arial, sans-serif;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; padding: 0; margin: 0; }
button{ font-family: var(--font); cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 14px; }

/* Skip link */
.skip-link {
  position: absolute; top: -999px; left: 8px;
  background: var(--red); color: #fff; padding: 8px 16px;
  border-radius: 0 0 6px 6px; font-weight: 700; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--red);
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.site-header .container {
  display: flex; align-items: center; gap: 10px; width: 100%;
}

/* Hamburger */
.hdr-menu-btn {
  background: none; border: none; color: #fff;
  font-size: 22px; padding: 6px; line-height: 1;
  border-radius: 4px; flex-shrink: 0;
  transition: background var(--tr);
}
.hdr-menu-btn:hover { background: rgba(255,255,255,.15); }

/* Logo */
.hdr-logo { flex: 1; text-align: center; }
.hdr-logo a {
  color: #fff; font-size: 22px; font-weight: 900;
  letter-spacing: -.3px; display: inline-flex; align-items: center; gap: 6px;
}
.hdr-logo .logo-dot { color: #ffcdd2; font-size: 28px; line-height: 1; }
.hdr-logo img { max-height: 40px; margin: 0 auto; }

/* Search & dark buttons */
.hdr-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hdr-btn {
  background: none; border: none; color: #fff;
  font-size: 20px; padding: 6px 8px; line-height: 1;
  border-radius: 4px; transition: background var(--tr);
}
.hdr-btn:hover { background: rgba(255,255,255,.15); }

/* =====================================================
   CATEGORY TABS (sticky below header)
   ===================================================== */
.cat-tabs {
  position: sticky; top: var(--header-h); z-index: 199;
  background: #fff; border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.cat-tabs-inner {
  display: flex; overflow-x: auto; gap: 0;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0 4px;
}
.cat-tabs-inner::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; padding: 10px 16px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
  border-bottom: 3px solid transparent; white-space: nowrap;
  transition: color var(--tr), border-color var(--tr);
  display: block;
}
.cat-tab:hover  { color: var(--red); }
.cat-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* =====================================================
   BREAKING TICKER
   ===================================================== */
.ticker-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; overflow: hidden;
  height: 36px;
}
.ticker-tag {
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  padding: 0 12px; height: 100%; display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0; letter-spacing: .5px;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-scroll {
  display: flex; gap: 48px; white-space: nowrap;
  animation: ticker 35s linear infinite;
  font-size: 13px; font-weight: 600; padding: 0 16px;
  color: var(--text);
}
.ticker-scroll a { color: var(--text); }
.ticker-scroll a:hover { color: var(--red); }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* =====================================================
   PAGE LAYOUT
   ===================================================== */
.site-main {
  max-width: 1100px; margin: 0 auto;
  padding: 12px 14px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}

/* =====================================================
   ARTICLE LIST — the core UI
   ===================================================== */
.article-list { display: flex; flex-direction: column; gap: 0; }

/* Each row */
.art-item {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: row;          /* text LEFT, image RIGHT */
  align-items: stretch;
  gap: 0;
  transition: background var(--tr), color var(--tr);
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  min-height: 88px;
}
.art-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.art-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.art-item:only-child  { border-radius: var(--radius); }
.art-item:hover       { background: #fafafa; }

/* LEFT: text block */
.art-text {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

/* Category tag */
.art-cat {
  display: inline-block;
  font-size: 10.5px; font-weight: 900;
  color: var(--red); text-transform: uppercase;
  letter-spacing: .4px;
}

/* Headline */
.art-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--tr);
}
.art-item:hover .art-title { color: var(--red); }

/* Excerpt */
.art-excerpt {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta: time, read-time */
.art-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-3); flex-wrap: wrap;
}
.art-meta .art-time   { }
.art-meta .art-rdtime { }
.art-badge {
  font-size: 9.5px; font-weight: 900; padding: 1px 6px;
  border-radius: 3px; text-transform: uppercase;
}
.art-badge-live     { background: var(--red); color: #fff; animation: pulse 1.4s ease-in-out infinite; }
.art-badge-breaking { background: #111; color: #fff; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }

/* RIGHT: thumbnail — fixed size, never stretches */
.art-thumb {
  flex-shrink: 0;
  width: 110px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #eee;
}
.art-item:first-child .art-thumb { border-radius: 0 var(--radius) 0 0; }
.art-item:last-child  .art-thumb { border-radius: 0 0 var(--radius) 0; }
.art-item:only-child  .art-thumb { border-radius: 0 var(--radius) var(--radius) 0; }

.art-thumb img {
  /* inline style also set in PHP — double lock */
  display: block !important;
  width: 110px   !important;
  height: 100%   !important;
  min-height: 88px;
  object-fit: cover !important;
}

/* No thumbnail placeholder */
.art-thumb-none {
  flex-shrink: 0; width: 110px; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  background: var(--border); font-size: 30px; color: #ccc;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* =====================================================
   HERO CARD (first article on listing pages)
   Full-width image on top
   ===================================================== */
.art-hero {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: background var(--tr);
}
.art-hero:hover { background: #fafafa; }

.art-hero-img {
  width: 100%; display: block;
  aspect-ratio: 16/9; object-fit: cover;
  background: #e0e0e0;
}

.art-hero-body { padding: 14px 16px 12px; }
.art-hero-cat  { font-size: 11px; font-weight: 900; color: var(--red); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; display: block; }
.art-hero-title {
  font-size: 19px; font-weight: 900; line-height: 1.4; color: var(--text); margin-bottom: 8px;
}
.art-hero:hover .art-hero-title { color: var(--red); }
.art-hero-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }

/* =====================================================
   SECTION HEAD
   ===================================================== */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 8px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 0;
}
.sec-head h2 {
  font-size: 16px; font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.sec-head .sec-more {
  font-size: 12px; color: var(--red); font-weight: 800;
  padding: 4px 10px; border: 1.5px solid var(--red); border-radius: 4px;
  transition: background var(--tr), color var(--tr);
}
.sec-head .sec-more:hover { background: var(--red); color: #fff; }

/* Section wrapper */
.news-section { margin-bottom: 20px; }
.news-section .article-list {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.news-section .art-hero {
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  box-shadow: none;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.site-sidebar { display: flex; flex-direction: column; gap: 16px; }

.widget-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.widget-box-title {
  font-size: 14px; font-weight: 900; color: var(--text);
  border-left: 4px solid var(--red); padding-left: 10px;
  margin-bottom: 14px;
}

/* Trending list in sidebar */
.trend-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.trend-item:last-child { border-bottom: 0; padding-bottom: 0; }
.trend-num {
  font-size: 18px; font-weight: 900; color: var(--red);
  line-height: 1; flex-shrink: 0; min-width: 22px;
}
.trend-title {
  font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4;
}
.trend-title:hover { color: var(--red); }
.trend-thumb {
  flex-shrink: 0; width: 72px; height: 52px;
  border-radius: 5px; overflow: hidden; background: var(--border);
}
.trend-thumb img {
  display: block !important;
  width: 72px    !important;
  height: 52px   !important;
  object-fit: cover !important;
}

/* CTA button */
.cta-btn {
  display: block; background: var(--red); color: #fff;
  text-align: center; padding: 11px 16px; border-radius: 6px;
  font-weight: 800; font-size: 14px; margin-top: 10px;
  transition: background var(--tr);
}
.cta-btn:hover { background: var(--red-dark); color: #fff; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex; gap: 6px; justify-content: center;
  flex-wrap: wrap; padding: 20px 0 8px;
}
.pagination a, .pagination span {
  padding: 8px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 13px; font-weight: 700;
  background: var(--card); color: var(--text);
  transition: background var(--tr), color var(--tr);
}
.pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-wrap {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.single-feat-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.single-body     { padding: 18px 18px 24px; }
.single-cat      { font-size: 11px; font-weight: 900; color: var(--red); text-transform: uppercase; letter-spacing: .5px; }
.single-title    { font-size: 24px; font-weight: 900; line-height: 1.4; color: var(--text); margin: 8px 0 14px; }
.single-meta     {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--text-3); padding-bottom: 16px;
  border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.single-meta strong { color: var(--text); }
.single-content  { font-size: 16px; line-height: 1.9; color: var(--text); }
.single-content p     { margin-bottom: 1.2em; }
.single-content h2    { font-size: 20px; margin: 1.5em 0 .6em; }
.single-content h3    { font-size: 17px; margin: 1.3em 0 .5em; }
.single-content img   { width: 100%; border-radius: 6px; margin: 1em 0; height: auto; }
.single-content ul,
.single-content ol    { padding-left: 1.4em; margin-bottom: 1em; }
.single-content li    { margin-bottom: .4em; }
.single-content blockquote {
  border-left: 4px solid var(--red); padding: 10px 14px;
  background: var(--red-light); border-radius: 0 6px 6px 0;
  font-style: italic; color: var(--text-2); margin: 1em 0;
}
.single-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* Share bar */
.share-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--border); margin-top: 20px;
}
.share-bar-label { font-weight: 800; font-size: 13px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 6px; font-size: 13px;
  font-weight: 700; border: none; cursor: pointer; color: #fff;
  transition: opacity var(--tr);
}
.share-btn:hover { opacity: .85; }
.s-wa   { background: #25d366; }
.s-fb   { background: #1877f2; }
.s-tw   { background: #1da1f2; }
.s-copy { background: #666; }

/* Related posts */
.related-section    { margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--border); }
.related-section h3 { font-size: 16px; font-weight: 900; border-left: 4px solid var(--red); padding-left: 10px; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.rel-card { border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--card); display: block; transition: box-shadow var(--tr); }
.rel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.rel-card img { width: 100% !important; height: 90px !important; object-fit: cover !important; display: block !important; }
.rel-card-title { font-size: 12.5px; font-weight: 700; padding: 8px; line-height: 1.4; color: var(--text); }
.rel-card:hover .rel-card-title { color: var(--red); }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.post-tags a {
  font-size: 12px; padding: 4px 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-2); font-weight: 600;
  transition: background var(--tr), color var(--tr);
}
.post-tags a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Comments */
.comments-wrap  { margin-top: 24px; }
.comment-form-comment textarea,
.comment-form input[type=text],
.comment-form input[type=email] {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: var(--font);
  background: #fff; color: var(--text); margin-top: 4px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--red); outline: none; }
.comment-form .form-submit input {
  background: var(--red); color: #fff; border: none;
  padding: 10px 24px; border-radius: 6px; font-weight: 800;
  font-size: 14px; font-family: var(--font); cursor: pointer; width: auto;
}

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--text-3); padding: 8px 0 4px; }
.breadcrumb a { color: var(--red); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #1a1a1a; color: #aaa; font-size: 13px; margin-top: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 32px 0 24px; }
.footer-grid h4 { color: #fff; font-size: 14px; font-weight: 900; margin-bottom: 12px; border-bottom: 2px solid var(--red); padding-bottom: 6px; display: inline-block; }
.footer-grid ul li { margin-bottom: 7px; }
.footer-grid ul li a { color: #888; transition: color var(--tr), padding-left var(--tr); display: inline-block; }
.footer-grid ul li a:hover { color: #fff; padding-left: 4px; }
.footer-brand p { font-size: 12.5px; color: #888; line-height: 1.7; margin-bottom: 12px; }
.footer-social { display: flex; gap: 8px; margin-top: 8px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%; background: #333;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #aaa; transition: background var(--tr);
}
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-bottom { background: #111; text-align: center; padding: 12px; color: #555; font-size: 12px; border-top: 1px solid #222; }

/* =====================================================
   MOBILE BOTTOM NAV
   ===================================================== */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  z-index: 300; padding: 4px 0 calc(4px + env(safe-area-inset-bottom,0px));
  box-shadow: 0 -2px 8px rgba(0,0,0,.1);
}
.bottom-nav-row { display: grid; grid-template-columns: repeat(5,1fr); text-align: center; }
.bottom-nav-row a, .bottom-nav-row button {
  font-size: 10px; background: none; border: none; font-family: var(--font);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-2); padding: 5px 2px; font-weight: 600;
  transition: color var(--tr); text-decoration: none; cursor: pointer;
}
.bottom-nav-row a:hover, .bottom-nav-row button:hover { color: var(--red); }
.bottom-nav-row .bn-icon { font-size: 20px; line-height: 1; }

/* Back to top */
#back-top {
  position: fixed; bottom: 76px; right: 14px;
  background: var(--red); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; display: none; z-index: 301; cursor: pointer;
  box-shadow: 0 3px 10px rgba(211,47,47,.4);
  transition: background var(--tr), transform var(--tr);
}
#back-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* =====================================================
   DRAWER MENU
   ===================================================== */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 400; backdrop-filter: blur(2px); }
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; left: -290px; width: 270px; max-width: 85vw;
  height: 100%; background: #fff; z-index: 401; overflow-y: auto;
  transition: left .26s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 20px rgba(0,0,0,.18);
}
.drawer.open { left: 0; }
.drawer-header {
  background: var(--red); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1;
}
.drawer-header strong { font-size: 17px; font-weight: 900; }
.drawer-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; padding: 4px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; font-size: 14px; font-weight: 700;
  border-bottom: 1px solid var(--border); color: var(--text);
  transition: background var(--tr), color var(--tr);
}
.drawer-nav a:hover { background: #fff5f5; color: var(--red); }
.drawer-section-label {
  padding: 10px 18px 4px; font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .8px; color: var(--text-3);
  background: var(--bg); border-bottom: 1px solid var(--border);
}

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
.search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.88); z-index: 500;
  align-items: flex-start; justify-content: center;
  padding: 80px 16px 20px; backdrop-filter: blur(4px);
}
.search-overlay.open { display: flex; }
.search-overlay form {
  display: flex; width: 100%; max-width: 560px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.search-overlay input {
  flex: 1; padding: 15px 16px; font-size: 15px;
  border: none; font-family: var(--font); background: #fff; color: #111;
}
.search-overlay input:focus { outline: none; }
.search-overlay button[type=submit] {
  padding: 15px 20px; background: var(--red); color: #fff;
  border: none; font-weight: 800; font-size: 14px; font-family: var(--font);
}
.search-close {
  position: fixed; top: 20px; right: 20px;
  background: none; border: none; color: #fff; font-size: 28px; cursor: pointer;
}

/* =====================================================
   EMPTY / 404
   ===================================================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state .icon { font-size: 52px; margin-bottom: 14px; }
.empty-state h2 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.empty-state p  { margin-bottom: 20px; }

/* =====================================================
   DARK MODE
   ===================================================== */
body.dark {
  --bg:     #0f0f0f;
  --card:   #1a1a1a;
  --text:   #e0e0e0;
  --text-2: #aaa;
  --text-3: #777;
  --border: #2a2a2a;
  --black:  #f0f0f0;
}
body.dark .site-footer     { background: #050505; }
body.dark .footer-bottom   { background: #000; }
body.dark .bottom-nav      { background: #1a1a1a; border-top-color: #2a2a2a; }
body.dark .drawer          { background: #1a1a1a; }
body.dark .drawer-nav a    { border-bottom-color: #2a2a2a; color: #ddd; }
body.dark .cat-tabs        { background: #1a1a1a; border-bottom-color: #2a2a2a; }
body.dark .ticker-bar      { background: #1a1a1a; border-bottom-color: #2a2a2a; }

/* =====================================================
   RESPONSIVE — TABLET ≤960px
   ===================================================== */
@media (max-width: 960px) {
  .site-main { grid-template-columns: 1fr 260px; gap: 14px; }
}

/* =====================================================
   RESPONSIVE — COLLAPSE SIDEBAR ≤767px
   ===================================================== */
@media (max-width: 767px) {
  .site-main { grid-template-columns: 1fr; padding: 8px 10px 80px; gap: 10px; }
  .site-sidebar { display: none; }   /* sidebar hidden on mobile — use bottom nav */
  .bottom-nav { display: block; }
  .hdr-logo a { font-size: 19px; }

  /* Article list items */
  .art-thumb      { width: 96px; }
  .art-thumb img  { width: 96px !important; }
  .art-title      { font-size: 14px; -webkit-line-clamp: 3; }
  .art-text       { padding: 10px 10px 10px 12px; }
  .art-excerpt    { display: none; }  /* save space on mobile */

  /* Hero */
  .art-hero-title { font-size: 17px; }

  /* Single */
  .single-title   { font-size: 20px; }
  .single-content { font-size: 15px; }
  .related-grid   { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr 1fr; padding: 20px 0 16px; }
  .site-footer    { margin-bottom: 60px; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE ≤480px
   ===================================================== */
@media (max-width: 480px) {
  .art-thumb      { width: 80px; }
  .art-thumb img  { width: 80px !important; }
  .art-title      { font-size: 13.5px; }
  .art-hero-title { font-size: 16px; }
  .footer-grid    { grid-template-columns: 1fr; }
  .related-grid   { grid-template-columns: 1fr; }
  .share-btn      { padding: 6px 10px; font-size: 12px; }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-header,.cat-tabs,.ticker-bar,.bottom-nav,.drawer,
  .drawer-overlay,.search-overlay,.site-sidebar,
  .site-footer,#back-top,.share-bar { display: none !important; }
  .site-main { display: block; padding: 0; }
  body { background: #fff; color: #000; font-size: 13px; }
}
