.view-all-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    background-color: #f8f8fc;
    transition: background-color 0.3s, border-color 0.3s;

    /* For background image placement */
    background-size: cover;
    background-position: center;
    position: relative; /* Needed for the overlay */
    overflow: hidden; /* Ensures overlay respects border-radius */
}

.view-all-card:hover {
    border-color: #cccccc;
    cursor: pointer;
}

.view-all-card__content {
    display: flex;
    align-items: center;
    gap: 8px; /* Adds space between text and icon */
    text-align: center;
    color: #333;
    position: relative; /* To appear above the overlay */
    z-index: 2;
}

.view-all-card__text {
    font-size: 14px;
    font-weight: 500;
}

.view-all-card__icon {
    width: 24px;
    height: 24px;
    color: #555;
    transition: transform 0.4s;
}

.view-all-card:hover .view-all-card__icon {
    transform: translateX(4px);
}


/* --- Styles for the Card WITH an Image --- */
.view-all-card--with-image {
    border: none; /* Remove the dashed border */
    color: #ffffff; /* Make text and icon white for readability */
}
.view-all-card.view-all-card--with-image{
    text-decoration: none;
}

/* Add a dark overlay so text is always readable */
.view-all-card--with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent black */
    z-index: 1;
    transition: background-color 0.3s;
}

.view-all-card--with-image:hover::before {
    background-color: rgba(0, 0, 0, 0.6); /* Darken overlay on hover */
}

/* .view-all-card--with-image .view-all-card__content {
     color: #ffffff;
 }*/
.view-all-card--with-image .view-all-card__content {
    color: #000000;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
}

.view-all-card--with-image .view-all-card__icon {
    color: #000000;
}