/* ============================================================
   INSTITUTE NEWS PORTAL THEME - JAGTO BHARAT (जागता भारत)
   Color Palette: News Crimson Red (#dc2626), Deep Navy (#0f172a), Saffron Gold (#f59e0b), Paper White (#ffffff)
   Aesthetic: High-Authority National Institute & Campus Newsroom Portal
   ============================================================ */

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-soft: #fef2f2;
    --primary-border: #fecaca;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #ea580c;
    --accent-gold: #f59e0b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1360px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 1. Breaking News Top Alert Ticker */
.breaking-ticker-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
    border-bottom: 2px solid var(--primary);
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
}

.ticker-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.4s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.ticker-marquee {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #cbd5e1;
}

.ticker-marquee a {
    color: #ffffff;
}

.ticker-marquee a:hover {
    color: #fca5a5;
    text-decoration: underline;
}

.ticker-right-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* 2. Top Header Utility Bar */
.top-header-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.live-date-location {
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-date-location strong {
    color: #0f172a;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #475569;
}

.top-header-right a {
    color: #475569;
    font-weight: 600;
}

.top-header-right a:hover {
    color: var(--primary);
}

/* 3. Main Site Navigation Bar */
.news-header {
    background: #ffffff;
    border-bottom: 2px solid #0f172a;
    position: relative;
    z-index: 50;
    transition: all 0.2s ease;
}

.news-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    gap: 16px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo img {
    height: 44px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.news-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.news-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.news-nav-link {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    line-height: 1;
    position: relative;
    transition: color 0.15s ease;
}

.news-nav-link:hover, .news-nav-link.active {
    color: var(--primary);
}

.news-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.news-nav-link:hover::after, .news-nav-link.active::after {
    transform: scaleX(1);
}

.news-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-news-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.2s ease;
}

.btn-news-alert:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    font-size: 20px;
    color: #1e293b;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 4. Category Filter Bar (Sub-Header) */
.category-filter-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.filter-pills-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* 5. Classic 3-Section Newsroom Hero Grid */
.newsroom-hero {
    padding: 30px 0;
}

.newsroom-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.45fr 0.9fr;
    gap: 24px;
    align-items: start;
}

/* Left: Fast Campus Flash Bulletins */
.flash-bulletins-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.box-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 16px;
}

.box-title-bar h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulletin-item {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.bulletin-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bulletin-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.bulletin-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    transition: color 0.15s ease;
}

.bulletin-title:hover {
    color: var(--primary);
}

/* Center: Mega Lead Breaking Story */
.lead-story-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.lead-story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.lead-thumb-wrap {
    position: relative;
    width: 100%;
    height: 310px;
    overflow: hidden;
    background: #0f172a;
}

.lead-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lead-story-card:hover .lead-thumb-wrap img {
    transform: scale(1.03);
}

.lead-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lead-body {
    padding: 24px;
}

.lead-category {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.lead-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 12px;
}

.lead-title:hover {
    color: var(--primary);
}

.lead-excerpt {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.lead-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #64748b;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

/* Right: Trending 1-5 Most Read */
.trending-box-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.trending-item {
    display: flex;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-num {
    font-size: 28px;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.trending-item:hover .trending-num {
    color: var(--primary);
}

.trending-item-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    transition: color 0.15s ease;
}

.trending-item-title:hover {
    color: var(--primary);
}

.trending-item-meta {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
}

/* 6. Section Block & News Grid */
.news-section-block {
    margin-bottom: 40px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.section-head-title {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-head-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.section-head-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.news-cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.news-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 8px;
}

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

.news-card-excerpt {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 14px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

/* 7. Audio News Player Widget ("खबर सुनें") */
.news-audio-player {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 18px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.audio-play-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    transition: transform 0.15s ease;
}

.audio-play-btn:hover {
    transform: scale(1.06);
}

.audio-info {
    flex: 1;
}

.audio-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.audio-progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
}

.audio-progress-fill {
    width: 35%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

/* 8. Viral Social Share Buttons */
.viral-share-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-btn-wa {
    background: #25D366;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-btn-tg {
    background: #0088cc;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-btn-tw {
    background: #000000;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 9. Article Content Styling */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.article-header {
    margin-bottom: 24px;
}

.article-headline {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    color: #0f172a;
    margin: 12px 0;
}

.article-lead-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 16px 0 24px;
}

.article-content {
    font-size: 16.5px;
    line-height: 1.8;
    color: #1e293b;
}

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

.article-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 32px 0 14px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.news-highlight-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 20px;
    margin: 24px 0;
}

.news-highlight-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.news-highlight-box ul {
    padding-left: 20px;
    margin: 0;
}

.news-highlight-box li {
    margin-bottom: 8px;
    font-size: 14.5px;
}

/* 10. News Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.footer-links {
    list-style: none;
    font-size: 13.5px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .newsroom-grid {
        grid-template-columns: 1fr 1fr;
    }
    .flash-bulletins-card {
        order: 3;
        grid-column: span 2;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .newsroom-grid {
        grid-template-columns: 1fr;
    }
    .flash-bulletins-card {
        grid-column: span 1;
    }
    .news-cards-grid-3 {
        grid-template-columns: 1fr;
    }
    .news-nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .ticker-right-meta {
        display: none;
    }
}
