/* ReachMyBharat Theme Styles */

:root {
    --primary: #FF6B35;
    --primary-dark: #E54B17;
    --secondary: #1B3A57;
    --accent: #FFC845;
    --bg: #ffffff;
    --bg-light: #f7f8fa;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --link: #1d4ed8;
    --link-hover: #1e3a8a;
    --success: #16a34a;
    --shadow: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --radius: 8px;
    --content-w: 1200px;
    --font-hi: 'Noto Sans Devanagari', system-ui, sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-hi), var(--font-en);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }

.container {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 16px;
}

.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
}
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: #000; color: #fff; padding: 8px;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-top {
    background: var(--secondary); color: #fff;
    font-size: 13px; padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.header-social a { color: #fff; margin-left: 12px; opacity: .9; font-size: 12px; }
.header-social a:hover { opacity: 1; }

.header-main { padding: 8px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-branding { flex: 1; }
.custom-logo { max-height: 60px; width: auto; }
.site-title { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.site-title-link:hover { text-decoration: none; }
.site-description { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }

.menu-toggle {
    display: none;
    background: transparent; border: 0; cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text);
    margin: 5px 0; transition: .3s;
}

.header-search .search-form { display: flex; }
.search-field {
    padding: 8px 12px; border: 1px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px; min-width: 200px;
}
.search-submit {
    padding: 8px 16px;
    background: var(--primary); color: #fff;
    border: 0; border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer; font-weight: 600;
}

/* Navigation */
.main-navigation {
    background: var(--primary);
}
.main-navigation .menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap;
}
.main-navigation .menu li a {
    display: block; padding: 12px 16px;
    color: #fff; font-weight: 600;
    border-right: 1px solid rgba(255,255,255,.15);
}
.main-navigation .menu li a:hover { background: var(--primary-dark); text-decoration: none; }
.main-navigation .sub-menu {
    display: none; position: absolute;
    background: #fff; min-width: 200px;
    list-style: none; padding: 0; margin: 0;
    box-shadow: var(--shadow-md);
    z-index: 50;
}
.main-navigation .menu-item-has-children { position: relative; }
.main-navigation .menu-item-has-children:hover .sub-menu { display: block; }
.main-navigation .sub-menu li a { color: var(--text); border-right: 0; border-bottom: 1px solid var(--border); }
.main-navigation .sub-menu li a:hover { background: var(--bg-light); color: var(--primary); }

/* Breadcrumbs */
.rmb-breadcrumbs {
    padding: 12px 0; font-size: 13px; color: var(--text-muted);
}
.rmb-breadcrumbs ol {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.rmb-breadcrumbs li:not(:last-child)::after {
    content: '›'; margin-left: 6px; color: var(--text-muted);
}

/* Content layout */
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 24px 0 48px;
}
.content-area { min-width: 0; }
.widget-area { }

/* Page header */
.page-header {
    border-bottom: 3px solid var(--primary);
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.page-title { margin: 0; }

/* Post grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.post-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Post card */
.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.post-card-category {
    display: inline-block;
    background: var(--primary); color: #fff;
    padding: 3px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 10px; width: fit-content;
}
.post-card-category:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.post-card-title { font-size: 1.1rem; line-height: 1.4; margin: 0 0 8px; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); text-decoration: none; }
.post-card-meta {
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 8px;
    display: flex; gap: 12px; flex-wrap: wrap;
}
.post-card-excerpt {
    font-size: 14px; color: var(--text-muted);
    margin: 0 0 12px;
    flex: 1;
}
.post-card-link {
    font-size: 13px; font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

/* Single post */
.single-post .entry-header { margin-bottom: 20px; }
.single-post .entry-category {
    display: inline-block;
    background: var(--primary); color: #fff;
    padding: 4px 12px; border-radius: 4px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 12px;
}
.single-post .entry-title { font-size: 2.2rem; line-height: 1.2; margin-bottom: 12px; }
.single-post .entry-excerpt { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; margin-bottom: 16px; }
.entry-meta {
    font-size: 13px; color: var(--text-muted);
    display: flex; gap: 16px; flex-wrap: wrap;
    padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.entry-meta a { color: var(--primary); }
.last-updated { color: var(--success); font-weight: 600; }

.entry-featured-image { margin: 24px 0; }
.entry-featured-image img { width: 100%; height: auto; border-radius: var(--radius); }
.entry-featured-image figcaption {
    font-size: 13px; color: var(--text-muted);
    text-align: center; margin-top: 6px;
    font-style: italic;
}

.entry-content { font-size: 17px; line-height: 1.8; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content h2 { font-size: 1.6rem; padding-bottom: 6px; border-bottom: 2px solid var(--primary); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.5em; padding: 0; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px; margin: 24px 0;
    background: var(--bg-light);
    font-style: italic; color: var(--text-muted);
}
.entry-content table {
    width: 100%; border-collapse: collapse;
    margin: 24px 0;
}
.entry-content th, .entry-content td {
    padding: 10px 12px; border: 1px solid var(--border); text-align: left;
}
.entry-content th { background: var(--bg-light); font-weight: 700; }
.entry-content img { border-radius: var(--radius); margin: 16px 0; }
.entry-content a { color: var(--link); text-decoration: underline; }

.entry-tags {
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 14px;
}
.entry-tags a {
    display: inline-block;
    padding: 4px 10px; margin: 0 4px 4px 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
}

.entry-share {
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 14px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.entry-share a {
    padding: 6px 14px; border-radius: 4px;
    color: #fff !important; text-decoration: none !important;
    font-size: 13px; font-weight: 600;
}
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-tg { background: #0088cc; }

.author-box {
    display: flex; gap: 16px;
    padding: 20px; margin: 32px 0;
    background: var(--bg-light); border-radius: var(--radius);
}
.author-box img { border-radius: 50%; }
.author-info h4 { margin: 0 0 6px; }
.author-info p { margin: 0 0 6px; font-size: 14px; }

/* Related posts */
.related-posts { margin: 40px 0; }
.related-title {
    font-size: 1.4rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 8px; margin-bottom: 20px;
}

/* Sidebar widgets */
.widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.widget-title {
    font-size: 1.1rem;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--primary); }

.popular-posts-list li {
    display: flex; gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.popular-posts-list li:last-child { border-bottom: 0; }
.popular-posts-list img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.popular-post-content a {
    font-size: 14px; font-weight: 600;
    line-height: 1.4; display: block;
    margin-bottom: 4px;
}
.popular-post-date { font-size: 11px; color: var(--text-muted); }

/* Pagination */
.pagination-wrap, .nav-links {
    margin: 32px 0;
    text-align: center;
}
.nav-links a, .nav-links span {
    display: inline-block;
    padding: 8px 14px; margin: 0 3px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}
.nav-links .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* Comments */
.comments-area { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.comment-list { list-style: none; padding: 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-list .comment-author { font-weight: 700; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 10px;
    border: 1px solid var(--border); border-radius: 4px;
    font-size: 14px; font-family: inherit;
    margin-bottom: 12px;
}
.form-submit input { background: var(--primary); color: #fff; padding: 10px 24px; border: 0; border-radius: 4px; cursor: pointer; font-weight: 600; }

/* Footer */
.site-footer {
    background: var(--secondary);
    color: #d1d5db;
    margin-top: 60px;
}
.footer-widgets { padding: 40px 0; }
.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.footer-col .widget-title { color: #fff; border-bottom-color: var(--primary); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li a { color: #d1d5db; padding: 4px 0; display: block; font-size: 14px; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-social a {
    color: #fff; margin-right: 12px;
    text-decoration: underline;
    font-size: 22px;
}
.site-info {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
}
.footer-disclaimer { color: #9ca3af; font-size: 12px; margin-top: 4px; }

/* AdSense ad zones */
.rmb-ad-zone {
    margin: 24px 0;
    text-align: center;
    overflow: hidden;
    min-height: 90px;
}
.rmb-ad-label {
    display: block;
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 4px;
}
.rmb-ad-header { padding: 8px 0; background: var(--bg-light); }
.rmb-ad-sidebar { margin-bottom: 24px; }
.rmb-ad-in-content { padding: 16px 0; }

/* Buttons */
.btn-primary {
    display: inline-block; padding: 10px 20px;
    background: var(--primary); color: #fff;
    border-radius: var(--radius); font-weight: 600;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }

/* Responsive */
@media (max-width: 900px) {
    .content-wrap { grid-template-columns: 1fr; }
    .header-search { display: flex; }
    .menu-toggle { display: block; }
    .main-navigation .menu { display: none; flex-direction: column; }
    .main-navigation.toggled .menu { display: flex; }
    .main-navigation .menu li a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
    .main-navigation .sub-menu { position: static; box-shadow: none; padding-left: 16px; }
    .main-navigation .menu-item-has-children:hover .sub-menu { display: none; }
    .main-navigation .menu-item-has-children.toggled-on .sub-menu { display: block; }
    .single-post .entry-title { font-size: 1.6rem; }
    .header-top .container { flex-direction: row; gap: 4px; align-items: center; justify-content: space-between; }
    .header-social a { margin: 0 6px; }
}

@media (max-width: 600px) {
    .post-grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
    .author-box img { margin: 0 auto; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .container { padding: 0 12px; }
}

/* Print */
@media print {
    .site-header, .site-footer, .widget-area, .rmb-ad-zone, .entry-share, .author-box, .related-posts, .comments-area { display: none; }
    .content-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .header-search { display: flex; order: 2; }
    .header-search .search-field { min-width: 80px; width: 80px; font-size: 11px; padding: 8px 6px; }
    .search-submit { padding: 8px 10px; font-size: 11px; }
    #rmb-translate { order: 3; }
    .menu-toggle { order: 4; }
}
/* ====================================================================
   ADD THIS CSS TO style.css - BOTTOM ME PASTE KAREIN
   Sab kuch .rmb-comments ke andar scoped hai - baaki blog safe rahega
==================================================================== */

.rmb-comments { margin-top: 40px; }

.rmb-comments .comments-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.rmb-comments .comment-list,
.rmb-comments .comment-list .children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rmb-comments .comment-list .children {
    margin-left: 24px;
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid var(--border);
}

.rmb-comments .rmb-comment {
    margin-bottom: 14px;
    padding: 0;
    border: none;
    list-style: none;
}

.rmb-comments .rmb-comment .comment-body {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s;
}
.rmb-comments .rmb-comment .comment-body:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.08);
}

.rmb-comments .comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.rmb-comments .comment-content-wrap {
    flex: 1;
    min-width: 0;
}

.rmb-comments .comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
    border: none;
    padding: 0;
}

.rmb-comments .comment-author-name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 14px;
}

.rmb-comments .comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.rmb-comments .comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin: 4px 0 8px;
    word-wrap: break-word;
}
.rmb-comments .comment-text p { margin: 0 0 6px; }
.rmb-comments .comment-text p:last-child { margin-bottom: 0; }

.rmb-comments .comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.rmb-comments .comment-reply-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--border);
    transition: all .2s;
    text-decoration: none;
}
.rmb-comments .comment-reply-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

.rmb-comments .comment-awaiting-moderation {
    font-size: 12px;
    color: #b45309;
    background: #fef3c7;
    padding: 6px 10px;
    border-radius: 4px;
    margin: 4px 0;
    display: inline-block;
}

/* Comment Form */
.rmb-comments #respond {
    background: #fff;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 24px;
    box-shadow: var(--shadow);
    transition: all .35s ease;
}

.rmb-comments .comment-reply-title {
    font-size: 1.1rem;
    margin: 0 0 12px;
    color: var(--secondary);
    border: none;
    padding: 0;
}
.rmb-comments .comment-reply-title small { font-size: 12px; font-weight: 400; margin-left: 8px; }
.rmb-comments .comment-reply-title small a {
    color: #dc2626;
    text-decoration: none;
    padding: 2px 8px;
    background: #fee2e2;
    border-radius: 4px;
    font-weight: 600;
}

.rmb-comments .comment-notes {
    font-size: 12px;
    color: var(--text-muted);
    background: #f0f9ff;
    border-left: 3px solid #0ea5e9;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.rmb-comments .comment-form-author,
.rmb-comments .comment-form-email {
    display: inline-block;
    width: calc(50% - 6px);
    margin-bottom: 10px;
    vertical-align: top;
}
.rmb-comments .comment-form-author { margin-right: 8px; }

.rmb-comments .comment-form-comment {
    width: 100%;
    margin-bottom: 10px;
}

.rmb-comments #commentform input[type="text"],
.rmb-comments #commentform input[type="email"],
.rmb-comments #commentform textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    margin: 0;
}
.rmb-comments #commentform input:focus,
.rmb-comments #commentform textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.rmb-comments #commentform textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

.rmb-comments .form-submit input[type="submit"] {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    border: 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}
.rmb-comments .form-submit input[type="submit"]:hover {
    background: var(--primary-dark);
}

.rmb-comments .form-submit { margin-bottom: 0; }

.rmb-comments .no-comments {
    padding: 14px;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
}

/* When reply form moves into a comment - smooth slide */
.rmb-comments .rmb-comment #respond {
    margin-top: 12px;
    margin-bottom: 8px;
    animation: rmbSlideDown .3s ease;
}

@keyframes rmbSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .rmb-comments .comment-form-author,
    .rmb-comments .comment-form-email {
        width: 100%;
        margin-right: 0;
    }
    .rmb-comments .rmb-comment .comment-body {
        padding: 12px;
        gap: 10px;
    }
    .rmb-comments .comment-avatar img {
        width: 36px;
        height: 36px;
    }
    .rmb-comments .comment-list .children {
        margin-left: 12px;
        padding-left: 10px;
    }
    .rmb-comments #respond {
        padding: 14px;
    }
}