/* ==========================================================================
   Content-section block — repeatable H2 + image + text pattern.
   Image always sits between the H2 and the body copy, full width, uncropped.
   ========================================================================== */

.content-section__image {
  margin-top: var(--space-h2-to-text);
  margin-bottom: var(--space-paragraph-gap);
  text-align: center;
  line-height: 0;
}

.content-section__image img {
  display: inline-block;
  width: 85%;
  max-width: 85%;
  height: auto; /* never cropped — scaled down only */
  border-radius: var(--radius-card-sm);
}

@media (max-width: 40em) {
  .content-section__image img {
    width: 100%;
    max-width: 100%;
  }
}

.content-section__image + p {
  margin-top: 0;
}

/* ---- Two-column platform block (Android / iOS) ---- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-card-gap);
  margin-top: var(--space-h2-to-text);
}

.platform-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card-sm);
  padding: var(--space-card-padding);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-card__icon {
  width: 3rem;
  height: 3rem;
}

h3.platform-card__title {
  color: var(--color-white);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  margin-top: 0; /* card title, not a body heading — overrides the global h3 spacing rule */
}

.platform-card__text {
  color: var(--color-text-body);
  font-size: var(--font-size-small);
}

@media (min-width: 48em) {
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Bonus cards row — 6 equal columns side by side, no wrap, no scroll ---- */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 6 columns is unreadably narrow below ~640px */
  gap: 0.5rem;
  margin-top: var(--space-h2-to-text);
}

@media (min-width: 40em) {
  .bonus-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
  }
}

.bonus-card {
  min-width: 0; /* let grid items shrink below their content's natural width */
  background: var(--color-card-bg);
  border-radius: var(--radius-card-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bonus-card__image {
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  line-height: 0;
}

.bonus-card__image img {
  display: block;
  width: 100%;
  height: auto; /* uncropped */
}

h3.bonus-card__title {
  color: var(--color-white);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  margin-top: 0; /* card title, not a body heading — overrides the global h3 spacing rule */
}

.bonus-card__text {
  color: var(--color-text-body);
  font-size: var(--font-size-small);
  margin-top: 0;
  display: none; /* hidden at this compact card size — title + image only */
}

.bonus-card .btn {
  padding: 0.5rem 0.4rem;
  font-size: 0.6875rem;
  line-height: 1.2;
  white-space: normal; /* let the label wrap instead of spilling out of the card */
  text-align: center;
}

/* ---- Games grid (Slots page static grid, if used) ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-card-gap);
  margin-top: var(--space-h2-to-text);
}

@media (min-width: 40em) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64em) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
