/* Zekin News Feed Styles */
.zekin-news-feed {
    width: 100%;
    padding: 20px 0;
}

.zekin-news-grid {
    display: grid;
    gap: 30px;
    margin: 0 auto;
}

.zekin-news-grid.zekin-cols-1 {
    grid-template-columns: 1fr;
}

.zekin-news-grid.zekin-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.zekin-news-grid.zekin-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.zekin-news-grid.zekin-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive */
@media (max-width: 992px) {
    .zekin-news-grid.zekin-cols-3,
    .zekin-news-grid.zekin-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .zekin-news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* Card Styles */
.zekin-news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px; /* Hauteur fixe pour uniformité */
}

.zekin-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.zekin-news-image {
    position: relative;
    width: 100%;
    height: 250px; /* Hauteur fixe */
    min-height: 250px; /* Hauteur minimale fixe */
    max-height: 250px; /* Hauteur maximale fixe */
    overflow: hidden;
    flex-shrink: 0; /* Empêche la compression */
}

.zekin-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image pour remplir */
    object-position: center; /* Centre l'image */
    display: block;
    transition: transform 0.3s ease;
}

.zekin-news-card:hover .zekin-news-image img {
    transform: scale(1.05);
}

/* Badge/Category */
.zekin-news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(128, 128, 128, 0.9);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content */
.zekin-news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.zekin-news-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #333;
    height: 56px; /* Hauteur fixe pour 2 lignes */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limite à 2 lignes */
    -webkit-box-orient: vertical;
}

.zekin-news-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.zekin-news-link:hover {
    color: #0052a3;
    text-decoration: none;
}

/* Meta Info */
.zekin-news-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.zekin-news-date {
    color: #666;
}

.zekin-news-separator {
    margin: 0 8px;
}

.zekin-news-comments {
    color: #999;
}

/* Loading State */
.zekin-news-feed.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.zekin-news-feed p {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px 20px;
}
