.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.btn-contact-nav{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background-color: #b91c03;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(42,59,126,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.main-nav a{
  color: #ef7f1b;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-header{
  position: absolute;
  top:0; left:0; right:0;
  z-index: 50;
  padding: 18px 0;
  background-color: white;
}


.header-inner{
  max-width: 1480px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  gap: 32px;
  padding: 0 32px;
}
.loading-logo {
  width: min(400px, 60vw);
  height: auto;
  animation: loadingPulse 2s ease-in-out forwards;
}
@keyframes loadingPulse {
  0%   { opacity: 0; transform: scale(0.8); }
  20%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}
body.loading { overflow: hidden; }
body.loading > *:not(.loading-screen) { opacity: 0; }

/* ===== LIGHT BRAND SYSTEM ===== */
:root {
  --primary: #2a3b7e;
  --primary-light: #3d52a8;
  --primary-soft: #e8ecf8;
  --eco: #039846;
  --eco-light: #04b354;
  --eco-soft: #e6f5ed;
  --energy: #ef7f1b;
  --energy-light: #f0953d;
  --energy-soft: #fdf0e1;
  --bg: #ffffff;
  --bg-warm: #f7f9fc;
  --bg-surface: #ffffff;
  --bg-elevated: #f4f6fb;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-brand: rgba(42, 59, 126, 0.18);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration:none; color:inherit; }

/* ===== HEADER ===== */
.site-header {
  position: absolute;
  top:0; left:0; right:0;
  z-index: 50;
  padding: 18px 0;
}
.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  gap: 32px;
  padding: 0 32px;
}
.main-nav {
  display:flex;
  align-items:center;
  gap: 22px;
  flex:1;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.main-nav a {
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active { font-weight: 700; }

.header-actions {
  display:flex;
  align-items:center;
  gap: 18px;
  flex-shrink:0;
}

.btn-outline-pill {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-pill:hover {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 32px; height: 32px;
  background:none;
  border:none;
  cursor:pointer;
}
.nav-toggle span {
  display:block;
  height:2px;
  background: var(--primary);
  border-radius:1px;
}

/* Mobile nav dropdown panel - shown when hamburger is toggled open.
   Only takes effect below the breakpoint where .main-nav is hidden. */
@media (max-width: 1100px) {
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface, #ffffff);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    border-top: 1px solid var(--border);
  }
  .main-nav.mobile-open a { white-space: normal; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
}

/* ===== CAREERS HERO ===== */
.careers-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.careers-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1544735716-392fe2489ffa?w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.1;
}
.careers-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    rgba(247,249,252,0.96) 0%,
    rgba(247,249,252,0.88) 45%,
    rgba(255,255,255,0.75) 100%
  );
}
.careers-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 140px 40px 64px;
  text-align: center;
}
.about-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid #2a3b7e;
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 22px;
}
.careers-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.accent { color: var(--primary); }
.careers-hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
}
.careers-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.careers-hero-stat {
  text-align: center;
}
.careers-hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--energy);
  margin-bottom: 4px;
}
.careers-hero-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== WHY MACLEC ===== */
.why-maclec-section {
  padding: 100px 0 80px;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}
.why-maclec-section::before {
  content:'';
  position:absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 350px;
  background: radial-gradient(ellipse, rgba(42,59,126,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.why-maclec-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 20px;
}
.about-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 56px;
}

.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.perk-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 26px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.perk-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(42,59,126,0.08);
}
.perk-icon {
  color: var(--primary);
  margin-bottom: 18px;
  display: flex;
}
.perk-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.perk-card p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ===== JOBS SECTION ===== */
.jobs-section {
  padding: 100px 0 80px;
  background: var(--bg);
}
.jobs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Job Filters */
.job-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.job-filter-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.job-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.job-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(42,59,126,0.20);
}

/* Job Search */
.job-search-wrap {
  position: relative;
  margin-bottom: 20px;
}
.job-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.job-search-input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.job-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,59,126,0.08);
}
.job-search-input::placeholder {
  color: var(--text-muted);
}

/* Job Count */
.job-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.job-count strong {
  color: var(--primary);
  font-weight: 700;
}

/* Job Cards */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.job-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(42,59,126,0.08);
}
.job-card.hidden {
  display: none;
}

