/*
Theme Name: Job Theme by Shaw
Theme URI: https://example.com
Author: Roshan
Author URI: https://example.com
Description: A lightweight, fast, SEO-friendly WordPress theme for job portals, inspired by Sarkari Result & Sarkari Exam.
Version: 1.2.0
Text Domain: job-theme
*/

/* Reset & Basic Styling */
:root {
	--primary-color: #22c55e; /* Default Sarkariprep Green */
	--primary-hover: #16a34a;
	--text-color: #111827;
	--text-muted: #6b7280;
	--bg-color: #f3f4f6; /* Light gray app bg */
	--white: #ffffff;
	--border-color: #e5e7eb;
	--border-card: #d1d5db;

	/* Icons / Accents */
	--icon-orange: #f59e0b;
	--icon-red: #ef4444;
	--icon-purple: #8b5cf6;
	--icon-cyan: #06b6d4;
	--icon-pink: #ec4899;
	--icon-yellow: #eab308;
}

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

body {
	font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--text-color);
	background-color: var(--bg-color);
	line-height: 1.6;
}

a { color: var(--text-color); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 10px; }
@media (max-width: 767px) {
	.container { padding: 0; }
}

/* Header Navbar - White/Centered */
.site-header {
	background: var(--white);
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	border-bottom: 2px solid var(--border-color);
}

.header-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative; 
}

