/* Careers page widgets (widgets_g19/rivhit-careers.php) */
.rv-careers {
	--rv-navy: #1A1537;
	--rv-orange: #F48A28;
	--rv-orange-line: #F48218;
	--rv-yellow: #FECE00;
	--rv-muted: #5F5B78;
	--rv-soft: #F7F7FC;
	--rv-shadow: 0.3125em 0.625em 1.5625em rgba(190, 196, 250, .3);
	font-size: calc(1vw + 0.8px);
	font-family: 'Rubik', sans-serif;
	color: var(--rv-navy);
	direction: rtl;
	text-align: right;
	line-height: 1.6;
}
.rv-careers *, .rv-careers *::before, .rv-careers *::after { box-sizing: border-box; }
.rv-careers .rv-wrap { max-width: 71.25em; margin: 0 auto; padding: 0 1.25em; }

/* ---------- Titles ---------- */
.rv-careers .rv-title {
	position: relative; display: inline-block; font-size: 2.8125em; line-height: 1.18; font-weight: 700; color: var(--rv-navy);
	margin: 0 0 0.4em; padding-left: 2em;
}
.rv-careers .rv-title::before {
	content: ""; position: absolute; left: 0; top: 0.58em; width: 1.58em; height: 1px; background: var(--rv-navy);
}
.rv-careers .rv-title-plain { padding-left: 0; }
.rv-careers .rv-title-plain::before { display: none; }
.rv-careers .rv-bar { display: flex; margin: 0 0 1.375em; }
.rv-careers .rv-bar span { width: 1.875em; height: 0.625em; }
.rv-careers .rv-bar span:nth-child(1) { background: var(--rv-navy); }
.rv-careers .rv-bar span:nth-child(2) { background: var(--rv-orange); }
.rv-careers .rv-bar span:nth-child(3) { background: var(--rv-yellow); }

