.no-jobs {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
}
.no-jobs p {
    font-size: 36px;
    font-weight: 800;
    background-clip: text;
    text-align: center;
    background-image: linear-gradient(120deg, #0D47A1, #00B5D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 110%;
}

.team {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hidden {
  display: none !important;
}

.modal-overlay {
  /* position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999; */
  /* position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999999;  */

  position: relative; 
  display: none;           /* toggled by JS */
  /* width: 1200px; */  
  /* align-items: center;
  justify-content: center; */
  z-index: auto;
  margin-top: -8rem;
}

.modal {
  /* width: 900px; */
  /* height: 88vh; */
  /* max-width: 100%; */
  /* border-radius: 12px; */
  /* padding: 32px; */
  position: relative;
  width: 100%;
  min-height: 100vh;
  border-radius: 0;        /* section, not card */
  padding: 0;
  /* background: #000; */
}

.modal-dark {
  /* background: #000; */
  /* background-color: hsla(0 10% 20% / .2);
  backdrop-filter: blur(.5rem); */
  color: #fff;
  /* padding:0 2rem; */
}

.modal-dark p {
  color: red;
}

.modal-light {
  background: #fff;
  color: #000;
  padding: 32px;

}

.modal >  button {
  background: transparent;
}

.modal .close-btn {
  position: absolute;
  top: 16px;
  right: 1015px;
  /* background: none; */
  border: none;
  font-size: 20px;
  cursor: pointer;
  /* z-index: ; */
  /* color: #fff; */
  /* color: #000; */
  /* color: #fff; */
  /* background-color: red; */
  /* font-size: 4rem; */
  /* display: none; */
}

.close-btn span {
  /* color: #fff; */
  /* color: red; */
  font-size: 1.75rem;
}

.job-header {
  /* display: flex; */
  /* justify-content: space-between; */
  align-items: left;
  flex-direction: column;
  align-items: center;
  background: #000;
  padding: 50px 64px 20px;
  border-radius: 16px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-content > h2 {
  font-size: 1.75rem;
}

.header-info {
  display: flex;
  flex-direction: column;
  margin-top: -1.65rem;
}

.job-header p {
  color: #fff;
  /* margin-top: -1rem; */
}

.job-desc {
  color: black;
  margin-top: .75rem;
  padding: 2rem;
}

.job-desc p {
  color: black;
}

.custom-list {
  list-style: none;   /* remove default bullets */
  /* padding-left: 0; */
  /* padding-top: 1rem; */
  padding: 1rem 0 1rem 1.25rem;
}

.custom-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.custom-list li::before {
  content: "•";       /* bullet */
  position: absolute;
  left: 0;
  /* color: #1e90ff;  */
  color: black;
  font-size: 20px;    /* bullet size */
  line-height: 1;
}


.apply-btn {
  /* display: inline-block; */
  position: absolute;
  width: 100px;
  /* background: #1e90ff; */
  background-image: linear-gradient(180deg, #0B4EBF, #09B6E6);
  color: #fff;
  border: none;
  /* padding: 8px 18px; */
  /* border-radius: 6px; */
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  top: 45px;
  left: 850px;
}

.mgr {
  /* background-color: red; */
}

.reach {
  /* background-color: green; */
  background-color: #f6f6f6;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  /* position: absolute; */
  /* left: 25%; */
  box-shadow: 5px 9px 12px rgba(0, 0, 0, 0.1);
  padding: 20px 10px;
  border-radius: 12px;
  /* margin: 20px auto; */
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* place-items: center; */
  /* place-content: center;
  align-items: center; */
  gap: 16px;
  margin-top: 24px;
  /* filter: drop-shadow(3px 9px 12px rgba(0, 0, 0, 0.1)); */
  /* box-shadow: 5px 9px 12px rgba(0, 0, 0, 0.1);
  padding: 60px 70px;
  border-radius: 12px; */
}

.form-grid input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  width: auto;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-primary {
  background: #0d6efd;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
}




@media (max-width: 1200px){
  .modal-overlay {
    width: auto;
  }

  .modal {
    /* display: flex;
    flex-direction: column; */
  }

  .apply-btn {
    /* position: fixed; */
    /* margin: auto; */
    left: 600px;
    /* top: 400px; */
  }
}


@media (max-width: 868px) {
  .apply-btn {
    left: 300px;
  }
}




/* ===== FIX BACK ARROW + APPLY BUTTON ALIGNMENT ===== */

/* make header a proper flex container */
.job-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* justify-content: left; */
  gap: 16px;
}

/* back arrow (close button) */
.close-btn {
  position: static;              /* override absolute positioning */
  margin-right: auto;
  font-size: 20px;
  /* color: #fff; */
  z-index: 999;
}

/* job title container stays centered */
.header-info {
  /* text-align: center; */
  margin: 0 auto;
}

/* apply button aligned right */
.apply-btn {
  position: static;              /* override absolute positioning */
  margin-left: auto;
}

/* ---------- RESPONSIVE FIX ---------- */
@media (max-width: 768px) {
  .job-header .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .close-btn,
  .apply-btn {
    margin: 0;
  }

  .apply-btn {
    width: 100%;
    max-width: 240px;
  }

  .mgr {
    /* background-color: green; */
    /* background-color: #f6f6f6; */
    box-shadow: 2.5px 9px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
  }

  .reach {
    background-color: transparent;
    box-shadow: none;
    padding: 5px 9px;
  }
}


@media (max-width: 498px) {
  .form-grid {
    grid-template-columns: 1fr;
    padding: 20px 26px;
  }
}