.site-branding { text-align: center; }
.site-title { font-size: 26px; font-weight: 800; margin: 0;  }
.site-title a { color:#055B99;; display: flex; align-items: center; justify-content: center; gap: 8px; }

.mobile-menu-toggle {
	position: absolute;
	right: 10px; /* Hamburger on the right */
	top: 50%;
	transform: translateY(-50%);
	display: block;
}

.menu-toggle {
	background: transparent;
	border: none;
	color: var(--text-color);
	font-size: 24px;
	padding: 5px;
	cursor: pointer;
}

/* Hide desktop nav, because we mostly rely on mobile menu or dropdown */
.main-navigation {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: var(--white);
	padding: 15px 20px;
	margin-top: 10px;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	border-top: 1px solid var(--border-color);
}
.main-navigation.toggled { display: block; }
.main-navigation ul { list-style: none; display: flex; flex-direction: column; gap: 15px;  }

@media (min-width: 992px) {
	.header-inner { justify-content: space-between; }
	.mobile-menu-toggle { display: none; }
	.main-navigation {
		display: block;
		position: static;
		width: auto;
		background: transparent;
		box-shadow: none;
		border: none;
		padding: 0;
		margin: 0;
	}
	.main-navigation ul { flex-direction: row; }
}

/* Page Layout */
.site-content { padding: 20px 0 40px; }

/* ======== NEW HOMEPAGE (Sarkariprep Style) ======== */

/* Top Quick Links */
.top-quick-links {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 15px;
	margin-bottom: 30px;
}
@media (max-width: 767px) {
	.top-quick-links {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
}
.q-link {
	background: #f8fafc;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 10px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--text-color);
	transition: all 0.2s;
}
.q-link strong { font-size: 14px; font-weight: 800; color: #000; margin-bottom: 4px; }
.q-link span { font-size: 11px; font-weight: 600; color: #333; }
.q-link:hover { background: #f1f5f9; border-color: #cbd5e1; }

/* Section Dividers */
.section-divider {
	text-align: center;
	position: relative;
	margin: 30px 0 20px;
}
.section-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--text-color);
	z-index: 1;
}
.section-divider span {
	background: var(--bg-color); /* Match body bg */
	padding: 0 15px;
	position: relative;
	z-index: 2;
	font-weight: 800;
	font-size: 16px;
	color: var(--text-color);
}

/* Important Updates List */
.important-updates-box {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 30px;
}
.update-item {
	background: var(--white);
	padding: 15px;
	border: 1px solid #fcedec;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
@keyframes blinkIndicator {
	0% { opacity: 1; }
	50% { opacity: 0.3; }
	100% { opacity: 1; }
}
.update-item a { color: var(--text-color); }
.update-item a:hover { color: var(--primary-color); }
.update-icon { color: red; font-size: 10px; animation: blinkIndicator 1.5s infinite; }
.badge-live { color: red; font-size: 12px; margin-left: 5px; font-weight: 800; }

/* 6 Column Sarkari Grid */
.sarkari-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 30px;
}
@media (max-width: 767px) {
	.sarkari-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	.box-result { order: 1; }
	.box-jobs { order: 2; }
	.box-admit { order: 3; }
	.box-board { order: 4; }
	.box-answer { order: 5; }
	.box-syllabus { order: 6; }
}
.s-box {
	background: var(--white);
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.s-header {
	background: #055B99;
	color: #ffffff;
	padding: 10px;
	text-align: center;
	font-weight: bold;
	border-bottom: 1px solid #111;
	font-size: 18px;
}
.s-list {
	list-style: none;
	padding: 0;
	flex-grow: 1;
}
.s-list li {
	padding: 10px 6px;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.s-list li i { font-size: 6px; color: #000; margin-top: 6px; }
.s-list li a { color: #0056b3; font-weight: 700; }
.s-list li a:hover { color: #16a34a; }

.s-view-more {
	display: block;
	text-align: center;
	padding: 10px;
	font-weight: 800;
	font-size: 13px;
	color: var(--text-color);
	border-top: 1px solid #111;
	background: #f8fafc;
}
.s-view-more:hover { color: var(--primary-color); }
.s-view-more i { margin-left: 5px; }

/* Qualification Grid */
.qual-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin-bottom: 30px;
}
@media (max-width: 992px) { .qual-grid { grid-template-columns: repeat(2, 1fr); } }
.qual-card {
	background: var(--white);
	border: 1px solid var(--border-card);
	border-radius: 4px;
	text-align: center;
	padding: 20px;
}
.qual-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 15px; }
.qual-icon {
	width: 60px; height: 60px;
	background: #3b82f6;
	color: white;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 24px;
	margin: 0 auto 15px;
}
.qual-link { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.qual-link:hover { color: var(--primary-color); }

/* States Grid */
.states-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 30px;
}
@media (max-width: 768px) { .states-grid { grid-template-columns: 1fr; } }
.state-card {
	background: var(--white);
	border: 1px solid var(--border-card);
	border-radius: 4px;
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.st-info strong { display: block; font-size: 14px; font-weight: 800; }
.st-info small { color: var(--text-muted); font-size: 12px; }
.st-arrow { color: var(--text-muted); font-size: 12px; }
.state-card:hover { border-color: var(--primary-hover); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* SEO Box */
.seo-box {
	background: var(--white);
	border: 1px solid var(--border-card);
	padding: 20px;
	border-radius: 4px;
	font-size: 13px;
	color: var(--text-muted);
}
.seo-box h3 { font-size: 15px; font-weight: 800; color: var(--text-color); margin-bottom: 10px; }

/* ====== SINGLE POST SARKARIPREP STYLE ====== */
.single-sarkari {
	background: var(--white);
	padding: 0px 0; /* Add more breathing room */
}

/* Open & Clean Title Header */
.single-title-header {
	text-align: center;
	margin: 0 auto ;
	max-width: 900px;
}
.single-title {
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 10px;    
	padding-top: 10px;
	line-height: 1.4;
}
.single-meta-info {
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
}
@media (max-width: 768px) {
	.single-title { font-size: 22px; 	margin-bottom: 1px;     padding-top: 10px;}
	.single-sarkari { padding: 0px 0; }
}

/* Content & Layout */
.single-post-content {
	max-width: 100%;
	margin-top: 10px;
	overflow: hidden;
	padding: 10px;
	background-color: #fff;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	border-left: none;
	border-right: none;
	border-radius: 0;
}
.entry-content { font-size: 15px; line-height: 1.8; color: var(--post-text-color); word-wrap: break-word; overflow-wrap: break-word; }
.entry-content p { margin-bottom: 1.5em; text-align: justify; }
.entry-content img, .entry-content iframe, .entry-content video { max-width: 100%; }

/* Sarkari Table Design */
.entry-content .wp-block-table {
	width: 100% !important;
	max-width: 100% !important;
	display: block;
	overflow-x: auto;
}
.entry-content table {
	width: 100% !important;
	min-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	border-collapse: collapse;
	margin: 30px 0;
	border: 1px solid #e2e8f0;
	background: var(--white);
	font-size: 14px;
	display: table !important;
	table-layout: fixed !important;
	overflow: visible !important;
}
.entry-content > *:last-child {
	margin-bottom: 0 !important;
}
.entry-content table tbody, .entry-content table thead {
	height: auto !important;
	max-height: none !important;
	display: table-row-group !important;
	overflow: visible !important;
}
.entry-content table tr {
	height: auto !important;
	display: table-row !important;
}
.entry-content table th, .entry-content table td {
	padding: 10px 15px !important;
	border: 1px solid #e2e8f0 !important;
	color: var(--post-text-color) !important;
	word-wrap: break-word !important;
	word-break: break-word !important;
	white-space: normal !important;
	height: auto !important;
	max-height: none !important;
	display: table-cell !important;
}
.entry-content table th {
	background: #f8fafc !important;
	color: #0f172a !important;
	font-weight: 800 !important;
	text-align: center !important;
}
.entry-content table tr:hover td { background-color: #f1f5f9 !important; }
.entry-content table td strong { color: #1e293b !important; }

/* Sarkariprep style Step Lists & Block Lists */
.entry-content ul {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}
.entry-content ul li {
	position: relative;
	padding: 10px 15px 10px 30px;
	border-bottom: 1px dashed #e2e8f0;
	color: var(--post-text-color);
}
.entry-content ul li:last-child { border-bottom: none; }
.entry-content ul li::before {
	content: '\f105'; /* FontAwesome right angle bracket */
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	left: 10px;
	top: 12px;
	font-size: 12px;
	color: var(--primary-color);
}
.entry-content ul.steps li { /* Specifically for how to blocks if users add class */
	border: 1px solid #e2e8f0;
	margin-bottom: 5px;
	border-radius: 2px;
}

/* Pagination Styling */
.sarkari-pagination { margin: 30px 0; text-align: center; }
.sarkari-pagination .nav-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sarkari-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; color: var(--text-color); font-weight: 600; text-decoration: none; transition: 0.25s all ease; font-size: 15px; }
.sarkari-pagination .page-numbers:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--primary-color); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.sarkari-pagination .page-numbers.current, .sarkari-pagination .page-numbers.current:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.sarkari-pagination .page-numbers.dots { background: transparent; border: none; min-width: auto; padding: 0 5px; color: #94a3b8; font-weight: bold; }

/* Fallback Archives & Singles */

/* Footer */
/* Footer */
.site-footer { background: var(--footer-bg-color, #111827); color: var(--footer-text-color, #ffffff); padding: 40px 0 20px; margin-top: 10px; border-top: 4px solid var(--primary-color); box-shadow: 0 -4px 6px rgba(0,0,0,0.02); }
.footer-bottom { padding: 0; border-top: none; font-size: 15px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.site-info a { color: var(--footer-text-color); font-weight: 600; text-decoration: underline; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-menu li a { color: var(--footer-menu-color); font-size: var(--footer-menu-size); font-weight: 600; text-decoration: underline; }
.footer-menu li a:hover, .site-info a:hover { color: #fff; }

@media (max-width: 768px) {
	.footer-bottom-inner { flex-direction: column; text-align: center; justify-content: center; }
	.footer-menu { justify-content: center; margin-top: 10px; }
}

.btn-home {
	display: block;
	width: fit-content;
	margin: 25px auto 0;
	padding: 12px 25px;
	background-color: #0073aa;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
	text-align: center;
	transition: all 0.3s ease;
}

.btn-home:hover {
	background-color: #005177;
	color: #ffffff;
}


