/* CTA button styles — ported from CMS11 _button.scss for career pages */

body.career-template .btn {
  display: inline-block;
  background-color: transparent;
  border: 0.0625rem solid #121212;
  color: #121212;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: 0.2s all;
  cursor: pointer;
}

body.career-template .btn:hover {
  background: #ffffff;
}

body.career-template .bg-dark .btn,
body.career-template .bg-secondary-dark .btn,
body.career-template .bg-primary-dark .btn {
  color: #ffffff;
  border-color: #ffffff;
}

body.career-template .bg-dark .btn:hover,
body.career-template .bg-secondary-dark .btn:hover,
body.career-template .bg-primary-dark .btn:hover {
  background: #ffffff;
  color: #121212;
}

/* CMS11 _cta.scss — display mode classes on CTA links */
body.career-template .btn.dark {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

body.career-template .btn.dark:hover {
  color: #121212 !important;
  background-color: #ffffff;
}

body.career-template .btn.light {
  color: #121212 !important;
  border-color: #121212 !important;
}

body.career-template .btn.light:hover {
  color: #ffffff !important;
  background-color: #121212;
}

/* WYSIWYG display modes — CMS11 passes DisplayMode on overlay blocks as bg-*; editor uses wysiwyg-container */
body.career-template .wysiwyg-container.dark .btn,
body.career-template .wysiwyg-container.primary-dark .btn,
body.career-template .wysiwyg-container.secondary-dark .btn {
  color: var(--career-text-light);
  border-color: var(--career-text-light);
}

body.career-template .wysiwyg-container.dark .btn:hover,
body.career-template .wysiwyg-container.primary-dark .btn:hover,
body.career-template .wysiwyg-container.secondary-dark .btn:hover,
body.career-template .wysiwyg-container.dark .btn:focus,
body.career-template .wysiwyg-container.primary-dark .btn:focus,
body.career-template .wysiwyg-container.secondary-dark .btn:focus {
  background: var(--career-text-light);
  color: var(--career-text-dark);
}

body.career-template .btn.btn--secondary {
  border: none;
  position: relative;
  padding-right: 1.5rem !important;
  padding-left: 1rem !important;
}

body.career-template .btn.btn--secondary::after {
  content: "→";
  position: absolute;
  right: 0.5rem;
  display: block;
  height: 24px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.1s, right 0.3s;
}

body.career-template .btn.btn--secondary:hover {
  background: transparent;
}

body.career-template .btn.btn--secondary:hover::after {
  right: 0.3rem;
  opacity: 1;
}

body.career-template .cta-override-color-white {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

body.career-template .cta-override-color-black {
  color: #121212 !important;
  border-color: #121212 !important;
}
