/* ================================
   SECTION 6 — Final Call to Action
   ================================ */

.cta-section {
  position: relative;
  text-align: center;
  color: #fff;
  padding-top: 20px;
  padding-bottom: 75px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Optional dark overlay for image backgrounds */
.cta-section .cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Container */
.cta-section .container {
  position: relative;
  z-index: 2;
  max-height: 280px;
  margin: 0 auto;
}

/* Content */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  animation: fadeUp 0.9s ease-out both;
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-description {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
  color: #f7f7f7;
}

/* Buttons (inline, single line) */
.cta-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: linear-gradient(45deg, #7a3cff, #9b5eff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.cta-btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(122, 60, 255, 0.4);
}

.cta-btn.secondary {
  background: linear-gradient(45deg, #7a3cff, #9b5eff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.cta-btn.secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(122, 60, 255, 0.4);
}

.cta-btn.tertiary {
  background: linear-gradient(45deg, #7a3cff, #9b5eff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.cta-btn.tertiary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(122, 60, 255, 0.4);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .cta-title {
    font-size: 1.9rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  .cta-btn {
    width: 100%;
    max-width: 320px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
