/* =============================================
   TAKKAR NEWS - Complete Stylesheet
   Modern, Bold, Hindi News Portal
   ============================================= */

/* ---- CSS Variables ---- */
:root {
    --red: #D32F2F;
    --red-dark: #B71C1C;
    --red-light: #FFEBEE;
    --saffron: #FF6F00;
    --gold: #F9A825;
    --ink: #1A1A2E;
    --ink-mid: #2D2D44;
    --ink-soft: #4A4A6A;
    --bg: #F4F4F8;
    --card-bg: #FFFFFF;
    --border: #E0E0EC;
    --text: #1A1A2E;
    --text-muted: #6B6B8D;
    --sidebar-bg: #F8F8FC;
    --nav-bg: #1A1A2E;
    --nav-text: #FFFFFF;
    --breaking-bg: #D32F2F;
    --topbar-bg: #111126;
    --shadow: 0 2px 12px rgba(26,26,46,0.09);
    --shadow-lg: 0 8px 32px rgba(26,26,46,0.14);
    --radius: 10px;
    --radius-sm: 6px;
    --font-body: 'Noto Sans Devanagari', 'Arial', sans-serif;
    --font-display: 'Playfair Display', 'Georgia', serif;
    --transition: all 0.2s ease;
    --font-size: 16px;
}

[data-theme="dark"] {
    --bg: #0F0F1A;
    --card-bg: #1A1A2E;
    --border: #2D2D44;
    --text: #E8E8F0;
    --text-muted: #9090B0;
    --sidebar-bg: #16162A;
    --nav-bg: #0D0D1E;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --red-light: #2A0A0A;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--font-size); }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

.container { max-width: 1260px; margin: 0 auto; padding: 0 16px; }

/* ---- Reading Progress Bar ---- */
.reading-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--red), var(--saffron), var(--gold));
    z-index: 10000; transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--red);
}

