.custom-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 20px;
    max-width: 100vw;
    margin-left: 60px;
}

.custom-service-card {
    display: flex;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    position: relative;
    width: 95%;
    height: 400px;
    margin: auto;
    border-bottom-right-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.custom-service-card:hover {
    transform: translateY(-5px);
}

.custom-service-image {
    width: 50%;
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 120px;
}

.custom-service-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.custom-service-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.custom-service-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}


.service-btn {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    display: inline-block;
    padding: 10px 18px;
    background-color: transparent;
    color: #4c6353;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: color 0.3s;
}

.service-btn:hover {
    color: #FF8800;
}


@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .custom-service-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 100vw;
        margin-left: -20px;
    }

    .custom-service-card {
        flex-direction: column;
        height: auto;
        width: 90vw;
        max-width: 500px;
        margin: 0 auto 20px auto;
        /* centers it horizontally */
        border-radius: 20px;
        border-bottom-right-radius: 100px;
    }

    .custom-service-image {
        width: 100%;
        height: 280px;
        object-fit: cover;
        border-radius: 20px 20px 0 0;
    }

    .custom-service-content {
        width: 100%;
        padding: 25px 20px;
    }
}