/* =========================================
   ALL CASE STUDIES PAGE STYLES
========================================= */

/* Hero Section */
.cs-hero {
    background-color: var(--color-primary, #1e65ab);
    padding: 80px 0;
    color: var(--color-white, #fff);
    position: relative;
    overflow: hidden;
}

/* Background subtle pattern/gradient */
.cs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.cs-hero-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: var(--container-padding, 0 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cs-hero-content {
    flex: 1;
    max-width: 600px;
}

.cs-hero-content h1 {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cs-hero-content p {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cs-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-white, #fff);
    color: var(--color-primary, #1e65ab);
    padding: 12px 24px;
    border-radius: var(--radius-pill, 50px);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast, 0.2s);
}

.cs-hero-btn:hover {
    transform: translateY(-2px);
}

.cs-hero-stats {
    background: var(--color-white, #fff);
    color: var(--color-text-dark, #121212);
    padding: 30px;
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-card, 0 10px 30px rgba(0,0,0,0.08));
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 250px;
}

.cs-stat-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-stat-item strong {
    font-size: 20px;
    color: var(--color-text-dark, #121212);
}

@media (max-width: 900px) {
    .cs-hero-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .cs-hero-stats {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

/* Main Content */
.cs-main-content {
    background-color: var(--color-white, #fff);
    padding: 40px 0 80px;
}

.cs-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: var(--container-padding, 0 2rem);
}

.cs-breadcrumbs {
    font-size: 13px;
    color: var(--color-text-light, #5B5B5B);
    margin-bottom: 20px;
}

.cs-breadcrumbs a {
    color: var(--color-text-light, #5B5B5B);
    text-decoration: none;
}

.cs-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-dark, #121212);
    margin-bottom: 30px;
}

/* Filters */
.cs-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 40px;
    position: relative;
    scrollbar-width: none; /* Firefox */
}
.cs-filters::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.cs-filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-pill, 50px);
    background: var(--color-bg-light, #f4f5f7);
    color: var(--color-text-light, #5B5B5B);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cs-filter-btn:hover {
    background: #e9eaee;
}

.cs-filter-btn.active {
    background: #007a6a; /* Distinctive teal for active from image */
    color: var(--color-white, #fff);
}

.cs-filter-scroll-hint {
    display: none;
}

/* Grid */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .cs-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.cs-card {
    background: var(--color-white, #fff);
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cs-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card, 0 10px 30px rgba(0,0,0,0.08));
}

.cs-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    padding: 10px 10px 0;
}

.cs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.cs-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: var(--radius-pill, 50px);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific Badge Colors based on categories */
.cs-badge.geo-llmo { background: #e8f5e9; color: #2e7d32; }
.cs-badge.bfsi { background: #e3f2fd; color: #1565c0; }
.cs-badge.business { background: #fff3e0; color: #ef6c00; }
.cs-badge.healthcare { background: #fce4ec; color: #c2185b; }
.cs-badge.seo { background: #e0f7fa; color: #00838f; }
.cs-badge.ppc { background: #f3e5f5; color: #6a1b9a; }
.cs-badge.marketing { background: #fff8e1; color: #f57f17; }
.cs-badge.automobile { background: #eceff1; color: #455a64; }

.cs-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark, #121212);
    margin-bottom: 20px;
    line-height: 1.4;
    flex: 1;
}

.cs-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--color-primary, #1e65ab);
    border-radius: var(--radius-pill, 50px);
    color: var(--color-primary, #1e65ab);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.cs-card-link:hover {
    background: var(--color-primary, #1e65ab);
    color: var(--color-white, #fff);
}
