/* Case Studies Specific Styles */

.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2A5CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.3rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

.case-studies-grid {
    padding: 80px 0;
    background: white;
}

.studies-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.study-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #F5F5F5;
}

.study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.study-header {
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #E8F2FF;
}

.study-title {
    flex: 1;
}

.study-title h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.study-impact {
    background: linear-gradient(135deg, #00BFE6 0%, #2A5CFF 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.study-integrations {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 2rem;
}

.study-integrations img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.study-content {
    padding: 2.5rem;
}

.study-section {
    margin-bottom: 2.5rem;
}

.study-section:last-child {
    margin-bottom: 0;
}

.study-section h4 {
    color: #2A5CFF;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.study-section p {
    line-height: 1.8;
    color: #555;
}

/* Workflow Diagram */
.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #FAFAFA;
    border-radius: 12px;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A5CFF 0%, #7A3FFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(42, 92, 255, 0.3);
}

.workflow-step span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.workflow-arrow {
    font-size: 1.5rem;
    color: #2A5CFF;
    font-weight: bold;
    margin: 0 1rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.result-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
    border-radius: 12px;
    border: 1px solid #E8F2FF;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2A5CFF;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.result-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Footer Overrides for Light Theme */
.footer {
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%) !important;
    color: #333 !important;
    border-top: 1px solid #E8F2FF !important;
}

.footer-brand p {
    color: #666666 !important;
}

.link-group h4 {
    color: #2A5CFF !important;
    font-weight: 600 !important;
}

.link-group a {
    color: #666666 !important;
}

.link-group a:hover {
    color: #2A5CFF !important;
}

.link-group p {
    color: #666666 !important;
}

.footer-bottom {
    border-top: 1px solid #E8F2FF !important;
}

.footer-bottom p {
    color: #999999 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .study-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .study-integrations {
        margin-left: 0;
        justify-content: center;
    }
    
    .study-content {
        padding: 2rem;
    }
    
    .workflow-diagram {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .workflow-step {
        min-width: auto;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .result-item {
        padding: 1rem;
    }
    
    .result-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .study-title h3 {
        font-size: 1.5rem;
    }
    
    .study-integrations img {
        width: 32px;
        height: 32px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .workflow-step {
        min-width: 100px;
    }
    
    .workflow-step span {
        font-size: 0.8rem;
    }
}
