.container-card-service {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.card-service-custom {
    height: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--bs-box-shadow-sm) !important;
    position: relative;
    display: flex;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    padding: 2em 1rem;
    background: #FFF;
    transition: all .35s ease;

    &::before,
    &::after {
        content: "";
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: #4f3a95;
        height: 4px;
    }

    &::before {
        width: 0;
        opacity: 0;
        transition: opacity 0 ease, width 0 ease;
        transition-delay: .5s;
    }

    &::after {
        width: 100%;
        background: white;
        transition: width .5s ease;
    }

    .content-card-service {
        width: 100%;
    }

    h6 {
        color: #10213b;
        font-weight: 600;
        margin: 0;
        font-size: 1.25rem;
        margin-bottom: .5rem;
        font-weight: 900;
        line-height: 1.2;
    }

    .hover_content-card-service {
        overflow: hidden;
        max-height: 10em;
        transform: translateY(1em);
        transition: all .55s ease;

        img {
            width: 100%; /* Faz a imagem ocupar toda a largura disponível */
            height: 100%; /* Faz a imagem ocupar toda a altura */
            object-fit: cover; /* Ajusta a imagem para cobrir o espaço sem deformar */
            border-radius: 0.5rem; /* Aplica bordas arredondadas se necessário */
            display: block; /* Remove espaços extras abaixo da imagem */
        }

        p {
            margin: 1.5em 0 0;
            color: #6E6E70;
            line-height: 1.4em;
        }
    }

    &:hover {
        &::before {
            width: 100%;
            opacity: 1;
            transition: opacity .5s ease, width .5s ease;
            transition-delay: 0;
        }

        &::after {
            width: 0;
            opacity: 0;
            transition: width 0 ease;
        }

        .logo {
            margin-bottom: .5em;
        }

        /* .hover_content-card-service {
            max-height: 10em;
            transform: none;
        } */
    }
}

/* Modal */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Conteúdo da imagem no modal */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

/* Botão de fechar */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
