
div.best_categories_container {
    max-width: 1440px;
    margin: 0 auto;
}

div.best_categories_wrapper {
    width: calc(100% + 20px);
    max-height: 540px;
    margin: 0px 0px 20px -20px;
    overflow: hidden;
    float: left;
    transition: all 0.6s ease;
}
.best_categories_wrapper_open .best_categories_wrapper {
    max-height: 1900px;
}

div.best_categories_item_wrapper {
    width: calc(16.66% - 20px);
    margin: 0px 0px 20px 20px;
    float: left;
}

div.best_categories_item {
    width: 100%;
    position: relative;
    float: left;
}
div.best_categories_img {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    float: left;
    overflow: hidden;
    border-radius: 4px;
}
.best_categories_item:hover .best_categories_img img {
    transform: scale(1.02);
}
.best_categories_img:before {
    content:"";
    background: rgb(51 51 51 / 40%);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
    transition: all 0.2s ease;
}
.best_categories_item:hover .best_categories_img:before {
    background: rgb(51 51 51 / 50%);
}

a.best_categories_title {
    position: absolute;
    top: 0;
    left: 15px;
    bottom: 0;
    right: 15px;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
.best_categories_item:hover .best_categories_title {
    color: #ffd100;
    text-shadow: 0px 0px 10px rgb(255 209 0);
}

.best_categories_title div {
    font-weight: 300;
    font-size: 13px;
    color: #fff;
	opacity: 0.9;
	text-transform: none;
	margin: 7px 0px 0px 0px;
	text-shadow: none !important;
}

div.best_categories_text {
    position: absolute;
    left: 15px;
    bottom: 20px;
    right: 15px;
    z-index: 3;
    text-align: center;
    font-size: 13px;
    color: #fff;
    text-align: center;
    opacity: 0.7;
}


.best_categories_item:hover .best_categories_img:before,
.best_categories_item:hover a.best_categories_title,
.best_categories_item:hover div.best_categories_text {
    /* opacity: 0; */
}




div.best_categories_btn_container {
    width: 100%;
    margin: 0px 0px 15px 0px;
    display :flex;
    justify-content: center;
    align-items: center;
    float: left;
}
div.best_categories_btn {
    background: #faeacb;
    width: 150px;
    height: 50px;
    position: relative;
    cursor: pointer;
    font-size: 15px;
    float: left;
    border-radius: 3px;
}
.best_categories_btn:hover {
    background: #f4c800;
}

.best_categories_btn p,
.best_categories_btn span {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display :flex;
    justify-content: center;
    align-items: center;
}

.best_categories_btn span {
    opacity: 0;
}
.best_categories_wrapper_open .best_categories_btn span {
    opacity: 1;
}
.best_categories_wrapper_open .best_categories_btn p {
    opacity: 0;
}

