/* Services CSS Starting */

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* padding: 200px 0; */
    padding: 30% 0;
    gap: 100px;

}

marquee {
    font-size: 50px;
    color: #e91e63;
}

.container .box {
    position: relative;
    width: 300px;
    height: 350px;
    /* background: #6dd459; */
    background: linear-gradient(45deg, #f77770, #6bce78);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .box::before {
    content: '';
    position: absolute;
    inset: -10px 50px;
    border-top: 4px solid var(--clr);
    border-bottom: 4px solid var(--clr);
    z-index: -1;
    transform: skewY(15deg);
    transition: 0.5s ease-in-out;
}

.container .box:hover::before {
    transform: skewY(0deg);
    inset: -10px 40px;
}

.container .box::after {
    content: '';
    position: absolute;
    inset: 60px -10px;
    border-left: 4px solid var(--clr);
    border-right: 4px solid var(--clr);
    z-index: -1;
    transform: skew(15deg);
    transition: 0.5s ease-in-out;
}

.container .box:hover::after {
    transform: skew(0deg);
    inset: 40px -10px;
}

.container .box .content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 0 20px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image img {
    border-radius: 25px;
    border-style: dashed;
    width: 250px;
    height: auto;
}

.container .box .content .icon {
    color: var(--clr);
    width: 80px;
    height: 80px;
    box-shadow: 0 0 0 4px #2e2e2e, 0 0 0 6px var(--clr);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    background: #2e2e2e;
    transition: 0.5s ease-in-out;
}

.container .box:hover .content .icon {
    background: var(--clr);
    color: #2e2e2e;
    box-shadow: 0 0 0 4px #2e2e2e, 0 0 0 300px var(--clr);
}

.container .box .content .text h3 {
    font-size: 1.5em;
    color: #fff;
    font-weight: 500;
    transition: 0.5s e;
}

.container .box:hover .content .text h3 {
    color: #2e2e2e;
}

button {
    margin-bottom: 10px;
}

.box:hover .text p {
    display: none;
}

/* .text p {
    tex
} */

.box:hover .text {
    border-radius: 4px;
    color: white;
    background-color: #ffffff;
}

.box:hover button {
    margin: 0px;
    /* padding: 10px; */
    bottom: 20px;
}

.container .box .content .text p {
    color: #ffffff;
    transition: 0.5s ease-in-out;
}

.container .box:hover .content .text p {
    color: #2e2e2e;
}

.container .box .content .text a {
    position: relative;
    background: var(--clr);
    color: #2e2e2e;
    padding: 8px 15px;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: 0.5s ease-in-out;
}

.container .box:hover .content .text a {
    background: #2e2e2e;
    color: var(--clr);
}

.read-more-cont {
    display: none;
}

/* Services CSS Ending */

/* Read More PopUp Box CSS Starting */

.popup-box {
    position: fixed;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 500;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s ease-in-out;
}

.popup-box.open {
    visibility: visible;
    opacity: 1;
}

.popup-box .popup-content {
    background-color: #dddddd;
    width: 600px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.popup-box .popup-header {
    padding: 15px 40px 15px 15px;
    border-bottom: 1px solid #dddddd;
}

.popup-box .popup-header h3 {
    margin: 0;
    color: #e91e63;
    font-size: 20px;
}

.popup-box .popup-header .popup-close-icon {
    position: absolute;
    height: 30px;
    width: 30px;
    text-align: center;
    color: #555555;
    font-size: 45px;
    line-height: 30px;
    right: 10px;
    top: 10px;
}

.popup-box .popup-body {
    padding: 15px;
}

.popup-box .popup-body p {
    font-size: 16px;
    color: #555555;
    margin: 0 0 15px;
}

.popup-box .popup-footer {
    padding: 15px;
    border-top: 1px solid #dddddd;
    text-align: right;
}

.popup-box .popup-footer .btn {
    padding: 8px 15px;
    border: 1px solid #555555;
    color: #555555;
    font-size: 16px;
    background-color: transparent;
    cursor: pointer;
    border-radius: 4px;
}

/* Read More PopUp Box CSS Ending */

/* Popup Responsive CSS Starting */

@media only screen and (max-width: 767px) {
    .popup-box .popup-content {
        width: 90%;
        max-width: 400px;
    }
}

/* Popup Responsive CSS Ending */

/* Services Responsive CSS Starting */

@media only screen and (min-width: 767px) {

    .container {
        width: 100%;
        padding: 100px 0;

    }

    

    /* .container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 60px 0;
        gap: 120px;
    }
    
    .container .box {
        position: relative;
        width: 300px;
        height: 350px;
        background: #2e2e2e;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .container .box::before {
        content: '';
        position: absolute;
        inset: -10px 50px;
        border-top: 4px solid var(--clr);
        border-bottom: 4px solid var(--clr);
        z-index: -1;
        transform: skewY(15deg);
        transition: 0.5s ease-in-out;
    }
    
    .container .box:hover::before {
        transform: skewY(0deg);
        inset: -10px 40px;
    }
    
    .container .box::after {
        content: '';
        position: absolute;
        inset: 60px -10px;
        border-left: 4px solid var(--clr);
        border-right: 4px solid var(--clr);
        z-index: -1;
        transform: skew(15deg);
        transition: 0.5s ease-in-out;
    }
    
    .container .box:hover::after {
        transform: skew(0deg);
        inset: 40px -10px;
    }
    
    .container .box .content {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 20px;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .container .box .content .icon {
        color: var(--clr);
        width: 80px;
        height: 80px;
        box-shadow: 0 0 0 4px #2e2e2e, 0 0 0 6px var(--clr);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5em;
        background: #2e2e2e;
        transition: 0.5s ease-in-out;
    }
    
    .container .box:hover .content .icon {
        background: var(--clr);
        color: #2e2e2e;
        box-shadow: 0 0 0 4px #2e2e2e, 0 0 0 300px var(--clr);
    }
    
    .container .box .content .text h3 {
        font-size: 1.5em;
        color: #fff;
        font-weight: 500;
        transition: 0.5s e;
    }
    
    .container .box:hover .content .text h3 {
        color: #2e2e2e;
    }
    
    .container .box .content .text p {
        color: #999;
        transition: 0.5s ease-in-out;
    }
    
    .container .box:hover .content .text p {
        color: #2e2e2e;
    }
    
    .container .box .content .text a {
        position: relative;
        background: var(--clr);
        color: #2e2e2e;
        padding: 8px 15px;
        display: inline-block;
        text-decoration: none;
        font-weight: 500;
        margin-top: 10px;
        transition: 0.5s ease-in-out;
    }
    
    .container .box:hover .content .text a {
        background: #2e2e2e;
        color: var(--clr);
    } */
}

/* Services Responsive CSS Ending */

@media (max-width: 499px) {
    marquee {
        font-size: 25px;
        color: #e91e63;
    }
}