/* Main container styles */
.custom-slideshow-tabs {
    --accent-color: #8B5FBF;
    --accent-light: #C8A8E8;
    --background-color: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e1e5e9;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.slideshow-tabs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
   /* background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    */
}

/* Left side - Tab cards */
.tabs-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tab-card.active {
    background: white;
    border-color: var(--accent-color);
    border-width: 2px;
    color: inherit;
    transform: translateY(-4px);
}

.tab-card.active .tab-title,
.tab-card.active {
    color: inherit;
}

.tab-card.active .step-badge {
    background: var(--accent-color);
    color: white;
}

/* Tab icon and badge */
.tab-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tab-icon .icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: var(--transition);
}

.tab-icon .icon svg {
    width: 24px;
    height: 24px;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

.tab-card.active .tab-icon .icon {
    background: white;
    color: inherit;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(139, 95, 191, 0.2);
}

.tab-card.active .tab-icon .icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.step-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* Tab content */
.tab-content {
    flex: 1;
    min-width: 0;
}

.tab-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    transition: var(--transition);
}

.tab-description {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    line-height: 1.5;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tab-details {
    margin: 1rem 0 0 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
}

.tab-card.active .tab-details {
    opacity: 1;
    transform: translateY(0);
}

.tab-details ul {
    list-style: none !important;
    padding: 0 !important;
}

.tab-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}
.tab-details li:marker {

}

.tab-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Right side - Image and indicator */
.image-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

@media screen and (min-width: 769px) {
    .image-right {
        top: 3rem;
        position: sticky;
    }
}

.slideshow-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: opacity 0.6s ease-in-out;
    will-change: opacity;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.step-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-slideshow-tabs.in-view .tab-card {
    animation: slideInLeft 0.6s ease forwards;
}

.custom-slideshow-tabs.in-view .tab-card:nth-child(2) {
    animation-delay: 0.1s;
}

.custom-slideshow-tabs.in-view .tab-card:nth-child(3) {
    animation-delay: 0.2s;
}

.custom-slideshow-tabs.in-view .tab-card:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .slideshow-tabs-container {
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .tab-card {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .slideshow-tabs-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .custom-slideshow-tabs.mobile-layout .tabs-left {
        order: 2;
    }
    
    .custom-slideshow-tabs.mobile-layout .image-right {
        order: 1;
    }
    
    .tab-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tab-icon {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .tab-icon .icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .tab-details {
        display: none;
    }
    
    .tab-card.active .tab-details {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .custom-slideshow-tabs {
        margin: 1rem 0;
    }
    
    .slideshow-tabs-container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .tab-card {
        padding: 1rem;
    }
    
    .tab-title {
        font-size: 1.1rem;
    }
    
    .tab-description {
        font-size: 0.9rem;
    }
    
    .step-indicator {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Accessibility improvements */
.tab-card:focus {
    outline: none !important;
}

.tab-card[role="tab"] {
    cursor: pointer;
}

.tab-card[role="tab"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .custom-slideshow-tabs {
        --accent-color: #000;
        --accent-light: #333;
        --border-color: #000;
    }
    
    .tab-card {
        border: 2px solid var(--border-color);
    }
    
    .tab-card.active {
        background: var(--accent-color);
        border-color: var(--accent-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .custom-slideshow-tabs * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .custom-slideshow-tabs {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .tab-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .slideshow-image {
        max-height: 300px;
    }
}