/* ============================================
   Careers Page Styles
   Keep global header/footer styles in style.css
   ============================================ */

:root {
  --careers-hero-bg: #44209C;
}

/* Hero */
.careers-hero {
  width: 100%;
  padding: 84px 0 96px;
  background: #372CAB;
  position: relative;
  overflow: hidden;
}

.careers-hero-corner {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: clamp(280px, 35vw, 377px);
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}

.careers-hero-content {
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
  position: relative;
  z-index: 2;
}

.careers-hero-title {
  font-family: 'Lexend', sans-serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 18px;
  line-height: 1.25;
}

.careers-hero-title .light {
  font-weight: 300;
}

.careers-hero-title strong {
  font-weight: 700;
}

.careers-hero-text {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 29px;
  max-width: 840px;
  margin: 0 auto 22px;
}

.careers-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.careers-hero-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  color: var(--primary-color);
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  box-shadow: 0px 10px 22px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}

.careers-hero-apply:hover {
  transform: translateY(-1px);
  background: var(--white);
  color: var(--primary-color);
}

.careers-hero-apply i {
  font-size: 16px;
  line-height: 0;
}

/* Floating circles (decorative) */
.careers-hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.careers-floater {
  position: absolute;
  left: var(--x, 10%);
  top: var(--y, 20%);
  width: 178px;
  height: 178px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
  opacity: 0.95;
}

.careers-floater img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fine-tune image framing per corner */
.careers-floater-top-left img {
  object-position: 60% 30%;
}

.careers-floater-top-right img {
  object-position: 55% 30%;
}

.careers-floater-bottom-left img {
  object-position: 55% 20%;
}

.careers-floater-bottom-right img {
  object-position: 50% 25%;
}

/* Promising Brilliance */
.careers-metrics-section {
  width: 100%;
  padding: 64px 0 76px;
  background: #F8F9FA url("../assets/careers-page-image/9-image.png") no-repeat right center;
  background-size: contain;
  position: relative;
  overflow: hidden;
}

.careers-metrics-bg-nine {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  background: url("../assets/icons/9-light-blue-long.png") no-repeat center;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
}

.careers-metrics-container {
  max-width: 1044px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.careers-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.careers-section-title {
  font-family: 'Lexend', sans-serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--black-text);
  line-height: 1.3;
  margin: 0;
}

.careers-section-title .highlight {
  font-weight: 500;
  color: var(--primary-color);
}

.careers-metrics-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 20px;
  align-items: stretch;
  height: 560px;
}

/* Our Values card – gradient + carousel */
.careers-values-card {
  position: relative;
  background: url("../assets/careers-page-image/backgroud-image.png") no-repeat center;
  background-size: cover;
  border: none;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0px 1px 3px 0px rgba(0, 0, 0, 0.08),
    0px 5px 5px 0px rgba(0, 0, 0, 0.06),
    0px 12px 7px 0px rgba(0, 0, 0, 0.05),
    0px 22px 9px 0px rgba(0, 0, 0, 0.03),
    0px 34px 9px 0px rgba(0, 0, 0, 0.02);
}

.careers-values-card::after {
  display: none;
}

.careers-values-carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 20px;
}

.careers-values-slides {
  position: relative;
  flex: 1;
  min-height: 200px;
}

.careers-values-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.careers-values-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.careers-values-title {
  font-family: 'Lexend', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--white);
  margin: 0 0 32px;
}

.careers-values-desc {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 26px;
  margin: 0;
}

.careers-values-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  padding-top: 12px;
}

.careers-values-prev,
.careers-values-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(198, 218, 250, 0.8);
  background: var(--white);
  color: #1C55E0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.careers-values-prev:hover,
.careers-values-next:hover {
  background: #F8FAFF;
  color: #1C55E0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.careers-values-prev i,
.careers-values-next i {
  font-size: 20px;
  font-weight: 700;
}

.careers-small-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.careers-metric-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.careers-metric-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 180px;
  gap: 20px;
}

