/* ============================================
   NewsNow India - Main Stylesheet
   Professional News Portal Design
   ============================================ */

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

:root {
  --red: #1a6b3c;
  --red-dark: #145530;
  --navy: #0f2017;
  --navy-light: #1a3328;
  --gray-dark: #2c3e50;
  --gray-mid: #6c757d;
  --gray-light: #f0f7f3;
  --white: #ffffff;
  --border: #d0e4d8;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --gold: #e8a400;
  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Nunito Sans', Arial, sans-serif;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: #f0f2f5; font-size: 16px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ============================================
   BREAKING NEWS BAR
   ============================================ */
.breaking-bar { background: var(--red); color: #fff; padding: 8px 0; overflow: hidden; }
.breaking-bar .container { display: flex; align-items: center; gap: 12px; }
.breaking-label { background: var(--navy); color: #fff; padding: 3px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; white-space: nowrap; border-radius: 2px; display: flex; align-items: center; gap: 5px; }
.breaking-label i { color: #ffd700; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-content { white-space: nowrap; font-size: 13px; font-weight: 500; animation: ticker 40s linear infinite; }
@keyframes ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar { background: var(--navy); color: rgba(255,255,255,0.75); font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-date { display: flex; align-items: center; gap: 6px; }
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a { color: rgba(255,255,255,0.7); font-size: 13px; transition: color .2s; }
.top-bar-social a:hover { color: var(--gold); }

/* ============================================
   HEADER
   ============================================ */
.site-header { background: var(--navy); padding: 16px 0; border-bottom: 3px solid var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-box { display: flex; flex-direction: column; }
.logo-text { font-family: var(--font-head); font-size: 38px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1px; }
.logo-text span { color: var(--red); }
.logo-tagline { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.ad-placeholder { background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.2); color: rgba(255,255,255,0.3); font-size: 11px; padding: 20px 60px; text-align: center; border-radius: 3px; }

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav { background: var(--red); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; gap: 0; }
.nav-menu { display: flex; }
.nav-menu li a { display: block; color: #fff; padding: 13px 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: background .2s; white-space: nowrap; }
.nav-menu li a:hover, .nav-menu li a.active { background: var(--red-dark); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 13px; }
.nav-search { margin-left: auto; display: flex; align-items: center; }
.nav-search input { background: rgba(255,255,255,0.15); border: none; color: #fff; padding: 8px 14px; font-size: 13px; border-radius: 3px 0 0 3px; outline: none; width: 200px; }
.nav-search input::placeholder { color: rgba(255,255,255,0.6); }
.nav-search button { background: var(--navy); color: #fff; border: none; padding: 8px 14px; cursor: pointer; border-radius: 0 3px 3px 0; }

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.page-content { padding: 24px 0 40px; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.main-col { min-width: 0; }
.sidebar { min-width: 0; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.section-header h2 { font-family: var(--font-head); font-size: 22px; color: var(--navy); }
.section-header .tag { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; letter-spacing: 1px; text-transform: uppercase; border-radius: 2px; }
.section-header .see-all { margin-left: auto; color: var(--red); font-size: 13px; font-weight: 600; }

/* ============================================
   HERO SECTION (TOP STORIES)
   ============================================ */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 4px; margin-bottom: 24px; border-radius: 4px; overflow: hidden; }
.hero-main { grid-column: 1; grid-row: 1 / 3; position: relative; }
.hero-side { position: relative; }
.hero-post { position: relative; display: block; overflow: hidden; }
.hero-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-main img { height: 440px; }
.hero-side img { height: 216px; }
.hero-post:hover img { transform: scale(1.04); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.88)); padding: 30px 18px 18px; }
.hero-cat { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; letter-spacing: 1px; text-transform: uppercase; border-radius: 2px; display: inline-block; margin-bottom: 8px; }
.hero-title { font-family: var(--font-head); color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; }
.hero-main .hero-title { font-size: 26px; }
.hero-meta { color: rgba(255,255,255,0.7); font-size: 12px; margin-top: 6px; }

/* ============================================
   NEWS CARDS
   ============================================ */
.news-card { display: grid; grid-template-columns: 140px 1fr; gap: 12px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; transition: box-shadow .2s; }
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-img { height: 100px; object-fit: cover; width: 140px; }
.news-card-body { padding: 12px 12px 12px 0; }
.news-card .cat-badge { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
.news-card h3 { font-family: var(--font-head); font-size: 16px; line-height: 1.35; margin: 4px 0 6px; }
.news-card h3 a:hover { color: var(--red); }
.news-card .news-meta { font-size: 12px; color: var(--text-muted); }

/* Top story card (large) */
.news-card-lg { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; transition: box-shadow .2s; }
.news-card-lg:hover { box-shadow: var(--shadow-md); }
.news-card-lg img { width: 100%; height: 220px; object-fit: cover; }
.news-card-lg .card-body { padding: 16px; }
.news-card-lg .cat-badge { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
.news-card-lg h3 { font-family: var(--font-head); font-size: 20px; line-height: 1.3; margin: 6px 0 8px; }
.news-card-lg h3 a:hover { color: var(--red); }
.news-card-lg .excerpt { font-size: 14px; color: var(--gray-mid); line-height: 1.5; }
.news-card-lg .news-meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ============================================
   CATEGORY STRIPS (horizontal scroll)
   ============================================ */
.category-strip { background: #fff; border-radius: 4px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 24px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.strip-item { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; }
.strip-item img { width: 90px; height: 65px; object-fit: cover; border-radius: 3px; }
.strip-item .strip-num { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 4px; }
.strip-item h4 { font-family: var(--font-head); font-size: 14px; line-height: 1.3; }
.strip-item h4 a:hover { color: var(--red); }
.strip-item .strip-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-widget { background: #fff; border-radius: 4px; box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.widget-header { background: var(--navy); color: #fff; padding: 12px 16px; font-family: var(--font-head); font-size: 16px; font-weight: 700; border-left: 4px solid var(--red); }
.widget-body { padding: 16px; }

/* Popular posts widget */
.popular-item { display: grid; grid-template-columns: 80px 1fr; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.popular-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.popular-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 3px; }
.popular-item h4 { font-family: var(--font-head); font-size: 14px; line-height: 1.3; }
.popular-item h4 a:hover { color: var(--red); }
.popular-item .pop-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Categories widget */
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; font-weight: 500; transition: color .2s; }
.cat-list a:hover { color: var(--red); }
.cat-list .count { background: var(--gray-light); color: var(--gray-mid); font-size: 11px; padding: 2px 8px; border-radius: 10px; }

/* Tags widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link { background: var(--gray-light); color: var(--gray-dark); font-size: 12px; padding: 4px 10px; border-radius: 3px; transition: all .2s; }
.tag-link:hover { background: var(--red); color: #fff; }

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.post-header { background: #fff; border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.post-featured-img { width: 100%; max-height: 480px; object-fit: cover; }
.post-header-body { padding: 24px; }
.post-cat-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 2px; margin-bottom: 14px; }
.post-title { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1.25; color: var(--navy); margin-bottom: 16px; }
.post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; font-size: 13px; color: var(--text-muted); }
.post-meta strong { color: var(--text); }
.post-share { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 3px; font-size: 13px; font-weight: 600; color: #fff; }
.share-btn.twitter { background: #000; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }

.post-body-wrap { background: #fff; border-radius: 4px; box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
.post-body { font-size: 17px; line-height: 1.85; color: #2c2c2c; }
.post-body p { margin-bottom: 18px; }
.post-body h2 { font-family: var(--font-head); font-size: 24px; color: var(--navy); margin: 28px 0 12px; }
.post-body h3 { font-family: var(--font-head); font-size: 20px; color: var(--navy); margin: 22px 0 10px; }
.post-body blockquote { border-left: 4px solid var(--red); padding: 16px 20px; background: var(--gray-light); margin: 24px 0; font-style: italic; font-size: 18px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 18px; }
.post-body ul li, .post-body ol li { margin-bottom: 6px; }
.image-caption { font-size: 13px; color: var(--text-muted); text-align: center; padding: 8px; border-bottom: 1px solid var(--border); font-style: italic; background: var(--gray-light); }

.post-tags { padding: 16px 28px; background: #fff; border-radius: 4px; box-shadow: var(--shadow); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-tags strong { color: var(--navy); font-size: 13px; }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-header { background: var(--navy); color: #fff; padding: 24px; border-radius: 4px; margin-bottom: 20px; }
.search-header h1 { font-family: var(--font-head); font-size: 26px; }
.search-count { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.search-form-lg { display: flex; margin-top: 14px; }
.search-form-lg input { flex: 1; padding: 12px 16px; font-size: 16px; border: none; border-radius: 3px 0 0 3px; outline: none; }
.search-form-lg button { background: var(--red); color: #fff; border: none; padding: 12px 20px; font-size: 16px; cursor: pointer; border-radius: 0 3px 3px 0; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 24px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 3px; font-size: 14px; font-weight: 600; }
.pagination a { background: #fff; color: var(--text); box-shadow: var(--shadow); transition: all .2s; }
.pagination a:hover, .pagination .current { background: var(--red); color: #fff; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); margin-top: 40px; }
.footer-top { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { font-family: var(--font-head); font-size: 26px; color: #fff; font-weight: 800; margin-bottom: 12px; }
.footer-col p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .2s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-post { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-post:last-child { border-bottom: none; }
.footer-post a { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.4; transition: color .2s; display: block; margin-bottom: 3px; }
.footer-post a:hover { color: var(--gold); }
.footer-post span { font-size: 11px; color: rgba(255,255,255,0.4); }
.footer-bottom { padding: 16px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ============================================
   UTILITY
   ============================================ */
.badge-breaking { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; margin-right: 6px; animation: blink 1.5s infinite; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main img { height: 250px; }
  .hero-side img { height: 180px; }
  .hero-main .hero-title { font-size: 20px; }
  .strip-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 24px; }
  .hamburger { display: block; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--red-dark); z-index: 999; }
  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: 12px 20px; }
  .nav-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .logo-text { font-size: 28px; }
  .header-ad { display: none; }
  .news-card { grid-template-columns: 100px 1fr; }
  .news-card-img { width: 100px; height: 80px; }
}
@media (max-width: 480px) {
  .post-title { font-size: 20px; }
  .post-body { font-size: 15px; }
  .top-bar-date { display: none; }
}
