@font-face {
    font-family: font;
    src: url(../Vazir/Vazir-Bold-FD.ttf);
}
html,body{
width: 100%;
height: auto;
float: left;
margin: 0;
padding: 0;   
direction: rtl;
font-family: font;
}
.m-category-row{
    width: 100%;
    height: auto;
    float: left;
    /* margin: 1em 3%; */
    display: flex;
    flex-wrap: wrap;
    transform: translateX(15em);
    opacity: 0;
}
.m-category-ele{
    width: 15.6%;
    height: 24vh;
    float: left;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5em 1%;
    margin:1% 0.5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    box-shadow: 1px 0px 6px #808080b3;
    position: relative;
    z-index: 1;
}
.m-category-ele::before{
    content: "";
    width: 100%;
    height: 100%;
    float: left;
    position: absolute;
    z-index: -1;
    background-color: rgb(220 220 220 / 31%);
    top: 0;
    left: 0;
}
.m-category-des{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(50px);
    transition: 0.4s;
}
.m-category-des h3{
    color: white;
    font-size: 30px;
    margin-bottom: 25px;
    text-shadow: 0px 5px 10px #4c4c4c;
    text-align: center;
    -webkit-text-stroke: 1.2px #526bae;
}
.m-category-btn{
    text-decoration: none;
    color: #f8f9fa;
    background-color: rgb(62 61 147);
    border-radius: 100px;
    border: none;
    padding: 0.5em 3em;
    opacity: 0;
    transition: 0.2s;
}
.m-category-btn:hover{
    background-color: #AF4BDE;
    transition: 0.4s;
}
.m-category-1{
    background-image: url(image/1.jpg);
}
.m-category-2{
    background-image: url(image/2.jpg);
}
.m-category-3{
    background-image: url(image/3.jpg);
}
.m-category-4{
    background-image: url(image/4.jpg);
}
.m-category-5{
    background-image: url(image/5.jpg);
}
.m-category-ele:hover .m-category-des{
    transform: translateY(0px);
    transition: 0.4s;

}
.m-category-ele:hover .m-category-btn{
    opacity: 1;
    transition: 0.4s;

}
.category-section{
    width: 43.3%;
    /* height: 30vh; */
    float: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin:1% 2.5%;
    background-size: cover;
    box-sizing: border-box;
    position: relative;
}
.category-section .m-category-ele{
    width: 100% !important;
}
.subcategory-section{
    width: 100%;
    height: 0%;
    float: left;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid gray;
    border-radius: 10px;
    position: absolute;
    z-index: 2;
    top: 0;
    overflow-y: auto;
    background-color: rgb(29 45 114 / 68%);
    /* padding: 0em; */
    box-sizing: border-box;
    opacity: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.subcategory-section .subcategory-ele{
    width: 44.3% !important;
    height: 9.5vh;
    justify-content: center;
    margin:0.2em 1% !important;
}
/* .subcategory-section {
  background: rgb(223, 179, 244 , 0.2);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
}

.subcategory-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
} */

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    transparent,
    rgba(255, 255, 255, 0.3)
  );
}
.subcategory-section h3{
    font-size: 17px !important;
    color: rgb(0, 0, 0);
    margin: 0;
}
@media only screen and (max-width:1200px){
    /* .m-category-ele {
        width: 32.3%;
    }
    .m-category-4,.m-category-5{
        width: 49%;
    } */
    /* .m-category-row {
        flex-direction: column;
        align-items: center;
    } */
    .m-category-ele {
        width: 24%;
    }
    .m-category-des{
        transform: translateY(0px);
    }
    .m-category-btn{
        opacity: 1;
    }
    .m-category-des h3 {
        font-size: 30px;
    }
    .m-filter-ele,.filter-container{
        margin-top: 0 !important;
    }
    .m-blog-container {
        padding-top: 1.5em !important;
    }
}
@media only screen and (max-width:950px){
    .m-category-ele{
        width: 32.3%;
        height: 20vh;
    }
}
@media only screen and (max-width:750px){
    .subcategory-section .subcategory-ele{
        width: 79% !important;
        margin: 0.2em 2% !important;
    }
}
@media only screen and (max-width:600px){
    .m-category-ele {
        width: 31.3% !important;
        margin: 1%;
        height: 17vh;
    }
    .m-category-row{
        /* height: 36.5vh; */
        /* overflow-y: auto; */
        box-sizing: border-box;
        /* padding: 0 0.5em; */
    }
    .m-category-des h3 {
        font-size: 20px;
    }
    .m-category-btn {
        font-size: 11px;
    }

    .m-blog-container {
        padding-top: 1em !important;
    }
    .m-filter-ele h3{
        display: none;
    }
    .subcategory-section .subcategory-ele {
        height: 7.5vh;
    }
}
@media only screen and (max-width:550px){
    .subcategory-section .subcategory-ele{
        height: 7vh;
    }
    .subcategory-section h3 {
        font-size: 12px !important;

    }
}
@media only screen and (max-width:450px){
    .m-category-ele {
        width: 46% !important;
        margin: 2%;
        height: 15vh;
    }
    .m-category-des h3 {
        font-size: 20px;
    }
    .m-category-btn {
        font-size: 11px;
    }
    /* .m-category-row{
        height: 33.5vh;
    } */
    .subcategory-section .subcategory-ele{
        height: 10vh;
    }
}
@media only screen and (max-width:370px){
    .subcategory-section .subcategory-ele{
        width: 100% !important;
        margin: 0.2em 0% !important;
    }
}