/* Single Bank Lender Template Styles */

.bank-lender-wrapper {
    background-image: linear-gradient(rgba(93, 93, 93, 0.03) 1px, transparent 1px), linear-gradient(to right, rgba(93, 93, 93, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-color: #ffffff;
    width: 100%;    
    margin-bottom: 60px;
    padding: 60px 24px 24px 24px;
}

.bank-lender-header {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto -2vw auto;
    height: 14vw;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.bank-lender-main-section {    
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(149,155,189,0.25);
    padding: 24px;
    overflow: clip;
}

/* Headshot & Gallery Container */
.headshot-gallery-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 1px;
    margin-bottom: 4px;
}

.bank-lender-headshot-wrapper {
    position: relative;
    padding-right: 16px;
}

.bank-lender-headshot {
    position: relative;
    width: 100%;
    height: 100%;
}

.bank-lender-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Spanish Badge */
.spanish-badge {
    position: absolute;
    top: 32px;
    left: -88px;
    width: 300px;
    background-color: #002F52;
    color: #FFFFFF;
    text-align: center;
    transform: rotate(320deg);
    z-index: 2;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.64);
}

.spanish-badge p {
    margin: 0;
    padding: 4px 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8em;
}

/* Gallery */
.bank-lender-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.bank-lender-gallery.desktop-only {
    display: block;
}

.bank-lender-gallery.mobile-only {
    display: none;
    margin-top: 12px;
}

.gallery-slider {
    position: relative;
    width: 100%;
}

.gallery-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

/* Slider Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #133156;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

/* Slider Dots */
.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Name, Title & Button Section */
.bank-lender-name-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0 0 0;
    padding: 0;
}

.bank-lender-name-title {
    margin-bottom: 12px;
}

.bank-lender-name-title h1 {
    font-family: 'Glober', sans-serif;
    font-weight: 800;
    color: #0a2540;
    font-size: 32px;
    margin: 0;
    padding: 0;
}

.bank-lender-name-title p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #425466;
}

.bank-lender-contact-btn {
    text-align: right;
    padding: 0 0 8px 0;
}

.bank-lender-contact-btn a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #133156;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.7;
    border-radius: 6px;
    height: 40px;
}

.bank-lender-contact-btn a:hover {
    background: #0076b3;
}

/* Contact Information */
.bank-lender-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 0 0;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-right: 24px;
    .nmls-label {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        color: #adc6d2;
        font-size: 16px;
        margin-right: 2px;
    }
}

.contact-item img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.contact-item span {
    font-family: 'Inter', sans-serif;
    color: #425466;
    line-height: 1.2em;
}

.contact-item a {
    font-family: 'Inter', sans-serif;
    color: #425466;
    text-decoration: none;
    line-height: 1.2em;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0076b3;
    text-decoration: underline;
}

.nmls-item {
    display: flex;
    align-items: center;
}

/* Bio */
.bank-lender-bio {
    margin: 16px 0;
}

.bank-lender-bio p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #425466;
    line-height: 28px;
    white-space: pre-wrap;
}

/* Video Section */
.bank-lender-video {
    margin: 40px 0px 0px 0px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.bank-lender-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    display: block;
}

.bank-lender-video .video-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.bank-lender-video .video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Specializes Section */
.specializes-section {
    max-width: 1200px;
    margin: 0 auto 24px auto;
    text-align: center;
    padding: 40px 12px 0 12px;
}

.specializes-section h2 {
    font-family: 'Glober', sans-serif;
    font-weight: 700;
    color: #b2b2b2;
    font-size: 32px;
    line-height: 1.8em;
    margin: 0;
    text-wrap: balance;
}

/* Products Section */
.bank-products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
}

.bank-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.bank-product-card {
    background: #fff;
    border-radius: 8px;
    padding: 8px 8px 24px 8px;
    box-shadow: 0 4px 16px rgba(149,155,189,0.25);
    margin-bottom: 24px;
}

.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: clip;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.product-image-container img[alt="SBA Loans"] {
    max-width: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bank-product-card h3 {
    font-family: 'Glober', sans-serif;
    font-weight: 800;
    color: #0a2540;
    font-size: 22px;
    padding-left: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 0;
}

.bank-product-card p {
    margin-left: 16px;
    margin-right: 8px;
    font-family: 'Inter', sans-serif;
    color: #425466;
    font-size: 16px;
    line-height: 23px;
}

.bank-product-card ul.productBullets {
    padding-top: 8px;
    padding-bottom: 0;
    padding-left: 20px;
    margin-left: 16px;
    list-style: disc;
    list-style-position: outside;
}

.bank-product-card li {
    font-family: 'Inter', sans-serif;
    color: #425466;
    font-size: 16px;
    line-height: 23px;
}

/* Mobile Styles */
@media (max-width: 980px) {
    .bank-lender-wrapper {
        padding-top: 0;
    }
    
    .bank-lender-header {
        height: 18vw;
        width: 100vw;
        border-radius: 0;
        position: relative;
        margin: 0 auto -4vw auto;
        left: -24px;
        z-index: 0;
    }
    
    .bank-lender-main-section {
        position: relative;
        z-index: 1;
    }
    
    .headshot-gallery-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .bank-lender-headshot-wrapper {
        padding-right: 0;
        padding-bottom: 12px;
    }
    
    .bank-lender-gallery.desktop-only {
        display: none;
    }
    
    .bank-lender-gallery.mobile-only {
        display: block;
    }
    
    .gallery-prev {
        left: 8px;
    }
    
    .gallery-next {
        right: 8px;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .spanish-badge {
        top: 24px;
        left: -98px;
    }
    
    .bank-lender-name-section {
        grid-template-columns: 1fr;
        row-gap: 0;
        margin-bottom: 16px;
    }
    
    .bank-lender-contact-btn {
        text-align: left;
    }
    
    .bank-lender-contact-info {
        column-gap: 24px;
        row-gap: 8px;
    }
    
    .contact-item {
        margin-right: 0;
        width: auto;
    }
    .bank-lender-video{
        margin: 24px 0px 0px 0px;
    }
    .bank-products-grid {
        grid-template-columns: 1fr;
    }
    
    .bank-product-card {
        margin-bottom: 16px;
        padding: 8px 8px 24px 8px;
    }
    
    .specializes-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .bank-lender-wrapper {
        padding: 0px 4px 4px 4px;
    }
    
    .bank-lender-header {
        left: -4px;
    }
    
    .bank-lender-main-section {
        padding: 12px;
    }
    
    .bank-lender-contact-info {
        flex-direction: column;
    }
    
    .bank-lender-contact-btn a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .bank-lender-contact-info {
        flex-direction: column;
        gap: 16px;
    }
}

