/* Sarkari Jobs — main stylesheet */
:root {
	--sj-primary: #c1272d;
	--sj-secondary: #1d4ed8;
	--sj-bg: #f3f4f6;
	--sj-card: #ffffff;
	--sj-text: #1f2937;
	--sj-muted: #6b7280;
	--sj-border: #e5e7eb;
	--sj-accent: #fef3c7;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--sj-text);
	background: var(--sj-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--sj-secondary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
	height: 1px; width: 1px; overflow: hidden; position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 9999;
}
.skip-link:focus { left: 8px; }

.sj-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.sj-topbar { background: #111827; color: #e5e7eb; font-size: 13px; }
.sj-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; flex-wrap: wrap; }
.sj-topbar a { color: #e5e7eb; }
.sj-topbar__menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }

/* Header */
.sj-header { background: var(--sj-primary); color: #fff; padding: 16px 0; }
.sj-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sj-brand__text { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: 0.3px; }
.sj-brand__text:hover { text-decoration: none; }
.sj-brand__tag { margin: 4px 0 0; color: rgba(255,255,255,0.85); font-size: 13px; }
.sj-header__search { width: 100%; max-width: 360px; }

/* Search form */
.sj-search { display: flex; }
.sj-search__input {
	flex: 1; padding: 9px 12px; border: 0; border-radius: 4px 0 0 4px;
	background: #fff; color: var(--sj-text); font-size: 14px;
}
.sj-search__btn {
	border: 0; padding: 9px 16px; border-radius: 0 4px 4px 0;
	background: #111827; color: #fff; font-weight: 600; cursor: pointer;
}

/* Primary nav */
.sj-nav { background: var(--sj-secondary); }
.sj-nav__inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sj-nav__menu {
	list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap;
}
.sj-nav__menu li { position: relative; }
.sj-nav__menu a {
	display: block; color: #fff; padding: 12px 14px; font-weight: 600; font-size: 14px;
}
.sj-nav__menu a:hover, .sj-nav__menu .current-menu-item > a {
	background: rgba(0,0,0,0.15); text-decoration: none;
}
.sj-nav__menu .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
	background: var(--sj-secondary); list-style: none; padding: 0; margin: 0; z-index: 50;
}
.sj-nav__menu li:hover > .sub-menu, .sj-nav__menu li:focus-within > .sub-menu { display: block; }
.sj-nav__toggle {
	display: none; background: transparent; border: 0; cursor: pointer; padding: 12px;
}
.sj-nav__bar { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

/* Notice / marquee */
.sj-notice { background: var(--sj-accent); border-bottom: 1px solid var(--sj-border); }
.sj-notice__inner { display: flex; align-items: center; gap: 12px; min-height: 36px; overflow: hidden; }
.sj-notice__label {
	background: var(--sj-primary); color: #fff; padding: 4px 10px; font-size: 12px; font-weight: 700; border-radius: 3px;
}
.sj-notice__track { flex: 1; overflow: hidden; white-space: nowrap; }
.sj-notice__track span { display: inline-block; padding-left: 100%; animation: sj-marquee 25s linear infinite; font-weight: 600; }
.sj-notice__track:hover span { animation-play-state: paused; }
@keyframes sj-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Layout */
.sj-main { padding: 20px 0 40px; }
.sj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.sj-content { background: var(--sj-card); padding: 24px; border: 1px solid var(--sj-border); border-radius: 6px; }
.sj-sidebar { background: var(--sj-card); padding: 20px; border: 1px solid var(--sj-border); border-radius: 6px; align-self: start; }
body.no-sidebar .sj-layout { grid-template-columns: 1fr; }

.sj-page-header { border-bottom: 2px solid var(--sj-primary); padding-bottom: 10px; margin-bottom: 18px; }
.sj-page-title { margin: 0; font-size: 22px; color: var(--sj-primary); }
.sj-page-sub { margin: 6px 0 0; color: var(--sj-muted); font-size: 14px; }

/* Front-page grid */
.sj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sj-card { border: 1px solid var(--sj-border); border-radius: 6px; overflow: hidden; background: #fff; }
.sj-card__head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 14px; background: linear-gradient(90deg, var(--sj-primary), #a01f25); color: #fff;
}
.sj-card__title { margin: 0; font-size: 16px; }
.sj-card__more { color: #fff; font-size: 12px; font-weight: 600; }
.sj-card__list { list-style: none; padding: 0; margin: 0; max-height: 380px; overflow: auto; }
.sj-card__list li {
	display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
	padding: 10px 14px; border-bottom: 1px dashed var(--sj-border); font-size: 14px;
}
.sj-card__list li:last-child { border-bottom: 0; }
.sj-card__list time { color: var(--sj-muted); font-size: 12px; white-space: nowrap; }
.sj-card__empty { color: var(--sj-muted); font-style: italic; }

/* List / blog */
.sj-list__item { padding: 14px 0; border-bottom: 1px solid var(--sj-border); }
.sj-list__item:last-child { border-bottom: 0; }
.sj-list__title { margin: 0 0 4px; font-size: 18px; }
.sj-list__meta { color: var(--sj-muted); font-size: 13px; margin-bottom: 6px; }
.sj-list__excerpt { font-size: 15px; }

/* Single job */
.sj-job__crumbs { color: var(--sj-muted); font-size: 13px; margin-bottom: 8px; }
.sj-job__crumbs span { margin: 0 6px; }
.sj-job__title { color: var(--sj-primary); margin: 4px 0 8px; font-size: 24px; }
.sj-job__post-date { margin: 0 0 16px; color: var(--sj-muted); }
.sj-job__thumb { margin: 0 0 18px; }
.sj-job__intro { margin-bottom: 24px; }

.sj-block { margin: 0 0 24px; }
.sj-block__title {
	background: var(--sj-secondary); color: #fff; margin: 0 0 0;
	padding: 10px 14px; font-size: 16px; border-radius: 4px 4px 0 0;
}
.sj-block .sj-table-wrap { border: 1px solid var(--sj-border); border-top: 0; border-radius: 0 0 4px 4px; }

/* Tables */
.sj-table-wrap { overflow-x: auto; }
.sj-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.sj-table th, .sj-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--sj-border); vertical-align: top; }
.sj-table th[scope="row"] { background: #f9fafb; width: 38%; font-weight: 600; }
.sj-table thead th { background: #f3f4f6; font-weight: 700; }
.sj-table tbody tr:nth-child(even) td { background: #fafafa; }

/* Links / buttons */
.sj-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--sj-border); border-top: 0; border-radius: 0 0 4px 4px; }
.sj-btn {
	display: inline-block; padding: 10px 18px; border-radius: 4px;
	font-weight: 700; font-size: 14px; text-align: center;
}
.sj-btn:hover { text-decoration: none; opacity: 0.92; }
.sj-btn--primary { background: var(--sj-primary); color: #fff; }
.sj-btn--secondary { background: var(--sj-secondary); color: #fff; }
.sj-btn--ghost { background: #fff; color: var(--sj-text); border: 1px solid var(--sj-border); }

/* Sidebar widgets */
.widget { margin-bottom: 24px; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
	margin: 0 0 10px; padding: 8px 12px; background: var(--sj-primary); color: #fff; font-size: 15px; border-radius: 4px;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 4px; border-bottom: 1px dashed var(--sj-border); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }

/* Pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
.nav-links .page-numbers {
	display: inline-block; padding: 6px 12px; border: 1px solid var(--sj-border); border-radius: 4px; background: #fff; color: var(--sj-text);
}
.nav-links .page-numbers.current { background: var(--sj-primary); color: #fff; border-color: var(--sj-primary); }

/* Comments */
.sj-comments { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--sj-border); }
.sj-comments__title { font-size: 18px; }
.sj-comments__list { list-style: none; padding: 0; }

/* Footer */
.sj-footer { background: #111827; color: #d1d5db; margin-top: 40px; }
.sj-footer a { color: #f3f4f6; }
.sj-footer__widgets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; padding: 32px 16px; }
.sj-footer .widget-title { background: transparent; color: #fff; padding: 0 0 6px; border-bottom: 2px solid var(--sj-primary); border-radius: 0; }
.sj-footer__bar { background: #0b1220; }
.sj-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.sj-footer__menu { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0; }
.sj-footer__copy { margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
	.sj-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.sj-grid { grid-template-columns: 1fr; }
	.sj-footer__widgets { grid-template-columns: 1fr; }
	.sj-nav__toggle { display: inline-block; margin-left: auto; }
	.sj-nav__menu { display: none; width: 100%; flex-direction: column; }
	.sj-nav__menu.is-open { display: flex; }
	.sj-nav__menu a { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.15); }
	.sj-nav__menu .sub-menu { position: static; background: rgba(0,0,0,0.2); }
	.sj-header__inner { flex-direction: column; align-items: flex-start; }
	.sj-header__search { max-width: 100%; }
}
