.slide-card-container {
    background-color: transparent;
    position: relative;
    overflow: hidden; /* Enforces the clipping for the slide effect */
    border-radius: 10px; /* Optional default */
}

.slide-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px; /* Overridden by Elementor */
}

.slide-card-front, .slide-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-card-front {
    background-color: #f1f1f1;
    color: black;
    z-index: 1;
    transform: translate(0, 0);
}

.slide-card-back {
    background-color: #2980b9;
    color: white;
    z-index: 2;
    /* Start out of frame diagonally (top right) */
    transform: translate(100%, -100%);
}

/* Hover effects */
.slide-card-container:hover .slide-card-front {
    /* Push the front out diagonally (bottom left) */
    transform: translate(-100%, 100%);
}

.slide-card-container:hover .slide-card-back {
    /* Slide in to the center */
    transform: translate(0, 0);
}

/* Internal wrappers */
.slide-card-front-content, .slide-card-back-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.slide-card-front-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.slide-card-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.slide-card-link-item {
    margin-bottom: 10px;
}

.slide-card-link-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 8px;
    transition: opacity 0.3s ease;
}

.slide-card-link-item a:hover {
    opacity: 0.8;
}
