﻿html, body {
    height: 100%;
    font-family: IRANSans;
}


.header, .footer {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}

    .header:before {
        content: "";
        top: 0;
        left: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        background: #000;
        opacity: .3;
    }

    .header:after {
        content: "";
        bottom: -1px;
        left: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url(../../image/shape.svg);
        background-repeat: no-repeat;
        background-position: bottom;
    }




    .header .left,
    .header .right {
        padding: 20px;
        color: #fff;
        position: relative;
    }

    .header .left {
        float: left;
    }

    .header .right {
        float: right;
    }


    .header .center {
        position: absolute;
        top: 40%;
        width: 100%;
        text-align: center;
        color: #fff;
        font-size: 40px;
    }


.body {
    background: #f8f8f8;
    float: right;
    width: 100%;
    padding-bottom: 40px;
    direction: rtl;
}

.page {
    width: 100%;
    border: #ddd solid 2px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    float:right;
    text-decoration:none !important;
    color:#444 !important;
}

    .page .img {
        width: 100%;
        height: 250px;
        overflow: hidden;
        background-size: cover;
        background-position: center center;
    }

    .page h2 {
        width: 100%;
        background: #fff;
        padding: 20px 10px 10px 10px;
        font-size: 18px;
        text-align: center;
        margin-bottom: 20px;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


@media (max-width:1024px) {
    .page .img {
        width: 100%;
        height: 250px;
        overflow: hidden;
        background-size: cover;
        background-position: center center;

    }
        .page h2{
        font-size: 15px;
    }
}

@media (max-width:768px) {
    .page .img {
        width: 100%;
        height: 200px;
        overflow: hidden;
        background-size: cover;
        background-position: center center;
    }
    .page h2{
        font-size: 14px;
    }
}




.footer {
    color: #444;
    height: 150px;
    float: right;
    direction: rtl;
}

    .footer p {
        width: 100%;
        float: right;
        text-align: center;
        margin-top: 50px;
        font-size: 15px;
    }

.page:hover img {
    -webkit-transform: scale(1.15);
}
