/* ============================================================
   CASE STUDY GALLERY — page-specific styles
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.csg-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}
.csg-hero__kicker {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kc-cyan-500, #4CCBFF);
  margin-bottom: 20px;
  opacity: 0.85;
}
.csg-hero__title {
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 800px;
  color: #fff;
}
.csg-hero__title em {
  font-style: normal;
  color: #B23AF0;
}
.csg-hero__sub {
  font-size: clamp(16px, 1.2vw, 18px);
  opacity: 0.65;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Grid ──────────────────────────────────────────────────── */
.csg-grid-section {
  padding: 0 0 140px;
}
.csg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card ──────────────────────────────────────────────────── */
.csg-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
}
.csg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(178,58,240,0.45);
  box-shadow: 0 24px 60px -16px rgba(148,20,250,0.35);
}

.csg-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}
.csg-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.csg-card:hover .csg-card__thumb img {
  transform: scale(1.04);
}

.csg-card__body {
  padding: 24px 28px 28px;
}
.csg-card__tag {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kc-cyan-500, #4CCBFF);
  margin-bottom: 12px;
  opacity: 0.85;
}
.csg-card__title {
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: #fff;
}
.csg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color .2s, gap .2s;
}
.csg-card:hover .csg-card__cta {
  color: #fff;
  gap: 10px;
}

/* ── Empty state (language with no translated case studies yet) ── */
.csg-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  opacity: 0.55;
  font-size: 15px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .csg-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .csg-hero { padding: 120px 0 60px; }
  .csg-grid { grid-template-columns: 1fr; gap: 16px; }
  .csg-grid-section { padding-bottom: 80px; }
}