.careers-metric-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.careers-metric-kicker {
  font-family: 'Lexend', sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.careers-metric-value {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #444444;
  line-height: 1.3;
  margin: 0;
}

.careers-metric-label {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #444444;
  line-height: 1.5;
  margin: 0;
}

/* Culture Highlights */
.careers-culture-section {
  width: 100%;
  padding: 64px 0;
  background:
    radial-gradient(102.85% 35.7% at 50% 100%, rgba(137, 183, 255, 0.45) 0%, rgba(210, 225, 255, 0.4) 22.26%, transparent 100%),
    #FFFFFF;
}

.careers-culture-container {
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.careers-culture-layout {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}

.careers-culture-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.careers-culture-item {
  padding: 24px 24px 24px 32px;
  position: relative;
  border-bottom: 1px solid #E5E7EB;
  transition: background 0.2s ease;
  cursor: pointer;
}

.careers-culture-item:last-child {
  border-bottom: none;
}

.careers-culture-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.2s ease;
}

.careers-culture-item.active {
  background: #F6F9FF;
  border-radius: 2px 16px 16px 2px;
  border-bottom: none
}

.careers-culture-item.active::before {
  background: var(--primary-color);
}

.careers-culture-item-title {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #374151;
  margin: 0;
  padding-left: 0;
  transition: color 0.2s ease;
}

.careers-culture-item.active .careers-culture-item-title {
  font-weight: 500;
  color: var(--primary-color);
  }

.careers-culture-item-desc {
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #374151;
    line-height: 22px;
    margin: 8px 0 0;
    padding-left: 0;
    display: none;
}

.careers-culture-item.active .careers-culture-item-desc {
  display: block;
}

.careers-culture-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-height: 320px;
  /* height set by JS to match .careers-culture-list */
}

.careers-culture-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Bold Technology section */
.careers-bold-section {
  width: 100%;
  padding: 64px 0;
  background: var(--white);
}

.careers-bold-container {
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.careers-bold-subtext {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--secondary-text);
  line-height: 26px;
  max-width: 820px;
  margin: 10px auto 0;
}

.careers-bold-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.careers-bold-stat {
  background: #F6F9FF;
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 16px 14px;
  display: grid;
  gap: 4px;
}

.careers-bold-stat .value {
  font-family: 'Lexend', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.careers-bold-stat .label {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--secondary-text);
  line-height: 20px;
}

/* Open Roles: search, filters, job listings */
.careers-open-roles-section {
  width: 100%;
  padding: 64px 0;
  background: var(--white);
}

.careers-open-roles-container {
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.careers-open-roles-section .careers-section-header {
  margin-bottom: 32px;
}

.careers-jobs-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.careers-job-search-wrap,
.careers-job-select-wrap {
  position: relative;
}

.careers-job-search-input,
.careers-job-select {
  width: 100%;
  height: 48px;
  padding: 12px 44px 12px 16px;
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #6C6C6C;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
}

.careers-job-search-input::placeholder {
  color: #6C6C6C;
}

.careers-job-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #6B7280;
  pointer-events: none;
}

.careers-job-select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #6B7280;
  pointer-events: none;
}

.careers-job-list {
  margin-bottom: 40px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.careers-job-list::-webkit-scrollbar {
  width: 6px;
}

.careers-job-list::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 3px;
}

.careers-job-list::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

.careers-job-list::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

.careers-job-dept-heading {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1F2937;
  margin: 0 0 16px 0;
  padding-top: 24px;
}

.careers-job-list .careers-job-dept-heading:first-child {
  padding-top: 0;
}

.careers-job-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.careers-job-card {
  display: block;
  padding: 20px;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.careers-job-card:hover {
  border-color: #D1D5DB;
  background: #FAFAFA;
}

.careers-job-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.careers-job-card-title {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1F2937;
}

.careers-job-card-days {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #9CA3AF;
  flex-shrink: 0;
}

.careers-job-card-meta {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.4;
  margin: 0;
}

.careers-open-roles-footer {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.5;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* Work Culture @9series gallery */
.careers-gallery-section {
  width: 100%;
  padding: 64px 0 76px;
  background: #F6F9FF;
}

.careers-gallery-container {
  margin: 0 auto;
  padding: 0px 200px;
}

.careers-gallery-desc {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4B5563;
  line-height: 26px;
  max-width: 720px;
  margin: 8px auto 0;
  text-align: center;
}

.careers-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 12px;
  margin-top: 32px;
}

/* Row 1: 1-1-2 ratio */
.careers-gallery-grid .careers-gallery-item:nth-child(1) { grid-column: span 1; }
.careers-gallery-grid .careers-gallery-item:nth-child(2) { grid-column: span 1; }
.careers-gallery-grid .careers-gallery-item:nth-child(3) { grid-column: span 2; }
/* Row 2: 1-2-1 ratio */
.careers-gallery-grid .careers-gallery-item:nth-child(4) { grid-column: span 1; }
.careers-gallery-grid .careers-gallery-item:nth-child(5) { grid-column: span 2; }
.careers-gallery-grid .careers-gallery-item:nth-child(6) { grid-column: span 1; }
/* Row 3: 2-1-1 ratio */
.careers-gallery-grid .careers-gallery-item:nth-child(7) { grid-column: span 2; }
.careers-gallery-grid .careers-gallery-item:nth-child(8) { grid-column: span 1; }
.careers-gallery-grid .careers-gallery-item:nth-child(9) { grid-column: span 1; }

/* Span-2 items: same row height as single-column items (2:1 aspect = wide, not tall) */
.careers-gallery-grid .careers-gallery-item:nth-child(3),
.careers-gallery-grid .careers-gallery-item:nth-child(5),
.careers-gallery-grid .careers-gallery-item:nth-child(7) {
  aspect-ratio: 2 / 1;
}

.careers-gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
}

