/* =========================================================
   MyFit Experts — reference-matched marketplace design
   Base / header / footer untouched.
   ========================================================= */

:root{
    --ep-bg:#07120e;
    --ep-surface:#111d18;
    --ep-surface-2:#0d1713;
    --ep-text:#f4f6f2;
    --ep-muted:#a1aaa4;
    --ep-accent:#9bcb55;
    --ep-accent-2:#d7ff63;
    --ep-border:rgba(255,255,255,.105);
    --ep-border-soft:rgba(255,255,255,.065);
    --ep-shadow:0 18px 45px rgba(0,0,0,.28);
}
[data-theme="light"]{
    --ep-bg:#f4f7f2;
    --ep-surface:#fff;
    --ep-surface-2:#eef3eb;
    --ep-text:#162019;
    --ep-muted:#707a74;
    --ep-accent:#7eae42;
    --ep-accent-2:#9bcb55;
    --ep-border:rgba(22,32,25,.11);
    --ep-border-soft:rgba(22,32,25,.07);
    --ep-shadow:0 18px 40px rgba(22,32,25,.09);
}

.ep-hero,.ep-filters-section,.ep-section,.ep-cta{direction:rtl}
.ep-hero .container,.ep-filters-section .container,.ep-section .container{width:min(1400px,calc(100% - 56px));margin:auto}

/* ================= HERO ================= */
.ep-hero{
    position:relative;
    width:100%;
    height:410px;
    min-height:0;
    overflow:hidden;
    background:#07100d;
}
.ep-hero-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 43%;
}
.ep-hero-overlay{
    position:absolute;
    inset:0;
    z-index:1;
    background:
        linear-gradient(90deg,rgba(4,11,8,.14) 0%,rgba(4,11,8,.25) 40%,rgba(4,11,8,.82) 100%),
        linear-gradient(0deg,rgba(4,11,8,.75),transparent 48%);
}
.ep-hero-day{display:block}
.ep-hero-night{display:none}
[data-theme="dark"] .ep-hero-day{display:none}
[data-theme="dark"] .ep-hero-night{display:block}

.ep-hero-content{
    position:absolute;
    z-index:4;
    top:50%;
    right:7%;
    width:min(520px,46%);
    transform:translateY(-50%);
    text-align:right;
}
.ep-hero-eyebrow{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
    color:rgba(255,255,255,.66);
    font-size:10px;
    font-weight:800;
}
.ep-hero-eyebrow span{
    width:22px;height:2px;border-radius:99px;background:var(--ep-accent);
}
.ep-hero-content h1{
    margin:0 0 8px;
    color:#fff;
    font-size:clamp(31px,3.25vw,51px);
    line-height:1.18;
    font-weight:950;
    letter-spacing:-1px;
}
.ep-hero-content h1 span{color:var(--ep-accent)}
.ep-hero-content h1::after{
    content:"";
    display:block;
    width:48px;height:3px;
    margin-top:13px;
    border-radius:99px;
    background:var(--ep-accent);
}
.ep-hero-content p{
    margin:0 0 16px;
    color:rgba(255,255,255,.76);
    font-size:13px;
    line-height:1.8;
}

