/* ==========================================================
   MHARO RAJGARH (mharorajgarh.in)
   Clean, Lightweight Production CSS - 100% Shared Hosting
   Zero Build Step Required
   ========================================================== */

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #fef2f2;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --header-bg: #ffffff;
    --footer-bg: #0f172a;
    --footer-text: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-page: #0b0f19;
    --bg-card: #151d2f;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #242f47;
    --header-bg: #111827;
    --footer-bg: #0b0f19;
    --footer-text: #cbd5e1;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Mukta', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* --- Top Bar & Header --- */
.top-bar {
    background: #111827;
    color: #cbd5e1;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #1f2937;
}

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

.top-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-social a {
    color: #9ca3af;
}

.top-social a:hover {
    color: #ffffff;
}

.main-header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 48px;
    width: auto;
}

.brand-text h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    padding: 6px 8px;
    border-radius: 4px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yt-badge-btn {
    background: #dc2626;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.yt-badge-btn:hover {
    background: #b91c1c;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* --- Breaking News Ticker --- */
.breaking-ticker {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 42px;
}

[data-theme="dark"] .breaking-ticker {
    background: #111827;
}

.breaking-label {
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breaking-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.breaking-content marquee, .breaking-inner {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    gap: 40px;
    align-items: center;
}

/* --- Grid & Cards --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

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

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

.play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.play-badge-icon {
    width: 44px;
    height: 44px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* --- Featured Hero Section --- */
.hero-featured {
    margin: 25px 0;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
}

.featured-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 12px 0;
}

/* --- Section Headings --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

/* --- Article Detail Page --- */
.article-container {
    max-width: 860px;
    margin: 25px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

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

.article-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.video-player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.video-player-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.watch-yt-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-watch-yt {
    background: #dc2626;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.btn-watch-yt:hover {
    background: #b91c1c;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    margin: 25px 0;
}

.share-bar {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

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

.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }

/* --- Footer --- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
}

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

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

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* --- Search & Pagination --- */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg-card);
    color: var(--text-main);
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.page-link {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        border-bottom: 2px solid var(--border-color);
        padding: 15px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.show {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .top-bar-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .article-title {
        font-size: 22px;
    }
    .featured-title {
        font-size: 20px;
    }
}
