/*
Theme Name: DalalReport
Theme URI: https://dalalreport.com
Author: DalalReport
Author URI: https://dalalreport.com
Description: A professional financial news WordPress theme built for stock market news, Q4 results, IPO updates, Nifty 50, Bank Nifty coverage, and market analysis. Optimised for AdSense monetisation with pre-built ad zones. Inspired by NDTV Profit and top Indian financial news portals.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dalalreport
Tags: news, magazine, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, right-sidebar, sticky-post, threaded-comments, translation-ready, blog
*/

/* ===========================
   CSS VARIABLES & RESET
=========================== */
:root {
  --red:       #D0021B;
  --red-dark:  #A80016;
  --black:     #0F0F0F;
  --dark:      #1A1A1A;
  --dark2:     #242424;
  --gray1:     #2E2E2E;
  --gray2:     #4A4A4A;
  --gray3:     #888;
  --gray4:     #C4C4C4;
  --gray5:     #E8E8E8;
  --white:     #FFFFFF;
  --bg:        #F4F4F4;
  --card-bg:   #FFFFFF;
  --border:    #E2E2E2;
  --text:      #1A1A1A;
  --text-muted:#6B6B6B;
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --radius:    4px;
  --shadow:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 12px rgba(0,0,0,0.12);
}

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