.job-card-header {
  padding: 24px 28px;
  cursor: pointer;
  position: relative;
  padding-right: 60px;
}
.job-card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.job-card-dept {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--border-brand);
  border-radius: 999px;
  padding: 3px 12px;
}
.job-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.job-card-location svg {
  color: var(--text-muted);
}
.job-card-type {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--eco);
  background: var(--eco-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.job-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.job-card-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 90%;
}

.job-card-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.job-card-toggle svg {
  transition: transform 0.3s ease;
}
.job-card.expanded .job-card-toggle svg {
  transform: rotate(180deg);
}
.job-card-toggle:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--border-brand);
}

.job-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
}
.job-card.expanded .job-card-body {
  max-height: 1200px;
  padding: 0 28px 24px;
}

.job-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.job-detail-col strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.job-detail-col ul {
  list-style: none;
}
.job-detail-col li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.job-detail-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--energy-light);
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.job-posted {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* No Results */
.job-no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-warm);
  border-radius: 14px;
  border: 1px dashed var(--border);
}
.job-no-results-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.job-no-results h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.job-no-results p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* ===== GENERAL APPLICATION ===== */
.general-app-section {
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(42,59,126,0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.general-app-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.general-app-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.general-app-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 28px;
}
.general-app-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== APPLICATION MODAL ===== */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.apply-modal.open {
  display: flex;
}
.apply-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(6px);
}
.apply-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  padding: 32px;
}
.apply-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.apply-modal-close:hover { color: var(--text); }
.apply-modal-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.apply-modal-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--energy);
  background: var(--energy-soft);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.apply-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

/* Form */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-warm);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,59,126,0.08);
  background: var(--bg-surface);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* File Upload */
.file-upload-wrap {
  position: relative;
}
.file-upload-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.file-upload-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-warm);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}
.file-upload-wrap:hover .file-upload-display,
.file-upload-wrap input[type="file"]:focus + .file-upload-display {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.file-name {
  font-size: 0.78rem;
  color: var(--eco);
  font-weight: 600;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

/* Apply Success */
.apply-success {
  text-align: center;
  padding: 40px 20px;
}
.apply-success-icon {
  color: var(--eco);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.apply-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.apply-success p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 24px;
}

/* ===== SHARED BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-brand);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 12px 26px;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #3d64c1;
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand {
  flex: 0 0 220px;
}
.footer-logo {
  width: 165px;
  height: auto;
  margin-bottom: 12px;
  
  opacity: 0.9;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--energy-light); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .main-nav { display:none; }
  .nav-toggle { display:flex; }
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .job-card-details { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .careers-hero-content { padding: 120px 24px 48px; }
  .careers-hero-stats { gap: 32px; }
  .why-maclec-inner, .jobs-inner { padding: 0 24px; }
  .perk-grid { grid-template-columns: 1fr; }
  .job-card-header { padding: 20px 20px 20px 22px; padding-right: 56px; }
  .job-card.expanded .job-card-body { padding: 0 22px 20px; }
  .job-card-toggle { top: 20px; right: 20px; }
  .general-app-section { padding: 60px 24px; }
  .apply-modal-content { padding: 24px; max-height: 95vh; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
}



::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
}

* {
  -ms-overflow-style: none;
}


/* ===== CAREERS HERO ===== */
.careers-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.careers-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1544735716-392fe2489ffa?w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.1;
}
.careers-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    rgba(247,249,252,0.96) 0%,
    rgba(247,249,252,0.88) 45%,
    rgba(255,255,255,0.75) 100%
  );
}
.careers-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 140px 40px 64px;
  text-align: center;
}
.about-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid #2a3b7e;
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 22px;
}
.careers-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.accent { color: var(--primary); }
.careers-hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* ---- FIXED: Careers Hero Stats ---- */
.careers-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.careers-hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 120px;
}

.careers-hero-stat:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(42,59,126,0.10);
}

.careers-hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--energy);
  margin-bottom: 8px;
  line-height: 1.1;
}

.careers-hero-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 100%;
}