/* ---------- Buttons ---------- */
.rv-careers .rv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.625em; height: 2.67em; padding: 0 1.33em;
	font-family: inherit; font-size: 1.125em; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 0;
	transition: background-color .2s, color .2s;
}
.rv-careers .rv-btn-primary { background: var(--rv-orange); color: #fff; border: 1px solid var(--rv-orange); }
.rv-careers .rv-btn-primary:hover { background: #E07612; border-color: #E07612; color: #fff; }
.rv-careers .rv-btn-outline { background: #fff; color: var(--rv-orange-line); border: 1px solid var(--rv-orange-line); }
.rv-careers .rv-btn-outline:hover { background: var(--rv-orange-line); color: #fff; }
.rv-careers .rv-btn:focus-visible { outline: 3px solid var(--rv-yellow); outline-offset: 3px; }
.rv-careers .rv-cta-row { margin-top: 1.875em; }

/* ---------- Hero ---------- */
/* White behind the slanted edge (the full-width template's body is navy) */
.rv-careers-hero-bg { background: #fff; }
.rv-careers.rv-hero {
	background: var(--rv-navy);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 78%);
	color: #fff; padding: 5.625em 0 8.75em;
}
.rv-careers .rv-hero-inner { max-width: 48.75em; }
.rv-careers.rv-hero h1 { font-size: 2.625em; line-height: 1.12; font-weight: 700; color: #fff; margin: 0 0 0.3em; }
.rv-careers.rv-hero .rv-sub { font-size: 1.625em; line-height: 1.3; font-weight: 400; color: #fff; margin: 0 0 0.85em; }
.rv-careers.rv-hero .rv-lead { font-size: 1.25em; margin: 0; color: #fff; }
.rv-careers.rv-hero .rv-lead p { margin: 0; }

/* ---------- About ---------- */
.rv-careers.rv-about { background: #fff; padding: 2.5em 0 5em; }
.rv-careers .rv-about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4em; align-items: center; }
.rv-careers .rv-about-text { font-size: 1.25em; }
.rv-careers .rv-about-text p { margin: 0 0 0.7em; }
.rv-careers .rv-about-visual { position: relative; margin: 1.375em 0 0 1.375em; }
.rv-careers .rv-about-visual::before {
	content: ""; position: absolute; top: -1.375em; left: -1.375em; width: 8.75em; height: 8.75em; background: var(--rv-orange);
}
.rv-careers .rv-about-visual::after {
	content: ""; position: absolute; bottom: -1em; right: 2.5em; width: 4em; height: 1em; background: var(--rv-yellow);
}
.rv-careers .rv-stats {
	position: relative; z-index: 1; list-style: none; margin: 0; padding: 0.875em 2.125em;
	background: var(--rv-navy); box-shadow: var(--rv-shadow);
}
.rv-careers .rv-stats li { display: flex; align-items: center; gap: 1.25em; padding: 1.5em 0; margin: 0; }
.rv-careers .rv-stats li + li { border-top: 1px solid rgba(255,255,255,.12); }
.rv-careers .rv-stat-icon {
	flex-shrink: 0; width: 4em; height: 4em; display: grid; place-items: center;
	border: 1px solid rgba(244,138,40,.6); color: var(--rv-orange);
}
.rv-careers .rv-stat-icon svg { width: 2.125em; height: 2.125em; }
.rv-careers .rv-stats b { display: block; font-size: 1.625em; font-weight: 700; line-height: 1.2; color: #fff; }
.rv-careers .rv-stats div span { display: block; font-size: 1em; color: rgba(255,255,255,.75); margin-top: 0.25em; }

/* ---------- Jobs ---------- */
.rv-careers.rv-jobs { background: var(--rv-soft); padding: 4.375em 0 5.625em; scroll-margin-top: 5.625em; }
.rv-careers .rv-jobs-head p, .rv-careers .rv-jobs-head h2 { color: var(--rv-navy); }
.rv-careers .rv-jobs-head { margin-bottom: 2.125em; }
.rv-careers .rv-jobs-head p { margin: 0; font-size: 1.25em; }

.rv-careers .rv-job { background: #fff; box-shadow: var(--rv-shadow); margin-bottom: 1.5em; }
.rv-careers .rv-job > summary {
	list-style: none; cursor: pointer; padding: 1.375em 1.5em; display: grid;
	grid-template-columns: 1fr auto; gap: 0.375em 1.5em; align-items: center;
}
.rv-careers .rv-job > summary::-webkit-details-marker { display: none; }
.rv-careers .rv-job > summary:focus-visible { outline: 3px solid var(--rv-yellow); outline-offset: -3px; }
.rv-careers .rv-job-title { font-size: 1.375em; font-weight: 700; color: var(--rv-navy); margin: 0; line-height: 1.3; }
.rv-careers .rv-job-teaser { grid-column: 1; font-size: 1.0625em; color: var(--rv-muted); margin: 0; }
.rv-careers .rv-tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 0.375em; }
.rv-careers .rv-tag { font-size: 0.875em; font-weight: 500; color: var(--rv-navy); border: 1px solid #DCDAEA; padding: 0.14em 0.86em; }
.rv-careers .rv-tag.rv-tag-hot { border-color: var(--rv-orange-line); color: var(--rv-orange-line); }
.rv-careers .rv-note { grid-column: 1; margin: 0.125em 0 0; font-size: 0.875em; color: var(--rv-muted); }
.rv-careers .rv-toggle {
	grid-column: 2; grid-row: 1 / span 4; width: 2.875em; height: 2.375em; background: var(--rv-orange-line); color: #fff;
	display: grid; place-items: center;
}
.rv-careers .rv-toggle svg { width: 1.125em; height: 1.125em; transition: transform .25s; }
.rv-careers .rv-job[open] .rv-toggle svg { transform: rotate(180deg); }

.rv-careers .rv-job-body { margin: 0 1.5em; padding: 0.25em 0 1.625em; border-top: 1px solid #ECEBF3; }
.rv-careers .rv-headline { font-size: 1.25em; font-weight: 700; color: var(--rv-orange-line); margin: 1em 0 0; }
.rv-careers .rv-job-content { font-size: 1em; }
/* The full-width template colors p/li white; force body text colors on light sections */
.rv-careers.rv-about .rv-about-text, .rv-careers.rv-about .rv-about-text p, .rv-careers.rv-about .rv-about-text li,
.rv-careers .rv-jobs-head p,
.rv-careers .rv-job-content, .rv-careers .rv-job-content p, .rv-careers .rv-job-content li,
.rv-careers .rv-job-content b, .rv-careers .rv-job-content strong { color: var(--rv-navy); }
.rv-careers .rv-job-teaser, .rv-careers .rv-note { color: var(--rv-muted); }
.rv-careers .rv-job-content > p:first-child { font-size: 1.125em; margin: 1.1em 0 0.35em; }
.rv-careers .rv-headline + .rv-job-content > p:first-child { margin-top: 0.35em; }
.rv-careers .rv-job-content p { margin: 1em 0 0; font-size: 1.0625em; }
.rv-careers .rv-job-content h4 { font-size: 1.1875em; font-weight: 700; color: var(--rv-navy); margin: 1.15em 0 0.5em; }
.rv-careers .rv-job-content ul { list-style: none; margin: 0; padding: 0; }
.rv-careers .rv-job-content li { position: relative; padding-right: 1.25em; margin-bottom: 0.5625em; font-size: 1em; }
.rv-careers .rv-job-content li::before {
	content: ""; position: absolute; right: 0.125em; top: 0.6em; width: 0.5em; height: 0.5em; background: var(--rv-orange);
}
.rv-careers .rv-job-content ul + p:last-child { font-weight: 500; }

.rv-careers .rv-apply {
	margin-top: 1.625em; padding: 1.25em 1.5em; background: var(--rv-navy);
	display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap;
}
.rv-careers .rv-apply p { margin: 0; color: rgba(255,255,255,.85); font-size: 0.9375em; }
.rv-careers .rv-apply p b { color: #fff; font-size: 1.27em; display: block; }
.rv-careers .rv-apply-actions { position: relative; }
.rv-careers .rv-mail-menu {
	position: absolute; top: calc(100% + 0.5em); left: 0; z-index: 20; min-width: 15em; margin: 0; padding: 0.375em 0;
	list-style: none; background: #fff; box-shadow: 0 0.75em 1.875em rgba(26,21,55,.25);
}
.rv-careers .rv-mail-menu[hidden] { display: none; }
.rv-careers .rv-mail-menu li { margin: 0; }
.rv-careers .rv-mail-menu li + li { border-top: 1px solid #ECEBF3; }
.rv-careers .rv-mail-menu a, .rv-careers .rv-mail-menu button {
	display: block; width: 100%; padding: 0.6875em 1.125em; background: none; border: 0; text-align: right; cursor: pointer;
	font-family: inherit; font-size: 1em; font-weight: 500; color: var(--rv-navy); text-decoration: none;
}
.rv-careers .rv-mail-menu a:hover, .rv-careers .rv-mail-menu button:hover,
.rv-careers .rv-mail-menu a:focus-visible, .rv-careers .rv-mail-menu button:focus-visible { background: var(--rv-soft); color: var(--rv-orange-line); outline: none; }

@media (prefers-reduced-motion: reduce) {
	.rv-careers * { transition: none !important; }
}
@media (max-width: 1000px) {
	.rv-careers { font-size: 4.4vw; }
	.rv-careers .rv-wrap { padding: 0 1em; }
	.rv-careers .rv-about-grid { grid-template-columns: 1fr; gap: 2.5em; }
	.rv-careers .rv-title { font-size: 1.875em; padding-left: 0; }
	.rv-careers .rv-title::before { display: none; }
	.rv-careers.rv-hero { padding: 3.5em 0 5em; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 93%); }
	.rv-careers.rv-hero h1 { font-size: 2em; }
	.rv-careers.rv-hero .rv-sub { font-size: 1.375em; }
	.rv-careers.rv-hero .rv-lead, .rv-careers .rv-about-text { font-size: 1.125em; }
	.rv-careers .rv-about-visual { margin: 0.875em 0 0 0.875em; }
	.rv-careers .rv-about-visual::before { top: -0.875em; left: -0.875em; width: 5.625em; height: 5.625em; }
	.rv-careers .rv-stats { padding: 0.375em 1.25em; }
	.rv-careers .rv-stats li { gap: 0.875em; padding: 1.125em 0; }
	.rv-careers .rv-stat-icon { width: 3.375em; height: 3.375em; }
	.rv-careers .rv-stat-icon svg { width: 1.75em; height: 1.75em; }
	.rv-careers .rv-stats b { font-size: 1.375em; }
	.rv-careers .rv-apply-actions { width: 100%; }
	.rv-careers .rv-mail-menu { left: 0; right: 0; min-width: 0; }
	.rv-careers .rv-job > summary { padding: 1.125em 1em; gap: 0.375em 0.875em; }
	.rv-careers .rv-job-body { margin: 0 1em; }
	.rv-careers .rv-job-title { font-size: 1.1875em; }
	.rv-careers .rv-btn { width: 100%; }
}
