/* ==========================================================================
   RojgarPath Site UI 1.0.2 — one design system for the whole site
   Same tokens as the Question Bank plugin: navy + one orange, quiet cards,
   Noto Sans Devanagari everywhere, line icons instead of emoji.

   Printed late in <head> (after theme, Elementor and Customizer CSS).
   Rules that must beat old `!important` rules (Customizer CSS / WPCode)
   carry `!important` themselves; those can be relaxed once the old CSS is gone.

   Sections
     1  Tokens + base + font
     2  Header: logo bar, desktop menu, sticky
     3  Mobile header + off-canvas menu
     4  Breadcrumbs + content cards
     5  Single post
     6  Sidebar widgets
     7  Category archives
     8  Pages + tool pages (+ Rojgarpath Tools widgets)
     9  Homepage (Elementor)
    10  Contact page (Elementor #776)
    11  Footer, bottom nav, scroll-top
   ========================================================================== */

/* 1 ---------- Tokens + base + font ---------- */
:root {
	--rp-navy: #0a3477;
	--rp-navy-d: #072659;
	--rp-navy-2: #164a9e;
	--rp-orange: #e65c00;
	--rp-orange-d: #c44e00;
	--rp-ink: #17213b;
	--rp-text: #1f2937;
	--rp-muted: #5e6b82;
	--rp-line: #e2e8f0;
	--rp-soft: #f3f6fb;
	--rp-bg: #f5f7fb;
	--rp-radius: 12px;
	--rp-font: "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	/* legacy names still used by older markup */
	--rp-red: var(--rp-navy);
	--rp-border: var(--rp-line);
}

body.rpsu { background: var(--rp-bg); color: var(--rp-text); }
body.rpsu,
body.rpsu :is(button, input, select, textarea, .ast-button, h1, h2, h3, h4, h5, h6, .site-title, .menu-link) {
	font-family: var(--rp-font) !important;
}
/* Elementor pages (homepage, contact) used Poppins via the global kit */
body[class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: "Noto Sans Devanagari";
	--e-global-typography-secondary-font-family: "Noto Sans Devanagari";
	--e-global-typography-text-font-family: "Noto Sans Devanagari";
	--e-global-typography-accent-font-family: "Noto Sans Devanagari";
}
body.rpsu .elementor :is(h1, h2, h3, h4, h5, h6, p, li, a, span, div, .elementor-heading-title, .elementor-button, .elementor-widget-container) {
	font-family: var(--rp-font) !important;
}
body.rpsu .elementor :is(i, .eicon, [class^="eicon-"], [class*=" fa-"], .fa, .fas, .far, .fab) { font-family: revert !important; }

body.rpsu a { color: var(--rp-navy); }
body.rpsu .page-title { color: var(--rp-navy); }
.rpsu-ic { flex: none; display: inline-block; vertical-align: middle; }
body.rpsu :is(input[type="radio"], input[type="checkbox"], input[type="range"]) { accent-color: var(--rp-navy); }
body.rpsu :focus-visible { outline: 2px solid var(--rp-orange); outline-offset: 2px; }

/* 2 ---------- Header: logo bar + desktop menu ---------- */
#masthead { position: sticky; top: 0; z-index: 999; box-shadow: 0 1px 0 var(--rp-line); }
.admin-bar #masthead { top: 32px; }

body.rpsu .site-above-header-wrap,
body.rpsu .ast-above-header-bar { background: #fff !important; border-bottom: 0 !important; min-height: 0 !important; }
body.rpsu .ast-above-header-bar .ast-builder-grid-row { min-height: 0 !important; padding: 6px 0 !important; }
body.rpsu .ast-above-header-bar .site-branding { padding: 0 !important; }
body.rpsu .custom-logo-link img.custom-logo { width: auto !important; max-height: 64px !important; }

body.rpsu.ast-desktop .site-primary-header-wrap,
body.rpsu.ast-desktop .ast-primary-header-bar {
	background: var(--rp-navy) !important;
	border-bottom: 0 !important;
	min-height: 0 !important;
}
body.rpsu .ast-primary-header-bar .ast-builder-grid-row { min-height: 0 !important; }

/* top-level items */
body.rpsu.ast-desktop .main-header-menu > .menu-item > .menu-link,
body.rpsu.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	color: #fff !important;
	background: transparent !important;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 24px !important;
	padding: 12px 16px !important;
	transition: background-color .15s;
}
body.rpsu.ast-desktop .main-header-menu > .menu-item:hover > .menu-link,
body.rpsu.ast-desktop .main-header-menu > .menu-item:focus-within > .menu-link {
	background: rgba(255, 255, 255, .08) !important;
	color: #fff !important;
}
/* current page: orange underline instead of a filled orange box */
body.rpsu.ast-desktop .main-header-menu > :is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .rpsu-current) > .menu-link,
body.rpsu.ast-desktop .ast-builder-menu-1 .main-header-menu > :is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .rpsu-current) > .menu-link {
	background: transparent !important;
	color: #fff !important;
	font-weight: 600;
	box-shadow: inset 0 -3px 0 var(--rp-orange);
}
body.rpsu.ast-desktop .main-header-menu > .menu-item > .menu-link .ast-icon svg,
body.rpsu.ast-desktop .main-header-menu > .menu-item > .ast-menu-toggle .ast-icon svg { fill: currentColor !important; }
body.rpsu.ast-desktop .main-header-menu > .menu-item > .ast-menu-toggle { color: #fff !important; }

/* dropdowns: white panel, navy text */
body.rpsu.ast-desktop .main-header-menu .sub-menu {
	background: #fff !important;
	border: 1px solid var(--rp-line) !important;
	border-top: 0 !important;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
	padding: 6px !important;
	width: 260px;
}
body.rpsu.ast-desktop .main-header-menu .sub-menu .menu-item { border: 0; }
body.rpsu.ast-desktop .main-header-menu > .menu-item:last-child > .sub-menu,
body.rpsu.ast-desktop .main-header-menu > .menu-item:nth-last-child(2) > .sub-menu { left: auto; right: 0; }
body.rpsu.ast-desktop .main-header-menu .sub-menu .menu-link { white-space: normal; }
body.rpsu.ast-desktop .main-header-menu .sub-menu .menu-link {
	color: var(--rp-ink) !important;
	background: transparent !important;
	font-size: 14.5px;
	font-weight: 500;
	padding: 9px 12px !important;
	border-radius: 8px;
	border: 0 !important;
}
body.rpsu.ast-desktop .main-header-menu .sub-menu .menu-item:hover > .menu-link,
body.rpsu.ast-desktop .main-header-menu .sub-menu .menu-item:focus-within > .menu-link {
	background: var(--rp-soft) !important;
	color: var(--rp-navy) !important;
}
body.rpsu.ast-desktop .main-header-menu .sub-menu .current-menu-item > .menu-link {
	color: var(--rp-navy) !important;
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--rp-orange);
}

