/* Base Styles */
.case-studies-page {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.case-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                     url('../img/case-studies-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.case-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.case-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    background: #f8fafc;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 30px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Case Studies Grid */
.case-studies-section {
    padding: 80px 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 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.05);
    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.1);
}

.case-study-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.industry-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.industry-tag.corporate { background: #2563eb; }
.industry-tag.legal { background: #10b981; }
.industry-tag.medical { background: #ef4444; }
.industry-tag.government { background: #8b5cf6; }
.industry-tag.ngo { background: #f59e0b; }

.case-study-content {
    padding: 25px;
}

.case-study-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.case-study-content p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.case-study-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.case-study-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #475569;
}

.case-study-stats .stat i {
    color: #2563eb;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: #f8fafc;
    border-radius: 10px;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.cta-section p {
    color: #64748b;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .case-studies-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .case-hero {
        padding: 80px 0;
    }
    
    .case-hero h1 {
        font-size: 2rem;
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .case-hero {
        padding: 60px 0;
    }
    
    .case-hero h1 {
        font-size: 1.8rem;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
}