/* ========================================= */
/* === SECCIÓ 1: RESET + VARIABLES GLOVALS === */
/* ========================================= */
/*
Inclou:
- Reset CSS general
- Variables globals de color i tipografia
- Fonts i propietats base
- Box-sizing i marges generals
*/

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

*/



/* === SECCIÓ 1: RESET + VARIABLES GLOVALS === 

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;  base per rem 
  height: 100%;  assegurem alçada completa 
}

*/

/* === SECCIÓ 1: RESET + VARIABLES GLOVALS === */

/*
body {  
  font-family: 'Roboto', Arial, sans-serif;  
  line-height: 1.6;  
  background-color: #f7f7f7;  
  min-height: 100vh; /* 🔑 assegura que cobreix tota l'alçada 
}

*/

/* === SECCIÓ 1: RESET + VARIABLES GLOVALS === */

/* --- Evita desplaçament horitzontal al mòbil --- 
html, body {
  width: 100%;
  overflow-x: hidden;           
  overscroll-behavior-x: none;  
  position: relative;
}

body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; 
}

*/

/* ==========================================================
   5️⃣ LAYOUT I ESTRUCTURA GLOBAL
   ----------------------------------------------------------
   Inclou:
   - Distribució general de la pàgina.
   - Sistemes de columnes (grid/flex).
   - Contenidors, seccions principals i wrappers.
   - Layout d’ofertes i filtres.
   📍 Estat: DOCUMENTADA
   ========================================================== */

/* contenidor genèric per afegir marges al contingut 
.container {
  padding: 20px;
}

*/


/* Header */

/*
.site-header .form-title {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.8rem);
  font-weight: 700;
  color: #1a237e;           
  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;  
}  

*/

/* --- UPGRADE SUAU HEADER EXISTENT --- */

/* HEADER POLIT I ELEGANT 
.site-header {
  text-align: center;
  padding: 90px 20px 70px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ed 85%);
  border-bottom: 2px solid #e2c04455;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  background-image: radial-gradient(circle at top right, rgba(212,175,55,0.08), transparent 60%),
                    radial-gradient(circle at bottom left, rgba(30,77,216,0.08), transparent 60%);
}

*/

/*
.titol-principal {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 2.8vw + 1rem, 2.7rem);
  font-weight: 700;
  text-align: center;
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.titol-blau {
  color: #1a237e; /* coherent amb la resta (lleugerament més profund) 
}

.titol-daurat {
  background: linear-gradient(135deg, #a67c00, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

*/


/* Subtítol 
.site-header p {
  font-size: 1.15rem;
  color: #444;
  margin-top: 0.4rem;
  opacity: 0.95;
}

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/* Línia decorativa sota el títol 
.form-underline {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #f1c40f, #d4af37);
  margin: 10px auto 22px;
  border-radius: 10px;
  opacity: 0.9;
}

*/

/* Vista llista (una oferta per fila) 

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

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*

.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(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

*/
/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/* 🔳 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;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  background: #fff;
  z-index: 2;
}

/* 📱 Responsive (mòbils i tablets petites) 
@media (max-width: 768px) {
  #ofertes-publicades.grid-view {
    grid-template-columns: 1fr; /* sempre 1 targeta per fila 
  }
  .job-item {
    padding: 1rem;
  }
}

*/



/*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;
}

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*
.job-item .descripcio p {
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  transition: max-height 0.3s ease;
}

.job-item.expanded .descripcio,
.job-item.expanded .descripcio p {
  max-height: none;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.job-item.expanded {
  background-color: #fdfcf9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.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; 
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
  }

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

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


.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

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

.checkbox-label {
  display: flex;
  align-items: center; 
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid #d4af37; 
  border-radius: 6px; 
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  height: 26px; 
}

.checkbox-label:hover {
  background-color: #fff6dd; 
  border-color: #b8932f;
}

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

*/





/*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*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*

.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 {
  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*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/*
.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;       
  background-color: gold;
  color: black;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 6px;
  margin-left: 10px;
  border-radius: 5px;
  vertical-align: middle;      
}

*/

/*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); 
}

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

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/*
.form-subtext {
  margin-bottom: 20px; 
}

.form-link a {
  color: #007bff;
  text-decoration: none; 
}

.form-link a:hover {
  text-decoration: underline;
  background-color: rgba(0, 123, 255, 0.1); 
}

*/














