/* پایه سایت */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    margin: 0;
    padding: 20px;
    color: #2e4b4d;
}

/* کانتینر */
.container, .expert-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* تیترها */
.expert-slider-container h2, h1 {
    text-align: center;
    color: #2e4b4d;
    margin-bottom: 30px;
}

/* اسلایدر کارشناسان */
.expert-slider {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 20px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* تصویر اسلایدر */
.expert-slider .expert-image {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 15px !important; /* وسط‌چین افقی */
    border: 4px solid rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
}

.slide:hover .expert-image {
    transform: scale(1.05);
    border-color: #d5ad70 !important;
}

.slide h3 {
    margin: 15px 0 8px;
    color: #2e4b4d;
    font-size: 20px;
}

.slide p {
    color: #5f6f6e;
    font-size: 15px;
    margin: 5px 0 15px;
}

/* اطلاعات کارشناسان */
.expert-info {
    margin-top: 15px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.stars {
    color: #d5ad70;
    margin-right: 5px;
    font-size: 14px;
}

/* دکمه ناوبری */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #d5ad70;
    color: #ffffff;
    border: none;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.nav-btn:hover {
    background: #2e4b4d;
    transform: translateY(-50%) scale(1.1);
}

.prev { right: 10px; }
.next { left: 10px; }

/* نقاط اسلایدر */
.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    padding: 0 10px;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #5f6f6e;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #d5ad70;
    transform: scale(1.2);
}

/* بخش محصول / کارشناس محصول */
.product-expert {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 20px 0 !important;
}

.product-expert .expert-image {
    width: 80px !important;
    height: 80px !important;
    display: block !important;
    margin: 0 auto 15px !important; /* وسط‌چین افقی */
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid rgba(255,255,255,0.9) !important;
    transition: all 0.3s ease !important;
}

.expert-details h4, .product-expert-info h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #2e4b4d;
}

.expert-details p {
    margin: 0 0 5px;
    font-size: 14px;
    color: #5f6f6e;
}

.expert-rate {
    color: #d5ad70;
    font-size: 14px;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .expert-slider {
        max-width: 300px;
    }
    
    .expert-slider .expert-image, 
    .product-expert .expert-image {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 15px !important;
    }
    
    .slide h3 {
        font-size: 18px;
    }
    
    .slide p {
        font-size: 14px;
    }
    
    .expert-info {
        font-size: 14px;
        flex-direction: column;
        gap: 8px;
    }
}