/* style.css */

.job-heading{
    margin-top: 20px;
    padding-left: 45%;
    font-size: 26px;
}

.jobs-filter li {
    margin-right: 20px;
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    gap: 50%;
}

nav a:hover {
    color: #1c2574;
}

.jobs_wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.job {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.job h2 {
    margin-top: 0;
    font-weight: bold;
    font-size: 18px;
}

.job h3 {
    font-size: 16px;
    color: #333;
}

.job p {
    margin-bottom: 10px;
    color: #000000;
}

.job i{
  margin-right: 10px;
  color: #1c2574;
}

.job-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 15px;
}

.job-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.more-info-btn {
  background-color: #1c2574;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.more-info-btn:hover {
  background-color: #ec840c;
}

.button {
  background-color: #ec840c;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background-color: #09246e;
  box-shadow: 0 0 20px #6fc5ff50;
  transform: scale(1.1);
  color: #ffffff;
  text-decoration: none;
}

.button:active {
  background-color: #3d94cf;
  transition: all 0.25s;
  -webkit-transition: all 0.25s;
  box-shadow: none;
  transform: scale(0.98);
}

/* Job Modal Styles */
.job-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.job-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.job-modal {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.job-modal-overlay.active .job-modal {
    transform: translateY(0);
}

.job-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    background-color: #f8f9fa;
}

.job-modal-header h2 {
    margin: 0;
    color: #011433;
    padding-right: 30px;
    font-size: 22px;
}

.job-modal-company {
    color: #555;
    font-size: 16px;
    margin-top: 5px;
}

.job-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #777;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.job-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.job-modal-body {
    padding: 20px;
}

.job-modal-meta {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.job-modal-meta-item {
    display: flex;
    align-items: center;
}

.job-modal-meta-item i {
    margin-right: 10px;
    color: #1c2574;
    width: 20px;
    text-align: center;
}

.job-modal-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.job-modal-description h3 {
    color: #011433;
    margin-bottom: 10px;
    font-size: 18px;
}

.job-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.job-modal-apply {
    display: inline-block;
    padding: 10px 24px;
    background-color: #ec840c;
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.job-modal-apply:hover {
    background-color: #09246e;
    text-decoration: none;
    color: white;
}

/* Animation for modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* Mobile devices (max-width: 768px) */
@media only screen and (max-width: 768px) {
  .jobs_wrapper {
      grid-template-columns: repeat(1, 1fr);
      gap: 15px;
  }
  
  .job-heading {
      padding-left: 30%;
      font-size: 22px;
  }
  
  .job-modal-meta {
      grid-template-columns: 1fr;
  }
  
  .button, .more-info-btn {
      padding: 8px 15px;
      font-size: 14px;
  }
}

/* Small mobile devices (max-width: 480px) */
@media only screen and (max-width: 480px) {
  .jobs_wrapper {
      grid-template-columns: 1fr;
      gap: 10px;
      margin: 15px 10px;
  }
  
  .job-heading {
      padding-left: 20%;
      font-size: 20px;
  }
  
  .job {
      padding: 15px;
  }
  
  .job h2 {
      font-size: 16px;
  }
  
  .job h3 {
      font-size: 14px;
  }
  
  .job-buttons {
      flex-direction: column;
      gap: 10px;
  }
  
  .button, .more-info-btn {
      width: 100%;
      text-align: center;
  }
}