* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "League Spartan", sans-serif;
    font-weight: 500;
    min-height: 100vh;
    font-size: 15px;
    background-color: hsl(180, 52%, 96%);

}

main {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: 80%;
    flex-direction: column;
    gap: 2rem;
}

#top {
    width: 100%;
    background-image: url("images/bg-header-desktop.svg");
    background-repeat: repeat-x;
    height: 150px;
    background-color: hsl(179, 29%, 51%);
    margin-bottom: 4rem;
}

.card {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    justify-content: stretch;
    width: 100%;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-left: 0.4rem solid #fff;
}

.feature {
    border-left: 0.4rem solid hsl(180, 8%, 52%);
}

.info {
    padding: 1rem;
    align-items: center;
    width: 56%;
}

.tags {
    justify-content: flex-end;
    margin-left: auto;
    align-self: center;
}

.tag {
    background-color: hsl(180, 52%, 96%);
    color: hsl(180, 29%, 50%);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: hsl(180, 29%, 50%);
    color: #fff;
}

.category {
    color: hsl(180, 14%, 20%);
}

.pill-new {
    color: #fff;
    background-color: hsl(180, 8%, 52%);
    border-radius: 1rem;
    padding: 0.5rem;
    text-transform: uppercase;
}

.pill-featured {
    color: #fff;
    background-color: hsl(180, 14%, 20%);
    border-radius: 1rem;
    padding: 0.5rem;
    text-transform: uppercase;
}

.icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.role {
    display: block;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-weight: 700;
    font-size: 1.4rem;
}

.time {
    color: hsl(180, 8%, 52%);
}

/* Filter Bar */
#filters {
    display: none;
    padding: 1.25rem 2.5rem;
    border-radius: 5px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 15px 20px -5px rgba(13, 113, 130, 0.15);
    font-family: "League Spartan", sans-serif;
    background-color: #fff;
    margin-top: -7rem;
    color: hsl(180, 8%, 52%);
    font-weight: 700;
    transition: all 0.8s ease-in-out;
}

#clear-filters {
    font-weight: 700;
    font-family: "League Spartan", sans-serif;
}

.filter-badge {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    background-color: hsl(180, 52%, 96%);
    border-radius: 4px;
    overflow: hidden;
}

.filter-badge span {
    padding: 0 10px;
}

.remove-filter {
    background-color: hsl(180, 8%, 52%);
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 700;
}

.remove-filter:hover {
    background-color: hsl(180, 14%, 20%);
    font-weight: 700;
}

/* Individual Tags */
.tag {
    cursor: pointer;
    margin: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.tag:hover {
    background-color: hsl(180, 8%, 52%);
    color: #fff;
    font-weight: 700;
}

#clear-filters:hover {
    text-decoration: underline;
    color: hsl(180, 8%, 52%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#job-list .card {
    animation: fadeInUp 0.8s ease forwards;
}

/* RESPONSIVE */
@media (max-width: 1025px) {
    main {
        gap: 3rem;
        width: 90%;
    }

    .card {
        flex-direction: column;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        position: relative;
        margin-top: 2rem;
    }

    .icon {
        width: 50px;
        height: 50px;
        position: absolute;
        top: -25px;
        left: 1.5rem;
        margin-top: 0;
    }

    .info {
        width: 100%;
        padding: 0 0 1rem 0;
        border-bottom: 1px solid hsl(180, 10%, 85%);
    }

    .tags {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 1rem 0 0 0;
        align-self: flex-start;
    }

    .tag {
        margin: 0;
    }
}

@media (max-width: 375px) {
    .role {
        font-size: 1.1rem;
    }

    #filters {
        padding: 1rem;
        margin-top: -3rem;
    }
}

.attribution {
    font-size: 11px;
    text-align: center;
    padding-bottom: 2rem;
}

.attribution a {
    color: hsl(180, 14%, 20%);
}