:root {
  --bg: #f7f8fa;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #d32f2f;
  --border: #e5e7eb;
}
[data-theme="dark"] {
  --bg: #121212;
  --card-bg: #1e1e1e;
  --text: #f1f1f1;
  --muted: #9ca3af;
  --accent: #ef5350;
  --border: #2d2d2d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', 'Noto Sans Devanagari', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { font-size: 22px; font-weight: 800; color: var(--accent); text-decoration: none; }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--accent); }
#theme-toggle {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 12px; cursor: pointer; font-size: 16px;
}

.search-form { display: flex; align-items: center; gap: 4px; }
.search-form input {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 16px 0 0 16px;
  background: var(--bg); color: var(--text); font-size: 13px; width: 160px;
}
.search-form button {
  padding: 7px 12px; border: 1px solid var(--border); border-left: none; border-radius: 0 16px 16px 0;
  background: var(--bg); cursor: pointer;
}

.breaking-ticker {
  display: flex; align-items: center; background: var(--accent); color: #fff;
  overflow: hidden; white-space: nowrap;
}
.breaking-label {
  background: rgba(0,0,0,0.2); padding: 8px 16px; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content {
  display: inline-flex; gap: 40px; padding: 8px 20px;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-content a { color: #fff; text-decoration: none; font-size: 14px; }
.ticker-content a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.site-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.main-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 24px; }
@media (max-width: 800px) { .main-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; margin-bottom: 18px;
}
.news-card img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; }
.news-card h2 { margin: 10px 0 6px; font-size: 20px; }
.news-card h2 a { color: var(--text); text-decoration: none; }
.news-card h2 a:hover { color: var(--accent); }
.cat-tag {
  display: inline-block; background: var(--accent); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 12px; margin-bottom: 8px;
}
.meta { color: var(--muted); font-size: 13px; }

.article-full { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.article-full h1 { font-size: 28px; margin: 10px 0; }
.article-full .featured-img { width: 100%; border-radius: 8px; margin: 16px 0; }
.article-full p { line-height: 1.8; font-size: 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }
.article-body h2, .article-body h3 { margin-top: 20px; }
.article-body ul, .article-body ol { line-height: 1.8; }

.share-bar { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.share-bar a, .share-bar button {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 14px; text-decoration: none; color: var(--text); font-size: 13px; cursor: pointer;
}

.sidebar-column .widget {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; margin-bottom: 18px;
}
.sidebar-column .widget h3 { margin-top: 0; font-size: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.sidebar-column ul { list-style: none; padding: 0; margin: 0; }
.sidebar-column li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.sidebar-column a { color: var(--text); text-decoration: none; font-size: 14px; }
.sidebar-column a:hover { color: var(--accent); }

.ad-slot { text-align: center; margin: 16px 0; overflow: hidden; }

.pagination { display: flex; justify-content: space-between; margin-top: 16px; }
.pagination a { color: var(--accent); text-decoration: none; font-weight: 600; }

.site-footer { text-align: center; padding: 24px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 30px; }
