/* The work styles */
.work {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: "Jost", sans-serif;

}
/* The work title styles */
.work__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-family: "Jost", sans-serif;
}

/* The work search styles */
.work__search {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* The work container styles */
.work-container {
    display: flex;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* The work list view styles */
.work__list-view {
    display: flex;
    width: 100%;
}

.work__grid {
    display: flex;
    width: 100%;
    background: #DEE9F3;
    overflow: hidden;
    border-radius: 1rem;
}

/* The work job list,card styles */
.work__job-list {
    width: 350px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    max-height: 80vh;
    overflow-y: auto;
}

.job-card {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 200;
}

.job-card:hover {
    background: #9EBAD2;
}

.job-card.active {
    background: #9EBAD2;
}

.job-card__logo {
    height: 60px;
    width: 60px;
    margin-right: 2rem;
}

.job-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.job-card__badge {
    font-size: 10px;
    width: 80px;
    padding: 0.2rem 0;
    margin-top: 0.2rem;
    background: #CBCBCB;
    border-radius: 0.5rem;
    text-align: center;
}

.job-card__content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* The work job details page styles */
.work__job-details {
    flex: 1;
    background: #efefef;
    padding: 2rem 4rem;
    font-weight: 200;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}


.details-item__icon {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 12px;
}

.details-item sl-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
}
.job-description {
    margin: 2rem 0;
}

.job-description__list {
    margin-left: 1rem;
}

/* The work media queries */
@media (max-width: 968px) {
    .work__search {
        grid-template-columns: 1fr 1fr;
    }

    .work-container {
        flex-direction: column;
    }

    .work__grid {
        flex-direction: column;
    }

    .work__job-list {
        width: 100%;
        max-height: 50vh;
    }
}

/* The work media queries */
@media (max-width: 640px) {
    .work__search {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* The work header styles */
.work__header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.work__title-wrapper {
    text-align: center;
    width: 100%;
    padding: 0 3rem;
}

.work__toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* The work media queries */
@media (max-width: 640px) {
    .work__title-wrapper {
        padding: 0 2.5rem;
    }
    
    .work__title {
        font-size: 1.5rem;
    }
}

.hidden {
    display: none;
}

.work__map-view {
    width: 100%;
    height: 100%;
}

.work__map-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
