/* ==========================================================================
   APJ 3D DESIGN SOLUTIONS — CAREERS PAGE (WEBSITE THEME)
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL CAREERS H2 OVERRIDE (MATCHES SERVICES PAGES)
   -------------------------------------------------------------------------- */
.panel h2,
.section-header h2,
.hiring-stack-section h2,
.jobs-section h2,
.culture-section h2,
.upload-section h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--primary-deep) !important;
  font-family: var(--font-sans, sans-serif) !important;
}



/* --------------------------------------------------------------------------
   SECTION 2: WHY APJ3D (INTERACTIVE SHOWCASE)
   -------------------------------------------------------------------------- */
.why-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.why-header {
  text-align: center;
  margin-bottom: 60px;
}

/* --------------------------------------------------------------------------
   SECTION 2: WHY APJ3D (3D TILT BENTO GRID)
   -------------------------------------------------------------------------- */
.why-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.why-header {
  text-align: center;
  margin-bottom: 60px;
}

.bento-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 24px;
  perspective: 1000px;
}

/* Grid Layout Assymetry */
.bento-card-1 { grid-column: span 2; grid-row: span 1; }
.bento-card-2 { grid-column: span 1; grid-row: span 1; }
.bento-card-3 { grid-column: span 1; grid-row: span 1; }
.bento-card-4 { grid-column: 3; grid-row: 1 / span 2; } /* Card 4 takes up the entire right column */

.bento-card {
  position: relative;
  border-radius: 24px;
  background: #000b1e; /* Dark background so images blend darkly */
  border: 1px solid rgba(31,168,223,0.1);
  transform-style: preserve-3d;
  transition: transform 0.1s linear, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  cursor: pointer;
}

.bento-card:hover {
  box-shadow: 0 30px 60px rgba(31,168,223,0.15), 0 0 40px rgba(31,168,223,0.05) inset;
  z-index: 10;
}

.bento-bg-wrapper {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  z-index: 0;
}

/* Gradient overlay to ensure text is always readable at the bottom */
.bento-bg-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,11,30,0.95) 0%, rgba(0,11,30,0) 70%);
  z-index: 1;
  pointer-events: none;
}

.bento-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
  filter: grayscale(80%) contrast(1.2);
  overflow: hidden; /* Added here so image scale doesn't spill out of border radius */
}

.bento-card:hover .bento-card-bg { 
  opacity: 0.6; 
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

.bento-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover .bento-glare { opacity: 1; }

.bento-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  transform: translateZ(40px); /* 3D POP OUT */
}

