.elementor-23829 .elementor-element.elementor-element-5136dbf{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-23829 .elementor-element.elementor-element-fd410f8{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-23829 .elementor-element.elementor-element-99fe6ae{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:40px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}/* Start custom CSS for html, class: .elementor-element-d61af62 *//* --- تنظیمات کلی کانتینر --- */
.bamak-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    box-sizing: border-box;
    font-family: inherit;
}

.bamak-track {
    display: grid;
    /* در دسکتاپ: ۴ ستون مساوی */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    width: 100%;
    direction: rtl; 
}

/* --- دیزاین مدرن کارت‌ها --- */
.bamak-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.bamak-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
    z-index: 5;
}

/* --- بخش تصویر --- */
.bamak-img-box {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}

.bamak-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bamak-card:hover .bamak-img-box img {
    transform: scale(1.08);
}

/* --- بخش محتوا --- */
.bamak-content {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.bamak-title {
    margin: 0 0 15px 0;
    line-height: 1.5;
    min-height: 48px;
}

.bamak-title a {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.bamak-card:hover .bamak-title a {
    color: #D32F2F;
}

/* --- دکمه --- */
.bamak-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bamak-card:hover .bamak-btn {
    background: #D32F2F;
    color: #fff;
    border-color: #D32F2F;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

/* --- روبان ویژه --- */
.bamak-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #D32F2F;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(211, 47, 47, 0.1);
}

/* =========================================
   مخفی کردن آیتم‌های تکراری در دسکتاپ
   ========================================= */
@media (min-width: 768px) {
    .bamak-clone {
        display: none !important;
    }
}

/* =========================================
   تنظیمات موبایل: اسلایدر بی‌نهایت (Ticker)
   ========================================= */
@media (max-width: 767px) {
    .bamak-slider-wrapper {
        padding: 10px 0 40px 0;
        direction: ltr; 
    }

    .bamak-track {
        display: flex;
        grid-template-columns: none;
        gap: 0;
        width: max-content;
        animation: smoothTicker 25s linear infinite;
        direction: ltr;
    }
    
    .bamak-card {
        width: 290px;
        flex-shrink: 0;
        margin-right: 15px;
        direction: rtl;
        text-align: center;
    }

    @keyframes smoothTicker {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); } 
    }
    
    .bamak-track:hover,
    .bamak-track:active {
        animation-play-state: paused;
    }
}/* End custom CSS */