/* Current24 News Portal - Master Stylesheet (Premium Vanilla CSS) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design System --- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    --font-body: 'Inter', 'Noto Sans Devanagari', sans-serif;
--font-english: 'Arial', sans-serif;
    --font-english-bold: 'Arial Black', sans-serif;
    

    /* Transition speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --border-width: 1px;
    
    /* Box Shadows */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 51, 85, 0.35);

    /* Dynamic Theme Defaults (Light Theme) */
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #edf1f7;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(226, 232, 240, 0.8);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-red: #e50914; /* Aaj Tak Red */
    --accent-blue: #00e5ff; /* Tech Cyan */
    --accent-orange: #ff9100; /* Dainik Bhaskar Orange */
    --primary-glow: rgba(229, 9, 20, 0.15);
    
    --ad-bg: #f8fafc;
    --ad-border: #e2e8f0;
}

[data-theme="dark"] {
    /* Dark Theme Override */
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --glass-bg: rgba(17, 24, 39, 0.85);
    --glass-border: rgba(37, 99, 235, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --accent-red: #ff3355; /* Hot Neon Red */
    --accent-blue: #00f0ff; /* Electric Cyan */
    --accent-orange: #ffa726;
    --primary-glow: rgba(255, 51, 85, 0.3);
    
    --ad-bg: #1e293b;
    --ad-border: #334155;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* --- Base Resets & Global Scrollbar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* --- App Layout Layout Configurations --- */
.app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Sticky Modern Navigation Header --- */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: var(--border-width) solid var(--glass-border);
    transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.brand-logo span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo-img {
    height: 48px;
    max-height: 48px;
    object-fit: contain;
    transition: transform var(--transition-smooth);
    display: block;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 25px; /* Capsule styled */
    transition: all var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, var(--accent-orange, #ff9100), var(--accent-red));
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.25);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-btn {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.action-btn:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-2px);
}

.notification-badge-wrapper {
    position: relative;
}
.badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

/* --- Dynamic Breaking News Ticker --- */
.ticker-container {
    background: linear-gradient(90deg, #1e0000, #3a000d);
    color: white;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    position: sticky;
    top: 70px;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
[data-theme="light"] .ticker-container {
    background: linear-gradient(90deg, #ffeaec, #ffe5e7);
    color: #8c0018;
}

.ticker-label {
    background: var(--accent-red);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
    color: white;
    position: relative;
    box-shadow: 5px 0 15px rgba(0,0,0,0.15);
}
.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 10px solid var(--accent-red);
}

.ticker-marquee {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    cursor: pointer;
    font-weight: 600;
}
.ticker-item::after {
    content: '•';
    margin-left: 30px;
    color: var(--accent-blue);
    font-weight: bold;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Hero Banner & Weather Ticker Bar --- */
.hero-banner-row {
    background: var(--bg-secondary);
    border-bottom: var(--border-width) solid var(--glass-border);
    padding: 8px 20px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-widget {
    display: flex;
    gap: 15px;
    align-items: center;
}

.weather-item span {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Three-Column Grid Homepage Layout --- */
.home-layout {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 50px;
}

/* Sidebars styling */
.sidebar-sticky {
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Categories List in Left Sidebar */
.category-sidebar-list {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 15px;
    border: var(--border-width) solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
}

.sidebar-heading {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-tertiary);
    position: relative;
}
.sidebar-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

.category-nav-btn {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}
.category-nav-btn:hover, .category-nav-btn.active {
    background: var(--bg-tertiary);
    color: var(--accent-red);
    padding-left: 18px;
}

/* AdSense Ad Friendly Styled Boxes & Custom Ads */
.ad-zone-container {
    position: relative;
    background-color: transparent;
    border: none;
    padding: 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-smooth);
    width: 100%;
}

.ad-zone-container.has-ad {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
}

.ad-zone-container::before, .ad-zone-container::after,
.ad-zone-container.has-ad::before, .ad-zone-container.has-ad::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.ad-zone-container:empty {
    /* Prevent collapsing empty ad containers, as Google AdSense requires them to be visible with dimension support to initialize and load successfully */
    display: flex !important;
    min-height: 90px;
    height: auto;
    margin: 20px 0;
    padding: 0;
    border: none;
    background: transparent;
}


.ad-custom-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-smooth);
}

.ad-custom-link:hover {
    transform: scale(1.015);
}

.ad-custom-img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-small);
}

.adsense-placeholder {
    background-color: var(--ad-bg);
    border: 2px dashed var(--ad-border);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: border-color var(--transition-smooth);
}

.adsense-placeholder::before {
    content: 'SPONSOR AD';
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: bold;
    margin-bottom: 8px;
}

.adsense-leaderboard {
    width: 100%;
    height: 90px;
    margin: 20px 0;
}
.adsense-rectangle {
    width: 100%;
    min-height: 250px;
}
.adsense-inline {
    width: 100%;
    min-height: 120px;
    margin: 20px 0;
}

.mock-ad-content {
    color: var(--text-secondary);
}
.mock-ad-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-red);
    margin-bottom: 4px;
}
.mock-ad-desc {
    font-size: 11px;
    line-height: 1.2;
}

