/* Single publicacions seleccionades Template Styles */

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

.publicacio-header {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.publicacio-imatge {
  max-width: 300px;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.publicacio-imatge img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.publicacio-titol {
  flex: 1;
}

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

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

.publicacio-metadades span {
  background-color: #e9f2f7;
  padding: 5px 10px;
  border-radius: 4px;
}

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

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

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

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

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

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

.publicacio-section p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}

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

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

/* Secció autors */
.autors-tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
}

.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;
  border: 1px solid #ccc;
  border-top: none;
}

.tab-content.active {
  display: block;
  /* background-color: #fff;
  padding: 25px; */
}

/* 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: 0 auto 10px;
  overflow: hidden;
}

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

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

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

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

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

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

/* Estils per als altres autors */
.altres-autors {
  background-color: #fff;
  padding: 25px;
  border: 1px solid #ddd;
  margin-top: -1px;
}

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

/* Estils per al botó */
.publicacio-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #5c99bd;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.publicacio-button:hover {
  background-color: #4a7d9b;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .publicacio-header {
    flex-direction: column;
  }

  .publicacio-imatge {
    max-width: 100%;
    margin-bottom: 20px;
  }

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

  .publicacio-metadades {
    flex-direction: column;
    gap: 10px;
  }

  .investigador {
    width: 120px;
  }

  .investigador-imatge {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .autors-tabs {
    flex-direction: column;
  }

  .tab-button {
    margin-right: 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #ccc;
  }

  .investigador {
    width: 100px;
  }
}