/* header search icon (desktop logo bar) */
body.rpsu.ast-desktop .ast-above-header-bar .astra-search-icon,
body.rpsu.ast-desktop .ast-above-header-bar .ast-search-menu-icon svg { color: var(--rp-navy) !important; fill: var(--rp-navy) !important; }

/* 3 ---------- Mobile header + off-canvas menu ---------- */
@media (max-width: 921px) {
	.admin-bar #masthead { top: 0; }
	body.rpsu .custom-logo-link img.custom-logo { max-height: 48px !important; }
}
body.rpsu #ast-mobile-header .ast-primary-header-bar,
body.rpsu .ast-mobile-header-wrap .main-header-bar,
body.rpsu .ast-mobile-header-wrap .ast-above-header-bar { background: #fff !important; border-bottom: 0 !important; }
body.rpsu #ast-mobile-header .astra-search-icon,
body.rpsu #ast-mobile-header .astra-search-icon svg { color: var(--rp-navy) !important; fill: var(--rp-navy) !important; }
body.rpsu #ast-mobile-header .menu-toggle {
	background: var(--rp-navy) !important;
	border-color: var(--rp-navy) !important;
	border-radius: 8px;
	color: #fff !important;
}
body.rpsu #ast-mobile-header .menu-toggle svg { fill: #fff !important; }

body.rpsu #ast-mobile-popup .ast-mobile-popup-inner { background: #fff; }
body.rpsu #ast-mobile-popup .menu-toggle-close svg { fill: var(--rp-ink) !important; }
body.rpsu #ast-mobile-popup .main-header-menu .menu-link {
	color: var(--rp-ink) !important;
	background: transparent !important;
	font-size: 16px;
	font-weight: 500;
	border-color: var(--rp-line) !important;
}
body.rpsu #ast-mobile-popup .main-header-menu .menu-item:hover > .menu-link { color: var(--rp-navy) !important; }
body.rpsu #ast-mobile-popup .main-header-menu :is(.current-menu-item, .current-menu-ancestor) > .menu-link {
	color: var(--rp-navy) !important;
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--rp-orange);
}
body.rpsu #ast-mobile-popup .main-header-menu .sub-menu { background: var(--rp-soft) !important; }
body.rpsu #ast-mobile-popup .main-header-menu .sub-menu .menu-link { font-size: 15px; padding-left: 30px !important; }
body.rpsu #ast-mobile-popup .ast-menu-toggle { color: var(--rp-navy) !important; }
body.rpsu #ast-mobile-popup .ast-menu-toggle .ast-icon svg { fill: var(--rp-navy) !important; }

