/**
 * Curved Cards Styles
 */

.wml-curved-cards {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 20px;
    width: 100%;
}

.wml-curved-cards__gallery {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.wml-curved-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wml-curved-card {
    width: 400px;
    height: 400px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    text-decoration: none;
    display: block;
    margin: 0;
}

.wml-curved-card__image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    clip-path: path('M 100 20 L 370 20 A 20,20 0,0,1 390 40 L 390 80 A 20,20 0,0,1 370 100 L 350 100 A 20,20 0,0,0 330 120 L 330 360 A 40,40 0,0,1 300 400 L 50 400 A 40,40 0,0,1 20 360 L 20 125 A 15,15 0,0,1 35 110 L 55 110 A 30,30 0,0,0 80 85 L 80 40 A 20,20 0,0,1 100 20 Z');
}

.wml-curved-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(35%);
    transition: filter 0.3s ease-in, transform 0.3s ease-in;
}

.wml-curved-card:hover img {
    transform: scale(1.1);
    filter: saturate(100%) !important;
}

.wml-curved-card__heading {
    padding: 12px 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wml-curved-card-wrapper:hover .wml-curved-card__heading {
    transform: translateY(-5px);
}

/* Link styles */
a.wml-curved-card {
    text-decoration: none;
}

a.wml-curved-card:hover {
    text-decoration: none;
}

/* Placeholder */
.wml-curved-cards__placeholder {
    padding: 40px;
    text-align: center;
    color: #888;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* SVG clip path definition - hidden */
.wml-curved-cards__svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1200px) {
    .wml-curved-card {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .wml-curved-cards__gallery {
        flex-direction: column;
        gap: 20px;
    }

    .wml-curved-card {
        width: 280px;
        height: 280px;
    }

    .wml-curved-card-wrapper {
        margin-right: 0 !important;
    }

    .wml-curved-cards {
        padding: 20px 10px;
    }
}