/* ============================================================== */
/* SIMILAR AGENTS CAROUSEL SECTION - PREMIUM RESPONSIVE WIDGET   */
/* ============================================================== */

.similar-agents-section {
    font-family: 'Inter', 'Outfit', sans-serif;
}

/* Outer Card Container Box Backdrop */
.similar-agents-card-wrapper {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Section Header & Title */
.similar-agents-section .section-title {
    color: #1e293b;
    font-size: 24px;
    letter-spacing: -0.02em;
}

/* Pagination arrows next to title */
.similar-agents-section .pagination-arrows button {
    border-color: #e2e8f0;
    color: #475569;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.similar-agents-section .pagination-arrows button:hover:not(:disabled),
.similar-agents-section .pagination-arrows button:active:not(:disabled) {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.similar-agents-section .pagination-arrows button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* Agent Card Container & Items */
.agent-insight-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

/* Top Accent Blue Border on Hover */
.agent-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4d9bff, #0d6efd); /* Premium blue gradient matching site accents */
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.agent-insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.agent-insight-card:hover::before {
    transform: scaleX(1);
}

/* Top Section (Avatar + Info) */
.agent-insight-card__top {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Avatar Styling */
.agent-insight-card__avatar-wrapper {
    flex-shrink: 0;
}

.agent-insight-card__avatar-img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.agent-insight-card__avatar-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbeafe;
}

/* Agent Information Column */
.agent-insight-card__info {
    flex-grow: 1;
}

.agent-insight-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-insight-card__name-link {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.agent-insight-card__name-link:hover {
    color: #0d6efd;
}

/* Verified checkmark badge */
.agent-insight-card__verify-badge {
    color: #0d6efd; /* Verified Blue badge check */
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
}

/* Agent Role/Title */
.agent-insight-card__role {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb; /* Vibrant blue subtitle text */
    margin: 0 0 8px 0;
}

/* Meta list (Location, License ID) */
.agent-insight-card__meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.agent-insight-card__meta-item {
    font-size: 12px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.agent-insight-card__meta-item i {
    color: #94a3b8;
    font-size: 13px;
}

/* Horizontal card divider line */
.agent-insight-card__divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 20px 0;
}

/* Stats Section Grid */
.agent-insight-card__stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-insight-card__stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.agent-insight-card__stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.agent-insight-card__stat-label {
    font-size: 9px;
    font-weight: 700;
    color: #1e40af; /* Premium dark blue stats label */
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.agent-insight-card__stat:not(:first-child) {
    border-left: 1px solid #e2e8f0;
}

/* Animation on paginating */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-slide {
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile responsive layout */
@media (max-width: 767.98px) {
    .similar-agents-card-wrapper {
        padding: 20px;
        border-radius: 16px;
    }

    .similar-agents-section .section-title {
        font-size: 20px;
    }
    
    .agent-insight-card {
        padding: 20px;
    }
    
    .agent-insight-card__top {
        gap: 16px;
    }
    
    .agent-insight-card__avatar-img,
    .agent-insight-card__avatar-placeholder {
        width: 64px;
        height: 64px;
    }
    
    .agent-insight-card__avatar-placeholder {
        font-size: 24px;
    }
    
    .agent-insight-card__name {
        font-size: 16px;
    }
    
    .agent-insight-card__stat-value {
        font-size: 18px;
    }
}