/* live DB stats */
.ep-hero-stats{
    position:absolute;
    z-index:4;
    left:6%;
    top:50%;
    width:185px;
    transform:translateY(-50%);
    padding:11px 12px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:17px;
    background:rgba(10,19,15,.70);
    box-shadow:0 18px 35px rgba(0,0,0,.25);
    backdrop-filter:blur(14px);
}
.ep-hero-stat{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 0;
}
.ep-hero-stat + .ep-hero-stat{border-top:1px solid rgba(255,255,255,.07)}
.ep-hero-stat-icon{
    width:31px;height:31px;
    display:grid;place-items:center;
    flex:0 0 31px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.045);
    font-size:12px;
}
.ep-hero-stat strong{
    display:block;
    color:#fff;
    font-size:16px;
    line-height:1.1;
}
.ep-hero-stat small{
    display:block;
    margin-top:2px;
    color:rgba(255,255,255,.62);
    font-size:8px;
}
.ep-search-bar{
    min-height:51px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:5px 6px 5px 7px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:13px;
    background:rgba(255,255,255,.96);
    box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.ep-search-bar > i{color:#657067;font-size:15px}
.ep-search-bar input{
    flex:1;min-width:0;height:38px;
    border:0;outline:0;
    color:#253028;background:transparent;
    font-family:inherit;font-size:11px;
}
.ep-search-bar input::placeholder{color:#8a928d}
.ep-search-btn{
    min-width:76px;height:39px;
    border:0;border-radius:10px;
    color:#14200e;background:var(--ep-accent);
    font-family:inherit;font-size:10px;font-weight:900;
    cursor:pointer;
}
.ep-hero-quick{
    display:flex;
    gap:7px;
    margin-top:10px;
    overflow:auto;
    scrollbar-width:none;
}
.ep-hero-quick::-webkit-scrollbar{display:none}
.ep-hero-quick a{
    flex:0 0 auto;
    padding:7px 10px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:999px;
    color:rgba(255,255,255,.86);
    background:rgba(5,14,10,.44);
    text-decoration:none;
    font-size:8px;
}
.ep-hero-quick i{margin-right:4px;color:var(--ep-accent)}
.ep-hero-scroll{
    position:absolute;
    z-index:4;
    bottom:15px;
    left:50%;
    width:30px;height:30px;
    display:grid;place-items:center;
    transform:translateX(-50%);
    border:1px solid rgba(255,255,255,.3);
    border-radius:50%;
    color:#fff;
    background:rgba(0,0,0,.22);
    font-size:10px;
}

/* ================= FILTERS ================= */
.ep-filters-section{
    position:relative;
    z-index:5;
    margin-top:-1px;
    padding:14px 0 5px;
    background:linear-gradient(180deg,#0a1712,var(--ep-bg));
}
.ep-filters-bar{
    display:flex;
    align-items:center;
    gap:9px;
    padding:0;
}
.ep-category-pills{
    display:flex;
    gap:8px;
    flex:1;
    min-width:0;
    overflow-x:auto;
    scrollbar-width:none;
}
.ep-category-pills::-webkit-scrollbar{display:none}
.ep-pill{
    flex:0 0 auto;
    min-width:120px;
    min-height:43px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:7px 13px;
    border:1px solid var(--ep-border);
    border-radius:14px;
    color:var(--ep-muted);
    background:rgba(255,255,255,.018);
    text-decoration:none;
    white-space:nowrap;
    font-family:inherit;
    font-size:10px;
    font-weight:800;
    transition:.2s ease;
}
.ep-pill:hover{color:var(--ep-text);border-color:rgba(155,203,85,.35)}
.ep-pill.active{
    color:#15210f;
    border-color:transparent;
    background:linear-gradient(135deg,#d9ff64,#91c94b);
    box-shadow:0 8px 24px rgba(155,203,85,.18);
}
.ep-more-pill{cursor:pointer}
.ep-search-filter{display:none}
.ep-small-filters{display:none}

/* ================= SECTIONS ================= */
.ep-section{
    padding:22px 0 4px;
    background:
        radial-gradient(circle at 12% 35%,rgba(80,145,58,.09),transparent 24%),
        var(--ep-bg);
}
.ep-section-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:14px;
}
.ep-section-heading h2{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    color:var(--ep-text);
    font-size:24px;
    line-height:1.35;
    font-weight:950;
}
.ep-section-heading h2 i{color:#e7bf2d;font-size:20px}
.ep-section-link{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--ep-accent);
    text-decoration:none;
    font-size:10px;
    font-weight:800;
}
.ep-section-link i{font-size:10px}
.ep-section-note{color:var(--ep-muted);font-size:9px}
.ep-count{
    margin-right:7px;
    padding:5px 9px;
    border-radius:999px;
    color:#17230f;
    background:rgba(155,203,85,.9);
    font-size:9px;
}

/* ================= FEATURED CARDS ================= */
.ep-featured-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}
.ep-featured-card{
    overflow:hidden;
    border:1px solid rgba(255,255,255,.12);
    border-radius:15px;
    background:linear-gradient(180deg,#18251f,#101b17);
    box-shadow:0 14px 32px rgba(0,0,0,.18);
    transition:.22s ease;
}
.ep-featured-card:hover{transform:translateY(-4px);border-color:rgba(155,203,85,.34)}
.ep-card-image{
    position:relative;
    overflow:hidden;
    background:#0d1511;
}
.ep-featured-card .ep-card-image{
    aspect-ratio:1 / .72;
}
.ep-card-image img{
    display:block;
    width:100%;height:100%;
    object-fit:cover;
    transition:.35s ease;
}
.ep-featured-card:hover .ep-card-image img,.ep-simple-card:hover .ep-card-image img{transform:scale(1.045)}
.ep-card-image::after{
    content:"";
    position:absolute;inset:48% 0 0;
    background:linear-gradient(0deg,rgba(5,12,9,.58),transparent);
    pointer-events:none;
}
.ep-card-image-placeholder{
    width:100%;height:100%;min-height:180px;
    display:grid;place-items:center;
    color:var(--ep-accent);
    background:#111a15;
    font-size:44px;
}
.ep-card-badge{
    position:absolute;
    z-index:2;
    right:10px;bottom:9px;
    padding:5px 9px;
    border-radius:999px;
    color:#182314;
    background:var(--ep-accent);
    font-size:8px;
    font-weight:900;
}
.ep-card-bookmark{
    position:absolute;
    z-index:3;
    top:10px;left:10px;
    width:26px;height:30px;
    display:grid;place-items:center;
    color:var(--ep-accent-2);
    font-size:18px;
    text-shadow:0 2px 8px rgba(0,0,0,.45);
}
.ep-card-body{padding:13px 13px 12px}
.ep-card-name-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.ep-card-name-row strong{
    color:var(--ep-text);
    font-size:15px;
    font-weight:950;
}
.ep-rating{
    display:inline-flex;
    align-items:center;
    gap:4px;
    color:var(--ep-text);
    white-space:nowrap;
    font-size:11px;
    font-weight:900;
}
.ep-rating i{color:#f1c72d;font-size:10px}
.ep-card-specialty{
    display:inline-block;
    margin-top:6px;
    padding:4px 8px;
    border-radius:999px;
    color:#17300f;
    background:rgba(155,203,85,.83);
    font-size:8px;
    font-weight:900;
}
.ep-card-meta{
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-top:11px;
    color:#d5dad6;
    font-size:10px;
}
.ep-card-meta span,.ep-card-services span{
    display:flex;
    align-items:center;
    gap:7px;
}
.ep-card-meta i,.ep-card-services i{color:var(--ep-accent);width:12px;text-align:center}
.ep-card-services{
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-top:8px;
    color:#c7cec9;
    font-size:9px;
}
.ep-card-body p{
    margin:9px 0 10px;
    color:var(--ep-muted);
    font-size:9px;
    line-height:1.75;
}
.ep-btn{
    min-height:39px;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:7px 12px;
    border:1px solid var(--ep-accent);
    border-radius:9px;
    color:#f0f5eb;
    background:transparent;
    text-decoration:none;
    font-family:inherit;
    font-size:10px;
    font-weight:900;
    transition:.2s ease;
}
.ep-btn:hover{color:#17230f;background:var(--ep-accent)}
.ep-btn i{color:var(--ep-accent)}
.ep-btn:hover i{color:#17230f}

/* ================= ALL EXPERTS ================= */
.ep-all-experts-section{
    padding-top:27px;
}
.ep-all-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px;
}
.ep-simple-card{
    position:relative;
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    min-height:104px;
    overflow:hidden;
    border:1px solid var(--ep-border);
    border-radius:13px;
    background:linear-gradient(135deg,#16231d,#101b17);
    text-decoration:none;
    transition:.2s ease;
}
.ep-simple-card:hover{transform:translateY(-3px);border-color:rgba(155,203,85,.3)}
.ep-simple-card .ep-card-image{width:76px;height:100%}
.ep-simple-card .ep-card-body{
    min-width:0;
    display:block;
    padding:10px 11px;
}
.ep-simple-name-row{
    display:flex;
    justify-content:space-between;
    gap:6px;
    align-items:center;
}
.ep-simple-name-row strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--ep-text);
    font-size:12px;
    font-weight:900;
}
.ep-simple-type{
    display:block;
    margin-top:4px;
    color:var(--ep-muted);
    font-size:8px;
}
.ep-simple-info{
    display:flex;
    gap:10px;
    margin-top:7px;
    color:#cbd1cd;
    font-size:8px;
}
.ep-simple-info i{color:var(--ep-accent)}
.ep-simple-bio{
    margin:5px 0;
    color:var(--ep-muted);
    font-size:7px;
    line-height:1.55;
}
.ep-simple-profile{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:var(--ep-accent);
    font-size:8px;
    font-weight:900;
}
.ep-simple-profile i{font-size:8px}
.ep-simple-card .ep-card-bookmark{
    top:6px;left:5px;
    font-size:13px;
}
.ep-more-hidden{display:none}
.ep-more-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:210px;
    min-height:39px;
    margin:17px auto 0;
    padding:7px 17px;
    border:1px solid rgba(255,255,255,.4);
    border-radius:10px;
    color:var(--ep-text);
    background:transparent;
    font-family:inherit;
    font-size:9px;
    font-weight:800;
    cursor:pointer;
}
.ep-more-btn i{color:var(--ep-accent)}

/* ================= CTA — compact reference style ================= */
.ep-cta{
    position:relative;
    width:min(1400px,calc(100% - 56px));
    height:165px;
    margin:34px auto 45px;
    overflow:hidden;
    border:1px solid var(--ep-border);
    border-radius:25px;
    background:#0a120e;
}
.ep-cta-img{
    position:absolute;inset:0;
    width:100%;height:100%;
    object-fit:cover;
}
.ep-cta-day{display:block}
.ep-cta-night{display:none}
[data-theme="dark"] .ep-cta-day{display:none}
[data-theme="dark"] .ep-cta-night{display:block}
.ep-cta::after{
    content:"";
    position:absolute;inset:0;
    background:linear-gradient(90deg,rgba(5,12,9,.2),rgba(5,12,9,.88) 72%),linear-gradient(0deg,rgba(5,12,9,.3),transparent);
}
.ep-cta-content{
    position:relative;z-index:2;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:20px 34px;
}
.ep-cta-text{max-width:720px}
.ep-cta-kicker{
    color:var(--ep-accent);
    font-size:7px;
    font-weight:900;
    letter-spacing:1px;
}
.ep-cta h3{
    margin:4px 0 4px;
    color:#fff;
    font-size:22px;
    font-weight:950;
}
.ep-cta p{
    margin:0;
    color:rgba(255,255,255,.72);
    font-size:9px;
}
.ep-cta-trust{
    display:flex;
    align-items:center;
    gap:9px;
    margin-top:8px;
}
.ep-cta-avatars{display:flex;direction:ltr}
.ep-cta-avatars img,.ep-cta-avatars span{
    width:29px;height:29px;
    margin-right:-6px;
    display:grid;place-items:center;
    overflow:hidden;
    border:2px solid #fff;
    border-radius:50%;
    color:#fff;
    background:#3d5147;
    font-size:9px;
}
.ep-cta-avatars img{object-fit:cover}
.ep-cta-trust strong{display:block;color:#fff;font-size:13px}
.ep-cta-trust small{display:block;color:rgba(255,255,255,.6);font-size:7px}
.ep-cta .ep-btn{
    width:auto;
    min-width:190px;
    border:0;
    color:#14200f;
    background:var(--ep-accent);
}
.ep-cta .ep-btn i{color:#14200f}

/* ================= MOBILE ================= */
@media(max-width:1050px){
    .ep-hero{height:390px}
    .ep-hero-content{right:6%;width:50%}
    .ep-hero-stats{left:4%;width:165px}
    .ep-featured-grid,.ep-all-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ep-card-body p{display:block}
}
@media(max-width:700px){
    .ep-hero{height:520px}
    .ep-hero-img{object-position:60% center}
    .ep-hero-overlay{
        background:linear-gradient(0deg,rgba(4,11,8,.94),rgba(4,11,8,.38) 60%,rgba(4,11,8,.18));
    }
    .ep-hero-content{
        top:auto;bottom:26px;right:16px;
        width:calc(100% - 32px);
        transform:none;
    }
    .ep-hero-content h1{font-size:31px}
    .ep-hero-content p{font-size:10px;margin-bottom:11px}
    .ep-hero-eyebrow{font-size:8px}
    .ep-hero-stats{
        top:15px;left:15px;
        width:calc(100% - 30px);
        transform:none;
        display:grid;
        grid-template-columns:repeat(2,1fr);
        padding:5px 8px;
    }
    .ep-hero-stat{padding:7px 4px}
    .ep-hero-stat:nth-child(3){display:none}
    .ep-hero-stat-icon{width:27px;height:27px;flex-basis:27px}
    .ep-hero-stat strong{font-size:12px}
    .ep-hero-stat small{font-size:7px}
    .ep-hero-quick a{font-size:7px}
    .ep-filters-section{padding-top:9px}
    .ep-hero-scroll{display:none}
    .ep-hero .ep-search-bar{min-height:48px}
    .ep-search-btn{min-width:67px}
    .ep-filters-bar{display:block}
    .ep-category-pills{padding-bottom:3px}
    .ep-pill{min-width:104px;min-height:40px;font-size:8px}
    .ep-section,.ep-section + .ep-section{padding-top:20px}
    .ep-section .container{width:calc(100% - 18px)}
    .ep-section-heading{margin-bottom:11px}
    .ep-section-heading h2{font-size:18px}
    .ep-section-link{font-size:8px}
    .ep-section-note{display:none}
    .ep-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .ep-featured-card{border-radius:12px}
    .ep-featured-card .ep-card-image{aspect-ratio:1/.83}
    .ep-card-body{padding:9px}
    .ep-card-name-row{display:block}
    .ep-card-name-row strong{display:block;font-size:11px;margin-bottom:4px}
    .ep-rating{font-size:8px}
    .ep-card-specialty{font-size:7px;margin-top:4px}
    .ep-card-meta{font-size:7px;gap:4px;margin-top:7px}
    .ep-card-services{font-size:6.5px;gap:4px;margin-top:6px}
    .ep-card-body p{font-size:7px;margin:6px 0;line-height:1.6}
    .ep-btn{min-height:32px;font-size:8px}
    .ep-all-grid{grid-template-columns:1fr 1fr;gap:7px}
    .ep-simple-card{grid-template-columns:55px minmax(0,1fr);min-height:88px}
    .ep-simple-card .ep-card-image{width:55px}
    .ep-simple-card .ep-card-body{padding:7px}
    .ep-simple-name-row strong{font-size:9px}
    .ep-simple-type{font-size:7px}
    .ep-simple-info{font-size:6.5px;gap:5px;flex-wrap:wrap}
    .ep-simple-bio{display:none}
    .ep-simple-profile{font-size:7px;margin-top:4px}
    .ep-cta{
        width:calc(100% - 18px);
        height:220px;
        margin:27px auto 34px;
        border-radius:19px;
    }
    .ep-cta-content{
        padding:18px;
        align-items:flex-start;
        justify-content:flex-end;
        flex-direction:column;
        gap:9px;
    }
    .ep-cta h3{font-size:18px}
    .ep-cta p{font-size:8px}
    .ep-cta .ep-btn{width:100%;min-width:0}
}
@media(max-width:430px){
    .ep-hero{height:500px}
    .ep-featured-grid{grid-template-columns:1fr}
    .ep-featured-card .ep-card-image{aspect-ratio:1/.58}
    .ep-all-grid{grid-template-columns:1fr}
}
/* =========================================
   ALL EXPERTS - HORIZONTAL CSS SLIDER
   ========================================= */

.ep-all-slider-wrap {
    position: relative;
    width: 100%;
}

/* خود ردیف اسکرول */
.ep-all-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;

    gap: 16px;
    padding: 6px 4px 18px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: var(--ep-accent) transparent;
}

/* کارت‌ها */
.ep-all-slider .ep-simple-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;

    scroll-snap-align: start;
}

/* Chrome / Edge / Safari */
.ep-all-slider::-webkit-scrollbar {
    height: 5px;
}

.ep-all-slider::-webkit-scrollbar-track {
    background: transparent;
}

.ep-all-slider::-webkit-scrollbar-thumb {
    background: var(--ep-accent);
    border-radius: 20px;
}

/* =========================================
   ARROWS - OVERLAY روی کارت‌ها
   ========================================= */

.ep-slider-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 30;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    background: var(--ep-surface);
    color: var(--ep-text);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

/* فلش سمت راست */
.ep-slider-prev {
    right: 8px;
}

/* فلش سمت چپ */
.ep-slider-next {
    left: 8px;
}

/* با هاور روی ردیف کارت‌ها فلش‌ها ظاهر شوند */
.ep-all-slider-wrap:hover .ep-slider-arrow,
.ep-all-slider-wrap:focus-within .ep-slider-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* هاور خود فلش */
.ep-slider-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.ep-slider-arrow i {
    font-size: 15px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1050px) {

    .ep-all-slider .ep-simple-card {
        flex-basis: calc((100% - 32px) / 3);
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .ep-all-slider {
        gap: 14px;
        padding-bottom: 15px;
    }

    .ep-all-slider .ep-simple-card {
        flex: 0 0 78%;
    }

    .ep-slider-arrow {
        width: 38px;
        height: 38px;
    }

    .ep-slider-prev {
        right: 5px;
    }

    .ep-slider-next {
        left: 5px;
    }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 430px) {

    .ep-all-slider .ep-simple-card {
        flex-basis: 84%;
    }

    .ep-slider-arrow {
        width: 36px;
        height: 36px;
    }

}

/* =========================================
   BUTTON: مشاهده همه متخصصان
   ========================================= */

.ep-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ep-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 18px;

    border: 1px solid var(--ep-accent);
    border-radius: 12px;

    background: transparent;
    color: var(--ep-accent);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.ep-section-link:hover {
    background: var(--ep-accent);
    color: #111;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.ep-section-link i {
    font-size: 12px;
}

/* =========================================
   FILTER BAR - CLEAR / VISIBLE
   ========================================= */

.ep-filters-section {
    position: relative;
    z-index: 10;

    background: var(--ep-bg) !important;

    padding: 18px 0 22px;

    opacity: 1 !important;
}

.ep-filters-bar {
    position: relative;
    z-index: 11;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 10px;

    background: var(--ep-surface) !important;

    border: 1px solid var(--ep-border);

    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .08);

    opacity: 1 !important;
}

/* دسته‌بندی‌ها */
.ep-category-pills {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-wrap: nowrap;
}

.ep-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;
    padding: 0 16px;

    border: 1px solid var(--ep-border);
    border-radius: 12px;

    background: var(--ep-surface-2) !important;

    color: var(--ep-text) !important;

    font-size: 13px;
    font-weight: 700;

    opacity: 1 !important;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

/* حالت فعال */
.ep-pill.active {
    background: var(--ep-accent) !important;
    border-color: var(--ep-accent) !important;
    color: #111 !important;
}

/* هاور */
.ep-pill:hover {
    border-color: var(--ep-accent);

    background: var(--ep-accent) !important;
    color: #111 !important;

    transform: translateY(-1px);
}

/* فیلترهای سمت دیگر */
.ep-small-filter {
    min-height: 42px;

    padding: 0 14px;

    border: 1px solid var(--ep-border);
    border-radius: 12px;

    background: var(--ep-surface-2) !important;
    color: var(--ep-text) !important;

    opacity: 1 !important;

    font-size: 13px;
    font-weight: 600;
}

.ep-small-filter i {
    margin-right: 6px;
}

/* اگر چیزی از هیرو روی فیلترها می‌افتد */
.ep-hero,
.ep-hero::before,
.ep-hero::after {
    z-index: 1;
}

.ep-filters-section {
    isolation: isolate;
}

@media (max-width: 800px) {

    .ep-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .ep-category-pills {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .ep-small-filters {
        width: 100%;
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

    .ep-small-filter {
        flex: 0 0 auto;
    }

    .ep-section-heading {
        align-items: flex-start;
    }

    .ep-section-link {
        padding: 9px 13px;
        font-size: 12px;
    }
}