/* Treballa amb nosaltres: ofertes de treball i candidatures (estil TECNISA) */

/* Submenú del menú principal */
.main-header .main-menu ul ul.submenu.submenu-treball { width: 260px; }
.main-header .main-menu ul li > a.treball-parent, .main-header .main-menu ul ul.submenu-treball a, .slicknav_nav .submenu-treball a { text-transform: none; }
.main-header .main-menu ul li > a.treball-parent::after { content: "\e64b"; font-family: "themify"; font-size: 9px; margin-left: 6px; }

/* Llistat d'ofertes */
.jobs-area { padding: 100px 0; }
.jobs-intro { max-width: 760px; margin: 0 0 50px; color: #8a8a8a; font-size: 17px; line-height: 28px; }
.jobs-title span { display: block; margin-bottom: 4px; color: #e31d23; font-family: "Teko", sans-serif; font-size: 22px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.jobs-title h2 { margin-bottom: 20px; color: #0b1c39; font-size: 40px; font-weight: 700; line-height: 1.2; }
.jobs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-bottom: 60px; }
.job-card { position: relative; display: block; padding: 34px 28px 70px; background: #fff; border: 1px solid #e5e6e9; border-top: 5px solid #e31d23; box-shadow: 0 0 10px 3px rgba(0, 0, 0, .05); transition: all .3s ease-out 0s; }
.job-card:hover { background: #0b1c39; border-color: #0b1c39; border-top-color: #e31d23; transform: translateY(-4px); }
.job-card h3 { margin: 0 0 10px; color: #0b1c39; font-size: 22px; font-weight: 600; transition: color .3s; }
.job-card p { margin: 0; color: #8a8a8a; font-size: 15px; transition: color .3s; }
.job-card .job-card-link { position: absolute; left: 28px; bottom: 26px; color: #e31d23; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.job-card .job-card-link i { margin-left: 8px; font-size: 11px; transition: margin .3s; }
.job-card:hover h3 { color: #fff; }
.job-card:hover p { color: #c9cbd4; }
.job-card:hover .job-card-link i { margin-left: 14px; }
.job-card:focus-visible { outline: 3px solid #e31d23; outline-offset: 3px; }
.jobs-general { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 45px; background: #0b1c39; }
.jobs-general p { margin: 0; color: #fff; font-size: 20px; font-weight: 500; }

/* Detall d'oferta */
.job-description { max-width: 860px; margin: 0 auto 70px; }
.job-description p, .job-description li { color: #6e7082; font-size: 16px; line-height: 28px; }
.job-description > p:first-child { color: #0b1c39; font-size: 19px; line-height: 31px; }
.job-description h3 { position: relative; margin: 45px 0 18px; padding-left: 22px; color: #0b1c39; font-size: 26px; font-weight: 600; }
.job-description h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; background: #e31d23; }
.job-description ul { margin: 0; padding: 0; list-style: none; }
.job-description li { position: relative; margin-bottom: 10px; padding-left: 24px; }
.job-description li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; background: #e31d23; }

/* Formulari de candidatura (s'inspira en .form-contact) */
.job-application { padding: 70px 0 0; border-top: 1px solid #e5e6e9; }
.job-application-title { margin-bottom: 40px; text-align: center; }
.job-application-title span { display: block; color: #e31d23; font-family: "Teko", sans-serif; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.job-application-title h2 { margin: 0; color: #0b1c39; font-size: 36px; font-weight: 700; }
.treball-form { max-width: 720px; margin: 0 auto; padding: 50px; background: #f7f7fd; }
.treball-form .row { margin-left: -10px; margin-right: -10px; }
.treball-form .row > [class*="col-"] { padding-left: 10px; padding-right: 10px; }
.treball-field { margin-bottom: 25px; }
.treball-field label { display: block; margin-bottom: 8px; color: #0b1c39; font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.treball-field input, .treball-field textarea { display: block; width: 100%; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid #e5e6e9; border-radius: 0; background: #fff; color: #0b1c39; font-family: "Barlow", sans-serif; font-size: 15px; transition: border-color .3s; }
.treball-field textarea { height: auto; min-height: 140px; padding: 15px 18px; resize: vertical; }
.treball-field input::placeholder, .treball-field textarea::placeholder { color: #999; font-weight: 300; }
.treball-field input:focus, .treball-field textarea:focus { border-color: #e31d23; outline: 0; box-shadow: none; }
.treball-field input[type="file"] { height: auto; padding: 10px; }
.treball-field input::file-selector-button { margin-right: 14px; padding: 9px 18px; border: 1px solid #e31d23; border-radius: 0; background: #e31d23; color: #fff; font-family: "Barlow", sans-serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.treball-field input::file-selector-button:hover { background: #fff; color: #e31d23; }
.treball-field small { display: block; margin-top: 8px; color: #8a8a8a; font-size: 13px; }
.cv-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cv-antispam { margin: 5px 0 25px; color: #8a8a8a; font-size: 13px; line-height: 20px; }
.cv-antispam a { color: #e31d23; text-decoration: underline; }
.treball-form .cv-submit { width: 100%; }
.treball-form .cv-submit:disabled { opacity: .55; cursor: not-allowed; }
.treball-form .cv-submit:disabled:hover { background: #fff; color: #e31d23 !important; }
.treball-form .cv-submit:focus-visible { outline: 3px solid #0b1c39; outline-offset: 3px; }
.cv-status { margin: 18px 0 0; color: #0b1c39; font-size: 15px; text-align: center; }
.cv-status:empty { display: none; }
.contact_form .cv-status { margin-bottom: 40px; text-align: left; }
.contact_form .cv-antispam { margin-top: -10px; }
.jobs-back { display: inline-block; margin-top: 50px; color: #e31d23; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.jobs-back:hover { color: #0b1c39; }

@media (max-width: 1199px) {
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .jobs-area { padding: 70px 0; }
  .jobs-title h2 { font-size: 32px; }
}
@media (max-width: 575px) {
  .jobs-area { padding: 50px 0; }
  .jobs-grid { grid-template-columns: 1fr; gap: 20px; }
  .jobs-general { padding: 30px 20px; }
  .treball-form { padding: 30px 20px; }
  .job-application-title h2 { font-size: 28px; }
  .job-description h3 { font-size: 22px; }
}
