/* ==========================================================================
   Case Studies Page Styles
   Prefix: cs-
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.cs-hero {
    padding: 120px 0 120px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1f8 100%);
}

.cs-hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: #e8eeff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cs-hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.cs-hero__title span {
    color: #2563eb;
    font-weight: 300;
}

.cs-hero__desc {
    font-size: 18px;
    line-height: 1.6;
    color: #4a4a68;
    max-width: 540px;
}

.cs-hero__stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cs-hero__stat-item {
    background: #fff;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f8;
}

.cs-hero__stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 8px;
}

.cs-hero__stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Filter Bar
   -------------------------------------------------------------------------- */
.cs-filter {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.cs-filter--sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.cs-filter__inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cs-filter__inner::-webkit-scrollbar {
    display: none;
}

.cs-filter__btn {
    flex-shrink: 0;
    padding: 10px 22px;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cs-filter__btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f0f4ff;
}

.cs-filter__btn.is-active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* --------------------------------------------------------------------------
   Grid Section
   -------------------------------------------------------------------------- */
.cs-grid-section {
    padding: 60px 0 40px;
}

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

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.cs-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.cs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.cs-card--hidden {
    display: none !important;
}

.cs-card--visible {
    animation: csFadeIn 0.4s ease forwards;
}

@keyframes csFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cs-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.cs-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cs-card:hover .cs-card__image img {
    transform: scale(1.05);
}

.cs-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.cs-card__body {
    padding: 24px 24px 16px;
    flex: 1;
}

.cs-card__company {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cs-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 10px;
}

.cs-card__summary {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.cs-card__footer {
    padding: 16px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.cs-card__metric {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cs-card__metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #059669;
}

.cs-card__metric-label {
    font-size: 13px;
    color: #6b7280;
}

.cs-card__link {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
    white-space: nowrap;
}

.cs-card__link:hover {
    gap: 10px;
    color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Load More
   -------------------------------------------------------------------------- */
.cs-load-more {
    text-align: center;
    padding: 40px 0 20px;
}

.cs-load-more__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #fff;
    border: 2px solid #2563eb;
    color: #2563eb;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cs-load-more__btn:hover {
    background: #2563eb;
    color: #fff;
}

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.cs-cta {
    padding: 80px 0;
    margin-top: 40px;
}

.cs-cta__inner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
}

.cs-cta__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cs-cta__desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
}

.cs-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-cta__btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cs-cta__btn--primary {
    background: #2563eb;
    color: #fff;
}

.cs-cta__btn--primary:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.cs-cta__btn--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cs-cta__btn--secondary:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive - Tablet (991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .cs-hero {
        padding: 120px 0 60px;
    }

    .cs-hero__title {
        font-size: 36px;
    }

    .cs-hero__desc {
        font-size: 16px;
    }

    .cs-hero__stats {
        margin-top: 40px;
    }

    .cs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .cs-cta__inner {
        padding: 60px 40px;
    }

    .cs-cta__title {
        font-size: 32px;
    }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile (767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .cs-hero {
        padding: 100px 0 40px;
    }

    .cs-hero__title {
        font-size: 28px;
    }

    .cs-hero__desc {
        font-size: 15px;
    }

    .cs-hero__stats {
        margin-top: 30px;
        gap: 12px;
    }

    .cs-hero__stat-item {
        padding: 20px 16px;
        min-width: 100px;
    }

    .cs-hero__stat-number {
        font-size: 28px;
    }

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

    .cs-grid-section {
        padding: 40px 0 20px;
    }

    .cs-filter__inner {
        gap: 8px;
    }

    .cs-filter__btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .cs-cta__inner {
        padding: 48px 24px;
        border-radius: 16px;
    }

    .cs-cta__title {
        font-size: 26px;
    }

    .cs-cta__desc {
        font-size: 16px;
    }

    .cs-cta__btn {
        padding: 12px 28px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .cs-card__title {
        font-size: 18px;
    }

    .cs-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
