/* Port of TargetGroupSection.astro scoped styles */

.target-group-section {
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

.target-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .target-categories {
    gap: 48px;
    margin-bottom: 48px;
  }
}

.target-category-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 12px;
}

@media (min-width: 768px) {
  .target-category-head {
    margin: 0 auto 20px;
  }
}

.target-category-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

.target-category-sub {
  margin: 0;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Card grids ──────────────────────────────────────────── */
.target-cards {
  display: grid;
  gap: 10px;
}

@media (min-width: 768px) {
  .target-cards {
    gap: 16px;
  }
}

.target-cards--3 {
  grid-template-columns: 1fr;
}

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

.target-cards--4 {
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 541px) {
  .target-cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  .target-cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.target-cards--4 .target-card {
  padding: 20px !important;
}

.target-cards--4 .target-card-title {
  font-size: 15px;
}

.target-cards--4 .target-card-desc {
  font-size: 13px;
  line-height: 1.55;
}

.target-card {
  height: 100%;
  padding: 16px !important;
}

@media (min-width: 768px) {
  .target-card {
    padding: 24px !important;
  }
}

.target-card-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.target-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
}

@media (min-width: 768px) {
  .target-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}

.target-card-title {
  font-size: var(--fs-h4, 1.125rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0;
  line-height: 1.3;
}

.target-card-desc {
  font-size: var(--fs-small, 0.875rem);
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ─── CTA Panel ───────────────────────────────────────────── */
.target-cta-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  background: var(--primary-light);
  border: 1px solid rgba(27, 84, 216, 0.14);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 641px) {
  .target-cta-panel {
    padding: 28px 32px;
    border-radius: 20px;
    gap: 20px;
  }
}

.target-cta-text {
  margin: 0;
  font-size: var(--fs-body, 1rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--heading);
}

.target-cta-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 641px) {
  .target-cta-buttons {
    flex-direction: row;
  }
}
