@font-face {
    font-family: iransans;
    src: url("../asset/font/fontsfree-net-ir_sans.ttf");
}

 

:root {
    --main-color:#EB008B;
    --second-color:#fff;
    --third-color:black;
    --fourth-color:#D5B592;
}

body,figure,h1,h2,h3,ul,li {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}



body {
    font-family: iransans,sans-serif;
    display: flex;
}

body > main {
    flex-basis: 80%
}

body > aside {
    flex-basis: 20%;
}

hr {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    border-style: none;
    border-width: 0px;
}



figure {
    height: 300px;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    margin: 1vh 1vw;
    /* flex-basis: 0%; */
}

figure img{
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
}


section figure img {
    
}

figure figcaption {
    cursor: cell;
    position: absolute;
    width: auto;
    bottom: 3vh;
    padding: 9px;
    border-radius: 30px;
    border: transparent 1px solid;
    color: var(--second-color);
    background-color: var(--main-color);
    text-transform: capitalize;
    transition: all 0.2s ease;
}

figure figcaption:hover {
    color: var(--main-color);
    border: var(--third-color) 1px solid;
    background-color: var(--second-color);
}


hr {
    background-color: var(--main-color);
    width: 95%;
    height: 4px;
    border-radius: 5px;
}

section {
    display: flex;
    padding: 2vh 2vw;
}

section > ul {
    list-style:none ;
}

section > ul > li {
    cursor:cell;
    transition: transform 0.2s ease;
}


section > ul > li::before {
    content: "- ";
    font-size: 25px;
}

section > ul > li:hover {
    transform:translateX(5px)
}


section:nth-child(5n) > figure {
    order: -1;
}


section > * {
    flex-basis: 50%;
}

.column-2 {
    columns: 2;
}

aside {
    /* position:sticky; */
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    border-right: 3px solid #EB008B;
}

aside li {
    position: relative;
    height: 100px;
    margin:2vh 1vw;
    border-radius: 20px;
    overflow: hidden;
}

aside li img {
    object-fit: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;

}

.category-icon-link__text {
    font-size: 1.1rem;
    color: white;
    text-transform: capitalize;
    pointer-events: none;
    position: absolute;
    left: 1vw;
    bottom: 1vh;
    z-index: 4;
}


.category-icon-link__background {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    background: rgba(235,0,139,1);
    background: linear-gradient(180deg, rgba(2,0,36,0) 40%, rgba(235,0,139,1) 100%); 
    z-index: 3;
    transition: background 0.2s ease;
}

 
.category-icon-link__background--black {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0,0.4);
    z-index: 2;
    transition: background 0.2s ease;
}

li:hover .category-icon-link__background--black {
    background: rgb(0, 0, 0,0);
}

a {
    text-decoration: none;
    color: black;

}

a:visited {
    text-decoration: none;
    color: black;

}

.flex-container {
    display: flex;
    flex-direction: row;
    align-items: center ;
}

.flex-container img {
    width: 40px;
}

.flex-container h3 {
    text-transform: uppercase;
}

.flex-container > * {
    margin: 5px;
}

.category-title {
    text-transform: uppercase;
    text-align: center;
    padding: 1vh 1vw;
    font-size: 2rem;
    
}

.arrow-svg--container {
    transform: rotate(180deg);
}

div.header .arrow-svg {
    transition: all 0.2s ease;
}

div.header:hover .arrow-svg {
    transform: translateX(10px);
} 

div.header {
    width: 100%;
    text-align: center;
    flex-direction: column;
}

aside.services {
    align-items: center;
    display: flex;
    flex-direction: column;
    background-color: white;
    z-index: 4;
}

@media (max-width:800px) {
    aside li {

    }
    aside ul 
    aside a {
        position: relative;
        height: 100px;
        flex-basis: 33%;
        margin:2vh 1vw;
        border-radius: 20px;
        overflow: hidden;
    }
    aside.services {
        flex-direction: row;
    }
    aside.services a {
        flex-basis: 33%;
    }
}

aside.services a {
    align-items: center;
}
.arrow-svg--container {
    order :3;
}




@media (max-width:800px) {
    aside.services a {
        flex-direction: row;

    }
    
    
    body {
        flex-direction: column;
    }
    aside {
        /* flex-basis: content; */
        display: flex;
        flex-direction: row;
        border-right: 0px;
        border-bottom: 3px solid #EB008B;
        padding-bottom: 2vh;
    }

    .flex-container {
        flex-direction: column;
        margin: 2vh 2vw;
    }

    .category-icon-link {
        flex: 1;
    }

    .category-icon-link ul{
        display: flex;
        flex-direction: row;
    }

    .category-icon-link ul a {
        flex-basis: 33%;
    }

    .category-icon-link ul a {
        margin: 2px;
        border-radius: 30px;
        overflow: hidden;
    }

    section {
        flex-direction: column;
    }

    section > * {
        flex-basis: auto;
    }
    
    figure {
        height: 50vh;
        direction: rtl;
    }


    section:nth-child(5n) > figure {
        order: 0;
    }

}
aside {
    
    position: relative;
    height: 100vh;
}
.services ul {
    width: 100%;
}

.icon-link {
    height: 100px;
    width: 20vw;

}

.category-icon-link__text {
    font-size: 1.1rem;
    text-align: left;
    color: white;
    text-transform: capitalize;
    pointer-events: none;
    position: absolute;
    left: 1vw;
    bottom: 1vh;
    z-index: 4;
    transition: opacity 0.2s ease;
}



 .category-icon-link__background {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    background: rgba(235,0,139,1);
    background: linear-gradient(180deg, rgba(2,0,36,0) 40%, rgba(235,0,139,1) 100%); 
    bottom:0;
    z-index: 3;
}

 
 .category-icon-link__background--black {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0,0.4);
    z-index: 2;
    transition: background 0.2s ease;
}

 .icon-link:hover .category-icon-link__background--black {
    background: rgb(0, 0, 0,0);
}



@media (max-width:700px) {

    .category-icon-link__text , .category-icon-link__background--black {
        display: none;  
    }

}

.icon-link {
    text-transform: capitalize;
}

h2 {
    text-transform: capitalize;
}