/*
Theme Name: Rojvarta News
Theme URI: https://rojvarta.com
Author: Subhash — Rojvarta.com
Author URI: https://rojvarta.com
Description: Rojvarta News is a fast, SEO-optimized WordPress news theme with modern design, responsive layout, custom homepage sections, and Google News readiness. Built for performance and clean user experience.
Version: 1.0
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans Devanagari', Arial, sans-serif; background: #f2f2f2; 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; }

:root { --primary: #c0392b; --dark: #1a1a1a; --gray: #666; --border: #e0e0e0; --light: #f8f8f8; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 22px; padding: 18px 0; }

/* Breaking Bar */
.breaking-bar { background: var(--primary); padding: 7px 0; }
.breaking-inner { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.breaking-label { background: #fff; color: var(--primary); 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(--primary); padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo-main { font-size: 36px; font-weight: 900; color: var(--primary); line-height: 1; letter-spacing: -1px; }
.logo-tagline { font-size: 11px; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.site-logo img { height: 60px; width: auto; }
.header-date { font-size: 12px; color: var(--gray); text-align: right; }
.header-date strong { color: var(--primary); display: block; font-size: 13px; }

/* Navigation */
.main-nav { background: var(--dark); }
.nav-menu { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu li { flex-shrink: 0; }
.nav-menu li a { display: block; color: #ddd; font-size: 13px; padding: 10px 16px; white-space: nowrap; transition: background 0.2s; }
.nav-menu li:first-child > a,
.nav-menu li.current-menu-item > a,
.nav-menu li.current-menu-parent > a { background: var(--primary); color: #fff; }
.nav-menu li a:hover { background: var(--primary); color: #fff; }
.nav-menu .sub-menu { display: none; }

/* Section Heading */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; }
.sec-bar { width: 5px; height: 24px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }
.sec-title { font-size: 18px; font-weight: 800; color: var(--dark); }
.sec-more { margin-left: auto; font-size: 12px; color: var(--primary); font-weight: 600; }
.sec-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 var(--border); border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.news-card .card-img { width: 100%; height: 200px; object-fit: cover; }
.hero-main .card-img { height: 320px; }
.no-img { background: #ddd; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 13px; }
.card-body { padding: 14px; }
.card-cat { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.card-cat a { color: inherit; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.45; margin-bottom: 7px; }
.card-title a:hover { color: var(--primary); }
.hero-main .card-title { font-size: 22px; }
.card-excerpt { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 8px; }
.card-meta { font-size: 11px; color: #999; display: flex; gap: 10px; flex-wrap: wrap; }

/* Category List Section (Left thumb + Right text) */
.cat-list-section { margin-bottom: 8px; }
.cat-list-grid { display: flex; flex-direction: column; gap: 0; }
.cat-list-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); background: #fff; }
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item .thumb { width: 100px; height: 72px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.cat-list-item .thumb-placeholder { width: 100px; height: 72px; background: #e8e8e8; border-radius: 3px; flex-shrink: 0; }
.cat-list-item .info { flex: 1; }
.cat-list-item .info .cat-label { font-size: 10px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.cat-list-item .info .title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--dark); }
.cat-list-item .info .title a:hover { color: var(--primary); }
.cat-list-item .info .meta { font-size: 11px; color: #999; margin-top: 5px; }
.cat-list-wrap { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 0 14px; margin-bottom: 4px; }

/* Authors Section */
.authors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.author-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 18px 12px; text-align: center; transition: box-shadow 0.2s; }
.author-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.author-avatar { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; border: 3px solid var(--border); }
.author-avatar-placeholder { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: 700; }
.author-name { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.author-role { font-size: 11px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.author-post-count { font-size: 11px; color: #999; }
.author-name a:hover { color: var(--primary); }

/* Sidebar */
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.sidebar-head { background: var(--primary); 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(--primary); 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(--primary); }
.sidebar-thumb { width: 72px; height: 56px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.sidebar-meta { font-size: 11px; color: #999; display: block; margin-top: 3px; }

/* Search Form */
.search-form { display: flex; margin: 14px; }
.search-form input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-right: none; border-radius: 3px 0 0 3px; font-size: 14px; font-family: inherit; }
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-form button { background: var(--primary); 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 var(--border); border-radius: 4px; padding: 24px; }
.article-cat-badge { display: inline-block; background: var(--primary); 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: 26px; font-weight: 900; color: var(--dark); 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: 16px; flex-wrap: wrap; align-items: center; }
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.article-cats a { background: #f5f5f5; color: var(--primary); font-size: 11px; padding: 2px 8px; border-radius: 2px; border: 1px solid var(--border); font-weight: 600; }
.article-featured-img { width: 100%; max-height: 450px; object-fit: cover; border-radius: 4px; margin-bottom: 22px; }

/* Share Buttons - Small & Clean */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; padding: 14px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; align-items: center; }
.share-label { font-size: 12px; color: #888; font-weight: 600; margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 3px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; border: none; text-decoration: none; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #000; }
.share-btn.wa { background: #25d366; }
.share-btn:hover { opacity: 0.85; }

/* Article Content */
.article-content { font-size: 16px; line-height: 1.85; color: #333; }
.article-content p { margin-bottom: 16px; }
.article-content h2 { font-size: 20px; font-weight: 800; margin: 24px 0 12px; color: var(--dark); }
.article-content h3 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; color: var(--dark); }
.article-content blockquote { border-left: 4px solid var(--primary); padding: 12px 18px; background: #fff8f8; margin: 20px 0; font-style: italic; color: #666; border-radius: 0 4px 4px 0; }
.article-content img { border-radius: 4px; margin: 16px 0; }
.article-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.article-content ol { list-style: decimal; padding-left: 22px; margin-bottom: 16px; }
.article-content li { margin-bottom: 6px; }

/* Table Styling */
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; overflow-x: auto; display: block; }
.article-content table th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; font-weight: 700; }
.article-content table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.article-content table tr:nth-child(even) { background: #f9f9f9; }
.article-content table tr:hover { background: #fff3f3; }

/* Tags */
.article-tags { margin-top: 20px; padding-top: 14px; border-top: 1px solid #eee; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.article-tags .tag-label { font-size: 12px; color: #888; font-weight: 600; }
.tag-link { display: inline-block; background: #f5f5f5; color: #444; font-size: 12px; padding: 4px 10px; border-radius: 2px; border: 1px solid var(--border); }
.tag-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Author Box */
.author-box { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px; margin-top: 28px; align-items: flex-start; }
.author-box-avatar { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 3px solid var(--border); }
.author-box-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; font-weight: 700; }
.author-box-info h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.author-box-role { font-size: 11px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block; }
.author-box-bio { font-size: 13px; color: #666; line-height: 1.6; }
.author-box-link { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--primary); font-weight: 600; }

/* Related Posts */
.related-section { margin-top: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Archive / Search */
.archive-header { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px 20px; margin-bottom: 20px; }
.archive-title { font-size: 20px; font-weight: 800; color: var(--dark); }
.archive-desc { font-size: 13px; color: #888; margin-top: 4px; }
.archive-list { display: flex; flex-direction: column; gap: 14px; }
.archive-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; display: flex; gap: 14px; padding: 14px; overflow: hidden; }
.archive-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.archive-img { width: 140px; height: 100px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.archive-img-placeholder { width: 140px; height: 100px; background: #e8e8e8; border-radius: 3px; flex-shrink: 0; }
.archive-info { flex: 1; }
.archive-cat { font-size: 10px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.archive-post-title { font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 6px; }
.archive-post-title a:hover { color: var(--primary); }
.archive-excerpt { font-size: 13px; color: #666; line-height: 1.5; }
.archive-meta { font-size: 11px; color: #999; margin-top: 8px; display: flex; gap: 10px; }

/* No Results */
.no-results { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 40px; text-align: center; }
.no-results h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.no-results p { font-size: 14px; color: #888; margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 22px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; background: #fff; color: #333; }
.pagination a:hover, .pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 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: 26px; border-bottom: 1px solid #222; }
.footer-widget-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-about-text { font-size: 13px; color: #777; line-height: 1.7; margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a { width: 34px; height: 34px; background: #1e1e1e; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 14px; font-weight: 700; transition: all 0.2s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-links li { padding: 5px 0; border-bottom: 1px solid #1a1a1a; }
.footer-links li::before { content: '» '; color: var(--primary); }
.footer-links li a { font-size: 13px; color: #777; }
.footer-links li a:hover { color: #fff; }
.footer-recent-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #1a1a1a; }
.footer-recent-img { width: 58px; height: 44px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.footer-recent-title a { font-size: 12px; color: #777; line-height: 1.5; display: block; }
.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; border-top: 1px solid #1a1a1a; }
.footer-bottom p { font-size: 12px; color: #444; }
.footer-bottom-links a { font-size: 12px; color: #444; 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; }
  .authors-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-column: span 1; }
  .hero-main .card-img { height: 220px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .article-title { font-size: 20px; }
  .article-wrap { padding: 16px; }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .logo-main { font-size: 28px; }
  .archive-img { width: 100px; height: 80px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}
/* =====================
   WEB STORIES PAGE
   ===================== */
.stories-page-wrap { padding: 20px 0; }
.stories-page-header { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.stories-page-title { font-size: 20px; font-weight: 800; color: var(--dark); }
.stories-page-count { font-size: 13px; color: #999; margin-left: auto; }

.web-stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.story-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  pointer-events: none;
}
.story-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary, #c0392b);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}
.story-cat-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 2;
}
.story-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px 14px;
  z-index: 2;
  pointer-events: none;
}
.story-card-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card-date {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  margin-top: 5px;
}
.story-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c0392b 0%, #7b241c 100%);
}
.stories-no-results { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 50px; text-align: center; }
.stories-no-results h2 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.stories-no-results p { font-size: 14px; color: #888; }
.stories-pagination { display: flex; gap: 8px; justify-content: center; padding: 24px 0; flex-wrap: wrap; }
.stories-pagination a, .stories-pagination span { padding: 8px 16px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; background: #fff; color: #333; }
.stories-pagination a:hover, .stories-pagination .current { background: var(--primary, #c0392b); color: #fff; border-color: var(--primary, #c0392b); }

@media (max-width: 1024px) { .web-stories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .web-stories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Google News Button */
.meta-row-1 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.meta-left   { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #666; }
.google-news-btn { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #e0e0e0; border-radius: 3px; padding: 4px 9px; font-size: 11px; font-weight: 600; color: #444; white-space: nowrap; flex-shrink: 0; transition: box-shadow 0.2s; }
.google-news-btn:hover { box-shadow: 0 1px 6px rgba(0,0,0,0.12); color: #222; }
.google-news-btn svg { flex-shrink: 0; }
@media (max-width: 480px) { .meta-row-1 { flex-direction: column; align-items: flex-start; } }