/* Cards de completed jobs — [city-jobs], [jobs], [completed-jobs] e "More Completed Jobs"
   Cores/fonte do botão seguem o botão "Get a Free Quote" do site. Para outro site, troque as variáveis. */
.rfais-city-jobs, .rfais-job-page {
	--rfais-btn-bg: #c3953f;
	--rfais-btn-bg-hover: #a97f31;
	--rfais-btn-color: #fff;
	--rfais-btn-font: "Saira Extra Condensed", Helvetica, Arial, sans-serif;
	--rfais-card-title: #13345f;
}
.rfais-city-jobs { margin: 2em 0; }
/* Título "Completed Jobs in ..." no padrão dos H2 do site (módulos de texto do Divi) */
.rfais-city-jobs h2.rfais-city-jobs-title {
	margin: 0 0 24px; padding: 0 0 10px;
	color: var(--rfais-h2-color, #000);
	font-family: var(--rfais-btn-font); font-size: 50px; font-weight: 700; line-height: 1.2; letter-spacing: .3px; text-transform: none;
}
@media (max-width: 767px) {
	.rfais-city-jobs h2.rfais-city-jobs-title { font-size: 38px; }
}

/* Botão padrão do site (mostarda) */
a.rfais-btn, .rfais-btn {
	display: inline-block; padding: 15px 30px; border: 0; border-radius: 0;
	background: var(--rfais-btn-bg); color: var(--rfais-btn-color) !important;
	font-family: var(--rfais-btn-font); font-size: 18px; font-weight: 700; line-height: 1.2;
	letter-spacing: 1px; text-transform: uppercase; text-align: center; text-decoration: none !important;
	transition: background-color .2s;
}
a.rfais-btn:hover, a.rfais-btn:focus-visible { background: var(--rfais-btn-bg-hover); color: var(--rfais-btn-color) !important; }

/* Grade: até N colunas (padrão 3), cada card com no mínimo 260px — quebra sozinho em telas/colunas estreitas */
.rfais-job-cards { --cols: 3; --gap: 28px; display: grid; gap: var(--gap);
	grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols))), 1fr)); }
.rfais-job-cards.rfais-cols-1 { --cols: 1; }
.rfais-job-cards.rfais-cols-2 { --cols: 2; }
.rfais-job-cards.rfais-cols-4 { --cols: 4; }

/* Card */
.rfais-job-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e7eb; background: #fff; transition: box-shadow .2s; }
.rfais-job-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); }

.rfais-job-card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f4; }
.rfais-job-card-img img, .rfais-job-card-img video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; margin: 0; object-fit: cover; transition: transform .4s; pointer-events: none; }
.rfais-job-card:hover .rfais-job-card-img img, .rfais-job-card:hover .rfais-job-card-img video { transform: scale(1.05); }
.rfais-job-card-play { position: absolute; top: 50%; left: 50%; z-index: 2; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; line-height: 56px; text-align: center; padding-left: 4px; box-sizing: border-box; }

.rfais-job-card-body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 18px 20px 22px; }
.rfais-job-card-title { margin: 0 0 10px !important; padding: 0 !important; font-size: 26px; line-height: 1.15; }
.rfais-job-card-title a { color: var(--rfais-card-title); text-decoration: none; }
.rfais-job-card-title a:hover { color: var(--rfais-btn-bg); }
.rfais-job-card-city { display: flex; align-items: center; gap: 6px; margin: -4px 0 14px !important; padding: 0 !important; color: #555; font-size: 16px; }
.rfais-job-card-city::before {
	content: ""; flex: 0 0 15px; width: 15px; height: 15px; background-color: var(--rfais-btn-bg);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rfais-job-card .rfais-btn { margin-top: auto; padding: 12px 22px; font-size: 17px; white-space: nowrap; }

@media (max-width: 600px) {
	.rfais-job-cards { --gap: 20px; grid-template-columns: minmax(0, 1fr); }
}