/* Vintage E-Paper Editorial Ad Placeholders */
.epaper-ad-box {
    display: flex !important;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    height: 100%;
    margin-bottom: 20px;
    page-break-inside: avoid;
}

.epaper-ad-placeholder {
    border: 2px dashed #990011;
    background-color: #fffdf9;
    color: #111111;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    height: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-smooth);
}

.epaper-ad-placeholder:hover {
    background-color: #fffcf0;
    border-color: #b30018;
}

.placeholder-tag {
    font-size: 8px;
    letter-spacing: 1px;
    color: #666666;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.placeholder-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 900;
    color: #990011;
    margin: 0 0 4px 0;
}

.placeholder-size {
    font-size: 11px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.placeholder-contact {
    font-size: 10px;
    line-height: 1.4;
    color: #555555;
    margin: 0;
    font-weight: 500;
}

.epaper-ad-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.epaper-ad-img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0,0,0,0.15);
    transition: transform var(--transition-smooth);
}

.epaper-ad-link:hover .epaper-ad-img {
    transform: scale(1.02);
}

/* --- News Grid Cards & Feed Area --- */
.main-feed-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Pinned/Featured Card (Aaj Tak Layout) */
.featured-article-card {
    display: flex;
    flex-direction: column;
    height: auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: var(--border-width) solid var(--glass-border);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 145, 0, 0.12), var(--shadow-medium);
}
[data-theme="dark"] .featured-article-card:hover {
    box-shadow: 0 15px 40px rgba(255, 51, 85, 0.15), var(--shadow-medium);
}

.featured-article-card-header {
    padding: 20px 20px 10px 20px;
}