/* 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 */

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*
.btn--soft {
  background: linear-gradient(135deg, #666, #777);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 10px 12px;
  border: 2px solid #888;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 2px rgba(0,0,0,.08), 0 2px 5px rgba(0,0,0,.12);
  -webkit-tap-highlight-color: transparent; /* millora tap a Android 
}
.btn--soft:hover {
  background: linear-gradient(135deg, #a67c00, #d4af37);
  transform: scale(1.03);
}
.btn--soft:disabled { display: none; }

*/










/* ========================================= */
/* === SECCIÓ 2: ESTRUCTURA GENERAL I LAYOUTS === */
/* ========================================= */

/*View index vertical cilumna*/

/* 
.ofertes-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;

  overflow: visible !important;
}




.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-layout .job-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 24px;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 40px;
  box-sizing: border-box;
  overflow: visible;
}

*/


/*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;
}


.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;
}


.custom-select .options li:hover {
 background-color: #cce5ff;

;
  color: #000;
}


.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-oferta {
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.1rem);
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}




  .apply-btn {
  margin-top: 1.5rem;
  align-self: center;
}

*/



/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/*
.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;
}

*/


/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/* 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; 
}

*/




/*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;
}  

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*
.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;

  min-height: 280px;        
  height: 100%;              
  box-sizing: border-box;
  overflow: visible;          
  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;
}

*/

/*

.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;              
  display: flex;              
  flex-direction: column;     
  align-items: center;   
  margin-bottom: 2 rem;      
}

.modal-content h2 {
  text-align: center; 
}

.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-behavior: smooth;

   
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #f1f1f1;
}


.descripcio-scrollable::-webkit-scrollbar {
  width: 8px;
}

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

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

.descripcio-scrollable::-webkit-scrollbar-thumb:hover {
  background: #c1992e; 
}

*/






/*

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

.titol-modal {
  display: inline-block;          
  border-bottom: 3px solid #d4af37; 
  padding-bottom: 0.3rem;       
  margin-bottom: 1rem;
}



.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;
}

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*
.btn--outline {
  border: 2px solid #007bff;
  background-color: #339dff;            
  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;            
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.3);
}

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

*/


/*quan escola veu cv es posa verd


.cv-link {
  color: #007bff; 
  text-decoration: none;
}

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

.cv-vist {
  color: green; 
  font-weight: bold;
}

*/

/* 🟦✨ C
.opinio-container {
  max-width: 550px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(145deg, #fefefe 0%, #faf8ed 70%);
  background-image:
    radial-gradient(circle at top right, rgba(30,77,216,0.07), transparent 60%),
    radial-gradient(circle at bottom left, rgba(212,175,55,0.08), transparent 70%);
  border: 2px solid #e2c044;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.opinio-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* 🔹 Títol 
.opinio-container h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #1a237e, #3f51b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Subtítol 
.opinio-container p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #444;
}

/* ⭐ Sistema d’estrelles — millora visual sense tocar lògica 
.star-rating {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1rem;
}

.star-rating .star {
  font-size: 2.4rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, filter 0.25s ease;
  color: #d4d4d4; /* gris neutre per les buides 
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.star-rating .star:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.star-rating .star::before {
  content: "☆";
  color: #ccc;
  transition: color 0.2s ease, transform 0.25s ease;
}

/* Estrelles actives o en hover: daurat elegant i amb llum suau 
.star-rating .star.hovered::before,
.star-rating .star.selected::before {
  content: "★";
  color: #e2c044;
  text-shadow: 0 0 8px rgba(212,175,55,0.4), 0 2px 4px rgba(0,0,0,0.15);
  transform: scale(1.02);
}

/* Adaptació responsive suau 
@media (max-width: 500px) {
  .star-rating .star {
    font-size: 2rem;
  }
  .star-rating {
    gap: 4px;
  }
}


/* ✏️ Textarea 
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
  margin: 15px 0;
  border: 1.5px solid #ccc;
  resize: none;
  font-family: inherit;
  background: #fffdf6;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 6px rgba(212,175,55,0.3);
}

/* 🔘 Botó enviar 
button#enviar-opinio {
  background: linear-gradient(90deg, #1a237e, #3f51b5);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(26,35,126,0.25);
}

button#enviar-opinio:hover:enabled {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,35,126,0.35);
}

button#enviar-opinio:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}




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

.titol-opinions {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: #1a237e; /* blau corporatiu 
  margin: 3rem auto 1rem;
}

.titol-opinions span {
  color: #b08a2e; /* daurat corporatiu 
  font-weight: 700;
}

.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;
}

.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;
}



.section-title {
  font-size: 1.4em;
  color: #1a237e; 
  font-weight: 700;
  border-left: 4px solid #d4af37; 
  padding-left: 12px;
  margin-bottom: 1rem;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*

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


#search-keyword {
  border: 2px solid #d4af37; 
  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; 
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

*/

/*Desplegables index*/


/*Colaboradors

#mini-colaboradors {
  background: #f6f7fb;                
  padding: 60px 0;
  border-top: 1px solid #e7e9f1;
}

.mini-colab__container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.mini-colab__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a237e;                     
  margin-bottom: 8px;
}

.mini-colab__header h2 span {
  background: linear-gradient(135deg, #a67c00, #d4af37);
  background-clip: text;             
  -webkit-background-clip: text;     
  -webkit-text-fill-color: transparent;
  color: transparent;                
}


.mini-colab__subtitle {
  color: #555;
  margin-bottom: 28px;
}

.mini-colab__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eceff6;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 26px;
}

.mini-colab__logos img {
  max-height: 45px;
  max-width: 180px;
  object-fit: contain;
  opacity: .95;
  transition: transform 0.2s ease;
}

.mini-colab__logos img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

*/
/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*

.btn--primary.disabled {
  opacity: 0.5;
  pointer-events: none;   
  cursor: not-allowed;
}


.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%;
}

.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;
}
.btn--primary:hover {
  background-position: right center;
  filter: brightness(1.05);
  transform: scale(1.04);
}


.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);
}



.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: underline;
  background-color: rgba(0, 123, 255, 0.1); 
}


.back-to-index {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
  margin-bottom: 16px; 
  position: relative;  
  left: 0;
  top: 0;
}

.back-to-index:hover {
  color: #1d4ed8;
  text-decoration: underline;
}



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




.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); 
  color: black;
}

.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; 
}

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */


/* Formularis 
.form-container {  
  max-width: 500px;  
  margin: 40px auto;  
  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;
}

*/


/*Registre del log in 

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


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


#registre-btn {
  margin-top: 20px;  
}

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/*
.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;  
}  

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */
/*
.toast {  
  min-width: 220px;  
  padding: 10px 15px;  
  border-radius: 0.375rem;  
  font-size: 1rem;  
  color: white;
  background-color: #333; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);  
  opacity: 0;  
  transform: translateX(100%);  
  transition: transform 0.3s ease, opacity 0.3s 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;  
  color: #007c91;  
}  

.badge.etapa {  
  background-color: #e8f5e9;  
  color: #2e7d32;  
}  

.badge.data {  
  background-color: #fff3e0;  
  color: #ef6c00;  
}  

*/

/*Candidatures enviades

#candidatures-list {
  list-style: none; 
  padding: 0;
  margin: 0;
}


  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; 
  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; 
}

#candidatures-list li::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 100%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #fefefe; 
  transition: border-top-color 0.3s ease;
}


#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; 
}


.site-header { 
  text-align: center; 
}

#session-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1rem; 
}


.site-header .btn,
.site-header a.btn,
.site-header button.btn {
  display: inline-flex;
  float: none !important;
  width: auto;
}

*/

/*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;
}



*/



