/*!* main-service.css *!*/
/*!*====================================================*!*/

.main-service-grid-container {
    display: flex;
    justify-content: center;
}

.main-service-image-grid {
    display: flex;
    flex-wrap: wrap;
}

.main-service-grid-row {
    margin-bottom: 10px;
}

.main-service-grid-column {
    flex-basis: calc(50% - 20px);
    margin: 50px 70px;
}

.main-service-image-container {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.main-service-image-container .img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-service-grid-button {
    position: absolute;
    top: 80%;
    left: 50%;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    width: 405px;
    height: 81px;
    background: linear-gradient(180deg, #2F87D5 2.08%, #345CFD 98.96%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hover styles for image containers and buttons */
.main-service-image-container:hover{
    transform: scale(1.05);
}
/***************************************************************************************************/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure the overlay is on top of other content */
    transition: opacity 0.5s; /* Add a transition for smooth fading */
    opacity: 1; /* Start with full opacity */
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid #28B3AD;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hide the overlay once the opacity is set to 0 */
.loading-overlay.fade-out {
    opacity: 0;
}

/***************************************************************************************************/
