/* SchoolSTI Verified Jobs Portal v5.0 — Lightweight HD & Mobile-First RTL Stylesheet */
.sti-wp-wrap {
	direction: rtl;
	text-align: right;
	font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
	color: #0f172a;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 10px;
	box-sizing: border-box;
	line-height: 1.65;
	overflow-x: hidden;
}
.sti-wp-wrap *, .sti-wp-wrap *::before, .sti-wp-wrap *::after {
	box-sizing: border-box;
}
.sti-wp-wrap bdi, .sti-ltr {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Topbar & Search */
.sti-wp-topbar {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 16px;
	padding: 14px 16px;
	margin-bottom: 18px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}
.sti-wp-topbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.sti-wp-verified-pill {
	font-size: 12px;
	background: #dcfce7;
	color: #065f46;
	border: 1px solid #86efac;
	padding: 6px 12px;
	border-radius: 99px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.sti-wp-search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 1;
	min-width: min(100%, 280px);
}
.sti-wp-input, .sti-wp-select {
	padding: 10px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	font-size: 14px;
	outline: none;
	background: #ffffff;
	color: #0f172a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sti-wp-input {
	flex: 1;
	min-width: min(100%, 200px);
}
.sti-wp-select {
	min-width: 150px;
}
.sti-wp-input:focus, .sti-wp-select:focus {
	border-color: #047857;
	box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.14);
}

/* Buttons */
.sti-wp-btn {
	cursor: pointer;
	border: none;
	border-radius: 11px;
	padding: 9px 14px;
	font-weight: 700;
	font-size: 13px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none !important;
	line-height: 1.4;
}
.sti-wp-btn:hover {
	transform: translateY(-1px);
	filter: brightness(0.97);
}
.sti-wp-btn-home {
	background: #ecfdf5;
	color: #065f46 !important;
	border: 1px solid #a7f3d0;
}
.sti-wp-btn-apply {
	background: linear-gradient(135deg, #047857 0%, #065f46 100%);
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}
.sti-wp-btn-ad {
	background: #fbbf24;
	color: #0f172a !important;
	border: 1px solid #f59e0b;
}

/* Responsive Grids */
.sti-wp-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
	gap: 18px;
	margin-bottom: 24px;
}
.sti-wp-grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

/* Step 1 Main Sector Cards */
.sti-wp-main-card {
	border-radius: 20px;
	padding: 22px;
	color: #ffffff;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.sti-wp-main-card:hover, .sti-wp-sub-card:hover, .sti-wp-job-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 24px -6px rgba(15, 23, 42, 0.14);
}
.sti-wp-gov-bg {
	background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #115e59 100%);
	border: 2px solid rgba(16, 185, 129, 0.4);
}
.sti-wp-priv-bg {
	background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 55%, #1e3a8a 100%);
	border: 2px solid rgba(99, 102, 241, 0.4);
}
.sti-wp-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}
.sti-wp-sector-badge {
	padding: 4px 12px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 800;
	color: #0f172a;
}
.sti-wp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0;
}
.sti-wp-chip {
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.24);
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
}
.sti-wp-card-foot {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 800;
	font-size: 14px;
}

/* Step 2 Subcategory Cards */
.sti-wp-sub-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
	background: #f8fafc;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
}
.sti-wp-sub-card {
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 16px;
	padding: 16px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.sti-wp-sub-card.active {
	border-color: #059669;
	background: #f0fdf4;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Step 3 Section Header (Fixes mobile cutoff & empty pill bug) */
.sti-wp-section-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-right: 5px solid #047857;
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.sti-wp-section-title {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.45;
}
.sti-wp-count-badge {
	background: #dcfce7;
	color: #065f46;
	border: 1px solid #86efac;
	padding: 5px 14px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
	white-space: nowrap;
}

/* Job Card & HD Mini Ad Preview */
.sti-wp-job-card {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.sti-wp-job-body {
	padding: 16px;
}
.sti-wp-job-badges {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}
.sti-wp-org-name {
	font-size: 12px;
	color: #047857;
	font-weight: 800;
	margin-bottom: 4px;
}
.sti-wp-job-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.5;
}

/* Built-in Lightweight HD Ad Thumbnail Box inside Card */
.sti-wp-hd-thumb {
	background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
	border: 1.5px dashed #d97706;
	border-radius: 12px;
	padding: 10px 12px;
	margin: 10px 0;
	cursor: pointer;
	position: relative;
	transition: background 0.2s ease;
}
.sti-wp-hd-thumb:hover {
	background: #fef3c7;
}
.sti-wp-hd-thumb-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	font-weight: 800;
	color: #92400e;
	border-bottom: 1px solid rgba(217, 119, 6, 0.25);
	padding-bottom: 4px;
	margin-bottom: 6px;
}
.sti-wp-hd-thumb-summary {
	font-size: 12px;
	color: #1e293b;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Specs Box */
.sti-wp-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	background: #f8fafc;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	font-size: 12px;
	margin: 10px 0;
}
.sti-wp-spec-item small {
	color: #64748b;
	display: block;
	font-size: 11px;
	margin-bottom: 2px;
}
.sti-wp-spec-item strong {
	color: #0f172a;
	font-size: 12.5px;
	word-break: break-word;
}
.sti-wp-job-meta-foot {
	font-size: 12px;
	color: #475569;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.sti-wp-job-actions {
	padding: 12px 16px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Modal & High-Resolution HD Newspaper Ad View */
.sti-wp-modal-bg {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.82);
	backdrop-filter: blur(3px);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 14px 12px 84px;
	overflow-y: auto;
}
.sti-wp-modal-box {
	background: #ffffff;
	border-radius: 20px;
	max-width: 780px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
	border: 1px solid #cbd5e1;
}
.sti-wp-modal-head {
	background: #0f172a;
	color: #ffffff;
	padding: 14px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	position: sticky;
	top: 0;
	z-index: 10;
}
.sti-wp-modal-close {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 99px;
	cursor: pointer;
	font-weight: 800;
	font-size: 15px;
	flex-shrink: 0;
}
.sti-wp-ad-paper {
	background: #fffdf9;
	border: 2px solid #0f172a;
	border-radius: 14px;
	padding: 18px;
	margin: 16px;
	box-shadow: inset 0 0 0 3px #f1f5f9;
}
.sti-wp-ad-banner {
	background: #064e3b;
	color: #ffffff;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.sti-wp-ad-table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0;
	font-size: 13px;
}
.sti-wp-ad-table th, .sti-wp-ad-table td {
	border: 1px solid #cbd5e1;
	padding: 9px 12px;
	text-align: right;
}
.sti-wp-ad-table th {
	background: #f1f5f9;
	color: #334155;
	font-weight: 800;
	width: 34%;
}
.sti-wp-modal-foot {
	padding: 0 16px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.sti-hidden {
	display: none !important;
}

@media (max-width: 600px) {
	.sti-wp-wrap { padding: 8px 6px; }
	.sti-wp-main-card { padding: 18px; }
	.sti-wp-section-title { font-size: 15px; }
	.sti-wp-specs { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px; }
	.sti-wp-ad-paper { margin: 10px; padding: 14px; }
}
