/* ==========================================================================
   Case Study Cards
   Scoped to .cs-cards. Values from the "OCC Case Studies" reference:
   4 x 282px cards, 24px gap, white cards with 1px #E8E8EC border and 4px
   radius, 16:9 media, Inter body, Manrope heading. Section background and
   padding come from the dnd section in the template.
   ========================================================================== */

.cs-cards__heading {
  margin: 0 0 28px;
  font-family: Manrope, sans-serif;
  font-size: 33px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111418;
}

/* --- Grid: mobile first ------------------------------------------------- */
.cs-cards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media screen and (min-width: 600px) {
  .cs-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 992px) {
  .cs-cards--3 .cs-cards__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cs-cards--4 .cs-cards__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Card --------------------------------------------------------------- */
.cs-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E8E8EC;
  border-radius: 4px;
  background-color: #ffffff;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cs-card:hover,
.cs-card:focus-within {
  box-shadow: 0 10px 24px rgba(39, 51, 67, 0.10);
  transform: translateY(-2px);
}

.cs-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background-color: #F3F5F8;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

@supports not (aspect-ratio: 16 / 9) {
  .cs-card__media {
    height: 0;
    padding-bottom: 56.25%;
  }
}

.cs-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
  padding: 20px 22px 22px;
}

.cs-card__tag {
  align-self: flex-start;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  color: #79828F;
  text-decoration: none;
}

.cs-card__tag:hover,
.cs-card__tag:focus {
  color: #273343;
  text-decoration: none;
}

.cs-card__title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.cs-card__title a {
  color: #273343;
  text-decoration: none;
}

.cs-card__title a:hover,
.cs-card__title a:focus {
  color: #273343;
  text-decoration: underline;
}

.cs-card__summary {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #5A626D;
}

.cs-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: normal;
  color: #79828F;
}

.cs-card__label {
  font-weight: 600;
}

.cs-card__date {
  font-weight: 400;
  white-space: nowrap;
}

/* --- Empty state and pagination ---------------------------------------- */
.cs-cards__empty {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: #5A626D;
}

.cs-cards__pagination {
  margin: 40px 0 0;
}

@media screen and (max-width: 767px) {
  .cs-cards__heading {
    margin-bottom: 20px;
    font-size: 28px;
  }
}
