@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #A71012; /* Deep Red */
    --primary-dark: #820B0D;
    --secondary: #1E2327; /* Dark Charcoal */
    --accent: #D4AF37; /* Gold */
    --bg-light: #F4F6F8;
    --bg-white: #FFFFFF;
    --text-main: #111111;
    --text-muted: #555555;
    --border: #E2E8F0;
    --danger: #E53E3E;
    --success: #38A169;
    --font-main: 'Noto Sans Devanagari', Arial, sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-light: #121212;
    --bg-white: #1E1E1E;
    --text-main: #F3F4F6;
    --text-muted: #A0AEC0;
    --border: #333333;
    --secondary: #0A0A0A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background: var(--bg-light); color: var(--text-main); line-height: 1.6; transition: background 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 15px; }

/* Ad Placeholder */
.ad-banner { background: #d1d5db; color: #4b5563; text-align: center; padding: 20px; font-weight: bold; border: 2px dashed #9ca3af; margin: 20px 0; font-size: 14px; letter-spacing: 1px; }
[data-theme="dark"] .ad-banner { background: #374151; color: #9ca3af; border-color: #4b5563; }

/* Top Header */
.top-bar { background: var(--secondary); color: #fff; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.social-links span { margin-right: 15px; cursor: pointer; }
.social-links span:hover { color: var(--accent); }

/* Main Header */
.main-header { background: var(--bg-white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 32px; font-weight: 800; color: var(--primary); letter-spacing: -1px; display: flex; align-items: center; }
.logo svg { width: 30px; height: 30px; fill: var(--primary); margin-right: 5px; }
.tagline { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.header-actions { display: flex; gap: 15px; align-items: center; font-size: 20px; cursor: pointer; }
.theme-toggle, .search-icon, .menu-icon { padding: 5px; border-radius: 5px; transition: background 0.2s; }
.theme-toggle:hover { background: var(--border); }

/* Navigation */
.nav-bar { background: var(--primary); color: #fff; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.nav-bar::-webkit-scrollbar { display: none; }
.nav-links { display: flex; gap: 25px; padding: 12px 15px; max-width: 1280px; margin: 0 auto; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--accent); }

/* Breaking News Ticker */
.breaking-news { background: var(--bg-white); border-bottom: 2px solid var(--primary); display: flex; align-items: center; padding: 8px 15px; font-weight: 600; font-size: 14px; }
.breaking-badge { background: var(--danger); color: #fff; padding: 4px 10px; border-radius: 3px; margin-right: 15px; flex-shrink: 0; display: flex; align-items: center; gap: 5px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }
.ticker-wrap { overflow: hidden; white-space: nowrap; width: 100%; }
.ticker { display: inline-block; animation: ticker 25s linear infinite; }
.ticker:hover { animation-play-state: paused; }
.ticker-item { margin-right: 40px; }
@keyframes ticker { 0% { transform: translate3d(100%, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* Section Titles */
.section-title { font-size: 24px; font-weight: 700; margin: 30px 0 20px; padding-bottom: 10px; border-bottom: 3px solid var(--primary); display: inline-block; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--primary); margin: 30px 0 20px; }
.section-header .section-title { border-bottom: none; margin: 0; padding-bottom: 5px; }
.view-all { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 5px; }

/* Grid Layouts */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; margin-top: 20px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Cards */
.card { background: var(--bg-white); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; border: 1px solid var(--border); }
.card:hover { transform: translateY(-3px); }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img-wrap img { transform: scale(1.05); }
.category-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: bold; padding: 3px 8px; border-radius: 3px; z-index: 10; }
.card-content { padding: 15px; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.card-meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; margin-bottom: 10px; }
.card-desc { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Large Hero Card */
.hero-card { position: relative; height: 100%; min-height: 400px; border-radius: 8px; overflow: hidden; }
.hero-card img { height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 30px 20px; color: #fff; }
.hero-overlay .card-title { font-size: 28px; color: #fff; }
.hero-overlay .card-desc { color: #ddd; }

/* Most Read List */
.most-read-list { background: var(--bg-white); padding: 20px; border: 1px solid var(--border); border-radius: 6px; }
.most-read-item { display: flex; gap: 15px; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border); }
.most-read-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.mr-number { font-size: 32px; font-weight: 800; color: var(--primary); opacity: 0.3; }
.mr-title { font-size: 15px; font-weight: 600; line-height: 1.4; }

/* State Tabs */
.state-tabs { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 5px; }
.tab-btn { padding: 8px 16px; border: 1px solid var(--border); background: var(--bg-white); color: var(--text-main); border-radius: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Video & Shorts Section */
.dark-section { background: var(--secondary); color: #fff; padding: 40px 0; margin: 40px 0; }
.dark-section .section-title { border-bottom-color: var(--accent); }
.video-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.6); color: #fff; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 20px; border: 2px solid #fff; z-index: 10; }
.shorts-container { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; }
.short-card { min-width: 180px; aspect-ratio: 9/16; position: relative; border-radius: 8px; overflow: hidden; }
.short-card img { height: 100%; object-fit: cover; }

/* Article Page specific */
.progress-container { width: 100%; height: 4px; background: var(--bg-white); position: fixed; top: 0; z-index: 1000; }
.progress-bar { height: 4px; background: var(--primary); width: 0%; }
.article-header { margin: 30px 0; text-align: center; }
.breadcrumb { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 15px; }
.article-title { font-size: 38px; font-weight: 800; line-height: 1.3; margin-bottom: 15px; }
.article-subtitle { font-size: 20px; color: var(--text-muted); margin-bottom: 20px; }
.article-meta { display: flex; justify-content: center; gap: 20px; font-size: 14px; color: var(--text-muted); margin-bottom: 20px; align-items: center; }
.font-controls button { background: var(--bg-white); border: 1px solid var(--border); padding: 2px 8px; cursor: pointer; font-weight: bold; border-radius: 3px; color: var(--text-main); }
.article-featured-img { width: 100%; max-height: 600px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.article-layout { display: grid; grid-template-columns: 7fr 3fr; gap: 40px; }
.article-body { font-size: 18px; line-height: 1.8; color: var(--text-main); }
.article-body p { margin-bottom: 20px; }
.article-body h2 { margin: 30px 0 15px; font-size: 24px; }
.share-bar { display: flex; gap: 10px; margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-btn { padding: 10px 20px; border-radius: 4px; font-weight: bold; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.btn-whatsapp { background: #25D366; } .btn-facebook { background: #1877F2; } .btn-x { background: #000; }

/* Admin Dashboards */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-light); }
.admin-sidebar { width: 250px; background: var(--secondary); color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar h2 { padding: 0 20px 20px; border-bottom: 1px solid #333; font-size: 18px; color: var(--accent); }
.admin-nav { margin-top: 20px; }
.admin-nav li a { display: block; padding: 12px 20px; color: #ddd; border-left: 3px solid transparent; }
.admin-nav li a:hover, .admin-nav li a.active { background: #111; border-left-color: var(--primary); color: #fff; }
.admin-content { flex: 1; padding: 30px; overflow-y: auto; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--bg-white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-card h3 { font-size: 14px; color: var(--text-muted); }
.stat-card .num { font-size: 32px; font-weight: bold; color: var(--primary); }
.admin-panel { background: var(--bg-white); padding: 25px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; }
.form-control { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-white); color: var(--text-main); font-family: var(--font-main); }
.btn-primary { background: var(--primary); color: #fff; padding: 10px 20px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.status-badge { padding: 4px 8px; border-radius: 20px; font-size: 12px; font-weight: bold; color: #fff; }
.status-published { background: var(--success); } .status-draft { background: #ED8936; } .status-review { background: #4299E1; }
.workflow-diagram { display: flex; justify-content: space-between; background: var(--bg-light); padding: 20px; border-radius: 8px; font-weight: bold; font-size: 12px; text-align: center; }
.workflow-step { flex: 1; position: relative; }
.workflow-step:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 0; font-size: 20px; color: var(--primary); }

/* Footer */
.main-footer { background: var(--secondary); color: #fff; padding: 60px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-col h3 { font-size: 18px; color: var(--accent); margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.newsletter-form input { padding: 10px; width: calc(100% - 100px); border: none; border-radius: 4px 0 0 4px; }
.newsletter-form button { padding: 10px; width: 100px; background: var(--primary); color: #fff; border: none; border-radius: 0 4px 4px 0; font-weight: bold; cursor: pointer; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 14px; color: #888; }

/* Utilities */
.cookie-popup { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--bg-white); padding: 20px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 9999; display: flex; justify-content: space-between; align-items: center; border-left: 5px solid var(--primary); }
.notification-bell { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 5px 15px rgba(229, 62, 62, 0.4); cursor: pointer; z-index: 1000; animation: bounce 2s infinite; }
.back-to-top { position: fixed; bottom: 100px; right: 35px; background: var(--secondary); color: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; display: none; z-index: 1000; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1.5fr 1fr; }
    .hero-grid .most-read-list { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .two-col-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-grid .most-read-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .cookie-popup { flex-direction: column; gap: 15px; text-align: center; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .top-bar { display: none; }
    .header-actions { font-size: 16px; }
    .logo { font-size: 24px; }
}