/* === Grille principale === */
.netcare-news-archive-grid {
	  max-width: none !important;
  width: 100% !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* === Carte === */
.netcare-news-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.netcare-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* === Image === */
.netcare-news-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* === Corps du texte === */
.netcare-news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.4rem 1.6rem;
}

.netcare-news-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.netcare-news-title a {
    color: var(--wp--preset--color--foreground, #0b3d2e);
    text-decoration: none;
}

.netcare-news-title a:hover {
    text-decoration: underline;
}

.netcare-news-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.8rem;
}

.netcare-news-excerpt {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* === Pied de carte === */
.netcare-news-footer {
    margin-top: auto;
    text-align: right;
}

/* === Boutons et recherche === */
.netcare-search {
    text-align: center;
    margin-bottom: 2rem;
}

.netcare-search input[type="search"] {
    padding: 0.6em 0.8em;
    width: 60%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.netcare-search .wp-element-button {
    margin-left: 0.6em;
    padding: 0.6em 1.2em;
}

/* === Pagination === */
.netcare-news-pagination {
    margin-top: 3rem;
    text-align: center;
}

/* === Responsive === */
@media (max-width: 600px) {
    .netcare-news-archive-grid {
        grid-template-columns: 1fr;
    }
    .netcare-search input[type="search"] {
        width: 85%;
        margin-bottom: 0.6em;
    }
}
