/*
Theme Name: Softfootball
Theme URI: https://www.softfootball.com/
Author: Softfootball
Description: Football jobs board theme with employer profile pages. Requires Softfootball Builder and Softfootball Jobs (both bundled). Built for Elementor and the Softfootball Jobs plugin (both required): job search hero, department grid, listings, employer and candidate dashboards, a Headers Builder, theme options (preloader, lazy loading, smooth scroll, header layout, sticky header, mobile logo) and one-click demo content.
Version: 1.10.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: softfootball
Tags: custom-menu, custom-logo, theme-options, translation-ready, one-column
*/

:root {
	--sf-ink: #12201A;
	--sf-ink-deep: #0C1712;
	--sf-ground: #F5F6F1;
	--sf-muted: #4A5A51;
	--sf-soft: #C9D2CB;
	--sf-line: #3B4D43;
	--sf-card: #FFFFFF;
	--sf-card-line: #DDE2D9;
	--sf-sage: #E4EBDF;
	--sf-green: #1F6F43;
	--sf-accent: #9BE15D;
	--sf-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--sf-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--sf-wrap: 1120px;
	/* Area colours (Theme Options › colours). Text colours are set to contrast automatically. */
	--sf-page-bg: #FFFFFF;
	--sf-header-bg: #FFFFFF;
	--sf-header-fg: #12201A;
	--sf-header-muted: #4A5A51;
	--sf-header-line: #E3E7E1;
	--sf-footer-bg: #000000;
	--sf-footer-fg: #FFFFFF;
	--sf-footer-muted: #B8BFBA;
	--sf-footer-line: rgba(255, 255, 255, .16);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--sf-page-bg); color: var(--sf-ink); font-family: var(--sf-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--sf-ink); }
a:hover { color: var(--sf-green); }
:focus-visible { outline: 3px solid var(--sf-accent); outline-offset: 3px; }
.sf-wrap { max-width: var(--sf-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100000; background: var(--sf-accent); color: var(--sf-ink); padding: 10px 16px; border-radius: 6px; }
.sf-display { font-family: var(--sf-display); font-weight: 700; text-transform: uppercase; line-height: 1; }

/* Preloader */
.sf-preloader { position: fixed; inset: 0; z-index: 99999; background: var(--sf-page-bg); display: flex; align-items: center; justify-content: center; transition: opacity .35s ease, visibility .35s ease; }
.sf-preloader__ball { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--sf-card-line); border-top-color: var(--sf-green); animation: sf-spin .8s linear infinite; }
.sf-loaded .sf-preloader { opacity: 0; visibility: hidden; }
@keyframes sf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sf-preloader__ball { animation-duration: 2.4s; } }

