/********************** LLISTAT-NOTICIES **************************************************/
/* Estils per al header + buscador */
.row-blog {
  display: flex;
}
.columna {
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 1rem;
  height: 100px;
}
.titol-blog {
  color: #66a1bc;
  font-weight: 500;
  font-family: "Muli", sans-serif;
  margin: 15px 30px;
  text-transform: uppercase;
}
.titol-container-blog {
  padding: 0rem;
  max-width: 1200px;
  margin: 35px auto;
  background-color: #f9f9f9;
}
.search-form {
  text-align: right;
  border: none;
  margin: 15px 35px;
}
.search-field {
  font-size: 20px;
  font-weight: 500;
  padding: 5px;
  color: #66a1bc !important;
  border: none;
}
.search-submit {
  border: none;
  font-size: 20px;
  color: rgba(61, 61, 61, 0.56) !important;
  cursor: pointer;
  width: 50px;
  height: 40px;
}
@media (max-width: 768px) {
  .titol-container .row > div {
    text-align: center !important;
    margin-bottom: 15px;
  }
  .search-form {
    margin: 0 auto;
  }
}

/* Estils per als filtres */

/* Estils per a les notícies */
.noticies-container {
  max-width: 1200px;
  margin: 35px auto;
  background-color: #f9f9f9;
  padding: 2rem 1rem;
}

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

/* Estils per a les cards de notícies */
.noticia-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%;
}

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

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

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

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

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

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

.noticia-titol {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.noticia-titol a {
  color: inherit;
  text-decoration: none;
}

.noticia-titol a:hover {
  color: #66a1bc;
}

.noticia-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #555;
  font-weight: 600;
}

.noticia-meta span {
  background-color: #e9f2f7;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.noticia-autors,
.noticia-projectes {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #66a1bc;
}

.noticia-autors strong,
.noticia-projectes strong {
  color: #333;
}

.noticia-resum {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.noticia-enllac {
  margin-top: auto;
}

.btn-veure-mes {
  display: inline-block;
  padding: 8px 16px;
  background-color: #66a1bc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-veure-mes:hover {
  background-color: #4a87a3;
}

/* Estils per als tipus de notícies */
.noticia-tipus.activitats-audiovisuals.mitjans.premis.reflexions-analisi.estades-recerca.convocatories {
  background-color: #e1f3f8;
  color: #0077b6;
}

/* Missatge quan no hi ha resultats */
.sense-resultats,
.sense-resultats-filtres {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  padding: 2rem;
  grid-column: 1 / -1;
}
/************************************* RESPONSIVE TABLET ************************************************************/

/************************************* RESPONSIVE MOBILE ************************************************************/
@media (max-width: 768px) {
  .row-blog {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .columna {
    flex: 0 0 100%;
    padding: 0.5rem;
    height: auto;
  }

  .titol-blog {
    margin: 10px 0;
    font-size: 1.2rem;
  }

  .search-form {
    text-align: center;
    margin: 0 auto;
  }

  .search-field {
    width: 80%;
    font-size: 1rem;
  }

  .search-submit {
    width: auto;
    height: auto;
    font-size: 1.2rem;
  }

  .noticies-grid {
    grid-template-columns: 1fr;
  }

  .noticia-imatge {
    height: 180px;
  }

  .noticia-meta {
    flex-direction: column;
    gap: 8px;
  }

  .btn-veure-mes {
    font-size: 0.95rem;
    padding: 8px 12px;
    width: 100%;
    text-align: center;
  }
}