.badge-tag {
    background-color: var(--accent-red);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    width: fit-content;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.badge-tag.tech { background-color: var(--accent-blue); color: #000; }
.badge-tag.sports { background-color: var(--accent-orange); }

.featured-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    margin: 5px 0 0 0;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.featured-article-card:hover .featured-title {
    color: var(--accent-red);
}

.featured-img-wrapper {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.featured-article-card:hover .featured-img {
    transform: scale(1.03);
}

.featured-article-card-footer {
    padding: 15px 20px 20px 20px;
    background: var(--bg-secondary);
}

.featured-excerpt {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.meta-row {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #cbd5e1;
}

/* News List Grid (Aaj Tak Layout) */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: var(--border-width) solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(255, 145, 0, 0.1), var(--shadow-medium);
    border-color: var(--accent-orange, #ff9100);
}
[data-theme="dark"] .news-card:hover {
    box-shadow: 0 15px 35px rgba(255, 51, 85, 0.15), var(--shadow-medium);
    border-color: var(--accent-red);
}

.news-card-header {
    padding: 15px 15px 10px 15px;
}

.news-card-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.news-card:hover .news-card-title {
    color: var(--accent-red);
}

.news-card-img-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    width: 100%;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.news-card:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-content {
    padding: 12px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-excerpt {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* --- Trending News Sidebar List --- */
.trending-sidebar-list {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 15px;
    border: var(--border-width) solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
}

.trending-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-tertiary);
    cursor: pointer;
}
.trending-item:last-child {
    border-bottom: none;
}

.trending-num {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    opacity: 0.6;
}

.trending-item-content {
    display: flex;
    flex-direction: column;
}

.trending-item-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.trending-item-views {
    font-size: 10px;
    color: var(--text-muted);
}

/* --- Single Article View Design --- */
.article-detail-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: var(--border-width) solid var(--glass-border);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    margin-top: 25px;
}

.article-category {
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.article-author-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-tertiary);
    margin-bottom: 25px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
}

.author-meta-name {
    font-weight: 700;
    color: var(--text-primary);
}

.author-meta-date {
    font-size: 12px;
    color: var(--text-muted);
}

.article-hero-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    object-fit: contain !important;
    display: block !important;
    box-shadow: var(--shadow-subtle);
}

.article-wysiwyg-content {
    font-size: 25px !important;
    line-height: 1.95 !important;
    color: var(--text-primary);
}

.article-wysiwyg-content p {
    margin-bottom: 20px;
}

.article-wysiwyg-content h2, .article-wysiwyg-content h3 {
    font-family: var(--font-heading);
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.article-wysiwyg-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-wysiwyg-content th {
    background-color: var(--bg-tertiary);
    font-weight: 700;
    padding: 12px;
    text-align: left;
    border: 1px solid var(--glass-border);
}

.article-wysiwyg-content td {
    padding: 12px;
    border: 1px solid var(--glass-border);
}

.article-wysiwyg-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: var(--radius-sm);
    margin: 20px auto !important;
    display: block !important;
    box-shadow: var(--shadow-subtle);
}

/* --- Floating Audio Speech Reader Card --- */
.audio-reader-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: var(--glass-bg);
    border: var(--border-width) solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 15px 20px;
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideUp 0.4s ease-out;
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-tertiary);
    padding-bottom: 8px;
}

.audio-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 15px;
}
.wave-bar {
    width: 3px;
    height: 100%;
    background-color: var(--accent-red);
    border-radius: 2px;
    animation: pulse 1.2s ease-in-out infinite alternate;
    transform-origin: bottom;
}
.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 80%; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 40%; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 100%; }

.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.audio-control-btn {
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition-fast);
}
.audio-control-btn.play {
    background: var(--accent-red);
    color: white;
    width: 46px;
    height: 46px;
    font-size: 20px;
}
.audio-control-btn:hover {
    transform: scale(1.05);
}

.audio-speed-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.audio-speed-slider input {
    flex-grow: 1;
    height: 4px;
    border-radius: 2px;
    accent-color: var(--accent-red);
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* --- Comment Box Design --- */
.comments-section {
    margin-top: 35px;
    border-top: 1px solid var(--bg-tertiary);
    padding-top: 30px;
}

.comment-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    background-color: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 15px;
    border: var(--border-width) solid var(--glass-border);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-muted);
}

/* --- Reporter Portal Specifics & Dynamic ID Card Designer --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* Interactive SVG ID Card Container */
.id-card-preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.id-card-element {
    width: 320px;
    height: 480px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #090e1a 0%, #1e1b4b 100%);
    border: 3px solid var(--accent-blue);
    padding: 25px;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.id-card-element::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.2) 0%, transparent 70%);
}

.id-card-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    color: var(--accent-red);
}
.id-card-logo span {
    color: var(--accent-blue);
}

