/* =========================
   TOPIC GRID
========================= */

.topic-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 992px) {
  .topic-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* =========================
   TOPIC CARDS
========================= */

.topic-card {
  display: block;
  height: 100%;
  text-decoration: none;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;

  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.topic-card:hover,
.topic-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  border-color: #d1d5db;
  outline: none;
}

.topic-card__body {
  padding: 1.25rem;
}

.topic-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .75rem;
}

.topic-title {
  margin: 0 0 .5rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.topic-text {
  margin: 0;
  color: #6b7280;
}


/* =========================
   CTA BOX
========================= */

.cta-box {
  background: #f1f5ff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.cta-box p {
  max-width: 42rem;
  margin-inline: auto;
}


/* =========================
   CTA BUTTONS
========================= */

.cta-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: 14px 26px;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 600;
  letter-spacing: .3px;

  text-decoration: none;
  cursor: pointer;

  transition: transform .25s ease,
              box-shadow .25s ease,
              filter .25s ease,
              background-color .25s ease,
              color .25s ease,
              border-color .25s ease;
}

/* Hover / Active */

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Focus Accessibility */

.cta-btn:focus-visible {
  outline: 3px solid rgba(99,102,241,.5);
  outline-offset: 3px;
}


/* Primary Button */

.cta-btn.primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 10px 25px rgba(79,70,229,.35);
}

.cta-btn.primary:hover {
  box-shadow: 0 16px 35px rgba(79,70,229,.45);
  filter: brightness(1.05);
}


/* Secondary Button */

.cta-btn.secondary {
  background: #ffffff;
  color: #4f46e5;
  border: 2px solid #4f46e5;
}

.cta-btn.secondary:hover {
  background: #4f46e5;
  color: #fff;
}


/* Mobile CTA */

@media (max-width: 600px) {
  .cta-btn {
    width: 100%;
  }
}
/* CTA spacing helpers */

.cta-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.cta-text {
  margin-bottom: 1.25rem;
  color: #4b5563;
}

