/* Case Studies New Page - Compact & Clean Design */

/* Hero Section */
.cs-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.cs-hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.cs-hero-highlight {
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.15) 0%, rgba(0, 128, 128, 0.08) 100%);
    padding: 0 0.5rem;
    border-radius: 4px;
    color: #008080;
}

.cs-hero-description {
    font-size: 0.8rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.cs-hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #008080;
}

.cs-stat-label {
    font-size: 0.7rem;
    opacity: 0.7;
    color: #64748b;
}

/* Overview Section */
.cs-overview {
    padding: 2.5rem 0;
    background: white;
}

.cs-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cs-section-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cs-section-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Case Studies Grid */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.cs-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #008080;
}

.cs-card-featured {
    border: 2px solid #008080;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.cs-featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #008080;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cs-card-header {
    margin-bottom: 0.85rem;
}

.cs-company-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cs-company-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.cs-industry-badge {
    display: inline-flex;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    width: fit-content;
}

.cs-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.cs-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: #64748b;
}

.cs-meta-icon {
    font-size: 0.9rem;
}

.cs-card-description {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* KPIs */
.cs-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    background: #f8fafc;
    border-radius: 6px;
}

.cs-kpi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cs-kpi-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #008080;
    margin-bottom: 0.2rem;
}

.cs-kpi-label {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.3;
}

.cs-card-link {
    color: #008080;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.cs-card-link:hover {
    color: #006666;
    gap: 0.5rem;
}

/* Detail Section */
.cs-detail-section {
    padding: 2.5rem 0;
    background: white;
}

.cs-detail-section:nth-child(even) {
    background: #f8fafc;
}

.cs-detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cs-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cs-detail-icon {
    font-size: 1.75rem;
}

.cs-detail-subtitle {
    font-size: 0.8rem;
    color: #64748b;
}

.cs-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.cs-content-section {
    margin-bottom: 2rem;
}

.cs-content-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.85rem;
}

.cs-content-section p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #475569;
}

/* Rich Text Content Styling */
.cs-content-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #475569;
}

.cs-content-text p {
    margin-bottom: 1rem;
}

.cs-content-text ul,
.cs-content-text ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
}

.cs-content-text li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.cs-content-text h1,
.cs-content-text h2,
.cs-content-text h3,
.cs-content-text h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
    font-weight: 700;
    color: #1e293b;
}

.cs-content-text h1 { font-size: 1.4rem; }
.cs-content-text h2 { font-size: 1.2rem; }
.cs-content-text h3 { font-size: 1.05rem; }
.cs-content-text h4 { font-size: 0.95rem; }

.cs-content-text strong {
    font-weight: 600;
    color: #1e293b;
}

.cs-content-text a {
    color: #008080;
    text-decoration: underline;
}

.cs-content-text a:hover {
    color: #006666;
}

.cs-content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
}

.cs-content-text table th,
.cs-content-text table td {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.8rem;
}

.cs-content-text table th {
    background: #f8fafc;
    font-weight: 600;
}

/* Solution Points */
.cs-solution-points {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.cs-solution-point {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #008080;
}

.cs-solution-point-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cs-solution-icon {
    color: #008080;
    font-weight: 700;
    font-size: 1rem;
}

.cs-solution-point h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cs-solution-point p {
    font-size: 0.75rem;
    margin: 0;
    color: #64748b;
}

/* Results Grid */
.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.cs-result-card {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 128, 128, 0.2);
}

.cs-result-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cs-result-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* Testimonial */
.cs-testimonial {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #008080;
    margin-top: 2rem;
    position: relative;
}

.cs-testimonial-icon {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 3rem;
    color: #008080;
    opacity: 0.15;
    font-family: Georgia, serif;
}

.cs-testimonial-quote {
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.cs-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-left: 2rem;
}

.cs-author-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
}

.cs-author-title {
    font-size: 0.7rem;
    color: #64748b;
}

.cs-detail-action {
    text-align: center;
    margin-top: 2rem;
}

/* Buttons */
.cs-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cs-btn-primary {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
}

.cs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

.cs-btn-secondary {
    background: white;
    color: #008080;
    border-color: #008080;
}

.cs-btn-secondary:hover {
    background: #008080;
    color: white;
}

/* Empty State */
.cs-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cs-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cs-empty h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.cs-empty p {
    font-size: 0.85rem;
    color: #64748b;
}

/* CTA Section */
.cs-cta {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cs-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cs-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cs-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-cta .cs-btn-primary {
    background: white;
    color: #008080;
}

.cs-cta .cs-btn-primary:hover {
    background: #f8fafc;
}

.cs-cta .cs-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cs-cta .cs-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cs-hero {
        padding: 120px 0 50px;
    }
    
    .cs-hero h1 {
        font-size: 1.5rem;
    }
    
    .cs-hero-stats {
        gap: 1.5rem;
    }
    
    .cs-grid {
        grid-template-columns: 1fr;
    }
    
    .cs-detail-title {
        font-size: 1.25rem;
        flex-direction: column;
    }
    
    .cs-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cs-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cs-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cs-hero h1 {
        font-size: 1.25rem;
    }
    
    .cs-stat-value {
        font-size: 1.25rem;
    }
    
    .cs-kpis {
        grid-template-columns: 1fr;
    }
    
    .cs-results-grid {
        grid-template-columns: 1fr;
    }
}
