/* ============================================= */
/* Creative Sections Widget - Complete CSS */
/* ============================================= */

.creative-sections-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    gap: 10px;
    direction: rtl;
}

.creative-section {
    position: relative;
    overflow: hidden;
    width: 33.33%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    padding: 25px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 8px;
}

/* لایه برای افکت تصویر زمینه */
.creative-section .background-zoom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    opacity: 0;
    transform: scale(1);
}

.creative-section:hover .background-zoom {
    opacity: 1;
    transform: scale(1.05);
}

/* هدر سکشن */
.section-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 5px;
}

.creative-icon {
    font-size: 40px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    order: 1;
    margin-right: 0;
    margin-bottom: 0;
}

.creative-title {
    font-weight: bold;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: right;
    margin: 0;
    order: 2;
    flex-grow: 1;
    padding-left: 15px;
}

/* محتوای سکشن */
.section-content {
    max-height: 0;
    overflow: hidden;
    text-align: right;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
}

.creative-content {
    line-height: 1.6;
    padding-top: 15px;
    margin-bottom: 15px;
    transition: all 0.8s ease;
}

.creative-button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid white;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
}

/* حالت hover */
.creative-section:hover .section-header {
    transform: translateY(-40px);
}

.creative-section:hover .section-content {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 10px;
}

.creative-section:hover .creative-button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.creative-button:hover {
    background: rgba(255,255,255,0.3);
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .creative-sections-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .creative-section {
        width: 100% !important;
        height: 300px;
    }
    
    .section-content {
        max-height: none !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding-top: 15px !important;
    }
    
    .section-header {
        transform: translateY(0) !important;
    }
    
    .creative-button {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .creative-section .background-zoom {
        display: none;
    }
}

/* انیمیشن‌های سفارشی */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomBackground {
    from {
        transform: scale(1);
        opacity: 0;
    }
    to {
        transform: scale(1.05);
        opacity: 1;
    }
}

.creative-section:hover .section-content {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.creative-section:hover .background-zoom {
    animation: zoomBackground 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}