﻿.alefbacol {
    margin-top: 10px;
}
#alefbalogo {
    background: #ffb347;
    padding:3px;
    border-radius:5px;
    background: -webkit-linear-gradient(to left, #ffcc33, #ffb347);
    background: linear-gradient(to left, #ffcc33, #ffb347);
}
.ws_images img {
    border-radius: 10px;
}

.alefbabox {
    position: relative;
    overflow: hidden;
    font-family: samim;
    border-radius: 10px;
}

    .alefbabox:after {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: rgba(0,0,0,0.1);
        transition: all 0.3s ease 0s;
    }

    .alefbabox:hover:after {
        background: rgba(0,0,0,0.6);
    }

    .alefbabox img {
        width: 100%;
        height: auto;
    }

    .alefbabox .box-content {
        position: absolute;
        top: 70%;
        left: 0;
        width: 100%;
        z-index: 1;
        transition: all 0.3s ease 0s;
    }

    .alefbabox .links {
        width: 70%;
        position: relative;
        top: 0;
        padding: 10px;
        text-align: center;
        background: #fff;
        border-radius: 0 0 5px 5px;
        margin: 0 auto;
        transform: translate(0px, 0px);
        transition: all 0.35s ease 0s;
    }

    .alefbabox:hover .links {
        transform: translate(0px, 100%);
    }

    .alefbabox .links li {
        display: inline-block;
        margin: 0 10px 0 10px;
    }

        .alefbabox .links li a {
            font-size: 12px;
            color: #333;
        }

            .alefbabox .links li a:hover {
                text-decoration: none;
                color: red;
            }

    .alefbabox .title {
        width: 80%;
        position: absolute;
        top: 0;
        left: 10%;
        padding: 10px 5px;
        border-radius: 10px;
        line-height: 30px;
        margin: 0;
        color: #fff;
        font-size: 18px;
        background: #ffb347;
        background: -webkit-linear-gradient(to right, #ffcc33, #ffb347);
        background: linear-gradient(to right, #ffcc33, #ffb347);
        color: #4b4b4b;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.85);
        text-align: center;
        transform: translate(0px, 0px);
        transition: all 0.3s ease 0s;
    }

    .alefbabox:hover .title {
        transform: translate(0px, -35px);
        background: #ffb347;
        background: -webkit-linear-gradient(to left, #ffcc33, #ffb347);
        background: linear-gradient(to left, #ffcc33, #ffb347);
        color: #333;
        transition: all 0.3s ease 0s;
    }

@media only screen and (max-width: 990px) {
    .alefbabox {
        margin-bottom: 20px;
    }

        .alefbabox .box-content {
            position: absolute;
            top: 60%;
            z-index: 1;
            transition: all 0.3s ease 0s;
        }

        .alefbabox:hover .links {
            margin-top:15px;
            transform: translate(0px, 70%);
        }
}
