/* Wrapper dla całej sekcji */
.cwp-wrapper-case-studies {
    background: #F8F8F8;
    width: 100%;
    padding: 0;
    margin: 0;
}

.cwp-case-studies {
    background: #F8F8F8;
    color: #2c3e50;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 auto;
    overflow: visible !important;
    max-width: 1400px;
}

.cwp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
    padding: 0;
}

.cwp-header-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.cwp-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cwp-header-text {
    flex: 1;
}

.cwp-category {
    color: linear-gradient(30deg, #7f31ff 0%, #4279f1 100%) !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.cwp-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
}

.cwp-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #7f8c8d;
    margin: 0;
    max-width: 500px;
}

.cwp-navigation {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.cwp-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #7f31ff;
    background: transparent;
    border-radius: 50%;
    color: #7f31ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cwp-nav-btn:hover {
    background: linear-gradient(to bottom, #7f31ff 0%, #4279f1 100%);
    color: white;
    border-color: #7f31ff;
}

.cwp-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cwp-carousel-container {
    width: 100%;
    overflow: visible;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.cwp-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    width: max-content;
    padding-right: 2rem;
}

.cwp-card {
    background: white;
    color: #1f2937;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    min-width: 500px;
    max-width: 500px;
    height: 450px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
}

.cwp-card-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(127, 49, 255, 0.1) 0%, rgba(66, 121, 241, 0.1) 100%);
    color: #7f31ff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    align-self: flex-start;
    border: 1px solid rgba(127, 49, 255, 0.2);
}

.cwp-card-title {
    font-size: 26px !important;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    color: #111827;
}

.cwp-card-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 1.5rem 0;
    flex: 1;
    padding-top: 20px;
}

.cwp-card-effect {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(127, 49, 255, 0.1) 0%, rgba(66, 121, 241, 0.1) 100%);
    padding: 1rem;
    border-radius: 12px;
    margin-top: auto;
}

.cwp-effect-icon {
    flex-shrink: 0;
}

.cwp-effect-text {
    font-size: 0.875rem;
    color: #7f31ff;
    font-weight: 500;
}

/* Responsywność */
@media (max-width: 1200px) {
    .cwp-card {
        min-width: 350px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .cwp-case-studies {
        padding: 2rem 1rem;
    }
    
    .cwp-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cwp-title {
        font-size: 2rem;
    }
    
    .cwp-subtitle {
        font-size: 1rem;
    }
    
    .cwp-card {
        padding: 1.5rem;
        min-width: 300px;
        max-width: 300px;
    }
    
    .cwp-navigation {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .cwp-title {
        font-size: 1.75rem;
    }
    
    .cwp-card {
        padding: 1rem;
        min-width: 280px;
        max-width: 280px;
    }
    
    .cwp-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Sekcja Workflow AI */
.cwp-workflow-ai {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    border: 2px dashed #7f31ff;
    border-radius: 8px;
}

.cwp-workflow-header {
    max-width: 800px;
    margin: 0 auto;
}

.cwp-workflow-category {
    color: #7f31ff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.cwp-workflow-category::before,
.cwp-workflow-category::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #7f31ff;
}

.cwp-workflow-category::before {
    right: 100%;
    margin-right: 1rem;
}

.cwp-workflow-category::after {
    left: 100%;
    margin-left: 1rem;
}

.cwp-workflow-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.cwp-workflow-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
    text-align: left;
}

/* Responsywność dla Workflow AI */
@media (max-width: 768px) {
    .cwp-workflow-ai {
        padding: 2rem 1rem;
    }
    
    .cwp-workflow-title {
        font-size: 2.25rem;
    }
    
    .cwp-workflow-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .cwp-workflow-category::before,
    .cwp-workflow-category::after {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .cwp-workflow-title {
        font-size: 1.875rem;
    }
    
    .cwp-workflow-category::before,
    .cwp-workflow-category::after {
        display: none;
    }
}
