/* reset */

:where(:not(html,iframe,canvas,img,svg,video,audio):not(svg *,symbol *)){all:unset;display:revert}*,::after,::before{box-sizing:border-box}a,button{cursor:revert}menu,ol,ul{list-style:none}img{max-inline-size:100%;max-block-size:100%}table{border-collapse:collapse}input,textarea{-webkit-user-select:auto}textarea{white-space:revert}meter{-webkit-appearance:revert;appearance:revert}:where(pre){all:revert}::placeholder{color:unset}::marker{content:initial}:where([hidden]){display:none}:where([contenteditable]:not([contenteditable=false])){-moz-user-modify:read-write;-webkit-user-modify:read-write;overflow-wrap:break-word;-webkit-line-break:after-white-space;-webkit-user-select:auto}:where([draggable=true]){-webkit-user-drag:element}:where(dialog:modal){all:revert}

a:hover{
    text-decoration: none !important;
}

h1.page-header_pageTitle{
    text-align: center;
    font-size: 28px;
}


.topic__choices{
    display: flex;
}

.topic__choice{
    width: 50%;
}

.topic__choice a{
    display: block;
    font-size: 18px;
    line-height: 65px;
    text-align: center;
    color: #222;
    border: 1px solid #222;
    box-sizing: border-box;
}

.topic__choice + .topic__choice{
    border-left: none;
}

.topic__choice.active a{
    background-color: #222;
    color: #fff;
}

.topic__block{
    margin-top: 50px;
}

.topic__head{
    display: block;
    padding-bottom: 50px;
    border-bottom: 1px solid #ddd;
}

.topic__head-info{
    display: flex;
    align-items: center;
    gap: 35px;
}

.topic__head-text{
    line-height: 40px;
}

.topic__categories{
    display: flex;
    gap: 15px;
}

.topic__category{
    text-align: center;
    padding: 0 20px;
    line-height: 40px;
    color: #222;
    border: 2px solid #222;
    cursor: pointer;
}

.topic__category.active{
    background-color: #222;
    color: #fff;
}

.topic__reset{
    color: #888;
    background-color: #eee;
    text-align: center;
    padding: 10px 35px;
    display: inline-block;
}

.topic__list{
    padding: 70px 0;
    border-bottom: 1px solid #ddd;
}

.topic__list:first-child{
    padding-top: 0;
}

.topic__article{
    margin-top: 50px;
}

.topic__article-img{
    width: 100%;
    height: 300px;
    position: relative;
}

.topic__article-img span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.7);
    color: #fff;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic__article-img img{
    height: 100%;
    object-fit: cover;
}

.topic__article-content{
    flex: 1;
    color: #222;
    position: relative;
    padding-bottom: 60px;
    margin-top: 40px;
}

.topic__article-tag{
    display: inline-block;
    border: 1px solid #222;
    text-align: center;
    padding: 3px 10px;
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 30px;
    font-size: 14px;
}

.topic__article-title{
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 0;
}

.topic__article-text{
    line-height: 1.5;
    font-weight: 400;
}

.topic__article-btn{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 240px;
    z-index: 5;
    padding: 10px 0;
    display: inline-block;
    overflow: hidden;
    transition: ease .3s;
    border: 1px solid #222;
    background-color: #222;
    text-align: center;
}

.topic__article-btn:hover{
    opacity: .7;
}

.topic__article-btn span{
    display: inline-block;
    color: #fff;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.tab-panel,
.tab-cat-panel{
    display: none;
}

.tab-panel.active,
.tab-cat-panel.active{
    display: block;
}

.topics_search input[type=checkbox]+span {
    padding: 7px 20px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    font-size: 12px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-weight: 400;
    letter-spacing: .2rem;
}

.topics_search input[type=checkbox]:checked+span {
    background: #000;
    color: #fff;
}

.topics_search input.btn {
    display: block;
    width: 100%;
    max-width: 450px;
    margin: 60px auto;
    padding: 15px 0;
    font-size: 18px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    border-radius: 0;
    color: #000;
}

/* pagination */


@media screen and (max-width:600px) {

    .topic__list{
        padding: 40px 0;
    }

    .topic__head-info{
        display: block;
    }

    .topic__choices{
        display: block;
    }

    .topic__choice{
        width: 100%;
        font-size: 14px;
    }

    .topic__choice + .topic__choice{
        border-left: 1px solid #222;
    }

    .topic__categories{
        display: block;
    }

    .topic__category{
        font-size: 14px;
    }

    .topic__article-content{
        margin-top: 40px;
    }

    .topic__article-img{
        height: 250px;
    }

    .topic__article-tag{
        font-size: 14px;
    }

    .topic__article-title{
        font-size: 18px;
    }
    .topic__article-btn {
        width: 100%;
    }
}

@media screen and (min-width:768px) {
    .topic__article-link{
        display: flex;
        gap: 50px;
        height: 300px;
    }

    .topic__article-img{
        width: 50%;
        height: auto;
    }

    .topic__article-content{
        padding-bottom: 0;
        margin-top: 0;
    }

    .topic__article-tag{
        font-size: 16px;
    }

    .topic__article-title{
        font-size: 20px;
    }
}

@media screen and (min-width:992px) {
    h1.page-header_pageTitle{
        font-size: 40px;
    }

    .topic__head{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .topic__article-img{
        width: 40%;
    }
}