/* Careers specific styles - Dark theme to match site design */
.careers-header {
  text-align: center;
  padding: 40px 0 20px;
  color: #00b8ff;
}

.careers-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 0 15px;
  color: #ccc;
  line-height: 1.8;
}

.filter-section {
  background: #1a1a1a;
  padding: 30px 0;
  margin-bottom: 40px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.filter-group {
  flex: 1;
  min-width: 250px;
}

.filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}

.filter-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 14px;
  background: #0d0d0d;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.advanced-search-btn {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  align-self: flex-end;
}

.advanced-search-btn:hover {
  background: var(--primary-color);
  color: #000;
}

.jobs-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 60px;
}

/* Custom select appearance */
.select-custom {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 6px 0 6px;
}

.select-custom:after {
  content: '\25BC';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #D9A520;
  pointer-events: none;
}

.select-custom .filter-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  padding-right: 44px;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ensure option text is readable in dropdowns */
.select-custom .filter-select option {
  color: #000;
}

/* Job type pills */
.job-type-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ddd;
  padding: 0 14px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill.active {
  background: var(--primary-color);
  color: #000;
  border-color: rgba(255, 255, 255, 0.06);
}

.filter-actions {
  display: flex;
  align-items: center;
}

.filter-actions .search-btn,
.advanced-search-btn,
.filter-actions .advanced-search-btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.filter-actions {
  align-self: flex-end;
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    gap: 12px;
  }

  .filter-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.jobs-table {
  width: 100%;
  background: #0d0d0d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #222;
}

.jobs-table-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  background: #1a1a1a;
  padding: 20px;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid #333;
}

.job-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  padding: 25px 20px;
  border-bottom: 1px solid #222;
  align-items: center;
  transition: background 0.3s;
}

.job-row:hover {
  background: #1a1a1a;
}

.job-row:last-child {
  border-bottom: none;
}

.job-title {
  font-weight: 600;
  color: #fff;
  font-size: 16px;
}

.job-category {
  color: #aaa;
  font-size: 14px;
}

.job-type {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(249, 199, 73, 0.12);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(249, 199, 73, 0.25);
}

.read-more-btn {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.read-more-btn:hover {
  background: var(--primary-color);
  color: #000;
}

.no-jobs {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.section-title-careers {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .advanced-search-btn {
    width: 100%;
    align-self: stretch;
  }

  .jobs-table-header {
    display: none;
  }

  .job-row {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  .job-title {
    font-size: 18px;
  }

  .job-category,
  .job-type {
    justify-self: start;
  }

  .read-more-btn {
    width: 100%;
    text-align: center;
  }
}

/* Card-style job layout */
.jobs-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 15px 60px;
}

.job-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 22px;
  border-radius: 18px;
  margin-bottom: 18px;
}

/* start hidden for GSAP entrance animation */
.job-card {
  opacity: 0;
  transform: translateY(12px);
}

.job-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.icon-wrap {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(249, 199, 73, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
}

.job-card-body {
  flex: 1;
}

.job-card-title {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.job-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #bfbfbf;
}

.meta-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.meta-item i {
  color: #9e9e9e;
}

.job-card-cta {
  flex: 0 0 auto;
}

.apply-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #000;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  .job-card {
    flex-direction: column;
    align-items: stretch;
  }

  .icon-wrap {
    margin-bottom: 8px;
  }

  .job-card-cta {
    text-align: right;
  }
}

/* Animated background and floating shapes for Careers page */
.main.main-inner.bg-about {
  position: relative;
  overflow: hidden;
}

.careers-animated-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/photo 2.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: brightness(1.25) contrast(1.15) saturate(1.1);
  animation: bgPulse 14s ease-in-out infinite, bgHue 20s linear infinite;
  z-index: 0;
  will-change: transform, filter;
}

@keyframes bgPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12) rotate(-0.35deg);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bgHue {
  0% {
    filter: brightness(1.25) contrast(1.15) hue-rotate(0deg) saturate(1.1);
  }

  25% {
    filter: brightness(1.28) contrast(1.18) hue-rotate(-6deg) saturate(1.15);
  }

  50% {
    filter: brightness(1.3) contrast(1.2) hue-rotate(12deg) saturate(1.2);
  }

  75% {
    filter: brightness(1.27) contrast(1.16) hue-rotate(-4deg) saturate(1.12);
  }

  100% {
    filter: brightness(1.25) contrast(1.15) hue-rotate(0deg) saturate(1.1);
  }
}

.careers-anim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.careers-anim .shape {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(6px);
  mix-blend-mode: screen;
}

.shape.s1 {
  width: 220px;
  height: 220px;
  background: linear-gradient(45deg, rgba(217, 165, 32, 0.36), rgba(0, 184, 255, 0.18));
  left: 6%;
  top: 10%;
  animation: float1 9s ease-in-out infinite;
}

.shape.s2 {
  width: 160px;
  height: 160px;
  background: linear-gradient(45deg, rgba(249, 199, 73, 0.28), rgba(255, 255, 255, 0.06));
  right: 8%;
  top: 18%;
  animation: float2 11s ease-in-out infinite;
}

.shape.s3 {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, rgba(0, 184, 255, 0.22), rgba(217, 165, 32, 0.15));
  left: 34%;
  bottom: 8%;
  animation: float3 14s ease-in-out infinite;
}

.shape.s4 {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 60%);
  right: 24%;
  bottom: 18%;
  animation: float4 7s ease-in-out infinite;
}

.shape.s5 {
  width: 320px;
  height: 320px;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.02));
  left: 50%;
  top: -8%;
  transform: translateX(-50%);
  animation: float5 20s linear infinite;
  mix-blend-mode: overlay;
  opacity: 0.65;
}

@keyframes float1 {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-48px) rotate(16deg);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes float2 {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-62px) rotate(-12deg);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes float3 {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-34px) rotate(10deg);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes float4 {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-28px) rotate(-10deg);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes float5 {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(84px);
  }

  100% {
    transform: translateY(0);
  }
}

.main.main-inner.bg-about .container {
  position: relative;
  z-index: 2;
}

/* smaller screens adjustments */
@media (max-width: 768px) {

  .shape.s1,
  .shape.s5 {
    display: none;
  }

  .careers-animated-bg {
    animation-duration: 22s;
  }
}

/* SVG animated lines */
.careers-anim svg.anim-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.careers-anim .anim-line {
  stroke: rgba(217, 165, 32, 0.18);
  stroke-width: 1.6;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

/* Spotlight effect */
.careers-spotlight {
  display: none;
}

.careers-spotlight.small {
  display: none;
}

/* tweak shapes layering */
.careers-anim .shape {
  z-index: 1;
  transform-origin: center;
}

.careers-anim .shape.s5 {
  z-index: 0;
}