/* Case studies listing (cs-*) */

body.body {
      background-color: #ffffff;
      color: #111111;
    }
    /* ============================================================
       CASE STUDIES — HERO BANNER
       ============================================================ */
    .cs-hero {
      position: relative;
      width: 100%;
      min-height: 20rem;
      margin-top: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: url('../images/all-cases-banner.jpg') center center / cover no-repeat;
      padding: calc(1vw + 5.5rem) 5% 4rem;
    }

    .cs-hero-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      pointer-events: none;
    }

    .cs-hero-inner {
      position: relative;
      z-index: 1;
      text-align: center;
      max-width: 48rem;
    }

    .cs-hero-badge {
      display: inline-block;
      padding: 0.35rem 0.85rem;
      margin-bottom: 1rem;
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.55);
      border-radius: 0.25rem;
      background: rgba(255, 255, 255, 0.08);
    }

    .cs-hero-title {
      margin: 0;
      color: #ffffff;
      font-size: calc(1.6vw + 2rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.1;
    }

    /* ============================================================
       CASE STUDIES — FILTER + GRID
       ============================================================ */
    .cs-main {
      background: #ffffff;
      padding: 3.5rem 5% 5rem;
    }

    .cs-layout {
      display: flex;
      gap: 3rem;
      max-width: 75rem;
      margin: 0 auto;
      align-items: flex-start;
    }

    .cs-filters {
      flex: 0 0 13.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      position: sticky;
      top: 6rem;
    }

    .cs-filter-btn {
      display: block;
      width: 100%;
      padding: 0.55rem 1.1rem;
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 500;
      text-align: left;
      color: #111111;
      background: transparent;
      border: 1px solid rgba(0, 0, 0, 0.2);
      border-radius: 9999px;
      cursor: pointer;
      transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
      white-space: nowrap;
    }

    .cs-filter-btn:hover {
      border-color: rgba(0, 0, 0, 0.45);
    }

    .cs-filter-btn.is-active {
      background-color: #111111;
      color: #ffffff;
      border-color: #111111;
    }

    .cs-grid-wrap {
      flex: 1;
      min-width: 0;
    }

    .cs-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .cs-grid .projects-inst-card {
      display: block;
    }

    .cs-grid .projects-inst-card.is-hidden {
      display: none;
    }

    /* ── Responsive: Tablet ≤ 1024px ── */
    @media screen and (max-width: 1024px) {
      .cs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
      }
    }

    /* ── Responsive: Mobile ≤ 768px ── */
    @media screen and (max-width: 768px) {
      .cs-main {
        padding: 2.5rem 5% 4rem;
      }

      .cs-layout {
        flex-direction: column;
        gap: 1.75rem;
      }

      .cs-filters {
        flex: none;
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
      }

      .cs-filters::-webkit-scrollbar {
        display: none;
      }

      .cs-filter-btn {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
      }

      .cs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }

    /* ── Responsive: Small mobile ≤ 479px ── */
    @media screen and (max-width: 479px) {
      .cs-hero {
        min-height: 16rem;
        padding: calc(1vw + 4.5rem) 1.25rem 3rem;
      }

      .cs-hero-title {
        font-size: 1.75rem;
      }

      .cs-main {
        padding: 2rem 1.25rem 3rem;
      }

      .cs-layout {
        gap: 1.25rem;
      }

      .cs-filter-btn {
        font-size: 0.8125rem;
        padding: 0.45rem 0.85rem;
      }

      .cs-grid .projects-inst-card-body {
        padding: 18px 20px 22px;
      }

      .cs-grid .projects-inst-card-title {
        font-size: 16px;
      }
    }
