[data-bs-theme="dark"] body {
  background-color: #08151d !important;
  color: #fff;
}

[data-bs-theme="light"] body {
  background-color: #f0f0f0 !important;
  color: #333;
}

/* Theme-specific styles for careers hero and cards */
[data-bs-theme="dark"] .career-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 16px 4px rgba(0, 186, 255, 0.13),
    0 1px 8px 0 rgba(0, 186, 255, 0.07) !important;
}

[data-bs-theme="light"] .career-card {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 16px 4px #023e9657, 0 1px 8px 0 #023e9600 !important;
}
[data-bs-theme="light"] .careers-hero {
    box-shadow: 0 0 10px 5px #023d9625, 0 2px 10px 0 #023e9600 !important;
}

[data-bs-theme="dark"] .careers-hero {
    box-shadow: 0 0 10px 5px #4375c025, 0 2px 10px 0 #0c56c500 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.careers-hero {
  border: 1px solid var(--bs-border-color);
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(32, 201, 151, 0.08)
  );
}
.career-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 28px;
  overflow: visible;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
  background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent);
  padding: 16px;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .career-card {
    min-height: auto;
  }
}
.career-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.16);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
}
.career-card:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.45);
  outline-offset: 2px;
}
.career-thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #061018;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 85%, transparent);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.career-thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}
.career-thumb {
  height: 300px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.001);
  transition: transform 0.25s ease;
}
.career-thumb.is-portrait {
  object-fit: contain;
  height: auto;
  max-height: 420px;
  width: auto;
  max-width: 100%;
  transform: none;
}
.career-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.22);
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  background: rgb(64 141 255 / 92%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.career-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.career-heading-text {
  min-width: 0;
  flex: 1 1 auto;
}
.career-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  color: var(--bs-body-color);
}
.career-meta,
.career-org {
  color: color-mix(in srgb, var(--bs-body-color) 88%, transparent);
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 0.35rem;
}
.career-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: 0.1rem 0 0;
  flex: 0 0 auto;
}
@media (max-width: 575.98px) {
  .career-heading {
    flex-wrap: wrap;
  }
  .career-tags {
    justify-content: flex-end;
  }
}
.career-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  line-height: 1.3;
  background: rgba(0, 186, 255, 0.18);
  border: 1px solid rgba(0, 186, 255, 0.32);
  color: inherit;
}
.career-desc {
  color: color-mix(in srgb, var(--bs-body-color) 92%, transparent);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0.75rem 0 0;
  text-decoration: none;
  border: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.career-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border: 0;
}
.career-deadline {
  color: color-mix(in srgb, var(--bs-body-color) 86%, transparent);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.career-cta {
  color: rgba(var(--bs-primary-rgb), 0.95);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: gap 0.14s ease;
}
.career-card:hover .career-cta {
  gap: 0.45rem;
}

.career-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.95rem 0.35rem 0.15rem;
}

@supports (backdrop-filter: blur(1px)) {
  .career-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
  }
}

[data-bs-theme="light"] body {
  background-color: #f0f0f0;
}

/* Make career listing columns 30% width on large viewports (scoped to the listing row) */
@media (min-width: 992px) {
  .row.g-4 > .col-12.col-md-6.col-lg-6 {
    flex: 0 0 auto;
    width:50% !important;
    max-width:50% !important;
  }
}

[data-bs-theme="light"] .career-card {
    background-color: #fbfbfb !important;
}

[data-bs-theme="dark"] .career-card {
    background-color: #08151d !important;
}

[data-bs-theme="light"] .career-tag {
  background: rgba(2, 62, 150, 0.08);
  border-color: rgba(2, 62, 150, 0.16);
}