:root {
  --primary: #1a5276;
  --primary-dark: #154360;
  --secondary: #d35400;
  --accent:  #008000 ;
  --light: #f8f9fa;
  --dark: #2c3e50;
  --gray: #7f8c8d;
  --border: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --breaking-red: #D90000;
}

/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html,body {
  height: auto;
  overflow-x: hidden;
  background-color: #f5f7fa;
}
body {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  line-height: 1.6;
  color: #333;
}
.hindi-text { font-family: 'Noto Sans Devanagari', sans-serif; }

/* Header (kept like Uttarakhand) */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display:flex; justify-content:space-between; align-items:center; }

/* Hero */
.uttarakhand-hero.politics-hero {
  background: linear-gradient(rgba(26, 82, 118, 0.85), rgba(21, 67, 96, 0.0)),
              url('https://www.samacharjustclick.com/wp-content/uploads/2025/01/Indian-politics-top-10-powerful-.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
}
.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.4rem; max-width: 800px; margin: 0 auto 2rem; opacity: 0.95; }

/* Stats */
.stats { display:flex; justify-content:center; gap:3rem; margin-top:2rem; }
.stat-number { font-size:2.5rem; font-weight:700; color:var(--secondary); display:block; }
.stat-label { font-size:1rem; opacity:0.9; }

/* Layout */
.main-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 20px; display:grid; grid-template-columns: 1fr 300px; gap:2rem; }

/* Filter Section */
.filter-section { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 2rem; display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.filter-btn { padding: 0.5rem 1.5rem; border: 2px solid var(--border); background: white; border-radius:25px; cursor:pointer; font-weight:500; transition: all .3s; }
.filter-btn:hover { border-color:#002765; color:var(--primary); }
.filter-btn.active { background:#002765; color:white; border-color:var(--primary); }
.refresh-btn { background: var(--accent); color: white; border: none; padding: 0.5rem 1.5rem; border-radius: 25px; cursor:pointer; display:flex; align-items:center; gap:8px; transition:all .3s; }
.refresh-btn:hover { background:#219653; transform:translateY(-2px); }

/* News Grid & Cards */
.news-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(350px,1fr)); gap:2rem; margin-bottom:2rem; }
.news-card { background:white; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); transition:all .3s; display:flex; flex-direction:column; text-decoration:none; color:inherit; }
.news-card:hover { transform:translateY(-8px); box-shadow:var(--shadow-hover); }
.news-image { height:200px; overflow:hidden; position:relative; }
.news-image img { width:100%; height:100%; object-fit:cover; transition: transform .5s; display:block; }
.news-card:hover .news-image img { transform: scale(1.05); }
.news-content { padding:1.5rem; flex-grow:1; display:flex; flex-direction:column; }
.news-category { display:inline-block; background:#002765; color:white; padding:0.3rem 1rem; border-radius:20px; font-size:0.8rem; font-weight:600; margin-bottom:1rem; align-self:flex-start; }
.news-title { font-size:1.3rem; font-weight:600; margin-bottom:1rem; line-height:1.4; color:var(--dark); }
.news-desc { color:var(--gray); margin-bottom:1.5rem; flex-grow:1; font-size:0.95rem; }
.news-meta { display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:1rem; border-top:1px solid var(--border); }
.read-more { color:var(--secondary); text-decoration:none; font-weight:500; display:flex; align-items:center; gap:5px; }

/* Loading */
.loading { text-align:center; padding:3rem; grid-column:1 / -1; }
.loading-spinner { width:50px; height:50px; border:5px solid var(--border); border-top-color:var(--primary); border-radius:50%; animation:spin 1s linear infinite; margin:0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sidebar */
.sidebar { display:flex; flex-direction:column; gap:2rem; }
.sidebar-section { background:white; border-radius:12px; padding:1.5rem; box-shadow: var(--shadow); }
.section-title { font-size:1.2rem; font-weight:600; margin-bottom:1.5rem; padding-bottom:0.5rem; border-bottom:2px solid var(--primary); color:var(--primary); }

/* Latest Updates (taaja update) */
#latestUpdates {
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  max-height:320px;
  overflow-y:auto;
  padding-right:8px;
}
#latestUpdates > div { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:0.6rem 0; border-bottom:1px solid var(--border); animation:fadeInUp .26s ease both; }
#latestUpdates > div > a { color:var(--primary); text-decoration:none; font-weight:600; font-size:0.95rem; line-height:1.25; display:block; max-width:calc(100% - 92px); word-break:break-word; }
#latestUpdates > div > small { flex:0 0 88px; text-align:right; color:var(--gray); font-size:0.82rem; white-space:nowrap; display:inline-block; margin-left:6px; }
#latestUpdates .live-badge { display:inline-block; background:var(--secondary); color:#fff; padding:2px 6px; border-radius:6px; font-size:0.72rem; font-weight:700; margin-left:6px; }
#latestUpdates > div:hover { background: rgba(0,0,0,0.02); }
#latestUpdates > div > a:hover { text-decoration:underline; opacity:0.95; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* Breaking News Banner */
.breaking-news { background: var(--breaking-red); color:#fff; padding:0.8rem; margin-bottom:1.5rem; border-radius:8px; display:flex; align-items:center; gap:15px; animation:pulse 2s infinite; overflow:hidden; }
@keyframes pulse { 0% { opacity:1 } 50% { opacity:0.9 } 100% { opacity:1 } }
.breaking-label { background:#fff; color:var(--breaking-red); padding:0.3rem 1rem; border-radius:20px; font-weight:700; font-size:0.9rem; white-space:nowrap; }
.marquee { overflow:hidden; white-space:nowrap; flex:1; }
.marquee span { display:inline-block; padding-left:100%; animation:marquee 30s linear infinite; }
.marquee a { color:#fff; margin-right:32px; text-decoration:none; font-weight:500; }
@keyframes marquee { 0% { transform:translate(0,0) } 100% { transform:translate(-100%,0) } }

/* Video indicator */
.video-indicator { position:absolute; top:10px; right:10px; background:rgba(255,0,0,0.8); color:#fff; padding:0.3rem 0.6rem; border-radius:4px; font-size:0.8rem; display:flex; align-items:center; gap:5px; }

/* Back to Top */
.back-to-top { position:fixed; bottom:20px; right:20px; background:var(--primary); color:white; width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; text-decoration:none; box-shadow:var(--shadow); opacity:0; transform:translateY(20px); transition:all .3s ease; z-index:100; }
.back-to-top.visible { opacity:1; transform:translateY(0); }
.back-to-top:hover { background:var(--primary-dark); transform:translateY(-5px); }

/* Footer gap fixes */
#footer { margin:0; padding:0; height:auto; min-height:0; background:transparent; clear:both; }
.main-container { margin-bottom:0; }

/* Responsive */
@media (max-width: 992px) { .main-container { grid-template-columns: 1fr; } .hero-title { font-size:2.8rem; } }
@media (max-width: 768px) {
  .header-container { flex-direction:column; gap:1rem; }
  .news-grid { grid-template-columns:1fr; }
  .stats { flex-direction:column; gap:1.5rem; }
}
@media (max-width: 480px) {
  .filter-section { flex-direction:column; align-items:stretch; }
  .filter-btn, .refresh-btn { width:100%; text-align:center; }
}
