.trad-main-category-btn-all {
    display: none !important; /* Ensures it's hidden by default */
}

.trad-sub-category-btn-all {
    display: none !important; /* Ensures it's hidden by default */
}
.trad-maincategory-section{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.trad-subcategory-section{
    display: flex;
}
.trad-subcategory-section-left{
    width: 50%;
}
.trad-category-btn{
    border-radius: 50px;
    border:2px solid #ddd;
    color: #c00;
    font-size: 18px;
    font-weight: 600;
    margin-right: 15px;
    margin-top: 15px !important;
}
.trad-category-btn:hover{
    background-color: #c00;
    color: #fff;
    
}
.subcategory-content button{
    border-radius: 50px;
    border:2px solid #ddd;
    color: #c00;
    font-size: 18px;
    font-weight: 600;
    margin-right: 15px;
    margin-top: 15px;
}
.subcategory-content button:hover{
    background-color: #c00;
    color: #fff;
}
.trad-question-number{
    font-size: .9375rem;
    font-weight: 400;
    color: #767676;
    margin-left: .5rem;
}
.trad-question-title-2,
.trad-question-title{
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.44;
}
.trad-question-sub-heading-title{
    font-size: 1.5rem;
}
.trad-nested-filter-post-list>div{
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    grid-gap: 25px;
}
.trad-nested-filter-post-list li{
    border: 1px solid #d8d8d8;
    padding: 20px;
   border-top: 3px solid #d8d8d8;
   position: relative;
   transition: all .5s;
}
.trad-nested-filter-post-list li::after{
    position: absolute;
    content: "";
    height: 3px;
    width: 0;
    background-color: #c00;
    left: 0;
    top: -3px;
    transition: all .5s;
}
.trad-nested-filter-post-list li:hover::after {
    left: 0;
    width: 100%;
}
.trad-nested-filter-post-list li a{
    color: #222;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: capitalize;
}
.trad-nested-read-more-btn{
    font-size: 18px;
    font-weight: 600;
    color: #c00;
}

.trad-selected-category-info{
    display: flex;
    justify-content: space-between;
    gap: 50px;
}
.trad-post-filter-rest-btn button{
position: relative;
margin-bottom: -40px;
width: 200px;
background-color: #fff;
border: 1px solid #555;
color: #222;
transition: all .3s;
padding: 10px 0;
}
.trad-selected-category-title{
    font-size: 2rem;
}

.trad-post-filter-rest-btn button:hover{
    background-color: #c00 !important;
    color: #fff;
    }
.trad-selected-category-subtitle-mobile{
    display: none;
}

#tradSubCatALL,
#tradMainCatALL{
    background-color: #c00;
    margin-top: 20px;
    color: #d8d8d8;
    padding: 5px 20px;  
}
#tradSubCatALL:hover,
#tradMainCatALL:hover{
    background-color: #ffffff;
    color: #c00;
}
#tradSubCatALL span,
#tradMainCatALL span {
    display: inline-block;
    transform: rotate(-45deg); 
    transition: transform 0.3s ease-in-out;
}
#tradSubCatALL:hover span,
#tradMainCatALL:hover span {
    transform: rotate(0deg); 
}

.trad-image-filter-post{
    width: 50%;
}
.trad-parent-category-list{
    width: 100%;
}
.trad-all-parents-cat-container{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
#tradBackButton, #tradSubCatBackButton{
    position: relative;
    left: calc(100% - 40px);
    border: none;
    color: #555555;
    font-size: 25px;
}

#tradBackButton:hover, #tradSubCatBackButton:hover{
    background-color: transparent;
    color: #555;
}

#trad-all-parents-category-list-cat,
#trad-all-parents-category-list{
    background-color: transparent;
    border-radius: 0;
    border: none;
    padding: 8px 0;
    border-bottom: 1px solid #d8d8d8;
    width: 100%;
    text-align: left;
    color: #c00;
    font-size: 18px;
    font-weight: 600;
}
#trad-all-parents-category-list:hover{
    color: #c00;
}
@media only screen and (max-width:669px){
    .trad-subcategory-section-left{
        width: 100%;
    }
    /* card grid// */
    .trad-nested-filter-post-list>div {
        grid-template-columns: auto;
        grid-template-rows: auto;
        grid-gap: 25px;
    }
    .trad-selected-category-info{
        flex-direction: column;
    }
    .trad-selected-category-subtitle-mobile{
        display: block;
        margin-top: 20px;
    }
    .trad-selected-category-subtitle{
        display: none;
    }
    .trad-maincategory-section{
       flex-direction: column;
    }
    .trad-subcategory-section{
        flex-direction: column;
        gap: 20px;
    }

    .trad-category-btn{
        margin-bottom: 20px;
        margin-top: 0 !important;
    }
    .subcategory-content button{
        margin-bottom: 20px;
    }
    .trad-image-filter-post{
        width: auto;
    }
}
