/* Case Studies Module Stylesheet - Webcrawlio Data Solutions */
:root {
    --cs-primary: #2563eb;
    --cs-primary-dark: #1d4ed8;
    --cs-accent: #3b82f6;
    --cs-dark-bg: #0f172a;
    --cs-card-bg: #ffffff;
    --cs-border: #e2e8f0;
    --cs-text-main: #0f172a;
    --cs-text-muted: #64748b;
    --cs-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
}

.cs-hero-section {
    background: var(--cs-gradient);
    color: #ffffff;
    padding: 4.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.cs-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.cs-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cs-hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 760px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Filter Bar */
.cs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.5rem 0 1rem;
    align-items: center;
}

.cs-filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cs-filter-btn:hover,
.cs-filter-btn.active {
    background: var(--cs-primary);
    color: #ffffff;
    border-color: var(--cs-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Grid Layout */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

@media (max-width: 768px) {
    .cs-grid {
        grid-template-columns: 1fr;
    }
    .cs-hero-title {
        font-size: 2rem;
    }
}

/* Card Design */
.cs-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.cs-card-img-wrapper {
    height: 210px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #1e293b;
}

.cs-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cs-card:hover .cs-card-img {
    transform: scale(1.06);
}

.cs-card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #93c5fd;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cs-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-card-client {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cs-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.cs-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cs-text-main);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.cs-card-summary {
    font-size: 0.92rem;
    color: var(--cs-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.cs-metrics-pill {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

.cs-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.cs-tech-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

.cs-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cs-read-btn {
    color: var(--cs-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}

.cs-card:hover .cs-read-btn {
    gap: 0.7rem;
}

/* Detail View Components */
.cs-detail-hero {
    background: var(--cs-gradient);
    color: #ffffff;
    padding: 4rem 1.5rem 5rem;
}

.cs-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

@media (max-width: 992px) {
    .cs-detail-grid {
        grid-template-columns: 1fr;
    }
}

.cs-section-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.cs-section-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cs-text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cs-section-box p {
    font-size: 1rem;
    color: #334155;
    line-height: 1.7;
}

.cs-sidebar-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.cs-cta-box {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.cs-cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cs-cta-box p {
    font-size: 1.05rem;
    color: #dbeafe;
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cs-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    color: var(--cs-primary);
    font-weight: 800;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
