
/* ===================== */
/* LAYOUT DE NOTÍCIES */
/* ===================== */

.Introduccio1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.Apartat {
    background-color: #fff;
    border: 2px solid #a7b8cb;
    border-radius: 12px;
    width: calc(30% - 2rem); /* 🔥 3 per fila amb separació */
    min-width: 280px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;

}

/* Bloc intern amb imatge + dades al costat */
.bloc-noticia {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    flex-wrap: nowrap;
    text-align: left;
}

.noticia-img img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}
.noticia-dades {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end; /* 🔥 Alinea el contingut a la dreta */
    flex: 1;
}

.dades-superior {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* 🔥 Botó cap a la dreta */
    margin-bottom: 0.25rem;
}

.dades-inferior {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 🔥 Data i secció a l'esquerra */
    padding-left: 0.2rem;
}

.btn-veure {
    background-color: #003366;
    color: white;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    max-width: 80px;
    min-height: 45px; /* 🔥 Fa que tingui prou alçada */
}







/* ejemplo boton */
.noticia-dades .btn-veure:hover {
    background-color: #030350;
}

.noticia-data, .noticia-seccio {
    margin: 0;
    font-size: 0.7rem;
    color: #333;
    font-weight: 500;
}
.noticia-data {
    margin-top: 2.5rem;

}
.noticia-seccio{
    margin-top: 0.2rem;

}

/* Títol centrat a sota */
.noticia-titol {
    margin-top: 1rem;
    width: 100%;
}

.noticia-titol h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #003366;
    font-weight: 600;
}



.nav-publica a.active {
    color: #fcfcfb; /* groc */
    background-color: transparent; /* per si hereta fons */
}
.acces-noticiesAntigues {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Estil extra només per al botó d'antigues */
.btn-antigues {
    border: 2px solid #003366;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
    padding: 0.6rem 1rem;
    min-height: 50px;
    font-size: 0.95rem;
    max-width: none;
}

.titol-noticies {
    color: #003366;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.titol-noticies {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