/* ===========================
   TOP BAR
=========================== */
.top-bar {
  background: var(--black);
  color: var(--gray4);
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 1px solid var(--gray1);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar-date { color: var(--gray3); }
.top-bar-links { display: flex; gap: 14px; }
.top-bar-links a {
  color: var(--gray4);
  font-size: 11px;
  transition: color .2s;
}
.top-bar-links a:hover { color: var(--white); }

/* ===========================
   TICKER BAR
=========================== */
.ticker-bar {
  background: var(--dark);
  border-bottom: 2px solid var(--red);
  padding: 7px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.ticker-label {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  margin-right: 16px;
  flex-shrink: 0;
}
.ticker-scroll {
  display: flex;
  gap: 28px;
  animation: ticker-move 40s linear infinite;
  white-space: nowrap;
}
.ticker-scroll:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px;
  color: var(--gray4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-name { font-weight: 600; color: var(--white); }
.ticker-up { color: #22C55E; }
.ticker-down { color: #EF4444; }
@keyframes ticker-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   SITE HEADER
=========================== */
.site-header {
  background: var(--dark);
  padding: 14px 0;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-main span { color: var(--red); }
.logo-sub {
  font-size: 10px;
  color: var(--gray3);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 2px;
}
.header-ad-zone {
  background: var(--gray1);
  border: 1px dashed var(--gray2);
  min-width: 300px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gray3);
  border-radius: var(--radius);
  text-align: center;
}
.header-search form {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-search input {
  background: var(--gray1);
  border: 1px solid var(--gray2);
  color: var(--white);
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius) 0 0 var(--radius);
  width: 200px;
  outline: none;
}
.header-search input::placeholder { color: var(--gray3); }
.header-search button {
  background: var(--red);
  color: var(--white);
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background .2s;
}
.header-search button:hover { background: var(--red-dark); }

/* ===========================
   MAIN NAVIGATION
=========================== */
.main-nav {
  background: var(--dark2);
  border-bottom: 1px solid var(--gray1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.main-nav ul {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  color: var(--gray4);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: all .2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a {
  color: var(--white);
  border-bottom-color: var(--red);
}
.main-nav ul li:first-child a { padding-left: 0; }

/* Dropdown */
.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  border: 1px solid var(--gray1);
  border-top: 2px solid var(--red);
  min-width: 200px;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  z-index: 200;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray1);
  font-size: 12px;
  border-left: 3px solid transparent;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
.main-nav ul li ul li a:hover {
  border-left-color: var(--red);
  border-bottom-color: transparent;
  padding-left: 20px;
  color: var(--white);
}
.main-nav ul li ul li:last-child a { border-bottom: none; }

/* ===========================
   LEADERBOARD AD ZONE
=========================== */
.ad-leaderboard {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.ad-leaderboard-inner {
  display: flex;
  justify-content: center;
}
.ad-slot {
  background: var(--gray5);
  border: 1px dashed var(--gray4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gray3);
  border-radius: var(--radius);
  text-align: center;
  padding: 4px;
}
.ad-slot-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
  color: var(--gray4);
  margin-bottom: 2px;
}
.ad-leaderboard .ad-slot { min-width: 728px; min-height: 90px; max-width: 100%; }

/* ===========================
   BREAKING NEWS BAR
=========================== */
.breaking-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.breaking-label {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  margin-right: 0;
  flex-shrink: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.breaking-divider {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 10px solid var(--red);
  margin-right: 14px;
  flex-shrink: 0;
}
.breaking-scroll {
  overflow: hidden;
  flex: 1;
}
.breaking-scroll ul {
  display: flex;
  gap: 32px;
  animation: ticker-move 30s linear infinite;
  white-space: nowrap;
}
.breaking-scroll ul li a {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.breaking-scroll ul li a:hover { color: var(--red); }

/* ===========================
   CONTAINER
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-main-wrapper {
  padding: 20px 0 30px;
}
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ===========================
   SECTION HEADING
=========================== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.section-heading h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.section-heading .accent-bar {
  width: 4px;
  height: 20px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-heading a.see-all {
  margin-left: auto;
  font-size: 11px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-heading a.see-all:hover { color: var(--red-dark); }

/* ===========================
   HERO / TOP STORIES
=========================== */
.hero-section { margin-bottom: 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  background: var(--gray5);
}
.hero-main { grid-row: 1 / 3; position: relative; overflow: hidden; }
.hero-main img, .hero-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hero-main:hover img, .hero-side:hover img { transform: scale(1.03); }
.hero-main { height: 380px; }
.hero-side { height: 188px; position: relative; overflow: hidden; }
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
  padding: 20px 16px 14px;
}
.hero-cat-tag {
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: inline-block;
  margin-bottom: 6px;
  border-radius: 2px;
}
.hero-main .hero-overlay h2 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--white);
  line-height: 1.3;
  font-weight: 700;
}
.hero-main .hero-overlay h2 a:hover { color: var(--gray4); }
.hero-side .hero-overlay h3 {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--white);
  line-height: 1.35;
  font-weight: 700;
}
.hero-side .hero-overlay h3 a:hover { color: var(--gray4); }
.hero-meta {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

/* Placeholder image for hero when no featured image */
.img-placeholder {
  background: linear-gradient(135deg, var(--gray1) 0%, var(--dark2) 100%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray3);
}

/* ===========================
   ARTICLE CARDS
=========================== */
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-thumb {
  position: relative;
  overflow: hidden;
  height: 160px;
  flex-shrink: 0;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.article-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .img-placeholder { height: 160px; }
.card-cat {
  position: absolute;
  bottom: 8px; left: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 2px;
}
.card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}
.card-title a:hover { color: var(--red); }
.card-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: var(--gray3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--gray5);
}
.card-meta .meta-cat { color: var(--red); font-weight: 600; }

/* Grid layouts */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ===========================
   LIST-STYLE ARTICLE CARD
=========================== */
.article-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray5);
}
.article-list-item:last-child { border-bottom: none; }
.list-thumb {
  width: 90px;
  height: 68px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.list-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-list-item:hover .list-thumb img { transform: scale(1.06); }
.list-thumb .img-placeholder { height: 68px; font-size: 10px; }
.list-body { flex: 1; min-width: 0; }
.list-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 3px;
}
.list-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-title a:hover { color: var(--red); }
.list-meta {
  font-size: 10px;
  color: var(--gray3);
  margin-top: 4px;
}

/* ===========================
   CATEGORY SECTION BLOCKS
=========================== */
.cat-section { margin-bottom: 28px; }
.cat-section-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar { position: sticky; top: 56px; }
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-title {
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.widget-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--red);
  border-radius: 2px;
  display: block;
}
.widget-body { padding: 12px 14px; }

/* Sidebar ad zones */
.sidebar-ad-300x600 .ad-slot { min-height: 600px; min-width: 300px; }
.sidebar-ad-300x250 .ad-slot { min-height: 250px; min-width: 300px; }

/* ===========================
   SINGLE POST
=========================== */
.single-post-header { margin-bottom: 20px; }
.post-category-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 2px;
  margin-bottom: 10px;
}
.post-title {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 14px;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.post-meta-bar strong { color: var(--dark); }
.post-meta-bar .meta-sep { color: var(--gray4); }
.post-featured-image {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-featured-image img { width: 100%; border-radius: var(--radius); }
.post-featured-image figcaption {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 0;
  text-align: center;
  font-style: italic;
}
.post-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.post-content h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray5);
}
.post-content h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--dark);
}
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol {
  margin: 0 0 16px 22px;
  list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  margin: 20px 0;
  background: #FFF5F5;
  font-style: italic;
  color: var(--gray2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content strong { font-weight: 700; }
.post-content a { color: var(--red); text-decoration: underline; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.post-content table th {
  background: var(--dark);
  color: var(--white);
  padding: 8px 12px;
  text-align: left;
  font-size: 12px;
}
.post-content table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.post-content table tr:nth-child(even) td { background: var(--gray5); }

/* In-content ad */
.in-content-ad {
  background: var(--gray5);
  border: 1px dashed var(--gray4);
  padding: 4px;
  border-radius: var(--radius);
  text-align: center;
  margin: 24px 0;
}
.in-content-ad .ad-slot { min-height: 250px; margin: 0 auto; max-width: 336px; }

/* Post tags */
.post-tags {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.post-tags .tags-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  margin-right: 4px;
}
.post-tags a {
  background: var(--gray5);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  transition: all .2s;
}
.post-tags a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Share bar */
.share-bar {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .2s;
  color: var(--white);
  text-decoration: none;
}
.share-btn:hover { opacity: .85; color: var(--white); }
.share-btn.whatsapp { background: #25D366; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.copy { background: var(--gray2); }

/* Related posts */
.related-posts { margin: 28px 0; }
.related-posts .section-heading { margin-bottom: 14px; }

/* ===========================
   CATEGORY PAGE
=========================== */
.archive-header {
  background: var(--dark);
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--red);
}
.archive-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}
.archive-desc {
  font-size: 13px;
  color: var(--gray3);
  margin-top: 4px;
}
.archive-count {
  font-size: 12px;
  color: var(--gray3);
  margin-top: 2px;
}

/* ===========================
   PAGINATION
=========================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  transition: all .2s;
}
.pagination a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.pagination .current { background: var(--red); border-color: var(--red); color: var(--white); }

/* ===========================
   WIDGETS
=========================== */
/* Popular posts widget */
.popular-posts-list { padding: 0; }
.popular-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray5);
}
.popular-item:last-child { border-bottom: none; }
.popular-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--gray5);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  font-family: var(--font-head);
}
.popular-item:nth-child(1) .popular-num,
.popular-item:nth-child(2) .popular-num,
.popular-item:nth-child(3) .popular-num { color: var(--red); }
.popular-info .p-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
}
.popular-info .p-title a:hover { color: var(--red); }
.popular-info .p-meta { font-size: 10px; color: var(--gray3); margin-top: 3px; }

