/**
 * @file
 * Cards Group component styles
 */

.cards-group-section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.cards-group-section .container {
  position: relative;
}

.cards-group__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cards-group__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.2;
}

.cards-group-section.paragraph--bg-primary .cards-group__title,
.cards-group-section.paragraph--bg-secondary .cards-group__title,
.cards-group-section.paragraph--bg-bg-dark .cards-group__title,
.cards-group-section.paragraph--bg-footer-dark .cards-group__title,
.cards-group-section.paragraph--bg-black .cards-group__title {
  color: #FFFFFF;
}

.cards-group__body {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.cards-group-section.paragraph--bg-primary .cards-group__body,
.cards-group-section.paragraph--bg-secondary .cards-group__body,
.cards-group-section.paragraph--bg-bg-dark .cards-group__body,
.cards-group-section.paragraph--bg-footer-dark .cards-group__body,
.cards-group-section.paragraph--bg-black .cards-group__body {
  color: rgba(255, 255, 255, 0.95);
}

.cards-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
  .cards-group__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .cards-group__grid {
    grid-template-columns: 1fr;
  }
}

