/**
 * Tamkeen Job Manager - Public Stylesheet
 * Pixel-perfect match to Tamkeen Design Specs & Polylang Multilingual
 */

:root {
	--tjm-primary: #1b2050;
	--tjm-primary-dark: #11163a;
	--tjm-teal: #38a3a5;
	--tjm-teal-light: #5bc4c4;
	--tjm-gold: #d4b06a;
	--tjm-bg: #f8fafc;
	--tjm-card-bg: #ffffff;
	--tjm-card-border: #e2e8f0;
	--tjm-text: #1b2050;
	--tjm-muted: #64748b;
	--tjm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tjm-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Base Portal Container */
.tjm-portal {
	box-sizing: border-box;
	font-family: var(--tjm-font);
	color: var(--tjm-text);
	width: 100%;
	margin: 0 auto;
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.tjm-portal *,
.tjm-portal *::before,
.tjm-portal *::after {
	box-sizing: border-box;
}

/* RTL Support */
.tjm-portal.tjm-rtl {
	direction: rtl;
	text-align: right;
}

.tjm-portal.tjm-ltr {
	direction: ltr;
	text-align: left;
}

/* Sidebar (Left on LTR, Right on RTL) */
.tjm-sidebar {
	width: 300px;
	flex-shrink: 0;
	position: -webkit-sticky;
	position: sticky;
	top: 30px;
	align-self: flex-start;
	z-index: 10;
	max-height: calc(100vh - 50px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.tjm-sidebar-card {
	background: var(--tjm-card-bg);
	border: 1px solid var(--tjm-card-border);
	border-radius: 18px;
	padding: 24px 20px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.02);
}

.tjm-filter-header {
	font-size: 13px;
	font-weight: 800;
	color: var(--tjm-teal);
	text-transform: uppercase;
	letter-spacing: 1.8px;
	margin: 0 0 20px 0;
	padding: 0;
}

/* Filter Fields */
.tjm-filter-field {
	margin-bottom: 15px;
}

.tjm-filter-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
}

/* Custom Select with Chevron */
.tjm-select-chevron {
	position: relative;
	width: 100%;
}

.tjm-select-chevron select {
	width: 100%;
	height: 42px;
	background: #ffffff;
	border: 1px solid var(--tjm-card-border);
	border-radius: 10px;
	padding: 0 32px 0 12px;
	font-size: 13.5px;
	color: var(--tjm-text);
	font-weight: 500;
	outline: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: all 0.2s ease;
}

.tjm-rtl .tjm-select-chevron select {
	padding: 0 12px 0 32px;
}

.tjm-select-chevron::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #64748b;
	border-bottom: 2px solid #64748b;
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
	transition: transform 0.2s ease;
}

.tjm-rtl .tjm-select-chevron::after {
	right: auto;
	left: 14px;
}

.tjm-select-chevron select:focus {
	border-color: var(--tjm-teal);
	box-shadow: 0 0 0 3px rgba(56, 163, 165, 0.15);
}

/* Fewer / More Filters Toggle */
.tjm-fewer-wrap {
	margin: 10px 0 16px 0;
	display: flex;
}

button.tjm-badge-toggle-filters,
.tjm-badge-toggle-filters {
	background: #ffffff !important;
	border: 1.5px solid #cbd5e1 !important;
	color: #1b2050 !important;
	-webkit-text-fill-color: #1b2050 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	padding: 6px 14px !important;
	border-radius: 20px !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

button.tjm-badge-toggle-filters:hover,
.tjm-badge-toggle-filters:hover {
	background: #f1f5f9 !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
	-webkit-text-fill-color: #0f172a !important;
}

/* Filter Action Buttons */
.tjm-filter-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 10px;
	width: 100%;
}

button.tjm-btn-pill-primary,
.tjm-btn.tjm-btn-pill-primary,
#tjm-btn-apply-filters {
	flex: 1.35 !important;
	min-width: 110px !important;
	height: 42px !important;
	padding: 0 12px !important;
	background: var(--tjm-primary) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	border: 1px solid var(--tjm-primary) !important;
	border-radius: 24px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: 1 !important;
}

button.tjm-btn-pill-primary:hover,
.tjm-btn.tjm-btn-pill-primary:hover,
#tjm-btn-apply-filters:hover {
	background: var(--tjm-primary-dark) !important;
	box-shadow: 0 4px 12px rgba(27, 32, 80, 0.2) !important;
}