/* ---- Emergency Alert ---- */
.emergency-alert {
    background: #FF1744; color: #fff;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; font-weight: 600; font-size: 0.95rem;
    position: relative; z-index: 9999;
}
.emergency-alert marquee { flex: 1; }
.alert-close { background: rgba(255,255,255,0.3); color: #fff; border-radius: 50%; width: 28px; height: 28px; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--topbar-bg); color: #aaa;
    font-size: 0.8rem; padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-date { color: #bbb; display: flex; align-items: center; gap: 6px; }
.whatsapp-btn {
    background: #25D366; color: #fff; padding: 4px 12px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 5px;
    transition: var(--transition);
}
.whatsapp-btn:hover { background: #1ebe5d; }
.font-sizer { display: flex; align-items: center; gap: 4px; color: #ccc; }
.font-sizer button { background: rgba(255,255,255,0.1); color: #ddd; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; transition: var(--transition); }
.font-sizer button:hover { background: var(--red); color: #fff; }
.dark-toggle { color: #ccc; font-size: 1rem; padding: 4px 8px; border-radius: 6px; transition: var(--transition); }
.dark-toggle:hover { background: rgba(255,255,255,0.1); color: var(--gold); }
.social-icons { display: flex; gap: 8px; }
.social-icons a { color: #bbb; font-size: 0.9rem; transition: var(--transition); }
.social-icons a:hover { color: var(--gold); }

/* ---- Site Header ---- */
.site-header {
    background: var(--card-bg); padding: 14px 0;
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: #fff;
    box-shadow: 0 4px 16px rgba(211,47,47,0.4);
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -0.5px; }
.logo-tag { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.header-search { flex: 1; max-width: 380px; }
.search-form { display: flex; background: var(--bg); border: 2px solid var(--border); border-radius: 50px; overflow: hidden; transition: var(--transition); }
.search-form:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(211,47,47,0.1); }
.search-form input { flex: 1; padding: 10px 18px; background: none; border: none; font-size: 0.9rem; color: var(--text); outline: none; }
.search-form button { padding: 10px 20px; background: var(--red); color: #fff; font-size: 0.95rem; border-radius: 0 50px 50px 0; transition: var(--transition); }
.search-form button:hover { background: var(--red-dark); }

/* ---- Sticky Nav ---- */
.main-nav {
    background: var(--nav-bg); position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.main-nav .container { position: relative; }
.nav-list { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.85); padding: 14px 14px;
    font-size: 0.88rem; font-weight: 600; white-space: nowrap;
    transition: var(--transition); position: relative;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after, .nav-link:hover::after {
    content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
    height: 3px; background: var(--red); border-radius: 3px 3px 0 0;
}
.nav-link i { font-size: 0.8rem; }
.mega-arrow { font-size: 0.65rem !important; margin-left: 2px; }
.nav-highlight { background: var(--red) !important; border-radius: 6px; margin: 6px 4px; padding: 8px 14px !important; }
.nav-highlight:hover { background: var(--red-dark) !important; }
.nav-highlight::after { display: none !important; }

/* Mega Menu */
.has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu {
    position: absolute; top: 100%; left: 0; width: 480px;
    background: var(--card-bg); border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); padding: 20px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.2s ease; z-index: 100;
}
.mega-grid { display: grid; grid-template-columns: 1fr 140px; gap: 20px; }
.mega-news h4 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.mega-news-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); transition: var(--transition); }
.mega-news-item:last-child { border-bottom: none; }
.mega-news-item img { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.mega-news-item span { font-size: 0.85rem; color: var(--text); font-weight: 500; line-height: 1.4; }
.mega-news-item:hover span { color: var(--red); }
.mega-links { display: flex; flex-direction: column; gap: 8px; }
.mega-links a { font-size: 0.85rem; color: var(--text-muted); padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg); transition: var(--transition); }
.mega-links a:hover { background: var(--red); color: #fff; }

/* Mobile Menu Button */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* ---- Breaking Ticker ---- */
.breaking-ticker {
    background: var(--breaking-bg); color: #fff;
    padding: 10px 0; overflow: hidden;
}
.breaking-ticker .container { display: flex; align-items: center; gap: 0; }
.ticker-label {
    background: #fff; color: var(--red);
    padding: 4px 16px; font-weight: 800; font-size: 0.8rem;
    white-space: nowrap; border-radius: 4px; letter-spacing: 1px;
    flex-shrink: 0; margin-right: 16px; display: flex; align-items: center; gap: 6px;
}
.ticker-wrapper { flex: 1; overflow: hidden; }
.ticker-content { display: flex; gap: 48px; animation: tickerScroll 30s linear infinite; white-space: nowrap; }
.ticker-content:hover { animation-play-state: paused; }
.ticker-item { font-size: 0.9rem; font-weight: 600; flex-shrink: 0; }
.ticker-item a { color: #fff; }
.ticker-item a:hover { text-decoration: underline; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Hero Section ---- */
.hero-section { padding: 24px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.hero-card { display: block; border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hero-card:hover .hero-img-wrap img { transform: scale(1.04); }
.hero-content { padding: 20px; background: var(--card-bg); }
.hero-content h1 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; color: var(--text); margin-bottom: 10px; }
.hero-summary { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.news-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.news-meta span { display: flex; align-items: center; gap: 5px; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-card-side { display: flex; gap: 12px; background: var(--card-bg); border-radius: var(--radius); padding: 12px; align-items: flex-start; }
.side-img { position: relative; width: 100px; flex-shrink: 0; }
.side-img img { width: 100px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.side-content { flex: 1; }
.side-content h3 { font-size: 0.88rem; line-height: 1.4; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.side-content .time-stamp { font-size: 0.75rem; color: var(--text-muted); }

/* Badges */
.cat-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--red); color: #fff; padding: 3px 10px;
    font-size: 0.72rem; font-weight: 700; border-radius: 4px; letter-spacing: 0.5px;
    text-transform: uppercase;
}
.cat-badge.small { padding: 2px 8px; font-size: 0.67rem; top: 6px; left: 6px; }
.badge-breaking {
    position: absolute; top: 10px; right: 10px;
    background: #FF1744; color: #fff; padding: 3px 10px;
    font-size: 0.7rem; font-weight: 800; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 1px;
}
.badge-factcheck { position: absolute; bottom: 10px; left: 10px; background: #1565C0; color: #fff; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; border-radius: 4px; }
.badge-sponsored { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); color: #ffcc00; padding: 3px 10px; font-size: 0.68rem; border-radius: 4px; }
.badge-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; background: rgba(0,0,0,0.7); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.pulse { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(255,23,68,0.5); } 50%{ box-shadow: 0 0 0 8px rgba(255,23,68,0); } }

/* ---- Main Content Layout ---- */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 24px 0 40px; }
.news-main-col { min-width: 0; }

/* ---- Location Filter ---- */
.location-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; background: var(--bg); border: 2px solid var(--border); color: var(--text-muted); transition: var(--transition); }
.chip.active, .chip:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- Trending Tags ---- */
.trending-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; background: var(--card-bg); padding: 12px 16px; border-radius: var(--radius); border-left: 4px solid var(--saffron); }
.section-label { font-size: 0.82rem; font-weight: 700; color: var(--saffron); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tags-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.trend-tag { background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; transition: var(--transition); }
.trend-tag:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Section Header ---- */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; position: relative; padding-left: 16px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 5px; background: var(--red); border-radius: 3px; }
.see-all { font-size: 0.82rem; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.see-all:hover { gap: 10px; }

/* ---- News Card Grid ---- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.news-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-body { padding: 14px; }
.card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title-link:hover .card-title { color: var(--red); }
.card-summary { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 10px; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-actions { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.card-actions button { padding: 5px 9px; border-radius: var(--radius-sm); background: var(--bg); color: var(--text-muted); font-size: 0.78rem; transition: var(--transition); }
.card-actions button:hover { background: var(--red); color: #fff; }
.meta-views { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Infinite Scroll Loader */
.infinite-loader { text-align: center; padding: 40px; display: none; }
.spinner { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.spinner span { width: 12px; height: 12px; background: var(--red); border-radius: 50%; animation: bounce 1.2s infinite; }
.spinner span:nth-child(2) { animation-delay: 0.2s; }
.spinner span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.widget-header { padding: 14px 18px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.widget-header i { color: var(--gold); }
.widget-body { padding: 16px; }

/* Trending Widget */
.trending-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); transition: var(--transition); }
.trending-item:last-child { border-bottom: none; }
.trending-item:hover .trend-title { color: var(--red); }
.trend-num { width: 28px; height: 28px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; flex-shrink: 0; }
.trend-num:nth-child(1) { background: var(--gold); color: var(--ink); }
.trend-info { flex: 1; }
.trend-cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 3px; }
.trend-title { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.4; }

/* Poll Widget */
.poll-question { font-weight: 700; font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5; }
.poll-form { display: flex; flex-direction: column; gap: 10px; }
.poll-option { cursor: pointer; }
.poll-option input { display: none; }
.option-text { font-size: 0.85rem; display: block; margin-bottom: 4px; font-weight: 600; color: var(--text); }
.poll-bar { position: relative; background: var(--bg); border-radius: 20px; height: 24px; overflow: hidden; }
.poll-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--saffron)); border-radius: 20px; transition: width 0.5s ease; }
.poll-pct { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; font-weight: 700; color: var(--ink); }
.btn-vote { width: 100%; background: var(--red); color: #fff; padding: 10px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; margin-top: 6px; transition: var(--transition); }
.btn-vote:hover { background: var(--red-dark); }
.poll-total { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* Mandi Table */
.mandi-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.mandi-table th { background: var(--bg); padding: 8px; text-align: left; font-weight: 700; color: var(--text-muted); font-size: 0.75rem; }
.mandi-table td { padding: 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.mandi-table .price { color: var(--saffron); font-weight: 700; }
.see-all-link { display: block; text-align: center; margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--red); transition: var(--transition); }
.see-all-link:hover { color: var(--red-dark); }

/* Events Widget */
.event-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.event-item:last-child { border-bottom: none; }
.event-date { background: var(--red); color: #fff; border-radius: var(--radius-sm); padding: 6px 10px; text-align: center; flex-shrink: 0; min-width: 48px; }
.ev-day { display: block; font-size: 1.2rem; font-weight: 900; line-height: 1; }
.ev-mon { display: block; font-size: 0.65rem; text-transform: uppercase; font-weight: 700; }
.ev-title { font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 3px; }
.ev-venue { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Jobs Widget */
.job-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.job-item:last-child { border-bottom: none; }
.job-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.job-org { font-size: 0.75rem; color: var(--red); font-weight: 600; display: block; margin-bottom: 3px; }
.job-deadline { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Newsletter Widget */
.newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.newsletter-form input { padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; background: var(--bg); color: var(--text); outline: none; transition: var(--transition); }
.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form button { background: var(--red); color: #fff; padding: 10px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.newsletter-form button:hover { background: var(--red-dark); }

/* WhatsApp Widget */
.whatsapp-subscribe-btn {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff; padding: 18px; border-radius: var(--radius);
    transition: var(--transition);
}
.whatsapp-subscribe-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.whatsapp-subscribe-btn i { font-size: 2.2rem; }
.whatsapp-subscribe-btn strong { display: block; font-size: 1rem; font-weight: 800; }
.whatsapp-subscribe-btn span { font-size: 0.8rem; opacity: 0.85; }

/* ---- Reaction Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.reaction-modal { background: var(--card-bg); border-radius: 60px; padding: 16px 24px; box-shadow: var(--shadow-lg); }
.reactions-row { display: flex; gap: 12px; }
.reaction-btn { font-size: 2rem; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; }
.reaction-btn:hover { transform: scale(1.3) translateY(-8px); background: var(--bg); }
.reaction-btn span { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }

/* ---- Share Modal ---- */
.share-modal { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); width: 380px; position: relative; }
.share-modal h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; text-align: center; }
.share-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: var(--radius); font-size: 0.78rem; font-weight: 700; color: #fff; transition: var(--transition); }
.share-btn:hover { transform: translateY(-3px); }
.share-btn i { font-size: 1.4rem; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.telegram { background: #0088CC; }
.share-btn.copy-link { background: var(--ink); }
.share-btn.more { background: var(--text-muted); }
.modal-close { position: absolute; top: 12px; right: 16px; color: var(--text-muted); font-size: 1.2rem; padding: 4px 8px; border-radius: 50%; transition: var(--transition); }
.modal-close:hover { background: var(--bg); color: var(--red); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding: 48px 0 32px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo .logo-mark { width: 40px; height: 40px; font-size: 1.4rem; }
.footer-logo span { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: #fff; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: var(--transition); }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-links h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--red); display: inline-block; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links ul li, .footer-links ul li a { font-size: 0.83rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: var(--gold); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ---- Ad Slots ---- */
.ad-slot { border-radius: var(--radius); overflow: hidden; margin: 16px 0; text-align: center; }
.ad-slot img { width: 100%; border-radius: var(--radius); }

/* ---- Smooth Animations ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.news-card { animation: fadeInUp 0.4s ease both; }
.news-card:nth-child(2) { animation-delay: 0.05s; }
.news-card:nth-child(3) { animation-delay: 0.1s; }
.news-card:nth-child(4) { animation-delay: 0.15s; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding: 12px 0; font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-muted); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* ---- Toast Notification ---- */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 0.88rem; font-weight: 600; z-index: 99999; transform: translateY(100px); opacity: 0; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid #4CAF50; }
.toast.error { border-left: 4px solid var(--red); }

/* ---- ADMIN Panel Styles ---- */
.admin-body { display: flex; min-height: 100vh; background: #0F1117; }
.admin-sidebar { width: 260px; background: #111320; border-right: 1px solid #1E2235; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; transition: var(--transition); display: flex; flex-direction: column; }
.admin-sidebar .logo { padding: 24px 20px; border-bottom: 1px solid #1E2235; display: flex; align-items: center; gap: 12px; }
.admin-sidebar .logo .logo-mark { width: 40px; height: 40px; font-size: 1.3rem; flex-shrink: 0; }
.admin-sidebar .logo span { color: #fff; font-weight: 800; font-size: 1.1rem; }
.admin-nav { flex: 1; padding: 16px 0; }
.admin-nav-group { margin-bottom: 8px; }
.admin-nav-label { padding: 8px 20px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #4A4A6A; }
.admin-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: #8888AA; font-size: 0.88rem; font-weight: 600; transition: var(--transition); border-left: 3px solid transparent; }
.admin-nav-link i { width: 18px; text-align: center; font-size: 0.9rem; }
.admin-nav-link:hover, .admin-nav-link.active { color: #fff; background: rgba(211,47,47,0.1); border-left-color: var(--red); }
.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { background: #111320; border-bottom: 1px solid #1E2235; padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; }
.admin-topbar h1 { color: #fff; font-size: 1.2rem; font-weight: 800; }
.admin-content { padding: 28px; flex: 1; }
.admin-card { background: #111320; border-radius: 12px; border: 1px solid #1E2235; padding: 24px; margin-bottom: 24px; }
.admin-card h2 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #1E2235; display: flex; align-items: center; gap: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: #111320; border-radius: 12px; border: 1px solid #1E2235; padding: 22px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; transition: var(--transition); }
.stat-card:hover { transform: translateY(-3px); border-color: var(--red); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent, var(--red)); }
.stat-num { font-size: 2rem; font-weight: 900; color: #fff; font-family: var(--font-display); }
.stat-label { font-size: 0.82rem; color: #8888AA; font-weight: 600; }
.stat-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; color: var(--accent, var(--red)); opacity: 0.1; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; background: #0F1117; color: #8888AA; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; text-align: left; font-weight: 700; }
.admin-table td { padding: 14px 16px; border-top: 1px solid #1E2235; color: #C0C0D8; font-size: 0.85rem; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-pub { background: rgba(76,175,80,0.15); color: #4CAF50; }
.badge-dft { background: rgba(100,100,150,0.2); color: #9090B0; }
.badge-pnd { background: rgba(255,152,0,0.15); color: #FF9800; }
.badge-brk { background: rgba(211,47,47,0.2); color: #FF5252; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: #1E2235; color: #C0C0D8; border: 1px solid #2D3250; }
.btn-secondary:hover { background: #252840; }
.btn-danger { background: rgba(211,47,47,0.15); color: #FF5252; border: 1px solid rgba(211,47,47,0.3); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; color: #8888AA; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.form-control { width: 100%; padding: 11px 16px; background: #0F1117; border: 1px solid #1E2235; border-radius: 8px; color: #E0E0F0; font-size: 0.88rem; font-family: var(--font-body); outline: none; transition: var(--transition); }
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(211,47,47,0.15); }
.form-row { display: grid; gap: 20px; }
.form-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input { accent-color: var(--red); width: 18px; height: 18px; }
.form-check span { color: #C0C0D8; font-size: 0.88rem; }
select.form-control option { background: #1A1A2E; }
textarea.form-control { min-height: 200px; resize: vertical; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { display: grid; grid-template-columns: repeat(2, 1fr); }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --font-size: 15px; }
    .top-bar { display: none; }
    .header-inner { flex-direction: column; gap: 12px; }
    .header-search { max-width: 100%; width: 100%; }
    .mobile-menu-btn { display: flex; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 10; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--nav-bg); padding: 12px 0; box-shadow: var(--shadow-lg); border-top: 1px solid rgba(255,255,255,0.1); z-index: 200; }
    .nav-list.open { display: flex; }
    .has-mega .mega-menu { position: static; opacity: 1; visibility: visible; transform: none; border-radius: 0; border-top: none; box-shadow: none; padding: 0; width: 100%; background: rgba(255,255,255,0.05); display: none; }
    .has-mega.mega-open .mega-menu { display: block; }
    .mega-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
    .share-modal { width: calc(100vw - 32px); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .ticker-label { display: none; }
    .admin-content { padding: 16px; }
}


/* ============================================================
   COMPLETE FIXES v2.0
   ============================================================ */

/* STICKY HEADER */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
    background: var(--card-bg) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.main-nav {
    position: sticky !important;
    top: 72px !important;
    z-index: 1000 !important;
}

/* CITY FILTER - ek line, scroll */
.location-filter {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}
.filter-label {
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.filter-chips-scroll {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}
.filter-chips-scroll::-webkit-scrollbar { display: none; }
.filter-chips-scroll .chip,
.filter-chips .chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    border: 2px solid var(--border) !important;
    background: var(--card-bg) !important;
    color: var(--text) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    scroll-snap-align: start;
}
.filter-chips-scroll .chip:hover,
.filter-chips-scroll .chip.active,
.filter-chips .chip:hover,
.filter-chips .chip.active {
    background: var(--red) !important;
    color: #fff !important;
    border-color: var(--red) !important;
}

/* TICKER - medium speed, label fixed */
.breaking-ticker { overflow: hidden; }
.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker-content {
    display: flex !important;
    gap: 60px !important;
    animation: tickerRoll 40s linear infinite !important;
    white-space: nowrap !important;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes tickerRoll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-label {
    flex-shrink: 0 !important;
    z-index: 2;
}

/* MOBILE DRAWER */
.tk-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
}
.tk-overlay.open { display: block; }

.tk-drawer {
    position: fixed;
    top: 0;
    right: -65vw;
    width: 65vw;
    max-width: 310px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 3001;
    transition: right 0.28s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 30px rgba(0,0,0,0.3);
    overflow: hidden;
}
.tk-drawer.open { right: 0 !important; }

.tk-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: #1a1a2e;
    border-bottom: 3px solid var(--red);
    flex-shrink: 0;
}
.tk-drawer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}
.tk-drawer-mark {
    width: 36px; height: 36px;
    background: var(--red);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 900; color: #fff;
    flex-shrink: 0;
}
.tk-drawer-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
}
.tk-close {
    width: 33px; height: 33px;
    background: rgba(255,255,255,0.12);
    border: none; border-radius: 50%;
    color: #fff; font-size: 1.05rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.tk-close:hover { background: rgba(255,255,255,0.28); }

.tk-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}
.tk-drawer-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 20px;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}
.tk-drawer-link:hover { background: rgba(220,38,38,0.07); color: var(--red); }
.tk-drawer-link:last-child { border-bottom: none; }
.tk-drawer-link i {
    width: 22px; text-align: center;
    color: var(--red);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Mobile layout fixes */
@media (max-width: 768px) {
    .main-nav { top: 64px !important; }
    .header-inner {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    .site-logo { flex: 1 !important; min-width: 0 !important; }
    .header-search { display: none !important; }
    .mobile-menu-btn {
        display: flex !important;
        position: static !important;
        transform: none !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
}

/* sticky-nav fix for header.php */
.sticky-nav {
    position: sticky !important;
    top: 70px !important;
    z-index: 1000 !important;
}
@media (max-width: 768px) {
    .sticky-nav { top: 56px !important; }
    .site-header { top: 0 !important; }
    .header-inner {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    .header-search { display: none !important; }
    .mobile-menu-btn {
        display: flex !important;
        position: static !important;
        transform: none !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
}