/* صفحات الخبراء: بطاقات القائمة + صفحة تفاصيل الخبير */
.expert-card {
    background: #fff;
    border: 1px solid #eceef4;
    border-radius: 14px;
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(31, 27, 75, .05);
    transition: box-shadow .25s ease, transform .25s ease;
}
.expert-card:hover { box-shadow: 0 12px 30px rgba(31, 27, 75, .1); transform: translateY(-3px); }
.expert-card__thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #f3f4f8; }
.expert-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.expert-card__body { text-align: center; padding: 16px 4px 12px; flex-grow: 1; }
.expert-card__name { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.expert-card__name a { color: #1f1b4b; }
.expert-card__job { color: #6b6f80; font-size: 15px; }
.expert-card__meta {
    display: flex; justify-content: space-between; gap: 8px;
    border-top: 1px solid #f0f1f5; margin-top: 14px; padding-top: 12px;
    font-size: 14px; color: #3d3f4f;
}
.expert-card__meta i { color: var(--color-primary); margin-inline-end: 6px; }
.expert-card__actions { display: grid; gap: 8px; }

.expert-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 8px; font-size: 15px; font-weight: 600;
    border: 1px solid var(--color-primary); transition: all .2s ease; line-height: 1.4;
}
.expert-btn--outline { background: #fff; color: var(--color-primary); }
.expert-btn--outline:hover { background: var(--color-primary); color: #fff; }
.expert-btn--solid { background: var(--color-primary); color: #fff; }
.expert-btn--solid:hover { opacity: .9; color: #fff; }
.expert-btn--lg { padding: 14px 24px; font-size: 17px; }

/* سلايدر الخبراء في الرئيسية: بطاقات بنفس الارتفاع ومساحة لظل/حركة البطاقة */
.mySwiperh3_team { padding: 6px 4px 12px; }
.mySwiperh3_team .swiper-slide { height: auto; }
.mySwiperh3_team .expert-card { width: 100%; }

/* صفحة القائمة: الهيدر + البحث والفلاتر + طريقة العرض */
.experts-hero {
    position: relative; padding: 70px 0 110px;
    background: linear-gradient(to left, #fff 35%, rgba(255, 255, 255, .55)), var(--hero-img, none) center / cover no-repeat, #f1f2f8;
}
.experts-hero__title { font-size: 42px; font-weight: 800; color: #1f1b4b; margin: 0 0 10px; }
.experts-hero__subtitle { font-size: 17px; color: #55596b; margin: 0; }
.experts-page { background: #f7f8fc; padding-bottom: 80px; }
.experts-filters {
    position: relative; top: -60px; margin-bottom: -40px;
    background: #fff; border: 1px solid #eceef4; border-radius: 16px; padding: 20px;
    box-shadow: 0 10px 30px rgba(31, 27, 75, .06);
}
.experts-search { position: relative; margin-bottom: 14px; }
.experts-search i { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: #6b6f80; }
.experts-search input {
    width: 100%; height: 50px; border: 1px solid #e3e5ee; border-radius: 10px;
    padding-inline-start: 44px; padding-inline-end: 16px; font-size: 15px; background: #fff;
}
.experts-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.experts-filters__row select {
    flex: 0 1 280px; height: 46px; border: 1px solid #e3e5ee; border-radius: 10px;
    padding: 0 14px; font-size: 15px; color: #3d3f4f; background-color: #fff;
}
.experts-reset { margin-inline-start: auto; color: var(--color-primary); font-size: 15px; font-weight: 600; }
.experts-reset i { margin-inline-end: 6px; }
.experts-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.experts-count { color: #55596b; font-size: 15px; }
.experts-view { display: flex; gap: 6px; }
.experts-view button {
    width: 38px; height: 38px; border-radius: 8px; border: 1px solid #e3e5ee;
    background: #fff; color: #6b6f80; display: inline-flex; align-items: center; justify-content: center;
}
.experts-view button.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.experts-empty { background: #fff; border-radius: 14px; padding: 40px; text-align: center; color: #6b6f80; }

/* عرض القائمة */
.experts-grid.is-list .experts-grid__item { flex: 0 0 100%; max-width: 100%; }
.experts-grid.is-list .expert-card { flex-direction: row; align-items: center; gap: 20px; }
.experts-grid.is-list .expert-card__thumb { flex: 0 0 180px; }
.experts-grid.is-list .expert-card__body { text-align: start; padding: 0; }
.experts-grid.is-list .expert-card__meta { justify-content: flex-start; gap: 30px; }
.experts-grid.is-list .expert-card__actions { flex: 0 0 220px; }

/* صفحة التفاصيل */
.expert-details { background: #f7f8fc; padding: 50px 0 80px; }
.expert-details .bread-tag { font-size: 14px; color: #6b6f80; margin-bottom: 18px; }
.expert-details .bread-tag a { color: #6b6f80; }
.expert-details .bread-tag .active { color: var(--color-primary); }
.expert-box {
    background: #fff; border: 1px solid #eceef4; border-radius: 16px;
    padding: 28px; box-shadow: 0 6px 20px rgba(31, 27, 75, .04); height: 100%;
}
.expert-hero { padding: 0; overflow: hidden; }
.expert-hero__content { padding: 36px; }
.expert-hero__job { font-size: 40px; font-weight: 800; color: #1f1b4b; margin: 0 0 6px; }
.expert-hero__name { font-size: 20px; font-weight: 600; color: var(--color-primary); margin-bottom: 14px; }
.expert-hero__headline { color: #55596b; font-size: 16px; line-height: 1.9; margin-bottom: 26px; }
.expert-hero__img { height: 100%; min-height: 320px; }
.expert-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.expert-stats { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 26px; }
.expert-stat { flex: 1 1 0; min-width: 110px; display: flex; align-items: center; gap: 10px; padding: 4px 14px; }
.expert-stat + .expert-stat { border-inline-start: 1px solid #eceef4; }
.expert-stat i { font-size: 22px; color: var(--color-primary); }
.expert-stat strong { display: block; font-size: 17px; color: #1f1b4b; }
.expert-stat span { font-size: 13px; color: #6b6f80; }

.expert-box__title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: #1f1b4b; margin-bottom: 18px; }
.expert-box__title i { color: var(--color-primary); }
.expert-box p { color: #55596b; line-height: 2; margin: 0; white-space: pre-line; }
.expert-list { list-style: none; padding: 0; margin: 0; }
.expert-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; color: #3d3f4f; margin: 0; }
.expert-list--divided li + li { border-top: 1px solid #f0f1f5; }
.expert-list i { color: var(--color-primary); margin-top: 5px; }

.expert-cta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
    background: linear-gradient(135deg, #f1efff, #f7f6ff); border: 1px solid #e4e0ff;
    border-radius: 16px; padding: 28px 32px;
}
.expert-cta h3 { font-size: 24px; font-weight: 700; color: #1f1b4b; margin: 0 0 6px; }
.expert-cta p { color: #55596b; margin: 0; }
.expert-cta .consultation-btn { width: auto; }

@media (max-width: 991px) {
    .expert-hero__img { min-height: 0; aspect-ratio: 4 / 3; }
    .expert-hero__job { font-size: 30px; }
}
@media (max-width: 767px) {
    .experts-hero { padding: 40px 0 90px; }
    .experts-hero__title { font-size: 30px; }
    .experts-filters__row select { flex: 1 1 100%; }
    .experts-reset { margin-inline-start: 0; }
    .experts-grid.is-list .expert-card { flex-direction: column; align-items: stretch; }
    .experts-grid.is-list .expert-card__thumb, .experts-grid.is-list .expert-card__actions { flex: none; }
}
@media (max-width: 575px) {
    .expert-hero__content, .expert-box { padding: 20px; }
    .expert-stat { min-width: 50%; padding: 8px; }
    .expert-stat + .expert-stat { border: 0; }
    .expert-cta { padding: 20px; }
    .expert-cta .expert-btn { width: 100%; }
}
