/* Creative Tabs Widget Styles */

.creative-tabs-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
}

.creative-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

/* Left Content Section */
.creative-tabs-content {
    position: relative;
    flex: 0 0 50%;
    max-width: 50%;
}

.creative-tabs-list {
    position: relative;
    z-index: 2;
    width: 100%;
}

.creative-tab-item {
    margin-bottom: 40px;
    padding-left: 30px;
    border-left: 3px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.6;
}

.creative-tab-item:hover,
.creative-tab-item.active {
    border-left-color: #1a1a1a;
    transform: translateX(10px);
    opacity: 1;
}

.creative-tab-item.active {
    border-left-width: 5px;
}

.creative-tab-item:last-child {
    margin-bottom: 0;
}

.tab-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.tab-description {
    font-size: 16px;
    line-height: 1.6;
    color: #999999;
    margin: 0;
}

/* Right Image Section */
.creative-tabs-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    flex: 1 1 auto;
}

.tab-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
}

.tab-image.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.tab-image img,
.creative-tabs-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

/* Desktop: absolute positioning for smooth transitions */
@media (min-width: 769px) {
    .creative-tabs-image {
        height: 500px;
    }
}

.creative-tabs-image:hover .tab-image.active img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .creative-tabs-wrapper {
        flex-direction: column;
    }
    
    .creative-tabs-content,
    .creative-tabs-image {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .creative-tabs-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .creative-tabs-container {
        padding: 40px 15px;
    }
    
    .creative-tabs-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .creative-tabs-content,
    .creative-tabs-image {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100%;
    }
    
    .creative-tabs-list {
        width: 100%;
    }
    
    .creative-tabs-image {
        order: 2;
        min-height: auto;
        height: auto;
    }
    
    .tab-image {
        display: none;
        position: relative;
        height: auto;
    }
    
    .tab-image.active {
        display: block;
    }
    
    .tab-image img {
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .tab-title {
        font-size: 22px;
    }
    
    .tab-description {
        font-size: 14px;
    }
    
    .creative-tab-item {
        margin-bottom: 30px;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .creative-tabs-container {
        padding: 30px 10px;
    }
    
    .tab-title {
        font-size: 20px;
    }
    
    .tab-description {
        font-size: 13px;
    }
    
    .creative-tab-item {
        margin-bottom: 25px;
        padding-left: 15px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.creative-tab-item {
    animation: fadeInUp 0.6s ease forwards;
}

.creative-tab-item:nth-child(1) {
    animation-delay: 0.1s;
}

.creative-tab-item:nth-child(2) {
    animation-delay: 0.2s;
}

.creative-tab-item:nth-child(3) {
    animation-delay: 0.3s;
}

.creative-tab-item:nth-child(4) {
    animation-delay: 0.4s;
}

.creative-tab-item:nth-child(5) {
    animation-delay: 0.5s;
}
