.widget-modern-recent-recipes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.widget-modern-recipe-item {
    text-align: center;
    overflow: hidden;
}

.widget-recipe-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 200px; /* Force a uniform height for all images */
}

.widget-recipe-image-wrapper img {
    width: 100%;
    height: 100%; /* Ensure images fill the container */
    object-fit: cover; /* Maintain aspect ratio and crop overflow */
    display: block;
    transition: transform 0.3s ease;
}

.widget-recipe-image-wrapper:hover img {
    transform: scale(1.05);
}

.widget-recipe-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fbc02d;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.widget-recipe-title {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-recipe-title:hover {
    color: #fbc02d;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .widget-modern-recent-recipes {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
    }

    .widget-modern-recipe-item {
        flex: 0 0 calc(50% - 10px); /* Two columns */
    }

    /* Adjust height for smaller images on mobile */
    .widget-recipe-image-wrapper {
        height: 150px;
    }
}
