/* ═══════════════════════════════════════════════════════════
   CASE STUDIES PAGE - MATCHING STRATEGIC SOLUTIONS DESIGN
   ═══════════════════════════════════════════════════════════ */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Case Studies Hero */
.case-studies-hero {
    margin-top: 80px;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(55, 65, 81, 0.85) 100%);
}

.case-studies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(58, 123, 213, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.case-studies-hero .container {
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FFFFFF;
    transform: translateX(-5px);
}

.back-link i {
    font-size: 12px;
}

.case-studies-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.case-studies-category {
    padding: 8px 16px;
    background: #3A7BD5;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.case-studies-date {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.case-studies-hero h1 {
    font-size: 56px;
    font-weight: 300;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.case-studies-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    line-height: 1.6;
}

/* Case Studies Content */
.case-studies-content {
    padding: 100px 0;
    background: #FFFFFF;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-studies-intro {
    padding: 40px;
    background: #F9FAFB;
    border-left: 4px solid #3A7BD5;
    margin-bottom: 60px;
}

.case-studies-intro p {
    font-size: 19px;
    font-weight: 400;
    color: #1F2937;
    line-height: 1.8;
    margin: 0;
}

.case-studies-section {
    margin-bottom: 60px;
}

.case-studies-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 24px;
}

.case-studies-section p {
    font-size: 17px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Case Study Cards */
.case-study-list {
    margin-top: 40px;
}

.case-study-item {
    display: flex;
    gap: 30px;
    padding: 32px 0;
    border-bottom: 1px solid #E5E7EB;
}

.case-study-item:last-child {
    border-bottom: none;
}

.case-study-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #F9FAFB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #3A7BD5;
}

.case-study-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.case-study-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #E0E7FF;
    color: #3730A3;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.case-study-content p {
    font-size: 16px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

.case-study-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.case-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #3A7BD5;
    line-height: 1;
}

.case-stat-label {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3A7BD5;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-study-link:hover {
    color: #2563B8;
    gap: 12px;
}

.case-study-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.case-study-link:hover i {
    transform: translateX(5px);
}

/* Case Studies CTA */
.case-studies-cta {
    margin: 80px 0 60px;
    padding: 60px;
    background: linear-gradient(135deg, #3A7BD5 0%, #2563EB 100%);
    border-radius: 16px;
    text-align: center;
    color: #FFFFFF;
}

.case-studies-cta h2 {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.case-studies-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #FFFFFF;
    color: #3A7BD5;
    border-color: #FFFFFF;
}

.btn-primary:hover {
    background: #F9FAFB;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn-secondary:hover {
    background: #FFFFFF;
    color: #3A7BD5;
    transform: translateY(-4px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* Share Section */
.case-studies-share {
    margin: 60px 0;
    padding: 40px;
    background: #F9FAFB;
    border-radius: 12px;
    text-align: center;
}

.case-studies-share h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 24px;
}

.share-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.share-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #3A7BD5;
    border-color: #3A7BD5;
    color: #FFFFFF;
    transform: translateY(-4px);
}

/* Related Insights */
.related-insights {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #E5E7EB;
}

.related-insights h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.related-card {
    padding: 24px;
    background: #F9FAFB;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-card:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.related-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card p {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    margin: 0;
}

.view-all-insights {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #3A7BD5;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 123, 213, 0.3);
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .case-studies-hero {
        padding: 60px 0 40px;
    }
    
    .case-studies-hero h1 {
        font-size: 36px;
    }
    
    .case-studies-subtitle {
        font-size: 16px;
    }
    
    .case-studies-content {
        padding: 60px 0;
    }
    
    .case-studies-intro {
        padding: 30px 20px;
    }
    
    .case-studies-intro p {
        font-size: 16px;
    }
    
    .case-studies-section h2 {
        font-size: 26px;
    }
    
    .case-study-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .case-study-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .case-studies-cta {
        padding: 40px 30px;
    }
    
    .case-studies-cta h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .case-studies-hero h1 {
        font-size: 28px;
    }
    
    .case-studies-subtitle {
        font-size: 14px;
    }
}
