/* Case Studies Fix CSS */

/* Ensure case studies section has proper styling */
.case-studies-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-study-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-study-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 25px;
}

.case-study-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #2c3e50;
    line-height: 1.3;
}

.case-study-content p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.case-study-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.case-study-category {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-study-results {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.case-study-results h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.case-study-results ul {
    margin: 0;
    padding-left: 20px;
}

.case-study-results li {
    margin-bottom: 5px;
    color: #666;
}

/* Fix for case study detail pages */
.case-study-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.case-study-detail .hero-image {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.case-study-detail .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-study-content {
        padding: 20px;
    }
    
    .case-study-content h3 {
        font-size: 1.2rem;
    }
    
    .case-study-detail {
        padding: 20px 15px;
    }
    
    .case-study-detail .hero-image {
        height: 200px;
    }
}

/* Fix for white text visibility */
.case-study-card,
.case-study-content,
.case-study-detail {
    color: #333;
    background-color: white;
}

.case-study-card h3,
.case-study-detail h1,
.case-study-detail h2,
.case-study-detail h3 {
    color: #2c3e50;
}

.case-study-card p,
.case-study-detail p {
    color: #666;
}

/* Ensure proper contrast for all text elements */
.case-studies-section * {
    color: inherit;
}

.case-studies-section h2 {
    color: #2c3e50;
}

.case-studies-section .section-header p {
    color: #666;
} 