/* Image Flip Section */
.image-flip-section {
    padding: 50px 0;
}

.image-flip-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap; /* Ensure images stay in a row */
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
}

.image-flip-item {
    position: relative;
    min-width: 30%; /* Adjust as needed */
    perspective: 1000px;
}

.image-flip-item figure {
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.image-flip-item:hover figure {
    transform: rotateY(180deg);
}

.image-flip-item img {
    width: 100%;
    height: auto;
    backface-visibility: hidden;
}

.image-flip-item .back-image {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
}

/* Back content styling */
.back-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #32bfc7 0%, #1a9aa1 100%);
    border-radius: 50%;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15%;
}

.flip-description {
    color: #000;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .flip-description {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    .back-content {
        padding: 12%;
    }
}

@media (max-width: 480px) {
    .flip-description {
        font-size: 0.6rem;
        line-height: 1.3;
    }
    
    .back-content {
        padding: 10%;
    }
}