/* Sarkari Jobs Manager - front-end styles (kisi bhi theme me chalte hain) */

.sjm-home-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 24px;
}

.sjm-box {
	background: #fff;
	border: 1px solid #d9dee8;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.sjm-single-box { margin: 0 0 20px; }

.sjm-box-title {
	margin: 0;
	padding: 10px 14px;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
}

.sjm-box-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.sjm-item {
	margin: 0;
	padding: 9px 14px;
	border-bottom: 1px solid #edf0f5;
	font-size: 15px;
	line-height: 1.45;
}

.sjm-item:last-child { border-bottom: 0; }

.sjm-item a {
	color: #14213d;
	text-decoration: none;
	font-weight: 600;
}

.sjm-item a:hover,
.sjm-item a:focus-visible { text-decoration: underline; }

.sjm-featured a { color: #c1272d; }

.sjm-new {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 6px;
	border-radius: 3px;
	background: #c1272d;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	vertical-align: 1px;
}

.sjm-last {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: #5b6577;
}

.sjm-empty { color: #5b6577; font-size: 14px; }

.sjm-box-more {
	padding: 8px 14px;
	border-top: 1px solid #edf0f5;
	text-align: right;
	font-size: 14px;
	font-weight: 700;
}

.sjm-box-more a { text-decoration: none; }
.sjm-box-more a:hover { text-decoration: underline; }

/* Term grids (state wise / qualification wise) */
.sjm-term-grid {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 8px;
}
.sjm-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.sjm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sjm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sjm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sjm-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sjm-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.sjm-term-grid li { margin: 0; }

.sjm-term-grid a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	background: #fff;
	border: 1px solid #d9dee8;
	border-left: 4px solid #1b2a5c;
	border-radius: 3px;
	color: #14213d;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.sjm-term-grid a:hover,
.sjm-term-grid a:focus-visible { background: #eef2fb; }

.sjm-term-grid em {
	flex: none;
	min-width: 24px;
	padding: 0 6px;
	border-radius: 10px;
	background: #eef2fb;
	color: #1b2a5c;
	font-size: 12px;
	font-style: normal;
	text-align: center;
}

/* Single post details */
.sjm-detail { margin: 0 0 20px; }

.sjm-shortinfo {
	margin: 0 0 16px;
	padding: 12px 16px;
	background: #fff8e1;
	border-left: 4px solid #e0a100;
	border-radius: 3px;
}
.sjm-shortinfo p { margin: 0 0 8px; }
.sjm-shortinfo p:last-child { margin: 0; }

.sjm-facts {
	width: 100%;
	margin: 0 0 16px;
	border-collapse: collapse;
	background: #fff;
}
.sjm-facts th,
.sjm-facts td {
	padding: 9px 12px;
	border: 1px solid #d9dee8;
	text-align: left;
	vertical-align: top;
}
.sjm-facts th { width: 34%; background: #f3f5f9; font-weight: 700; }

.sjm-closed {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	border-radius: 3px;
	background: #6b7280;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.sjm-panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.sjm-panel {
	background: #fff;
	border: 1px solid #d9dee8;
	border-radius: 4px;
	overflow: hidden;
}
.sjm-panel h3 {
	margin: 0;
	padding: 8px 14px;
	background: #1b2a5c;
	color: #fff;
	font-size: 16px;
}
.sjm-panel > p,
.sjm-panel > ul { margin: 0; padding: 10px 14px; }
.sjm-panel > ul { list-style: none; }
.sjm-panel > ul li { padding: 4px 0; border-bottom: 1px dashed #dde2ec; }
.sjm-panel > ul li:last-child { border-bottom: 0; }

.sjm-body { margin: 0 0 20px; }
.sjm-body table { width: 100%; border-collapse: collapse; background: #fff; }
.sjm-body th,
.sjm-body td { padding: 8px 10px; border: 1px solid #c9d0de; text-align: left; vertical-align: top; }
.sjm-body th { background: #eef2fb; }

/* Important links table */
.sjm-links {
	margin: 0 0 20px;
	background: #fff;
	border: 1px solid #d9dee8;
	border-radius: 4px;
	overflow: hidden;
}
.sjm-links h3 {
	margin: 0;
	padding: 10px 14px;
	background: #c1272d;
	color: #fff;
	font-size: 17px;
}
.sjm-links table { width: 100%; border-collapse: collapse; }
.sjm-links th,
.sjm-links td { padding: 10px 14px; border-top: 1px solid #edf0f5; text-align: left; }
.sjm-links th { font-weight: 600; width: 55%; }

.sjm-btn {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 3px;
	background: #0f7a4d;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}
.sjm-btn:hover,
.sjm-btn:focus-visible { background: #0b5e3a; }

/* Search form */
.sjm-search { display: flex; max-width: 640px; }
.sjm-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 2px solid #1b2a5c;
	border-right: 0;
	border-radius: 4px 0 0 4px;
	font-size: 16px;
}
.sjm-search button {
	padding: 11px 20px;
	border: 2px solid #1b2a5c;
	border-radius: 0 4px 4px 0;
	background: #1b2a5c;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.sjm-search button:hover { background: #121c40; }

@media (max-width: 960px) {
	.sjm-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sjm-cols-4,
	.sjm-cols-5,
	.sjm-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.sjm-home-grid,
	.sjm-panels { grid-template-columns: 1fr; }
	.sjm-cols-3,
	.sjm-cols-4,
	.sjm-cols-5,
	.sjm-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sjm-links th { width: auto; }
	.sjm-facts th { width: 40%; }
}


/* ---------- Post header (Name Of Post / Date / Short Information) ---------- */
.sjm-postinfo { margin: 0 0 14px; }
.sjm-postinfo table { width: 100%; border-collapse: collapse; background: transparent; }
.sjm-postinfo th,
.sjm-postinfo td { padding: 8px 10px; border: 0; vertical-align: top; text-align: left; }
.sjm-postinfo th {
	width: 26%;
	color: #d4281c;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}
.sjm-pi-title {
	margin: 0;
	color: #d4281c;
	font-size: 29px;
	line-height: 1.25;
	font-weight: 800;
}
.sjm-postinfo td p { margin: 0 0 8px; }
.sjm-postinfo td p:last-child { margin: 0; }

/* ---------- Social cards ---------- */
.sjm-social-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 18px;
	padding-top: 14px;
	border-top: 1px solid #14213d;
}
.sjm-social-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #d9dee8;
	border-radius: 6px;
}
.sjm-social-card strong { flex: 1; font-size: 16px; }
.sjm-soc-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}
.sjm-soc-btn {
	padding: 6px 14px;
	border-radius: 4px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.sjm-soc-btn:hover { filter: brightness(1.1); }

/* ---------- Colourful title box ---------- */
.sjm-title-box {
	margin: 0 0 18px;
	padding: 10px 14px;
	border: 1px solid #14213d;
	background: #fff;
	text-align: center;
}
.sjm-title-box p { margin: 6px 0; font-weight: 800; line-height: 1.3; }
.sjm-t1 { color: #d11bd6; font-size: 25px; }
.sjm-t2 { color: #2c7a1d; font-size: 25px; }
.sjm-t3 { color: #d11bd6; font-size: 25px; }

/* Editor me use hone wale heading helper */
.sjm-body h2.sjm-h,
.sjm-body .sjm-h {
	margin: 22px 0 10px;
	padding: 8px 12px;
	background: #1b2a5c;
	color: #fff;
	font-size: 19px;
	text-align: center;
}

@media (max-width: 640px) {
	.sjm-postinfo table, .sjm-postinfo tbody, .sjm-postinfo tr, .sjm-postinfo th, .sjm-postinfo td { display: block; width: 100%; }
	.sjm-postinfo th { text-align: left; padding-bottom: 0; white-space: normal; }
	.sjm-pi-title { font-size: 22px; }
	.sjm-social-grid { grid-template-columns: 1fr; }
	.sjm-t1, .sjm-t2, .sjm-t3 { font-size: 19px; }
}