button.tjm-btn-pill-clear,
.tjm-btn.tjm-btn-pill-clear,
#tjm-btn-clear-filters {
	flex: 1 !important;
	min-width: 90px !important;
	height: 42px !important;
	padding: 0 8px !important;
	background: #ffffff !important;
	color: var(--tjm-primary) !important;
	-webkit-text-fill-color: var(--tjm-primary) !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 24px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	line-height: 1 !important;
}

button.tjm-btn-pill-clear:hover,
.tjm-btn.tjm-btn-pill-clear:hover {
	background: #f8fafc !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
}

/* Main Area */
.tjm-main-area {
	flex: 1;
	min-width: 0;
}

/* Top Bar: Vacancies Stat & Sorting */
.tjm-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
}

.tjm-vacancies-stat {
	font-family: var(--tjm-mono);
	font-size: 14px;
	color: #475569;
	font-weight: 500;
}

.tjm-count-val {
	font-weight: 700;
	color: var(--tjm-text);
}

.tjm-sort-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tjm-sort-label {
	font-size: 13px;
	color: var(--tjm-muted);
	font-weight: 500;
	white-space: nowrap;
}

.tjm-sort-chevron {
	width: auto;
	min-width: 140px;
}

.tjm-sort-chevron select {
	height: 38px;
	font-size: 13px;
	border-radius: 10px;
	border-color: #cbd5e1;
}

/* Cards Grid (2 Columns on Desktop) */
.tjm-cards-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

@media (max-width: 992px) {
	.tjm-portal {
		flex-direction: column;
	}
	.tjm-sidebar {
		width: 100%;
		position: static;
		max-height: none;
		overflow-y: visible;
	}
	.tjm-cards-grid {
		grid-template-columns: 1fr;
	}
}

/* Job Card */
.tjm-card {
	background: var(--tjm-card-bg);
	border: 1px solid var(--tjm-card-border);
	border-radius: 18px;
	padding: 24px 22px 20px 22px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
	transition: all 0.22s ease-in-out;
	position: relative;
}

.tjm-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(27, 32, 80, 0.07);
	border-color: #cbd5e1;
}

/* Card Top Badges Row */
.tjm-card-top-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.tjm-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
}

.tjm-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
}

/* Status variants */
.tjm-status-open {
	background: #dcfce7;
	color: #15803d;
}
.tjm-status-open .tjm-status-dot {
	background: #16a34a;
}

.tjm-status-closing {
	background: #fef3c7;
	color: #b45309;
}
.tjm-status-closing .tjm-status-dot {
	background: #d97706;
}

.tjm-status-closed {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}
.tjm-status-closed .tjm-status-dot {
	background: #dc2626;
}

/* Tag Badges: NEW / CLOSING SOON */
.tjm-tag-badge {
	font-size: 11px;
	font-weight: 800;
	padding: 3px 11px;
	border-radius: 12px;
	letter-spacing: 0.5px;
	display: inline-block;
}

.tjm-tag-new {
	background: #1b2050;
	color: #d4b06a;
}

.tjm-tag-closing {
	background: #d4b06a;
	color: #1b2050;
}

/* Title & Employer */
.tjm-card-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--tjm-text);
	margin: 0 0 5px 0;
	line-height: 1.3;
}

.tjm-card-employer {
	font-size: 13.5px;
	color: var(--tjm-muted);
	font-weight: 500;
	margin-bottom: 16px;
}

/* Meta Rows with Teal Icons */
.tjm-card-meta-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.tjm-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: #475569;
	font-weight: 500;
}

.tjm-icon {
	color: var(--tjm-teal);
	flex-shrink: 0;
}

/* Dashed divider */
.tjm-card-dashed-line {
	border-top: 1px dashed #e2e8f0;
	margin: 18px 0;
}

/* Dates Row */
.tjm-card-dates-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--tjm-mono);
	font-size: 11.5px;
	color: var(--tjm-muted);
	margin-bottom: 20px;
}

.tjm-date-label {
	font-weight: 500;
	margin-right: 4px;
}
.tjm-rtl .tjm-date-label {
	margin-right: 0;
	margin-left: 4px;
}

.tjm-date-val {
	font-weight: 600;
}

/* Card Action Buttons */
.tjm-card-actions-row {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: auto;
}