/* Category widget */
.cat-widget-list li {
  border-bottom: 1px solid var(--gray5);
}
.cat-widget-list li:last-child { border-bottom: none; }
.cat-widget-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--text);
  transition: all .2s;
}
.cat-widget-list li a:hover { color: var(--red); padding-left: 4px; }
.cat-widget-list .cat-count {
  background: var(--gray5);
  color: var(--gray3);
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 10px;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--dark);
  color: var(--gray4);
  margin-top: 40px;
  border-top: 3px solid var(--red);
}
.footer-top { padding: 32px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-about .footer-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-about .footer-logo span { color: var(--red); }
.footer-about p {
  font-size: 13px;
  color: var(--gray3);
  line-height: 1.65;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray1);
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 12px;
  color: var(--gray3);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-col ul li a::before {
  content: '›';
  color: var(--red);
  font-size: 14px;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  background: var(--black);
  padding: 12px 0;
  border-top: 1px solid var(--gray1);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  color: var(--gray3);
  font-size: 11px;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--white); }

/* ===========================
   MOBILE MENU TOGGLE
=========================== */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray2);
  color: var(--white);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
}

/* ===========================
   UTILITIES
=========================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .content-sidebar-wrap { grid-template-columns: 1fr 260px; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-main { grid-row: auto; height: 240px; }
  .hero-side { height: 160px; }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-ad-zone { display: none; }
  .post-title { font-size: 22px; }
  .header-search input { width: 140px; }
  .main-nav ul { display: none; flex-direction: column; width: 100%; }
  .main-nav ul.active { display: flex; }
  .main-nav ul li ul { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .main-nav ul li:hover > ul { display: flex; }
  .menu-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; padding: 4px 0; }
  .ad-leaderboard .ad-slot { min-width: 100%; }
}

@media (max-width: 480px) {
  .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .hero-main { height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar-links { display: none; }
  .logo-main { font-size: 22px; }
  .breaking-bar { display: none; }
}

/* ===========================
   LEGAL PAGES
=========================== */
.legal-page h2 { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.legal-page h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--dark); }
.legal-page p { font-size: 14px; line-height: 1.75; color: var(--text); margin-bottom: 14px; }
.legal-page ul { margin: 0 0 16px 20px; list-style: disc; }
.legal-page ul li { font-size: 14px; line-height: 1.65; color: var(--text); margin-bottom: 6px; }
.legal-page a { color: var(--red); }
.legal-page a:hover { text-decoration: underline; }
.page-header { background: var(--dark); padding: 20px 0; margin-bottom: 28px; border-bottom: 3px solid var(--red); }
.page-header h1 { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--white); }
.breadcrumbs { background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 12px; color: var(--text-muted); }
.breadcrumbs a { color: var(--red); }
.breadcrumbs .bc-sep { margin: 0 6px; color: var(--gray4); }

