/* ==========================================================================
   Child Behavior Center - Careers job board
   ========================================================================== */

body.page-careers .entry-content,
body.page-careers .page-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.cbc-jobs-hero {
  background: linear-gradient(125deg, #F5F0FF 0%, #E8E4FF 34%, #D6E4FF 68%, #C5D8FF 100%);
  padding: 160px 40px 40px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.cbc-jobs-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cbc-jobs-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cbc-jobs-hero__title {
  color: #1B2140;
  font-family: Sora, sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.1;
}

.cbc-jobs-hero__subtitle,
.cbc-jobs-hero__intro {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

.cbc-jobs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.cbc-jobs-hero .cbc-jobs__apply-cta {
  flex: 0 0 auto;
}

.cbc-jobs__contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid #FA2A27;
  background: #FFFFFF;
  color: #FA2A27 !important;
  font: 700 14px/1 Inter, system-ui, sans-serif;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.cbc-jobs__contact-cta:hover,
.cbc-jobs__contact-cta:focus {
  background: #FFF5F5;
  color: #E02220 !important;
  border-color: #E02220;
}

.cbc-jobs {
  background: #FFFFFF;
  padding: 50px 40px 96px;
}

.cbc-jobs__inner {
  max-width: 860px;
  margin: 0 auto;
}

.cbc-jobs__hiring {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35em;
  margin: 0 0 22px;
  color: #1B2140;
  font-family: Sora, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.cbc-jobs__hiring-roles {
  position: relative;
  display: inline-block;
  color: #FA2A27;
  overflow: hidden;
  vertical-align: baseline;
  padding-bottom: 4px;
}

.cbc-jobs__hiring-role {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #FA2A27;
  padding-bottom: 2px;
  border-bottom: 3px solid transparent;
  animation: cbc-jobs-role-lit 5.4s ease-in-out infinite;
}

.cbc-jobs__hiring-role:nth-of-type(1) {
  animation-delay: 0s;
}

.cbc-jobs__hiring-role:nth-of-type(2) {
  animation-delay: 1.8s;
}

.cbc-jobs__hiring-role:nth-of-type(3) {
  animation-delay: 3.6s;
}

.cbc-jobs__hiring-shimmer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  animation: cbc-jobs-shine 2.4s linear infinite;
}

@keyframes cbc-jobs-shine {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(350%);
  }
}

@keyframes cbc-jobs-role-lit {
  0%,
  30% {
    border-bottom-color: #FA2A27;
    box-shadow: 0 7px 0 -4px rgba(250, 42, 39, 0.25);
  }
  34%,
  100% {
    border-bottom-color: transparent;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cbc-jobs__hiring-shimmer,
  .cbc-jobs__hiring-role {
    animation: none;
  }

  .cbc-jobs__hiring-role {
    border-bottom-color: transparent;
    box-shadow: none;
  }
}

.cbc-jobs__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
}

.cbc-jobs__search {
  position: relative;
  flex: 1 1 280px;
  min-width: 220px;
}

.cbc-jobs__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6B7280;
  pointer-events: none;
}

.cbc-jobs__search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #FFFFFF;
  font: 500 15px/1 Inter, system-ui, sans-serif;
  color: #111827;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.cbc-jobs__search-input:focus {
  outline: none;
  border-color: #FA2A27;
  box-shadow: 0 0 0 3px rgba(250, 42, 39, 0.18);
}

.cbc-jobs__apply-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #FA2A27;
  color: #FFFFFF !important;
  font: 700 14px/1 Inter, system-ui, sans-serif;
  text-decoration: none !important;
  white-space: nowrap;
}

.cbc-jobs__apply-cta:hover,
.cbc-jobs__apply-cta:focus {
  background: #E02220;
  color: #FFFFFF !important;
}

.cbc-jobs__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cbc-job-card {
  background: #FFFFFF;
  border: 1px solid #E8EAF0;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow: hidden;
}

.cbc-job-card.is-open {
  border-color: #D7DBE7;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.cbc-job-card__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 18px;
  align-items: center;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.cbc-job-card__main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cbc-job-card__title {
  font: 700 17px/1.3 Inter, system-ui, sans-serif;
  color: #111827;
}

.cbc-job-card__meta {
  font: 400 13px/1.4 Inter, system-ui, sans-serif;
  color: #6B7280;
}

.cbc-job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.cbc-job-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #374151;
  font: 500 12px/1.2 Inter, system-ui, sans-serif;
}

.cbc-job-card__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 8px;
}

.cbc-job-card__status {
  font: 500 12px/1 Inter, system-ui, sans-serif;
  color: #9CA3AF;
  white-space: nowrap;
}

.cbc-job-card__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #9CA3AF;
  border-bottom: 2px solid #9CA3AF;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-bottom: 4px;
}

.cbc-job-card.is-open .cbc-job-card__chevron {
  transform: rotate(225deg);
  margin-bottom: 0;
  margin-top: 4px;
}

.cbc-job-card__panel {
  padding: 0 22px 22px;
  border-top: 1px solid #F0F2F7;
}

.cbc-jobs__footer-note {
  margin: 28px 0 0;
  max-width: none;
  font: 400 13px/1.55 Inter, system-ui, sans-serif;
  color: #6B7280;
}

.cbc-job-card__panel[hidden] {
  display: none;
}

.cbc-job-card__text {
  margin: 16px 0 12px;
  font: 400 15px/1.6 Inter, system-ui, sans-serif;
  color: #374151;
}

.cbc-job-card__list {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  font: 400 14px/1.55 Inter, system-ui, sans-serif;
  color: #4B5563;
}

.cbc-job-card__list li {
  margin-bottom: 0.35rem;
}

.cbc-job-card__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  background: #FA2A27;
  color: #FFFFFF !important;
  font: 700 14px/1 Inter, system-ui, sans-serif;
  text-decoration: none !important;
}

.cbc-job-card__apply:hover,
.cbc-job-card__apply:focus {
  background: #E02220;
  color: #FFFFFF !important;
}

.cbc-jobs__empty {
  margin: 8px 0 0;
  padding: 28px;
  text-align: center;
  background: #FFFFFF;
  border: 1px dashed #D1D5DB;
  border-radius: 16px;
  color: #6B7280;
  font: 500 15px/1.5 Inter, system-ui, sans-serif;
}

body.page-careers-apply .cbc-enroll-split__subtitle,
body.page-enroll.page-careers-apply .cbc-enroll-split__subtitle {
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.cbc-careers-apply__back {
  margin: 0 0 14px;
  font: 600 14px/1.4 Inter, system-ui, sans-serif;
}

.cbc-careers-apply__back a {
  color: #FA2A27;
  text-decoration: none;
}

.cbc-careers-apply__back a:hover {
  text-decoration: underline;
}

.cbc-careers-apply__note {
  margin: 0 0 1.25rem;
  font: 400 13px/1.55 Inter, system-ui, sans-serif;
  color: #3A4560;
}

@media (max-width: 900px) {
  body.page-careers-apply .cbc-enroll-split__subtitle,
  body.page-enroll.page-careers-apply .cbc-enroll-split__subtitle {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .cbc-jobs-hero {
    padding: 120px 20px 48px;
  }

  .cbc-jobs-hero__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cbc-jobs-hero__title {
    font-size: 32px;
  }

  .cbc-jobs__hiring {
    font-size: 22px;
  }

  .cbc-jobs {
    padding: 36px 16px 72px;
  }

  .cbc-job-card__toggle {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
  }

  .cbc-job-card__aside {
    padding-left: 0;
  }

  .cbc-job-card__panel {
    padding-left: 20px;
    padding-right: 20px;
  }
}
