:root {
  --cases-card-border: #d3d3d3;
  --cases-card-shadow: 0 20px 42px rgba(30, 57, 102, 0.08);
  --cases-card-text: #3D3D3D;
  --cases-card-subtext: #999999;
}

.cases-page {
  background: #ffffff;
}

.cases-hero {
  min-height: 595px;
  background:
    linear-gradient(90deg, rgba(7, 21, 47, 0.52) 0%, rgba(18, 58, 115, 0.28) 28%, rgba(29, 87, 164, 0.05) 56%, rgba(20, 28, 42, 0) 100%),
    url("../image/expel/expelBanner.png") center top / cover no-repeat;
}

.cases-hero-inner {
  min-height: 595px;
  display: flex;
  align-items: center;
}

.cases-hero-copy {
  padding-left: 2px;
}

.cases-hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 55px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.cases-list-section {
  padding: 104px 0 112px;
}

.cases-heading {
  margin-bottom: 70px;
}

.cases-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}

.cases-detail-card {
  min-height: 509px;
  border: 1px solid var(--cases-card-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--cases-card-shadow);
}

.cases-detail-media {
  height: 258px;
  padding: 10px;
  background: #f6f8fb;
}

.cases-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.cases-detail-media-light {
  background: linear-gradient(180deg, #fffaf0 0%, #f9f2e1 100%);
}

.cases-detail-media-dark {
  background: linear-gradient(180deg, #071a42 0%, #0f3d8a 100%);
}

.cases-detail-copy {
  padding: 28px 18px 32px;
}

.cases-detail-copy h3 {
  margin: 0 0 14px;
  color: var(--cases-card-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.cases-detail-copy p {
  margin: 0;
  color: var(--cases-card-subtext);
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 1180px) {
  .cases-card-grid {
    gap: 28px;
  }

  .cases-hero-copy h1 {
    font-size: 52px;
  }
}

@media (max-width: 980px) {
  .cases-hero,
  .cases-hero-inner {
    min-height: 460px;
  }

  .cases-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cases-hero,
  .cases-hero-inner {
    min-height: 320px;
  }

  .cases-hero {
    background-position: 62% center;
  }

  .cases-hero-copy h1 {
    font-size: 38px;
  }

  .cases-list-section {
    padding: 72px 0 80px;
  }

  .cases-heading {
    margin-bottom: 42px;
  }

  .cases-card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cases-detail-card {
    min-height: auto;
  }

  .cases-detail-media {
    height: 220px;
  }

  .cases-detail-copy {
    padding: 24px 18px 28px;
  }
}