/* 
@media (max-width: 860px) {
  .rc-container { 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 768px) {
  
  .titol-principal {
    font-size: 1.6rem;       
    margin: 1.2rem 0 0.8rem; 
    line-height: 1.25;       
  }

  .site-header p {
    font-size: 1rem;
    padding: 0 12px;
    line-height: 1.4;
    color: #444;             
  }

  .site-header .form-title {
    font-size: 1.6em;        
    margin-bottom: 0.8rem;
  }

  
  .site-header .form-underline {
    width: 50px;
    height: 2.5px;
  }

  
  .ofertes-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 10px;
  }
  .ofertes-layout .filters {
    width: 100%;
    flex: unset;
    padding: 1rem;
  }
  .custom-select,
  .filters input[type="text"],
  .filters select { width: 100%; }
  .btn--filter { width: 100%; }

  
  .ofertes-layout .job-listings { grid-template-columns: 1fr; gap: 1rem; }
  .job-listings { grid-template-columns: 1fr; padding: 0 10px; }
  .job-item { padding: 1rem; font-size: 0.95rem; }
  .titol-oferta { font-size: 1rem; }

  */

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

  /* Formularis 
  .form-container {
    margin: 20px 10px;
    padding: 1rem;
    margin-bottom: 30px;
  }
  .form-container input,
  .form-container select,
  .form-container textarea {
    font-size: 0.95em;
    padding: 8px;
    width: 100%;
  }

  */

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

  */

  /* Perfil + candidatures 
  .perfil-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 10px; }
  .candidatures-container { margin-top: 0; }
  #candidatures-list li { font-size: 1em; padding: 1rem; }

  */

  /* Paginació 
  .paginacio {
    display: flex; gap: .5rem; align-items: center; justify-content: center;
    padding: 0 10px; margin: 16px 0;
  }
  .paginacio #pagina-actual { min-width: 100px; text-align: center; }

  */

  /* Opinions / carrusel 
  .carousel { gap: .5rem; padding: .5rem; }
  .opinio-card { min-width: 220px; max-width: 260px; padding: .8rem; }

  */

  /* Col·laboradors mini (index) 
  #mini-colaboradors { padding: 40px 0; }
  .mini-colab__container { padding: 0 12px; text-align: center; }
  .mini-colab__header h2 { font-size: 1.6rem; }
  .mini-colab__subtitle { font-size: .95rem; }
  .mini-colab__logos { gap: 16px; padding: 10px; border-radius: 14px; }
  .mini-colab__logos img {
    max-width: 140px; max-height: 40px; object-fit: contain;
  }

  */

  /* Botó comunitat v2.0 
  .new-badge-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; width: calc(100% - 20px); margin: 8px 10px 0;
    text-align: center;
  }
  .new-badge-btn .label { font-size: .78rem; }

  */

  /* Modal ofertes 
  .modal-content {
    width: calc(100% - 24px);
    max-height: 85vh;
    margin: 0 12px;
    padding: 14px;
    overflow-y: auto;
  }
  .modal-close { position: sticky; top: 0; }

  */

  /*Modal lliscant 2.0
#communityTrack{
  touch-action: pan-x;             
  overscroll-behavior-x: contain;  
}


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.tag {
  display: inline-block;
  background: rgba(14,165,234,0.15);
  color: #0b466d;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.tag:hover {
  background: rgba(14,165,234,0.25);
}

.tag-alt {
  background: rgba(234,179,8,0.18);
  color: #6b4e00;
}


.tab-btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}
.tab-btn.is-disabled:hover {
  opacity: .7;
}

*/


/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/*boton back to borsa

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0b1b2b;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow);
  margin-top: 16px;
  transition: all 0.3s ease; 
}

.btn-back:hover {
  background: linear-gradient(135deg, #a67c00, #d4af37); 
  color: #ffffff; 
  transform: scale(1.1); 
}

*/








  /* 
  #toast-container {
    top: .5rem; right: .5rem; left: .5rem; width: auto;
  }


@media (max-width: 480px) {

  
  html { font-size: clamp(17px, 4.5vw, 18.5px); }

  
  .titol-principal {
    font-size: clamp(1.4rem, 6vw + 0.5rem, 1.9rem);
    margin: 1rem 0 0.6rem;
    line-height: 1.25;
  }

  
  .site-header p {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    padding: 0 10px;
    line-height: 1.4;
  }

  
  .site-header .form-title {
    font-size: clamp(1.4rem, 5vw + 0.6rem, 2rem);
    margin-bottom: 0.8rem;
  }

  
  .site-header .form-underline {
    width: 45px;
    height: 2px;
  }

  .titol-oferta { 
    font-size: clamp(1.05rem, 3.5vw + 0.6rem, 1.2rem); 
  }

  .btn, .btn--primary, .btn--soft {
    padding: 9px 10px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  .job-item .meta,
  .job-item .icon-text,
  .job-item .icon-label,
  .job-item .data-limit-info {
    font-size: clamp(1rem, 3.4vw, 1.05rem);
  }

  


  body { padding: 12px; }

  #mini-colaboradors .mini-colab__header h2 { font-size: 1.45rem; }
  #mini-colaboradors .mini-colab__subtitle { font-size: .9rem; }
  #mini-colaboradors .mini-colab__logos {
    padding: 8px;
    gap: 12px;
  }
  #mini-colaboradors .mini-colab__logos img {
    max-width: 100px;
    max-height: 28px;
  }
  #mini-colaboradors .mini-colab__logos a {
    display:flex; 
    align-items:center; 
    justify-content:center;
    height:26px !important;
  }
  #mini-colaboradors .mini-colab__logos a img{
    height:100% !important;
    width:auto !important;
    max-height:none !important;
    max-width:unset !important;
  }

  html.ua-android-chrome {
    font-size: clamp(16px, 4.2vw, 17.5px);
  }
 .ua-android-chrome .site-header .form-title {
  font-size: clamp(1.3rem, 4.2vw + 0.5rem, 1.9rem);
  line-height: 1.25;
}

.ua-android-chrome .titol-principal {
  font-size: clamp(1.4rem, 5vw + 0.5rem, 1.85rem);
  line-height: 1.2;
}

  .ua-android-chrome .titol-oferta {
    font-size: clamp(1rem, 3.2vw + .6rem, 1.15rem);
  }
}

*/


/*Comunitat - tema setmana

#llistaDebat .content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  margin-top: 0;
}

#llistaDebat .content.open {
  max-height: 400px;
  opacity: 1;
  margin-top: 0.6rem;
}

*/







