/* CSS STYLING FOR ARCHIVE-JOB HERE */

.job-archive-container {
    margin: 0 auto;
    padding: 30px 32px;
}

.page-header {
    margin-bottom: 50px;
}

.page-title {
    font-size: 36px;
    color: #424242;
    font-weight: 700;
}

.archive-description {
    text-align: justify;
    margin-bottom: 24px;
}

.job-listing-content {
  flex: 1 1 auto;
  min-width: 0;
}

.job-listings {
    position: relative;
    transition: box-shadow 0.2s;
    margin: 0;
    padding: 0;
    border-radius: 8px; /* or your default value */
    transition: background 0.2s, border-radius 0.2s;
    /*display: grid;
    grid-template-columns: 1fr;
    gap: 15px;*/
}

/* When any .job-listing is hovered, blur all .job-listing elements */
.job-listings:has(.job-listing:hover) .job-listing {
  filter: blur(1.5px);
  transition: filter 0.2s;
}

/* Remove blur from the hovered .job-listing */
.job-listing:hover {
  filter: none !important;
}

.job-listing + .job-listing {
  border-top: 1px solid #e0e0e0; /* subtle separator between items */
}

.job-listing-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  padding: 24px;
  border-radius: 8px;
  transition: box-shadow 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.job-listing-link:hover,
.job-listing:hover .job-listing-link {
  background: #EEEEEE;
  border-radius: 0;
  border-top: 1px solid #212121;
  border-bottom: 1px solid #212121;
}

/*.job-listing:hover + .job-listing {
  border-top: 1px solid #212121;
}*/

.job-listing-link:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-decoration: none;
}

.job-listing:hover,
.job-listing-link:hover {
  border-radius: 0;
}

.job-listing {
    /* background: #fff; */
    /* border-radius: 12px; */
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.05); */
    /* padding: 0; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* border-left: 4px solid #ff9d00; */
    /* overflow: hidden; */
}

.job-listing:hover {
}

.job-title-link {
    /*display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    color: #424242;
    padding: 10px 0px;
    transition: color 0.3s;*/
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.job-listing-link:hover .job-title-link {
  color: #ff9d00;
}

.job-title-link:hover {
    color: #ff9d00;
}

.job-arrow-icon {
    flex: 0 0 auto;
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-left: 24px;
    color: #212121;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.job-title-link:hover .job-arrow-icon {
    transform: translateX(4px);
}

.job-listing-link:hover .job-arrow-icon {
  transform: translateX(10px);
}

.job-highlights {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 20px;
    margin-top: 10px;
    color: #BDBDBD;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.job-highlight-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #BDBDBD;
  transition: color 0.2s;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.job-listing:hover .job-highlight-icon {
  color: #212121;
}

.job-highlights span {
  margin-right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-highlights i {
    margin-right: 6px;
    color: #BDBDBD;
}

.job-listing:hover .job-highlights {
  color: #212121;
}

.job-excerpt {
    color: #666;
    line-height: 1.6;
    padding: 0 30px 20px 30px;
}

.view-job-button {
    display: inline-block;
    background: #ff9d00;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin: 0 30px 30px 30px;
}

.view-job-button:hover {
    background: #e68a00;
}

/* Responsive styles */
   
    
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .archive-description {
        font-size: 16px;
    }

    .job-title-link {
        font-size: 18px;
        padding: 20px;
    }

    .job-highlights {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px 20px 20px;
        gap: 10px;
    }

    .view-job-button {
        margin: 0 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .job-archive-container {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 24px;
    }
}