/* CTA Section Styling */

.cta-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #fffaf0 100%);
  border-radius: 8px;
  border-top: 3px solid #1565C0;
}

.cta-section h2 {
  color: #0D47A1;
  font-size: 1.5rem;
  margin: 0 0 2rem 0;
  text-align: center;
}

/* CTA Cards Grid */
.cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cta-card {
  display: block;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

/* Primary CTA Style */
.cta-card-primary {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: white;
  border: 2px solid #1565C0;
}

.cta-card-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(21, 101, 192, 0.3);
}

/* Secondary CTA Style */
.cta-card-secondary {
  background: #f0f7ff;
  color: #0D47A1;
  border: 2px solid #b3d9ff;
}

.cta-card-secondary:hover {
  background: #e0eeff;
  border-color: #1565C0;
  transform: translateX(4px);
}

/* CTA Card Content */
.cta-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.cta-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
}

/* CTA Arrow */
.cta-card .cta-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.cta-card-primary .cta-arrow {
  color: rgba(255, 255, 255, 0.8);
}

.cta-card-secondary .cta-arrow {
  color: #1565C0;
}

.cta-card:hover .cta-arrow {
  transform: translateY(-50%) translateX(4px);
}

/* Single CTA (when only 1 CTA) */
.cta-cards .cta-card:only-child {
  grid-column: 1 / -1;
  max-width: 500px;
  margin: 0 auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .cta-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .cta-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .cta-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta-card {
    padding: 1.25rem;
  }

  .cta-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .cta-card p {
    font-size: 0.85rem;
  }

  .cta-card .cta-arrow {
    right: 1rem;
    font-size: 1.2rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .cta-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-top-color: #64b5f6;
  }

  .cta-section h2 {
    color: #64b5f6;
  }

  .cta-card-secondary {
    background: #1a1a1a;
    color: #64b5f6;
    border-color: #424242;
  }

  .cta-card-secondary:hover {
    background: #2a2a2a;
    border-color: #64b5f6;
  }
}

/* Print Styling */
@media print {
  .cta-section {
    background: white;
    border-top: 2px solid #333;
    page-break-inside: avoid;
  }

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

  .cta-card {
    background: white;
    border: 1px solid #ccc;
    color: #000;
    page-break-inside: avoid;
  }

  .cta-card .cta-arrow {
    display: none;
  }
}

/* Accessibility */
.cta-card:focus {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}

.cta-card:focus-visible {
  outline: 2px dashed #1565C0;
  outline-offset: 4px;
}

/* Loading State (if needed in future) */
.cta-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.cta-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