/* Estat desactivat del botó Comunitat 
.new-badge-btn.is-disabled{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:auto; 
  filter: grayscale(18%);
}
.new-badge-btn.is-enabled{
  opacity:1;
  cursor:pointer;
  filter:none;
}


.subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 26, 43, .08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}
.subnav .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  position: relative;
  display: flex;
  gap: 8px;
}

.tab-btn {
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  background: transparent;
  color: #0b1b2b;
  position: relative;
  transition: background .2s ease, color .2s ease;
}
.tab-btn:hover {
  background: #eef6ff;
}
.tab-btn.is-active {
  color: #0a4a6b;
  background: #e6f6ff;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(135deg, #0ea5ea, #5fddff);
  width: 0;
  left: 0;
  transition: left .25s ease, width .25s ease;
}

.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
  animation: fadeIn .25s ease;
}

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

.tab-note {
  background: #fff;
  border: 1px dashed #cfe8ff;
  color: #0a4a6b;
  padding: 14px;
  border-radius: 14px;
  margin: 14px 0;
}


.ask-modal{
  position:fixed; inset:0; background:rgba(8,12,20,.6);
  display:none; align-items:center; justify-content:center; z-index:10000;
}
.ask-modal.open{ display:flex; }
.ask-dialog{
  width:min(620px,92vw); background:#fff; border-radius:16px;
  box-shadow:0 24px 60px rgba(0,0,0,.3); padding:16px;
}
.ask-label{ display:block; font-weight:700; font-size:14px; margin:10px 0 6px; }
.ask-dialog input, .ask-dialog textarea{
  width:100%; border:1px solid #e5edf5; border-radius:10px; padding:10px 12px; font:inherit; outline:none;
}
.ask-dialog input:focus, .ask-dialog textarea:focus{
  border-color:#0ea5ea; box-shadow:0 0 0 3px rgba(14,165,234,.15);
}
.ask-actions{ display:flex; gap:8px; justify-content:flex-end; margin-top:12px; }

*/
/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/*Boto like Q&A

.btn-like{
  border:0; cursor:pointer; border-radius:10px; padding:6px 10px;
  background:#eef6ff; color:#0a4a6b; font-weight:700;
}
.btn-like[aria-pressed="true"]{ background:#dff2ff; }
.btn-like:disabled{ opacity:.6; cursor:not-allowed; }


.answers{margin-top:10px}
.answer{background:#f9fcff;border-radius:10px;padding:8px 12px;margin-top:6px}
.reply-form.hidden{display:none}

*/



/* 
  #cx-circles{background:#fff;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.12);padding:18px;margin:20px 0}
  #cx-circles .cx-hd{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
  #cx-circles .cx-hd h2{margin:0;font:800 18px/1 Inter,system-ui,sans-serif;color:#0b1b2b}
  #cx-circles .cx-hd p{margin:0;color:#6b7a8c;font:14px/1.4 Inter,system-ui,sans-serif}

  #cx-circles .cx-scroller{
    display:flex !important;gap:18px !important;overflow-x:auto !important;
    padding:6px 2px 12px !important;scroll-snap-type:x mandatory !important;-webkit-overflow-scrolling:touch !important;
  }
  #cx-circles .cx-item{
    flex:0 0 140px !important;scroll-snap-align:center !important;
    display:flex !important;flex-direction:column !important;align-items:center !important;gap:10px !important;text-align:center !important;
  }

  #cx-circles .cx-avatar{
    width:120px;height:120px;border-radius:50%;padding:4px;
    background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#1e3a8a,#0ea5ea) border-box;
    border:4px solid transparent;box-shadow:0 12px 30px rgba(15,23,42,.16);
    display:grid;place-items:center;overflow:hidden;
  }
  #cx-circles .cx-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
  #cx-circles .cx-avatar .cx-label{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;background:#e6f6ff;color:#0b1b2b;font-weight:800}

  #cx-circles .cx-title{font-weight:800;font-size:14px;color:#0b1b2b;margin-top:6px}
  #cx-circles .cx-meta{color:#6b7a8c;font-size:12px}
  #cx-circles .cx-btn{border:0;border-radius:999px;padding:6px 10px;font-weight:800;cursor:pointer;background:#0ea5ea;color:#0b1b2b;box-shadow:0 6px 18px rgba(14,165,234,.25)}
  #cx-circles .cx-btn:hover{filter:brightness(1.05)}

  
  #cx-circles .cx-nav{display:flex;gap:8px}
  #cx-circles .cx-nav button{border:0;cursor:pointer;width:38px;height:38px;border-radius:999px;background:rgba(10,26,43,.08)}
  #cx-circles .cx-nav button:hover{background:rgba(10,26,43,.12)}

#cx-circles { grid-column: 1 / -1; }


.rc-hero{
  background:linear-gradient(135deg,#1e3a8a 0%,#0ea5ea 100%);
  color:#fff; padding:28px 16px;
  border-bottom-left-radius:20px; border-bottom-right-radius:20px;
}
.rc-hero .wrap{max-width:1100px;margin:0 auto}
.rc-hero h1{margin:0 0 8px}
.rc-hero p{margin:0;opacity:.95}


.c-hero{
  background:linear-gradient(135deg,#1e3a8a 0%,#0ea5ea 100%);
  color:#fff; padding:28px 16px;
  border-bottom-left-radius:20px; border-bottom-right-radius:20px;
}
.c-hero .wrap{max-width:1100px;margin:0 auto}
.c-hero h1{margin:0 0 8px}
.c-hero p{margin:0;opacity:.95}

#ofertes-publicades {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 768px) {
  #ofertes-publicades { grid-template-columns: 1fr; }
}

/* DEBUG opcional 5' — comenta-ho quan acabis
.tab-panel { display: block !important; }


*/

/* Selecciona qualsevol <li> dins d’un div amb id que comença per "candidatures-" 
[id^="candidatures-"] {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

[id^="candidatures-"] li {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  transition: transform .08s ease, box-shadow .12s ease;
  margin-bottom: 10px; 
}

[id^="candidatures-"] li:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

[id^="candidatures-"] li strong {
  font-weight: 600;
  color: #111;
}

[id^="candidatures-"] li .email {
  color: #4b5b6b;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,.15);
}
[id^="candidatures-"] li .email:hover {
  border-bottom-color: #4b5b6b;
}
*/
/*Desplegable candidatures panell escola

.cand-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border:1px solid #eee;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  margin-top:8px; 
}

.cand-toggle .section-title {
  font-weight: 700;
  font-size: 16px;
  color: #1a3c8c; 
}

.cand-toggle:hover {
  background: #f9fafb;
}

*/