/* ===== WHY MACLEC ===== */
.why-maclec-section {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 50%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}
.why-maclec-section::before {
  content:'';
  position:absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 350px;
  background: radial-gradient(ellipse, rgba(42,59,126,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.why-maclec-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(42,59,126,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(239,127,27,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.why-maclec-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 20px;
}
.about-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 56px;
}

/* ---- Perk Grid ---- */
.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.perk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 32px 28px;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.5s cubic-bezier(0.34, 1.8, 0.64, 1);
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  border: 2px solid transparent;
  min-height: 260px;
}

.perk-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.perk-card:nth-child(1) { transition-delay: 0.06s; }
.perk-card:nth-child(2) { transition-delay: 0.12s; }
.perk-card:nth-child(3) { transition-delay: 0.18s; }
.perk-card:nth-child(4) { transition-delay: 0.24s; }
.perk-card:nth-child(5) { transition-delay: 0.30s; }
.perk-card:nth-child(6) { transition-delay: 0.36s; }

/* colored background */
.perk-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.88;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.perk-card:hover::after {
  opacity: 1;
  transform: scale(1.05);
}

/* ambient glow orb */
.perk-card .glow-orb {
  position: absolute;
  top: -50px; right: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(30px);
  opacity: 0.5;
  transition: all 0.6s ease;
}
.perk-card:hover .glow-orb {
  transform: scale(1.8) translate(-20px, 20px);
  opacity: 0.9;
}

/* shimmer sweep */
.perk-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 65%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}
.perk-card:hover::before {
  animation: perkShimmer 1s ease forwards;
  opacity: 1;
}
@keyframes perkShimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* pop on hover */
.perk-card:hover {
  transform: translateY(-12px) scale(1.05) rotate(-1deg);
  box-shadow:
    0 25px 60px -15px var(--card-shadow),
    0 0 0 3px var(--card-border-glow),
    0 0 60px -10px var(--card-outer-glow),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ---- Icon ---- */
.perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  color: #fff;
  box-shadow: 0 8px 24px var(--icon-shadow);
  animation: perkIconBounce 2.5s ease-in-out infinite;
}
.perk-icon svg {
  width: 26px; height: 26px;
  stroke-width: 1.8;
  stroke: currentColor;
  fill: none;
}

.perk-card:nth-child(1) .perk-icon { animation-delay: 0s; }
.perk-card:nth-child(2) .perk-icon { animation-delay: 0.35s; }
.perk-card:nth-child(3) .perk-icon { animation-delay: 0.7s; }
.perk-card:nth-child(4) .perk-icon { animation-delay: 1.05s; }
.perk-card:nth-child(5) .perk-icon { animation-delay: 1.4s; }
.perk-card:nth-child(6) .perk-icon { animation-delay: 1.75s; }

@keyframes perkIconBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  20%      { transform: scale(1.12) translateY(-5px); }
  40%      { transform: scale(0.95) translateY(2px); }
  60%      { transform: scale(1.06) translateY(-2px); }
  80%      { transform: scale(1) translateY(0); }
}

/* icon spinning glow ring */
.perk-icon::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 20px;
  background: conic-gradient(from 0deg, var(--icon-ring-1), var(--icon-ring-2), var(--icon-ring-1));
  z-index: -2;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}
.perk-card:hover .perk-icon::before {
  opacity: 0.7;
  animation: perkIconSpin 2s linear infinite;
}
@keyframes perkIconSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* icon burst pulse */
.perk-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
  opacity: 0;
}
.perk-card:hover .perk-icon::after {
  animation: perkIconBurst 1.2s ease-out infinite;
}
@keyframes perkIconBurst {
  0%   { opacity: 0.5; transform: scale(1);   filter: blur(0px); }
  100% { opacity: 0;   transform: scale(2.4); filter: blur(6px); }
}

/* ---- Typography ---- */
.perk-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.perk-card:hover strong {
  transform: scale(1.05) translateX(2px);
}

.perk-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ============================================
   PERK COLOR VARIANTS — EXPLICIT STYLES
   ============================================ */

