/* Local Font Loading */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
.ecc-comments-carousel {
    font-family: 'Vazir', sans-serif, Arial;
    padding-bottom: 40px;
    direction: ltr;
    position: relative;
    width: 100%;
}

.ecc-comments-carousel[dir="rtl"] {
    direction: rtl;
}

/* کارت به صورت لینک و کاملاً وسط‌چین */
.ecc-slide-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex !important; 
    flex-direction: column;
    align-items: center;    
    text-align: center;     
    transition: transform 0.3s ease;
    box-sizing: border-box;
    text-decoration: none;   
    color: inherit;          
    width: 100%;            
}

.ecc-slide-card:hover {
    transform: translateY(-5px);
}

/* استایل تصویر کاربر با قالب دایره‌ای، ابعاد فیکس و مرز نازک */
.ecc-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 15px;
    border: 1px solid #dcdfe6!important; /* مرز نازک متمایز دور دایره */
    padding: 3px;              /* ایجاد فاصله استاندارد بین تصویر و مرز */
    background: #ebebeb;       /* پس‌زمینه سفید برای تصاویر شفاف */
    box-shadow: 0 2px 6px rgba(0,0,0,0.03)!important;
    box-sizing: border-box;
}

.ecc-author {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
}

.ecc-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
    justify-content: center;
}

/* تشخیص خودکار ارتفاع و محدودسازی هوشمند متن به ۳ خط همراه با سه نقطه */
.ecc-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* پایداری وضعیت وسط‌چین در حالت راست‌چین */
.ecc-comments-carousel[dir="rtl"] .ecc-slide-card {
    text-align: center;
    align-items: center;
}

.ecc-comments-carousel[dir="rtl"] .ecc-rating {
    justify-content: center;
}

/* استایل دهی به نقاط پیجینیشن متمایز از قالب */
.ecc-comments-carousel .swiper-pagination {
    bottom: 0px !important;
}