/* ============================================================
   Hindu Tamil News Portal - Theme
   ============================================================ */
:root{
  --brand:#c8102e;        /* Hindu red */
  --brand-dark:#9c0c23;
  --ink:#1a1a1a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#f4f5f7;
}
*{box-sizing:border-box}
body{
  font-family:'Noto Sans Tamil',system-ui,Arial,sans-serif;
  color:var(--ink);background:var(--bg);margin:0;line-height:1.6;
}
a{text-decoration:none;color:inherit}
img{max-width:100%}

/* ---------- Topbar ---------- */
.topbar{background:#111;color:#cbd5e1;font-size:.8rem;padding:.35rem 0}
.topbar a{color:#cbd5e1;margin-left:.85rem}
.topbar a:hover{color:#fff}
.topbar .btn-subscribe{background:var(--brand);color:#fff;padding:.15rem .6rem;border-radius:3px}
.weather-widget{margin-right:.4rem}

/* ---------- Masthead ---------- */
.masthead{background:#fff;border-bottom:3px solid var(--brand);padding:.9rem 0}
.logo{display:flex;align-items:center;gap:.5rem}
.logo-mark{background:var(--brand);color:#fff;font-weight:700;font-size:1.6rem;
  width:46px;height:46px;display:grid;place-items:center;border-radius:6px}
.logo-text{font-size:1.7rem;font-weight:700;color:var(--brand)}
.search-bar{display:flex;border:1px solid var(--line);border-radius:24px;overflow:hidden;max-width:340px;width:100%}
.search-bar input{border:0;padding:.5rem .9rem;flex:1;outline:0;font-family:inherit}
.search-bar button{border:0;background:var(--brand);color:#fff;padding:0 1rem}

/* ---------- Breaking ticker ---------- */
.breaking-ticker{background:#fff;border-bottom:1px solid var(--line);padding:.4rem 0}
.breaking-ticker .container{gap:.75rem}
.breaking-label{background:var(--brand);color:#fff;font-weight:700;padding:.2rem .7rem;border-radius:3px;white-space:nowrap;font-size:.85rem}
.ticker-viewport{overflow:hidden;flex:1}
.ticker-track{display:inline-flex;white-space:nowrap;gap:.5rem;animation:ticker 40s linear infinite}
.ticker-track a{font-size:.9rem;color:var(--ink)}
.ticker-track a:hover{color:var(--brand)}
.ticker-track .sep{color:var(--brand)}
.breaking-ticker:hover .ticker-track{animation-play-state:paused}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- Main nav ---------- */
.main-nav{background:var(--brand);padding:0}
.main-nav .navbar-nav{flex-wrap:wrap}
.main-nav .nav-link{color:#fff !important;font-weight:500;padding:.6rem .85rem !important;font-size:.95rem;position:relative}
.main-nav .nav-link:hover{background:var(--brand-dark)}
.navbar-toggler{margin:.4rem 0;border-color:rgba(255,255,255,.5)}

/* ---------- Section headings ---------- */
.section-head{position:relative;border-bottom:2px solid var(--line);padding-bottom:.5rem;margin:1.25rem 0 1rem;
  font-size:1.25rem;font-weight:700;display:flex;justify-content:space-between;align-items:center}
.section-head::before{content:"";position:absolute;bottom:-2px;left:0;width:80px;height:2px;background:var(--brand)}
.section-head a{color:inherit}
.more-link{font-size:.8rem;color:var(--brand);font-weight:500}

/* ---------- Hero slider ---------- */
.hero-slider .hero-img{height:420px;background-size:cover;background-position:center}
.hero-caption{position:absolute;left:0;right:0;bottom:0;padding:1.5rem;
  background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff}
.hero-caption h2{font-size:1.6rem;font-weight:700;margin:0}
@media(max-width:768px){.hero-slider .hero-img{height:260px}.hero-caption h2{font-size:1.15rem}}

/* ---------- News cards ---------- */
.news-card{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;height:100%;
  display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.news-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.1);transform:translateY(-2px)}
.card-thumb{display:block;height:170px;background-size:cover;background-position:center;background-color:#ddd}
.news-card .card-body{padding:.8rem}
.news-card h5{font-size:1rem;font-weight:600;margin:.25rem 0 .5rem;line-height:1.4}
.news-card h5 a:hover{color:var(--brand)}
.lead-card .card-thumb{height:300px}
.lead-card h5{font-size:1.3rem}
.cat-tag{display:inline-block;font-size:.72rem;color:var(--brand);font-weight:600;text-transform:uppercase;margin-bottom:.25rem}
.meta{font-size:.78rem;color:var(--muted)}

/* ---------- Sidebar ---------- */
.sidebar-box{background:#fff;border:1px solid var(--line);border-radius:8px;padding:1rem;margin-bottom:1.25rem}
.sidebar-head{font-size:1.05rem;font-weight:700;border-left:4px solid var(--brand);padding-left:.6rem;margin-bottom:.85rem}
.trending-list{list-style:none;counter-reset:t;padding:0;margin:0}
.trending-list li{counter-increment:t;display:flex;gap:.6rem;padding:.5rem 0;border-bottom:1px dashed var(--line);font-size:.92rem}
.trending-list li::before{content:counter(t);background:var(--brand);color:#fff;width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;font-weight:700;font-size:.8rem;flex:0 0 24px}
.trending-list a:hover{color:var(--brand)}
.related-item{display:flex;gap:.6rem;align-items:center;padding:.5rem 0;border-bottom:1px dashed var(--line);font-size:.9rem}
.related-thumb{width:64px;height:48px;flex:0 0 64px;background-size:cover;background-position:center;border-radius:4px;background-color:#ddd}
.epaper-promo{display:flex;flex-direction:column;align-items:center;gap:.4rem;background:var(--bg);padding:1.5rem;border-radius:8px;color:var(--brand)}
.epaper-promo i{font-size:2.5rem}

/* ---------- Article page ---------- */
.crumbs{font-size:.82rem;color:var(--muted);margin-bottom:.6rem}
.crumbs a:hover{color:var(--brand)}
.article-title{font-size:2rem;font-weight:700;line-height:1.3;margin-bottom:.6rem}
.article-summary{font-size:1.15rem;color:#374151;font-weight:500}
.article-meta{display:flex;flex-wrap:wrap;gap:1rem;font-size:.85rem;color:var(--muted);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.6rem 0;margin:.8rem 0}
.article-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-wrap:wrap;gap:.5rem}
.font-resize button{border:1px solid var(--line);background:#fff;width:36px;height:32px;border-radius:4px;cursor:pointer}
.share-buttons{display:flex;gap:.4rem}
.share-buttons .sh{width:36px;height:36px;border:0;border-radius:50%;color:#fff;display:grid;place-items:center;cursor:pointer}
.sh.wa{background:#25d366}.sh.fb{background:#1877f2}.sh.tw{background:#000}.sh.tg{background:#0088cc}.sh.pr{background:#555}
.article-hero{margin:1rem 0}
.article-body{font-size:1.08rem;line-height:1.9;color:#1f2937}
.article-body p{margin-bottom:1.1rem}
.article-body img{border-radius:8px;margin:1rem 0}
.paywall{background:#fff7f8;border:1px solid #f3c7cf;border-radius:8px;padding:2rem;text-align:center;margin:1.5rem 0}
.tag-list{margin:1.25rem 0}
.tag{display:inline-block;background:#fff;border:1px solid var(--line);padding:.25rem .7rem;border-radius:20px;font-size:.82rem;margin:.2rem}
.tag:hover{background:var(--brand);color:#fff;border-color:var(--brand)}
.author-box{display:flex;gap:1rem;align-items:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:1rem;margin:1.5rem 0}
.author-avatar i{font-size:2.5rem;color:var(--brand)}

/* ---------- Comments ---------- */
.comment{background:#fff;border:1px solid var(--line);border-radius:6px;padding:.75rem 1rem;margin-bottom:.6rem}
.comment-form textarea,.comment-form input{font-family:inherit}

/* ---------- Category / search ---------- */
.category-banner{background:var(--brand);color:#fff;padding:1.5rem;border-radius:8px;margin-bottom:1.25rem}
.category-banner h1{margin:0;font-size:1.8rem}
.search-item{display:flex;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:8px;padding:.85rem;margin-bottom:.85rem}
.search-thumb{width:150px;height:100px;flex:0 0 150px;background-size:cover;background-position:center;border-radius:6px;background-color:#ddd}
@media(max-width:576px){.search-thumb{width:90px;height:70px;flex:0 0 90px}}

/* ---------- Footer ---------- */
.site-footer{background:#1a1a1a;color:#cbd5e1;padding:2.5rem 0 1.25rem;margin-top:2rem}
.site-footer h6{color:#fff;margin-bottom:.85rem}
.footer-logo{color:var(--brand);font-weight:700}
.footer-links{list-style:none;padding:0;margin:0}
.footer-links li{padding:.25rem 0}
.footer-links a:hover{color:#fff}
.social-links a{display:inline-grid;place-items:center;width:38px;height:38px;background:#333;border-radius:50%;margin-right:.4rem;color:#fff}
.social-links a:hover{background:var(--brand)}

/* ---------- Misc ---------- */
.ad-slot{background:#eceef1;border:1px dashed #c3c8d0;border-radius:6px;min-height:60px;display:grid;place-items:center;color:#9aa1ab;font-size:.8rem}
.to-top{position:fixed;right:18px;bottom:18px;width:44px;height:44px;border:0;border-radius:50%;background:var(--brand);color:#fff;display:none;place-items:center;cursor:pointer;z-index:1000}
.to-top.show{display:grid}
.static-page .page-body{background:#fff;border:1px solid var(--line);border-radius:8px;padding:1.5rem;font-size:1.05rem;line-height:1.9}

/* ============================================================
   E-STORE
   ============================================================ */
.cart-badge{background:#fff;color:var(--brand);border-radius:10px;padding:0 .4rem;font-size:.7rem;font-weight:700}
.nav-store{background:#ffd54a;color:#7a1018 !important;font-weight:700;border-radius:4px}
.nav-store:hover{background:#ffca28 !important;color:#7a1018 !important}

.store-hero{background:linear-gradient(135deg,var(--brand),#7a1018);color:#fff;border-radius:12px;padding:1.6rem 1.5rem;margin-bottom:1.25rem}
.store-hero h1{font-size:1.7rem;font-weight:700;margin:0}
.store-hero h1 span{font-size:1rem;opacity:.8;font-weight:400}
.store-hero p{margin:.25rem 0 0;opacity:.9}

.store-cats{list-style:none;padding:0;margin:0}
.store-cats li a{display:block;padding:.5rem .25rem;border-bottom:1px dashed var(--line)}
.store-cats li a.active,.store-cats li a:hover{color:var(--brand);font-weight:600}

.product-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;height:100%;
  display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.12)}
.product-cover{display:block;position:relative;aspect-ratio:3/4;background-size:cover;background-position:center;background-color:#eceef1}
.off-badge{position:absolute;top:8px;left:8px;background:#16a34a;color:#fff;font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:4px}
.product-body{padding:.7rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.product-body h6{font-size:.92rem;font-weight:600;margin:0;line-height:1.35}
.product-body h6 a:hover{color:var(--brand)}
.product-body .author{font-size:.78rem;color:var(--muted);margin:0}
.price-row{display:flex;align-items:baseline;gap:.4rem;margin-top:auto}
.price{color:var(--brand);font-weight:700}
.mrp{color:var(--muted);text-decoration:line-through;font-size:.85rem}

.product-cover-lg{aspect-ratio:3/4;background-size:cover;background-position:center;border-radius:12px;position:relative;background-color:#eceef1;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.product-detail .article-title{font-size:1.6rem}

.cart-thumb{width:48px;height:60px;flex:0 0 48px;background-size:cover;background-position:center;border-radius:4px;background-color:#ddd;display:inline-block}
.cart-table td{vertical-align:middle}
.order-result h2{font-weight:700}

@media print{
  .topbar,.masthead .search-bar,.breaking-ticker,.main-nav,.article-tools,
  .site-footer,aside,.comments,.author-box,.ad-slot,.to-top{display:none !important}
}
