/* Rede Credenciada — parceiros compactos */
.redes {
    padding: 5rem 1rem;
}

.redes .tab-redes-container {
    border: 1px solid #d7d7d7;
}

.redes .tab-redes-container .nav {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #d7d7d7;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.redes .tab-redes-container .nav .nav-link {
    color: #676767;
    padding: 0.5rem 0.85rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
}

.redes .tab-redes-container .nav .nav-link.active {
    background-color: transparent;
    font-weight: 700;
    color: #2d7dcd;
}

.redes .tab-redes-container .nav .nav-link:hover:not(.active) {
    color: #2d7dcd;
}

.redes .tab-redes-container .tab-content {
    padding: 1.25rem 0.75rem;
    overflow: visible;
}

.redes .rede-parceiros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem 1rem;
    padding-bottom: 1rem;
    width: 100%;
    max-width: 100%;
}

.redes .rede-parceiro-card {
    position: relative;
    width: 100%;
    max-width: 130px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redes .rede-parceiro-logo {
    cursor: pointer;
    width: 100%;
    height: 100%;
    max-width: 130px;
    max-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    padding: 0.35rem;
    overflow: hidden;
}

.redes .rede-parceiro-logo:focus {
    box-shadow: none;
}

.redes .rede-parceiro-logo:hover {
    border-color: #2d7dcd;
}

.redes .rede-parceiro-logo img {
    display: block;
    max-width: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.redes .rede-parceiro-btn {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 125%);
    width: 80%;
    border: none;
    background-color: #2d7dcd;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.redes .rede-parceiro-card:hover .rede-parceiro-btn {
    transform: translate(-50%, 45%);
    opacity: 1;
}

.redes .rede-parceiros-empty {
    font-family: 'Quicksand', sans-serif;
}

@media (min-width: 576px) {
    .redes .rede-parceiros-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .redes .rede-parceiro-card {
        max-width: 140px;
        height: 100px;
    }

    .redes .rede-parceiro-logo img {
        max-width: 80px !important;
        max-height: 80px !important;
    }
}

@media (min-width: 992px) {
    .redes .rede-parceiros-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem 1.25rem;
    }
}