button.tjm-btn-pill-outline,
.tjm-card .tjm-btn-pill-outline,
.tjm-btn.tjm-btn-pill-outline,
a.tjm-btn-pill-outline,
.tjm-portal .tjm-btn-view {
	flex: 1;
	height: 42px;
	background: #ffffff !important;
	border: 1.5px solid #cbd5e1 !important;
	color: #1b2050 !important;
	-webkit-text-fill-color: #1b2050 !important;
	border-radius: 24px;
	font-size: 13px;
	font-weight: 700 !important;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 1 !important;
}

button.tjm-btn-pill-outline:hover,
.tjm-card .tjm-btn-pill-outline:hover,
.tjm-btn.tjm-btn-pill-outline:hover,
a.tjm-btn-pill-outline:hover,
.tjm-portal .tjm-btn-view:hover {
	background: #f1f5f9 !important;
	border-color: #94a3b8 !important;
	color: #171b45 !important;
	-webkit-text-fill-color: #171b45 !important;
}

.tjm-btn-pill-navy {
	flex: 1.15;
	height: 42px;
	background: var(--tjm-primary);
	border: 1px solid var(--tjm-primary);
	color: #ffffff;
	border-radius: 24px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.tjm-btn-pill-navy:hover {
	background: var(--tjm-primary-dark);
	border-color: var(--tjm-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(27, 32, 80, 0.2);
}

.tjm-btn-pill-navy .tjm-arrow {
	font-size: 14px;
	transition: transform 0.2s ease;
}

.tjm-btn-pill-navy:hover .tjm-arrow {
	transform: translateX(3px);
}
.tjm-rtl .tjm-btn-pill-navy:hover .tjm-arrow {
	transform: translateX(-3px);
}

/* ==========================================================================
   Closed Card Distinct Styling & Red Stamp Effect
   ========================================================================== */
/* ==========================================================================
   Closed Vacancy Distinct Styling & Rubber Stamp
   ========================================================================== */
.tjm-card.tjm-card-closed {
	background: #f8fafc;
	border: 1.5px solid #cbd5e1;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
	position: relative;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.tjm-card.tjm-card-closed:hover {
	transform: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	border-color: #94a3b8;
}

.tjm-card.tjm-card-closed::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #dc2626;
	z-index: 2;
}

.tjm-card.tjm-card-closed .tjm-card-title {
	color: #475569;
}

.tjm-card.tjm-card-closed .tjm-card-employer {
	color: #64748b;
}

.tjm-card.tjm-card-closed .tjm-meta-row {
	color: #64748b;
}

.tjm-card.tjm-card-closed .tjm-icon {
	color: #94a3b8;
}

/* Realistic Red Rubber Stamp Effect (ختم أحمر بارز ومائل) */
.tjm-stamp-closed {
	position: absolute;
	top: 16px;
	right: 18px;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #dc2626;
	background: rgba(254, 242, 242, 0.96);
	border: 2.5px solid #dc2626;
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.4), inset 0 0 0 1px rgba(220, 38, 38, 0.2), 0 4px 12px rgba(220, 38, 38, 0.18);
	transform: rotate(14deg);
	pointer-events: none;
	user-select: none;
	filter: drop-shadow(0 2px 5px rgba(220, 38, 38, 0.25));
}

.tjm-rtl .tjm-stamp-closed {
	right: auto;
	left: 18px;
	transform: rotate(-14deg);
}

.tjm-stamp-closed span {
	display: inline-block;
	border: 1.5px dashed #dc2626;
	padding: 2px 8px;
	border-radius: 3px;
	line-height: 1.2;
}

/* Stamp on Details Hero */
.tjm-detail-hero.tjm-detail-hero-closed {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border-bottom: 4px solid #dc2626;
	position: relative;
	overflow: hidden;
}

.tjm-stamp-hero {
	top: 24px;
	right: 180px !important;
	font-size: 15px;
	padding: 5px 15px;
	border-width: 2.5px;
	letter-spacing: 2.5px;
	transform: rotate(12deg);
	box-shadow: 0 0 0 1.5px rgba(220, 38, 38, 0.5), 0 6px 16px rgba(0, 0, 0, 0.35);
	pointer-events: none !important;
	z-index: 5 !important;
}

.tjm-rtl .tjm-stamp-hero {
	right: auto !important;
	left: 180px !important;
	transform: rotate(-12deg);
	pointer-events: none !important;
	z-index: 5 !important;
}

/* Strict Disabled Apply Button with not-allowed cursor and hover protection */
.tjm-btn-pill-disabled,
button.tjm-btn-pill-disabled,
.tjm-card-actions-row button.tjm-btn-pill-disabled,
.tjm-detail-footer-actions button.tjm-btn-pill-disabled,
.tjm-form-submit button.tjm-btn-pill-disabled {
	flex: 1.15 !important;
	height: 42px !important;
	background: #f1f5f9 !important;
	border: 1.5px solid #cbd5e1 !important;
	color: #64748b !important;
	border-radius: 24px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	cursor: not-allowed !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	box-shadow: none !important;
	transform: none !important;
	pointer-events: auto !important;
	user-select: none !important;
	white-space: nowrap !important;
	opacity: 0.95 !important;
}

.tjm-btn-pill-disabled:hover,
button.tjm-btn-pill-disabled:hover,
.tjm-card-actions-row button.tjm-btn-pill-disabled:hover,
.tjm-detail-footer-actions button.tjm-btn-pill-disabled:hover,
.tjm-form-submit button.tjm-btn-pill-disabled:hover {
	background: #fee2e2 !important;
	border-color: #fca5a5 !important;
	color: #b91c1c !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
}

.tjm-btn-pill-disabled:focus,
.tjm-btn-pill-disabled:active {
	outline: none !important;
	box-shadow: none !important;
	cursor: not-allowed !important;
}

.tjm-btn-lock {
	font-size: 13px;
	line-height: 1;
}

/* Closed Application Form Notice Banner & Disabled Form */
.tjm-form.tjm-form-disabled {
	opacity: 0.92;
}

.tjm-form.tjm-form-disabled input,
.tjm-form.tjm-form-disabled select,
.tjm-form.tjm-form-disabled textarea,
.tjm-form.tjm-form-disabled button {
	cursor: not-allowed !important;
	background: #f8fafc !important;
}

.tjm-closed-form-notice {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	border-radius: 12px;
	padding: 18px 22px;
	margin-bottom: 24px;
	color: #991b1b;
}

.tjm-closed-form-notice .tjm-closed-icon {
	font-size: 30px;
	line-height: 1;
	flex-shrink: 0;
}

.tjm-closed-form-notice h4 {
	margin: 0 0 4px 0;
	font-size: 16px;
	font-weight: 800;
	color: #b91c1c;
}

.tjm-closed-form-notice p {
	margin: 0;
	font-size: 13.5px;
	color: #7f1d1d;
	line-height: 1.5;
}

/* Form disabled state when job is closed */
.tjm-form.tjm-form-disabled {
	position: relative;
}

.tjm-form.tjm-form-disabled .tjm-form-grid {
	opacity: 0.55;
	pointer-events: none;
}

.tjm-form.tjm-form-disabled input,
.tjm-form.tjm-form-disabled select,
.tjm-form.tjm-form-disabled textarea {
	cursor: not-allowed !important;
	background: #f1f5f9 !important;
}

.tjm-form.tjm-form-disabled button[type="submit"] {
	background: #94a3b8 !important;
	border-color: #94a3b8 !important;
	color: #ffffff !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
}

/* Empty State Card */
.tjm-no-vacancies-card {
	grid-column: 1 / -1;
	background: #ffffff;
	border: 1px dashed var(--tjm-card-border);
	border-radius: 18px;
	padding: 44px 20px;
	text-align: center;
}

.tjm-no-vacancies-card h3 {
	margin: 0 0 8px 0;
	font-size: 17px;
	color: var(--tjm-text);
}

.tjm-no-vacancies-card p {
	margin: 0;
	font-size: 13.5px;
	color: var(--tjm-muted);
}

/* Modal Popup Window */
.tjm-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tjm-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
}

