/* ==========================================================================
   Tandem Careers Page Section-Specific Styles
   ========================================================================== */

/* Hero Right Side Graphic & Card positioning */
.careers-hero-media {
  position: relative;
  display: flex;
  justify-content: flex-end;
  /* Align portal to the right */
  width: 100%;
  z-index: 2;
  margin-top: calc(-2 * var(--space-4xl));
}

.careers-hero-media .portal-img {
  width: 130%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(146, 58, 255, 0.2));
}


.careers-hero-card {
  position: absolute;
  left: calc(100% + var(--layout-gap));
  bottom: -180px;
  z-index: 3;
  width: 100%;
  max-width: 460px;
}

@media (max-width: 1440px) {
  .careers-hero-card {
    left: calc(100% + var(--layout-gap));
    bottom: -180px;
  }
}

@media (max-width: 1280px) {
  .careers-hero-card {
    left: calc(100% + var(--layout-gap));
    bottom: 10px;
  }

  .careers-hero-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: var(--space-lg);
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .careers-hero-media {
    justify-content: center;
    margin-top: 0;
  }
}


/* Why Join Us Chart Graphic */
.why-join-us-section .chart-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(146, 58, 255, 0.15));
}

@media (max-width: 1024px) {
  .why-join-us-section .chart-img {
    max-width: 420px;
    margin: 0 auto;
  }
}

.vacancies-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .vacancies-left {
    gap: var(--space-lg);
  }
}

/* Vacancies List and Blocks Grid */
.vacancies-bottom-row {
  position: relative;
  width: 100%;
}

.vacancies-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  width: 100%;
  position: relative;
  z-index: 3;
}

.vacancy-block-item {
  border: 1px solid var(--border-glass);
  padding: var(--space-md) var(--space-xl);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  cursor: pointer;
}


@media (hover: hover) {
  .vacancy-block-item:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-purple-glow);
    background: rgba(var(--primary-purple-rgb), 0.05);
  }
}

.vacancies-ball-decor-wrapper {
  right: -80px;
  bottom: -60px;
  width: 320px;
  height: 320px;
}

.vacancies-ball-decor-wrapper .ball-decor-img-right {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(var(--primary-purple-rgb), 0.25));
}

@media (max-width: 768px) {
  .vacancy-block-item {
    padding: var(--space-sm) var(--space-lg);
  }

  .vacancy-block-item p {
    font-size: 15px;
  }

  .vacancies-ball-decor-wrapper {
    right: -30px;
    bottom: -40px;
    width: 180px;
    height: auto;
  }
}

.profile-right-wrapper {
  position: relative;
  z-index: 3;
}

/* Candidate Profile Card Alignment */
.candidate-profile-section .glass-card.profile-right-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

/* Candidate Profile Banner */
.candidate-profile-banner {
  background: linear-gradient(90deg, var(--primary-purple) 0%, var(--secondary-blue-purple) 100%);
  padding: var(--space-lg) var(--space-xl);
  width: 100%;
}

.candidate-profile-banner p {
  color: var(--text-white);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.profile-cube-decor-wrapper {
  left: -120px;
  bottom: -80px;
  width: 280px;
  height: 280px;
}

.profile-cube-decor-wrapper .cube-decor-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(var(--primary-purple-rgb), 0.2));
}

@media (max-width: 1024px) {
  .profile-cube-decor-wrapper {
    left: -40px;
    bottom: -40px;
    width: 160px;
    height: auto;
  }

  .candidate-profile-section .split-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
  }
}

/* Helper classes to replace inline styles */
.careers-hero-media .hero-portal-glow {
  width: 100%;
  display: flex;
  justify-content: center;
}

.why-join-us-section .why-join-chart-col {
  display: flex;
  justify-content: center;
  align-items: center;
}