/**
 * Gallery → FAQ — layout fixes (loaded last)
 * Fixes RTL/LTR marquee conflict + theme overrides on lower sections
 */

/* ── Isolate lower sections from theme layout ── */
.sms-careers-wrap #sms-gallery-flawless-v11,
.sms-careers-wrap #sms-jobs-v1,
.sms-careers-wrap #sms-hr-contact-v2,
.sms-careers-wrap #sms-faq-v2 {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	float: none !important;
	clear: both !important;
	position: relative !important;
	box-sizing: border-box !important;
	unicode-bidi: isolate !important;
}

/* ── Shared containers ── */
.sms-careers-wrap .rb11-container,
.sms-careers-wrap .jb-container,
.sms-careers-wrap .hr-container,
.sms-careers-wrap .fq-container {
	max-width: 1200px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
	box-sizing: border-box !important;
	float: none !important;
}

.sms-careers-wrap .fq-container {
	max-width: 900px !important;
}

/* ═══════════════ GALLERY ═══════════════ */
.sms-careers-wrap #sms-gallery-flawless-v11 {
	background-color: #fdfdfd !important;
	direction: rtl !important;
	padding: 4rem 0 5rem !important;
	overflow-x: clip !important;
	overflow-y: visible !important;
	z-index: 2 !important;
}

.sms-careers-wrap .rb11-header {
	text-align: right !important;
	margin-bottom: 2.5rem !important;
	width: 100% !important;
}

.sms-careers-wrap .rb11-title-wrap {
	position: relative !important;
	display: inline-block !important;
	padding-right: 14px !important;
}

.sms-careers-wrap .rb11-title-wrap::before {
	content: '' !important;
	position: absolute !important;
	right: 0 !important;
	top: 10% !important;
	bottom: 10% !important;
	width: 4px !important;
	background: #ffbe00 !important;
	border-radius: 4px !important;
}

.sms-careers-wrap .rb11-title {
	font-size: 28px !important;
	font-variation-settings: "wght" 900 !important;
	color: #0f172a !important;
	letter-spacing: -1px !important;
	line-height: 1.4 !important;
	margin: 0 !important;
}

.sms-careers-wrap .rb11-subtitle {
	font-size: 14.5px !important;
	font-variation-settings: "wght" 500 !important;
	color: #64748b !important;
	margin-top: 0.5rem !important;
}

/* Marquee isolated LTR island */
.sms-careers-wrap .rb11-marquee-outer {
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
	position: relative !important;
	direction: ltr !important;
	unicode-bidi: isolate !important;
	isolation: isolate !important;
}

.sms-careers-wrap .rb11-marquee-wrapper {
	display: flex !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
	position: relative !important;
	padding: 1.5rem 0 !important;
	direction: ltr !important;
	-webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent) !important;
	mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent) !important;
}

.sms-careers-wrap .rb11-track-slide {
	display: flex !important;
	flex-wrap: nowrap !important;
	width: max-content !important;
	gap: 16px !important;
	padding-right: 16px !important;
	flex-shrink: 0 !important;
	animation: rb11-scroll 35s linear infinite !important;
}

.sms-careers-wrap .rb11-marquee-wrapper:hover .rb11-track-slide {
	animation-play-state: paused !important;
}