.tjm-modal-content {
	position: relative;
	background: #ffffff;
	width: 100%;
	max-width: 840px;
	max-height: 92vh;
	border-radius: 18px;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	animation: tjmModalFadeIn 0.25s ease-out;
}

@keyframes tjmModalFadeIn {
	from { opacity: 0; transform: scale(0.96) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

button.tjm-modal-close-icon,
.tjm-modal-content > button.tjm-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 50%;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #ffffff;
	z-index: 25;
	transition: all 0.2s ease;
}

button.tjm-modal-close-icon:hover,
.tjm-modal-content > button.tjm-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.tjm-rtl button.tjm-modal-close-icon,
.tjm-rtl .tjm-modal-content > button.tjm-modal-close {
	right: auto;
	left: 18px;
}

/* ==========================================================================
   Job Details View & Modal (Pixel-perfect match to user screenshot)
   ========================================================================== */
.tjm-modal-job-header,
.tjm-detail-hero {
	background: #151940;
	background: linear-gradient(145deg, #181d45 0%, #111432 100%);
	color: #ffffff;
	padding: 44px 40px 36px 40px;
	position: relative;
}

.tjm-detail-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 14px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
	background: #e8f8f0;
	color: #1f9d6b;
	margin-bottom: 18px;
}

.tjm-detail-status-pill.tjm-status-closing {
	background: #fef3c7;
	color: #b45309;
}

.tjm-detail-status-pill.tjm-status-closed {
	background: #fee2e2;
	color: #b91c1c;
}

.tjm-stage-pill {
	color: var(--tjm-gold);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.tjm-modal-job-title,
.tjm-detail-title {
	font-size: 34px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 28px 0;
	line-height: 1.22;
	letter-spacing: -0.5px;
}

/* 2-row x 3-col Meta Grid */
.tjm-modal-job-meta-grid,
.tjm-detail-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 24px;
}

@media (max-width: 768px) {
	.tjm-modal-job-meta-grid,
	.tjm-detail-meta-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.tjm-modal-job-meta-grid,
	.tjm-detail-meta-grid {
		grid-template-columns: 1fr;
	}
}

.tjm-detail-meta-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tjm-meta-key {
	font-size: 11px;
	font-weight: 800;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.tjm-meta-val {
	font-size: 13.5px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tjm-meta-val.tjm-val-cyan {
	color: #5bc4c4;
	font-family: var(--tjm-mono);
}

/* Distinct Rounded White Cards on Soft Light Background */
.tjm-modal-inner-body,
.tjm-detail-body {
	background: #f8fafc;
	padding: 34px 40px;
}

.tjm-detail-card {
	background: #ffffff;
	border: 1.5px solid #edf2f7;
	border-radius: 16px;
	padding: 24px 28px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
	transition: all 0.2s ease;
}

.tjm-detail-card:hover {
	border-color: #e2e8f0;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.tjm-detail-card-heading {
	font-size: 12.5px;
	font-weight: 800;
	color: #2a9d9d;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	margin: 0 0 14px 0;
	padding: 0;
}

.tjm-detail-card-body {
	font-size: 14.5px;
	line-height: 1.65;
	color: #334155;
}

/* Diamond Bullets List */
.tjm-detail-bullet-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tjm-detail-bullet-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14.5px;
	line-height: 1.6;
	color: #334155;
}

.tjm-bullet-diamond {
	color: var(--tjm-gold);
	font-size: 12px;
	margin-top: 3px;
	flex-shrink: 0;
}

.tjm-detail-exp-row {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed #e2e8f0;
	font-size: 14px;
	color: #475569;
}

.tjm-detail-exp-row strong {
	color: var(--tjm-text);
}

/* Bottom Footer Actions Bar */
.tjm-detail-footer-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
	padding-top: 12px;
}

.tjm-detail-footer-actions .tjm-btn {
	position: static !important;
	height: 48px !important;
	padding: 0 28px !important;
	border-radius: 9999px !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.tjm-detail-footer-actions .tjm-btn-pill-navy {
	background: var(--tjm-primary) !important;
	color: #ffffff !important;
	border: 1px solid var(--tjm-primary) !important;
	min-width: 200px !important;
	box-shadow: 0 4px 14px rgba(27, 32, 80, 0.18) !important;
}

.tjm-detail-footer-actions .tjm-btn-pill-navy:hover {
	background: var(--tjm-primary-dark) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 18px rgba(27, 32, 80, 0.25) !important;
}

.tjm-detail-footer-actions .tjm-btn-pill-outline {
	background: #ffffff !important;
	color: var(--tjm-primary) !important;
	border: 1.5px solid #d4daf0 !important;
}

.tjm-detail-footer-actions .tjm-btn-pill-outline:hover {
	background: #f8fafc !important;
	border-color: var(--tjm-primary) !important;
	color: var(--tjm-primary) !important;
	transform: translateY(-1px) !important;
}

.tjm-modal-desc-section {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

.tjm-modal-desc-section h4 {
	font-size: 16px;
	font-weight: 700;
	color: var(--tjm-text);
	margin: 0 0 8px 0;
}

.tjm-modal-desc-section p,
.tjm-modal-desc-section div {
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
}

/* Standalone Application Form */
.tjm-apply-standalone {
	max-width: 860px;
	background: #ffffff;
	border: 1px solid var(--tjm-card-border);
	border-radius: 18px;
	padding: 36px 32px;
	box-shadow: 0 10px 30px rgba(27, 32, 80, 0.04);
}

.tjm-form-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px 20px;
}

.tjm-fld-w100,
.tjm-fld-full {
	grid-column: span 6;
}

.tjm-fld-w50 {
	grid-column: span 3;
}

.tjm-fld-w33 {
	grid-column: span 2;
}

@media (max-width: 900px) {
	.tjm-fld-w33 {
		grid-column: span 3;
	}
}

@media (max-width: 640px) {
	.tjm-form-grid {
		grid-template-columns: 1fr;
	}
	.tjm-fld-w100,
	.tjm-fld-w50,
	.tjm-fld-w33,
	.tjm-fld-full {
		grid-column: 1 / -1;
	}
}

.tjm-fld {
	display: flex;
	flex-direction: column;
}

.tjm-fld label:not(.ck):not(.tjm-ck):not(.tjm-checkbox-label) {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tjm-text);
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px !important;
	line-height: 1.4;
}

.tjm-req {
	color: #e11d48;
	margin: 0 2px;
}

.tjm-op {
	font-size: 12px;
	color: #94a3b8;
	font-weight: normal;
}

.tjm-fld input[type="text"],
.tjm-fld input[type="email"],
.tjm-fld input[type="tel"],
.tjm-fld input[type="number"],
.tjm-fld input[type="date"],
.tjm-fld select,
.tjm-fld textarea {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border-radius: 8px;
	border: 1px solid var(--tjm-card-border);
	background: #ffffff;
	font-size: 14px;
	color: var(--tjm-text);
	outline: none;
	transition: all 0.2s ease;
}

.tjm-fld textarea {
	height: auto;
	padding: 12px 14px;
	resize: vertical;
}

.tjm-fld input:focus,
.tjm-fld select:focus,
.tjm-fld textarea:focus {
	border-color: var(--tjm-teal);
	box-shadow: 0 0 0 3px rgba(56, 163, 165, 0.15);
}

.tjm-checkbox-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	color: var(--tjm-text);
	line-height: 1.5;
}