.id-card-badge {
    background-color: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.id-photo-frame {
    width: 120px;
    height: 140px;
    border-radius: var(--radius-md);
    border: 2px solid white;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    margin-bottom: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.id-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-reporter-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    text-align: center;
}

.id-detail-list {
    width: 100%;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

.id-detail-row {
    display: flex;
    justify-content: space-between;
}

.id-detail-row span:last-child {
    font-weight: 700;
    color: white;
}

.id-qr-box {
    margin-top: 15px;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

/* --- WordPress-like WYSIWYG Editor Controls --- */
.editor-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: var(--border-width) solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 20px;
}

.editor-toolbar {
    background-color: var(--bg-tertiary);
    border-bottom: var(--border-width) solid var(--glass-border);
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.toolbar-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.toolbar-btn:hover {
    background-color: var(--accent-red);
    color: white;
}

.toolbar-select, .toolbar-color {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.editor-editable-area {
    min-height: 380px;
    padding: 20px;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    background-color: var(--bg-secondary);
    overflow-y: auto;
}
.editor-editable-area:focus {
    background-color: var(--bg-primary);
}

.editor-editable-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.editor-editable-area td, .editor-editable-area th {
    border: 1px solid var(--glass-border);
    padding: 8px;
}

/* --- Admin Moderation Styles --- */
.admin-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.scorecard-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: var(--border-width) solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
}

.scorecard-val {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1.2;
}

.scorecard-lbl {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.table-moderation {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: var(--border-width) solid var(--glass-border);
}

.table-moderation th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 700;
    padding: 15px;
    text-align: left;
    font-size: 13px;
}

.table-moderation td {
    padding: 15px;
    border-bottom: 1px solid var(--bg-tertiary);
    font-size: 14px;
    color: var(--text-secondary);
}

.table-moderation tr:last-child td {
    border-bottom: none;
}

/* Buttons and Controls inside Tables */
.badge-status {
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-status.approved { background-color: rgba(16, 185, 129, 0.1); color: rgb(16, 185, 129); }
.badge-status.pending { background-color: rgba(245, 158, 11, 0.1); color: rgb(245, 158, 11); }
.badge-status.rejected { background-color: rgba(239, 68, 68, 0.1); color: rgb(239, 68, 68); }

/* --- Mobile Bottom Navigation (Dainik Bhaskar Style) --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: var(--border-width) solid var(--glass-border);
    z-index: 999;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.06);
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 100%;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    gap: 4px;
}
.mobile-nav-item i {
    font-size: 18px;
    transition: transform var(--transition-fast);
}
.mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--accent-red);
}
.mobile-nav-item.active i {
    transform: scale(1.15);
}

/* --- Media Queries / Responsiveness Grid Changes --- */
@media (max-width: 1024px) {
    .home-layout {
        grid-template-columns: 180px 1fr; /* Drop right sidebar, let it stack or hide */
    }
    .home-sidebar-right {
        display: none; /* Hide trending/large ads on tablet */
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Space for mobile nav */
    }
    
    .app-container {
        padding: 0 10px;
    }
    
    .home-layout {
        grid-template-columns: 1fr; /* Clean single column */
        gap: 15px;
    }
    
    .home-sidebar-left {
        display: none; /* Hide categories menu sidebar */
    }
    
    .main-navbar {
        height: 60px;
    }
    .nav-grid {
        height: 60px;
    }
    .ticker-container {
        top: 60px;
    }
    .nav-links {
        display: none; /* Hide main links, use mobile bottom buttons instead */
    }
    
    .mobile-bottom-nav {
        display: block; /* Show Dainik Bhaskar style bar */
    }
    
    .news-cards-grid {
        grid-template-columns: 1fr; /* Stack news cards vertically */
    }
    
    .featured-article-card {
        height: 280px; /* Shorter feature card on mobile */
    }
    
    .featured-title {
        font-size: 20px;
    }
    .featured-excerpt {
        display: none; /* Hide paragraph on small cards */
    }
    
    .article-title {
        font-size: 24px;
    }
    .article-detail-container {
        padding: 15px;
    }
    
    .audio-reader-sticky {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 70px; /* Position right above mobile bottom navigation bar */
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr; /* Stack dashboard cards */
    }
    
    .admin-dashboard-cards {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid for metrics */
    }
}

/* --- Premium Category Navigation Dropdowns --- */
.nav-item-with-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: var(--border-width) solid var(--glass-border);
    border-radius: var(--radius-sm);
    min-width: 180px;
    box-shadow: var(--shadow-medium);
    padding: 8px 0;
    z-index: 1010;
    margin-top: 5px;
    animation: fadeInSlide 0.3s ease;
}

.nav-item-with-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
    color: var(--accent-red);
    background: var(--bg-tertiary);
    padding-left: 20px;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FontAwesome and icon library load simulations */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* --- Citizen Journalism System Custom Styles --- */
.citizen-banner-container {
    margin-bottom: 25px;
    cursor: pointer;
    width: 100%;
}

.citizen-pulse-banner {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.08) 0%, rgba(255, 145, 0, 0.08) 100%);
    border: 2px solid rgba(229, 9, 20, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.citizen-pulse-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg);
    animation: shineLight 3s infinite;
}

@keyframes shineLight {
    0% { left: -100%; }
    100% { left: 200%; }
}

.citizen-pulse-banner:hover {
    transform: translateY(-2px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-medium), 0 0 15px rgba(229, 9, 20, 0.1);
}

.pulse-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--accent-red);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: pulseRing 1.5s infinite ease-out;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.citizen-pulse-banner span {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.citizen-pulse-banner span i {
    color: var(--accent-red);
    font-size: 18px;
}

/* Citizen Portal Registration & Submit workspace cards */
.citizen-workspace-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    max-width: 600px;
    margin: 30px auto;
}

