/* Borsa treball - filtres mòbil */

.boto-filtres-borsa-mobil,
.fons-filtres-borsa-mobil,
.panell-filtres-borsa-mobil {
  display: none;
}

.header-oferta .codi {
  color: #747474;
  font-size: 15px;
}

/* ---------------- MÒBIL BORSA ---------------- */

@media (max-width: 1024px) {
/*   body.page-id-872 .row-filtres {
    position: static !important;
    height: auto !important;
    top: auto !important;
    border-right: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
  }

  body.page-id-872 .row-filtres .et_pb_column {
    overflow: visible !important;
    max-height: none !important;
    border-right: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
  } */

/*   body.page-id-872 .filtres-generals {
    display: flex !important;
    flex-direction: column;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 48px 0 0 0 !important;
    padding: 0 35px !important;
    border-right: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
  } */

  body.page-id-872 .filtres-generals > .filtrar-categoria {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  body.page-id-872 .filtres-generals > .filtrar-categoria > .titulars-cursos {
    display: none !important;
  }

  body.page-id-872 .filtres-generals > .filtrar-tematica {
    display: none !important;
  }

  /* Buscador igual que Cursos */

/*   body.page-id-872 .buscador-cursos {
    width: 100% !important;
    margin: 0 !important;
  }

  body.page-id-872 .buscador-search {
    display: flex !important;
    width: 100% !important;
  }

  body.page-id-872 .buscador-input {
    width: 100% !important;
    height: 37px;
    box-sizing: border-box;
    flex: 1;
    padding: 8px 20px !important;
    border-top: 1px solid #043ea7 !important;
    border-bottom: 1px solid #043ea7 !important;
    border-left: 1px solid #043ea7 !important;
    border-right: 0 !important;
    border-radius: 7px 0 0 7px !important;
    font-size: 15px !important;
    color: #000;
  } */

/*   body.page-id-872 .buscador-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 43px;
    height: 37px;
    padding: 0 !important;
    border: 1px solid #043ea7 !important;
    border-radius: 0 7px 7px 0 !important;
    background: #043ea7 !important;
  } */

  /* Botó Filtres igual que Cursos */
/* 
  body.page-id-872 .boto-filtres-borsa-mobil {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    margin: 16px 0 0 0 !important;
    padding: 10px 20px !important;
    border: 0;
    border-radius: 7px !important;
    background: #fbc158 !important;
    color: #000 !important;
    font-family: "SuisseBPIntl Regular" !important;
    font-size: 16px !important;
    font-weight: 600;
    cursor: pointer;
  }
 */
/*   body.page-id-872 .boto-filtres-borsa-mobil:hover {
    box-shadow:
      rgba(50, 50, 93, 0.25) 0 13px 27px -5px,
      rgba(0, 0, 0, 0.3) 0 8px 16px -8px;
  } */

  /* Overlay */

  body.page-id-872 .fons-filtres-borsa-mobil {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.4);
  }

  body.page-id-872 .fons-filtres-borsa-mobil.is-active {
    display: block;
  }

  /* Panel pantalla completa */

  body.page-id-872 .panell-filtres-borsa-mobil {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #fff;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  body.page-id-872 .panell-filtres-borsa-mobil.is-active {
    transform: translateY(0);
  }

  body.filtres-borsa-oberts {
    overflow: hidden;
  }

  /* Header popup: X - Filtres - Reset */

  body.page-id-872 .capcalera-filtres-borsa-mobil {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid #d4d4d4;
    background: #fff;
    box-sizing: border-box;
  }

  body.page-id-872 .capcalera-filtres-borsa-mobil .titulars-cursos {
    display: flex;
    justify-content: center;
    text-align: center;
    color: #000;
    font-size: 22px;
    font-weight: 400;
    line-height: 100%;
  }

  body.page-id-872 .tancar-filtres-borsa-mobil,
  body.page-id-872 .reset-borsa-mobil {
    background: none;
    border: none;
    cursor: pointer;
  }

  body.page-id-872 .tancar-filtres-borsa-mobil {
    padding: 0;
    font-size: 32px;
    line-height: 1;
    color: #000;
  }

  body.page-id-872 .reset-borsa-mobil {
    padding: 0;
    color: #515151;
    font-family: "SuisseBPIntl Regular" !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
  }

  /* Contenido del popup */

  body.page-id-872 .content-filtres-borsa-mobil {
    width: 100%;
    height: calc(100vh - 165px);
    overflow-y: auto;
    padding-bottom: 0;
  }

  body.page-id-872 .content-filtres-borsa-mobil > .filtrar-tematica {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid #d4d4d4;
    box-sizing: border-box;
  }

  body.page-id-872 .content-filtres-borsa-mobil .filtrar-tematica > .titulars-cursos {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    color: #000;
    font-size: 22px;
    font-weight: 400;
    line-height: 100%;
    cursor: pointer;
  }

  body.page-id-872 .content-filtres-borsa-mobil .tag-subrallat {
    display: none !important;
  }

  body.page-id-872 .content-filtres-borsa-mobil .grup-checkbox {
    display: none !important;
  }

  body.page-id-872 .content-filtres-borsa-mobil .filtrar-tematica.is-obert > .grup-checkbox {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
  }

  body.page-id-872 .content-filtres-borsa-mobil .checkbox-cursos {
    display: flex !important;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    color: #3f3f3f;
    font-size: 18px;
    line-height: 125%;
  }

  body.page-id-872 .content-filtres-borsa-mobil .checkbox-cursos input {
    width: 20px;
    height: 20px;
    margin: 0 !important;
  }

  body.page-id-872 .content-filtres-borsa-mobil label {
    font-size: 18px;
    max-width: 65%;
    line-height: 125%;
    color: #000;
  }

  body.page-id-872 .content-filtres-borsa-mobil .valor-checkbox {
    display: none;
  }

  /* Flecha desplegable */

  body.page-id-872 .content-filtres-borsa-mobil .js-toggle-grup-borsa {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    padding: 0;
    pointer-events: none;
  }

  body.page-id-872 .content-filtres-borsa-mobil .js-toggle-grup-borsa::after {
    content: url(https://ifep.cat/wp-content/uploads/2025/12/feltxa-amunt-cursos.svg);
  }

  body.page-id-872 .content-filtres-borsa-mobil .js-toggle-grup-borsa[aria-expanded="true"]::after {
    content: url(https://ifep.cat/wp-content/uploads/2025/12/feltxa-avall-cursos.svg);
  }

  /* Footer Aplicar filtres */

/*   body.page-id-872 .footer-filtres-borsa-mobil {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    padding: 10px 15px 20px;
    background: #fff;
    box-sizing: border-box;
    box-shadow:
      rgba(0, 0, 0, 0.1) 0 20px 25px 25px,
      rgba(0, 0, 0, 0.04) 0 10px 10px -5px;
  } */

/*   body.page-id-872 .aplicar-filtres-borsa-mobil {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    border: 0;
    border-radius: 50px;
    background: #043ea7;
    color: #fff;
    text-align: center;
    cursor: pointer;
  } */

  body.page-id-872 .icones-oferta-borsa svg {
    width: 17px;
    height: 17px;
  }
}

/* Ajust targetes borsa en mòbil petit */

@media (max-width: 480px) {
  body.page-id-872 .card-borsa {
    overflow: hidden;
  }

  body.page-id-872 .tag-modalitat-borsa,
  body.page-id-872 .tag-modalitat-borsa.no-especificat {
    max-width: 105px;
    margin-left: 0;
    padding: 8px 14px;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    word-break: normal;
  }
	
	.icones-oferta-borsa svg {
		    width: 17px;
    height: 17px;

	}
}

.feina-location div{
	color: var(--gcid-primary-color);
}


/*este css es para la columna de 3 en ofertas relacionadas*/
#ofertes-relacionades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

#ofertes-relacionades .feina-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 980px) {
  #ofertes-relacionades {
    grid-template-columns: 1fr;
  }
}