/*


.rc-progress{background:#fff;border:1px solid #e6e8ec;border-radius:12px;padding:12px 14px;margin-bottom:12px;box-shadow:0 10px 30px rgba(15,23,42,.08)}
.rc-progress__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:14px;color:#374151}
.rc-progress__bar{position:relative;height:10px;background:#eef2f7;border-radius:999px;overflow:hidden}
.rc-progress__fill{position:absolute;left:0;top:0;bottom:0;width:0%;background:linear-gradient(90deg,#22c55e,#16a34a);border-radius:999px;transition:width .25s ease}
.rc-progress strong{font-variant-numeric:tabular-nums}

.rc-checklist{background:#fff;border:1px solid #e6e8ec;border-radius:12px;padding:16px;box-shadow:0 10px 30px rgba(15,23,42,.08);max-width:420px;font-size:14px}
.rc-checklist h3{margin:0 0 10px;font-size:16px}
.rc-checklist ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rc-checklist li{position:relative;padding-left:28px;line-height:1.35;color:#374151}
.rc-checklist li::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;border:2px solid #d1d5db;background:#fff}
.rc-checklist li[data-ok="true"]{color:#065f46}
.rc-checklist li[data-ok="true"]::before{background:#10b981;border-color:#10b981;box-shadow:inset 0 0 0 2px #fff}
.rc-checklist li[data-ok="true"]::after{content:"✓";position:absolute;left:3px;top:-1px;font-weight:700;color:#fff}


.pw-rules {
  list-style:none; margin:6px 0 12px; padding:0;
  font-size:13px; color:#6b7280;
}
.pw-rules li {
  padding-left:20px; position:relative; margin-bottom:4px;
}
.pw-rules li::before {
  content:""; position:absolute; left:0; top:4px;
  width:12px; height:12px; border:2px solid #d1d5db; border-radius:50%;
}
.pw-rules li[data-ok="true"] { color:#065f46; }
.pw-rules li[data-ok="true"]::before { background:#10b981; border-color:#10b981; }

.pw-msg { font-size:13px; color:#6b7280; display:block; margin-top:4px; }
.pw-msg.ok { color:#065f46; }
.pw-msg.error { color:#dc2626; }

.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  background: red;
  opacity: 0.8;
  animation: fall linear forwards;
  z-index: 9999;
}
@keyframes fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

*/




/* Fletxa amb animació 
.cand-toggle .chev{ transition: transform .25s ease; }
.cand-toggle[aria-expanded="true"] .chev{ transform: rotate(180deg); }

.cand-panel{
  overflow:hidden;
  max-height:0;
  transition:max-height .25s ease;
}

.candidatura-empty {
  background: #f9fafb; 
  border: 1px dashed #ddd;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  color: #6b7a8c;
  font-style: italic;
  box-shadow: none;
}


.cv-ok {
  background:#f3fbf6;
  border:1px solid #c9e7d9;
  color:#166534;
  font-weight:600;
  padding:4px 10px;
  border-radius:999px;
  font-size:13px;
}
.cv-pendent {
  background:#fff8e6;
  border:1px solid #f6d58b;
  color:#8a6d1f;
  font-weight:600;
  padding:4px 10px;
  border-radius:999px;
  font-size:13px;
}
.cv-blocat {
  background:#f4f6f8;
  border:1px solid #e5e7eb;
  color:#6b7280;
  font-weight:600;
  padding:4px 10px;
  border-radius:999px;
  font-size:13px;
}
.cv-desbloqueig {
  background:#fff;
  border:1px solid #d1d5db;
  padding:4px 10px;
  border-radius:8px;
  text-decoration:none;
}
.cv-desbloqueig:hover {
  background:#f9fafb;
}

.candidatura-date {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  background: #f4f6f8;
  border: 1px solid #e5e7eb;
  padding: 4px 8px;
  border-radius: 999px;
}

*/



