/* ===== SECONDARY BUTTON FIX ===== */

/* Fix secondary button visibility */
.hero__button--secondary {
  background: rgba(255, 255, 255, 0.9) !important; /* Semi-transparent white background */
  color: var(--text-color) !important;
  border: 2px solid var(--border-color) !important; /* Ensure border is visible */
  backdrop-filter: blur(10px) !important; /* Add blur effect for modern look */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important; /* Add subtle shadow */
}

/* Dark mode secondary button */
[data-theme="dark"] .hero__button--secondary {
  background: rgba(31, 41, 55, 0.9) !important; /* Dark semi-transparent background */
  color: var(--text-color) !important;
  border: 2px solid var(--border-color) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Secondary button hover state */
.hero__button--secondary:hover {
  background: var(--bg-secondary) !important;
  border: 2px solid #10b981 !important; /* Green border on hover */
  color: #059669 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2) !important; /* Green shadow on hover */
}

/* Dark mode secondary button hover */
[data-theme="dark"] .hero__button--secondary:hover {
  background: var(--bg-secondary) !important;
  border: 2px solid #10b981 !important;
  color: #34d399 !important; /* Lighter green for dark mode */
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3) !important;
}

/* Ensure button has proper styling */
.hero__button--secondary {
  position: relative !important;
  z-index: 10 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 1rem 2rem !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  min-height: 44px !important; /* Ensure touch-friendly size */
  box-sizing: border-box !important;
}

/* Mobile adjustments for secondary button */
@media (max-width: 768px) {
  .hero__button--secondary {
    width: 100% !important;
    max-width: 280px !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.95rem !important;
    background: rgba(255, 255, 255, 0.95) !important; /* More opaque on mobile */
  }
  
  [data-theme="dark"] .hero__button--secondary {
    background: rgba(31, 41, 55, 0.95) !important;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .hero__button--secondary {
    max-width: 250px !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
}

/* Ensure icon in secondary button is visible */
.hero__button--secondary i,
.hero__button--secondary span:first-child {
  color: inherit !important;
  font-size: 1rem !important;
}

/* Fix for any conflicting styles */
.hero__actions .hero__button--secondary {
  margin: 5px 0 !important;
  flex-shrink: 0 !important;
}

/* Ensure secondary button text is always visible */
.hero__button--secondary * {
  color: inherit !important;
}

/* Additional safety for button visibility */
.hero__button--secondary::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 50px !important;
  border: 2px solid var(--border-color) !important;
  background: inherit !important;
  z-index: -1 !important;
  transition: all 0.3s ease !important;
}

.hero__button--secondary:hover::before {
  border-color: #10b981 !important;
  background: var(--bg-secondary) !important;
}

/* Override any conflicting transparent backgrounds */
.hero__button--secondary.hero__button--secondary {
  background: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .hero__button--secondary.hero__button--secondary {
  background: rgba(31, 41, 55, 0.9) !important;
}

/* Ensure proper contrast */
.hero__button--secondary {
  color: #1f2937 !important; /* Dark text for light background */
}

[data-theme="dark"] .hero__button--secondary {
  color: #f9fafb !important; /* Light text for dark background */
}

/* Focus state for accessibility */
.hero__button--secondary:focus {
  outline: 2px solid #10b981 !important;
  outline-offset: 2px !important;
}
