/******************************************** SINGLE PROJECTE ******************************************/

body {
  background-color: #fff !important;
}
#primary {
  max-width: 1200px;
  margin: 25px auto;
  padding: 20px;
  background-color: #f7f7f7;
}

.entry-header {
  /* margin-bottom: 40px; */
  display: flex;
  flex-direction: row;
}

.project-logo {
  max-width: 300px;
  display: flex;
  gap: 20px 35px;
  margin-bottom: 35px;
}

.imatge-projecte {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Opcional: per a vores arrodonides */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Opcional: per a una ombra subtil */
}

.logo {
  position: relative;
  left: 10px;
  top: 30px;
}

.text-logo {
  position: relative;
  top: 25px;
  flex-direction: column;
  align-items: center;
}

.entry-header .entry-title {
  font-size: 3em;
  color: #5c99bd;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bolder;
  text-decoration: underline;
  width: 600px;
}

.entry-header .entry-subtitle {
  font-size: 2.5em;
  color: #5c99bd;
  margin-bottom: 20px;
  font-weight: bold;
  width: 800px;
}

.separador {
  position: relative;
  width: 1200px;
  height: 35px;
  background-color: white;
  left: -20px;
  margin-bottom: 25px;
}

.project-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background-color: #f5f5f5;
}

.tab.active {
  background-color: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

.project-meta {
  background-color: #f9f9f9;
  padding: 15px;
  border-left: 4px solid #5c99bd;
  margin: 30px 0;
}

.project-meta p {
  margin: 5px 0;
  font-size: 1.1em;
  color: #555;
}

.project-meta strong {
  color: #333;
}

.project-details {
  margin-top: 20px;
}

.project-section {
  margin-bottom: 30px;
}

.project-section h2 {
  font-size: 1.8em;
  color: #5c99bd;
  margin-bottom: 10px;
}

.project-section p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}
/* Secció resum */
.resum {
  background-color: #fff;
  border: 1px solid #ddd;
  margin-top: -30px;
  padding: 25px;
}
/* Secció investigadors */
/* Estils  tabs */
.investigadors-tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
}

.investigadors {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 25px;
  margin-top: -1px;
}

.tab-button {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  margin-right: 5px;
  background-color: #f7f7f7;
}

.tab-button.active {
  background-color: #fff;
  border-bottom: 1px solid #fff;
  font-weight: 600;
}

.tab-content {
  display: none;
  /* padding: 20px; */
  border: 1px solid #ccc;
  border-top: none;
}

.tab-content.active {
  display: block;
}

/* Estils per a la llista d'investigadors */
.investigadors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #fff;
  padding: 20px;
}

/* Estils per a cada investigador */
.investigador {
  text-align: center;
  width: 150px;
}

/* Estils per a la imatge de l'investigador */
.investigador-imatge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  margin-top: 10px;
  margin-left: 15%;
}

/* Estils per al nom de l'investigador */
.investigador-nom {
  font-family: "Muli", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: #66a1bc !important;
}

/* Secció informació */
.informacio {
  background-color: #fff;
  border: 1px solid #ddd;
  margin-top: -30px;
  padding: 25px;
}

/* Estils per al contenidor del botó */
.project-button-container {
  margin-top: 30px;
  text-align: center;
}

/* Estils per al botó */
.project-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.contenidor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contenidor-publicacions {
  max-width: 1200px;
  margin: 0 auto;
}

/* Estils per a la secció de publicacions i noticies */
.projectes-investigador {
  position: relative;
  width: 100%;
  margin-top: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}
.titol-projectes {
  font-family: "Muli", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  color: #66a1bc;
  margin-top: 10px;
  margin-left: 25px;
  margin-bottom: 10px;
}

.llista-projectes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.projecte {
  width: 285px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: 15px;
}
.projecte:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.imatge-projecte {
  text-align: center;
  max-width: 250px;
  height: auto;
  margin: 16px;
}
.image_project {
  display: inline-block;
}

.info-projecte {
  padding: 15px;
}

.titol-projecte a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

.titol-projecte a:hover {
  text-decoration: underline;
}

.investigador-thumbnail {
  border-radius: 50%;
}

.boto-investigador {
  position: relative;
  width: 100%;
  margin: 40px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tornar {
  padding: 10px 20px;
  background-color: #ffffff;
  color: #66a1bc;
  text-decoration: none;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 800;
}

.contenidor-publicacions-relacionades {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f7f7f7;
  padding: 25px;
}

.contenidor-noticies-relacionades {
  max-width: 1200px;
  margin: 25px auto 0;
  background-color: #f7f7f7;
  padding: 25px;
}

#no-inves,
#no-altres {
  background-color: #fff;
  padding: 25px;
}

/****************************************RESPONSIVE MOBILE *****************************************/
@media (max-width: 768px) {
  /* Contenidor principal */
  #primary {
    padding: 15px;
  }

  /* Encabezats */
  .entry-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .entry-header .entry-title {
    font-size: 1.8rem;
    width: 100%;
    text-align: left;
  }

  .entry-header .entry-subtitle {
    font-size: 1.3rem;
    width: 100%;
    text-align: left;
  }

  .separador {
    width: 100%;
    left: 0;
    height: 20px;
    margin-bottom: 20px;
  }

  /* Imatge del projecte */
  .project-logo {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .imatge-projecte {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .logo,
  .text-logo {
    position: static;
    top: auto;
    left: auto;
    text-align: center;
  }

  /* Pestanyes */
  .project-tabs {
    flex-direction: column;
  }

  .tab {
    width: 100%;
  }

  /* Informació del projecte */
  .project-meta p {
    font-size: 1rem;
  }

  .project-section h2 {
    font-size: 1.4rem;
  }

  .project-section p {
    font-size: 1rem;
  }

  .resum,
  .informacio {
    padding: 15px;
  }

  /* Investigadors */
  .investigadors-tabs {
    flex-direction: column;
    gap: 5px;
  }

  .tab-button {
    width: 100%;
  }

  .investigadors-list {
    justify-content: center;
  }

  .investigador {
    width: 45%;
  }

  .investigador-imatge {
    margin-left: auto;
    margin-right: auto;
  }

  .investigador-nom {
    font-size: 0.95rem;
  }

  /* Botó */
  .project-button {
    font-size: 1rem;
    padding: 10px 15px;
  }

  /* Publicacions / projectes relacionats */
  .llista-projectes {
    flex-direction: column;
    gap: 15px;
  }

  .projecte {
    width: 100%;
    margin-left: 0;
  }

  .titol-projectes {
    font-size: 1.5rem;
    margin-left: 0;
  }

  .boto-investigador {
    padding: 15px;
  }

  .tornar {
    font-size: 1rem;
    padding: 8px 16px;
  }

  .tab,
  .tab-button {
    text-align: left;
  }
}