/* ===== Marketplace Recursos (escopat) 
#recursos-scope {
  --rc-bg:#fff; --rc-fg:#0b1b2b; --rc-muted:#6b7a8c;
  --rc-line:#e5edf5; --rc-pill:#f1f5f9; --rc-chip-bg:#eef7ff; --rc-chip-fg:#0a4a6b;
  --rc-shadow:0 8px 24px rgba(12,74,110,.10); --rc-radius:16px;
}

#recursos-scope .rc-container{
  max-width:1100px; margin:24px auto; padding:0 16px;
  display:grid; grid-template-columns:260px 1fr; gap:22px;
}
@media (max-width:900px){ #recursos-scope .rc-container{ grid-template-columns:1fr; } }

#recursos-scope .rc-title{font:800 22px/1.2 system-ui,sans-serif;margin:0 0 6px}
#recursos-scope .rc-sub{color:var(--rc-muted);margin:0 0 18px}

#recursos-scope .rc-side .pill{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;border-radius:12px;background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.12);margin-bottom:10px
}

#recursos-scope .rc-grid{display:grid;gap:16px;grid-template-columns:repeat(2,1fr)}
@media (min-width:1100px){ #recursos-scope .rc-grid{grid-template-columns:repeat(3,1fr)} }

#recursos-scope .rc-card{
  background:var(--rc-bg); border:1px solid var(--rc-line);
  border-radius:calc(var(--rc-radius) + 4px); overflow:hidden;
  box-shadow:var(--rc-shadow); display:flex; flex-direction:column;
}
#recursos-scope .rc-card-media{position:relative;aspect-ratio:4/3;background:#e5eef6}
#recursos-scope .rc-card-media img{width:100%;height:100%;object-fit:cover;display:block}
#recursos-scope .rc-badges-top{position:absolute;left:12px;top:12px;display:flex;gap:8px;flex-wrap:wrap}
#recursos-scope .rc-price{
  position:absolute;right:12px;bottom:12px;padding:6px 10px;border-radius:999px;
  font-weight:800;background:#fff;border:1px solid var(--rc-line);color:var(--rc-fg)
}
#recursos-scope .rc-badge{
  font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;
  background:var(--rc-pill);color:var(--rc-fg);border:1px solid var(--rc-line)
}
#recursos-scope .rc-badge.dark{background:var(--rc-chip-bg);color:var(--rc-chip-fg);border-color:#cfe8ff}
#recursos-scope .rc-card-body{padding:14px 14px 8px}
#recursos-scope .rc-name{font-weight:800;color:var(--rc-fg);line-height:1.25;margin:6px 0}
#recursos-scope .rc-metarow{display:flex;gap:10px;align-items:center;color:var(--rc-muted);font-size:13px}
#recursos-scope .rc-stars{display:inline-flex;gap:2px}
#recursos-scope .rc-stars svg{width:14px;height:14px;fill:#0a4a6b;opacity:.95}
#recursos-scope .rc-nums{margin-left:auto;display:inline-flex;gap:6px;align-items:center}

#recursos-scope .rc-card-cta{display:flex;gap:8px;padding:12px 14px 16px}
#recursos-scope .btn-rc-primary{
  flex:1;text-align:center;background:#0b1b2b;color:#fff;border:0;border-radius:12px;
  padding:10px 12px;font-weight:800;cursor:pointer;transition:.15s ease transform, .15s ease filter
}
#recursos-scope .btn-rc-primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
#recursos-scope .btn-rc-ghost{
  flex:0 0 auto;padding:10px 12px;border-radius:12px;border:1px solid var(--rc-line);
  background:#fff;color:var(--rc-fg);cursor:pointer
}

#recursos-scope .rc-input,#recursos-scope .rc-select{
  height:40px;padding:8px 12px;border:1px solid var(--rc-line);border-radius:10px;background:#fff;color:var(--rc-fg)
}
#recursos-scope .rc-input::placeholder{color:#98a7b7}

#recursos-scope .rc-empty{
  padding:24px;border:1px dashed #cfe8ff;border-radius:12px;color:#6b7a8c;background:#fff
}
#recursos-scope .rc-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:16px}
#recursos-scope .rc-link{padding:8px 10px;border:1px solid var(--rc-line);border-radius:10px;background:#fff;color:var(--rc-fg);cursor:pointer}
#recursos-scope .rc-link:disabled{opacity:.45;cursor:not-allowed}

#recursos-scope dialog.rc-modal{
  width:min(800px,92vw);border:none;border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.3);padding:0
}
#recursos-scope .rc-modal header{padding:16px;border-bottom:1px solid var(--rc-line);display:flex;justify-content:space-between;align-items:center}
#recursos-scope .rc-modal .body{padding:16px}
#recursos-scope .rc-modal .body .cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:700px){ #recursos-scope .rc-modal .body .cols{grid-template-columns:1fr} }
#recursos-scope .rc-modal footer{padding:16px;border-top:1px solid var(--rc-line);display:flex;gap:8px;justify-content:flex-end}
#recursos-scope .rc-cover{aspect-ratio:4/3;border-radius:12px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;color:#6b7a8c}

#recursos-scope .subnav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.7);backdrop-filter:blur(10px);border-bottom:1px solid rgba(10,26,43,.08);box-shadow:0 6px 20px rgba(15,23,42,.08)}
#recursos-scope .subnav .wrap{max-width:1100px;margin:0 auto;padding:10px 20px;position:relative;display:flex;gap:8px}
#recursos-scope .tab-btn{border:0;cursor:pointer;padding:10px 16px;border-radius:12px;font-weight:700;background:transparent;color:var(--rc-fg)}
#recursos-scope .tab-btn:hover{background:#eef6ff}
#recursos-scope .tab-btn.is-active{color:#0a4a6b;background:#e6f6ff}
#recursos-scope .tab-indicator{position:absolute;bottom:0;height:3px;border-radius:3px;background:linear-gradient(135deg,#1e3a8a,#0ea5ea);width:0;left:0}
*/

/*Pioners

#mini-pioneres {
  background: #f6f7fb;              
  padding: 60px 0;
  border-top: 1px solid #e7e9f1;
}

.mini-pion__container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.mini-pion__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a237e;                    
  margin-bottom: 8px;
}

.mini-pion__header h2 span {
  background: linear-gradient(135deg, #a67c00, #d4af37);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mini-pion__subtitle {
  color: #555;
  margin-bottom: 28px;
}


.mini-pion__logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eceff6;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mini-pion__logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  width: 180px;          
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(212,175,55,0.15);
  padding: 8px;
  overflow: hidden;      
}


.logo-placeholder {
  color: #999;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .1em;
}

.mini-pion__logos img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;   
  transition: transform .2s ease, filter .2s ease;
}

.mini-pion__logos img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}


@media (max-width: 1024px) {
  .mini-pion__logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .mini-pion__logos li {
    height: 110px;
  }
  .mini-pion__logos img {
    max-height: 70px;
    max-width: 180px;
  }
}

@media (max-width: 600px) {
  .mini-pion__logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .mini-pion__logos li {
    height: 100px;
  }
  .mini-pion__logos img {
    max-height: 60px;
    max-width: 160px;
  }
}

*/

/*Estils modal docent v2

.mdocent.hidden { display: none; }
.mdocent { position: fixed; inset: 0; z-index: 1000; }
.mdocent__overlay { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); backdrop-filter: blur(2px); }
.mdocent__panel { position: relative; margin: 6vh auto; max-width: 520px; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 20px; }
.mdocent__close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: #475569; }
.mdocent__header { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.mdocent__avatar { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; border: 2px solid #e5e7eb; }
.mdocent__nom { margin: 0; font-size: 1.25rem; color: #111827; }
.mdocent__meta { font-size: .9rem; color: #6b7280; display: flex; gap: 8px; align-items: center; }
.mdocent__bio { color: #374151; font-size: .98rem; }
.mdocent__actions { margin-top: 14px; display: flex; gap: 10px; }
.btn { appearance: none; border: 0; padding: 10px 16px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.btn--gold { background: linear-gradient(135deg, #a67c00, #d4af37); color: #1f2937; }
.btn--gold:hover { filter: brightness(1.05); }
.btn--outline { background: #fff; border: 1px solid #e5e7eb; color: #374151; }
.author-link { text-decoration: none !important; color: inherit !important; display: inline-flex; align-items: center; gap: 6px; }
.author-link:hover { text-decoration: underline !important; text-decoration-color: #d4af37 !important; color: #d4af37 !important; }



.user-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
}

.stat-item {
  text-align: center;
}

.stat-item b {
  font-size: 1.2rem;
  color: #1a237e; 
}



.btn--unfollow:hover {
  background: #dc2626;   
  color: #fff;
  border-color: #dc2626;
}

*/



