.card {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 220px;
    overflow: hidden;
    border: none;
    border-radius: 15px;
    background-position: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    transition: 0.3s ease;

}

.card:hover {
    background-size: 110% auto;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.7);
    transition: box-shadow 0.7s ease;
    transition: 0.3s ease;
}



.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: transform 0.3s ease;
}

.card::before:hover {
    transition: transform 0.3s ease;
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}



.card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 0 8px 0 8px;
    text-align: left;
    position: absolute;
    right: 0px;
    top: 0px;
}

.card-buttons {
    display: flex;
    justify-content: right;
    align-items: flex-end;
    gap: 10px;
}

.btn-custom {
    padding: 5px 10px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #000000;
}

.btn-saibamais {
    padding: 2px 10px;
    font-size: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    background-color: #6b6b6b;
    border-radius: 10px;
}

.btn-saibamais:hover {
    background-color: #474747;
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

.btn-login {
    padding: 2px 10px;
    background-color: #c49405;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    transform: scale(1);
    border-radius: 25px;
}



.btn-login:hover {
    background-color: #ffc107;
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

.card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #343a40;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 12px;
    z-index: 3;
}

.card .card-buttons-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    /* Fundo preto transparente */
    padding: 10px;
    text-align: center;
}

@media (max-width: 868px) {
    .card-title {
        font-size: 1.5rem;

    }

    .col-md-3 {
        width: 50%;
    }
}

@media (max-width: 967px) {
    .card-title {
        font-size: 1.5rem;

    }

    .col-md-3 {
        width: 50%;
    }
}