/* Custom styles for My Child Theme */

/* ==========================================================================
   Custom Jobs — styles
   Paste into: Beaver Builder > Tools > Global Settings > CSS
   (or Appearance > Customize > Additional CSS)
   ========================================================================== */

/* ===== Filter bar ([custom_jobs_filters]) — matches the panel screenshot ===== */
.custom-jobs-filters {
	background: #f4f5f7;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 32px;
	container-type: inline-size;   /* fields respond to THIS box's width, not the screen */
}

/* Default = narrow container (e.g. a sidebar): one field per row -> full width */
.custom-jobs-filters .cjf-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	align-items: center;
}

/* Wide container (full content width): four across -> 25% each */
@container (min-width: 600px) {
	.custom-jobs-filters .cjf-row {
		grid-template-columns: repeat(4, 1fr);
	}
}

.custom-jobs-filters .cjf-field {
	width: 100%;
	min-width: 0;            /* stops long <select> text from overflowing its column */
	box-sizing: border-box;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #d7dbe0;
	border-radius: 8px;
	background: #fff;
	color: #374151;
	font-size: 0.95rem;
}
.custom-jobs-filters .cjf-select { cursor: pointer; }
.custom-jobs-filters .cjf-field::placeholder { color: #9aa1ab; }
.custom-jobs-filters .cjf-field:focus {
	outline: none;
	border-color: #0B5CAD;
	box-shadow: 0 0 0 3px rgba(11, 92, 173, 0.12);
}
.custom-jobs-filters .cjf-clear {
	display: inline-block;
	margin-top: 16px;
	color: #0B5CAD;
	font-size: 0.95rem;
	text-decoration: none;
}
.custom-jobs-filters .cjf-clear:hover { text-decoration: underline; }
.custom-jobs-filters .cjf-visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ===== "Latest X of Y openings" line ===== */
.custom-jobs__total {
	text-align: left;
	color: #6b7280;
	font-size: 1.25rem;
	margin: 0 0 28px;
}

/* ===== Load-more button ===== */
.custom-jobs__more {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}
.custom-jobs__more-btn {
	padding: 12px 28px;
	border: 1px solid #0B5CAD;
	border-radius: 8px;
	background: #fff;
	color: #0B5CAD;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.custom-jobs__more-btn:hover { background: #0B5CAD; color: #fff; }
.custom-jobs__more-btn[disabled] { opacity: .6; cursor: default; }

.custom-jobs__empty { color: #6b7280; }

/* ==========================================================================
   GRID / CARD layout
   ========================================================================== */
.custom-jobs--grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;   /* mobile-first: always one column */
}
/* Column caps kick in on wider screens; all collapse back to 1fr below 600px */
@media (min-width: 600px) {
	.custom-jobs--grid.custom-jobs--cols-2 { grid-template-columns: repeat(2, 1fr); }
	.custom-jobs--grid.custom-jobs--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.custom-jobs--grid.custom-jobs--cols-3 { grid-template-columns: repeat(3, 1fr); }
}
/* .custom-jobs--cols-1 intentionally gets no breakpoint -> stays single column */

.custom-jobs--grid .job-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 26px;
	height: 100%;
}
.custom-jobs--grid .job-card__body { flex: 1 1 auto; }

/* ===== Featured loop cards (from [custom_jobs featured="yes"]) ===== */
.custom-jobs--featured .job-card {
	background: #F4F6F8;
}

.custom-jobs--grid .job-card__title {
	font-family: Georgia, 'Times New Roman', serif;  /* remove to inherit theme font */
	font-size: 1.3rem;
	line-height: 1.25;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 12px;
}
.custom-jobs--grid .job-card__title a { color: inherit; text-decoration: none; }
.custom-jobs--grid .job-card__title a:hover { color: #0B5CAD; }

.custom-jobs--grid .job-card__company {
	color: #0B5CAD;
	text-transform: capitalize;
	letter-spacing: 0.03em;
	font-weight: 600;
	font-size: 0.95rem;
	margin: 0 0 8px;
}
.custom-jobs--grid .job-card__location {
	color: #6b7280;
	font-size: 0.95rem;
	margin: 0 0 14px;
}
.custom-jobs--grid .job-card__tags {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin-bottom: 16px;
}
.custom-jobs--grid .job-card__desc {
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 20px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.custom-jobs--grid .job-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 18px;
}
.custom-jobs--grid .job-card__date { color: #9ca3af; font-size: 0.85rem; }
.custom-jobs--grid .job-card__link {
	color: #0B5CAD;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}
.custom-jobs--grid .job-card__link:hover { color: #094a8c; }

/* ==========================================================================
   LIST / ROW layout
   ========================================================================== */
.custom-jobs--list { display: flex; flex-direction: column; }

.custom-jobs--list .job-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	padding: 34px 0;
	border-bottom: 1px solid #e5e7eb;
}
.custom-jobs--list .job-row:first-child { padding-top: 0; }
.custom-jobs--list .job-row:last-child  { border-bottom: none; }
.custom-jobs--list .job-row__main { flex: 1 1 auto; min-width: 0; }

.custom-jobs--list .job-row__title {
	font-family: Georgia, 'Times New Roman', serif;  /* remove to inherit theme font */
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 10px;
}
.custom-jobs--list .job-row__title a { color: inherit; text-decoration: none; }
.custom-jobs--list .job-row__title a:hover { color: #0B5CAD; }

.custom-jobs--list .job-row__meta {
	display: flex; align-items: center; flex-wrap: wrap;
	gap: 10px; margin: 0 0 16px; font-size: 1rem;
}
.custom-jobs--list .job-row__company {
	color: #2563eb;      /* switch to #0B5CAD for brand blue if preferred */
	font-weight: 600; text-decoration: none;
}
.custom-jobs--list .job-row__company:hover { text-decoration: underline; }
.custom-jobs--list .job-row__sep      { color: #9ca3af; }
.custom-jobs--list .job-row__location { color: #6b7280; }

.custom-jobs--list .job-row__tags {
	display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.custom-jobs--list .job-row__desc {
	color: #374151; font-size: 1rem; line-height: 1.6; margin: 0 0 18px;
	display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.custom-jobs--list .job-row__link {
	color: #0B5CAD; font-weight: 700; font-size: 0.85rem;
	letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
}
.custom-jobs--list .job-row__link:hover { text-decoration: underline; }
.custom-jobs--list .job-row__date {
	flex: 0 0 auto; color: #9ca3af; font-size: 0.95rem; white-space: nowrap; padding-top: 4px;
}
@media (max-width: 600px) {
	.custom-jobs--list .job-row { flex-direction: column; gap: 10px; }
	.custom-jobs--list .job-row__date { order: -1; padding-top: 0; }
}

/* ===== Shared tag pill (grid + list) ===== */
.job-tag {
	background: #f3f4f6;
	color: #374151;
	font-size: 0.78rem;
	line-height: 1;
	padding: 6px 11px;
	border-radius: 6px;
	white-space: nowrap;
}
/* Pills sit on a grey featured card, so give them a white background for contrast */
.custom-jobs--featured .job-tag {
	background: #ffffff;
}


/* ===== Salary line (from the Salary Range ACF group) ===== */
.custom-jobs--grid .job-card__salary {
	color: #1f2937;
	font-weight: 600;
	font-size: 0.95rem;
	margin: 0 0 16px;
}
.custom-jobs--list .job-row__salary {
	color: #1f2937;
	font-weight: 600;
	font-size: 1rem;
	margin: 0 0 16px;
}

/* ==== WYSIWYG for forms ==== */
.fl-builder-content button:not(.fl-content-ui-button) * {
	color: #595959 !important;
}