/* section-5  */
.sec-5-container {
  max-width: 100%;
  /* margin: 0 auto; */
  padding: 40px 20px;
  font-family: "poppins", sans-serif;
  background-color: #f8f9fe;
  color: #212529;
  line-height: 1.6;
}

.sec-5-h1 {
  font-size: 3rem;
  font-weight: 400;
  color: #000;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 5rem;
  font-family: "syne", sans-serif;
}

.jobs-container {
  display: flex;
  gap: 6rem;
  max-width: 1400px; /* Adjust max width as needed */
  width: 100%;
  margin-inline: auto; /* Centers the container horizontally */
  padding: 0 30px;
}

/* Categories sidebar */
.sec-5-main-categories {
  width: 20%;
  flex-shrink: 0;
}

.sec-5-category {
  padding: 15px 10px;
  margin-bottom: 20px;
  border-radius: 0px; /* Remove all rounded corners */
  cursor: pointer;
  background-color: #fff;
  font-family: "poppins", sans-serif;
  font-size: 0.95rem;
  font-family: poppins;
  border-left: 3px solid transparent; /* default transparent */
  font-weight: 400;
  color: #07124d;
}

.sec-5-category.active {
  border-left: 3px solid #0000ff;
  background-color: #f0f8ff; /* optional highlight */
  color: #07124d;
  font-weight: 600;
}

.sec-5-category:hover:not(.active) {
  background-color: #f5f5f5;
}

/* Job listings */
.job-listings {
  flex: 1;
}

.job-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 100%;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-direction: column; /* Stack children vertically */
}

.job-header h2 {
  font-family: syne;
  font-size: 1.2rem;
  font-family: "syne", sans-serif;
  font-weight: 600;
  color: #07124d;
  margin-bottom: 1rem;
}

.job-description {
  color: #090808;
  font-size: 0.7rem;
  margin-bottom: 20px;
  line-height: 1.5;
  font-family: "poppins", sans-serif;
}

.job-tags {
  display: flex;
  gap: 10px; /* Optional spacing between tags */
  /* Allow wrapping if needed */
}

.tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid #e0e0e0;
}

.tag.location,
.tag.type {
  background-color: #fff;
}

.tag.hybrid {
  background-color: #f0f0ff;
  border-color: #e0e0ff;
}

.tag.remote {
  background-color: #f0fff0;
  border-color: #e0ffe0;
}

.job-footer {
  display: flex;
  justify-content: flex-end;
}

.sec-5-details-btn {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s;
}

.sec-5-details-btn svg {
  width: 16px;
  height: 16px;
}

.sec-5-details-btn:hover {
  background-color: #333;
}

.show-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.show-more-btn {
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.show-more-btn:hover {
  background-color: #f5f5f5;
  border-color: #aaa;
}

/* Responsive design */
/* @media (max-width: 900px) {
    .jobs-container {
      flex-direction: column;
    }
    
    .sec-5-main-categories {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 20px;
    }
    
    .sec-5-category {
      margin-bottom: 0;
    }
    } */

/* @media (max-width: 600px) {
    .job-header {
      flex-direction: column;
      gap: 10px;
    }
    
    .job-tags {
      flex-wrap: wrap;
    }
    
    .sec-5-h1 {
      font-size: 2rem;
    }
    }
     */
@media (max-width: 768px) {
  .jobs-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .job-card {
    width: 100%;
  }
  .sec-5-h1 {
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 5rem;
    font-family: "syne", sans-serif;
  }
  .sec-5-main-categories {
    width: 20%;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none; /* For Firefox */
  }

  .sec-5-main-categories::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, etc. */
  }

  .sec-5-category {
    flex: 0 0 auto; /* Prevent items from shrinking */
    white-space: nowrap; /* Prevent text wrapping */
    border-radius: 10px; /* Make them look like nav pills */
    border-left: none;
    padding: 10px 15px;
    background-color: #fff;
    font-size: 0.85rem;
  }

  .sec-5-category.active {
    background-color: #07124d;
    color: #fff;
    font-weight: 600;
  }
  .job-listings {
    flex: 1;
    min-width: 60%;
  }
}
@media (max-width: 425px) {
  .jobs-container {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
  }

  .sec-5-main-categories {
    width: auto;
    display: flex;
    flex-direction: row;

    /* overflow-x: auto; */
    flex-wrap: nowrap;
    width: 100%;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 20px;
    scrollbar-width: none; /*Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  .sec-5-cat {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
  }
  .sec-5-main-categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .sec-5-category {
    flex: 0 0 auto;
    padding: 10px 16px;
    background-color: #fff;
    border-radius: 25px;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #07124d;
  }

  .sec-5-category.active {
    background-color: #07124d;
    color: #fff;
    font-weight: 600;
  }
}

/* job cards */
.phen {
  background-color: black;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 2rem;
  margin-right: 1rem;
  /* display: flex; */
  transition: background-color 0.2s;
  justify-content: flex-end;
}

.phen-seeless {
  background-color: white;
  color: #000;
  border: 1px solid #333;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 2rem;
  /* display: flex; */
  transition: background-color 0.2s;
  justify-content: flex-end;
}

.phen:hover {
  background-color: rgb(17, 17, 56);
  color: white;
}
.full-stack {
  display: block;
  font-family: poppins;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: poppins;
}
.full-stack strong {
  font-weight: 550;
}

.confirmation-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.5);
}

.confirmation-content {
  background-color: #0a1744;
  color: white;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  text-align: center;
  font-size: 18px;
  width: 80%;
  max-width: 600px;
  height: 60%;
  border: 1px solid #1e3a8a;
  line-height: 1.6;
  position: relative;
  padding: 40px 30px;
  margin: 0 auto;
}

.confirmation-close-btn,
.confirmation-back-btn {
  position: absolute;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}
