/*
 * File: assets/css/stacking-testimonials-style.css
 * Stacking Testimonials Widget Styles
 */

/* ========================================= */
/* 1. Base Containers and Layout */
/* ========================================= */

.TrustedBy_panels__GAA3r {
    position: relative;
    width: 100%;
    min-height: 500px; 
    margin: 50px 0;
}

.TrustedBy_draggable__UtY30 {
    position: absolute;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}

/* ========================================= */
/* 2. Card General Styles (Panel Classes) */
/* ========================================= */

.Panel_panelContainer__lO1Ie {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.Panel_default__RXZEL {
    padding: 1px;
}

.Panel_inset__v4Kbp {
    border-radius: 10px;
    padding: 20px;
}

.Panel_elevatedSmall__tzuxQ {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.TrustedBy_quote__2Pbl8 {
    min-height: 180px; 
    /* اضافه شدن display:flex برای مدیریت محتوا */
    display: flex; 
    flex-direction: column;
}

/* ========================================= */
/* 4. Content and Typography (رفع مشکل بیرون زدگی متن و فشرده شدن نام) */
/* ========================================= */

.TrustedBy_quoteGroup__sEwUG {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.TrustedBy_quoteGroup__sEwUG p {
    margin-bottom: 20px;
    line-height: 1.6;
    /* این خط از بیرون زدن متن جلوگیری می‌کند */
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

.TrustedBy_quoteGroup__sEwUG > div {
    display: flex;
    align-items: center;
    margin-top: auto; 
    /* این خط از فشرده شدن نام در کنار تصویر جلوگیری می‌کند */
    min-width: 0; 
}
.TrustedBy_quoteGroup__sEwUG > div > p {
    /* اطمینان از اینکه نام کاربر نیز فضای کافی برای شکستن خط داشته باشد */
    flex-shrink: 1; 
}

.TrustedBy_quoteGroup__sEwUG img {
    object-fit: cover;
    margin-inline-end: 10px;
    /* اطمینان از اینکه تصویر کوچک نشود */
    flex-shrink: 0; 
}

.Typography_variant-monoCaption__CtFq1 {
    font-size: 0.85em;
    font-weight: bold;
}


/* ========================================= */
/* 5. Interactivity and Focus */
/* ========================================= */

.TrustedBy_draggable__UtY30:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(0deg) !important; 
}

.TrustedBy_draggable__UtY30.is-focused {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 9999 !important; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* رفع مشکل Mobile/Touch */
@media (max-width: 767px) {
    .TrustedBy_panels__GAA3r {
        min-height: auto; 
    }
    .TrustedBy_draggable__UtY30 {
        position: static;
        margin-bottom: 20px;
        transform: none !important; 
        width: 100% !important;
    }
    .TrustedBy_draggable__UtY30.is-focused {
        transform: none !important;
    }
}