
.filter_box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
}
.filter_tab_list {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter_tab:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 14px;
    background-color: var(--light-line);
    position: absolute;
    right: -20px;
}
.filter_tab {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 20px;
}
.filter_tab:not(:has(label)),
.filter_tab label {
    width: 100%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;    
}
.filter_tab p {
    color: var(--gray-300);
    font-size: var(--ft16);
}

.filter_tab.active p {
    color: var(--main-ft);
    font-weight: var(--medium);
}

.filter_tab_list input:checked ~ label p {
    color: var(--main-ft);
}

/*-- list --*/
.fair_list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

.fair_list .list_item {
    width: 100%;
    padding-bottom: 40px;
    position: relative;
    border-bottom: 1px solid var(--light-line);
}

.fair_list .list_item::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    position: absolute;
    bottom: -1px;
    left: auto;
    right: 0;
    background-color: var(--primary);
    transition: all .4s ease;
}
.fair_list .list_item a {
    display: flex;
    gap: 40px;
}
.fair_list .list_img {
    width: 100%;
    max-width: 400px;
    aspect-ratio:  16 / 9;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--border-radius);
}
.fair_list .list_img .end {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(31, 31, 31, 0.00) 0%, #1F1F1F 100%);
    position: absolute;
    top: 0;
    left: 0;
}
.fair_list .list_img .end p {
    width: 100%;
    height: 40px;
    background-color: var(--gray-500);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
}
.fair_list .list_img img {
    transition: transform .4s ease;
}
.fair_list .list_desc {
    width: 100%;
    display: flex;
    align-items: flex-start;
    padding: 30px 0;
}
.fair_list .list_text_box {
    width: 100%;
    
}
.fair_list .list_item .icon {
    width: 2rem;
    height: 2rem;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 2px;
    flex-shrink: 0;
}
.fair_list .list_item .icon img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;    
}
.fair_list .list_item .icon img:last-child {
    transform: translate(-100%, 100%);
}
.fair_list .list_item:hover .icon img {
    top: -100%;
    left: 100%;
    transition: .3s ease;
}
.fair_list .list_title {
    font-size: var(--ft28);
    font-weight: var(--bold);
    margin-bottom: 16px;
}
.fair_list .list_location {
    margin-bottom: 40px;
    font-size: var(--ft20);
}
.fair_list .list_date .icon {
    width: 20px;
    height: 20px;
}
.fair_list .list_item:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}
.fair_list .list_item:hover .list_img img {
    transform: scale(1.05);
}

.sec_group {
    margin-bottom: var(--sec-gap);
}

/*-- null_box --*/
.null_box {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.null_box p {
    font-size: var(--ft18);
    color: var(--gray-400);
}

@media all and (max-width: 1600px) {
}

@media all and (max-width: 1400px) {
}

@media all and (max-width: 1200px) {
    .fair_list .list_img {
        width: 300px;
    }
    .fair_list .list_text_box {
        padding: 20px 0;
    }
}

@media all and (max-width: 900px) {
    
    .fair_list .list_img {
        width: 250px;
    }
}

@media all and (max-width: 600px) {
    .filter_box {
        flex-direction: column-reverse;
        gap: 40px;
    }
    .search_input_group {
        width: 100%;
    }
    .fair_list .list_item a {
        flex-direction: column;
        align-items: center;
    }
    .fair_list .list_img {
        width: 100%;
        max-width: 100%;
    }
    .fair_list .list_title {
        font-size: var(--ft24);
    }
    .fair_list .list_location {
        font-size: var(--ft18);
        margin-bottom: 14px;
    }
    .list_text_box  {
        padding: 0;
    }
    .fair_list .list_desc {
        padding: 0;
    }
    
}