/* Case Studies Page Styles */

/* Hero Section */
.hero-section {
    background-color: #0a2540;
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Case Studies Container */
.case-studies-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

/* Industry Filters */
.industry-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #e9ecef;
}

.filter-btn.active {
    background-color: #0a2540;
    color: white;
    border-color: #0a2540;
}

/* Case Study Card */
.case-study-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.case-study-header {
    display: flex;
    flex-direction: column;
}

.case-study-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    aspect-ratio: 16/9;
    border-radius: 8px 8px 0 0;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
}

.case-study-meta {
    padding: 30px;
    background-color: #0a2540;
    color: white;
}

.industry-tag {
    display: inline-block;
    background-color: #d00;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.case-study-meta h2 {
    color: white;
    margin: 0 0 15px;
    font-size: 1.8rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Case Study Content */
.case-study-content {
    padding: 40px;
}

.challenge-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.challenge h3, .solution h3 {
    color: #0a2540;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.challenge h3:after, .solution h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
}

.challenge h3:after {
    background-color: #d00;
}

.solution h3:after {
    background-color: #0a2540;
}

.challenge p, .solution p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.challenge ul, .solution ul {
    color: #4a5568;
    padding-left: 20px;
}

.challenge ul li, .solution ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Results Section */
.results {
    margin-bottom: 40px;
}

.results h3 {
    color: #0a2540;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.4rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.results h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #d00;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.result-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.result-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d00;
    margin-bottom: 10px;
}

.result-item p {
    color: #4a5568;
    margin: 0;
    line-height: 1.4;
}

/* Testimonial */
.testimonial {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    margin-bottom: 40px;
}

.quote-mark {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: #d00;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote {
    margin: 0 0 20px;
    padding-left: 40px;
    font-style: italic;
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author p {
    margin: 0;
    color: #4a5568;
}

/* Download Section */
.download-section {
    text-align: center;
}

.download-btn {
    display: inline-block;
    background-color: #0a2540;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #0d3158;
}

.download-btn::before {
    content: "↓ ";
}

/* Contact CTA */
.contact-cta {
    background-color: #0a2540;
    color: white;
    padding: 50px;
    border-radius: 8px;
    text-align: center;
    margin-top: 60px;
}

.contact-cta h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-button {
    display: inline-block;
    background-color: #d00;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #aa0000;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.4rem;
    }
    
    .challenge-solution {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-study-header {
        flex-direction: column;
    }
    
    .case-study-image {
        height: 200px;
    }
    
    .case-study-content {
        padding: 25px;
    }
    
    .testimonial {
        padding: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .industry-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cta {
        padding: 30px;
    }
}

/* Placeholder styles */
.case-study-image img[src*="placeholder.png"] {
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 14px;
}
