/* ===================== Expert Cards Grid ===================== */
.chefs-section {
    background: #fff;
}

.experts-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.experts-grid > [class*="col-"] {
    padding: 0 10px;
}

.expert-card {
    padding: 20px 10px 18px;
    text-align: center;
    margin-bottom: 28px;
}

.expert-photo-wrapper {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 150px;
    margin: 0 auto 14px;
    vertical-align: top;
}

.expert-photo {
    width: 150px !important;
    height: 150px !important;
    min-height: 150px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top;
    display: block !important;
    border: 5px solid var(--primary) !important;
    box-sizing: border-box;
    background: #f0f0f0;
}

.expert-card.border-purple .expert-photo { border-color: #8e44ad !important; }
.expert-card.border-gold   .expert-photo { border-color: #c9a227 !important; }
.expert-card.border-teal   .expert-photo { border-color: #1abc9c !important; }
.expert-card.border-orange .expert-photo { border-color: var(--primary) !important; }

.expert-card.border-purple .expert-badge { border-color: #8e44ad; }
.expert-card.border-gold   .expert-badge { border-color: #c9a227; }
.expert-card.border-teal   .expert-badge { border-color: #1abc9c; }
.expert-card.border-orange .expert-badge { border-color: var(--primary); }

.expert-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.20);
    z-index: 1;
}

.expert-badge img {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain;
}

.expert-info {
    padding: 0 6px;
}

.expert-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.35;
}

.expert-specialty {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 3px;
    line-height: 1.45;
}

.expert-location {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.expert-profile-link {
    display: inline-block;
    font-size: 13px;
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 400;
}

.expert-profile-link:hover {
    color: var(--secondary) !important;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .expert-photo-wrapper { width: 120px; height: 120px; }
    .expert-photo         { width: 120px !important; height: 120px !important; min-height: 120px !important; }
}

@media (max-width: 768px) {
    .expert-photo-wrapper { width: 110px; height: 110px; }
    .expert-photo         { width: 110px !important; height: 110px !important; min-height: 110px !important; }
    .expert-name          { font-size: 14px; }
}

@media (max-width: 570px) {
    .experts-grid > [class*="col-"] { width: 50%; }
    .expert-photo-wrapper           { width: 95px; height: 95px; }
    .expert-photo                   { width: 95px !important; height: 95px !important; min-height: 95px !important; }
    .expert-badge                   { width: 28px; height: 28px; bottom: 3px; right: 3px; }
    .expert-badge img               { width: 18px !important; height: 18px !important; }
}
/* ============================================================ */

/* ===================== Pagination =========================== */
.experts-pagination { text-align: center; margin: 10px 0 24px; }

.experts-page-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.experts-page-list .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.experts-page-list .page-item .page-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.experts-page-list .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: default;
}

.experts-page-list .page-item.disabled .page-link {
    color: #bbb;
    border-color: #eee;
    cursor: default;
    pointer-events: none;
}

.experts-page-list .page-link.dots {
    border: none;
    background: transparent;
    color: #888;
    letter-spacing: 1px;
    cursor: default;
    pointer-events: none;
}
/* ============================================================ */