.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr)!important;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.lender-card-home .card {
    border: 1px solid rgb(143 143 143 / 13%);
    border-radius: 1rem;
    box-shadow: 0 0px 20px -4px #a3a3a36b;
    margin: 0;
    min-height: 220px;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lenders-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 50%,
      rgb(0 0 0 / 74%) 100%
    );
    border-radius: 1rem;
    z-index: 1;
}
.card-logo {
    position: absolute;
    max-height: 80px;
    max-width: 180px;
    width: auto;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(0) invert(1);
    z-index: 2;
}

/* Título da página igual home */
.text-blue {
    color: var(--background-secondary);
}
.text-bold {
    font-weight: 700;
}

/* Remove estilos antigos dos cards de lenders */
.lenders-grid, .lender-card, .lender-card-inner, .lender-background, .lender-content, .lender-logo, .lender-name, .lender-location {
    all: unset;
    display: revert;
}

.lenders-grid {
    margin-top: 2rem;
}

.lender-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s ease;
}

.lender-card-inner {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
}

.lender-background {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.lender-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lender-content {
    padding: 1.5rem;
    text-align: center;
}

.lender-logo {
    margin: -60px auto 1rem;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.lender-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lender-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.lender-location {
    color: #666;
    font-size: 0.9rem;
}

.lender-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .lender-background {
        height: 150px;
    }

    .lender-logo {
        width: 100px;
        height: 100px;
        margin-top: -50px;
    }

    .lender-name {
        font-size: 1.2rem;
    }
}

/* Single Lender Page Styles */
.lender-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 130px 0;
    color: #fff;
    text-align: center;
}

.lender-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.lender-header .container {
    position: relative;
    z-index: 1;
}

.lender-header .lender-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: #fff;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.lender-header .lender-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lender-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lender-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.lender-sidebar {
    position: sticky;
    top: 2rem;
}

.lender-info-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.lender-info-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.lender-address p {
    margin-bottom: 0.5rem;
    color: #666;
}

.lender-address p:last-child {
    margin-bottom: 0;
}

.btn-block {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .lender-header {
        padding: 60px 0;
    }

    .lender-header .lender-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .lender-title {
        font-size: 2rem;
    }

    .lender-content,
    .lender-info-card {
        padding: 1.5rem;
    }
}

/* Hero logo centralizada */
.lender-logo-hero {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
    z-index: 2;
    overflow: visible;
}
.lender-logo-hero img {
    width: 100%;
    max-width: 300px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(10);
}
.lender-title {
    color: var(--background-secondary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.lender-map-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    padding: 1rem;
    min-height: 325px;
    height: 325px;
}

.lender-info-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}
.lender-info-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.lender-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.lender-contact .contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .lender-logo-hero {
        width: 100px;
        height: 100px;
    }
    .lender-title {
        font-size: 1.3rem;
    }
    .lender-map-block {
        padding: 0.5rem;
    }
}

.lender-map {
    width: 100%;
    height: 295px;
    border-radius: 12px;
    overflow: hidden;
}

.no-shadow {
    box-shadow: none !important;
}
.no-padding {
    padding: 0 !important;
}
.no-bg {
    background: none !important;
}
.full-width {
    width: 100% !important;
}

#footer {
    display: block!important;
}

.card-grid a:hover {
    transform: translateY(0)!important;
}

.card:hover {
    transform: translateY(0)!important;
}