/* ===========================
   TICKER SCROLL FIX
=========================== */
.ticker-bar { background: var(--dark); border-bottom: 2px solid var(--red); padding: 7px 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 0; overflow: hidden; }
.ticker-label { background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 10px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; margin-right: 16px; flex-shrink: 0; border-radius: 2px; }
.ticker-scroll-wrap { overflow: hidden; flex: 1; }
.ticker-scroll { display: inline-flex; gap: 0; animation: dr-ticker 35s linear infinite; white-space: nowrap; }
.ticker-scroll:hover { animation-play-state: paused; }
.ticker-item { font-size: 12px; color: var(--gray4); display: inline-flex; align-items: center; gap: 5px; padding-right: 28px; }
.ticker-name { font-weight: 600; color: var(--white); }
.ticker-up { color: #22C55E; }
.ticker-down { color: #EF4444; }
@keyframes dr-ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.tv-ticker-wrap { background: var(--dark); }

/* ===========================
   TV TICKER OUTER WRAPPER
=========================== */
.tv-ticker-outer {
  background: #1A1A1A;
  width: 100%;
  display: block;
  border-bottom: 2px solid var(--red);
}
.tv-ticker-outer tv-ticker-tape {
  display: block;
  width: 100%;
}

/* ===========================
   IMAGE PLACEHOLDER — IMPROVED
   Shows category-coloured gradient instead of 2 letters
=========================== */
.img-placeholder {
  background: linear-gradient(135deg, #1e2329 0%, #2d3748 50%, #1a202c 100%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '📈';
  font-size: 32px;
  opacity: 0.25;
}
.img-placeholder span {
  display: none !important;
}
.card-thumb .img-placeholder { height: 160px; }
.hero-main .img-placeholder { height: 380px; }
.hero-main .img-placeholder::before { font-size: 56px; }
.hero-side .img-placeholder { height: 188px; }
.hero-side .img-placeholder::before { font-size: 40px; }
.list-thumb .img-placeholder { height: 68px; }
.list-thumb .img-placeholder::before { font-size: 20px; }

/* ===========================
   HIDE AD SLOTS WHEN EMPTY
   (shows nothing until AdSense code is pasted)
=========================== */
.ad-zone .ad-slot {
  display: none !important;
}

/* ===========================
   TV TICKER — CORRECT POSITION & STYLE
=========================== */
.tv-ticker-outer {
  background: #131722;
  width: 100%;
  display: block;
  border-bottom: 1px solid #2a2e39;
}
.tv-ticker-outer .tradingview-widget-container {
  height: 46px;
  overflow: hidden;
}

/* ===========================
   IMAGE PLACEHOLDERS — EDITORIAL STYLE
   Looks like real news site placeholder
=========================== */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1f2e;
  position: relative;
}
.img-placeholder span { display: none !important; }
.img-placeholder::after { display: none !important; }
.img-placeholder::before { display: none !important; }

/* Use inline SVG background for each placeholder via data URI */
.card-thumb .img-placeholder,
.hero-main .img-placeholder,
.hero-side .img-placeholder,
.list-thumb .img-placeholder {
  background-color: #1a1f2e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect fill='%231a1f2e' width='100%25' height='100%25'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='sans-serif' font-size='11' fill='%23ffffff22' letter-spacing='2'%3EMARKETS%3C/text%3E%3Cpolyline points='10,60 30,45 50,55 70,30 90,40 110,25 130,35 150,20 170,30 190,15' fill='none' stroke='%23D0021B33' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

