@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-red: #dc2626;
    --accent-hover: #b91c1c;
    --border-color: #e2e8f0;
    --nav-bg: #0f172a;
    --nav-text: #f8fafc;
}

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

body {
    font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-red);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.top-bar {
    background: var(--bg-white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-weather {
    display: flex;
    gap: 1rem;
}

.header-main {
    background: var(--bg-white);
    padding: 1.5rem 0;
    text-align: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: -1px;
    text-transform: uppercase;
    display: inline-block;
}

.logo span {
    color: var(--text-primary);
}

nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: var(--nav-text);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--bg-white);
}

/* Breaking News Ticker */
.breaking-news {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-label {
    background: var(--accent-red);
    color: white;
    padding: 0.3rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 3px;
    margin-right: 1rem;
    white-space: nowrap;
}

.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Layout Core */
.news-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Hero Section / Main Story */
.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 480px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

.hero-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.hero-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.category-tag {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.hero-content h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content .meta {
    color: #cbd5e1;
}

/* Grid layout for more stories */
.stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.story-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.2);
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover img {
    transform: scale(1.05);
}

.story-content {
    padding: 1.2rem;
}

.story-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Sidebar */
.section-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-red);
    padding-left: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 1.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.latest-list {
    list-style: none;
}

.latest-list li {
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.latest-list li:hover {
    transform: translateX(5px);
}

.latest-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-list h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

/* Article Page */
.article-header {
    margin: 2rem 0;
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2, .article-content h3 {
    margin: 2rem 0 1rem;
}

/* Footer */
footer {
    background: var(--nav-bg);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: white;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
}

/* Category Page */
.category-header {
    background: var(--bg-white);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    
    .nav-links a {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr !important;
    }
}

/* YouTube Feed Section */
.yt-subscribe-btn {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 10px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.yt-subscribe-btn:hover {
    background-color: #cc0000;
    color: white;
}

.video-card:hover .yt-play-icon {
    background: #ff0000 !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.video-card .yt-play-icon {
    transition: all 0.3s ease;
}