.confirmation-text {
  font-size: 1.3rem;
  font-family: "poppins", sans-serif;
  margin-bottom: 1rem;
}

.confirmation-text1 {
  font-size: 1rem;
  font-family: "poppins", sans-serif;
}

.confirmation-close-btn {
  right: 15px;
}

.confirmation-back-btn {
  left: 15px;
  visibility: hidden;
}

.tick-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tick-animation img {
  width: 10rem;
  height: 10rem;
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Modal Styles - Updated to match the image */
.modal {
  display: none;
  position: fixed; /* fixed is better for fullscreen modals */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  overflow-y: auto; /* Enables vertical scrolling */
}

.modal-content {
  background-color: #0a1744;
  position: relative;
  color: white;
  width: 90%;
  max-width: 1000px;
  min-width: 320px;
  border-radius: 10px;
  padding: 4rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border: 1px solid #1e3a8a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px;
}

.job-id {
  grid-column: 1 / 3;
  font-size: 18px;
  font-weight: 500;
}

.job-position {
  grid-column: 1 / 3;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
}

.form-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 250px;
  width: 100%;
  justify-self: center;
}

.form-group {
  margin-bottom: 5px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  margin-top: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background-color: white;
  font-size: 16px;
}

.upload-btn {
  background-color: white;
  color: #333;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
}

.availability {
  grid-column: 1 / 3;
  margin-top: 10px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  /* gap: 20px; */
  margin-top: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.next-btn {
  grid-column: 2 / 3;
  justify-self: end;
  background-color: transparent;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 18px;
  margin-top: 20px;
}

.next-btn:hover {
  text-decoration: underline;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
.application-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  overflow-y: auto; /* Enables vertical scrolling */
}

.application-form-content {
  background-color: #0a1744;
  color: white;
  width: 90%;
  max-width: 1000px;
  border-radius: 10px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border: 1px solid #1e3a8a;
  margin: 20px;
  position: relative;
}

.application-close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

.application-back-btn {
  position: absolute;
  top: 5px;
  left: 20px;
  background-color: transparent;
  margin-bottom: 10px;
  font-size: 2.2rem;
  cursor: pointer;
  color: #fff;
}

.application-form-container {
  grid-column: 1 / -1;
  display: contents; /* ensures children still span grid columns correctly */
}

.application-form-left,
.application-form-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 3rem;
}

.application-form-group {
  margin-bottom: 5px;
}

.application-form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  margin-top: -0.3rem;
}

.application-form-group input[type="text"],
.application-form-group input[type="email"],
.application-form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background-color: white;
  font-size: 16px;
}

.application-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.application-checkbox-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.application-checkbox-item input[type="checkbox"],
.application-checkbox-item input[type="radio"] {
  width: 18px;
  height: 18px;
}

.application-voluntary-info {
  margin-bottom: 20px;
}

.application-voluntary-title {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 10px;
  font-family: "poppins", sans-serif;
}

.application-voluntary-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 400;
  font-family: "poppins", sans-serif;
}

.application-submit-btn {
  grid-column: 2;
  justify-self: end;
  background-color: transparent;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 18px;
}

.application-submit-btn:hover {
  text-decoration: underline;
}
.error-message {
  display: none;
  background-color: #ff4444;
  color: white;
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 14px;
}

.error-message.show {
  display: block;
}
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.job-id {
  color: #f36f2c;
  font-size: 14px;
  margin-bottom: 5px;
}

.job-position {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.form-group label {
  color: white;
  display: block;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #3a3a3a;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
}

.upload-btn {
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #3a3a3a;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.upload-btn:hover {
  background-color: #3a3a3a;
}

.checkbox-group {
  display: flex;
  gap: 20px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.next-btn {
  background-color: #f36f2c;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}

.next-btn:hover {
  background-color: #d65a1a;
}

/* File Upload Styles */
.file-upload-container {
  position: relative;
  /* margin-bottom: 20px; */
}

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

.file-upload-label {
  display: block;
  padding: 10px;
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

.file-name {
  margin-top: 5px;
  font-size: 14px;
  color: #888;
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Add ellipsis (...) to indicate truncated text */
}

/* Additional styles for the second form */
.application-voluntary-info {
  margin-top: 20px;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 4px;
}

.application-voluntary-title {
  color: white;
  font-size: 18px;
  margin-bottom: 10px;
}

.application-voluntary-text {
  color: #888;
  font-size: 14px;
  line-height: 1.5;
}

.form-input {
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #3a3a3a;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.checkbox-item input[type="radio"] {
  accent-color: #f36f2c;
}

.application-back-btn {
  position: absolute;
  left: 20px;
  top: 1px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.application-back-btn:hover {
  color: #f36f2c;
}
.linkdin-group {
  margin-top: 10px;
}

/* RESPONSIVE BREAKPOINTS */

/* Tablet: 600px+ */
@media (min-width: 600px) {
  .modal-content,
  .application-form-content {
    padding: 3rem;
  }
}
/* @media(max-width:500px){
  .modal-content{
    display: flex;
    flex-direction: column;
  } */

/* Medium devices: 768px+ */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }
}

@media (min-width: 768px) {
  .modal-content,
  .application-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 700px;
  }

  .job-id,
  .job-position,
  .availability {
    grid-column: 1 / 3;
  }

  .next-btn,
  .application-submit-btn {
    grid-column: 2;
    justify-self: end;
  }
}

/* Large devices: 992px+ */
@media (min-width: 992px) {
  .modal-content,
  .application-form-content {
    max-width: 800px;
    padding: 2rem;
  }
}

/* Extra large: 1200px+ */
@media (min-width: 1200px) {
  .modal-content,
  .application-form-content {
    padding: 4rem 6rem;
  }
}
