html, body {
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: 'Assistant', sans-serif;
}

h1 {
    font-weight: 500;
    font-size: 21px;
    margin-bottom: 4px;
}

h2 {
    font-weight: normal;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.header {
    position: fixed;
    top: 0;
    height: 60px;
    width: 100%;
    background: #b81e0d;
    border-bottom: 1px solid #96190b;
    text-align: center;
    z-index: 99;
}

.logo {
    height: 45px;
    margin-top: 7px;
}

.login {
    position: absolute;
    top: 13px;
    right: 10px;
}

.hero {
    text-align: center;
    margin-top: 76px;
}

.hero a {
    display: inline-block;
    height: 30px;
    width: 200px;
    line-height: 30px;
    background: #b81e0d;
    color: white;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    align-items: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 20px;
    border-radius: 0.25rem;
    cursor: pointer;
}

.main {
    margin: 20px auto;
    overflow: auto;
    width: 90%;
    max-width: 1030px;
}

.box {
    float: right;
    position: relative;
    display: inline-block;
    width: calc(50% - 2%);
    margin-bottom: 2%;
    border-radius: 4px;
}

.box > img {
    border-radius: 4px;
    width: 100%;
    height: auto;
    box-shadow: 0 5px 8px #00000026;
}

.black {
    width: 100%;
    height: 40%;
    background: rgba(92,92,92,0);
    background: -webkit-gradient(left top,left bottom,color-stop(0%,rgba(92,92,92,0)),color-stop(100%,#5c5c5c));
    background: linear-gradient(to bottom,rgba(92,92,92,0) 0%,#5c5c5c 100%);    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
    border-radius: 4px;
}

.info {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.info span {
    display: block;
    white-space: nowrap;
    color: white;
    font-weight: 600;
    font-size: 15px;
    z-index: 2;
}

.info .name {
    display: inline-block;
    border-bottom: 1px solid #b81e0d;
    width: 110%;
}

.info .name span {
    display: inline-block;
    color: #42c451;
}

.info .city {
    line-height: 24px;
}

.city img {
    display: inline-block;
    vertical-align: top;
}

.box:nth-child(2n) {
    margin-right: 4%;
}

@media (min-width: 768px){
    .box {
        width: calc(33.33% - 1%);
    }

    .box:nth-child(2n) {
        margin-right: 0;
    }

    .box:nth-child(3n-1) {
        margin-right: 1.5%;
        margin-left: 1.5%;
    }

    .info span {
        font-size: 18px;
    }

    .black {
        width: 100%;
        height: 25%;
        background: rgba(92,92,92,0);
        background: -webkit-gradient(left top,left bottom,color-stop(0%,rgba(92,92,92,0)),color-stop(100%,#5c5c5c));
        background: linear-gradient(to bottom,rgba(92,92,92,0) 0%,#5c5c5c 100%);    position: absolute;
        z-index: 1;
        bottom: 0;
        right: 0;
        border-radius: 4px;
    }
}


@media (max-width: 768px){
    .box:last-child {
        display: none;
    }
}
