/**
 * Entdeckerweine — News / Blog Grid
 */

/* ---- Section ---- */
.ew-news-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.ew-news-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ew-dark, #2d0007);
    text-align: center;
    margin: 0 0 0.5rem;
}

.ew-news-heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--ew-wine, #8A121F);
    margin: 0.75rem auto 2rem;
    border-radius: 2px;
}

.ew-news-grid {
    display: grid;
    gap: 24px;
}

.ew-news-columns-1 { grid-template-columns: 1fr; }
.ew-news-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ew-news-columns-3 { grid-template-columns: repeat(3, 1fr); }
.ew-news-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Card ---- */
.ew-news-card {
    background: var(--ew-bg-white, #fff);
    border: 1.5px solid var(--ew-border, #e0e0e0);
    border-radius: var(--ew-radius, 12px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ew-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--ew-wine-light, #f9eaeb);
}

/* Image */
.ew-news-card__image-link {
    display: block;
    text-decoration: none;
}

.ew-news-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ew-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ew-news-card:hover .ew-news-card__image img {
    transform: scale(1.05);
}

/* Content */
.ew-news-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ew-news-card__date {
    font-size: 0.8rem;
    color: var(--ew-text-muted, #666);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ew-news-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.ew-news-card__title a {
    color: var(--ew-text, #333);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ew-news-card__title a:hover {
    color: var(--ew-wine, #8A121F);
}

.ew-news-card__excerpt {
    font-size: 0.9rem;
    color: var(--ew-text-muted, #666);
    line-height: 1.6;
    flex: 1;
}

.ew-news-card__excerpt p {
    margin: 0;
}

.ew-news-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ew-wine, #8A121F);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.ew-news-card__cta:hover {
    gap: 10px;
}

/* Empty state */
.ew-news-empty {
    text-align: center;
    color: var(--ew-text-muted, #666);
    padding: 40px 20px;
}

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

@media (max-width: 768px) {
    .ew-news-columns-2,
    .ew-news-columns-3,
    .ew-news-columns-4 {
        grid-template-columns: 1fr;
    }

    .ew-news-card__content {
        padding: 16px;
    }
}
