/*
Theme Name: Bhaskar News Pro
Theme URI: https://wordpress.org/themes/
Author: Sameer
Version: 1.0.0
Description: Clean, fast, modern Hindi/English news WordPress theme inspired by Dainik Bhaskar layout.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bhaskar-news-pro
*/

:root {
  --primary-red: #ed1c24;
  --dark-red: #c41219;
  --dark-text: #1a1a1a;
  --body-text: #333333;
  --muted-text: #777777;
  --border-color: #e5e5e5;
  --bg-light: #f5f6f8;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--body-text);
  line-height: 1.6;
}

.site-container {
  width: 94%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary-red);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary-red);
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.header-date {
  font-size: 13px;
  color: var(--muted-text);
  font-weight: 500;
}

/* Breaking Ticker */
.breaking-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.ticker-flex {
  display: flex;
  align-items: center;
}

.ticker-tag {
  background: var(--primary-red);
  color: #ffffff;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.ticker-text {
  padding: 6px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ticker-text a {
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 500;
}

.ticker-text a:hover {
  color: var(--primary-red);
}

/* Navbar */
.main-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 99;
}

.main-navbar ul {
  display: flex;
  list-style: none;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
}

.main-navbar a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s;
}

.main-navbar a:hover {
  color: var(--primary-red);
}

/* Layout */
.layout-wrapper {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  margin: 24px auto;
}

/* Hero / Lead Article */
.lead-news-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.lead-news-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.lead-content {
  padding: 20px;
}

.lead-content h1, .lead-content h2 {
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.lead-content h1 a, .lead-content h2 a {
  color: var(--dark-text);
  text-decoration: none;
}

.lead-content h1 a:hover, .lead-content h2 a:hover {
  color: var(--primary-red);
}

.meta-time {
  font-size: 13px;
  color: var(--muted-text);
  display: block;
  margin-bottom: 8px;
}

/* News List Grid */
.news-grid-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 4px;
  display: flex;
  gap: 12px;
}

.grid-card img {
  width: 110px;
  height: 85px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.grid-card h3 {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.grid-card h3 a {
  color: var(--dark-text);
  text-decoration: none;
}

.grid-card h3 a:hover {
  color: var(--primary-red);
}

/* Sidebar */
.sidebar-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  border-left: 4px solid var(--primary-red);
  padding-left: 10px;
  margin-bottom: 14px;
  color: var(--dark-text);
  text-transform: uppercase;
}

.sidebar-post {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-post:last-child {
  border-bottom: none;
}

.sidebar-post h4 {
  font-size: 14px;
  line-height: 1.3;
}

.sidebar-post h4 a {
  color: var(--dark-text);
  text-decoration: none;
}

.sidebar-post h4 a:hover {
  color: var(--primary-red);
}

/* Single Post Page */
.single-article-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 4px;
}

.single-article-content h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.single-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 4px;
  margin: 16px 0;
}

.article-body-text {
  font-size: 17px;
  line-height: 1.8;
  color: #222;
}

.article-body-text p {
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 24px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
  }
  .news-grid-list {
    grid-template-columns: 1fr;
  }
  .lead-news-card img {
    height: 250px;
  }
}
