@charset "utf-8";

.title_box {
    position: relative;
}
.counter {
    background: rgba(241, 39, 17, .9);
    color: var(--color-light-1);
    font-size: var(--h1-font-size);
    padding: 0 54px;
    border-radius: 64px;
    position: absolute;
    top: -4%;
    right: -36%;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
input[type="radio"] {
    opacity: 0;
}
.filter {
    display: flex;
    gap: 8px;
    float: right;
}
.filter>li:nth-child(odd)>label:hover {
    cursor: pointer;
    color: var(--color-orange-1);
}
.news_list_wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: var(--pd-md);
}
.news_list {
    height: 440px;
    cursor: pointer;
}
.news_list>a {
    display: block;
    width: 100%;
    height: 100%;
}
.news_list_contents {
    width: 100%;
    height: 100%;
    padding: var(--pd-xxs);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark-1);
    color: var(--color-light-1);
    font-size: var(--p-font-sm);
    font-weight: 700;
    text-align: center;
    opacity: 0;
    position: relative;
}
.news_list>a:hover>.news_list_contents {
    opacity: 0.9;
}
.arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-orange-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 14px;
    bottom: 14px;
}
.arrow>img {
    width: 14px;
    height: auto;
}
.more_btn_wrap {
    display: flex;
    justify-content: center;
    display: none;
}
.more_btn {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: var(--pd-xxs) 0;
}

/*--------------------------------------------------
    Filtering Rules
---------------------------------------------------*/
[value="전체보기"]:checked ~ .filter [for="전체보기"],
[value="오투소식"]:checked ~ .filter [for="오투소식"],
[value="뉴스기사"]:checked ~ .filter [for="뉴스기사"] {
    color: var(--color-orange-1);
}

[value="전체보기"]:checked ~ .news_list_wrap [data-category] {
    display: block;
}

[value="오투소식"]:checked ~ .news_list_wrap .news_list:not([data-category~="오투소식"]),
[value="뉴스기사"]:checked ~ .news_list_wrap .news_list:not([data-category~="뉴스기사"]) {
    display: none;
}

/*--------------------------------------------------
	Responsive
---------------------------------------------------*/
@media screen and (max-width: 1023px){
    .title_section {
        flex-direction: column !important;
        justify-content: start;
        align-items: start;
    }
    .counter {
        font-size: var(--h2-font-size);
        padding: 0 var(--pd-xs);
        border-radius: 48px;
        top: -20%;
        right: -42%;
    }
    .news_list_wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: var(--pd-sm);
    }
    .news_list {
        height: 315px;
    }
    .news_list>a:hover>.news_list_contents {
        opacity: 0;
    }
}
@media screen and (max-width: 767px){
    .news_list {
        height: 182px;
    }
}