.tjm-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--tjm-primary);
	cursor: pointer;
}

.tjm-file-wrap {
	border: 2px dashed var(--tjm-card-border);
	padding: 22px;
	border-radius: 10px;
	background: #f8fafc;
	text-align: center;
	transition: border-color 0.2s ease;
}

.tjm-file-wrap:hover {
	border-color: var(--tjm-teal);
}

.tjm-file-hint {
	font-size: 12px;
	color: #64748b;
	margin-top: 8px;
}

.tjm-form-submit {
	margin-top: 28px;
	text-align: center;
}

.tjm-form-submit button {
	min-width: 240px;
	height: 48px;
	font-size: 15px;
	border-radius: 24px;
}

.tjm-form-alert {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.tjm-alert-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.tjm-alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ==========================================================================
   Talent Pool Form & Thank-You Screen (100% Match to Client Specs)
   ========================================================================== */
.tjm-talent-pool-wrap {
	max-width: 860px;
	margin: 0 auto;
	font-family: var(--tjm-font);
	box-sizing: border-box;
}

.tjm-talent-pool-wrap *,
.tjm-talent-pool-wrap *::before,
.tjm-talent-pool-wrap *::after {
	box-sizing: border-box;
}

.tjm-talent-pool-wrap.tjm-rtl {
	direction: rtl;
	text-align: right;
}

.tjm-talent-pool-wrap.tjm-ltr {
	direction: ltr;
	text-align: left;
}

.tjm-talent-pool-wrap .form-sec {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 36px 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
	.tjm-talent-pool-wrap .form-sec {
		padding: 24px 20px;
	}
}

.tjm-talent-pool-wrap .fsec {
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid #edf2f7;
}

.tjm-talent-pool-wrap .fsec:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.tjm-talent-pool-wrap .fsec h3 {
	font-size: 19px;
	font-weight: 700;
	color: #1b2050;
	margin: 0 0 6px 0;
}

.tjm-talent-pool-wrap .fsec p.nt {
	font-size: 13.5px;
	color: #64748b;
	margin: 0 0 20px 0;
	line-height: 1.5;
}

.tjm-talent-pool-wrap .grid2 {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px 24px;
}

.tjm-talent-pool-wrap .fld.tjm-fld-w100,
.tjm-talent-pool-wrap .fld.full {
	grid-column: span 6;
}

.tjm-talent-pool-wrap .fld.tjm-fld-w50 {
	grid-column: span 3;
}

.tjm-talent-pool-wrap .fld.tjm-fld-w33 {
	grid-column: span 2;
}

@media (max-width: 900px) {
	.tjm-talent-pool-wrap .fld.tjm-fld-w33 {
		grid-column: span 3;
	}
}

@media (max-width: 768px) {
	.tjm-talent-pool-wrap .grid2 {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.tjm-talent-pool-wrap .fld.tjm-fld-w100,
	.tjm-talent-pool-wrap .fld.tjm-fld-w50,
	.tjm-talent-pool-wrap .fld.tjm-fld-w33,
	.tjm-talent-pool-wrap .fld.full {
		grid-column: 1 / -1;
	}
}

.tjm-talent-pool-wrap .fld {
	display: flex;
	flex-direction: column;
}

.tjm-talent-pool-wrap .fld label:not(.ck):not(.tjm-ck) {
	font-size: 13.5px;
	font-weight: 600;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px !important;
	line-height: 1.4;
}

.tjm-talent-pool-wrap .fld input[type="file"],
.tjm-fld input[type="file"] {
	font-size: 13.5px;
	color: #334155;
	padding: 4px 0;
	margin-top: 2px;
}

.tjm-talent-pool-wrap .fld label i.rq {
	color: #ef4444;
	font-style: normal;
	font-weight: bold;
}

.tjm-talent-pool-wrap .fld label span.op {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 400;
}

.tjm-talent-pool-wrap .fld input[type="text"],
.tjm-talent-pool-wrap .fld input[type="email"],
.tjm-talent-pool-wrap .fld input[type="tel"],
.tjm-talent-pool-wrap .fld input[type="date"],
.tjm-talent-pool-wrap .fld select,
.tjm-talent-pool-wrap .fld textarea {
	width: 100%;
	height: 46px;
	line-height: 46px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	padding: 0 14px;
	font-size: 14px;
	background: #ffffff;
	color: #0f172a;
	transition: all 0.2s ease;
	outline: none;
	font-family: inherit;
}

.tjm-talent-pool-wrap .fld textarea {
	height: auto;
	min-height: 100px;
	line-height: 1.5;
	padding: 12px 14px;
}

.tjm-talent-pool-wrap .fld input:focus,
.tjm-talent-pool-wrap .fld select:focus,
.tjm-talent-pool-wrap .fld textarea:focus {
	border-color: #38a3a5;
	box-shadow: 0 0 0 3px rgba(56, 163, 165, 0.15);
}

.tjm-talent-pool-wrap .fld select {
	cursor: pointer;
}

/* Checkbox Style */
.tjm-talent-pool-wrap label.ck {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 500;
	color: #334155;
	user-select: none;
	line-height: 1.4;
}

.tjm-talent-pool-wrap label.ck input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #1b2050;
	cursor: pointer;
	flex-shrink: 0;
	margin: 0;
}

/* Security Notice Box */
.tjm-talent-pool-wrap .nb.w {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #38a3a5;
	border-radius: 8px;
	padding: 14px 18px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 20px 0;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

.tjm-talent-pool-wrap.tjm-rtl .nb.w {
	border-left: 1px solid #e2e8f0;
	border-right: 4px solid #38a3a5;
}

.tjm-talent-pool-wrap .nb.w svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	fill: #38a3a5;
	margin-top: 1px;
}

/* File Upload Zone */
.tjm-talent-pool-wrap .upbox {
	border: 2px dashed #cbd5e1;
	border-radius: 10px;
	padding: 24px 20px;
	text-align: center;
	background: #f8fafc;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.tjm-talent-pool-wrap .upbox:hover,
.tjm-talent-pool-wrap .upbox.dragover {
	border-color: #38a3a5;
	background: #f0fdfa;
}

.tjm-talent-pool-wrap .upbox input[type="file"] {
	width: 100%;
	font-size: 13px;
	color: #475569;
	cursor: pointer;
}

.tjm-talent-pool-wrap .upbox p.uph {
	font-size: 12px;
	color: #94a3b8;
	margin: 8px 0 0 0;
}

/* Submit Bar */
.tjm-talent-pool-wrap .form-sub-bar {
	margin-top: 24px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}

.tjm-talent-pool-wrap .btn-submit-cv {
	background: #1b2050;
	color: #ffffff;
	border: none;
	border-radius: 28px;
	padding: 14px 36px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 4px 14px rgba(27, 32, 80, 0.2);
}

.tjm-talent-pool-wrap .btn-submit-cv:hover {
	background: #11163a;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(27, 32, 80, 0.28);
}

.tjm-talent-pool-wrap .btn-submit-cv:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Thank You Screen */
.tjm-talent-pool-wrap .thank-you {
	display: none !important;
	text-align: center;
	padding: 50px 30px;
}

.tjm-talent-pool-wrap .thank-you .tick {
	width: 72px;
	height: 72px;
	background: #10b981;
	color: #ffffff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	font-weight: 900;
	margin-bottom: 20px;
	box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
	animation: tjmPopTick 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tjmPopTick {
	0% { transform: scale(0.4); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

.tjm-talent-pool-wrap .thank-you h3 {
	font-size: 24px;
	font-weight: 800;
	color: #1b2050;
	margin: 0 0 10px 0;
}

.tjm-talent-pool-wrap .thank-you p {
	font-size: 15px;
	color: #64748b;
	max-width: 540px;
	margin: 0 auto 30px auto;
	line-height: 1.6;
}

.tjm-talent-pool-wrap .thank-you .ty-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.tjm-talent-pool-wrap .thank-you .btn-ty-browse {
	background: #1b2050;
	color: #ffffff;
	text-decoration: none;
	padding: 12px 28px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 700;
	transition: all 0.2s ease;
}

.tjm-talent-pool-wrap .thank-you .btn-ty-browse:hover {
	background: #11163a;
}

.tjm-talent-pool-wrap .thank-you .btn-ty-another {
	background: #ffffff;
	color: #1b2050;
	border: 1.5px solid #cbd5e1;
	padding: 12px 28px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tjm-talent-pool-wrap .thank-you .btn-ty-another:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

/* ==========================================================================
   Talent Pool Success Pop-up Modal
   ========================================================================== */
.tjm-tp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: all 0.28s ease-in-out;
}

.tjm-tp-modal-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.tjm-tp-modal-card {
	background: #ffffff;
	border-radius: 24px;
	max-width: 500px;
	width: 100%;
	padding: 38px 32px 32px 32px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	text-align: center;
	position: relative;
	transform: scale(0.9);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tjm-tp-modal-overlay.is-active .tjm-tp-modal-card {
	transform: scale(1);
}

.tjm-tp-modal-card.rtl {
	direction: rtl;
	text-align: center;
}

.tjm-tp-modal-card.ltr {
	direction: ltr;
	text-align: center;
}

.tjm-tp-modal-close-x {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f1f5f9;
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 34px;
	color: #64748b;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjm-tp-modal-card.rtl .tjm-tp-modal-close-x {
	right: auto;
	left: 18px;
}

.tjm-tp-modal-close-x:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.tjm-tp-modal-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #059669;
	font-size: 34px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px auto;
	box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.12);
}

.tjm-tp-modal-title {
	font-size: 22px;
	font-weight: 800;
	color: #1b2050;
	margin: 0 0 10px 0;
	line-height: 1.35;
}

.tjm-tp-modal-desc {
	font-size: 14.5px;
	line-height: 1.65;
	color: #475569;
	margin: 0 0 24px 0;
}

.tjm-tp-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.tjm-tp-modal-btn-confirm {
	background: #292f6e;
	color: #ffffff !important;
	padding: 12px 28px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	transition: all 0.2s;
	text-decoration: none;
}

.tjm-tp-modal-btn-confirm:hover {
	background: #171b45;
}

.tjm-tp-modal-btn-browse {
	background: #f1f5f9;
	color: #334155 !important;
	padding: 12px 24px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	transition: all 0.2s;
	text-decoration: none;
}

.tjm-tp-modal-btn-browse:hover {
	background: #e2e8f0;
}