/* 🔹 Enllaç autor (preguntes i respostes) 
.author-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.author-link span,
.author-link b {
  text-decoration: none;
  color: inherit;
}

.author-link:hover,
.author-link:hover span,
.author-link:hover b {
  color: #d4af37;                
  text-decoration: underline;    
  text-decoration-color: #d4af37;
}

.author-link img {
  border-radius: 50%;
  transition: box-shadow 0.2s ease;
}

.author-link:hover img {
  box-shadow: 0 0 0 2px #d4af37; 
}

*/

/* === SECCIÓ 1: RESET + VARIABLES GLOVALS === */

/* 
html, body {
  margin: 0;
  padding: 0;
  height: 100%;         
  overflow: hidden;     
}


#preloader {
  position: fixed;
  inset: 0;            
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overscroll-behavior: contain; 
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.logo-preload {
  width: 140px;     
  max-width: 140px; 
  height: auto;
  margin: 0 auto 24px auto;
  display: block;
}


.progress-bar {
  width: 200px;
  max-width: 70%;
  height: 8px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 auto;
}

.progress {
  width: 0%;
  height: 100%;
  background: #d4af37; 
  animation: fillProgress 4s forwards;
}

@keyframes fillProgress {
  from { width: 0%; }
  to   { width: 100%; }
}


@media (max-width: 768px) {
  .logo-preload {
    width: 130px;
    max-width: 130px;
    margin-bottom: 20px;
  }

  .progress-bar {
    width: 180px;
    height: 7px;
  }
}

@media (max-width: 480px) {
  .logo-preload {
    width: 110px;
    max-width: 110px;
  }

  .progress-bar {
    width: 150px;
    height: 6px;
  }
}

*/

/* 🎁 Regal del mes — estil pestanya vertical 
.regal-mes {
  max-width: 650px;
  margin: 2rem auto;
  font-family: 'Poppins', sans-serif;
}

.regal-mes::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 1.8rem;
  background: linear-gradient(90deg, rgba(212,175,55,0.4), rgba(26,35,126,0.3));
  border-radius: 2px;
}


.banner-regal-compacte {
  background: linear-gradient(90deg, #fff8e1, #f5d76e);
  border: 2px solid #e2c044;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 1rem 1.2rem;
  text-align: center;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: background 0.3s, transform 0.2s;
}
.banner-regal-compacte:hover {
  background: linear-gradient(90deg, #fff3b0, #f5c84e);
}
.banner-regal-compacte .arrow {
  display: inline-block;
  margin-left: .5rem;
  font-size: 0.9rem;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #555;
}
.banner-regal-compacte.open .arrow {
  transform: rotate(180deg);
  color: #1a237e;
}


.banner-regal-desplegat {
  display: none;
  border: 2px solid #e2c044;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fffef7;
  padding: 1.5rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  text-align: center;
  animation: fadeIn .35s ease both;
}
.banner-regal-desplegat.show {
  display: block;
}

.banner-regal-desplegat .regal-img {
  width: 90px;
  height: auto;
  margin: 0.5rem 0 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.banner-regal-desplegat p {
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.6;
  margin-bottom: 1rem;
}




.banner-regal-desplegat .btn--primary {
  background: linear-gradient(90deg, #1a237e, #3f51b5);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 28px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26,35,126,0.25);
  transition: all 0.25s ease;
}
.banner-regal-desplegat .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,35,126,0.35);
}

.banner-regal-desplegat .tooltip {
  position: relative;
  cursor: help;
  display: inline-block;
}

.banner-regal-desplegat .tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 140%; 
  left: 50%;
  transform: translateX(-50%);
  background: #faf8ed;
  color: #1a237e;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
  white-space: normal;      
  width: max-content;       
  max-width: 240px;         
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  word-break: normal;
}

.banner-regal-desplegat .tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(6px);
}

.banner-regal-desplegat .tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #faf8ed transparent;
}

@media (max-width: 600px) {
  .banner-regal-desplegat .tooltip .tooltiptext {
    max-width: 80vw;
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .regal-mes { width: 95%; }
  .banner-regal-compacte { font-size: .95rem; padding: .9rem; }
  .banner-regal-desplegat { padding: 1.1rem; }
  .banner-regal-desplegat .regal-img { width: 75px; }
}

*/




/* 
.shop-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: .6rem;
  transition: opacity .2s, filter .2s;
  margin-top: 2rem; 
}


.shop-link svg {
  width: 22px;
  height: 22px;
}

.shop-link.disabled {
  pointer-events: auto;
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(100%);
  position: relative; 
}

.shop-link.disabled:hover {
  opacity: .7;
}

.shop-link .shop-text {
  font-weight: 600;
}


.shop-link.disabled::after {
  content: "Aviat";
  position: absolute;
  bottom: -2.1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: .75rem;
  padding: .25rem .45rem;
  border-radius: .35rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.shop-link.disabled:hover::after {
  opacity: 1;
}


/*inside shop*/
/* ========================= 
/* 🎨 ESTILS EXCLUSIUS BOTIGA 
/* ========================= 



body.botiga-page {
  background: radial-gradient(circle at top, #fffef9, #fffaf2 70%);
  font-family: "Inter", system-ui, sans-serif;
  color: #222;
}



.botiga-page header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  border-bottom: 2px solid #f2e2a2;
  background: #fffdf8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.botiga-page .brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: #1a237e;
  text-decoration: none;
}

.botiga-page .brand img {
  width: 32px;
  height: 32px;
}

.botiga-page .pill {
  background: #fff7d1;
  border: 1px solid #e2c044aa;
  border-radius: 999px;
  padding: .4em 1em;
  font-size: .9rem;
  font-weight: 600;
  color: #775c00;
}

.botiga-page .hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg,#fffaf2 0%,#fff6e5 100%);
}

.botiga-page .hero h1 {
  font-family: "Playfair Display", serif;
  color: #2b4c7e;
  font-size: clamp(1.8rem, 2.2vw + 1rem, 2.8rem);
  margin-bottom: .8rem;
}

.botiga-page .hero .lead {
  font-size: 1.15rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 1.2rem;
  line-height: 1.6;
}

.botiga-page .hero .soon {
  font-weight: 600;
  color: #b8932f;
  margin-bottom: 1.5rem;
}


.botiga-page .btn {
  display: inline-block;
  border-radius: 999px;
  padding: .7em 1.4em;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}

.botiga-page .btn.gold {
  background: linear-gradient(90deg,#e2c044,#f6d767);
  color: #222;
  box-shadow: 0 4px 10px rgba(226,192,68,0.25);
}

.botiga-page .btn.gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.botiga-page .btn.ghost {
  border: 2px solid #e2c044;
  color: #444;
  background: #fffaf2;
}

.botiga-page .btn.ghost:hover {
  background: #fff5c8;
  color: #222;
}

.botiga-page .grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.botiga-page .card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.botiga-page .card:hover {
  transform: translateY(-3px);
}

.botiga-page .ph {
  background: #f9f9f9;
  aspect-ratio: 1/1;
}



.botiga-page .body {
  padding: 1rem;
}

.botiga-page .skeleton {
  height: 12px;
  background: linear-gradient(90deg,#f1f1f1,#f7f7f7,#f1f1f1);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.5s infinite;
}

.botiga-page .skeleton.w60 { width: 60%; margin-top: .4rem; }
.botiga-page .skeleton.w40 { width: 40%; margin-top: .4rem; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}




.botiga-page footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #f2e2a2;
  background: #fffdf8;
}

*/



