/* Reset i tipografia */  
* {  
  margin: 0;  
  padding: 0;  
  box-sizing: border-box;  
}  



body {  
  font-family: 'Roboto', Arial, sans-serif;  
  line-height: 1.6;  
  padding: 20px;  
  background-color: #f7f7f7;  
}  

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 40px;
}

.site-header .form-title {
  font-size: 2.8em;         /* més gran */
  font-weight: 700;
  color: #1a237e;           /* blau fosc elegant */
  margin-bottom: 12px;
}

.site-header .form-underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f1c40f, #d4af37);
  margin: 0 auto;
  border-radius: 10px;
  opacity: 0.8;
}


.site-header p {  
  color: #555;  
  font-size: 1.2em;  
}  

/* Vista llista (una oferta per fila) */

.job-listings.list-view {
  display: flex !important;
  flex-direction: column;
}

.job-listings.list-view .job-item {
  width: 100%;
}

/*neww*/

/* 🟩 Contenidor grid (vista graella) */
#ofertes-publicades.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start; /* evita salts entre files */
}

/* 🔳 Targeta normal dins de la graella */
#ofertes-publicades.grid-view .job-item {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* 🔍 Targeta expandida ocupa tota la fila */
#ofertes-publicades.grid-view .job-item.expanded {
  grid-column: 1 / -1; /* ocupa totes les columnes disponibles */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  background: #fff;
  z-index: 2;
}


/*descripcio*/

/* Quan una targeta té la classe .expanded, fa visible la descripció sencera */