.citizen-workspace-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.citizen-form-group {
    margin-bottom: 20px;
}

.citizen-form-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.citizen-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.citizen-form-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
    background: var(--bg-secondary);
}

.citizen-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.citizen-btn-primary {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.citizen-btn-primary:hover {
    background: #c40812;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.citizen-tab-toggle {
    display: flex;
    border-bottom: 2px solid var(--glass-border);
    margin-bottom: 25px;
}

.citizen-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.citizen-tab-btn.active {
    color: var(--accent-red);
    border-bottom: 3px solid var(--accent-red);
}

/* Image preview box */
.citizen-image-preview-box {
    width: 100%;
    height: 180px;
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    background: var(--bg-tertiary);
    transition: all var(--transition-fast);
}

.citizen-image-preview-box:hover {
    border-color: var(--accent-red);
}

.citizen-image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.citizen-image-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
}

.citizen-image-preview-placeholder i {
    font-size: 28px;
    color: var(--accent-red);
}

/* --- Single News Reporter Byline & Interactive Engagement Deck --- */
.reporter-engagement-deck {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin: 15px 0 25px 0;
    box-shadow: var(--shadow-subtle);
    flex-wrap: wrap;
    gap: 15px;
}
.deck-reporter-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.deck-reporter-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-red);
    object-fit: cover;
}
.deck-reporter-meta {
    display: flex;
    flex-direction: column;
}
.deck-reporter-name {
    font-size: 14.5px;
    color: var(--text-primary);
    font-weight: 700;
}
.deck-reporter-title {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}
.deck-actions {
    display: flex;
    gap: 10px;
}
.engagement-btn {
    border: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}
.engagement-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.2);
}
.engagement-btn.active {
    background: var(--accent-red) !important;
    color: white !important;
    border-color: var(--accent-red) !important;
    animation: popEffect 0.3s ease;
}
.engagement-btn.active-follow {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
    animation: popEffect 0.3s ease;
}

@keyframes popEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* --- Dynamic Related Category News Scroll Slider --- */
.related-category-scroll-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin: 25px 0;
    box-shadow: var(--shadow-subtle);
}
.related-scroll-heading {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 8px;
}
.related-category-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.related-category-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.related-category-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}
.related-category-scroll-container::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}
.related-category-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}
.related-scroll-card {
    flex: 0 0 160px;
    max-width: 160px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.related-scroll-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-red);
}
.related-card-img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}
.related-card-title {
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Step 16: Accordions, Mobile Category Drawer, & Social Share Modal Styles
   ========================================================================== */

/* Collapsible Desktop Sidebar Accordion Subcategories */
.category-dropdown-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: background-color var(--transition-fast);
}

