/*
Theme Name: Bharat News Pro (Customizer & Elementor Edition)
Theme URI: https://example.com/bharat-news-pro
Author: Secure WP Architect
Author URI: https://example.com
Description: Aaj Tak, ABP News aur top news channels jaisa high-traffic WordPress News Portal theme. Features responsive logo controls (Desktop, Tablet, Mobile) in WordPress Customizer, 728x90 Header Banner Slot, Auto-Injected In-Article Ad slots, universal sidebar Carousel widget (trending/breaking), modern horizontal row-grid layout (Left Photo + Right Title/Summary), aur 100% Elementor News Canvas integration.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bharat-news-pro
Tags: news, magazine, elementor, responsive, custom-logo, customizer-options
*/

:root {
  --primary-red: #e11d48;
  --dark-red: #be123c;
  --header-bg: #0b0f19;
  --body-bg: #f8fafc;
  --surface-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --logo-desktop: 280px;
  --logo-tablet: 220px;
  --logo-mobile: 170px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-red); }
img { max-width: 100%; height: auto; display: block; }

.news-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* TOP BAR */
.top-bar {
  background: #020617;
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}
.top-bar .news-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ef4444;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}
.live-indicator span.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* RESPONSIVE HEADER WITH LOGO SIZING & BANNER */
.main-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding {
  flex-shrink: 0;
}
.site-branding .custom-logo-link img {
  width: var(--logo-desktop);
  height: auto;
  max-width: 100%;
  display: block;
}
.site-branding .site-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-branding .site-title span.badge {
  background: var(--primary-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 18px;
}
.site-tagline { font-size: 12px; color: var(--text-muted); }

.header-banner-area {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}
.header-ad-banner {
  width: 728px;
  max-width: 100%;
  height: 90px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.header-ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NAVIGATION */
.main-navigation {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 999;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.main-navigation ul li a {
  display: block;
  color: #f8fafc;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  transition: all 0.2s ease;
}
.main-navigation ul li.current-menu-item a,
.main-navigation ul li a:hover {
  background: var(--primary-red);
  color: #ffffff;
}

/* BREAKING NEWS TICKER */
.breaking-ticker-wrap {
  background: #ffffff;
  margin: 14px auto;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-badge {
  background: var(--primary-red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  white-space: nowrap;
}
.ticker-content {
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}

/* MAIN LAYOUT (LEFT FEED + RIGHT SIDEBAR) */
.news-layout-row {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 26px;
  margin: 20px auto 40px;
}

/* SECTION HEADING */
.block-heading {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.block-heading h2, .block-heading h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 50px;
  background: var(--primary-red);
}

/* MODERN NEWS LIST ROW: LEFT IMAGE + RIGHT TITLE & PARAGRAPH (AAJ TAK / PORTAL STYLE) */
.news-row-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-row-item {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  gap: 18px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-row-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}
.news-row-thumb {
  width: 240px;
  height: 155px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.news-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-row-item:hover .news-row-thumb img {
  transform: scale(1.05);
}
.news-row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-row-content .cat-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.news-row-content h3 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 8px;
}
.news-row-content p.summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row-content .meta-info {
  font-size: 12px;
  color: #94a3b8;
}

/* SIDEBAR & UNIVERSAL CAROUSEL WIDGET */
.news-sidebar .widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

/* SIDEBAR NEWS CAROUSEL (SWIPER/SLIDER FEEL) */
.sidebar-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.sidebar-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 240px;
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  color: #fff;
}
.carousel-slide-overlay .badge-car {
  background: var(--primary-red);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
}
.carousel-slide-overlay h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.carousel-btn {
  background: #0f172a;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.carousel-btn:hover { background: var(--primary-red); }

/* SIDEBAR RANKED TRENDING */
.trending-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}
.trending-item:last-child { border-bottom: none; }
.trending-rank {
  font-size: 22px;
  font-weight: 900;
  color: #cbd5e1;
  min-width: 26px;
  line-height: 1;
}
.trending-item:nth-child(-n+3) .trending-rank { color: var(--primary-red); }
.trending-content h4 { font-size: 14px; font-weight: 650; line-height: 1.35; }
.trending-content span.date { font-size: 11px; color: var(--text-muted); }

/* SIDEBAR AD BANNER */
.sidebar-ad-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

/* IN-ARTICLE AD BANNER (INSIDE POST CONTENT) */
.in-article-ad-box {
  margin: 26px 0;
  padding: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  text-align: center;
}
.in-article-ad-box span.ad-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* FOOTER */
.site-footer {
  background: #0b0f19;
  color: #94a3b8;
  padding: 40px 0 20px;
  border-top: 4px solid var(--primary-red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; text-align: center; font-size: 13px; }

/* TABLET RESPONSIVE */
@media (max-width: 992px) {
  .site-branding .custom-logo-link img {
    width: var(--logo-tablet);
  }
  .news-layout-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* MOBILE RESPONSIVE (BANNER UNDER LOGO) */
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .site-branding .custom-logo-link img {
    width: var(--logo-mobile);
    margin: 0 auto;
  }
  .header-banner-area {
    width: 100%;
    justify-content: center;
  }
  .header-ad-banner {
    width: 100%;
    height: auto;
    min-height: 60px;
  }
  .news-row-item {
    flex-direction: column;
  }
  .news-row-thumb {
    width: 100%;
    height: 180px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