/* Unique Icon Styling */
.bento-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(31, 168, 223, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(31, 168, 223, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: auto; /* Pushes text to bottom */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.bento-content h3 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.bento-content p {
  color: #a1a1aa;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 90%;
}

@media (max-width: 991px) {
  .bento-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-card-1, .bento-card-2, .bento-card-3, .bento-card-4 {
    grid-column: 1 !important;
    grid-row: auto !important;
    height: 350px;
  }
}

/* --------------------------------------------------------------------------
   SECTION 3: STATISTICS STRIP (MARQUEE)
   -------------------------------------------------------------------------- */
.stats-section-marquee {
  background-color: var(--primary-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.stats-marquee-container {
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  display: flex;
}

.stats-marquee-track {
  display: flex;
  width: fit-content;
  animation: scrollMarquee 35s linear infinite;
}

.stats-marquee-track:hover {
  animation-play-state: paused;
}

.stats-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.stat-marquee-item {
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: relative;
  white-space: nowrap;
}

.stat-marquee-item::after {
  content: '•';
  position: absolute;
  right: 0;
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.2rem;
  line-height: 1;
}

.stat-marquee-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-right: 12px;
  font-family: var(--font-mono);
}

.stat-marquee-lbl {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   SECTION 4: OPEN POSITIONS (PREMIUM)
   -------------------------------------------------------------------------- */
.jobs-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-primary);
}

.jobs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.jobs-sidebar {
  background: var(--primary-deep);
  padding: 30px;
  border-radius: 20px;
  border: none;
  position: sticky;
  top: calc(var(--site-header-height) + 20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  color: var(--text-white);
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.checkbox-wrap:hover {
  color: var(--accent-cyan);
}

.checkbox-wrap input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.jobs-sidebar .reset-btn {
  width: 100%;
  margin-top: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.jobs-sidebar .reset-btn:hover {
  background: white;
  color: var(--primary-deep);
}

.jobs-main .jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.search-bar {
  flex: 1;
  position: relative;
  max-width: 400px;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  outline: none;
  font-family: var(--font-sans);
  background: white;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.search-bar input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(31, 168, 223, 0.15);
}

.search-bar i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.job-card {
  background: white;
  padding: 35px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.job-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-cyan);
  transform: scaleY(0);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: bottom;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: transparent;
}

.job-card:hover::before {
  transform: scaleY(1);
}

.job-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.tag {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.job-card:hover .tag {
  background: white;
}

.tag.dept {
  background: rgba(31, 168, 223, 0.08);
  color: var(--accent-cyan);
  border: none;
}

.job-card h3 {
  font-size: 1.6rem;
  color: var(--primary-deep);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.job-card:hover h3 {
  color: var(--accent-cyan);
}

.job-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.post-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.job-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.job-link {
  font-weight: 700;
  color: var(--primary-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.job-link i {
  transition: transform 0.3s ease;
}

.job-link:hover {
  color: var(--accent-cyan);
}

.job-link:hover i {
  transform: translateX(5px);
}

.job-btn {
  background: var(--primary-deep);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.job-btn:hover {
  background: var(--accent-cyan);
  box-shadow: 0 5px 15px rgba(31, 168, 223, 0.3);
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   SECTION 5: ENGINEERING CULTURE
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   SECTION 5: ENGINEERING CULTURE (ACCORDION)
   -------------------------------------------------------------------------- */
.culture-section {
  padding: 80px 0;
  background: var(--bg-primary); /* Clean contrast with footer/header */
}

.culture-section .container > h2 {
  font-size: 2.5rem;
  color: var(--primary-deep);
  margin-bottom: 2.5rem;
  font-weight: 800;
  text-align: center;
}

.culture-accordion {
  display: flex;
  height: 450px;
  gap: 20px;
  width: 100%;
}

.culture-acc-item {
  flex: 1;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.culture-acc-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,11,30,0.95) 0%, rgba(0,11,30,0.1) 70%);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.culture-accordion:hover .culture-acc-item {
  flex: 1;
}

.culture-accordion:hover .culture-acc-item:hover {
  flex: 3;
}

.culture-acc-item:hover::before {
  background: linear-gradient(to top, rgba(0,11,30,0.9) 0%, rgba(0,11,30,0.3) 100%);
}

.culture-acc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.culture-acc-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  transition: all 0.5s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.culture-acc-item:hover .culture-acc-content h3 {
  color: var(--accent-cyan);
}

.culture-acc-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-top: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateY(20px);
  line-height: 1.6;
}

.culture-acc-item:hover .culture-acc-content p {
  opacity: 1;
  max-height: 150px;
  transform: translateY(0);
  margin-top: 15px;
}

@media (max-width: 992px) {
  .culture-accordion {
    flex-direction: column;
    height: 700px;
  }
  .culture-accordion:hover .culture-acc-item:hover {
    flex: 2;
  }
  .culture-acc-content h3 {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   SECTION 6: INTERACTIVE FEATURE STACK (HIRING)
   -------------------------------------------------------------------------- */
.hiring-stack-section {
  padding: 100px 0;
  background: var(--bg-secondary); /* Clean light background */
  overflow: hidden;
  position: relative;
}

.process-deck {
  position: relative;
  height: 380px;
  width: 100%;
  max-width: 1100px;
  margin: 60px auto 0;
  display: flex;
  align-items: center;
}

.deck-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 340px;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: -10px 0 25px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  left: calc(var(--index) * 160px);
  z-index: var(--index);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Subtle colored gradient strip at the top */
.deck-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: var(--color);
}

.deck-number {
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(0,0,0,0.03);
  position: absolute;
  top: 15px;
  right: 15px;
  line-height: 1;
  transition: all 0.4s ease;
}

.deck-icon {
  font-size: 2.2rem;
  color: var(--color);
  margin-bottom: 25px;
  transition: all 0.4s ease;
}

.deck-title {
  font-size: 1.4rem;
  color: var(--primary-deep);
  font-weight: 700;
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.deck-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  opacity: 0; /* Hidden by default */
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover Interactions */
.deck-card:hover {
  transform: translateY(calc(-50% - 20px)) scale(1.02);
  box-shadow: -20px 20px 50px rgba(0,0,0,0.12);
  z-index: 20;
}

/* Push subsequent cards away to reveal the content */
.deck-card:hover ~ .deck-card {
  transform: translateY(-50%) translateX(140px);
}

/* Reveal content of hovered card */
.deck-card:hover .deck-content {
  opacity: 1;
  transform: translateY(0);
}

/* Animate the number on hover */
.deck-card:hover .deck-number {
  color: rgba(31, 168, 223, 0.25);
  transform: scale(1.1) translate(-10px, 10px);
}

@media (max-width: 900px) {
  .process-deck {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 100%;
    margin-top: 40px;
  }
  .deck-card {
    position: relative;
    top: auto;
    left: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 320px;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: auto !important;
  }
  .deck-content {
    opacity: 1;
    transform: none;
  }
  .deck-card:hover ~ .deck-card {
    transform: none !important;
  }
  .deck-card:hover {
    transform: translateY(-5px) !important;
  }
}

/* --------------------------------------------------------------------------
   SECTION 7: PREMIUM RESUME DROPZONE
   -------------------------------------------------------------------------- */
.upload-section {
  padding: 100px 0;
  background-color: var(--bg-secondary, #f8fafc);
  text-align: center;
  position: relative;
}

.upload-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 60px 50px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  position: relative;
}

.drop-zone {
  position: relative;
  background: #fdfdfd;
  border: 2px dashed rgba(31, 168, 223, 0.3);
  border-radius: 16px;
  padding: 4rem 2rem;
  margin: 2rem 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.drop-zone:hover {
  border-color: var(--accent-cyan, #1fa8df);
  background: rgba(31, 168, 223, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(31, 168, 223, 0.08);
}

.drop-zone i {
  font-size: 3.5rem;
  color: var(--accent-cyan, #1fa8df);
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drop-zone:hover i {
  transform: translateY(-8px) scale(1.05);
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  color: #1e293b;
  font-family: var(--font-sans, sans-serif);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan, #1fa8df);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 168, 223, 0.15);
}

/* Custom Premium Dropdown Styling */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
  text-align: left; /* Fix inherited center alignment */
}

.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  color: #94a3b8;
  font-family: var(--font-sans, sans-serif);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--accent-cyan, #1fa8df);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 168, 223, 0.15);
  color: #1e293b;
}

.custom-select-trigger i {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-select.open .custom-select-trigger i {
  transform: rotate(180deg);
  color: var(--accent-cyan, #1fa8df);
}

.custom-options {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 50;
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.custom-option:hover {
  background: #f1f5f9;
  color: var(--primary-deep, #080b2c);
}

.custom-option.selected {
  background: rgba(31, 168, 223, 0.08);
  color: var(--accent-cyan, #1fa8df);
  font-weight: 600;
}

.custom-option.selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: auto;
  color: var(--accent-cyan, #1fa8df);
  font-size: 0.9rem;
}

.upload-submit-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-bright, #103591) 0%, var(--accent-cyan, #1fa8df) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-sans, sans-serif);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(16, 53, 145, 0.2);
}

.upload-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(16, 53, 145, 0.3);
}

/* --------------------------------------------------------------------------
   SECTION 8: TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: var(--space-md);
  animation: scrollTrack 40s linear infinite;
  width: max-content;
  padding: 1rem 0;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-450px * 3 - var(--space-md) * 3)); }
}

.testimonials-track .testimonial-card {
  width: 450px;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-track .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
}

/* Large decorative quote mark in the background */
.testimonials-track .testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(31, 168, 223, 0.08); /* Faint accent color */
  z-index: 0;
  pointer-events: none;
}

.test-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.test-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.test-info {
  display: flex;
  flex-direction: column;
}

.test-info h4 {
  color: var(--primary-deep, #080b2c);
  margin-bottom: 4px;
  font-size: 1.2rem;
  font-family: var(--font-sans, sans-serif);
  font-weight: 700;
}

.test-info span {
  font-size: 0.9rem;
  color: var(--accent-cyan, #1fa8df);
  font-weight: 500;
}

.test-quote {
  font-style: italic;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   SECTION 9: OFFICE MAP
   -------------------------------------------------------------------------- */
.map-section {
  padding: 100px 0;
  background: var(--bg-primary, #f8f9fa);
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
}

.map-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.office-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.office-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
  transform: translateX(10px);
  border-color: var(--accent-cyan, #1fa8df);
  box-shadow: 0 15px 40px rgba(31, 168, 223, 0.08);
}

.office-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(31, 168, 223, 0.1);
  color: var(--accent-cyan, #1fa8df);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.office-details h4 {
  color: var(--primary-deep, #080b2c);
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.office-details p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.map-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}

.map-aspect-ratio {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square aspect ratio for the right column */
}

.map-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.8;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-cyan);
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: pulsePin 2s infinite;
}

.map-pin::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  background: var(--accent-cyan-glow);
  border-radius: 50%;
  z-index: -1;
  animation: pulsePinOuter 2s infinite;
}

.pin-info {
  position: absolute;
  background: var(--bg-dark-navy, #0a1128);
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pin-info::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--bg-dark-navy, #0a1128);
}

/* Modifiers for Pin Info positions */
.pin-top {
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
}
.pin-top::after {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.pin-right {
  top: 50%;
  left: 25px;
  transform: translateY(-50%);
}
.pin-right::after {
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.pin-left {
  top: 50%;
  right: 25px;
  left: auto;
  transform: translateY(-50%);
}
.pin-left::after {
  right: -4px;
  left: auto;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

@keyframes pulsePin {
  0% { box-shadow: 0 0 0 0 var(--accent-cyan-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes pulsePinOuter {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}



/* RESPONSIVE */
@media (max-width: 992px) {
  .why-grid, .culture-row {
    grid-template-columns: 1fr;
  }
  .culture-row.reverse {
    direction: ltr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .jobs-layout {
    grid-template-columns: 1fr;
  }
  .jobs-sidebar {
    position: static;
  }
  .timeline-container {
    flex-direction: column;
    gap: 2rem;
  }
  .timeline-container::before {
    top: 0; bottom: 0;
    left: 24px;
    height: auto; width: 2px;
  }
  .timeline-step {
    display: flex;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
  }
  .step-circle {
    margin: 0;
    flex-shrink: 0;
  }
  .form-row {
    flex-direction: column;
  }
  .jobs-main .jobs-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search-bar {
    max-width: 100%;
  }
}