.sms-careers-wrap .rb11-item {
	flex: 0 0 240px !important;
	width: 240px !important;
	height: 160px !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	background: #f1f5f9 !important;
	position: relative !important;
	cursor: zoom-in !important;
	box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sms-careers-wrap .rb11-image {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	display: block !important;
	filter: grayscale(12%) brightness(0.95) !important;
}

/* Lightboxes — بدون تأثیر روی flow صفحه */
.sms-careers-wrap .rb11-lightboxes-root {
	display: block !important;
	width: 100% !important;
	height: 0 !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	position: static !important;
}

.sms-careers-wrap .rb11-lb-toggle {
	display: none !important;
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sms-careers-wrap .rb11-lightbox {
	display: none !important;
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 9999999 !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sms-careers-wrap .rb11-lb-toggle:checked + .rb11-lightbox {
	display: flex !important;
}

/* ═══════════════ JOBS ═══════════════ */
.sms-careers-wrap #sms-jobs-v1 {
	background-color: #fdfdfd !important;
	direction: rtl !important;
	padding: 5rem 0 8rem !important;
	overflow-x: clip !important;
	z-index: 3 !important;
}

.sms-careers-wrap .jb-header {
	text-align: right !important;
	margin-bottom: 4rem !important;
	width: 100% !important;
}

.sms-careers-wrap .jb-title-wrap {
	position: relative !important;
	display: inline-block !important;
	padding-right: 16px !important;
}

.sms-careers-wrap .jb-title-wrap::before {
	content: '' !important;
	position: absolute !important;
	right: 0 !important;
	top: 10% !important;
	bottom: 10% !important;
	width: 4px !important;
	background: #ffbe00 !important;
	border-radius: 4px !important;
}

.sms-careers-wrap .jb-title {
	font-size: 32px !important;
	font-variation-settings: "wght" 900 !important;
	color: #0f172a !important;
	letter-spacing: -1px !important;
	line-height: 1.4 !important;
	margin: 0 0 0.5rem !important;
}

.sms-careers-wrap .jb-subtitle {
	font-size: 15.5px !important;
	font-variation-settings: "wght" 500 !important;
	color: #64748b !important;
	margin: 0 !important;
}

.sms-careers-wrap .jb-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 1.5rem !important;
	width: 100% !important;
}

.sms-careers-wrap .jb-card {
	background: #fff !important;
	border: 1px solid #f1f5f9 !important;
	border-radius: 20px !important;
	padding: 2rem !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	position: relative !important;
	overflow: hidden !important;
	color: inherit !important;
	text-decoration: none !important;
	min-height: 0 !important;
}

.sms-careers-wrap .jb-card-header {
	margin-bottom: 2.5rem !important;
}

.sms-careers-wrap .jb-job-title {
	font-size: 20px !important;
	font-variation-settings: "wght" 850 !important;
	color: #0f172a !important;
	margin: 0 0 1rem !important;
}

.sms-careers-wrap .jb-tags {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
}

.sms-careers-wrap .jb-tag {
	font-size: 12px !important;
	font-variation-settings: "wght" 700 !important;
	padding: 6px 12px !important;
	border-radius: 8px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.sms-careers-wrap .jb-tag.dept {
	background: rgba(0, 65, 255, 0.06) !important;
	color: #0041ff !important;
}

.sms-careers-wrap .jb-tag.type {
	background: rgba(255, 190, 0, 0.15) !important;
	color: #b08300 !important;
}

.sms-careers-wrap .jb-tag.loc {
	background: #f1f5f9 !important;
	color: #475569 !important;
}

.sms-careers-wrap .jb-card-footer {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
}

.sms-careers-wrap .jb-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 14px !important;
	font-variation-settings: "wght" 700 !important;
	color: #0f172a !important;
	background: #f8fafc !important;
	padding: 10px 20px !important;
	border-radius: 10px !important;
}

.sms-careers-wrap .jb-card-special {
	grid-column: span 2 !important;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
	border: none !important;
	flex-direction: row !important;
	align-items: center !important;
	padding: 2.5rem 3rem !important;
	cursor: pointer !important;
	color: #fff !important;
}

.sms-careers-wrap .jb-special-content .jb-job-title {
	color: #fff !important;
}

.sms-careers-wrap .jb-special-content p {
	font-size: 14.5px !important;
	color: #94a3b8 !important;
	margin: 0 !important;
}

.sms-careers-wrap .jb-btn-special {
	background: #ffbe00 !important;
	color: #0f172a !important;
}

/* ═══════════════ HR ═══════════════ */
.sms-careers-wrap #sms-hr-contact-v2 {
	background-color: #fdfdfd !important;
	direction: rtl !important;
	padding: 0 0 6rem !important;
	overflow-x: clip !important;
	z-index: 3 !important;
}

.sms-careers-wrap .hr-header {
	text-align: right !important;
	margin-bottom: 3rem !important;
	width: 100% !important;
}

.sms-careers-wrap .hr-title-wrap {
	position: relative !important;
	display: inline-block !important;
	padding-right: 16px !important;
}

.sms-careers-wrap .hr-title-wrap::before {
	content: '' !important;
	position: absolute !important;
	right: 0 !important;
	top: 10% !important;
	bottom: 10% !important;
	width: 4px !important;
	background: #ffbe00 !important;
	border-radius: 4px !important;
}

