/*
Theme Name: Rojvarta News
Theme URI: https://rojvarta.com
Author: Rojvarta Team
Description: Professional Hindi News Theme - Jagran Style with full Customizer support
Version: 2.0
Text Domain: rojvarta
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans Devanagari', Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 15px 0; }

/* Breaking News */
.breaking-bar { background: var(--rojvarta-primary, #c0392b); padding: 7px 0; }
.breaking-inner { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.breaking-label {
  background: #fff;
  color: var(--rojvarta-primary, #c0392b);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-inner { display: flex; gap: 50px; animation: ticker 35s linear infinite; white-space: nowrap; }
.ticker-inner a { color: #fff; font-size: 13px; }
.ticker-inner a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--rojvarta-primary, #c0392b); padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-logo img { height: 60px; width: auto; }
.logo-text .logo-main {
  font-size: 36px;
  font-weight: 900;
  color: var(--rojvarta-primary, #c0392b);
  line-height: 1;
  letter-spacing: -1px;
}
.logo-text .logo-tagline { font-size: 11px; color: #777; letter-spacing: 2px; text-transform: uppercase; }
.header-right { text-align: right; }
.header-date { font-size: 12px; color: #666; }
.header-date strong { color: var(--rojvarta-primary, #c0392b); display: block; font-size: 13px; }

/* Navigation */
.main-nav { background: #1a1a1a; }
.main-nav .nav-menu { display: flex; flex-wrap: wrap; }
.main-nav .nav-menu li a {
  display: block;
  color: #ddd;
  font-size: 13px;
  padding: 10px 16px;
  border-right: 1px solid #333;
  transition: background 0.2s;
}
.main-nav .nav-menu li:first-child a,
.main-nav .nav-menu li.current-menu-item a,
.main-nav .nav-menu li.current-menu-parent a {
  background: var(--rojvarta-primary, #c0392b);
  color: #fff;
}
.main-nav .nav-menu li a:hover { background: var(--rojvarta-primary, #c0392b); color: #fff; }

/* Section Heading */
.section-head { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; }
.section-bar { width: 5px; height: 24px; background: var(--rojvarta-primary, #c0392b); border-radius: 2px; flex-shrink: 0; }
.section-title { font-size: 19px; font-weight: 800; color: #1a1a1a; }
.section-more { margin-left: auto; font-size: 12px; color: var(--rojvarta-primary, #c0392b); font-weight: 600; }
.section-more:hover { text-decoration: underline; }

/* Hero Grid */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-main { grid-column: span 2; }

/* News Card */
.news-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.news-card .card-img { width: 100%; height: 200px; object-fit: cover; }
.news-card.hero-main .card-img { height: 320px; }
.card-img-placeholder {
  width: 100%;
  height: 200px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
}
.news-card.hero-main .card-img-placeholder { height: 320px; }
.card-body { padding: 14px; }
.card-cat {
  font-size: 11px;
  color: var(--rojvarta-primary, #c0392b);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.card-cat a { color: inherit; }
.card-title { font-size: 16px; font-weight: 700; color: #1a1a1a; line-height: 1.45; margin-bottom: 7px; }
.card-title a:hover { color: var(--rojvarta-primary, #c0392b); }
.hero-main .card-title { font-size: 22px; }
.card-excerpt { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 8px; }
.card-meta { font-size: 11px; color: #999; display: flex; gap: 12px; flex-wrap: wrap; }

/* Category Grid */
.cat-section { margin-bottom: 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.cat-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.cat-card .cat-img { width: 100%; height: 130px; object-fit: cover; }
.cat-card .cat-img-placeholder { width: 100%; height: 130px; background: #eee; }
.cat-card-body { padding: 10px; }
.cat-label {
  font-size: 10px;
  color: var(--rojvarta-primary, #c0392b);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.cat-title { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.cat-title a:hover { color: var(--rojvarta-primary, #c0392b); }
.cat-time { font-size: 11px; color: #999; margin-top: 5px; }

/* Sidebar */
.sidebar-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar-head { background: var(--rojvarta-primary, #c0392b); padding: 10px 14px; }
.sidebar-head h3 { color: #fff; font-size: 15px; font-weight: 700; }
.sidebar-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-num { font-size: 22px; font-weight: 800; color: var(--rojvarta-primary, #c0392b); line-height: 1; flex-shrink: 0; min-width: 26px; }
.sidebar-text { font-size: 12px; color: #222; line-height: 1.5; }
.sidebar-text a:hover { color: var(--rojvarta-primary, #c0392b); }
.sidebar-thumb { width: 72px; height: 56px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }

/* Search */
.search-form { display: flex; margin: 14px; }
.search-form input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-size: 14px;
  font-family: inherit;
}
.search-form input:focus { outline: none; border-color: var(--rojvarta-primary, #c0392b); }
.search-form button {
  background: var(--rojvarta-primary, #c0392b);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-size: 15px;
}

/* Article Single */
.article-wrap { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 24px; }
.article-cat-badge {
  display: inline-block;
  background: var(--rojvarta-primary, #c0392b);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.article-cat-badge a { color: #fff; }
.article-title { font-size: 28px; font-weight: 900; color: #1a1a1a; line-height: 1.35; margin-bottom: 14px; }
.article-meta {
  font-size: 12px;
  color: #888;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 9px 0;
  margin-bottom: 20px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.article-featured-img { width: 100%; max-height: 450px; object-fit: cover; border-radius: 4px; margin-bottom: 22px; }
.article-content { font-size: 16px; line-height: 1.85; color: #333; }
.article-content p { margin-bottom: 18px; }
.article-content h2 { font-size: 21px; font-weight: 800; margin: 26px 0 12px; border-left: 4px solid var(--rojvarta-primary, #c0392b); padding-left: 12px; color: #1a1a1a; }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; color: #1a1a1a; }
.article-content blockquote { border-left: 4px solid var(--rojvarta-primary, #c0392b); padding: 12px 18px; background: #fff8f8; margin: 22px 0; font-style: italic; color: #666; border-radius: 0 4px 4px 0; }
.article-content img { border-radius: 4px; margin: 18px 0; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 16px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }

/* Tags */
.article-tags { margin-top: 22px; padding-top: 16px; border-top: 1px solid #eee; }
.article-tags span { font-size: 12px; color: #888; margin-right: 6px; }
.tag-link {
  display: inline-block;
  background: #f5f5f5;
  color: #444;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 2px;
  margin: 3px;
  border: 1px solid #ddd;
  transition: all 0.2s;
}
.tag-link:hover { background: var(--rojvarta-primary, #c0392b); color: #fff; border-color: var(--rojvarta-primary, #c0392b); }

/* Related Posts */
.related-section { margin-top: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Share Buttons */
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 3px; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; border: none; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn:hover { opacity: 0.85; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
  color: #333;
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--rojvarta-primary, #c0392b);
  color: #fff;
  border-color: var(--rojvarta-primary, #c0392b);
}

/* Footer */
.site-footer { background: #111; color: #aaa; margin-top: 30px; }
.footer-top { padding: 34px 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; border-bottom: 1px solid #2a2a2a; }
.footer-widget-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--rojvarta-primary, #c0392b); display: inline-block; }
.footer-about { font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-block; width: 34px; height: 34px; background: #222; border-radius: 50%; text-align: center; line-height: 34px; color: #aaa; font-size: 14px; transition: all 0.2s; }
.footer-social a:hover { background: var(--rojvarta-primary, #c0392b); color: #fff; }
.footer-links li { padding: 5px 0; border-bottom: 1px solid #1e1e1e; }
.footer-links li a { font-size: 13px; color: #888; }
.footer-links li a:hover { color: #fff; }
.footer-links li::before { content: '» '; color: var(--rojvarta-primary, #c0392b); }
.footer-recent-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #1e1e1e; align-items: flex-start; }
.footer-recent-img { width: 60px; height: 46px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.footer-recent-title { font-size: 12px; color: #888; line-height: 1.5; }
.footer-recent-title a:hover { color: #fff; }
.footer-bottom { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; color: #555; }
.footer-bottom-links a { font-size: 12px; color: #555; margin-left: 14px; }
.footer-bottom-links a:hover { color: #aaa; }

/* Responsive */
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-column: span 1; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .article-title { font-size: 22px; }
  .main-nav .nav-menu { overflow-x: auto; flex-wrap: nowrap; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .logo-text .logo-main { font-size: 28px; }
  .share-buttons { gap: 6px; }
  .share-btn { padding: 7px 12px; font-size: 12px; }
}