/*cursos relacionados*/
.slider-cursos-relacionats {
  position: relative;
  padding: 0 56px 32px;
  overflow: visible;
}

#cursos-relacionats {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 0 0 32px;
  scrollbar-width: none;
}

#cursos-relacionats::-webkit-scrollbar {
  display: none;
}

#cursos-relacionats .card-curs {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: calc((100% - 72px) / 4);
}

.fletxa-cursos {
  position: absolute;
  top: 48%;
  z-index: 20;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 36px;
  line-height: 48px;
  font-weight: 700;
  background: #fff;
  color: #0046ad;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fletxa-cursos:hover {
  background: #0046ad;
  color: #fff;
}

.fletxa-cursos-esquerra {
  left: 8px;
}

.fletxa-cursos-dreta {
  right: 8px;
}

@media (max-width: 980px) {
  .slider-cursos-relacionats {
    padding: 0 4px 32px;
  }

  #cursos-relacionats {
    gap: 18px;
    padding: 0 44px 34px;
    scroll-snap-type: x mandatory;
  }

  #cursos-relacionats .card-curs {
    flex: 0 0 calc(100vw - 120px);
    min-width: calc(100vw - 120px);
    max-width: calc(100vw - 120px);
    scroll-snap-align: center;
  }

  .fletxa-cursos {
    width: 38px;
    height: 38px;
    font-size: 28px;
    line-height: 38px;
    top: 50%;
  }

  .fletxa-cursos-esquerra {
    left: 4px;
  }

  .fletxa-cursos-dreta {
    right: 4px;
  }
}

@media (max-width: 480px) {
  #cursos-relacionats {
    padding-left: 36px;
    padding-right: 36px;
  }

  #cursos-relacionats .card-curs {
    flex-basis: calc(100vw - 96px);
    min-width: calc(100vw - 96px);
    max-width: calc(100vw - 96px);
  }

  .fletxa-cursos {
    width: 34px;
    height: 34px;
    font-size: 26px;
  }
}




/* BORSA DE TREBALL - FILTROS ESCRITORIO */
@media (min-width: 1025px) {

    /* Columna con un único scroll */
    body.page-id-872 .row-filtres .et_pb_column {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Contenedor interior */
    body.page-id-872 .filtres-generals {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 20px 25px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Buscador */
    body.page-id-872 .filtrar-categoria,
    body.page-id-872 .buscador-cursos,
    body.page-id-872 .buscador-search {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.page-id-872 .buscador-search {
        display: flex !important;
        align-items: stretch;
    }

    body.page-id-872 .buscador-input {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    body.page-id-872 .buscador-button {
        flex: 0 0 43px !important;
        width: 43px !important;
    }
}