/* Case Study Styles */

.case-study-hero {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 80px;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    opacity: 0.7;
}

.case-study-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.case-study-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.case-study-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Metadata Section */
.case-study-metadata {
    background: #f8f9fa;
    padding: 50px 0;
    border-bottom: 1px solid #e9ecef;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.metadata-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.metadata-item p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

.metadata-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metadata-item ul li {
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.metadata-item ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Content */
.case-study-content {
    padding: 80px 0;
    background: white;
}

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

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.content-section ul,
.content-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-color);
}

.highlight-text {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    padding: 20px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.15rem;
}

.callout {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7f0 100%);
    padding: 20px;
    border-left: 4px solid #17a2b8;
    border-radius: 4px;
    font-style: italic;
    font-size: 1.15rem;
    color: #0c5460;
}

.principle-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border: 2px solid #e9ecef;
}

.principle-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.principle-box ol {
    margin: 0;
    padding-left: 20px;
}

.principle-box li {
    margin-bottom: 15px;
    font-weight: 500;
}

.challenge-list {
    list-style: none;
    padding-left: 0;
}

.challenge-list li {
    padding-left: 30px;
    position: relative;
}

.challenge-list li:before {
    content: "❓";
    position: absolute;
    left: 0;
}

.key-points {
    list-style: none;
    padding-left: 0;
}

.key-points li {
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}

.key-points li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.3rem;
}

.testimonial {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6eeff 100%);
    border-left: 4px solid #667eea;
    padding: 30px;
    margin: 30px 0;
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: #2c3e50;
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px;
    border-radius: 12px;
    margin: 60px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.result-label {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* CTA Section */
.case-study-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.case-study-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.case-study-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    color: white;
}

.case-study-cta .btn {
    background-color: #2d3748;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.case-study-cta .btn:hover {
    background-color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Case Studies Listing */
.case-studies-listing {
    padding: 80px 0;
    background: #f8f9fa;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.case-study-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.case-study-card.coming-soon {
    border: 2px dashed #dee2e6;
    background: #f8f9fa;
}

.case-study-card-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.industry-tag,
.timeline-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.industry-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.timeline-tag {
    background: #e9ecef;
    color: #495057;
}

.case-study-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.case-study-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-card h2 a:hover {
    color: var(--primary-color);
}

.case-study-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 25px;
    flex-grow: 1;
}

.case-study-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.result-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .case-study-hero {
        padding: 100px 0 40px;
    }

    .case-study-hero h1 {
        font-size: 2rem;
    }

    .case-study-meta {
        gap: 10px;
    }

    .case-study-meta span {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section p,
    .content-section li {
        font-size: 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .result-number {
        font-size: 2rem;
    }

    .case-study-cta h2 {
        font-size: 1.8rem;
    }

    .case-study-cta p {
        font-size: 1rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-study-card {
        padding: 30px;
    }

    .case-study-results {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .metadata-item h3 {
        font-size: 0.9rem;
    }

    .metadata-item ul li {
        font-size: 0.9rem;
    }
}