.careers-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 1100px) {
  .careers-metrics-grid {
    grid-template-columns: 1fr;
  }

  .careers-metrics-bg-nine {
    width: 280px;
    height: 280px;
    right: -60px;
    opacity: 0.08;
  }

  .careers-culture-layout {
    grid-template-columns: 1fr;
  }

  .careers-bold-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .careers-hero {
    padding: 64px 0 72px;
  }

  .careers-hero-title {
    font-size: 28px;
  }

  .careers-hero-text {
    font-size: 16px;
    line-height: 26px;
  }

  .careers-jobs-filters {
    grid-template-columns: 1fr;
  }

  .careers-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .careers-floater {
    display: none;
  }
}

@media (max-width: 480px) {
  .careers-section-title {
    font-size: 24px;
  }

  .careers-small-cards {
    grid-template-columns: 1fr;
  }

  .careers-bold-stats {
    grid-template-columns: 1fr;
  }

  .careers-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Careers CTA – Application form (same theme as main CTA)
   Layout: column = heading → form → subheading. Form = 3 fields per row.
   ============================================ */

.careers-cta-section .careers-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  width: 100%;
}

.careers-cta-section .careers-cta-title {
  margin: 0;
  color: var(--white);
}

.careers-cta-section .careers-cta-subheading {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 720px;
}

.cta-form-wrapper-careers {
  width: 100%;
  max-width: 900px;
}

.careers-apply-form .careers-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.careers-apply-form .cta-field-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.careers-apply-form .cta-input {
  padding-left: 44px;
}

.careers-apply-form .cta-select {
  padding-left: 44px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.9)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Dropdown options: same colour scheme (dark background, light text) */
.careers-apply-form .cta-select option {
  background: #1a2332;
  color: #ffffff;
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  padding: 10px 12px;
}

.careers-apply-form .cta-select option:checked,
.careers-apply-form .cta-select option:hover {
  background: rgba(4, 93, 232, 0.4);
  color: #ffffff;
}

.careers-field-icon {
  position: absolute;
  left: 16px;
  top: 30px;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 1;
}

.careers-apply-form .cta-field-wrap {
  position: relative;
}

.cta-field-error {
  color: #ffb3b3;
  font-size: 13px;
  margin-top: 2px;
  font-family: 'Lexend', sans-serif;
}

.careers-file-row {
  width: 100%;
  margin-top: 4px;
}

.careers-file-wrap {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0 24px;
  border: none;
}

.careers-file-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.careers-file-icon {
  flex-shrink: 0;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.careers-file-wrap .careers-file-label {
  flex: 0 1 auto;
}

.careers-file-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.careers-file-label {
  font-family: 'Lexend', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  opacity: 0.9;
  pointer-events: none;
}

body .careers-file-wrap.has-file .careers-file-label {
  opacity: 1;
}

.careers-file-hint {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin: 8px 0 0;
  padding: 0 4px;
}

.careers-apply-form .cta-recaptcha-group {
  margin-top: 4px;
}

.careers-apply-form .cta-form-message {
  margin-top: 12px;
  font-size: 15px;
  font-family: 'Lexend', sans-serif;
}

@media (max-width: 900px) {
  .careers-apply-form .careers-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .careers-apply-form .careers-form-grid {
    grid-template-columns: 1fr;
  }

  .cta-form-wrapper-careers {
    max-width: 100%;
  }

  .careers-cta-section .careers-cta-subheading {
    font-size: 16px;
  }
}

