@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;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.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;
    margin: 0;
}

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

.header-right {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
}

.mobile-nav-toggle,
.mobile-search-toggle {
    display: none;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-form input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 0.95rem;
}

.search-form button {
    padding: 0.6rem 1.2rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: var(--accent-hover);
}

/* Mobile Drawer Styling */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0.4s;
}

.mobile-drawer.active {
    visibility: visible;
}

.drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-drawer.active .drawer-backdrop {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-white);
    box-shadow: 10px 0 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2001;
}

.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

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

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

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.3s;
}

.drawer-close:hover {
    color: var(--accent-red);
}

.drawer-body {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer-menu {
    list-style: none;
    margin-bottom: 2rem;
}

.drawer-menu li {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-drawer.active .drawer-menu li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-drawer.active .drawer-menu li:nth-child(1) { transition-delay: 0.05s; }
.mobile-drawer.active .drawer-menu li:nth-child(2) { transition-delay: 0.1s; }
.mobile-drawer.active .drawer-menu li:nth-child(3) { transition-delay: 0.15s; }
.mobile-drawer.active .drawer-menu li:nth-child(4) { transition-delay: 0.2s; }
.mobile-drawer.active .drawer-menu li:nth-child(5) { transition-delay: 0.25s; }
.mobile-drawer.active .drawer-menu li:nth-child(6) { transition-delay: 0.3s; }
.mobile-drawer.active .drawer-menu li:nth-child(7) { transition-delay: 0.35s; }

.drawer-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.drawer-menu a i {
    margin-right: 12px;
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.3s;
}

.drawer-menu a:hover {
    background: var(--bg-light);
    color: var(--accent-red);
    padding-left: 1.2rem;
}

.drawer-menu a:hover i {
    color: var(--accent-red);
}

.drawer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.drawer-info {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.drawer-info div {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-info i {
    color: var(--accent-red);
}

.drawer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: auto;
    padding-top: 1rem;
}

.drawer-social a {
    background: var(--bg-light);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.drawer-social a:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-3px);
}

body.drawer-open {
    overflow: hidden;
}

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) {
    .header-main {
        padding: 1rem 0;
    }
    
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 2.2rem;
        margin: 0;
    }
    
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.5rem;
        transition: color 0.2s;
    }
    
    .mobile-nav-toggle:hover {
        color: var(--accent-red);
    }
    
    .mobile-search-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.5rem;
        transition: color 0.2s;
    }
    
    .mobile-search-toggle:hover {
        color: var(--accent-red);
    }
    
    /* Toggle active icon classes for search trigger */
    .mobile-search-toggle .fa-times {
        display: none;
    }
    
    .mobile-search-toggle.active .fa-search {
        display: none;
    }
    
    .mobile-search-toggle.active .fa-times {
        display: block;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        max-width: none;
        width: auto;
    }
    
    .search-form {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        background: var(--bg-white);
        padding: 0.8rem 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 100;
        border-top: 1px solid var(--border-color);
        pointer-events: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .search-form.active {
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Horizontal scrollable nav on mobile */
    nav {
        position: sticky;
        top: 0;
        z-index: 999;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        background: var(--nav-bg);
    }
    
    nav::-webkit-scrollbar {
        display: none;
    }
    
    nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .nav-links {
        justify-content: flex-start;
        gap: 1.2rem;
        padding: 0 1.5rem;
        width: max-content;
        flex-wrap: nowrap;
    }
    
    .nav-links li {
        display: inline-block;
    }
    
    .nav-links a {
        padding: 0.8rem 0.2rem;
        font-size: 1.05rem;
        display: inline-block;
    }
    
    .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;
}