/* Buttons */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.sf-btn--accent { background: var(--sf-accent); color: var(--sf-ink); }
.sf-btn--accent:hover { color: var(--sf-ink); filter: brightness(1.06); }
.sf-btn--dark { background: var(--sf-ink); color: var(--sf-ground); }
.sf-btn--dark:hover { color: var(--sf-ground); background: #22352B; }
.sf-btn--outline { border-color: currentColor; color: inherit; background: transparent; }

/* Header */
.sf-header { background: var(--sf-header-bg); color: var(--sf-header-fg); position: relative; z-index: 50; border-bottom: 1px solid var(--sf-header-line); }
.sf-header--sticky { position: sticky; top: 0; }
.admin-bar .sf-header--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .sf-header--sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sf-header--sticky { top: 0; } }
.sf-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.sf-brand { display: flex; align-items: center; gap: 10px; color: var(--sf-header-fg); text-decoration: none; }
.sf-brand:hover { color: var(--sf-header-fg); }
.sf-brand__name { font-family: var(--sf-display); font-weight: 800; font-size: 26px; letter-spacing: .5px; text-transform: uppercase; }
.sf-brand img { max-height: 40px; max-width: 240px; width: auto; height: auto; display: block; }
.sf-brand .sf-logo-mobile { display: none; }
@media (max-width: 1100px) {
	.sf-brand.has-mobile-logo .sf-logo-desktop { display: none; }
	.sf-brand.has-mobile-logo .sf-logo-mobile { display: block; max-height: 42px; }
}
.sf-nav { display: flex; align-items: center; gap: 24px; }
.sf-menu, .sf-menu ul { list-style: none; margin: 0; padding: 0; }
.sf-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.sf-menu > li { position: relative; }
.sf-menu a { color: var(--sf-header-fg); text-decoration: none; display: flex; align-items: center; gap: 4px; padding: 10px 0; }
.sf-menu a:hover, .sf-menu .current-menu-item > a { color: var(--sf-accent); }
.sf-menu > .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 4px; }
.sf-menu .sub-menu { position: absolute; top: 100%; left: -16px; min-width: 210px; background: var(--sf-card); border-radius: 10px; padding: 8px; box-shadow: 0 12px 32px rgba(12, 23, 18, .18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.sf-menu li:hover > .sub-menu, .sf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sf-menu .sub-menu a { color: var(--sf-ink); padding: 10px 12px; border-radius: 6px; }
.sf-menu .sub-menu a:hover { background: var(--sf-sage); color: var(--sf-ink); }
.sf-header__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-signin { color: var(--sf-header-fg); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 6px; }
.sf-signin:hover { color: var(--sf-accent); }
.sf-toggle { display: none; background: transparent; border: 1px solid var(--sf-header-line); color: var(--sf-header-fg); width: 46px; height: 46px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }
.sf-nav__mobile-only { display: none; }

@media (max-width: 1100px) {
	.sf-toggle { display: inline-flex; }
	.sf-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--sf-header-bg); border-top: 1px solid var(--sf-header-line); box-shadow: 0 16px 24px rgba(0, 0, 0, .08); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
	.sf-nav.is-open { display: flex; }
	.sf-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.sf-menu > li { border-bottom: 1px solid var(--sf-header-line); }
	.sf-menu a { padding: 14px 0; }
	.sf-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 8px 14px; min-width: 0; }
	.sf-menu .sub-menu a { color: var(--sf-header-muted); padding: 10px 0; }
	.sf-menu .sub-menu a:hover { background: transparent; color: var(--sf-accent); }
	.sf-menu > .menu-item-has-children > a::after { display: none; }
	.sf-header__actions { padding-top: 16px; }
	.sf-nav__mobile-only { display: flex; }
}

/* Elementor header builder wrapper and widgets */
.sf-header--builder { background: transparent; }
.sf-el-nav { position: static; display: flex; align-items: center; justify-content: flex-end; }
.sf-el-nav .sf-nav { gap: 24px; }
.sf-el-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-el-logo { display: inline-flex; }