.category-dropdown-container.open {
    background-color: rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .category-dropdown-container.open {
    background-color: rgba(255, 255, 255, 0.02);
}

.category-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.category-dropdown-header .category-nav-btn {
    flex-grow: 1;
    margin-bottom: 0 !important;
    text-align: left;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.category-dropdown-header .dropdown-toggle-btn {
    background: none;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color var(--transition-fast);
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    height: 44px;
}

.category-dropdown-header .dropdown-toggle-btn:hover {
    color: var(--accent-red);
    background-color: rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .category-dropdown-header .dropdown-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.dropdown-arrow-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-dropdown-container.open .dropdown-arrow-icon {
    transform: rotate(180deg);
}

.category-dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    border-left: 2px solid var(--glass-border);
    margin-left: 20px;
    margin-bottom: 8px;
    margin-top: 2px;
}

.category-dropdown-container.open .category-dropdown-content {
    display: flex;
}

.category-dropdown-content .category-nav-btn.sub-btn {
    margin-bottom: 2px !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 15px;
    opacity: 0.9;
}

/* Slide-Up Mobile Category Drawer Overlay and Card */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: fadeIn 0.3s var(--transition-fast);
    backdrop-filter: blur(4px);
}

.mobile-drawer-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-secondary);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    animation: slideUpBottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 2px solid var(--accent-red);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.mobile-drawer-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-category-group {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}
.drawer-category-group:last-child {
    border-bottom: none;
}

.drawer-parent-link {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 6px 0;
    transition: color 0.2s;
}
.drawer-parent-link.active, .drawer-parent-link:hover {
    color: var(--accent-red);
}

.drawer-subcategory-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid var(--glass-border);
}

.drawer-sub-link {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s;
}
.drawer-sub-link.active, .drawer-sub-link:hover {
    color: var(--accent-orange);
}

/* Rich Social Share Modal */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1060;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease-out;
    padding: 20px;
}

.share-modal-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: var(--border-width) solid var(--glass-border);
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 420px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.share-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-md);
    color: white !important;
    font-weight: 700;
    font-size: 13.5px;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.share-social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.92);
}

.share-social-btn.whatsapp {
    background-color: #25d366;
}

.share-social-btn.telegram {
    background-color: #0088cc;
}

.share-social-btn.facebook {
    background-color: #1877f2;
}

.share-social-btn.twitter {
    background-color: #1da1f2;
}

.share-copy-section {
    display: flex;
    gap: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
    border: var(--border-width) solid var(--glass-border);
}

.share-copy-section input {
    flex-grow: 1;
    border: none;
    background: none;
    font-size: 12.5px;
    color: var(--text-secondary);
    padding: 8px 12px;
    outline: none;
    width: 100%;
}

.share-copy-section button {
    background: var(--accent-red);
    color: white;
    border: none;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}

.share-copy-section button:hover {
    background-color: #b30018;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUpBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Article Details Premium Layout Grid (Desktop Sidebar) --- */
.article-layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 50px;
}

/* Align top of main container inside grid */
.article-layout-grid .article-detail-container {
    margin-top: 0 !important;
}

.article-sidebar-right {
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Email Sharing Button styling */
.share-social-btn.email {
    background-color: #ea4335;
}

/* Responsive collapse on tablets and mobile screens */
@media (max-width: 992px) {
    .article-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .article-sidebar-right {
        display: none !important; /* Hide sidebar to keep mobile view clean and fast */
    }
}

/* --- Dainik Bhaskar Style Highlights Sidebar Feed --- */
.db-highlights-sidebar-list {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-subtle);
}

.db-highlight-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.db-highlight-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.db-highlight-card:first-child {
    padding-top: 0;
}

.db-highlight-card:hover {
    transform: translateX(4px);
}

.db-highlight-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.db-highlight-badge {
    align-self: start;
    font-size: 10px;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.db-highlight-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.db-highlight-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}

.db-highlight-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-share-btn {
    background: none;
    border: none;
    color: #25d366;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.db-share-btn:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #128c7e;
}

.db-highlight-img-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.db-highlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.db-highlight-card:hover .db-highlight-img {
    transform: scale(1.1);
}

.db-highlight-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.db-highlight-card:hover .db-highlight-play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

/* --- Premium AdSense Collapsing Override --- */
.ad-zone-container {
    min-height: 0px !important;
    height: auto !important;
    max-height: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    overflow: hidden;
    transition: all 0.3s ease;
}


