﻿.firstpagecategory {
    position: relative;
    margin: 5px 0 0 0;
    padding-bottom: 40px;
}

    .firstpagecategory ul {
        list-style-type: none;
        font-size: 0;
    }

        .firstpagecategory ul li {
            display: inline-block;
            vertical-align: top;
            width: 31%;
            font-size: 12px;
            margin-left: 3.5%;
        }

            .firstpagecategory ul li:nth-child(3n) {
                margin-left: 0;
            }

            .firstpagecategory ul li div {
                box-sizing: border-box;
                display: block;
                margin-bottom: 20px;
                color: #333;
                position: relative;
                background: #f9f9f9;
                height: auto;
                transition: 0.3s all ease;
                padding: 20px;
                box-shadow: 0 2px 17px rgba(0,0,0,.22);
                min-height: 465px;
            }

                .firstpagecategory ul li div img {
                    display: inline-block;
                    width: 40px;
                    height: 40px;
                    padding: 5px;
                    vertical-align: top;
                }

                .firstpagecategory ul li div .count {
                    display: block;
                    font-size: 25px;
                    font-weight: bold;
                    position: absolute;
                    left: 10px;
                    top: 10px;
                    color: #fff;
                    text-shadow: 0 0 4px #811;
                }

                .firstpagecategory ul li div h2 {
                    font-size: 16px;
                    font-weight: bold;
                    height: 40px;
                    line-height: 40px;
                    transition: 0.3s all ease;
                    margin: 0;
                    display: inline-block;
                }

                .firstpagecategory ul li div p {
                    transition: 0.3s all ease;
                    min-height: 125px;
                    padding: 20px 10px;
                    text-align: justify;
                    color: #777;
                    font-size: 13px;
                    line-height: 170%;
                }

                .firstpagecategory ul li div ul {
                    list-style-type: none;
                }

                    .firstpagecategory ul li div ul li {
                        display: block;
                        width: 100%;
                    }

                .firstpagecategory ul li div a {
                    display: block;
                    color: #444;
                    position: relative;
                    height: 30px;
                    line-height: 30px;
                    padding: 0 -1px 0 0;
                }

                    .firstpagecategory ul li div a img {
                        width: 30px;
                        height: 30px;
                        display: inline-block;
                        vertical-align: top;
                    }

                .firstpagecategory ul li div:before {
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 0;
                    height: 0;
                    border-left: 90px solid #ffb9ab;
                    content: '';
                    border-bottom: 90px transparent solid;
                }

                .firstpagecategory ul li div li:last-of-type a {
                    background: #fff;
                    height: 50px;
                    line-height: 50px;
                    font-size: 16px;
                    font-weight: bold;
                    width: 160px;
                    border-radius: 2px;
                    box-shadow: 0 0 20px rgba(0,0,0,0.1);
                    margin-top: 10px;
                }

                    .firstpagecategory ul li div li:last-of-type a:hover {
                        background: #eeffaa;
                    }

                    .firstpagecategory ul li div li:last-of-type a img {
                        margin: 10px;
                    }

.categorypage {
    font-size: 0;
}

    .categorypage .l-column, .categorypage .r-column {
        display: inline-block;
        vertical-align: top;
        width: 65%;
        margin: 0;
    }

    .categorypage .r-column {
        width: 35%;
    }

.categorydetail {
    font-size: 12px;
    min-height: 300px;
    margin: 0;
    padding: 30px;
    border-radius: 0px;
    overflow: hidden;
    font-family: 'WebmehrazFont';
    box-shadow: 0 9px 21px #c7c7c7;
    border-radius: 2px;
    background: #fff url(../images/top.png) no-repeat left top -140px;
    font-weight: bold;
    min-height: 600px;
}

    .categorydetail h1 {
        color: #424242;
        font-size: 25px;
        line-height: 50px;
        position: relative;
        min-height: 50px;
        font-weight: bold;
        text-align: center;
        padding: 10px 0 20px;
        width: 100%;
        border-bottom: 1px solid #eee;
        margin: 20px auto 10px;
    }

    .categorydetail ul {
        padding-right: 20px;
    }

.categorypage img {
    margin: 0 auto;
    display: block;
    max-width: 120px;
}

.categorylist {
    padding: 20px 50px;
    margin: 0 0 0 0;
    background: #efefef;
    min-height: 600px;
    border-right: 1px solid #fafafa;
}


    .categorylist ul {
        list-style-type: none;
    }



        .categorylist ul li a {
            color: #555;
            display: block;
            font-size: 14px;
            min-height: 36px;
            line-height: 36px;
            font-weight: bold;
            border-bottom: 1px solid #dedede;
            margin: 0;
            transition: 0.5s all ease;
        }

            .categorylist ul li a:hover {
                background: #fad8d8;
                color: #da0000;
                padding-right: 10px;
            }

            .categorylist ul li a img {
                display: inline-block;
                vertical-align: middle;
                width: 23px;
                height: 23px;
                padding: 2px;
                margin-left: 10px;
                background: #f7f7f7;
                border-radius: 2px;
                transition: 1s all ease;
            }

@media (max-width:980px) {
    .firstpagecategory ul li {
        width: 49%;
        margin-left: 2%;
    }

        .firstpagecategory ul li:nth-child(3n) {
            margin-left: 2%;
        }

        .firstpagecategory ul li:nth-child(2n) {
            margin-left: 0 !important;
        }

        .firstpagecategory ul li a p {
            min-height: 140px;
        }
}

@media (max-width:980px) {
    .firstpagecategory ul li {
        width: 100%;
        margin-left: 0;
    }

        .firstpagecategory ul li:nth-child(3n), .firstpagecategory ul li:nth-child(2n) {
            margin-left: 0 !important;
        }
    .categorypage .l-column, .categorypage .r-column {
        width: 50%;
    }
}
@media (max-width:780px) {
    .categorypage .l-column, .categorypage .r-column {
        width: 100%;
        display: block;
    }

    .categorydetail {
        min-height: 200px;
        font-size: 14px;
        font-weight:normal;
    }
}

