/************************************* LLISTAT PUBLICACIONS ************************************************************/

/* Estils per als projectes */
.publicacions-container {
  max-width: 1200px;
  margin: 35px auto;
  background-color: #f9f9f9;
  padding: 2rem 1rem;
}

.publicacions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4rem;
  padding: 1rem 10px;
}

/* Estils per a les cards */
.publicacio-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.publicacio-card:hover .projecte-imatge {
  transform: scale(1.05);
}

.publicacio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.publicacio-imatge {
  height: 200px;
  overflow: hidden;
}

.publicacio-imatge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.publicacio-card:hover .publicacio-imatge img {
  transform: scale(1.05);
}

.publicacio-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.publicacio-header {
  margin-bottom: 1rem;
}

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

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

.publicacio-autors {
  color: #66a1bc;
}

/************************************* RESPONSIVE TABLET ************************************************************/

/************************************* RESPONSIVE MOBILE ************************************************************/
@media (max-width: 768px) {
  .publicacions-grid {
    grid-template-columns: 1fr;
  }

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