/*
* Main job container 
*
*/
.i-job-offers-container {
    display: flex;
    flex-direction: column;
}

/*
*
* Search and filters
*
*/
/* Search input */
.i-job-search {
    display: flex;
    margin-bottom: 2.5rem;
}

.i-job-search input {
    background-color: transparent;
    outline: none;
    border: none;
    border-bottom: 1px solid black;
    border-radius: 0;
    padding-left: 0;
}

.i-job-search input[type="search" i]::-webkit-search-cancel-button {
    display: none !important;
}

.i-job-search button {
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    border-radius: 0;
    border: none;
    background: black;
    padding: 0;
    width: 50px;
    height: 50px;
}

.i-job-search button img {
    width: 20px;
    height: 20px;
}

.i-job-search button:focus {
    outline: none;
    border: none;
}

.i-job-search button:hover {
    background-color: #7acd17;
}

/* Filters */
.i-job-filters {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    z-index: 99999;
}

.i-job-filter {
    width: 50%;
}

/* Single filter  */
.i-job-filter {
    display: flex;
    flex-direction: column;
    column-gap: 1rem;
    align-items: start;
    width: 100%;
    height: 100%;
    position: relative;
}

.i-job-filter .i-job-filter--selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(33, 33, 3, 0.3);
    cursor: pointer;
}

.i-job-filter .i-job-filter--selected p {
    color: rgba(33, 33, 33, 0.8);
    margin: 0;
}

/* Filter icon - transform */
.i-job-filter .i-job-filter--selected svg {
    transform: rotate(90deg);
    transition: 0.5s ease;
}

.i-job-filter .i-job-filter--selected svg path {
    transition: .5s ease;
    fill: #212121CC;
}

.i-job-filter .i-job-filter--selected.opened svg {
    transform: rotate(0deg);
    transition: 0.5s ease;
}

.i-job-filter .i-job-filter--selected.opened svg path {
    fill: #7acd17;
    transition: .5s ease;
}

/* Filters - options */
.i-job-filter--options {
    display: none;
    color: white;
    position: absolute;
    width: 100%;
    top: 100%;
    z-index: 9999;
    background-color: #212121;
    max-height: 260px;
    overflow-y: auto;
}

/* Options scrollbar */
.i-job-filter--options::-webkit-scrollbar {
    width: 14px;
    padding: 5px;
}

.i-job-filter--options::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.i-job-filter--options::-webkit-scrollbar-thumb {
    background: #585858;
    border: 3px solid #f9f9f9;
    border-radius: 50px;
}

/* Single filter option */
.i-job-filter--options .i-job-filter--option {
    color: white;
    background-color: #212121;
    cursor: pointer;
    margin: 0;
    padding: 10px 20px;
}

.i-job-filter--options .i-job-filter--option.active {
    background-color: #aaa;
}

.i-job-filter--options .i-job-filter--option:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

/* 
*
* Job offers container and single job offer style
*
*/
.i-job-offers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media only screen and (min-width: 1200px) {
    .i-job-offer:hover {
        margin: 0 8px;
    }
}

.i-job-count {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/*
*
* Single job offer 
*
*/
.i-job-offer {
    background-color: white;
    padding: 48px;
    border-radius: 16px;
    transition: 0.5s ease;
    overflow: hidden;
}

.i-job-offer:hover {
    color: initial !important;
    background-color: rgba(255, 255, 255, 0.8);
    transition: 0.5s ease;
}

/*
*
* Title and salary container 
*
*/
.i-offer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 3rem;
}

.i-offer-info * {
    margin: 0;
}

/* Title */
.i-job-offer .i-offer-title {
    display: flex;
    align-items: start;
    font-size: 16px;
    gap: 1rem;
}

/* NEW Label */
.i-job-offer .i-offer-label {
    font-size: 12px;
    border: 1px solid #7acd17;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50px;
}

/* salary */
.i-job-offer .i-offer-salary {
    font-size: 24px;
    color: #9e9e9e;
}

/* 
*
Details container - taxonomies and read more button 
*
*/
.i-offer-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Details icons */
.i-offer-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.i-offer-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 
* Loader ring 
*
*/
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    border-radius: 10px;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 120px;
    height: 120px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 104px;
    height: 104px;
    margin: 8px;
    border: 15px solid;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #d1f1ab transparent transparent #fff;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media queries */
@media screen and (max-width: 767px) {
    .i-job-search {
        margin-bottom: 2rem;
    }

    .i-job-filters {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .i-job-count {
        margin-bottom: 0;
    }

    .i-job-offer {
        padding: 24px;
    }

    .i-offer-info {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .i-job-offer .i-offer-salary {
        font-size: 16px;
    }

    .i-offer-details {
        flex-direction: column;
        align-items: start;
        gap: 2rem;
    }
}
