/* Loan Officers Listing Page Styles */

/* Hero Section */
.lo-hero {
    background: linear-gradient(135deg, #0a3c72 0%, #1a5a9e 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.lo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    opacity: 0.1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 30px;
    position: relative;
}

.search-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.search-card h3 {
    color: #0a3c72;
    font-weight: 600;
}

.search-card .form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.search-card .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-card .form-control:focus {
    border-color: #0a3c72;
    box-shadow: 0 0 0 0.2rem rgba(10, 60, 114, 0.15);
}

/* Results Section */
.lo-results {
    padding: 60px 0;
    background: #f8f9fa;
}

.results-header {
    margin-bottom: 40px;
}

.results-header h2 {
    color: #0a3c72;
    font-weight: 600;
}

/* Loan Officer Cards */
.lo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.certified-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.certified-badge i {
    font-size: 14px;
}

.lo-card-header {
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.lo-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: white;
}

.lo-name {
    font-size: 22px;
    font-weight: 600;
    color: #0a3c72;
    margin-bottom: 5px;
}

.lo-company {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 0;
}

.lo-card-body {
    padding: 20px 30px;
    flex-grow: 1;
}

.lo-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lo-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.stat-item i {
    color: #0a3c72;
    font-size: 16px;
}

.lo-states {
    margin-top: 15px;
}

.lo-states strong {
    display: block;
    color: #333;
    font-size: 13px;
    margin-bottom: 8px;
}

.state-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.state-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.lo-card-footer {
    padding: 20px 30px 30px;
}

.lo-card-footer .btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.lo-card-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 60, 114, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-results i {
    color: #dee2e6;
}

.no-results h3 {
    color: #495057;
    margin-bottom: 15px;
}

/* CTA Section */
.lo-cta {
    background: linear-gradient(135deg, #0a3c72 0%, #1a5a9e 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.lo-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.lo-cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.lo-cta .lead {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 30px;
}

.lo-cta .btn-light {
    background: white;
    color: #0a3c72;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.lo-cta .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .search-card {
        margin-top: 40px;
        padding: 30px;
    }
    
    .lo-cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .lo-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .search-card {
        padding: 25px;
    }
    
    .lo-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .lo-cta {
        padding: 60px 0;
    }
    
    .lo-cta h2 {
        font-size: 28px;
    }
    
    .lo-cta .lead {
        font-size: 16px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lo-card {
    animation: fadeInUp 0.6s ease-out;
}

.lo-card:nth-child(1) { animation-delay: 0.1s; }
.lo-card:nth-child(2) { animation-delay: 0.2s; }
.lo-card:nth-child(3) { animation-delay: 0.3s; }
.lo-card:nth-child(4) { animation-delay: 0.4s; }
.lo-card:nth-child(5) { animation-delay: 0.5s; }
.lo-card:nth-child(6) { animation-delay: 0.6s; }
