/* ========================================
   WINNOW CHINA — CASE STUDIES LIST PAGE
   Page: 04-case-studies.html
   ======================================== */

/* ========================================
   COMPACT HERO
   ======================================== */
.cs-hero {
  position: relative;
  height: 240px;
  padding-top: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-bg);
}

.cs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cs-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cs-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.cs-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

/* ========================================
   CARD GRID
   ======================================== */
.cases-section {
  background: var(--light-bg);
  padding: 80px 0;
}

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

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(90, 80, 255, 0.08);
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(60, 40, 120, 0.15);
}

.case-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--light-bg);
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-card-image img {
  transform: scale(1.05);
}

.case-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.case-card-body h3 {
  font-size: 1.1rem;
  color: var(--purple);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0;
}

.case-card-brand {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-card-brand img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.case-card-brand span {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

/* ========================================
   RESPONSIVE — CASE STUDIES LIST
   ======================================== */

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

@media (max-width: 768px) {
  .cs-hero {
    height: 180px;
  }

  .cs-hero h1 {
    font-size: 1.8rem;
  }

  .cases-section {
    padding: 48px 0;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .cs-hero {
    height: 160px;
  }
}
