/*
Theme Name: میز کارگزینی
Theme URI: https://www.pandorajewelry.name/
Author: صبانت
Description: میز کارگزینی — اخبار استخدامی
Version: 1.0.0
Text Domain: kargozini
*/

:root {
	--ink: #1e2d45;
	--muted: #617089;
	--paper: #f7f9fc;
	--sheet: #ffffff;
	--desk: #d9e2ec;
	--wood: #b08968;
	--wood-deep: #8a6548;
	--folder: #f0d9a8;
	--folder-edge: #d4b56e;
	--navy: #2c4a6e;
	--stamp: #c0392b;
	--line: #c5d0de;
	--ok: #2f7d57;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		linear-gradient(180deg, #e8eef5 0%, var(--paper) 35%, #eef2f7 100%);
	color: var(--ink);
	font-family: Tahoma, "Segoe UI", "Trebuchet MS", sans-serif;
	line-height: 1.7;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--stamp); }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* HR desk masthead — light office scene */
.hr-desk {
	position: relative;
	overflow: hidden;
	min-height: 230px;
	background:
		linear-gradient(180deg, #cfd9e6 0%, #e4ebf3 48%, #cbb495 48%, #b08968 100%);
	border-bottom: 4px solid var(--wood-deep);
}
.hr-desk .wall {
	position: absolute; inset: 0 0 52% 0;
	background:
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 36px,
			rgba(44, 74, 110, 0.04) 36px,
			rgba(44, 74, 110, 0.04) 37px
		);
}
.hr-desk .desk-top {
	position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
	background:
		linear-gradient(180deg, rgba(255,255,255,.22), transparent 30%),
		linear-gradient(90deg, #a67c52, #c4a07a 40%, #a67c52 70%, #8a6548);
	z-index: 1;
}
.desk-props {
	position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.desk-props .folder-stack {
	position: absolute; bottom: 28%; left: 6%;
	width: 120px; height: 70px;
}
.desk-props .stamp {
	position: absolute; bottom: 30%; right: 8%;
	width: 64px; height: 64px;
}
.desk-props .pen {
	position: absolute; bottom: 26%; right: 22%;
	width: 90px; height: 10px;
	background: linear-gradient(90deg, #2c4a6e, #4a6d92);
	transform: rotate(-12deg);
	border-radius: 2px;
}

.desk-brand {
	position: relative; z-index: 4;
	max-width: 1120px; margin: 0 auto;
	padding: 28px 16px 86px;
	display: flex; align-items: center; gap: 14px;
}
.desk-brand .logo {
	width: 68px; height: 68px; flex: 0 0 auto;
	filter: drop-shadow(0 4px 10px rgba(30,45,69,.2));
}
.brand-card {
	background: var(--sheet);
	border: 2px solid var(--navy);
	border-bottom-width: 5px;
	padding: 10px 16px 12px;
	min-width: 0;
	box-shadow: 0 8px 18px rgba(30,45,69,.1);
}
.brand-card .name {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--navy);
	line-height: 1.25;
}
.brand-card .tag {
	display: block;
	margin-top: 3px;
	font-size: .86rem;
	color: var(--muted);
}
.stamp-note {
	margin-inline-start: auto;
	font-size: .78rem;
	color: var(--stamp);
	border: 2px dashed var(--stamp);
	padding: 8px 12px;
	background: rgba(255,255,255,.75);
	font-weight: 700;
	letter-spacing: .02em;
	transform: rotate(-3deg);
}

/* Folder-tab nav */
.folder-nav {
	background: var(--sheet);
	border-bottom: 2px solid var(--line);
}
.folder-nav-inner {
	max-width: 1120px; margin: 0 auto;
	padding: 0 14px;
	display: flex; align-items: center;
}
.nav-toggle { display: none; }
.nav-btn {
	display: none; width: 40px; height: 40px;
	align-items: center; justify-content: center; cursor: pointer;
}
.nav-btn span {
	display: block; width: 20px; height: 2px; background: var(--navy);
	box-shadow: 0 6px 0 var(--navy), 0 -6px 0 var(--navy);
}
.nav {
	display: flex; flex-wrap: wrap;
	padding: 6px 0 0;
	gap: 4px;
}
.nav a {
	color: var(--muted);
	padding: 8px 14px 10px;
	font-size: .9rem;
	background: var(--desk);
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
}
.nav a:hover, .nav a.on {
	color: var(--navy);
	background: var(--folder);
	border-color: var(--folder-edge);
	font-weight: 700;
}

/* LTR shell */
.shell {
	max-width: 1120px;
	margin: 20px auto 44px;
	padding: 0 14px;
	display: flex;
	flex-direction: row;
	gap: 20px;
	align-items: flex-start;
	direction: ltr;
}
.shell > main,
.shell > .active-folder {
	direction: rtl;
	text-align: right;
}
.shell > main { flex: 1 1 auto; min-width: 0; }
.shell > .active-folder { flex: 0 0 290px; width: 290px; }

.section-label {
	font-size: 1.05rem;
	color: var(--navy);
	margin: 0 0 14px;
	padding: 0 0 8px;
	border-bottom: 2px solid var(--folder-edge);
	font-weight: 700;
}

/* Dossier file stack — NOT cover grid / install rows / status bar */
.dossier-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.dossier {
	display: grid;
	grid-template-columns: 28px 1fr;
	background: var(--sheet);
	border: 1px solid var(--line);
	box-shadow: 0 6px 14px rgba(30,45,69,.06);
	color: inherit;
	min-height: 96px;
	transition: transform .12s ease, border-color .12s ease;
}
.dossier:hover {
	transform: translateY(-2px);
	border-color: var(--navy);
	color: inherit;
}
.dossier .tab {
	background: var(--folder);
	border-inline-end: 1px solid var(--folder-edge);
	position: relative;
}
.dossier .tab::after {
	content: "";
	position: absolute;
	top: 12px; left: 50%;
	transform: translateX(-50%);
	width: 10px; height: 10px;
	background: var(--stamp);
	border-radius: 50%;
	opacity: .85;
}
.dossier.lead {
	grid-template-columns: 36px 1fr;
	min-height: 140px;
	border-top: 3px solid var(--navy);
}
.dossier.lead .tab { background: #e8c87a; }
.dossier-body {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 12px;
	padding: 12px 14px;
	align-items: center;
}
.dossier.lead .dossier-body {
	grid-template-columns: 130px 1fr;
	padding: 16px 18px;
}
.dossier-art {
	width: 100%;
	aspect-ratio: 1;
	background: var(--desk);
	border: 1px solid var(--line);
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.dossier-art img { width: 100%; height: 100%; object-fit: cover; }
.dossier-art svg { width: 40px; height: 40px; opacity: .5; }
.dossier-meta { min-width: 0; }
.dossier-meta .kicker {
	font-size: .72rem;
	color: var(--stamp);
	font-weight: 700;
	letter-spacing: .02em;
}
.dossier-meta h2, .dossier-meta h3 {
	margin: 3px 0 5px;
	font-size: 1.02rem;
	line-height: 1.4;
	color: var(--ink);
	font-weight: 700;
}
.dossier.lead .dossier-meta h2 { font-size: 1.28rem; }
.dossier-meta .meta {
	font-size: .78rem;
	color: var(--muted);
}
.dossier-meta .excerpt {
	margin: 6px 0 0;
	font-size: .88rem;
	color: var(--muted);
	line-height: 1.55;
}
.dossier-meta .seal {
	display: inline-block;
	margin-top: 8px;
	font-size: .72rem;
	padding: 3px 8px;
	border: 1px solid var(--ok);
	color: var(--ok);
	font-weight: 700;
}

/* Active folder sidebar */
.active-folder {
	background: var(--sheet);
	border: 2px solid var(--line);
	border-top: 5px solid var(--folder-edge);
	padding: 14px;
	box-shadow: 0 8px 18px rgba(30,45,69,.06);
}
.folder-head {
	display: flex; align-items: center; gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px dashed var(--line);
}
.folder-head svg { width: 34px; height: 34px; flex: 0 0 auto; }
.folder-head strong {
	display: block;
	font-size: 1rem;
	color: var(--navy);
}
.widget {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--line);
}
.widget:last-child { border-bottom: 0; margin-bottom: 0; }
.widget-title {
	margin: 0 0 8px;
	font-size: .9rem;
	color: var(--navy);
	border-inline-start: 3px solid var(--stamp);
	padding-inline-start: 8px;
}
.widget ul { margin: 0; padding: 0 1.1em 0 0; }
.widget li { margin-bottom: 6px; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--stamp); }
.widget input[type="search"],
.widget input[type="text"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
}
.behtarinseo { font-size: .85rem; line-height: 1.7; }
.behtarinseo a { color: var(--navy); }
.behtarinseo table { width: 100%; border-collapse: collapse; }
.behtarinseo td { padding: 4px 0; vertical-align: top; }
.behtarinseo div[style*="border"] {
	border-color: var(--line) !important;
	background: var(--paper);
	margin-bottom: 4px;
	padding: 4px;
}

.entry {
	background: var(--sheet);
	border: 1px solid var(--line);
	border-top: 4px solid var(--navy);
	padding: 22px 24px 30px;
	box-shadow: 0 8px 18px rgba(30,45,69,.05);
}
.entry-title {
	margin: 6px 0 8px;
	font-size: 1.5rem;
	color: var(--ink);
	line-height: 1.35;
}
.entry .kicker { color: var(--stamp); font-size: .8rem; font-weight: 700; }
.entry .meta { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.entry-thumb { margin: 0 0 16px; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: .98rem; }
.entry-content p { margin: 0 0 1em; }
.entry-content h2, .entry-content h3 { color: var(--navy); }

.site-footer {
	max-width: 1120px;
	margin: 0 auto 28px;
	padding: 14px 18px;
	text-align: center;
	font-size: .85rem;
	color: var(--muted);
	border-top: 2px solid var(--line);
}
.nav-links {
	display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.nav-links a {
	padding: 6px 12px;
	border: 1px solid var(--line);
	background: var(--sheet);
	color: var(--ink);
}
.nav-links a:hover { border-color: var(--navy); color: var(--navy); }
.comments-area { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); }

@media (max-width: 900px) {
	.shell { flex-direction: column; }
	.shell > .active-folder { flex: 1 1 auto; width: 100%; }
	.stamp-note { display: none; }
}
@media (max-width: 560px) {
	.dossier-body,
	.dossier.lead .dossier-body { grid-template-columns: 72px 1fr; }
	.desk-brand { padding-bottom: 70px; }
	.desk-props { display: none; }
	.nav-btn { display: flex; }
	.nav { display: none; width: 100%; flex-direction: column; }
	.nav-toggle:checked ~ .nav { display: flex; }
	.nav a { border-radius: 0; border: 1px solid var(--line); }
}
