@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #c0392b;
    --brand-dark: #922b21;
    --ink: #1c1c1c;
    --muted: #6b6b6b;
    --bg: #f7f6f4;
    --card: #ffffff;
    --border: #e7e3df;
}

* { box-sizing: border-box; }

body {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    margin: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* Topbar */
.topbar {
    background: var(--ink);
    color: #ddd;
    font-size: 13px;
    padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: #ccc; }
.topbar-social a:hover { color: #fff; }
@media (max-width: 640px) { .topbar .container { flex-direction: column; gap: 4px; text-align: center; } .topbar-social { gap: 10px; flex-wrap: wrap; justify-content: center; } }

/* Header */
.site-header {
    background: var(--card);
    border-bottom: 3px solid var(--brand);
    padding: 18px 0 0;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo {
    font-size: 30px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.5px;
}
.logo span { color: var(--ink); }
.header-date { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Nav */
.main-nav {
    background: var(--brand);
    margin-top: 16px;
    position: relative;
}
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 16px;
    max-width: 1140px;
    margin: 0 auto;
}
.main-nav li a {
    display: block;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
}
.main-nav li a:hover { background: var(--brand-dark); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-self: center;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--brand); border-radius: 2px; }

.nav-home-btn {
    display: none;
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 26px;
    padding: 26px 0 50px;
}
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
}

/* --- Mobile (टॅबलेट व फोन) --- */
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav-home-btn { display: block; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
    }
    .main-nav ul.open { display: flex; }
    .main-nav li { width: 100%; }
    .main-nav li a { display: block; padding: 13px 18px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 14.5px; text-align: right; }

    .site-header { padding: 14px 0 0; }
    .logo { font-size: 24px; }
    .header-date { font-size: 12px; }

    .container { padding: 0 12px; }
    .layout { gap: 18px; padding: 18px 0 34px; }
    .section-title { font-size: 16px; }

    .post-detail h1 { font-size: 21px; }
    .post-detail .content { font-size: 15.5px; }

    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Post card */
.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 22px;
    display: flex;
    gap: 16px;
}
.post-card .thumb {
    width: 260px;
    min-width: 260px;
    height: 170px;
    background: #ddd url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"></svg>') center/cover;
    overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 14px 16px 14px 0; display: flex; flex-direction: column; }
.post-card.in-feed-ad { border: 1px dashed #ccc; background: #fdfcfb; }
.post-card.in-feed-ad .thumb {
    height: auto;
    align-self: center;
    background: #f1f1f1;
}
.post-card.in-feed-ad .thumb img { width: 100%; height: auto; max-height: 260px; object-fit: contain; background: #fff; display: block; }
.post-card .cat-tag {
    display: inline-block;
    background: #fdecea;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
}
.post-card h2 { font-size: 20px; margin: 0 0 8px; line-height: 1.35; }
.post-card h2 a:hover { color: var(--brand); }
.post-card p.excerpt { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; line-height: 1.6; }
.post-meta { font-size: 12.5px; color: #999; }

@media (max-width: 640px) {
    .post-card { flex-direction: column; }
    .post-card .thumb { width: 100%; min-width: 100%; height: 200px; }
    .post-card .body { padding: 12px; }
}

/* Sidebar */
.sidebar .widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
}
.sidebar .widget h3 {
    font-size: 16px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand);
    color: var(--brand-dark);
}
.sidebar .mini-post { display: flex; gap: 10px; margin-bottom: 12px; }
.sidebar .mini-post img { width: 64px; height: 54px; object-fit: cover; border-radius: 4px; background: #ddd; }
.sidebar .mini-post h4 { font-size: 13.5px; margin: 0; line-height: 1.4; }
.sidebar .cat-list a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sidebar .cat-list a:hover { color: var(--brand); }
.sidebar .youtube-list .yt-item { border-bottom: 1px dashed var(--border); padding: 10px 0; }
.sidebar .youtube-list .yt-item:last-child { border-bottom: none; }
.yt-thumb-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}
.yt-thumb-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.yt-thumb-box .yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: rgba(255,0,0,0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding-left: 3px;
}
.yt-thumb-box .yt-thumb-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    font-size: 12.5px;
    padding: 16px 8px 6px;
    line-height: 1.3;
}
.yt-thumb-box:hover img { opacity: 1; }

/* YouTube व्हिडिओ - थंबनेलच्या जागीच उघडणारा प्लेयर */
.yt-inline-player {
    display: none;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.yt-inline-player.open { display: block; }
.yt-inline-player iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Post detail */
.post-detail h1 { font-size: 28px; line-height: 1.4; margin: 0 0 10px; }
.post-detail .post-meta { margin-bottom: 16px; }
.post-detail .featured-img { border-radius: 8px; margin-bottom: 18px; }
.post-detail .content { font-size: 16.5px; line-height: 1.9; }
.post-detail .content p { margin: 0 0 16px; }
.post-detail .content h2, .post-detail .content h3 { color: var(--brand-dark); margin: 22px 0 10px; line-height: 1.4; }
.post-detail .content ul, .post-detail .content ol { margin: 0 0 16px; padding-right: 22px; }
.post-detail .content li { margin-bottom: 6px; }
.post-detail .content blockquote {
    border-right: 4px solid var(--brand);
    background: var(--bg);
    margin: 0 0 16px;
    padding: 10px 16px;
    color: #444;
    font-style: italic;
}
.post-detail .content a { color: var(--brand); text-decoration: underline; }
.post-detail .content strong { font-weight: 800; }

/* Quill एडिटरमधील फॉरमॅटिंग क्लासेस (align, indent, font, size, code) वेबसाईटवर योग्य दिसण्यासाठी */
.post-detail .content .ql-align-center { text-align: center; }
.post-detail .content .ql-align-right { text-align: right; }
.post-detail .content .ql-align-justify { text-align: justify; }
.post-detail .content .ql-indent-1 { padding-right: 3em; }
.post-detail .content .ql-indent-2 { padding-right: 6em; }
.post-detail .content .ql-indent-3 { padding-right: 9em; }
.post-detail .content .ql-direction-rtl { direction: rtl; text-align: right; }
.post-detail .content .ql-font-serif { font-family: Georgia, serif; }
.post-detail .content .ql-font-monospace { font-family: 'Courier New', monospace; }
.post-detail .content .ql-size-small { font-size: 0.75em; }
.post-detail .content .ql-size-large { font-size: 1.5em; }
.post-detail .content .ql-size-huge { font-size: 2.2em; }
.post-detail .content pre.ql-syntax, .post-detail .content pre {
    background: #1c1c1c; color: #eee; padding: 14px; border-radius: 6px;
    overflow-x: auto; font-size: 14px; direction: ltr; text-align: left;
}
.post-detail .content img { border-radius: 6px; margin: 10px 0; }

.in-article-ad {
    margin: 24px 0;
    padding: 14px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #fdfcfb;
    text-align: center;
}
.in-article-ad img { width: 100%; height: auto; border-radius: 6px; margin: 6px 0 0; }
.post-detail .content iframe { max-width: 100%; border-radius: 6px; margin: 10px 0; }

/* Share buttons */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.share-bar-bottom {
    margin-top: 26px;
    padding: 16px 0 0;
    border-bottom: none;
    border-top: 1px solid var(--border);
}
.share-label { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.share-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #000000; }
.share-telegram { background: #229ED9; }
.share-copy { background: #555; }
.share-btn:hover { opacity: 0.88; }

/* Section title */
.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    border-right: 5px solid var(--brand);
    padding-right: 10px;
    margin: 0 0 16px;
}

/* Pagination */
.pagination { display: flex; gap: 6px; margin-top: 10px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}
.pagination .active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Static pages (About, Terms, Privacy, Disclaimer) */
.static-page {
    max-width: 800px;
    margin: 20px auto;
    background: var(--card);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    line-height: 1.8;
}
.static-page h3 { color: var(--brand-dark); margin: 22px 0 8px; font-size: 17px; }
.static-page p { margin: 0 0 14px; color: #333; }
.static-page a { color: var(--brand); text-decoration: underline; }

/* जाहिराती (Ads) - बातमीच्या फोटोएवढाच (featured image सारखा) आकार */
.ad-label {
    display: block;
    font-size: 10.5px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-align: center;
}
.ad-widget { padding: 10px !important; }
.ad-img {
    width: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 auto;
}
.ad-banner-top {
    max-width: 1140px;
    margin: 14px auto 0;
    padding: 0 16px;
}
.ad-banner-top img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    background: #f1f1f1;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .ad-banner-top img { max-height: 220px; }
}

/* Contact page */
.contact-info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 14px;
}
.contact-info-box > div { display: flex; align-items: center; gap: 6px; }
.contact-info-box a { color: var(--brand); font-weight: 600; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #bbb;
    padding: 22px 0 0;
    margin-top: 20px;
    font-size: 13.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 18px;
    padding-bottom: 16px;
}
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer-brand p { margin: 4px 0 6px; color: #999; max-width: 260px; line-height: 1.5; }
.footer-grid strong { color: #fff; font-size: 13.5px; margin-bottom: 4px; display: block; }
.site-footer a { color: #bbb; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.footer-social a { font-size: 12.5px; border: 1px solid #444; padding: 3px 10px; border-radius: 20px; }
.footer-social a:hover { border-color: var(--brand); color: var(--brand); }
.footer-contact-line { line-height: 1.5; }
.footer-bottom { text-align: center; padding: 10px 0; border-top: 1px solid #333; color: #888; font-size: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Buttons/forms shared with admin */
.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 9px 18px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e8f8ee; color: #1e7e42; border: 1px solid #b7e4c7; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--brand); }
