@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&display=swap');

:root {
    --primary-color: #FF6B35; /* Saffron */
    --primary-dark: #E0531F;
    --primary-light: #FFEBE3;
    --navy-color: #0B132B; /* Deep Navy */
    --navy-light: #1C2541;
    --bg-light: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --font-ui: 'Inter', sans-serif;
    --font-content: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* Dark mode variable overrides */
[data-theme="dark"] {
    --bg-light: #0B132B;
    --card-bg: #1C2541;
    --text-dark: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --navy-color: #020617;
    --navy-light: #0F172A;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.3);
}

/* Reset styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6, .hindi-text {
    font-family: var(--font-content);
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   TICKER scrolling breaking news
   ============================================================ */
.ticker-wrap {
    background-color: #020617; /* Very dark navy */
    color: #FFFFFF;
    height: 38px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #b30000;
}

.ticker-title {
    background-color: #b30000; /* Matching crimson red */
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 13px;
    font-family: var(--font-content);
    z-index: 10;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-scroll {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    gap: 40px;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--font-content);
    font-size: 13.5px;
    font-weight: 500;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item::before {
    content: "•";
    color: #fbbf24; /* yellow dot */
    font-weight: bold;
}

@keyframes ticker {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ============================================================
   HEADER AND NAVIGATION
   ============================================================ */
.main-header {
    background-color: #b30000; /* Deep news crimson red */
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 8px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo design */
.header-logo-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.logo-text-hindi {
    font-family: var(--font-content);
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-badge {
    background-color: #22c55e; /* Green */
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    line-height: 1.1;
    align-self: center;
}

.logo-tagline {
    position: absolute;
    bottom: -15px;
    left: 0;
    font-size: 8px;
    color: #ffffff;
    opacity: 0.85;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Nav Menu scrollable */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 2px 0;
}

.header-nav-list {
    list-style: none;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    justify-content: center;
}

.header-nav-list::-webkit-scrollbar {
    display: none;
}

.header-nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-content);
    color: #ffffff;
    white-space: nowrap;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.header-nav-link:hover, .header-nav-item.active .header-nav-link {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f97316; /* Bright orange */
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.live-btn:hover {
    background-color: #ea580c;
    transform: scale(1.03);
}

.live-pulse {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.2s infinite ease-in-out;
}

.search-btn-trigger {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.search-btn-trigger:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

@keyframes livePulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.85); opacity: 0.5; }
}

@media (max-width: 992px) {
    .header-nav-list {
        justify-content: flex-start;
    }
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: #FFFFFF;
    cursor: pointer;
}

.search-form-wrap {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.search-input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 3px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 28px;
    padding: 10px 0;
    text-align: center;
    outline: none;
    font-family: var(--font-content);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   GRID HOMEPAGE DESIGN SYSTEM
   ============================================================ */
.main-wrapper {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* HERO SECTION SLIDER */
.hero-wrapper {
    margin-bottom: 40px;
}

.hero-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--navy-color);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-card:hover .hero-img {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(11,19,43,0.95) 0%, rgba(11,19,43,0.6) 60%, transparent 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-badge {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.hero-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #CBD5E1;
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 20px;
    }
    .hero-overlay {
        padding: 30px 20px 20px;
    }
}

/* SECTION LABELS */
.section-header {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}

/* LATEST NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 53, 0.3);
}

.card-img-wrap {
    position: relative;
    aspect-ratio: 1.6;
    overflow: hidden;
    background:#eee;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.card-excerpt {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 60px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

/* ============================================================
   SIDEBAR widgets
   ============================================================ */
.sidebar-widget {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2.5px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Trending widget items */
.trending-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
}

.trending-item:hover .trending-num {
    color: var(--primary-color);
}

.trending-title {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-content);
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Social icons widget */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    gap: 6px;
}

.social-btn.facebook  { background-color: #1877F2; }
.social-btn.twitter   { background-color: #1DA1F2; }
.social-btn.instagram { background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%); }
.social-btn.telegram  { background-color: #0088cc; }
.social-btn.whatsapp  { background-color: #25D366; }
.social-btn.youtube   { background-color: #FF0000; }

/* Ads Area placeholder */
.ad-slot {
    background-color: var(--bg-light);
    border: 1.5px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 20px 0;
    min-height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================================
   ARTICLE DETAILED READ PAGE
   ============================================================ */
.article-header {
    margin-bottom: 30px;
}

.article-breadcrumbs {
    margin-bottom: 15px;
    font-size: 12px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-muted);
}

.breadcrumb-sep {
    color: var(--border-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

.article-headline {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .article-headline {
        font-size: 26px;
    }
}

.author-meta-block {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.author-pic {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
}

.article-publish-date {
    font-size: 12px;
    color: var(--text-muted);
}

.article-featured-image {
    width: 100%;
    aspect-ratio: 1.8;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.article-body-content {
    font-family: var(--font-content);
    font-size: 17.5px;
    color: var(--text-dark);
    line-height: 1.8;
}

.article-body-content p {
    margin-bottom: 20px;
}

.article-body-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 35px 0 15px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 8px;
}

.article-body-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 12px;
}

.article-body-content ul, .article-body-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

/* Related section */
.related-wrapper {
    margin-top: 50px;
    border-top: 1.5px solid var(--border-color);
    padding-top: 40px;
}

/* Comments form */
.comment-section-wrapper {
    margin-top: 50px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.comment-list {
    list-style: none;
    margin-top: 30px;
}

.comment-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1.5px solid var(--border-color);
}

.comment-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.comment-author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.comment-card-body {
    font-family: var(--font-content);
    font-size: 14.5px;
    line-height: 1.5;
}

.reply-indent {
    margin-left: 40px;
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
    margin-top: 15px;
}

/* ============================================================
   PAGINATION CSS
   ============================================================ */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.page-list {
    list-style: none;
    display: flex;
    gap: 8px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background-color: var(--card-bg);
    font-size: 14px;
    font-weight: 600;
}

.page-link:hover, .page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.prev, .page-link.next {
    width: auto;
    padding: 0 16px;
}

/* ============================================================
   FOOTER SECTION
   ============================================================ */
.main-footer {
    background-color: var(--navy-color);
    color: #94A3B8;
    padding: 60px 0 40px;
    border-top: 4px solid var(--primary-color);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-widget-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    padding-bottom: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
}