/* استایل اصلی کاروسل */
.homay-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.homay-carousel {
    overflow: visible !important;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
}

/* استایل هر اسلاید */
.homay-carousel-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.homay-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(129, 41, 136, 0.15);
}

.homay-carousel-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.homay-carousel-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.homay-carousel-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #812988;
}

.homay-carousel-icon i {
    font-size: 66px;
}

.homay-carousel-icon svg {
    width: 66px;
    height: 66px;
    fill: currentColor;
}

/* خط جداکننده */
.homay-carousel-divider {
    width: 2px;
    height: 60px;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

/* بخش متن */
.homay-carousel-text {
    flex: 1;
    text-align: right;
}

.homay-carousel-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
}

.homay-carousel-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
}

/* دکمه‌های ناوبری */
.homay-carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.homay-carousel-navigation.below {
    margin-top: 40px;
}

.homay-carousel-navigation.inside {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
}

.homay-carousel-button {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #812988;
    position: static !important;
    margin: 0 !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
}

.homay-carousel-button:hover {
    background-color: #812988;
    color: #ffffff;
    border-color: #812988;
}

.homay-carousel-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* نقاط ناوبری */
.swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d3d3d3;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #812988;
    transform: scale(1.2);
}

/* نمایش جزئی از اسلاید بعدی */
.homay-carousel .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.7;
}

.homay-carousel .swiper-slide-next {
    opacity: 1;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .homay-carousel-item {
        padding: 25px;
    }
    
    .homay-carousel-icon i {
        font-size: 56px;
    }
    
    .homay-carousel-icon svg {
        width: 56px;
        height: 56px;
    }
    
    .homay-carousel-divider {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .homay-carousel-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .homay-carousel-icon {
        margin-bottom: 10px;
    }
    
    .homay-carousel-icon i {
        font-size: 48px;
    }
    
    .homay-carousel-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .homay-carousel-divider {
        width: 60px;
        height: 2px;
        margin: 10px auto;
    }
    
    .homay-carousel-text {
        text-align: center;
    }
    
    .homay-carousel-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .homay-carousel-item {
        padding: 15px;
    }
    
    .homay-carousel-icon i {
        font-size: 40px;
    }
    
    .homay-carousel-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .homay-carousel-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .homay-carousel-description {
        font-size: 0.85rem;
    }
    
    .homay-carousel-button {
        width: 35px;
        height: 35px;
    }
    
    .homay-carousel-button svg {
        width: 16px;
        height: 16px;
    }
}

/* تنظیمات Swiper برای نمایش جزئی اسلاید بعدی */
.homay-carousel[data-offset="yes"] .swiper-wrapper {
    padding-left: 20px;
}

.homay-carousel[data-offset="yes"] .swiper-slide {
    margin-right: 20px;
}