/* Call to action cards (Elementor widget) */
.sf-cta { border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; height: 100%; }
.sf-cta h2 { margin: 0; font-family: var(--sf-display); font-weight: 700; text-transform: uppercase; font-size: 36px; line-height: 1; color: inherit; }
.sf-cta p { margin: 0; max-width: 460px; }
.sf-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sf-cta--light { background: #FFFFFF; color: var(--sf-ink); border: 1px solid var(--sf-card-line); }
.sf-cta--light p { color: #33443A; }
.sf-cta--dark { background: #FFFFFF; color: var(--sf-ink); border: 1px solid var(--sf-card-line); border-top: 4px solid var(--sf-accent); }
.sf-cta--dark p { color: #33443A; }

/* Content */
.sf-main { padding-top: 64px; padding-bottom: 96px; }
.sf-content { max-width: 820px; }
.sf-page-title { font-family: var(--sf-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5vw, 60px); line-height: 1; margin: 0 0 24px; }
.sf-content h2, .sf-content h3 { font-family: var(--sf-display); text-transform: uppercase; line-height: 1.1; }
.sf-content--wide { max-width: none; }
.sf-post { padding: 28px 0; border-bottom: 1px solid var(--sf-card-line); }
.sf-post h2 { margin: 0 0 8px; font-family: var(--sf-display); text-transform: uppercase; font-size: 30px; }
.sf-post h2 a { text-decoration: none; }
.sf-meta { color: var(--sf-muted); font-size: 14px; }
.sf-pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.sf-pagination .page-numbers { padding: 10px 14px; border: 1px solid var(--sf-card-line); border-radius: 8px; text-decoration: none; background: var(--sf-card); }
.sf-pagination .current { background: var(--sf-ink); color: var(--sf-ground); border-color: var(--sf-ink); }
.sf-fallback-section { padding-top: 72px; padding-bottom: 72px; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.sf-setup-bar { background: #FFFFFF; border-bottom: 1px solid #F0D58A; color: #4A3700; font-size: 14px; padding: 10px 24px; text-align: center; }
.sf-setup-bar a { color: inherit; font-weight: 600; }

/* Footer */
.sf-footer { background: var(--sf-footer-bg); color: var(--sf-footer-muted); }
.sf-footer__inner { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 56px; }
.sf-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 40px; }
@media (max-width: 900px) { .sf-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sf-footer__news { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sf-footer__cols { grid-template-columns: 1fr; } }
.sf-footer h3 { margin: 0 0 14px; color: var(--sf-footer-fg); font-size: 15px; font-weight: 600; }
.sf-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sf-footer a { color: var(--sf-footer-muted); text-decoration: none; }
.sf-footer a:hover { color: var(--sf-accent); }
.sf-footer__news p { margin: 0 0 12px; }
.sf-news-form { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.sf-news-form input[type="email"] { flex: 1 1 200px; min-height: 48px; border: 1px solid var(--sf-footer-line); background: transparent; color: var(--sf-footer-fg); border-radius: 8px; padding: 0 14px; font: inherit; }
.sf-news-form .sf-hp { position: absolute; left: -9999px; }
.sf-footer .sf-social { flex-direction: row; gap: 8px; margin-top: 18px; }
.sf-social a { width: 44px; height: 44px; border: 1px solid var(--sf-footer-line); border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--sf-footer-fg); }
.sf-social a:hover { border-color: var(--sf-accent); }
.sf-footer__legal { border-top: 1px solid var(--sf-footer-line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }
.sf-footer__legal ul { flex-direction: row; flex-wrap: wrap; gap: 20px; }
.sf-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Elementor full width pages: keep plugin sections aligned */
.elementor-widget-sfj-job-categories .sfj-cats, .elementor-widget-sfj-job-listings .sfj-jobs { width: 100%; }

/* Let the mobile menu panel span the full header width inside Elementor layouts */
@media (max-width: 1100px) {
	.sf-header--builder .elementor-column:has(.sf-el-nav),
	.sf-header--builder .elementor-widget-wrap:has(.sf-el-nav),
	.sf-header--builder .elementor-element:has(.sf-el-nav),
	.sf-header--builder .e-con:has(.sf-el-nav) { position: static; }
}

/* Employer profile page */
.sf-employer-hero { background: var(--sf-page-bg); color: var(--sf-ink); border-bottom: 1px solid var(--sf-card-line); }
.sf-employer-hero__inner { padding-top: 64px; padding-bottom: 64px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.sf-employer-hero__logo { width: 148px; height: 148px; border-radius: 22px; background: #FFFFFF; border: 1px solid var(--sf-card-line); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.sf-employer-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.sf-employer-hero__logo span { font-family: var(--sf-display); font-weight: 800; font-size: 64px; color: var(--sf-green); background: #FFFFFF; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sf-employer-hero__body { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.sf-employer-hero__kicker { margin: 0; font-size: 15px; font-weight: 600; color: var(--sf-green); }
.sf-employer-hero h1 { margin: 0; font-family: var(--sf-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 72px); line-height: .95; }
.sf-employer-hero__tagline { margin: 0; font-size: 19px; color: var(--sf-muted); max-width: 640px; }
.sf-employer-hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sf-employer-hero__facts li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--sf-card-line); border-radius: 999px; }
.sf-employer-hero__links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sf-employer-hero__links .sf-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.sf-employer-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-top: 56px; padding-bottom: 96px; }
@media (max-width: 900px) { .sf-employer-body { grid-template-columns: 1fr; } }
.sf-employer-body h2 { font-family: var(--sf-display); text-transform: uppercase; font-size: 32px; line-height: 1; margin: 0 0 18px; }
.sf-employer-about { color: var(--sf-ink); }
.sf-employer-about p:first-child { margin-top: 0; }
.sf-employer-contact { margin-top: 24px; padding: 20px; border: 1px solid var(--sf-card-line); border-radius: 14px; background: var(--sf-card); font-size: 15px; }
.sf-employer-contact dl { margin: 0; display: grid; gap: 10px; }
.sf-employer-contact dt { font-size: 13px; color: var(--sf-muted); }
.sf-employer-contact dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Header hover and accent on light backgrounds; a sticky header gets a soft shadow */
.sf-menu a:hover, .sf-menu .current-menu-item > a, .sf-signin:hover { color: var(--sf-header-hover, var(--sf-green)); }
.sf-header--sticky { box-shadow: 0 1px 0 var(--sf-header-line), 0 6px 18px rgba(0, 0, 0, .05); }
.sf-header--builder { border-bottom: 0; }
.sf-header--builder .elementor-section, .sf-header--builder .e-con { background-color: var(--sf-header-bg); }
/* Employer social icons sit on the dark employer banner */
.sf-employer-hero .sf-social a { color: var(--sf-ink); border-color: var(--sf-card-line); }

/* Leave room for the sticky header when jumping to a section */
.sf-sticky-header [id] { scroll-margin-top: 110px; }

/* ---------------------------------------------------------------
 * Single job page
 * ------------------------------------------------------------- */
.sf-job { --sf-job-green: var(--sf-search-button, #8BB453); --sf-job-soft: #F8F8F8; --sf-job-text: #666666; }
.sf-job-head { background: var(--sf-job-soft); }
.sf-job-head__inner { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(220px, 262px); gap: 32px 32px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.sf-job-head__brand { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sf-job-head__logo { width: 170px; height: 170px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.sf-job-head__logo img { width: 100%; height: 100%; object-fit: contain; }
.sf-job-head__logo span { font-family: var(--sf-display); font-weight: 800; font-size: 72px; color: var(--sf-job-green); }
.sf-job-head__all { display: inline-flex; align-items: center; gap: 8px; color: var(--sf-ink); text-decoration: none; font-size: 16px; padding: 8px 0; }
.sf-job-head__all:hover { color: var(--sf-job-green); }
.sf-job-head__all .sf-job-icon { width: 18px; height: 18px; }
.sf-job-head__type { margin: 0 0 4px; color: var(--sf-job-green); font-weight: 600; font-size: 15px; }
.sf-job-head__title { margin: 0 0 8px; font-family: var(--sf-body); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; text-transform: none; color: var(--sf-ink); }
.sf-job-head__by { margin: 0 0 14px; color: var(--sf-job-text); font-size: 17px; }
.sf-job-head__by a { color: var(--sf-job-green); text-decoration: none; }
.sf-job-head__by a:hover { text-decoration: underline; }
.sf-job-head__loc { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--sf-job-text); font-size: 17px; }
.sf-job-head__loc .sf-job-icon { color: var(--sf-job-text); flex: 0 0 auto; }
.sf-job-head__actions { display: flex; flex-direction: column; align-items: stretch; gap: 18px; align-self: start; }
.sf-job-ends { margin: 0; text-align: right; color: var(--sf-job-green); font-size: 16px; }
.sf-job-ends strong { font-weight: 700; }

.sf-job-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 56px; padding-bottom: 96px; }
.sf-job-h { margin: 0 0 20px; font-family: var(--sf-body); font-weight: 600; font-size: 22px; line-height: 1.3; text-transform: none; color: var(--sf-ink); }
.sf-job-desc { color: var(--sf-job-text); font-size: 17px; line-height: 1.75; }
.sf-job-desc h2, .sf-job-desc h3, .sf-job-desc h4 { font-family: var(--sf-body); text-transform: none; font-size: 18px; color: #555555; margin: 28px 0 10px; }
.sf-job-desc ul { padding-left: 22px; }
.sf-job .sfj-apply { margin-top: 36px; }

.sf-job-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 6px; margin-top: 36px; padding: 22px 26px; background: var(--sf-job-soft); border-radius: 6px; }
.sf-job-share__label { font-size: 17px; color: var(--sf-ink); margin-right: 18px; }
.sf-job-share a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #9A9A9A; border-radius: 50%; }
.sf-job-share a:hover { color: var(--sf-job-green); background: #FFFFFF; }

.sf-job-related { margin-top: 56px; }
.sf-job-related .sf-job-h { font-size: 26px; font-weight: 700; }
.sf-job-card { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 30px; background: #FFFFFF; border-radius: 6px; box-shadow: 0 4px 24px rgba(0, 0, 0, .06); margin-bottom: 18px; }
.sf-job-card__logo { width: 120px; height: 120px; border: 1px solid #E6E6E6; display: flex; align-items: center; justify-content: center; padding: 8px; background: #FFFFFF; }
.sf-job-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.sf-job-card__logo span { font-family: var(--sf-display); font-weight: 800; font-size: 44px; color: var(--sf-job-green); }
.sf-job-card__title { margin: 0 0 4px; font-family: var(--sf-body); font-weight: 600; font-size: 19px; line-height: 1.3; text-transform: none; }
.sf-job-card__title a { color: var(--sf-ink); text-decoration: none; }
.sf-job-card__title a:hover { color: var(--sf-job-green); }
.sf-job-card__by { margin: 0 0 8px; color: var(--sf-job-text); font-size: 15px; }
.sf-job-card__by a { color: var(--sf-job-green); text-decoration: none; }
.sf-job-card__loc { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--sf-job-text); font-size: 15px; }
.sf-job-card__loc .sf-job-icon { width: 20px; height: 20px; }

.sf-job-info { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sf-job-info li { display: flex; align-items: center; gap: 20px; padding: 22px 26px; background: var(--sf-job-soft); border-radius: 4px; }
.sf-job-info .sf-job-icon { width: 34px; height: 34px; color: var(--sf-job-green); flex: 0 0 auto; stroke-width: 1.3; }
.sf-job-info__label { display: block; color: var(--sf-ink); font-size: 17px; font-weight: 500; }
.sf-job-info__value { display: block; color: var(--sf-job-text); font-size: 16px; margin-top: 2px; }
.sf-job-side__apply { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.sf-job-side__apply .sf-job-ends { text-align: center; }

@media (max-width: 1080px) {
	.sf-job-head__inner { grid-template-columns: 150px minmax(0, 1fr); }
	.sf-job-head__logo { width: 150px; height: 150px; }
	.sf-job-head__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
	.sf-job-head__actions .sf-job-ends { flex: 1 1 100%; text-align: left; }
	.sf-job-head__actions .sfj-apply-btn, .sf-job-head__actions .sfj-shortlist-btn { width: auto; flex: 1 1 200px; }
	.sf-job-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.sf-job-head__inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
	.sf-job-head__brand { flex-direction: row; justify-content: space-between; }
	.sf-job-head__logo { width: 96px; height: 96px; padding: 10px; }
	.sf-job-card { grid-template-columns: 72px minmax(0, 1fr); padding: 20px; }
	.sf-job-card__logo { width: 72px; height: 72px; }
	.sf-job-card__save { grid-column: 1 / -1; }
	.sf-job-card .sfj-shortlist-btn--round { width: 48px; height: 48px; }
}
.sf-job-ends { white-space: nowrap; }
@media (max-width: 1120px) { .sf-job-ends { white-space: normal; } }
.sf-job-head__inner { grid-template-columns: 170px minmax(0, 1fr) minmax(240px, 280px); }
@media (max-width: 1080px) { .sf-job-head__inner { grid-template-columns: 150px minmax(0, 1fr); } }
@media (max-width: 640px) { .sf-job-head__inner { grid-template-columns: 1fr; } }
.sf-job .sfj-apply .sfj-btn--accent { background: var(--sf-job-green); color: #FFFFFF; font-weight: 500; }
.sf-job .sfj-apply .sfj-btn--accent:hover { color: #FFFFFF; filter: brightness(.95); }

/* Clickable job types */
.sf-job-head__type a, .sf-job-info__value a { color: inherit; text-decoration: none; }
.sf-job-head__type a:hover, .sf-job-info__value a:hover { text-decoration: underline; }
.sf-job-info__value a { color: var(--sf-job-green); }

/* Job type / department page */
.sf-term-head { background: #F8F8F8; }
.sf-term-head__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.sf-term-head__kicker { margin: 0 0 6px; color: var(--sf-search-button, #8BB453); font-weight: 600; font-size: 15px; }
.sf-term-head h1 { margin: 0 0 12px; font-family: var(--sf-body); font-weight: 600; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; text-transform: none; color: var(--sf-ink); }
.sf-term-head__summary { margin: 0; max-width: 720px; color: #666666; font-size: 18px; line-height: 1.6; }
.sf-term-head__count { margin: 14px 0 0; color: var(--sf-ink); font-weight: 600; }
.sf-term-head__image img { width: 260px; height: 190px; object-fit: cover; border-radius: 8px; display: block; }
.sf-term-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sf-term-facts li { background: #FFFFFF; border-radius: 6px; padding: 12px 16px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.sf-term-facts__label { display: block; font-size: 13px; color: #777777; }
.sf-term-facts__value { display: block; font-weight: 600; color: var(--sf-ink); }
.sf-term-body { padding-top: 48px; padding-bottom: 96px; }
.sf-term-content { max-width: 860px; color: #555555; font-size: 17px; line-height: 1.75; margin-bottom: 40px; }
.sf-term-content h2, .sf-term-content h3 { font-family: var(--sf-body); text-transform: none; color: var(--sf-ink); }
.sf-term-others { margin-top: 48px; }
.sf-term-others ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sf-term-others a { display: inline-block; padding: 10px 16px; border: 1px solid var(--sf-card-line); border-radius: 999px; text-decoration: none; color: var(--sf-ink); }
.sf-term-others a:hover { border-color: var(--sf-search-button, #8BB453); color: var(--sf-search-button, #8BB453); }
@media (max-width: 760px) {
	.sf-term-head__inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
	.sf-term-head__image img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}

/* Header at 1120px: keep the sign-in link and button on one line */
.sf-header .sf-el-actions, .sf-header .sf-header__actions { flex-wrap: nowrap; gap: 8px; }
.sf-header .sf-signin, .sf-header .sf-btn { white-space: nowrap; }
.sf-header .sf-btn { padding: 0 16px; }
@media (min-width: 1101px) { .sf-header .sf-menu { gap: 4px 22px; } }

/* ---------------------------------------------------------------
 * Header (built-in): logo | divider | menu | bell | Login/Register
 * ------------------------------------------------------------- */
.sf-header--classic { background: var(--sf-header-bg); border-top: 1px solid #E6E6E6; border-bottom: 1px solid #EDEDED; }
.sf-header--classic .sf-header__bar { display: flex; align-items: stretch; gap: 0; min-height: 92px; padding-top: 0; padding-bottom: 0; }
.sf-header--classic .sf-header__logo { display: flex; align-items: center; padding-right: 36px; margin-right: 36px; border-right: 1px solid #E6E6E6; flex: 0 0 auto; }
.sf-header--classic .sf-brand img { max-height: 36px; max-width: 200px; }
.sf-header--classic .sf-nav { flex: 1 1 auto; align-items: stretch; }
.sf-header--classic .sf-nav > nav { display: flex; align-items: stretch; }
.sf-header--classic .sf-menu { align-items: stretch; gap: 0 32px; font-size: 16px; font-weight: 400; flex-wrap: nowrap; }
.sf-header--classic .sf-menu > li { display: flex; align-items: center; }
.sf-header--classic .sf-menu > li > a { position: relative; height: 100%; padding: 0; color: #222222; white-space: nowrap; }
.sf-header--classic .sf-menu > li > a:hover { color: var(--sf-search-button, #8BB453); }
/* Grey underline under the current page, on the bottom edge of the header */
.sf-header--classic .sf-menu > .current-menu-item > a::before,
.sf-header--classic .sf-menu > .current_page_item > a::before,
.sf-header--classic .sf-menu > .current-menu-ancestor > a::before { content: ""; position: absolute; left: -8px; right: -8px; bottom: -1px; height: 2px; background: #9A9A9A; }
.sf-header--classic .sf-menu > .current-menu-item > a, .sf-header--classic .sf-menu > .current_page_item > a { color: #222222; }
/* Small filled dropdown arrow */
.sf-header--classic .sf-menu > .menu-item-has-children > a::after { width: 0; height: 0; margin-left: 8px; border: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid currentColor; transform: translateY(1px); }
.sf-header--classic .sf-menu .sub-menu { top: calc(100% + 1px); left: -18px; border-radius: 0 0 8px 8px; }

.sf-header__tools { display: flex; align-items: center; gap: 28px; margin-left: 32px; flex: 0 0 auto; }
.sf-account-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; background: #222222; color: #FFFFFF; border-radius: 6px; font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sf-account-btn:hover, .sf-account-btn:focus-visible { background: #000000; color: #FFFFFF; }

.sf-bell { position: relative; }
.sf-bell__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: #8A8A8A; border-radius: 50%; cursor: pointer; }
.sf-bell__btn:hover, .sf-bell__btn[aria-expanded="true"] { color: #222222; background: #F4F4F4; }
.sf-bell__dot { position: absolute; top: 9px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--sf-search-button, #8BB453); box-shadow: 0 0 0 2px var(--sf-header-bg); }
.sf-bell__panel { position: absolute; right: -12px; top: calc(100% + 12px); width: 320px; background: #FFFFFF; border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .16); padding: 14px 0 8px; z-index: 70; }
.sf-bell__panel[hidden] { display: none; }
.sf-bell__title { margin: 0 18px 6px; font-weight: 600; color: #222222; }
.sf-bell__panel ul { list-style: none; margin: 0; padding: 0; }
.sf-bell__panel li a { display: block; padding: 10px 18px; text-decoration: none; color: #222222; }
.sf-bell__panel li a:hover { background: #F6F8F3; }
.sf-bell__job { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; }
.sf-bell__meta { display: block; font-size: 13px; color: #777777; margin-top: 2px; }
.sf-bell__new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #E9F3DC; color: #3D6B12; font-size: 11px; font-weight: 600; vertical-align: 2px; }
.sf-bell__empty { margin: 4px 18px 10px; color: #777777; font-size: 14px; }
.sf-bell__all { display: block; margin: 6px 18px 4px; padding-top: 10px; border-top: 1px solid #EEEEEE; font-size: 14px; font-weight: 600; color: var(--sf-search-button, #8BB453); text-decoration: none; }

/* Tablets and phones: menu behind the ☰ button, bell and account button stay visible */
@media (max-width: 1100px) {
	.sf-header--classic .sf-header__logo { padding-right: 0; margin-right: 0; border-right: 0; }
	.sf-header--classic .sf-header__tools { margin-left: auto; gap: 12px; }
	.sf-header--classic .sf-nav { flex: none; }
	.sf-header--classic .sf-nav > nav { display: block; }
	.sf-header--classic .sf-menu { flex-direction: column; }
	.sf-header--classic .sf-menu > li { display: block; }
	.sf-header--classic .sf-menu > li > a { height: auto; padding: 14px 0; }
	.sf-header--classic .sf-menu > .current-menu-item > a::before, .sf-header--classic .sf-menu > .current_page_item > a::before { display: none; }
	.sf-header--classic .sf-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
	.sf-header--classic .sf-header__bar { min-height: 72px; }
	.sf-header--classic .sf-brand img { max-height: 30px; max-width: 160px; }
	.sf-header--classic .sf-header__account { display: none; }
	.sf-header__mobile-account .sf-account-btn { width: 100%; margin-top: 12px; }
	.sf-bell__panel { position: fixed; left: 12px; right: 12px; top: 78px; width: auto; }
}

/* ---------------------------------------------------------------
 * One straight left edge: header logo, homepage text, search bar and
 * Elementor sections all start where the header content starts.
 * ------------------------------------------------------------- */
.sf-site-content .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--sf-wrap) !important; }
@media (min-width: 1121px) {
	.sf-site-content .elementor-section.elementor-section-boxed > .elementor-container { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1120px) {
	.sf-site-content .elementor-section.elementor-section-boxed { padding-left: 14px !important; padding-right: 14px !important; }
}
/* Fit the header exactly within the 1120px width */
@media (min-width: 1101px) {
	.sf-header--classic .sf-header__logo { padding-right: 30px; margin-right: 30px; }
	.sf-header--classic .sf-menu { gap: 0 28px; }
	.sf-header__tools { margin-left: 24px; gap: 20px; }
	.sf-header--classic .sf-nav { min-width: 0; }
}

/* Jobs page: start with the filters, no big title */
.page .sf-content--wide .sfj-jobs--with-filters { margin-top: 8px; }
