/********************** SINGLE-NOTICIES **************************************************/

body {
  background-color: #fff !important;
}

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

#primary {
  max-width: 1200px;
  margin: 25px auto;
  padding: 40px 20px;
  background-color: #f7f7f7;
}

#secondary {
  max-width: 1200px;
  margin: 25px auto;
  padding: 40px 20px;
  background-color: #dae8ef;
  display: flow-root;
}

.noticia-header {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.noticia-imatge-container {
  flex: 0 0 300px;
}

.noticia-imatge {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.noticia-titol-container {
  flex: 1;
  text-align: center;
}

.entry-header .entry-title {
  font-size: 2.5em;
  color: #5c99bd;
  margin-bottom: 15px;
  font-weight: bolder;
}

.noticia-metadades {
  display: flex;
  gap: 20px;
  margin-left: 110px;
  font-size: 1.2em;
  color: #555;
  font-weight: 600;
}

.noticia-metadada {
  background-color: #e9f2f7;
  padding: 5px 10px;
  border-radius: 4px;
}

.media-section {
  padding: 30px;
}

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

.noticia-tabs .tab {
  padding: 10px 25px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background-color: #f5f5f5;
  color: #5c99bd;
  text-transform: uppercase;
}

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

.contingut-section {
  font-family: "Muli", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  padding: 20px;
}

.noticia-contingut {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 30px;
  line-height: 1.6;
  color: #333;
}

.noticia-contingut p {
  margin-bottom: 1.5em;
}

.noticia-investigadors {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 30px;
}

.investigadors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.investigador {
  text-align: center;
  width: 120px;
}

.investigador-imatge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  background-color: #f0f0f0;
}

.investigador-imatge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.investigador-sense-imatge {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9f2f7;
}

.investigador-sense-imatge .inicials {
  font-size: 2em;
  color: #5c99bd;
  font-weight: bold;
}

.investigador-nom {
  font-family: "Muli", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: #66a1bc;
}

.investigador-nom a {
  color: inherit;
  text-decoration: none;
}

.noticia-text-investigadors {
  line-height: 1.6;
}

/* Estils per a la secció de publicacions i noticies */
.projectes-investigador {
  position: relative;
  width: 100%;
  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;
}

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

.boto-tornar {
  position: relative;
  width: 100%;
  margin: 10px 0 20px 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;
}

/************************************* RESPONSIVE MOBILE ************************************************************/
@media (max-width: 768px) {
  .noticia-titol-container {
    text-align: center;
    align-items: center;
  }

  .entry-header .entry-title {
    font-size: 1.7em;
  }

  .noticia-metadades {
    justify-content: center;
  }

  .noticia-contingut {
    padding: 25px 15px;
  }

  .noticia-tabs .tab {
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  .llista-projectes {
    flex-direction: column;
    align-items: center;
  }

  .projecte {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .titol-projectes {
    text-align: center;
    font-size: 18px;
    margin-left: 0;
  }

  .boto-tornar {
    flex-direction: column;
  }
}