/* 4 ---------- Breadcrumbs + content cards ---------- */
body.rpsu .ast-breadcrumbs-wrapper { font-size: 13.5px; color: var(--rp-muted); }
body.rpsu .ast-breadcrumbs-wrapper a { color: var(--rp-navy); }
body.rpsu .ast-breadcrumbs-wrapper .trail-items li::after { color: #9aa6b8; }
body.rpsu .main-header-bar.ast-header-breadcrumb { background: #fff; border-bottom: 1px solid var(--rp-line); padding: 10px 0 !important; }

body.rpsu.ast-separate-container .ast-article-single,
body.rpsu.ast-separate-container .ast-article-post,
body.rpsu.ast-separate-container #secondary .widget {
	border: 1px solid var(--rp-line);
	border-radius: 14px;
	box-shadow: none;
}

/* 5 ---------- Single post ---------- */
body.single-post .entry-header .entry-title {
	font-size: clamp(23px, 3.6vw, 30px);
	line-height: 1.38;
	font-weight: 700;
	color: var(--rp-ink);
}
body.single-post .post-thumb-img-content img { border-radius: 12px; }

.rp-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13.5px;
	color: var(--rp-muted);
	margin: 6px 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rp-line);
}
.rp-byline span { display: inline-flex; align-items: center; gap: 6px; }
.rp-byline .rpsu-ic { color: #8a96aa; }
.rp-byline strong { color: var(--rp-ink); font-weight: 600; }
body.rpsu .entry-content .rp-byline a { color: var(--rp-ink) !important; text-decoration: none !important; font-weight: 600; }

body.single-post .entry-content :is(p, li) { font-size: 17.5px; line-height: 1.8; color: var(--rp-text); }
body.single-post .entry-content :is(ul, ol) { margin-left: 1.2em; }
body.single-post .entry-content li { margin-bottom: 6px; }
body.single-post .entry-content > h2 {
	font-size: clamp(20px, 2.8vw, 23px);
	font-weight: 700;
	line-height: 1.45;
	color: var(--rp-navy);
	background: var(--rp-soft);
	border-left: 4px solid var(--rp-orange);
	border-radius: 0 8px 8px 0;
	padding: 9px 14px;
	margin: 36px 0 16px;
}
body.single-post .entry-content > h3 { font-size: 19px; font-weight: 700; color: var(--rp-ink); margin: 24px 0 10px; }
body.single-post .entry-content :is(p, li) a:not(.rp-author-more) {
	color: var(--rp-navy) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-decoration-color: rgba(230, 92, 0, .55) !important;
	text-underline-offset: 3px;
	word-break: break-word;
}
body.single-post .entry-content :is(p, li) a:hover { color: var(--rp-orange-d) !important; }

/* tables */
body.single-post .entry-content table {
	width: 100% !important;
	border-collapse: collapse;
	font-size: 16px;
	margin: 0 0 24px;
	border: 1px solid var(--rp-line);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: none;
}
@media (min-width: 769px) { body.single-post .entry-content table { display: table !important; } }
body.single-post .entry-content :is(th, thead td) { background: var(--rp-navy) !important; color: #fff !important; font-weight: 600; text-align: left; }
body.single-post .entry-content :is(td, th) { padding: 10px 14px; border: 1px solid #dfe6f1; vertical-align: top; line-height: 1.6; }
body.single-post .entry-content tbody tr:nth-child(even) td { background: #f7f9fc; }
body.single-post .entry-content tbody tr:hover td { background: #fdf3ea; }
body.single-post .entry-content tbody td:first-child { font-weight: 600; color: var(--rp-ink); }
body.single-post .entry-content table a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 7px 14px;
	border-radius: 8px;
	background: var(--rp-orange);
	color: #fff !important;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none !important;
	transition: background-color .15s;
}
body.single-post .entry-content table a:hover { background: var(--rp-navy); }

/* table of contents */
body.rpsu #ez-toc-container {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	box-shadow: none;
	padding: 14px 18px;
	margin: 20px 0;
}
body.rpsu #ez-toc-container .ez-toc-title { font-size: 16px; font-weight: 700; color: var(--rp-ink); }
body.rpsu #ez-toc-container a { color: var(--rp-text) !important; text-decoration: none !important; font-weight: 500 !important; }
body.rpsu #ez-toc-container a:hover { color: var(--rp-navy) !important; text-decoration: underline !important; }
body.rpsu #ez-toc-container li { font-size: 15px; margin: 4px 0; }

/* notice + share + author */
.rp-note {
	background: #fff8eb;
	border: 1px solid #f6dfb4;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 22px 0;
}
.rp-note--ic { display: flex; gap: 10px; align-items: flex-start; }
.rp-note .rpsu-ic { color: #b45309; margin-top: 3px; }
body.rpsu .entry-content .rp-note { font-size: 15px; line-height: 1.65; color: #5a3d0a; }
body.rpsu .entry-content .rp-note p { margin: 0; font-size: 15px; line-height: 1.65; color: #5a3d0a; }

.rp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0; }
.rp-share-l { font-size: 14px; font-weight: 600; color: var(--rp-muted); margin-right: 4px; }
body.rpsu .rp-share :is(a, button),
body.rpsu .rp-share :is(a, button):hover,
body.rpsu .rp-share :is(a, button):focus {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--rp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--rp-ink) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none;
}
body.rpsu .rp-share :is(a, button):hover { border-color: #c6d2e3; background: var(--rp-soft); }
.rp-share .wa .rpsu-ic { color: #1a9e4b; }
.rp-share .tg .rpsu-ic { color: #1d8fd0; }
.rp-share .cp .rpsu-ic { color: var(--rp-navy); }
.rp-share .cp.is-done { border-color: #a7d8b9 !important; background: #effaf3 !important; }

.rp-author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 30px 0 8px;
	padding: 18px;
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	background: var(--rp-soft);
}
.rp-author-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.rp-author-info { flex: 1; min-width: 0; }
.rp-author-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--rp-muted); margin-bottom: 2px; letter-spacing: 0; text-transform: none; }
body.rpsu .rp-author-name { margin: 0 0 6px !important; font-size: 19px !important; line-height: 1.3; }
body.rpsu .entry-content .rp-author-name a { color: var(--rp-ink) !important; text-decoration: none !important; }
body.rpsu .entry-content .rp-author-bio { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: #334155; }
body.rpsu .entry-content .rp-author-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--rp-navy) !important; text-decoration: none !important; }
body.rpsu .entry-content .rp-author-more:hover { text-decoration: underline !important; }
@media (max-width: 600px) { .rp-author-box { flex-direction: column; align-items: center; text-align: center; padding: 16px; } }

/* related posts + post navigation */
body.single-post .ast-single-related-posts-container .ast-related-posts-title { font-size: 20px; font-weight: 700; color: var(--rp-ink); }
body.single-post .ast-single-related-posts-container .ast-related-post {
	background: #fff;
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	padding: 12px;
	box-shadow: none;
}
body.single-post .ast-related-post :is(.ast-related-post-excerpt, .entry-content) { display: none; }
body.single-post .ast-related-post :is(.ast-related-post-title, .entry-title) { font-size: 15.5px !important; line-height: 1.45; margin-bottom: 6px; }
body.single-post .ast-related-post :is(.ast-related-post-title, .entry-title) a { color: var(--rp-ink); }
body.single-post .ast-related-post .entry-meta { font-size: 13px; color: var(--rp-muted); }
body.single-post .ast-related-post img { border-radius: 8px; }
body.rpsu .post-navigation .nav-links a { color: var(--rp-navy); font-weight: 600; }

@media (max-width: 768px) {
	body.single-post .entry-content table { display: block !important; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 15px; }
	body.single-post .entry-content :is(td, th) { padding: 8px 10px; }
	body.single-post .entry-content table a { display: flex; min-height: 44px; }
	body.single-post .entry-content :is(p, li) { font-size: 16.5px; }
	#ez-toc-container .ez-toc-list { display: none; }
	#ez-toc-container.rp-open .ez-toc-list { display: block; }
	html body.single-post.ast-separate-container .ast-article-single { padding: 20px 16px !important; }
	body.single-post .entry-header .entry-title { font-size: 22px; }
}

/* 6 ---------- Sidebar widgets ---------- */
body.rpsu #secondary { margin-top: 0 !important; }
body.rpsu #secondary .widget { background: #fff !important; padding: 20px !important; margin: 0 0 24px !important; }
body.rpsu #secondary .widget-title {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--rp-ink);
	margin: 0 0 12px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--rp-line);
}
body.rpsu #secondary .widget ul { margin: 0; padding: 0; list-style: none; }
body.rpsu #secondary :is(.widget_recent_entries, .widget_categories, .widget_archive, .widget_pages, .widget_nav_menu) li {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid #eef2f7;
	font-size: 14.5px;
	line-height: 1.55;
}
body.rpsu #secondary .widget li:last-child { border-bottom: 0; }
body.rpsu #secondary .widget li a { color: var(--rp-text); text-decoration: none; }
body.rpsu #secondary .widget li a:hover { color: var(--rp-navy); text-decoration: underline; }
body.rpsu .widget_search .search-form { display: flex; position: relative; }
body.rpsu .widget_search .search-field {
	width: 100%;
	min-height: 44px;
	padding: 10px 44px 10px 14px !important;
	border: 1px solid var(--rp-line) !important;
	border-radius: 10px !important;
	background: var(--rp-soft) !important;
	font-size: 15px;
	color: var(--rp-ink);
}
body.rpsu .widget_search .search-field:focus { border-color: var(--rp-navy) !important; background: #fff !important; outline: 0; box-shadow: 0 0 0 3px rgba(10, 52, 119, .12); }

/* 7 ---------- Category archives (full layout; replaces WPCode #9750 CSS) ---------- */
html body.category .ast-header-breadcrumb { display: none; }
html body.category .ast-archive-entry-banner {
	background: var(--rp-navy) !important;
	color: #fff !important;
	padding: 28px 0 22px !important;
	text-align: left !important;
}
html body.category .ast-archive-entry-banner .ast-container { display: block; max-width: 1200px; }
html body.category .ast-archive-entry-banner h1 { color: #fff !important; font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html body.category .rp-count { font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; padding: 2px 10px; border-radius: 999px; line-height: 1.6; }
html body.category .ast-archive-entry-banner p {
	color: rgba(255, 255, 255, .85) !important;
	font-size: 15px;
	line-height: 1.75;
	margin: 0;
	max-width: 900px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
html body.category .ast-archive-entry-banner.rp-open p { -webkit-line-clamp: unset; display: block; }
html body.category .rp-more,
html body.category .rp-more:hover,
html body.category .rp-more:focus { background: none; border: 0; padding: 4px 0; color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html body.category .ast-archive-entry-banner .ast-breadcrumbs-wrapper { margin-top: 10px; font-size: 13px; }
html body.category .ast-archive-entry-banner :is(.ast-breadcrumbs-wrapper, .ast-breadcrumbs-wrapper a, .trail-items li::after) { color: rgba(255, 255, 255, .75) !important; }

/* toolbar (instant filter) */
html body.category .rp-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
html body.category .rp-toolbar strong { color: var(--rp-ink); font-size: 15px; }
html body.category .rp-filter { flex: 1; min-width: 200px; max-width: 340px; border: 1px solid var(--rp-line) !important; border-radius: 10px !important; padding: 8px 12px !important; font-size: 14px !important; background: var(--rp-soft) !important; }
html body.category .rp-filter:focus { border-color: var(--rp-navy) !important; background: #fff !important; outline: 0; }
html body.category .rp-empty { display: none; background: #fff; border: 1px dashed var(--rp-line); border-radius: 12px; padding: 18px; text-align: center; color: var(--rp-muted); }

/* compact rows */
html body.category #main .ast-row { display: flex; flex-direction: column; gap: 10px; margin: 0; }
html body.category #main .ast-row article.ast-article-post { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; width: 100%; }
html body.category #main .ast-article-inner {
	background: #fff;
	border: 1px solid var(--rp-line);
	border-left: 1px solid var(--rp-line);
	border-radius: 12px;
	padding: 12px 14px !important;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
html body.category #main .ast-article-inner:hover { border-color: #c6d2e3; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); }
html body.category #main .post-content {
	display: grid !important;
	grid-template-columns: 132px 1fr auto;
	grid-template-areas: "thumb title btn" "thumb meta btn" "thumb ex btn";
	column-gap: 14px;
	row-gap: 4px;
	align-items: start;
	padding: 0 !important;
	width: 100%;
}
html body.category #main article:not(.has-post-thumbnail) .post-content { grid-template-columns: 1fr auto; grid-template-areas: "title btn" "meta btn" "ex btn"; }
html body.category #main .ast-blog-featured-section { grid-area: thumb; margin: 0 !important; padding: 0 !important; }
html body.category #main .ast-blog-featured-section img { width: 132px; height: 74px; object-fit: cover; border-radius: 8px; display: block; }
html body.category #main .entry-title { grid-area: title; font-size: 16.5px !important; line-height: 1.5 !important; margin: 0 !important; font-weight: 600; }
html body.category #main .entry-title a { color: var(--rp-ink) !important; text-decoration: none; }
html body.category #main .entry-title a:hover { color: var(--rp-navy) !important; text-decoration: underline; }
html body.category #main .rpc-new .entry-title a::after {
	content: "NEW";
	display: inline-block;
	animation: none;
	background: #fdecec;
	color: #b42318;
	border: 1px solid #f6c8c4;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0;
	padding: 0 6px;
	border-radius: 999px;
	margin-left: 8px;
	vertical-align: 2px;
}
html body.category #main .ast-blog-meta-container { grid-area: meta; margin: 0 !important; padding: 0 !important; }
html body.category #main .entry-meta { font-size: 0 !important; color: var(--rp-muted) !important; margin: 0; }
html body.category #main .entry-meta :is(.cat-links, .comments-link, .posted-by, .tags-links) { display: none !important; }
html body.category #main .entry-meta .posted-on { font-size: 13px; color: var(--rp-muted); }
html body.category #main .entry-meta .posted-on::before { content: none; }
html body.category #main .entry-meta .posted-on,
html body.category #main .entry-meta .posted-on * { color: var(--rp-muted) !important; }
html body.category #main .ast-excerpt-container { grid-area: ex; margin: 0 !important; padding: 0 !important; }
html body.category #main .ast-excerpt-container p { font-size: 14px; line-height: 1.6; color: #4b5567; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body.category #main .read-more { grid-area: btn; align-self: center; margin: 0 !important; padding: 0 !important; }
html body.category #main .read-more a {
	display: inline-block;
	white-space: nowrap;
	background: #fff;
	color: var(--rp-navy) !important;
	border: 1px solid #c6d2e3;
	border-radius: 8px;
	padding: 7px 12px;
	text-decoration: none !important;
	font-size: 0 !important;
}
html body.category #main .read-more a::after { content: "पढ़ें →"; font-size: 14px; font-weight: 600; }
html body.category #main .read-more a:hover { background: var(--rp-navy); border-color: var(--rp-navy); color: #fff !important; }
html body.category #main .post-content > :is(.cat-links, .entry-content, .tags-links) { display: none !important; }

/* pagination */
html body.category .ast-pagination { margin-top: 20px; }
html body.category .ast-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
html body.category .ast-pagination .page-numbers { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--rp-line); border-radius: 8px; background: #fff; color: var(--rp-navy); font-weight: 600; margin: 0 !important; }
html body.category .ast-pagination .page-numbers.current,
html body.category .ast-pagination a.page-numbers:hover { background: var(--rp-navy); color: #fff; border-color: var(--rp-navy); }
html body.category .ast-pagination .page-numbers.dots { border: 0; background: none; }

@media (max-width: 768px) {
	html body.category .ast-archive-entry-banner { padding: 20px 0 16px !important; }
	html body.category .ast-archive-entry-banner p { font-size: 14px; }
	html body.category #main .post-content { grid-template-columns: 96px 1fr; grid-template-areas: "thumb title" "thumb meta" "btn btn"; column-gap: 10px; }
	html body.category #main article:not(.has-post-thumbnail) .post-content { grid-template-columns: 1fr; grid-template-areas: "title" "meta" "btn"; }
	html body.category #main .ast-blog-featured-section img { width: 96px; height: 64px; }
	html body.category #main .entry-title { font-size: 15px !important; }
	html body.category #main .ast-excerpt-container { display: none; }
	html body.category #main .read-more { justify-self: end; margin-top: 6px !important; }
	html body.category #main .read-more a { padding: 6px 12px; }
	html body.category .rp-filter { max-width: none; }
}
.blog .tags-links, .archive .tags-links, .search .tags-links { display: none !important; }

/* 8 ---------- Pages + tool pages (replaces WPCode #9752 CSS) ---------- */
body.rp-page .ast-article-single { border-radius: 14px; border: 1px solid var(--rp-line); }
html body.rp-page .ast-article-single > .entry-header {
	background: var(--rp-navy) !important;
	border-radius: 12px;
	padding: 24px 26px;
	margin: 0 0 26px !important;
	position: relative;
	overflow: hidden;
}
html body.rp-page .ast-article-single > .entry-header::after { display: none !important; }
html body.rp-page .entry-header .entry-title { color: #fff !important; font-size: clamp(24px, 3.4vw, 32px) !important; font-weight: 700; line-height: 1.3; margin: 0 !important; }
body.rp-page .rp-page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
html body.rp-page .rp-chip,
html body.rp-page .rp-chip.rp-hot {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, .9);
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .2);
	padding: 3px 11px;
	border-radius: 999px;
	line-height: 1.5;
}
body.rp-page .entry-content > :is(p, ul li, ol li) { font-size: 17.5px; line-height: 1.8; color: var(--rp-text); }
html body.rp-page .entry-content > h2,
html body.rp-page .rp-more-title {
	font-size: clamp(20px, 2.8vw, 23px) !important;
	color: var(--rp-navy) !important;
	background: var(--rp-soft);
	border-left: 4px solid var(--rp-orange);
	border-radius: 0 8px 8px 0;
	padding: 9px 14px;
	margin: 36px 0 16px !important;
}
html body.rp-page .entry-content > h2:first-child { margin-top: 0 !important; }
body.rp-page .entry-content > :is(ul, ol) { margin-left: 1.2em; }
body.rp-page .entry-content > :is(ul, ol) li { margin-bottom: 6px; }
body.rp-page .entry-content > h3 { font-size: 19px !important; font-weight: 700; color: var(--rp-ink); margin: 24px 0 10px !important; }
body.rp-page .entry-content > :is(p, ul, ol) a { color: var(--rp-navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(230, 92, 0, .55); text-underline-offset: 3px; }
body.rp-page .entry-content > figure.wp-block-table { margin: 0 0 24px; }
body.rp-page .entry-content > :is(table, figure > table) { width: 100% !important; display: table !important; border-collapse: collapse; font-size: 16px; margin: 0 0 24px; border: 1px solid var(--rp-line); border-radius: 10px; overflow: hidden; }
body.rp-page .entry-content > :is(table, figure > table) :is(th, thead td) { background: var(--rp-navy); color: #fff; font-weight: 600; text-align: left; }
body.rp-page .entry-content > :is(table, figure > table) :is(td, th) { padding: 10px 14px; border: 1px solid #dfe6f1; vertical-align: top; line-height: 1.6; }
body.rp-page .entry-content > :is(table, figure > table) tbody tr:nth-child(2n) td { background: #f7f9fc; }
body.rp-tool-page .entry-content > div[class^="rjp-"] { margin: 28px 0 32px; }
body.rp-page .rp-more-tools { margin-top: 40px; }
body.rp-page .rp-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
html body.rp-page .entry-content > :is(table, figure > table) { box-shadow: none; border-color: var(--rp-line); }
html body.rp-tool-page .entry-content > div[class^="rjp-"] { box-shadow: none; border-radius: 14px; }

html body.rp-page .rp-tool-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--rp-line);
	border-left: 1px solid var(--rp-line);
	border-radius: 12px;
	padding: 14px;
	color: var(--rp-ink) !important;
	text-decoration: none !important;
	transform: none;
}
html body.rp-page .rp-tool-card:hover { border-color: #c6d2e3; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); transform: none; }
html body.rp-page .rp-tool-ic {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--rp-soft);
	color: var(--rp-navy);
	font-size: 0;
}
html body.rp-page .rp-tool-card strong { display: block; font-size: 15.5px; color: var(--rp-navy); }
html body.rp-page .rp-tool-card small { display: block; font-size: 13px; color: var(--rp-muted); line-height: 1.5; margin-top: 2px; }
@media (max-width: 768px) {
	html body.rp-page.ast-separate-container .ast-article-single { padding: 18px 14px !important; }
	body.rp-page .entry-content > :is(table, figure > table) { display: block !important; overflow-x: auto; font-size: 15px; }
	html body.rp-page .ast-article-single > .entry-header { padding: 20px 18px; }
	body.rp-page .entry-content > :is(p, ul li, ol li) { font-size: 16.5px; }
}

/* Rojgarpath Tools widgets (Age / Salary / Photo resizer) */
body.rpsu .rjp-tool { border-color: var(--rp-line); box-shadow: none; border-radius: 14px; }
body.rpsu .rjp-tool .rjp-header { background: var(--rp-navy); border-bottom: 0; padding: 22px 24px; }
body.rpsu .rjp-tool .rjp-eyebrow { background: transparent; padding: 0; margin: 0 0 6px; border-radius: 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .75); letter-spacing: .02em; }
body.rpsu .rjp-tool .rjp-chips li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .9); }
body.rpsu .rjp-tool .rjp-btn { box-shadow: none; border-radius: 10px; }
body.rpsu .rjp-tool .rjp-btn:hover,
body.rpsu .rjp-tool .rjp-btn:focus-visible { background: var(--rp-orange-d); }
body.rpsu .rjp-tool .rjp-btn:active { transform: none; box-shadow: none; }
body.rpsu .rjp-tool .rjp-btn-ghost,
body.rpsu .rjp-tool .rjp-btn-ghost:hover { background: #fff; color: var(--rp-navy); }
body.rpsu .rjp-tool .rjp-btn-ghost:hover { background: var(--rp-soft); }
body.rpsu .rjp-salary-calc .rjp-net-block { background: var(--rp-navy); border-bottom: 0; }
body.rpsu .rjp-tool .rjp-step { background: var(--rp-navy); }

/* 9 ---------- Homepage (Elementor) ---------- */
body.home.rpsu .elementor-top-column > .elementor-widget-wrap {
	background: #fff;
	border: 1px solid var(--rp-line) !important;
	border-top: 1px solid var(--rp-line) !important;
	border-radius: 14px;
	box-shadow: none;
	overflow: hidden;
}
body.home.rpsu .elementor-widget-heading .elementor-widget-container { background: #fff !important; }
body.home.rpsu .elementor-top-column .elementor-widget-heading .elementor-heading-title {
	color: var(--rp-ink) !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	text-align: left !important;
	padding: 2px 4px 10px;
	border-bottom: 2px solid var(--rp-navy);
	display: block;
}
.lcp_catlist { list-style: none !important; margin: 0 !important; padding: 0 4px !important; }
.lcp_catlist li { padding: 10px 0; border-bottom: 1px solid #eef2f7; line-height: 1.55; font-size: 15px; }
.lcp_catlist li:last-child { border-bottom: 0; }
.lcp_catlist li a { color: var(--rp-text) !important; text-decoration: none; }
.lcp_catlist li a:hover { color: var(--rp-navy) !important; text-decoration: underline; }
.lcp_catlist li::before { content: "›"; color: var(--rp-orange); font-weight: 700; margin-right: 6px; }
:is(.lcp_morelink, .home .elementor-widget-text-editor .lcp_catlist + a),
:is(.lcp_morelink, .home .elementor-widget-text-editor .lcp_catlist + a):hover {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 4px;
	padding: 9px 12px;
	border: 1px solid #c6d2e3 !important;
	border-radius: 10px;
	background: #fff;
	color: var(--rp-navy) !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
}
:is(.lcp_morelink, .home .elementor-widget-text-editor .lcp_catlist + a):hover { background: var(--rp-navy) !important; border-color: var(--rp-navy) !important; color: #fff !important; }
.rp-new { display: inline-block; background: #fdecec; color: #b42318; border: 1px solid #f6c8c4; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; animation: none; }
body.home.rpsu .elementor-button { background: var(--rp-orange) !important; border-radius: 10px !important; font-weight: 700 !important; box-shadow: none !important; }
body.home.rpsu .elementor-button:hover { background: var(--rp-orange-d) !important; }

/* 10 ---------- Contact page (Elementor #776) ---------- */
.elementor-776 > .elementor-section > .elementor-container { max-width: 1200px !important; margin: 0 auto; padding: 28px 20px 44px; }
.elementor-776 .elementor-top-column > .elementor-widget-wrap { display: grid !important; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 0 !important; }
.elementor-776 .elementor-inner-section { background: #fff; border: 1px solid var(--rp-line); border-radius: 14px; padding: 28px !important; margin: 0 !important; width: auto !important; }
.elementor-776 .elementor-inner-section > .elementor-container { max-width: none !important; }
.elementor-776 > .elementor-section { padding: 0 !important; margin: 0 !important; }
.elementor-776 .elementor-inner-section .elementor-column { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; }
.elementor-776 .elementor-inner-section .elementor-widget-wrap { padding: 0 !important; }
.elementor-776 .elementor-element-40ea173 { position: sticky; top: 140px; }
html body .elementor-776 .elementor-element-97a54af { background: var(--rp-navy) !important; border-radius: 12px; padding: 24px 26px; margin-bottom: 24px !important; }
.elementor-776 .elementor-element-97a54af .elementor-heading-title { color: #fff !important; font-size: clamp(26px, 3.4vw, 32px) !important; font-weight: 700 !important; text-align: left !important; margin: 0; }
.elementor-776 .elementor-element-97a54af .elementor-heading-title::after { content: "सवाल, सुझाव या शिकायत — हमें लिखें"; display: block; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .8); margin-top: 6px; }
.elementor-776 .elementor-element-f3792f0 h2 { font-size: clamp(20px, 2.8vw, 23px) !important; font-weight: 700; color: var(--rp-navy) !important; border-left: 4px solid var(--rp-orange); background: var(--rp-soft); padding: 9px 14px; border-radius: 0 8px 8px 0; margin: 28px 0 14px !important; line-height: 1.45; }
.elementor-776 .elementor-element-f3792f0 h2:first-child { margin-top: 0 !important; }
.elementor-776 .elementor-element-f3792f0 :is(p, li) { font-size: 17px; line-height: 1.8; color: var(--rp-text); }
.elementor-776 .elementor-element-f3792f0 ul { list-style: none; margin: 0 0 18px !important; padding: 0 !important; display: grid; gap: 8px; }
.elementor-776 .elementor-element-f3792f0 ul li { position: relative; padding: 8px 12px 8px 40px !important; background: var(--rp-soft); border: 1px solid var(--rp-line); border-radius: 8px; margin: 0; }
.elementor-776 .elementor-element-f3792f0 ul li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--rp-navy); border-bottom: 2px solid var(--rp-navy); transform: rotate(-45deg); }
.elementor-776 .elementor-element-f3792f0 p:has(span[style*="ff0000"]) { background: #fff8eb; border: 1px solid #f6dfb4; border-radius: 10px; padding: 12px 16px; }
.elementor-776 .elementor-element-f3792f0 p span[style*="ff0000"] { color: #5a3d0a !important; }
.elementor-776 .elementor-element-f3792f0 p span[style*="ff0000"] em { font-style: normal; }
.elementor-776 .elementor-element-e7f6d04 .elementor-heading-title { color: var(--rp-ink) !important; font-size: 22px !important; font-weight: 700 !important; margin: 0 0 4px; }
.elementor-776 .elementor-element-e7f6d04 .elementor-heading-title::after { content: "नीचे फॉर्म भरें, हम ईमेल पर जवाब देंगे"; display: block; font-size: 14px; font-weight: 400; color: var(--rp-muted); margin-top: 4px; }
.elementor-776 .wpforms-container { margin: 14px 0 0 !important; }
.elementor-776 .wpforms-field { padding: 8px 0 !important; }
.elementor-776 .wpforms-field-label { color: var(--rp-ink) !important; font-weight: 600 !important; font-size: 15px !important; margin-bottom: 6px !important; }
.elementor-776 .wpforms-field-sublabel { color: var(--rp-muted) !important; font-size: 13px !important; }
.elementor-776 .wpforms-form :is(input[type="text"], input[type="email"], textarea) { width: 100% !important; max-width: 100% !important; border: 1px solid var(--rp-line) !important; border-radius: 10px !important; padding: 11px 12px !important; font-size: 15px !important; background: var(--rp-soft) !important; box-shadow: none !important; }
.elementor-776 .wpforms-form textarea { min-height: 140px; }
.elementor-776 .wpforms-form :is(input, textarea):focus { border-color: var(--rp-navy) !important; box-shadow: 0 0 0 3px rgba(10, 52, 119, .12) !important; background: #fff !important; outline: 0; }
.elementor-776 .wpforms-field-row { max-width: 100% !important; }
.elementor-776 .wpforms-submit-container { padding-top: 10px !important; }
.elementor-776 .wpforms-form button.wpforms-submit { width: 100% !important; background: var(--rp-orange) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; padding: 13px 18px !important; font-size: 16px !important; font-weight: 700 !important; height: auto !important; }
.elementor-776 .wpforms-form button.wpforms-submit:hover { background: var(--rp-orange-d) !important; }
@media (max-width: 900px) {
	.elementor-776 .elementor-top-column > .elementor-widget-wrap { grid-template-columns: 1fr; }
	.elementor-776 .elementor-element-40ea173 { position: static; }
	.elementor-776 .elementor-inner-section { padding: 18px !important; }
	.elementor-776 > .elementor-section > .elementor-container { padding: 16px 12px 28px; }
}

/* 11 ---------- Footer, bottom nav, scroll-top ---------- */
body.rpsu .site-footer { background: #fff; border-top: 1px solid var(--rp-line); }
body.rpsu .site-footer :is(.ast-builder-footer-grid-columns, .site-below-footer-wrap, .site-primary-footer-wrap, .site-above-footer-wrap) { background: transparent !important; }
body.rpsu .site-footer .menu-link,
body.rpsu .site-footer .footer-nav-wrap a { color: var(--rp-text) !important; font-size: 14.5px; }
body.rpsu .site-footer .menu-link:hover { color: var(--rp-navy) !important; text-decoration: underline; }
body.rpsu .site-footer .ast-footer-copyright { color: var(--rp-muted); font-size: 13px; }

.rp-footer-note {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	max-width: 900px;
	margin: 0 auto;
	padding: 12px 16px 16px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--rp-muted);
	text-align: center;
	background: #fff;
}
.rp-footer-note .rpsu-ic { color: #9aa6b8; margin-top: 2px; }
.rp-footer-note a { color: var(--rp-navy); }

.rp-bottom-nav { display: none; }
@media (max-width: 768px) {
	body.rpsu { padding-bottom: 60px; }
	.rp-bottom-nav {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		background: #fff;
		border-top: 1px solid var(--rp-line);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.rp-bottom-nav a {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		padding: 8px 2px 7px;
		font-size: 11.5px;
		font-weight: 500;
		line-height: 1.2;
		color: var(--rp-muted) !important;
		text-decoration: none !important;
		position: relative;
	}
	.rp-bottom-nav a > span:not([class]) { font-size: 11px; margin: 0; display: block; white-space: nowrap; }
	.rp-bottom-nav a .rpsu-ic { width: 22px; height: 22px; }
	.rp-bottom-nav a.active { color: var(--rp-navy) !important; font-weight: 600; }
	.rp-bottom-nav a.active::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--rp-navy); }
	#ast-scroll-top { bottom: 72px !important; }
}

#ast-scroll-top { background: var(--rp-navy) !important; color: #fff; border-radius: 10px; }
#ast-scroll-top .ast-icon svg { fill: #fff !important; }
