.container-so {
    
    position: relative;
    display: flex;
    justify-content: space-between;
}

.container-so .card {
    position: relative;
    border-radius: 10px;
}

.container-so .card .icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: 0.7s;
    z-index: 1;
}

.container-so .card:nth-child(1) .icon {
    background: #e07768;
}

.container-so .card:nth-child(2) .icon {
    background: #6eadd4;
}

.container-so .card:nth-child(3) .icon {
    background: #4aada9;
}


.container-so .card .icon1 .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    transition: 0.7s;
    color: #fff;
}

.i-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    transition: 0.7s;
    color: #fff;
}

.container-so .card .face {
    width: 300px;
    height: 200px;
    transition: 0.5s;
}

.container-so .card .face.face1 {
    position: relative;
    background: linear-gradient(60deg, rgb(146, 230, 225) 0%, rgb(186, 145, 233) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transform: translateY(100px);
}
.container-so .card .face.face3 {
    position: relative;
    background: #613ce6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transform: translateY(100px);
}
.container-so .card .face.face4{
    position: relative;
    background: #d6274d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transform: translateY(100px);
}

.container-so .card:hover .face.face1{
    background: #67d479;
    transform: translateY(0px);
}
.container-so .card:hover .face.face3{
    background: #3e32e7;
    transform: translateY(0px);
}
.container-so .card:hover .face.face4{
    background: #c71432;
    transform: translateY(0px);
}

.container-so .card .face.face1 .content {
    opacity: 1;
    transition: 0.5s;
}

.container-so .card:hover .face.face1 .content {
    opacity: 1;
}

.container-so .card .face.face1 .content i{
    max-width: 100px;
}

.container-so .card .face.face2 {
    position: relative;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;

    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: translateY(-100px);
}

.container-so .card:hover .face.face2{
    transform: translateY(0);
}

.container-so .card .face.face2 .content p {
    margin: 0;
    padding: 0;
    text-align: center;
    color: #414141;
}

.container-so .card .face.face2 .content h3 {
    margin: 0 0 10px 0;
    padding: 0;
    color: #fff;
    font-size: 24px;
    text-align: center;
    color: #414141;
} 
.content a:hover{
    color: #c71432;
}








/* Media query for smaller screens */
@media (max-width: 768px) {
    .container-so {
        flex-direction: column; /* Stack cards vertically */
        width: 100%; /* Full width */

    }

    /* Reset card styles */
    .container-so .card {
        width: 100%; /* Full width for small screens */
        margin-right: 0;
        margin-bottom: 20px; /* Add spacing between cards */
        align-items: center;
    }

    /* Show content on hover */
    .container-so .card:hover {
        transform: scale(1.05); /* Enlarge the card on hover */
    }

    /* Hide content by default and show on hover */
    .container-so .card .content {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(165, 238, 198, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.5s;
    }

    .container-so .card:hover .content {
        opacity: 1;
    }

  
} 

/* Media query for tablet screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .container-so {
        flex-direction: row; /* Revert to horizontal layout */
    }

    /* Adjust card styles for tablet screens */
    .container-so .card {
        width: calc(53.33% ); /* Adjust card width for three cards in a row */
        /* margin-right: 20px; */
        /* margin-bottom: 0; No spacing between cards in tablet layout */
        align-items: flex-start; /* Align content to the top */
        width: fit-content;
        overflow: hidden;
        
    }
   
    
}