/*
Theme Name: RojgarLite
Theme URI: https://rojgarrresult.com
Author: Rojgar Result
Description: Ek halka (lightweight), SEO-friendly aur mobile-first WordPress theme jo Sarkari job/result websites ke liye khaas taur par banaya gaya hai. Koi bhaari page-builder dependency nahi - system fonts, minimal CSS/JS, built-in JobPosting schema, Age Calculator, Countdown Timer aur sahi jagah par Ad slots ke saath.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rojgarlite
*/

/* ===================== RESET & VARIABLES ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; cursor: pointer; }

:root {
	--brand: #0e6b3c;
	--brand-dark: #094a29;
	--accent: #d9412e;
	--ink: #1a1a1a;
	--ink-soft: #5c5c5c;
	--bg: #f5f6f5;
	--card: #ffffff;
	--line: #e3e5e2;
	--radius: 10px;
	--container: 1180px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===================== TOP NOTICE BAR ===================== */
.top-notice {
	background: var(--brand-dark); color: #fff; font-size: .82rem; padding: 6px 0;
}
.top-notice .container { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; }
.top-notice a { color: #fff; font-weight: 600; }
.top-notice a:hover { text-decoration: underline; }

/* ===================== HEADER ===================== */
.site-header { background: var(--card); border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.site-logo { font-size: 1.35rem; font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.site-logo img { max-height: 48px; }
.site-logo span { color: var(--accent); }

.menu-toggle {
	display: inline-flex; margin-left: auto; background: none; border: 2px solid var(--brand); border-radius: 6px;
	padding: 6px 10px; font-size: 1.3rem; color: var(--brand-dark);
}

.primary-nav { width: 100%; order: 4; display: none; }
.primary-nav.is-open { display: block; }
.primary-nav ul { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 10px; }
.primary-nav a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--ink); }
.primary-nav a:hover { color: var(--brand); }

.header-search { order: 3; flex: 1 1 160px; max-width: 260px; }
.header-search input {
	width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: .9rem;
}

@media (min-width: 900px) {
	.menu-toggle { display: none; }
	.header-inner { flex-wrap: nowrap; }
	.primary-nav { display: block !important; width: auto; order: 2; }
	.primary-nav ul { flex-direction: row; border-top: none; margin-top: 0; gap: 4px; }
	.primary-nav a { border-bottom: none; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
	.primary-nav a:hover { background: #eef7f0; }
	.header-search { order: 3; margin-left: auto; }
}

/* ===================== AD SLOT ===================== */
.ad-slot { margin: 24px auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot .ad-label { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 6px; }
.ad-slot:empty { display: none; }

/* ===================== HERO ===================== */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); padding: 28px 0; color: #fff; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-badge { background: var(--accent); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .04em; }
.hero-card h1, .hero-card h2 { font-size: 1.15rem; margin: 8px 0; flex: 1 1 260px; }
.hero-card h1 a, .hero-card h2 a { color: #fff; }
.btn { display: inline-block; background: var(--accent); color: #fff !important; padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: .92rem; border: none; }
.btn:hover { opacity: .9; }
.btn.outline { background: transparent; border: 2px solid #fff; }

/* ===================== SECTION HEAD ===================== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; gap: 10px; }
.section-head h2 { font-size: 1.25rem; margin: 0; border-left: 5px solid var(--accent); padding-left: 10px; }
.section-head a { font-size: .85rem; font-weight: 700; color: var(--brand); white-space: nowrap; }

/* ===================== LAYOUT: CONTENT + SIDEBAR ===================== */
.layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 20px 0 40px; }
@media (min-width: 960px) {
	.layout.has-sidebar { grid-template-columns: 2.2fr 1fr; }
}
.sidebar .widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.sidebar .widget h2, .sidebar .widget h3 { font-size: 1rem; margin: 0 0 10px; border-bottom: 2px solid var(--brand); padding-bottom: 6px; }
.sidebar .widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.sidebar .widget ul li:last-child { border-bottom: none; }

/* ===================== CARD GRID ===================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
	display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.card .card-thumb { border-radius: 8px; overflow: hidden; margin-bottom: 10px; aspect-ratio: 16/9; background: #eee; }
.card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: .98rem; margin: 0 0 8px; line-height: 1.4; }
.card .card-date { font-size: .78rem; color: var(--ink-soft); margin-top: auto; padding-top: 8px; }
.card .card-cat { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--brand-dark); background: #e7f4ec; padding: 3px 9px; border-radius: 20px; margin-bottom: 8px; align-self: flex-start; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb { font-size: .8rem; color: var(--ink-soft); margin: 14px 0; }
.breadcrumb a { color: var(--brand); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

/* ===================== SINGLE POST ===================== */
.single-post-title { font-size: 1.5rem; line-height: 1.35; margin: 4px 0 10px; }
.post-meta { font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.post-meta .cat-pill { background: #e7f4ec; color: var(--brand-dark); padding: 2px 10px; border-radius: 20px; font-weight: 600; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.share-row a, .share-row button {
	display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: 8px 14px;
	border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.share-row .whatsapp { border-color: #25D366; color: #128C3E; }
.share-row .telegram { border-color: #229ED9; color: #1a7fb0; }
.share-row .facebook { border-color: #1877F2; color: #1877F2; }

/* Quick Info Card (Job details) */
.job-info-card { background: #fffdf5; border: 1px solid #f0d98c; border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 26px; }
.job-info-card h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--brand-dark); }
.job-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 20px; margin-bottom: 14px; }
.job-info-grid .item { font-size: .88rem; }
.job-info-grid .item strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 2px; }
.important-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.important-links a { flex: 1 1 160px; text-align: center; }

.countdown-box { background: var(--brand-dark); color: #fff; border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: .88rem; }
.countdown-box strong { font-size: 1.05rem; }

.age-calc { background: var(--card); border: 1px dashed var(--brand); border-radius: 8px; padding: 14px 16px; margin-bottom: 6px; }
.age-calc h3 { font-size: .92rem; margin: 0 0 10px; }
.age-calc .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.age-calc label { font-size: .78rem; display: block; margin-bottom: 4px; color: var(--ink-soft); }
.age-calc input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: .88rem; }
.age-calc .result { margin-top: 10px; font-weight: 700; font-size: .92rem; }

/* Article content typography */
.entry-content { font-size: .98rem; }
.entry-content h2 { font-size: 1.2rem; margin: 26px 0 12px; padding-left: 10px; border-left: 4px solid var(--brand); }
.entry-content h3 { font-size: 1.05rem; margin: 20px 0 10px; }
.entry-content p { margin: 0 0 14px; }
.entry-content table { margin: 14px 0; font-size: .88rem; border: 1px solid var(--line); }
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.entry-content table th { background: #eef7f0; }
.entry-content ul, .entry-content ol { margin: 0 0 14px; padding-left: 22px; }
.entry-content img { border-radius: 8px; margin: 12px 0; }
.entry-content a { color: var(--brand); text-decoration: underline; }

/* Related posts */
.rr-related-posts { margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--line); }
.rr-related-posts h2 { font-size: 1.05rem; margin-bottom: 12px; }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0; }
.pagination a, .pagination span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; background: var(--card); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===================== COMMENTS ===================== */
.comments-area { margin-top: 30px; }
.comment-list { margin-bottom: 20px; }
.comment-body { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; font-family: inherit; }
.comment-form label { font-size: .85rem; display: block; margin-bottom: 4px; }

/* ===================== 404 / SEARCH ===================== */
.error-404, .search-no-results { text-align: center; padding: 50px 0; }
.error-404 h1 { font-size: 2.4rem; color: var(--brand); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--brand-dark); color: #dcefe2; margin-top: 40px; }
.footer-widgets { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 34px 0; }
@media (min-width: 720px) {
	.footer-widgets { grid-template-columns: repeat(4, 1fr); }
}
.footer-widgets h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer-widgets ul li { padding: 5px 0; font-size: .86rem; }
.footer-widgets a { color: #cfe9d6; }
.footer-widgets a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; text-align: center; font-size: .8rem; }

/* Back to top */
.back-to-top {
	position: fixed; bottom: 20px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
	background: var(--brand); color: #fff; border: none; font-size: 1.2rem; display: none; align-items: center; justify-content: center;
	box-shadow: 0 4px 10px rgba(0,0,0,.2); z-index: 60;
}
.back-to-top.show { display: flex; }

/* Sticky mobile Apply Now bar on single post */
.mobile-apply-bar {
	position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line);
	padding: 10px 14px; display: flex; gap: 10px; z-index: 55; box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
.mobile-apply-bar .btn { flex: 1; text-align: center; }
@media (min-width: 900px) { .mobile-apply-bar { display: none; } }
