/* ==============================================
   Reusable CTA Section Styles
   ============================================== */

.cta-section {
  background-color: var(--color-primary-300, #6a97b9);
  padding: 64px 167px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  width: 100%;
}

.cta-title {
  font-size: 48px;

  font-family: var(--font-display);
  margin-bottom: 24px;

  line-height: 1.2;
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.334;
  color: var(--color-primary-600, #093855);
  margin: 0;
  width: 100%;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: #ffffff;
  text-decoration: none;
}

/* Background Type Variations */

/* Default Blue Background */
.cta-section-default {
  background: linear-gradient(135deg, #093855 0%, #1b4d6a 100%);
}

.cta-section-default::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -25%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 15s ease-in-out infinite;
}

/* Blue Gradient Background */
.cta-section-blue {
  background: linear-gradient(135deg, #2b69c7 0%, #1e4a8c 100%);
}

.cta-section-blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.1'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zM30 10c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.3;
}

/* Orange Gradient Background */
.cta-section-orange {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.cta-section-orange .cta-title {
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cta-section-orange .btn-primary {
  background: #ffffff;
  color: #ff6b35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-section-orange .btn-primary:hover {
  background: #f8f9fa;
  color: #ff6b35;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cta-section-orange .btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-section-orange .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Multi-colored Gradient Background */
.cta-section-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-section-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(43, 105, 199, 0.1) 50%,
    rgba(118, 75, 162, 0.1) 100%
  );
  animation: gradientShift 20s ease-in-out infinite;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes gradientShift {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(10px) translateY(-10px);
  }
  50% {
    transform: translateX(-5px) translateY(10px);
  }
  75% {
    transform: translateX(-10px) translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cta-section {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 40px;
  }

  .cta-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 0;
  }

  .cta-container {
    padding: 0 20px;
  }

  .cta-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .cta-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .btn {
    padding: 14px 32px;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 50px 0;
  }

  .cta-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .cta-subtitle {
    font-size: 14px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}
