.news-grid-db8f5cae {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0;
    width: 100%;
}

.news-grid-db8f5cae .news-card-db8f5cae {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
    box-sizing: border-box;
}

/* Fallback för ensamma kort - de ska fortfarande bara ta 50% bredd */
.news-grid-db8f5cae .news-card-db8f5cae:only-child {
    flex: 0 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
}

.news-grid-db8f5cae .news-card-db8f5cae:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Bildplacering: Topp (standard) */
.news-grid-db8f5cae.img-pos-top .news-card-db8f5cae {
    flex-direction: column;
}
.news-grid-db8f5cae.img-pos-top .news-card-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Bildplacering: Vänster */
@media screen and (min-width: 768px) {
    .news-grid-db8f5cae.img-pos-left .news-card-db8f5cae.has-image {
        flex-direction: row !important;
    }
    .news-grid-db8f5cae.img-pos-left .news-card-thumbnail {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }
    .news-grid-db8f5cae.img-pos-left .news-card-thumbnail img {
        width: 100%;
        height: 100%;
        min-height: 200px;
        object-fit: cover;
        display: block;
    }
    .news-grid-db8f5cae.img-pos-left .news-card-content {
        flex: 1 !important;
    }
}

/* Om inlägget saknar bild */
.news-grid-db8f5cae .news-card-db8f5cae.no-image {
    flex-direction: column !important;
}
.news-grid-db8f5cae .news-card-db8f5cae.no-image .news-card-content {
    width: 100% !important;
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.news-card-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card-title a {
    color: #333333;
    text-decoration: none;
}

.news-card-title a:hover {
    color: #0056B3;
}

.news-card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.news-card-link {
    color: #0056B3;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.news-card-link:hover {
    text-decoration: underline;
}

/* Responsivitet för mobil */
@media screen and (max-width: 767px) {
    .news-grid-db8f5cae .news-card-db8f5cae {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    .news-grid-db8f5cae.img-pos-left .news-card-db8f5cae {
        flex-direction: column !important;
    }
    .news-grid-db8f5cae.img-pos-left .news-card-thumbnail {
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    .news-grid-db8f5cae.img-pos-left .news-card-thumbnail img {
        height: 200px;
    }
}
