/* ── Services Grid ───────────────────────────────────────────── */

.cew-services-grid {
  width: 100%;
}

/* ── Shared grid base ────────────────────────────────────────── */
.cew-sg-grid {
  display: grid;
  gap: 12px;
}

/* ── Bento layout (6-col, rows: 2 / 3 / 2) ──────────────────── */
.cew-sg-bento {
  grid-template-columns: repeat(6, 1fr);
}

/* Items 1-2 → span 3 cols (large) */
.cew-sg-bento .cew-sg-card:nth-child(1),
.cew-sg-bento .cew-sg-card:nth-child(2) {
  grid-column: span 3;
}

/* Items 3-5 → span 2 cols (small) */
.cew-sg-bento .cew-sg-card:nth-child(3),
.cew-sg-bento .cew-sg-card:nth-child(4),
.cew-sg-bento .cew-sg-card:nth-child(5) {
  grid-column: span 2;
}

/* Items 6-7 → span 3 cols (large) */
.cew-sg-bento .cew-sg-card:nth-child(6),
.cew-sg-bento .cew-sg-card:nth-child(7) {
  grid-column: span 3;
}

/* Default height for bento size classes */
.cew-sg-bento .cew-sg-large { min-height: 300px; }
.cew-sg-bento .cew-sg-small { min-height: 220px; }

/* ── Equal grid layout ───────────────────────────────────────── */
.cew-sg-equal {
  --cew-sg-cols: 3;
  grid-template-columns: repeat(var(--cew-sg-cols), 1fr);
}

.cew-sg-equal .cew-sg-card {
  min-height: 260px;
}

/* ── Card ────────────────────────────────────────────────────── */
.cew-sg-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Background image layer — grayscale filter applied here only */
.cew-sg-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter 0.3s ease;
  will-change: filter;
}

.cew-sg-card:hover .cew-sg-bg {
  filter: grayscale(100%);
}

/* .cew-sg-card:hover {
  transform: translateY(-2px);
} */

/* Gradient overlay */
.cew-sg-card-inner {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.10) 60%, rgba(0, 0, 0, 0.00) 100%);
}

/* ── Icon (top-right) ────────────────────────────────────────── */
.cew-sg-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border:  1px solid rgba(255, 31, 110, 0.30);
  background: rgba(255, 31, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cew-sg-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* ── Card content (bottom) ───────────────────────────────────── */
.cew-sg-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cew-sg-badge {
  max-width: max-content;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #FF1F6E;
  margin: 0;
}

.cew-sg-badge--popular {
  display: inline-block;
  background-color: #FF1F6E;
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 1.2px;
}

.cew-sg-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.4px;
  color: #ffffff;
  margin: 0;
  width: 65%;
}

.cew-sg-description {
  color: rgba(255, 255, 255, 0.70);
  font-family: "Instrument Sans";
  font-size: 14px;
  font-weight: 400;
  line-height: 23.1px; 
}

.cew-sg-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cew-sg-card:hover .cew-sg-cta {
  color: #FF1F6E;
}


/* ── Responsive ──────────────────────────────────────────────── */

@media ( max-width: 1024px ) {
  /* Bento collapses to 2 columns */
  .cew-sg-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .cew-sg-bento .cew-sg-card:nth-child(1),
  .cew-sg-bento .cew-sg-card:nth-child(2),
  .cew-sg-bento .cew-sg-card:nth-child(3),
  .cew-sg-bento .cew-sg-card:nth-child(4),
  .cew-sg-bento .cew-sg-card:nth-child(5),
  .cew-sg-bento .cew-sg-card:nth-child(6),
  .cew-sg-bento .cew-sg-card:nth-child(7) {
    grid-column: span 1;
  }

  .cew-sg-bento .cew-sg-large { min-height: 240px; }
  .cew-sg-bento .cew-sg-small { min-height: 180px; }

  .cew-sg-title {
    font-size: 20px;
  }
}

@media ( max-width: 600px ) {
  .cew-sg-bento {
    grid-template-columns: 1fr;
  }

  .cew-sg-bento .cew-sg-large,
  .cew-sg-bento .cew-sg-small {
    min-height: 200px;
  }

  .cew-sg-equal {
    --cew-sg-cols: 1;
  }

  .cew-sg-title {
    font-size: 18px;
  }
}