/* 🟡 Estil per defecte de la descripció (text limitat) */
/*descripcio*/
.descripcio {
  color: #777;
  margin: 0.5rem 0 1rem 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.job-item .descripcio p {
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  transition: max-height 0.3s ease;
}

/* 🔼 Quan està expandida */
.job-item.expanded .descripcio,
.job-item.expanded .descripcio p {
  max-height: none;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

/* 💡 Estètica quan es desplega */
.job-item.expanded {
  background-color: #fdfcf9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/*Premium banner*/
.premium-label {
  display: inline-block;
  background-color: #fffdf5;
  border: 1px solid #f5c518;
  border-radius: 8px;
  padding: 0.6em 1em;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  margin: 1em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.gold-word {
  color: #b8932f;
  font-weight: 600;
}

.badge-premium {
  background: linear-gradient(90deg, #ffe9b3, #fff5cc);
  color: #a67c00;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #f5d76e;
  font-size: 0.7rem;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 4px rgba(166, 124, 0, 0.25);
  white-space: nowrap;
  display: inline-block;
}





.premium-status {
  font-weight: bold;
  margin-top: 1em;
  color: #007b00;
}




/*Checkbox legal*/

.checkbox-legal {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    margin-top: 10px;
    color: #444;
    font-family: inherit;
  }

  .checkbox-legal input[type="checkbox"] {
    accent-color: #007BFF; /* Blau modern */
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
  }

  .checkbox-legal a {
    color: #444;
    text-decoration: underline;
  }

  .checkbox-legal a:hover {
    color: goldenrod;
  }

/*FIltres checkboxes etapa panell escola*/
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.checkbox-wrapper {
  display: inline-block;
}

.checkbox-label {
  display: flex;
  align-items: center; /* Centrat verticalment */
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid #d4af37; /* daurat més fi */
  border-radius: 6px; /* menys arrodonit = més compacte */
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  height: 26px; /* controla alçada compacta */
}

.checkbox-label:hover {
  background-color: #fff6dd; /* daurat molt suau */
  border-color: #b8932f;
}

.checkbox-label input[type="checkbox"] {
  accent-color: #b8932f;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/*Tool tip regal*/

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  margin-left: 4px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 260px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 10px;
  position: absolute;
  z-index: 10;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  line-height: 1.4;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/*Estil oferta pagada 1,99 escoles*/

.badge-desbloquejada {
  background-color: #e6ffed;
  color: #007a35;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 8px;
}

/*subs 4,99 cancelada html*/

.btn--outline {
  background-color: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn--outline:hover {
  background-color: #2563eb;
  color: white;
}





/*Filtres checkbox index municipis*/

#checklist-municipis {
  padding-top: 10px;
}

#checklist-municipis p {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

#llista-check-municipis label {
  display: block;
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#llista-check-municipis input[type="checkbox"] {
  accent-color: #d4af37; /* Daura el check! */
  margin-right: 8px;
}


/*paginacio fletxetes*/

/* Paginació — estils centrats i nets */

.paginacio {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}


/*Selector numero ofertes per pagina*/

.per-page-container {
  display: flex;
  justify-content: flex-end;
  margin: 1rem 2rem 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Estil del text "Ofertes per pàgina:" */
#labelPerPageGrid,
#labelPerPageList {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
}

/* Select estilitzat igual per les dues vistes */
#perPageGrid,
#perPageList {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Hover/focus amb daurat suau */
#perPageGrid:hover,
#perPageList:hover,
#perPageGrid:focus,
#perPageList:focus {
  border-color: #d4aa00;
  background-color: #fdf7e3;
  outline: none;
}

/*Termini i dates limit index*/

.data-limit-info {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.95rem;
  color: #444;
}

/* Estil base */
.estat-oferta {
  font-size: 0.8em;
  font-style: italic;
  margin-left: 4px;
}

/* Colors segons estat */
.estat-oferta.red {
  color: #d60000 !important;
  font-weight: bold;
}

.estat-oferta.orange {
  color: #e69500;
}

.estat-oferta.green {
  color: #2e7d32;
}

/*quan ja has aplicat a l'oferta*/

.btn--disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
  border: none;
}

/*mostra un label si sha inscrit a l'oferta*/

.label-inscrit {
  display: inline-block;       /* que no salti de línia */
  background-color: gold;
  color: black;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 6px;
  margin-left: 10px;
  border-radius: 5px;
  vertical-align: middle;      /* alineat amb el text */
}

/*oblit password*/

.forgot-password {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: underline;
}

.forgot-password:hover {
  text-decoration: underline;
  background-color: rgba(0, 123, 255, 0.1); /* lleuger toc de fons blau */
}

h2 {
  margin-bottom: 12px; /* espai entre títol i subtítol */
}

.form-subtext {
  margin-bottom: 20px; /* espai entre subtítol i input */
}

.form-link a {
  color: #007bff;
  text-decoration: none; /* opcional: elimina el subratllat */
}

.form-link a:hover {
  text-decoration: underline;
  background-color: rgba(0, 123, 255, 0.1); /* lleuger toc de fons blau */
}














/* Botons suaus de navegació */
/*
.btn--soft {
  background-color: #f5d79b;
  color: #333;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
} 

.btn--soft:hover {
  background-color: #e6c480;
}

*/



/* Efecte hover daurat amb lletra blanca reseguint en negre */

.btn--soft {
  background: linear-gradient(135deg, #666, #777); /* to fosc més suau */
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 12px;
  border: 2px solid #888; /* contorn una mica més clar també */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.08), 0 2px 5px rgba(0, 0, 0, 0.12);
}

.btn--soft:hover {
  background: linear-gradient(135deg, #a67c00, #d4af37);
  color: white;
  font-weight: 600;
  transform: scale(1.03);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn--soft:disabled {
  display: none; /* ← NO ES MOSTRA si està desactivat */
}













/*View index vertical cilumna*/

/* ====== Distribució de filtres i ofertes ====== */
.ofertes-layout {
  display: flex;
  /*flex-direction: column;*/
  gap: 2rem;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}



/* Filtres a l'esquerra */
.ofertes-layout .filters {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

/* Ofertes a la dreta */
.ofertes-layout .job-listings {
  flex: 1;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/*Desplegables index*/
.custom-select {
  position: relative;
  width: 220px;
  font-family: inherit;
  user-select: none;
}

.custom-select .selected {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  color: #333;
}

/* Quan s’activa el desplegable (mostrant opcions) */
.custom-select.active .selected {
  background-color: #fff;
  border-color: #d4af37;
  color: #333;
}

.custom-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d4af37;
  border-top: none;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  border-radius: 0 0 6px 6px;
}

.custom-select .options li {
  padding: 10px;
  cursor: pointer;
  color: #333;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Només la opció en hover */
.custom-select .options li:hover {
 background-color: #cce5ff;

;
  color: #000;
}

/* Mostrar opcions quan actiu */
.custom-select.active .options {
  display: block;
}



/* Filtres */
.filters {  
  display: flex;  
  gap: 10px;  
  margin-bottom: 20px;  
  flex-wrap: wrap;  
  justify-content: center;
}  

.filters input,  
.filters select {  
  padding: 10px;  
  font-size: 1em;  
  border-radius: 4px;  
  border: 1px solid #ccc;  
}  


/*titol-principal*/

.titol-principal {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
}

.titol-blau { color: #1e3c72; }
.titol-daurat {
  background: linear-gradient(135deg, #a67c00, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* opcional, per compatibilitat */
  color: transparent;    /* afegeix això per evitar errors */
}

/*Titol de cada oferta*/

.titol-oferta {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 0.5rem; /* Pots ajustar-ho segons el que vulguis */
  line-height: 1.3; /* opcional, per fer-ho més agradable */
}

/*botó aplicar*/
  .apply-btn {
  margin-top: 1.5rem;
  align-self: center;
}






.btn--soft {
  background-color: #f4e3c1;
  color: #444;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn--soft:hover {
  background-color: #e6d4b0;
}


/*Boto graella canvi vista*/

.icon-toggle-btn {
  background: linear-gradient(135deg, #a67c00, #d4af37);
  border: none;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.icon-toggle-btn:hover {
  background: linear-gradient(135deg, #d4af37, #a67c00);
  transform: scale(1.05);
}

.icon-svg {
  width: 22px;
  height: 22px;
  fill: white;
}




/* Botó de  aplicar filtres */
.btn--filter {
  display: inline-block;
  padding: 10px 15px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #1e3c72 0%,
    #2a5298 25%,
    #3b8dff 50%,
    #1e3c72 75%,
    #2a5298 100%
  );
  background-size: 400% 100%;
  color: #fff;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn--filter:hover {
  background-position: 100% 0;
  transform: scale(1.05);
  filter: brightness(1.1);
}



/*Botó svg més a panell escola*/
.btn--primary .icon-plus {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  stroke: currentColor;
}

/*Marge capcelera index*/

.margin-right-sm {
  margin-right: 12px; /* o prova 16px si vols més aire */
}





/*SVG's*/


.icon-text {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.25rem;
}


.svg-calendar {
  width: 16px;
  height: 16px;
  color: #2196f3;
}

.svg-zona {
  width: 16px;
  height: 16px;
  color: #c0392b;
}

.svg-school {
  width: 16px;
  height: 16px;
  color: #9c27b0;
}

.svg-etapes {
  width: 16px;
  height: 16px;
  color: #f1c40f;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.95em;
  color: #444;
}

/* Llistat d’ofertes 
.job-listings {  
  display: grid;  
  gap: 20px;  
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));  
  padding: 0 20px;
}  

*/

.job-item {
  padding: 1.6rem;
  background-color: #fff;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden; /* Evita desbordaments visuals */
  position: relative;
}

.job-item:hover {
  transform: translateY(-4px);
  border-color: #d4af37;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  background-color: #fffef9;
}

.job-item h4.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.job-item .meta,
.job-item .meta span,
.job-item .icon-text,
.job-item .icon-label,
.job-item .data-limit-info {
  font-family: inherit;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
}

/*Estil del modal 3D*/

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #ffffff;
  padding: 2rem 1.5rem;
  max-width: 500px;
  width: 90%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  text-align: left;              /* ✅ Text alineat a l’esquerra */
  display: flex;                /* 👈 Activem Flexbox */
  flex-direction: column;      /* 👈 Organitza el contingut en columna */
  align-items: center;   
  margin-bottom: 2 rem;      /* ✅ Centra el contingut horitzontalment */
}

.modal-content h2 {
  text-align: center; /* ✅ només el títol centrat */
}

.descripcio-scrollable {
  max-height: 200px;
  overflow-y: auto;
  background-color: #fdf9f3;
  padding: 0.8rem;
  margin-top: 0.2rem;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-line;

  /* Scroll suau */
  scroll-behavior: smooth;

   /* Firefox scroll */
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #f1f1f1;
}

/* Scroll personalitzat (WebKit: Chrome, Safari) */
.descripcio-scrollable::-webkit-scrollbar {
  width: 8px;
}

.descripcio-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.descripcio-scrollable::-webkit-scrollbar-thumb {
  background: #d4af37; /* daurat */
  border-radius: 8px;
}

.descripcio-scrollable::-webkit-scrollbar-thumb:hover {
  background: #c1992e; /* daurat una mica més fosc al passar el ratolí */
}

/*Banner regal mensual*/

.banner-regal {
  background-color: #fff7e6;
  border: 2px dashed #d4af37;
  padding: 1rem;
  margin: 2rem auto;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
}






.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.titol-modal {
  display: inline-block;          /* Fa que el subratllat s'adapti al text */
  border-bottom: 3px solid #d4af37; /* Color daurat */
  padding-bottom: 0.3rem;         /* Espai entre text i línia */
  margin-bottom: 1rem;
}


/*Modal cv pagament escoles*/

.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.modal-options {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  text-decoration: none; /* treu subratllat als enllaços amb classe .btn */
  display: inline-block; /* perquè es comporti com a botó */
}


.btn--outline {
  border: 2px solid #007bff;
  background-color: #339dff;             /* 🔹 Blau intermig: més fort però sense saturar */
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
}

.btn--outline:hover {
  background-color: #007bff;             /* 🔷 Blau intens */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.3);
}








.btn--text {
  background: none;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}


/*quan escola veu cv es posa verd*/


.cv-link {
  color: #007bff; /* blau clar estil link */
  text-decoration: none;
}

.cv-link:hover {
  text-decoration: none;
}

.cv-vist {
  color: green; /* o el que vulguis per "vist" */
  font-weight: bold;
}


/*Caixeta feedback index*/

.opinio-container {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  border: 2px solid #e2c044;
  border-radius: 12px;
  text-align: center;
  background: #fffef9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.opinio-container h2 {
  margin-bottom: 5px;
}

.star-rating .star {
  font-size: 2rem;
  cursor: pointer;
  position: relative;
}

/* Neteja d'estil per a cada estrella (Safari/Firefox/Chrome) */
.star-rating .star{
  background: transparent;   /* fora fons gris */
  border: 0;                 /* fora marc */
  padding: 0;                /* fora padding intern */
  margin: 0;
  box-shadow: none;          /* fora ombres natives */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 2rem; height: 2rem; /* només per tenir àrea clicable */
  cursor: pointer;
  position: relative;
}

/* Estats visuals (com ja tens) */
.star-rating .star::before{ content:"☆"; color:#ccc; font-size:2rem; line-height:1; }
.star-rating .star.hovered::before,
.star-rating .star.selected::before{ content:"★"; color:#e2c044; }

/* Accessibilitat: anell només en focus de teclat, sense “requadre” brut */
.star-rating .star:focus{ outline: none; }
.star-rating .star:focus-visible{
  outline: 2px solid rgba(226,192,68,.6); /* anell suau */
  outline-offset: 2px;
  border-radius: 4px; /* perquè l'anell no sigui quadrat agressiu */
}



textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem; /* 👈 lletra més gran */
  line-height: 1.5;
  border-radius: 6px;
  margin: 10px 0;
  border: 1px solid #ccc;
  resize: none;
  font-family: inherit;
}


button#enviar-opinio {
  background-color: #e2c044;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}

button#enviar-opinio:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: #666;
}

/* Hover quan està actiu */
button#enviar-opinio:not(:disabled):hover {
  background-color: #d4ad21; /* un daurat més fosc */
}

button#enviar-opinio:not(:disabled):active {
  transform: translateY(1px);
}


/*Opinions dels usuaris*/


#opinions-section {
  margin: 3rem auto;
  text-align: center;
  max-width: 900px;
}

.titol-opinions {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem;
}

.opinio-card {
  min-width: 250px;
  max-width: 300px;
  background: #fffdf8;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  scroll-snap-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  text-align: left;
}

.opinio-card .estrelles {
  color: #f4af50;
  font-size: 1.2rem;
}

.opinio-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}






/*Perfil docent*/

/*
.perfil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.candidatures-container {
  max-width: 500px;
  margin: 40px auto;
  margin-top: 70px;
  padding: 2rem;
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

*/

.perfil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 🟨 Contenidor de candidatures (ja estilitzat correctament) */
.candidatures-container {
  max-width: 500px;
  margin: 40px auto;
  margin-top: 70px;
  padding: 2rem;
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}



/*Escola - ofertes publicades*/
.section-title {
  font-size: 1.4em;
  color: #1a237e; /* blau fosc elegant */
  font-weight: 700;
  border-left: 4px solid #d4af37; /* línia daurada decorativa */
  padding-left: 12px;
  margin-bottom: 1rem;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}


.job-item .meta {  
  color: #777;  
  margin-bottom: 10px;  
}  

/*Quadre cerca index */

#search-keyword {
  border: 2px solid #d4af37; /* daurat */
  border-radius: 6px;
  padding: 10px;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

#search-keyword::placeholder {
  color: #999;
}

#search-keyword:focus {
  border-color: #a67c00; /* daurat més fosc */
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

/*Desplegables index*/





/* Botons base */
.btn {
  display: inline-block;
  padding: 10px 15px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  color: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-size: 200% 200%;
}

/* Botó principal */
.btn--primary {
  background: linear-gradient(135deg, #43cea2, #27ae60, #219150);
  background-size: 200% 200%;
  color: #fff;
  padding: 10px 15px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  margin-top: 12px;
}
.btn--primary:hover {
  background-position: right center;
  filter: brightness(1.05);
  transform: scale(1.04);
}

/*Boto registre*/

.btn--register {
  background: linear-gradient(135deg, #555, #666);
  color: white;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn--register:hover {
  background: linear-gradient(135deg, #a67c00, #d4af37);
  transform: scale(1.05);
  filter: brightness(1.05);
}



/* Botó text (link) */
.btn--text {
  background: none;
  color: #007bff;
  text-decoration: none;
  padding: 4px 8px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn--text:hover {
  text-decoration: none;
  background-color: rgba(0, 123, 255, 0.1); /* lleuger toc de fons blau */
}

/*Botó back to index*/

.back-to-index {
  position: absolute;
  top: 100px;
  left: 485px;
  background: none;
  color: #007bff;
  text-decoration: none;
  padding: 4px 8px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.back-to-index:hover {
  text-decoration: underline;
  background-color: rgba(0, 123, 255, 0.1); /* lleuger toc de fons blau */
}

/*personalitzacio del boto torna al perfil dusuari*/

.back-to-index--perfil {
  left: 235px;
  top: 150px;
}



/*Botons dins de panell escola ofertes*/

.boto-accions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-editar {
  background-color: #1e3a8a;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-editar:hover {
  background-color: #3b60d1;
}

.btn-esborrar {
  background-color: #e5e7eb;
  color: #333;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-esborrar:hover {
  background-color: #dc2626;
  color: white;
}

/* Botó de nova oferta panell escola */

#nova-oferta-form .btn-primary:hover {
  background: linear-gradient(135deg, #a67c00, #d4af37); /* daurat */
  color: black;
}
/*panells escola */

.panell-dues-columnes {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.columna-esquerra,
.columna-dreta {
  flex: 1 1 45%;
  min-width: 320px;
}





/*Marge formulari perfil*/

#perfil-page .form-container {
  margin-top: 70px; /* ajustable */
}




/* Formularis */
.form-container {  
  max-width: 500px;  
  margin: 40px auto;  
  padding: 2rem;  
  background: #fff;  
  border: 2px solid #d4af37;  /* daurat elegant */
  border-radius: 10px;  
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);  /* ombra suau */
  transition: all 0.3s ease;
}


/*Registre del log in */

#go-register {
  margin-top: 1.2rem;
  display: inline-block;
}

/*Inici sessio al Registre*/

#go-login {
  margin-top: 1.2rem;
  display: inline-block;
}

/*Al formulari de registre*/

#registre-btn {
  margin-top: 20px;  /* Pots ajustar aquest valor segons et convingui */
}



.form-container label {  
  display: block;  
  margin-bottom: 0.25rem;  
  font-weight: bold;  
  color: #333;
}  

.form-container input,  
.form-container select,  
.form-container textarea {  
  width: 100%;  
  padding: 10px;  
  font-size: 1em;  
  margin-bottom: 1rem;  
  border: 1px solid #ccc;  
  border-radius: 6px;  
  transition: border-color .3s ease;  
}  

.form-container input:focus,  
.form-container select:focus,  
.form-container textarea:focus {  
  border-color: #4caf50;  
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);  
}  

/* Footer */
.site-footer {  
  text-align: center;  
  margin-top: 40px;  
  color: #777;  
}  

/* Responsive

@media (max-width: 768px) {  
  .filters {  
    flex-direction: column;  
  }  

  .form-container {  
    margin: 20px;  
    padding: 1rem;  
  }  

  .btn, .btn--filter {  
    width: 100%;  
  }  
}

*/

/* ========================= */  
/* Toast notifications       */  
/* ========================= */
#toast-container {  
  position: fixed;  
  top: 1rem;  
  right: 1rem;  
  z-index: 9999;  
  display: flex;  
  flex-direction: column;  
  gap: 0.5rem;  
}  

.toast {  
  min-width: 220px;  
  padding: 10px 15px;  
  border-radius: 0.375rem;  
  font-size: 1rem;  
  color: white;
  background-color: #333; /* o fins i tot #222 si vols més contrast */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);  
  opacity: 0;  
  transform: translateX(100%);  
  transition: transform 0.6s ease, opacity 0.6s ease;  
}  

.toast.show {  
  opacity: 1;  
  transform: translateX(0);  
}  

.toast.success { background-color: #4caf50; }  
.toast.error   { background-color: #f44336; }  
.toast.info    { background-color: #2196f3; }  

/*Estils ofertes inscrites*/  

.badge {  
  display: inline-block;  
  padding: 5px 12px;  
  border-radius: 6px;  
  font-size: 1em;  
  font-weight: 500;  
  margin-right: 8px;  
  margin-top: 4px;  
}  

.badge.zona {  
  background-color: #e0f7fa;  /* blau clar */  
  color: #007c91;  
}  

.badge.etapa {  
  background-color: #e8f5e9;  /* verd clar */  
  color: #2e7d32;  
}  

.badge.data {  
  background-color: #fff3e0;  /* taronja suau */  
  color: #ef6c00;  
}  

/*Candidatures enviades*/

#candidatures-list {
  list-style: none; /* ✅ treu el punt */
  padding: 0;
  margin: 0;
}

#candidatures-list li {
  /*background-color: #fefefe;*/
 /* border: 1px solid #e0e0e0;*/
  border-radius: 16px;
  padding: 1.2rem 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 1.05rem; /* ✅ lletra més gran */
  color: #333;
  position: relative;
  line-height: 1.6;
  max-width: 100%;
  word-break: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#candidatures-list li strong {
  font-weight: 600; /* ✅ negreta per Oferta, Zona, Data */
}

/* Bafarada: triangle apuntant avall */
#candidatures-list li::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 100%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #fefefe; /* mateix fons que bafarada */
  transition: border-top-color 0.3s ease;
}

/* Hover: amplifica i triangle daurat */
#candidatures-list li:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

#candidatures-list li:hover::after {
  border-top-color: #d4af37; /* ✅ triangle daurat */
}

/*Candidatures dins perfil escola*/

/*

.candidatures-container-bloc {
  margin-top: 1rem;
  background: #f9f4e2;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #d4af37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

*/



/* 📱 Responsive complet per mòbil i tauletes */
@media (max-width: 768px) {

/* ✅ Mòbil: Filtres a dalt, ofertes sota */

  .ofertes-layout {
    flex-direction: column;
    padding: 0 10px;
  }

  .ofertes-layout .filters {
    width: 100%;
    flex: unset;
  }

  .ofertes-layout .job-listings {
    grid-template-columns: 1fr;
  }

  

  /* ✅ Llistat d’ofertes 1 per fila */
  .job-listings {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  /* ✅ Selects desplegables 100% */
  .custom-select {
    width: 100%;
  }

  /* ✅ Títol i subtítol més petits */
  .site-header .form-title {
    font-size: 1.8em;
  }

  .site-header p {
    font-size: 1em;
  }

  /* ✅ Formulari més compacte */
  .form-container {
    margin: 20px;
    padding: 1rem;
  }

  .form-container input,
  .form-container select,
  .form-container textarea {
    font-size: 0.95em;
    padding: 8px;
  }

  /* ✅ Botons adaptats */
  .btn,
  .btn--filter,
  .btn--primary,
  .btn--register {
    width: 100%;
    font-size: 0.95em;
    padding: 10px;
  }

  /* ✅ Contenidors de candidatures */
  
  .perfil-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 10px;
  }

  .form-container {
    margin-bottom: 30px; /* ✅ espai sota el formulari */
  }

  .candidatures-container {
    margin-top: 0; /* Evita doble espai si ja té margin-top */
  }


  /* ✅ Llistat de candidatures */
  #candidatures-list li {
    font-size: 1em;
    padding: 1rem;
  }

  /* ✅ Toast notifications adaptades */
  #toast-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
  }
}

@media (max-width: 480px) {
  .site-header .form-title {
    font-size: 1.6em;
  }

  .site-header p {
    font-size: 0.95em;
  }

  .filters {
    flex-direction: column;
  }
}









