:root {
    --primary-cyan-600: hsl(180, 29%, 50%);
    --primary-cyan-700: hsl(180, 40%, 50%);

    --neutral-bg-cyan-200:hsl(180, 52%, 96%);
    --neutral-ft-cyan-300:hsl(180, 31%, 95%);
    --neutral-cyan-700:hsl(180, 8%, 52%);
    --neutral-cyan-900:hsl(180, 14%, 20%);

    --neutral-shadow-cyan-400: hsl(180, 52%, 90%);
    --neutral-border-cyan-700:hsl(180, 8%, 82%);

}
*, *::after, *::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}
body {
    font-family: 'League Spartan', sans-serif;
    background-color: var(--neutral-bg-cyan-200);
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
button {
    font-family: 'League Spartan', sans-serif;
    cursor: pointer;
}
.new , .featured, .filter-box {
    display: none;
}
.header {
    height: 10rem;
    background-color: var(--primary-cyan-600);
    background-image: url('../images/bg-header-mobile.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}
.container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    /* top: -90px; */
}
.job-cards {
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
}
.job-card {
    padding: 2rem 1rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 10px 20px var(--neutral-shadow-cyan-400);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}
.job-info {
    position: relative;
    border-bottom: 1px solid var(--neutral-border-cyan-700);
    padding-bottom: 1rem;
}
.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    top:-56px;
}
.cname-new-featured {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
}
.company-name {
    padding-right: 1rem;
    color: var(--primary-cyan-700);
    font-weight: 700;
}
.job-title {
    padding: 0.8rem 0rem;
    font-size: 0.938rem;
    font-weight: 700;
}
.job-title:hover {
    cursor: pointer;
    color: var(--primary-cyan-600);
}
.new, .featured {
    padding: 0.3rem 0.6rem;
    color: #fff;
    border-radius: 100vw;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    font-size: 0.938rem;
    padding-top: 0.4rem;
}
.new {
    background-color: var(--primary-cyan-600);
}
.featured {
    background-color: var(--neutral-cyan-900);
}
.details-list {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.details-list li:first-of-type {
    list-style: none;
}
.details-list li {
    font-size: 0.938rem;
    color: var(--neutral-cyan-700);
}
.filters {
    display: flex;
    gap:1rem;
    flex-wrap: wrap;
    padding: 1rem 0rem;
}
.filter {
    background-color: var(--neutral-bg-cyan-200);
    color: var(--primary-cyan-600);
    padding: 0.5rem;
    padding-top: 0.650rem;
    border-radius: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.filter:hover {
    background-color: var(--primary-cyan-600);
    color: #fff;
    cursor: pointer;
}
.filter-box {
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 0px 10px 20px var(--neutral-shadow-cyan-400);
    border-radius: 5px;
    padding-right: 1.5rem;
}
.selected-filter-unit {
    display: flex;
    align-items: center;
}
.selected-filters {
    display: flex;
    flex-wrap: wrap;
    /* gap: 1rem;  */
    row-gap: 1rem;
    transition: 0.2s;
}
.selected-filter {
    justify-content: center;
    background-color: var(--neutral-bg-cyan-200);
    color: var(--primary-cyan-600);
    padding: 0.4rem;
    border-radius: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}
.remove-filter {
    padding: 0.4rem;
    background-color: var(--primary-cyan-600);
    border: none;
    display: flex;
    align-items: center;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    min-height: 27.78px;
}
.remove-filter:hover {
    background-color: var(--neutral-cyan-900);
}
.clear-btn {
    border: none;
    background-color: transparent;
    color: var(--neutral-cyan-700);
    font-weight: 700;
    font-size: 0.938rem;
}
.clear-btn:hover {
    box-shadow: 0px 1px 0px var(--primary-cyan-600);
    color: var(--primary-cyan-600);
}
@media (min-width:700px) {
    .header {
        background-image: url('../images/bg-header-desktop.svg');
    }
    .job-card {
        height: 145.78px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        padding-inline: clamp(1rem, 2vw, 2rem);
    }
    .job-info {
        border-bottom: none;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .logo-img {
        position: relative;
        top:0px;
        width: 80px;
        height: 80px;
    }
    .job-title {
        font-size: 1.2rem;
    }
    .filter-box {
        padding: 1rem clamp(1rem, 2vw, 2rem);
    }
    .selected-filters {
        column-gap: 0rem;
    }
    .details-list {
        gap: 2rem;
    }
    .details-list li {
        padding-left: 0.5rem;
        white-space: nowrap;
    }
    .details-list li:first-of-type {
        padding-left: 0rem;
    }
}
/* JS CLASSES */

.active-flex {
    display: flex;
}
.hidden {
    animation-name: hideAnimation;
    animation-duration: 0.4s;
    animation-fill-mode: both;
    transition: ease-in-out;
    overflow: hidden;
    padding: 0;
}
.active {
    animation-name: showAnimation;
    animation-duration: 0.4s;
    animation-fill-mode: both;
    transition: ease-in-out;
    /* overflow: hidden; */
}
.active-filter {
    animation-name: filterAnimation;
    animation-duration: 0.2s;
    overflow: hidden;
    transition: ease-in-out;
    animation-fill-mode: both;
}
/* .remove-filter {
    animation-name: removeFilterAnimation;
    animation-duration: 0.4s;
    overflow: hidden;
    transition: ease-in-out;
    animation-fill-mode: both;
} */
/* ANIMATIONS */
  
@keyframes hideAnimation {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        margin-top: 0rem;
        height: 0px;
    }
}
@keyframes showAnimation {
    0% {
        opacity: 0;
        margin-top: 0rem;
        /* height: 0px; */
    }

    100% {
        opacity: 1;
        /* height: 1; */
    }
}
@keyframes filterAnimation {
    0% {
        opacity: 0;
        /* height: 0px; */
        margin-right: 0rem;
    }
    100% {
        opacity: 1;
        /* height: 28px; */
        margin-right: 1rem;
    }
}