.page-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 48px 0 64px;
}

.page-title img{
    width: 240px;
    height: 240px;
    margin-bottom: 24px;
}

.page-title h1{
    margin-bottom: 12px;
}

.tabList{
    display: flex;
    column-gap: 20px;
    width: 960px;
    margin: 0 auto 24px;
}

.tabList .tab{
    display: flex;
    flex: 1 0 0;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: #FFF;
    color: #767676;
}

.tabList .tab.active{
    background: #484848;
    color: #E8E8E8;
}

.tabList .tab.active:hover{
    background: #484848;
    color: #E8E8E8;
}

.tabList .tab:hover{
    cursor: pointer;
    background: #E8E8E8;
    color: #484848;
}

.resource-list{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    flex-direction: column;
    row-gap: 24px;
    column-gap: 20px;
    margin-bottom: 144px;
}

.resource{
    display: flex;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-radius: 12px;
    background: #FFF;
    flex: 1 0 0;
    position: relative;
}

.resource .label{
    display: flex;
    padding: 4px 8px 4px 6px;
    justify-content: center;
    align-items: center;
    gap: 4px;

    /* position */
    position: absolute;
    left: 36px;
    top: 36px;

    /* style */
    border-radius: 2px;
    background: #E8E8E8;
}

.resource .label p{
    color: var(--Eerie-Black-500, #484848);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 12px */
}

.resource .label img{
    height: 16px;
    width: 16px;
}

.resource .cover{
    height: 200px;
    align-self: stretch;
    object-fit: cover;
    border-radius: 8px;
}

.resource .content{
    display: flex;
    padding: 12px;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
    height: 100%;
}

.resource .content .description{
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
}

.resource .content h2{
    color: var(--Eerie-Black-1000, #050505);
    font-size: 20px;
    font-weight: 500;
    line-height: 110%; /* 26.4px */
}

.resource .content p{
    font-size: 18px;
    color: var(--Eerie-Black-400, #767676);
    line-height: 140%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    overflow: hidden;
}

.resource .content .caption{
    display: flex;
    gap: 16px;
}

.caption .box{
    display: flex;
    align-items: center;
    column-gap: 4px;
}

.caption .box p{
    line-height: 100%;
    font-size: 16px;
    color: var(--Eerie-Black-300, #A3A3A3);
}

.resource .btn{
    align-self: stretch;
    width: auto;
    margin-top: auto;
}


@media (max-width:1200px) {
    
}

@media (max-width:1040px) {
    .tabList{
        width: 100%;
    }
    .resource-list{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .resource .content{
        padding: px;
    }
    .resource .content p{
        font-size: 16px;
    }
    .resource .content h2{
        font-size: px;
    }
    .caption .box p{
        font-size: px;
    }
}

@media (max-width:768px) {
    .page-title{
        margin: 24px 0 40px;
    }
    .page-title img{
        width: 160px;
        height: 160px;
        margin-bottom: 16px;
    }
    .resource-list{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .resource .cover{
        height: px;
    }
    .resource .content p{
        font-size: px;
    }
    .resource .content h2{
        font-size: px;
    }
    .resource .content .caption{
        gap: 8px;
    }
    .caption .box p{
        font-size: px;
    }
}

@media (max-width:490px) {
    .page-title{
        margin: 24px 0 24px;
    }
    .tabList{
        display: none;
    }
    .resource-list{
        row-gap: px;
    }
    .resource{
        padding: 16px;
        gap: 16px;
        height: fit-content;
    }
    .resource .content{
        padding: 0;
    }
    .resource .content h2{
        font-size: 16px;
    }
    .resource .content p{
        font-size: 14px;
    }
    .resource .btn{
        margin-top: 0;
    }
}