/* --- Botó Comunitat v2.0  index i perfil--- 
.new-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, #0ea5ea, #5fddff);
  color: #0b1b2b;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(14,165,234,.35);
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  white-space: nowrap; /*  impedeix que faci salt de línia 
  transition: all .25s ease;
}

.new-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,165,234,.45);
}

.new-badge-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b1b2b;
}

.new-badge-btn .label {
  background: #fff;
  color: #0b1b2b;
  border-radius: 6px;
  padding: .05rem .35rem;
  font-size: .7rem;
}

/* --- Versió mòbil centrada (millorada) --- 
@media (max-width: 768px) {
  .new-badge-btn {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;                
    margin: 0;                  
    padding: .45rem .95rem;
    font-size: .85rem;
    gap: .4rem;
    box-shadow: 0 4px 15px rgba(14,165,234,.3);
    z-index: 9999;
  }

  .new-badge-btn:hover {
    transform: translate(-50%, -2px);
  }
}

*/


/* === SECCIÓ 1: RESET + VARIABLES GLOVALS === */

/* 🧱 Fix global per eliminar scroll lateral en mòbil 
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;   
  overscroll-behavior-x: none;     
  position: relative;
  margin: 0;
  padding: 0;
}

*/

/* 🧩 Assegura que cap element intern superi l’amplada del viewport 
*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100vw;  
}

*/

/* 📱 Carrusel automàtic d'una sola opinió per mòbil (centrat i polit) 
@media (max-width: 600px) {

  .carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 1rem 0 2rem;
  }

  .opinio-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    padding: 1.1rem 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .opinio-card.active {
    opacity: 1;
    transform: scale(1);
    margin: 0 auto; 
  }

  .opinio-card.exit-left {
    opacity: 0;
    transform: translateX(-150%) scale(0.96);
  }

  h2, .opinions-section h2 {
    font-size: 1.3rem;
    text-align: center;
    margin: 0 auto 1rem;
    line-height: 1.3;
    width: 90%;
  }

  .opinio-card .stars {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: inline-block;
  }
}

*/

/* 📱 Secció Escoles Pioneres — 5 files × 2 logos, mida optimitzada 
@media (max-width: 600px) {
  .mini-pion__logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(5, auto);   
    justify-items: center;
    align-items: center;
    gap: 16px 12px;                        
    padding: 1rem 0 2rem;
    max-width: 100%;
    overflow: hidden;                      
  }

  .mini-pion__logos li {
    list-style: none;
    width: 135px;                         
    height: 135px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
  }

  .mini-pion__logos img {
    width: 88%;                           
    height: 88%;
    object-fit: contain;
  }

  .mini-pion__header h2 {
    text-align: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }
}

*/

/* 🧩 Solució: assegura que la imatge no aparegui mai mentre el preloader és visible 
#preloader:not(.hidden) ~ * .banner-regal .regal-img {
  visibility: hidden;
}

*/

/* --- FILTRES MÒBIL 
.btn-filtres-mobil {
  display: none;
  background: linear-gradient(90deg, #1a237e, #3f51b5);
  color: #fff;
  border: none;
  padding: .8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 1rem auto;
  width: 90%;
  max-width: 400px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,35,126,0.25);
}


.modal-filtres {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-filtres.show {
  display: flex;
}

.modal-filtres-content {
  background: #fffef7;
  padding: 1.5rem;
  border-radius: 12px;
  width: 92%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  position: relative;
}

.tancar-filtres {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 0.85rem;   
  font-weight: 500;
  color: #333;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.tancar-filtres:hover {
  opacity: 1;
  transform: scale(1.05); 
}


@media (max-width: 768px) {
  .btn-filtres-mobil { display: block; }
  .filters { display: none !important; } 
}

.modal-filtres.show .filters {
  display: block !important;
}

*/

/* ✨ Separador suau entre seccions 
.seccio-divider {
  height: 4px;
  width: 90%;
  margin: 2.5rem auto 2rem;
  border-radius: 50px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(226,192,68,0.4),
    rgba(226,192,68,0.8),
    rgba(226,192,68,0.4),
    transparent
  );
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

*/

/* === SECCIÓ 1: RESET + VARIABLES GLOVALS === */


/* 🔒 Evita que es vegi el contingut sota el preloader 
body.loading {
  overflow: hidden;
  height: 100vh;
}

.video-container video {
  min-height: 300px;
  background: #0b1b2b;
}

.badge-external {
  display: inline-block;
  background-color: #1e3a8a;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

*/

/* ========================================= */
/* === SECCIÓ 3: COMPONENTS PRINCIPALS === */
/* ========================================= */

/*
.btn-external {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-external:hover {
  background: #1e40af;
}

*/

/* ✅ Correcció de l’ordre visual a mòbil (iOS + Android) 
@media (max-width: 768px) {
  .ofertes-layout .job-listings {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }

  .job-item {
    order: initial !important; 
  }
}

*/