/* ---- 1. Cutting-Edge Tech (Indigo) ---- */
.perk-card:nth-child(1) {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
  --card-shadow: rgba(42,59,126,0.35);
  --card-border-glow: rgba(42,59,126,0.3);
  --card-outer-glow: rgba(79,70,229,0.2);
}
.perk-card:nth-child(1)::after {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.perk-card:nth-child(1) .glow-orb {
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}
.perk-card:nth-child(1) .perk-icon {
  background: linear-gradient(135deg, #2a3b7e, #4f46e5);
  --icon-shadow: rgba(42,59,126,0.45);
  --icon-ring-1: #2a3b7e;
  --icon-ring-2: #818cf8;
}
.perk-card:nth-child(1) strong { color: #1e1b4b; }
.perk-card:nth-child(1) p { color: #3730a3; }
.perk-card:nth-child(1):hover { border-color: #4f46e5; }

/* ---- 2. Global Exposure (Emerald) ---- */
.perk-card:nth-child(2) {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
  --card-shadow: rgba(3,152,70,0.35);
  --card-border-glow: rgba(3,152,70,0.3);
  --card-outer-glow: rgba(16,185,129,0.2);
}
.perk-card:nth-child(2)::after {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.perk-card:nth-child(2) .glow-orb {
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}
.perk-card:nth-child(2) .perk-icon {
  background: linear-gradient(135deg, #039846, #059669);
  --icon-shadow: rgba(3,152,70,0.45);
  --icon-ring-1: #039846;
  --icon-ring-2: #34d399;
}
.perk-card:nth-child(2) strong { color: #064e3b; }
.perk-card:nth-child(2) p { color: #065f46; }
.perk-card:nth-child(2):hover { border-color: #10b981; }

/* ---- 3. Startup Agility (Amber) ---- */
.perk-card:nth-child(3) {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 50%, #fdba74 100%);
  --card-shadow: rgba(239,127,27,0.35);
  --card-border-glow: rgba(239,127,27,0.3);
  --card-outer-glow: rgba(249,115,22,0.2);
}
.perk-card:nth-child(3)::after {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}
.perk-card:nth-child(3) .glow-orb {
  background: radial-gradient(circle, #f97316 0%, transparent 70%);
}
.perk-card:nth-child(3) .perk-icon {
  background: linear-gradient(135deg, #ea580c, #f97316);
  --icon-shadow: rgba(239,127,27,0.45);
  --icon-ring-1: #ea580c;
  --icon-ring-2: #fb923c;
}
.perk-card:nth-child(3) strong { color: #7c2d12; }
.perk-card:nth-child(3) p { color: #9a3412; }
.perk-card:nth-child(3):hover { border-color: #f97316; }

/* ---- 4. Impact-Driven (Sky) ---- */
.perk-card:nth-child(4) {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
  --card-shadow: rgba(37,99,235,0.35);
  --card-border-glow: rgba(37,99,235,0.3);
  --card-outer-glow: rgba(59,130,246,0.2);
}
.perk-card:nth-child(4)::after {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.perk-card:nth-child(4) .glow-orb {
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}
.perk-card:nth-child(4) .perk-icon {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  --icon-shadow: rgba(37,99,235,0.45);
  --icon-ring-1: #2563eb;
  --icon-ring-2: #60a5fa;
}
.perk-card:nth-child(4) strong { color: #1e3a8a; }
.perk-card:nth-child(4) p { color: #1e40af; }
.perk-card:nth-child(4):hover { border-color: #3b82f6; }

/* ---- 5. Competitive & Fair (Violet) ---- */
.perk-card:nth-child(5) {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 50%, #c4b5fd 100%);
  --card-shadow: rgba(124,58,237,0.35);
  --card-border-glow: rgba(124,58,237,0.3);
  --card-outer-glow: rgba(139,92,246,0.2);
}
.perk-card:nth-child(5)::after {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.perk-card:nth-child(5) .glow-orb {
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}
.perk-card:nth-child(5) .perk-icon {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  --icon-shadow: rgba(124,58,237,0.45);
  --icon-ring-1: #6d28d9;
  --icon-ring-2: #a78bfa;
}
.perk-card:nth-child(5) strong { color: #4c1d95; }
.perk-card:nth-child(5) p { color: #5b21b6; }
.perk-card:nth-child(5):hover { border-color: #8b5cf6; }

/* ---- 6. Continuous Growth (Cyan) ---- */
.perk-card:nth-child(6) {
  background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 50%, #67e8f9 100%);
  --card-shadow: rgba(8,145,178,0.35);
  --card-border-glow: rgba(8,145,178,0.3);
  --card-outer-glow: rgba(6,182,212,0.2);
}
.perk-card:nth-child(6)::after {
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
}
.perk-card:nth-child(6) .glow-orb {
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}
.perk-card:nth-child(6) .perk-icon {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  --icon-shadow: rgba(8,145,178,0.45);
  --icon-ring-1: #0891b2;
  --icon-ring-2: #22d3ee;
}
.perk-card:nth-child(6) strong { color: #164e63; }
.perk-card:nth-child(6) p { color: #155e75; }
.perk-card:nth-child(6):hover { border-color: #06b6d4; }


/* ---- UNIQUE LIGHT: Careers Hero Stats ---- */
.careers-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 20px;
}

.careers-hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow:
    0 1px 3px rgba(15,23,42,0.04),
    0 4px 16px rgba(15,23,42,0.03);
}

.careers-hero-stat.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.careers-hero-stat:nth-child(1) { transition-delay: 0.08s; --stat-accent: #6366f1; --stat-glow: rgba(99,102,241,0.25); --stat-soft: #e0e7ff; }
.careers-hero-stat:nth-child(2) { transition-delay: 0.16s; --stat-accent: #10b981; --stat-glow: rgba(16,185,129,0.25); --stat-soft: #d1fae5; }
.careers-hero-stat:nth-child(3) { transition-delay: 0.24s; --stat-accent: #f59e0b; --stat-glow: rgba(245,158,11,0.25); --stat-soft: #fef3c7; }
.careers-hero-stat:nth-child(4) { transition-delay: 0.32s; --stat-accent: #ec4899; --stat-glow: rgba(236,72,153,0.25); --stat-soft: #fce7f3; }
.careers-hero-stat:nth-child(5) { transition-delay: 0.40s; --stat-accent: #06b6d4; --stat-glow: rgba(6,182,212,0.25); --stat-soft: #cffafe; }
.careers-hero-stat:nth-child(6) { transition-delay: 0.48s; --stat-accent: #8b5cf6; --stat-glow: rgba(139,92,246,0.25); --stat-soft: #ede9fe; }
.careers-hero-stat:nth-child(7) { transition-delay: 0.56s; --stat-accent: #f97316; --stat-glow: rgba(249,115,22,0.25); --stat-soft: #ffedd5; }

/* soft gradient orb behind each card */
.careers-hero-stat::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stat-accent) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  transition: all 0.5s ease;
}
.careers-hero-stat:hover::before {
  transform: scale(1.8);
  opacity: 0.15;
}

/* floating particles */
.stat-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--stat-accent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.careers-hero-stat:hover .stat-particle {
  animation: statParticleFloat 2.5s ease-out infinite;
}
.stat-particle--1 {
  width: 4px; height: 4px;
  top: 20%; left: 15%;
  animation-delay: 0s !important;
}
.stat-particle--2 {
  width: 6px; height: 6px;
  top: 60%; right: 12%;
  animation-delay: 0.6s !important;
}
.stat-particle--3 {
  width: 3px; height: 3px;
  bottom: 25%; left: 25%;
  animation-delay: 1.2s !important;
}

@keyframes statParticleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: 0.4; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-35px) scale(0); }
}

/* hover lift + colored glow */
.careers-hero-stat:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--stat-accent);
  box-shadow:
    0 20px 50px -15px var(--stat-glow),
    0 0 0 1.5px var(--stat-accent),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* number styling — solid gradient text, NO duplicate shimmer */
.careers-hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--stat-accent) 0%, var(--text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

/* accent line under number */
.careers-hero-stat-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--stat-accent);
  border-radius: 2px;
  margin: 0 auto 10px;
  opacity: 0.5;
  transition: width 0.3s ease, opacity 0.3s ease;
}
.careers-hero-stat:hover .careers-hero-stat-label::before {
  width: 40px;
  opacity: 1;
}

.careers-hero-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* ===== HERO LAYOUT: TEXT + GLOBE ===== */
.careers-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  text-align: left;
  margin-bottom: 48px;
}
.careers-hero-text { flex: 1 1 52%; }
.careers-hero-text .careers-hero-desc { margin: 0; max-width: 560px; }
.careers-hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

/* ===== ROTATING GLOBE ===== */
.hero-globe-wrap {
  position: relative;
  width: 260px;
  height: 260px;
}
.hero-globe-tag {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(42,59,126,0.35);
}
.hero-globe {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #6ea3ec 0%, #2a3b7e 55%, #101a3d 100%);
  box-shadow:
    0 30px 70px -20px rgba(42,59,126,0.45),
    inset -14px -14px 40px rgba(0,0,0,0.35),
    inset 10px 10px 30px rgba(255,255,255,0.12);
  animation: globeFloat 6s ease-in-out infinite;
}
.hero-globe-map {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  background-image:
    radial-gradient(circle at 40px 60px,  #2f9e56 0 22px, transparent 23px),
    radial-gradient(circle at 95px 150px, #2f9e56 0 30px, transparent 31px),
    radial-gradient(circle at 150px 45px, #2f9e56 0 18px, transparent 19px),
    radial-gradient(circle at 195px 175px,#2f9e56 0 24px, transparent 25px),
    radial-gradient(circle at 235px 95px, #04b354 0 16px, transparent 17px),
    radial-gradient(circle at 300px 60px, #2f9e56 0 22px, transparent 23px),
    radial-gradient(circle at 355px 150px,#2f9e56 0 30px, transparent 31px),
    radial-gradient(circle at 410px 45px, #2f9e56 0 18px, transparent 19px),
    radial-gradient(circle at 455px 175px,#2f9e56 0 24px, transparent 25px),
    radial-gradient(circle at 495px 95px, #04b354 0 16px, transparent 17px);
  opacity: 0.92;
  animation: globeSpin 16s linear infinite;
}
.hero-globe-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 68% 72%, transparent 0%, transparent 40%, rgba(6,10,30,0.55) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-globe-highlight {
  position: absolute;
  top: 14%; left: 18%;
  width: 34%; height: 24%;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
  z-index: 3;
  pointer-events: none;
}
.hero-globe-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px dashed rgba(42,59,126,0.25);
  animation: ringSpin 30s linear infinite;
}

@keyframes globeSpin {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes globeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .careers-hero-top {
    flex-direction: column;
    text-align: center;
  }
  .careers-hero-text .careers-hero-desc { margin: 0 auto; }
}

/* ===== ROTATING 3D GLOBE ===== */
.hero-globe-wrap {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft outer atmospheric glow */
.hero-globe-atmosphere {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(140,180,255,0.38) 0%, transparent 55%),
    radial-gradient(circle at 65% 70%, rgba(42,59,126,0.25) 0%, transparent 65%),
    radial-gradient(circle, rgba(100,130,220,0.16), transparent 72%);
  filter: blur(16px);
  animation: globePulse 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-globe {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  animation: globeFloat 6s ease-in-out infinite;
  box-shadow:
    0 60px 110px -30px rgba(15,23,42,0.45),
    0 0 0 1px rgba(255,255,255,0.08) inset,
    -14px 0 30px rgba(255,255,255,0.22) inset,
    16px 0 45px rgba(0,5,20,0.55) inset;
}

.hero-globe-texture {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/c/c4/Earthmap1000x500compac.jpg');
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: globeSpin 28s linear infinite;
  filter: saturate(1.25) contrast(1.15) brightness(0.92);
}

.hero-globe-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.38) 0%, transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(2,6,22,0.88) 0%, rgba(2,6,22,0.40) 50%, transparent 72%);
  z-index: 2;
  pointer-events: none;
}

.hero-globe-terminator {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 32%, rgba(0,8,28,0.52) 58%, rgba(0,8,28,0.75) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-globe-specular {
  position: absolute;
  top: 8%; left: 14%;
  width: 26%; height: 20%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), transparent 68%);
  filter: blur(2px);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

/* Metallic curved text — positioned ABOVE the globe center, slightly outside */
.hero-globe-band {
  position: absolute;
  top: 46%;              /* pulled up from 50% to sit above center */
  left: 50%;
  width: 118%;           /* wider than globe so text sits outside edges */
  height: auto;
  transform: translate(-50%, -55%);  /* shifted up to float above sphere */
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.40));
}
.hero-globe-band-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

@keyframes globeSpin {
  from { background-position-x: 0%; }
  to   { background-position-x: -100%; }
}
@keyframes globeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes globePulse {
  0%, 100% { opacity: 0.80; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.03); }
}

@media (max-width: 1100px) {
  .hero-globe-wrap { width: 340px; height: 340px; }
  .hero-globe { width: 290px; height: 290px; }
  .hero-globe-atmosphere { inset: -28px; }
  .hero-globe-band { width: 120%; transform: translate(-50%, -52%); }
  .hero-globe-band-text { font-size: 22px; letter-spacing: 3.5px; }
}
@media (max-width: 900px) {
  .hero-globe-wrap { width: 300px; height: 300px; }
  .hero-globe { width: 260px; height: 260px; }
  .hero-globe-band { width: 122%; }
  .hero-globe-band-text { font-size: 20px; letter-spacing: 3px; }
}
@media (max-width: 640px) {
  .hero-globe-atmosphere { inset: -22px; }
  .hero-globe-band { width: 125%; transform: translate(-50%, -50%); }
  .hero-globe-band-text { font-size: 17px; letter-spacing: 2.5px; }
}
@media (max-width: 480px) {
  .hero-globe-wrap { width: 220px; height: 220px; }
  .hero-globe { width: 190px; height: 190px; }
  .hero-globe-band { width: 128%; }
  .hero-globe-band-text { font-size: 15px; letter-spacing: 2px; }
}

/* soft outer atmosphere glow, like light bleeding off a planet */
.hero-globe-atmosphere {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(120,170,255,0.35), transparent 60%),
              radial-gradient(circle, rgba(42,59,126,0.18), transparent 72%);
  filter: blur(6px);
  animation: globePulse 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-globe {
    position: relative;
    width: 426px;
    height: 394px;
    border-radius: 50%;
    overflow: hidden;
    animation: globeFloat 6s ease-in-out infinite;
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* the actual rotating map texture — real equirectangular world map,
   doubled in width and slid via translateX for a seamless spin */
.hero-globe-texture {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/83/Equirectangular_projection_SW.jpg');
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: globeSpin 18s linear infinite;
  filter: saturate(1.3) contrast(1.05) brightness(0.95);
}

/* directional lighting: darkens the lower-right, like sunlight from upper-left */
.hero-globe-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.25) 0%, transparent 35%),
    radial-gradient(circle at 68% 75%, rgba(4,10,30,0.75) 0%, rgba(4,10,30,0.15) 55%, transparent 75%);
  z-index: 2;
  pointer-events: none;
}

/* subtle day/night terminator line for extra depth */
.hero-globe-terminator {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 40%, rgba(0,10,30,0.35) 62%, rgba(0,10,30,0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

/* bright specular highlight, like sun glinting off atmosphere */
.hero-globe-specular {
  position: absolute;
  top: 10%; left: 16%;
  width: 30%; height: 22%;
  background: radial-gradient(circle, rgba(255,255,255,0.85), transparent 70%);
  filter: blur(3px);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

/* badge sitting centered over the globe, like the reference image */
.hero-globe-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: rgba(20, 28, 66, 0.55);
  backdrop-filter: blur(3px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@keyframes globeSpin {
  from { background-position-x: 0%; }
  to   { background-position-x: -100%; }
}
@keyframes globeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes globePulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

@media (max-width: 900px) {
  .hero-globe-wrap { width: 240px; height: 240px; }
  .hero-globe { width: 210px; height: 210px; }
}

.hero-globe-band {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 5;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.35));
  pointer-events: none;
}
.hero-globe-band-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 35px;
  letter-spacing: 2px;
  fill: #ffffff;
}

/* ============================================================
   MOBILE RESPONSIVENESS FIXES — appended to career.css
   Paste this block at the very end of career.css (it must come
   after the existing rules so it wins the cascade).
   ============================================================ */

/* Belt-and-braces: stop any decorative element (globe glow,
   drop-shadows, negative-inset atmosphere) from creating a
   horizontal scrollbar on narrow viewports. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ----- Hero: stat cards ----- 
   The grid was hard-locked to 4 columns with no smaller
   breakpoint, so on a phone each cell was ~85px wide and the
   numbers/labels wrapped into an unreadable mess. */
@media (max-width: 900px) {
  .careers-hero-top {
    gap: 32px;
  }
  /* Show the globe above the copy on mobile — reads better as a
     hero image than sitting awkwardly after a wall of text. */
  .careers-hero-visual {
    order: -1;
  }
  .careers-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0;
  }
}

@media (max-width: 640px) {
     .hero-globe-wrap {
        width: 229px;
        height: 224px;
    }
  .hero-globe { width: 295px; height: 223px; }
  .hero-globe-atmosphere { inset: -14px; }
  .hero-globe-tag,
  .hero-globe-band-text { font-size: 33px; letter-spacing: 0.06em; }
  .hero-globe-band { width: 92%; }
}

@media (max-width: 480px) {
  .careers-hero-content { padding: 96px 18px 40px; }
  .careers-hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  .careers-hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .careers-hero-stat {
    min-height: unset;
    padding: 18px 16px;
  }

  .job-card-summary { max-width: 100%; }
  .job-card-header { padding: 20px 52px 20px 20px; }
  .job-card-toggle { top: 20px; right: 16px; width: 32px; height: 32px; }

  .apply-modal { padding: 10px; }
  .apply-modal-content { padding: 20px; border-radius: 12px; }
  .apply-modal-header h3 { font-size: 1.1rem; }

  .general-app-actions .btn-primary,
  .general-app-actions .btn-outline {
    width: 100%;
    text-align: center;
  }
}
.hero-globe-band {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 126%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  animation: bandBreathe 4s ease-in-out infinite;
}

@keyframes bandBreathe {
  0%, 100% { filter: drop-shadow(0 4px 14px rgba(34,197,94,0.25)); }
  50%       { filter: drop-shadow(0 8px 28px rgba(34,197,94,0.55)); }
}

.hero-globe-band-text,
.hero-globe-band-shimmer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 35px;
  letter-spacing: 2px;
}

@media  (min-width: 300px) and (max-width: 480px) {
  .header-inner { padding: 0 18px; }
  .job-filters { gap: 8px; }
  .perk-grid { grid-template-columns: 1fr; }
  .job-filter-btn { font-size: 0.7rem; padding: 6px 14px; }
  .job-card-footer { flex-direction: column; align-items: flex-start; }
  .form-actions { flex-direction: column; }
  .form-actions .btn-primary,
  .form-actions .btn-outline { width: 100%; text-align: center; }
}



body.modal-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 640px) {
  .apply-modal {
    padding: 0;
    align-items: flex-start;
  }
  .apply-modal-content {
    max-height: 100dvh;          
    height: 100dvh;
    border-radius: 0;           
    padding: 120px 20px 32px;
    box-shadow: none;
  }
}

@media (min-width: 641px) {
  .apply-modal-content {
    max-height: 90vh;
    height: auto;
    border-radius: 16px;
  }
}

/* Smoother iOS scrolling inside modal */
.apply-modal-content {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Larger tap targets for mobile */
@media (max-width: 640px) {
  .apply-modal-close {
    top: 12px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
  }
  .apply-modal-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    padding-right: 40px; /* avoid overlap with close button */
  }
  .apply-modal-header h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }
  .apply-form {
    gap: 16px;
  }
  .form-group input,
  .form-group textarea {
    font-size: 16px;   /* prevent iOS zoom on focus */
    padding: 14px;
  }
  .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .form-actions .btn-primary,
  .form-actions .btn-outline {
    width: 100%;
    text-align: center;
    padding: 14px;
  }
  .file-upload-display {
    padding: 18px 14px;
  }
}

#applySubmitBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

#applySubmitBtn.is-loading .btn-spinner {
  display: inline-block;
}

#applySubmitBtn.is-loading {
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   STAT CARD BACKGROUND IMAGES  (revised)
   ============================================ */

/* Ensure images respect the card radius */
.careers-hero-stat {
  overflow: hidden;
}

/* 1. Countries with Hydrokinetic Potential — earth / globe */
.careers-hero-stat:nth-child(1) {
  --stat-bg: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=600&q=80');
}

/* 2. Global Power Demand — solar / energy */
.careers-hero-stat:nth-child(2) {
  --stat-bg: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSqEWfuOQeCCitIzIn26Pv9E5hTWWmg-ov9sRMlerrMdvxZaSXFK22an07c&s=10');
}

/* 3. Expected Demand by 2030 — growing city */
.careers-hero-stat:nth-child(3) {
  --stat-bg: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRakTAveYnbAQKTtdcAHQpNuxjZAVb9jL1xjiy6yQQtyR7Xy8vN5kXBxtbd&s=10');
}

/* 4. Total SHKT Global Potential — river / water */
.careers-hero-stat:nth-child(4) {
  --stat-bg: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR6u40g8tij8-CnURc5uuC1ebbqfd9mMCjPstJNX-y5tTEG6n-CRKNFcZu8&s=10');
}

/* 5. CO₂ Emissions — industrial / factory */
.careers-hero-stat:nth-child(5) {
  --stat-bg: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTUPVQLb65Y7wzKSMEj8tJCav6fvv-rXdxlCv6q-giZ6EOIBH-FVVkstGA&s=10');
}

/* 6. Carbon Reduction Target — green nature */
.careers-hero-stat:nth-child(6) {
  --stat-bg: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?w=600&q=80');
}

/* 7. Jobs to be Created — team / people */
.careers-hero-stat:nth-child(7) {
  --stat-bg: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=600&q=80');
}

/* Apply image + white gradient overlay to every stat card */
.careers-hero-stat {
  background-image:
    linear-gradient(145deg, rgba(255,255,255,0.90) 0%, rgba(248,250,252,0.90) 50%, rgba(241,245,249,0.90) 100%),
    var(--stat-bg);
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease, transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* On hover, make the overlay slightly more transparent so the photo pops */
.careers-hero-stat:hover {
  background-image:
    linear-gradient(145deg, rgba(255,255,255,0.78) 0%, rgba(248,250,252,0.78) 50%, rgba(241,245,249,0.78) 100%),
    var(--stat-bg);
}