/* Careers (#jobs): heading, four "why TLC" cards, then job cards with
   tags and Apply / View details (details open the existing #detailsMod /
   #detailsModArt modals). Replaces the template's hiring carousel.
   Template rules size every p/li/span/h3/h4, so selectors are prefixed
   with .careers to win. */

.careers {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  isolation: isolate;
}

.careers::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 85% 15%, rgba(255, 122, 31, 0.14), transparent 70%),
    radial-gradient(40% 45% at 10% 85%, rgba(166, 107, 255, 0.18), transparent 70%);
}

/* ---------- Heading ---------- */
.careers__head {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.careers .careers__eyebrow {
  margin: 0 0 14px;
  color: var(--primary-color, #ff7a1f);
  font-family: var(--head-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark .careers__title,
.careers__title {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--head-font);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  text-transform: none;
}

.careers .careers__accent {
  display: inline-block;
  font: inherit;
  line-height: inherit;
  background: linear-gradient(90deg, #ffb347 0%, #ff7a1f 55%, #ff4f8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.careers .careers__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.7;
}

/* ---------- Why TLC ---------- */
.careers__why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 70px;
  padding: 0;
  list-style: none;
}

.why {
  --c: #ff7a1f;
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0f35;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.why--purple { --c: #a66bff; }
.why--teal   { --c: #22d3c5; }
.why--pink   { --c: #ff5fa2; }

@media (hover: hover) {
  .why:hover { transform: translateY(-4px); border-color: var(--c); }
}

.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: var(--c);
  color: #0c0f35;
  font-size: 20px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #000);
}

.dark .why__title,
.why__title {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--head-font);
  font-size: 20px;
  line-height: 1.2;
  text-transform: none;
}

.careers .why__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Jobs ---------- */
.careers__jobs-head {
  margin-bottom: 22px;
}

.dark .careers__jobs-title,
.careers__jobs-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #fff;
  font-family: var(--head-font);
  font-size: 30px;
  line-height: 1.1;
  text-transform: none;
}

.careers .careers__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #18b26b;
  color: #fff;
  font-family: var(--head-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.careers__jobs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.job {
  --c: #a66bff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, #0c0f35) 0%, #0c0f35 55%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.3), border-color 0.25s ease;
}

.job--art { --c: #ff5fa2; }

@media (hover: hover) {
  .job:hover { transform: translateY(-6px); }
}

.job__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.job__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--c);
  color: #fff;
  font-size: 23px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 55%, #000);
}

.careers .job__dept {
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  color: var(--c);
  font-family: var(--head-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark .job__title,
.job__title {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--head-font);
  font-size: 28px;
  line-height: 1.1;
  text-transform: none;
}

.job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.careers .job__tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.careers .job__tags i {
  color: var(--c);
  font-size: 13px;
}

.careers .job__text {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.job__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.job__apply,
.job__details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  font-family: var(--head-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease;
}

.job__apply {
  background: linear-gradient(180deg, #ff9a45 0%, #ff7a1f 100%);
  color: #fff;
  box-shadow: 0 5px 0 #c4520a;
}

.job__apply:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #c4520a;
}

.job__apply:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #c4520a;
}

.job__details {
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

.job__details:hover {
  background: rgba(255, 255, 255, 0.1);
}

.job__apply:focus-visible,
.job__details:focus-visible,
.job--open:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* "Don't see your role?" card */
.job--open {
  --c: #22d3c5;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.job--open:hover {
  color: #fff;
  border-color: var(--c);
}

.job--open .job__icon {
  margin-bottom: 18px;
}

.careers .job__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--c);
  font-family: var(--head-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.job--open:hover .job__more i { transform: translateX(4px); }
.job__more i { transition: transform 0.25s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .careers__why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .careers { padding: 80px 0; }
  .careers__jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job--open { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
  .careers { padding: 64px 0; }
  .careers .careers__lead { font-size: 16px; }
  .careers__why { gap: 12px; margin-bottom: 50px; }
  .why { padding: 20px 16px; border-radius: 18px; }
  .why__icon { width: 42px; height: 42px; font-size: 17px; margin-bottom: 12px; }
  .dark .why__title, .why__title { font-size: 17px; }
  .careers .why__text { font-size: 14px; }
  .careers__jobs { grid-template-columns: 1fr; gap: 16px; }
  .job { padding: 22px; }
  .dark .job__title, .job__title { font-size: 25px; }
  .dark .careers__jobs-title, .careers__jobs-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .why, .job, .job * { transition: none !important; }
  .why:hover, .job:hover { transform: none; }
}

/* ---------- Job detail popups (#detailsMod, #detailsModArt) ---------- */
.dark .job-details .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 5px solid #a66bff;
  background: linear-gradient(180deg, #1d1250 0%, #0c0f35 45%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.dark #detailsModArt .modal-content { border-top-color: #ff5fa2; }

.dark .job-details .modal-content h2 {
  font-family: var(--head-font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: none;
}

.dark .job-details .modal-content h3,
.dark .job-details .modal-content h4 {
  font-family: var(--head-font);
  text-transform: none;
}

.dark .job-details .modal-content p,
.dark .job-details .modal-content li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.65;
}

.job-details .modal-content ul li::before { background-color: #ff7a1f; }

.job-details .top-bar { border-bottom-color: rgba(255, 255, 255, 0.12); }

.dark .job-details .single-info i { color: #ff9a45; }

.job-details .modal-content .modal-header .btn-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: #ff7a1f;
  opacity: 1;
}

/* Same orange press button as the job cards */
.job-details .modal-content .btn-area a {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff9a45 0%, #ff7a1f 100%);
  box-shadow: 0 5px 0 #c4520a;
  color: #fff;
  font-family: var(--head-font);
  font-size: 17px;
  text-transform: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.job-details .modal-content .btn-area a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #c4520a;
}

@media (max-width: 575px) {
  .job-details .modal-content { padding: 46px 22px 30px; border-radius: 24px; }
}