.sms-careers-wrap .hr-title {
	font-size: 26px !important;
	font-variation-settings: "wght" 900 !important;
	color: #0f172a !important;
	margin: 0 0 0.5rem !important;
}

.sms-careers-wrap .hr-subtitle {
	font-size: 14.5px !important;
	color: #64748b !important;
	margin: 0 !important;
}

.sms-careers-wrap .hr-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 1.5rem !important;
	width: 100% !important;
}

.sms-careers-wrap .hr-card {
	background: #fff !important;
	border: 1px solid #f1f5f9 !important;
	border-radius: 20px !important;
	padding: 2rem !important;
	display: flex !important;
	align-items: center !important;
	gap: 1.5rem !important;
	color: inherit !important;
	text-decoration: none !important;
}

.sms-careers-wrap .hr-icon {
	width: 64px !important;
	height: 64px !important;
	background: rgba(15, 23, 42, 0.03) !important;
	border-radius: 16px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	color: #475569 !important;
}

.sms-careers-wrap .hr-icon svg {
	width: 28px !important;
	height: 28px !important;
}

.sms-careers-wrap .hr-label {
	font-size: 13.5px !important;
	color: #64748b !important;
	display: block !important;
}

.sms-careers-wrap .hr-value {
	font-size: 22px !important;
	font-variation-settings: "wght" 850 !important;
	color: #0f172a !important;
}

/* ═══════════════ FAQ ═══════════════ */
.sms-careers-wrap #sms-faq-v2 {
	background-color: #fdfdfd !important;
	direction: rtl !important;
	padding: 4rem 0 6rem !important;
	overflow-x: clip !important;
	z-index: 3 !important;
}

.sms-careers-wrap .fq-header {
	text-align: right !important;
	margin-bottom: 3rem !important;
	width: 100% !important;
}

.sms-careers-wrap .fq-title-wrap {
	position: relative !important;
	display: inline-block !important;
	padding-right: 16px !important;
}

.sms-careers-wrap .fq-title-wrap::before {
	content: '' !important;
	position: absolute !important;
	right: 0 !important;
	top: 10% !important;
	bottom: 10% !important;
	width: 4px !important;
	background: #ffbe00 !important;
	border-radius: 4px !important;
}

.sms-careers-wrap .fq-title {
	font-size: 28px !important;
	font-variation-settings: "wght" 900 !important;
	color: #0f172a !important;
	margin: 0 0 0.5rem !important;
}

.sms-careers-wrap .fq-subtitle {
	font-size: 15px !important;
	color: #64748b !important;
	margin: 0 !important;
}

.sms-careers-wrap .fq-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 1rem !important;
	width: 100% !important;
}

.sms-careers-wrap .fq-item {
	background: #fff !important;
	border: 1px solid #f1f5f9 !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	width: 100% !important;
}

.sms-careers-wrap .fq-toggle {
	display: none !important;
}

.sms-careers-wrap .fq-question {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 1.25rem 1.5rem !important;
	cursor: pointer !important;
	font-size: 16px !important;
	font-variation-settings: "wght" 800 !important;
	color: #0f172a !important;
	margin: 0 !important;
}

.sms-careers-wrap .fq-icon {
	width: 24px !important;
	height: 24px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background: #f1f5f9 !important;
	flex-shrink: 0 !important;
}

.sms-careers-wrap .fq-icon svg {
	width: 14px !important;
	height: 14px !important;
}

.sms-careers-wrap .fq-answer {
	max-height: 0 !important;
	opacity: 0 !important;
	overflow: hidden !important;
	padding: 0 1.5rem !important;
	color: #475569 !important;
	font-size: 14.5px !important;
	line-height: 1.8 !important;
	transition: all 0.4s ease !important;
}

.sms-careers-wrap .fq-toggle:checked ~ .fq-answer {
	max-height: 300px !important;
	opacity: 1 !important;
	padding-bottom: 1.5rem !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {
	.sms-careers-wrap .jb-grid {
		grid-template-columns: 1fr !important;
	}

	.sms-careers-wrap .jb-card-special {
		grid-column: span 1 !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 2rem !important;
		padding: 2rem 1.5rem !important;
	}

	.sms-careers-wrap .hr-grid {
		grid-template-columns: 1fr !important;
	}
}
