/* relate-container-style */

.relate-container{
    padding-top: 40px;
}

.swiper-pagination-bullet {
    background-color: #333 !important;
}

/* img-style */
.relate-posts-img {
    background-position: center;
    background-size: cover;
    width: 340px;
    height: 340px;
    flex: none;
    position: relative;
    padding: 10px;
    margin: auto;
}

.relate-posts-content {
    font-size: 14px;
    padding: 0px 5px 15px 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    border-bottom-style: dashed;
}

/*effects*/

.relate-posts-img> .img-effects {
    background-position: center;
    background-size: cover;
    background-color:#000;
    width: 340px;
    height: 340px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; 
    text-align: center;
}
.relate-posts-img>.img-effects>img {
    width: 160px;
    height: 340px;
    margin: auto;
}
.relate-posts-img>.img-effects:hover {
    opacity: .7;
    animation: img-opacity .6s;
}
@keyframes img-opacity {
    from {
        opacity: .1;
    }
    to {
        opacity: .7;
    }
}




.relate-posts-title {
    position: relative;
    top: 0px;
    bottom: 10px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #333;
    text-align: center;

}
.relate-posts-title>a{
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #333;
    text-align: center;
}

.relate-posts-title>a:hover {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #00849a;
    text-align: center;
}

.relate-read {
    padding-bottom: 20px;
    margin: 25px 0px 30px 9px;
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    border-bottom: 1px solid #333;
    border-bottom-style: dashed;
}

.post-card-container {
    background-color: #fff;
    padding: 14px;
    width: 340px;
    margin: 0px auto 30px auto;
    position: relative;
    bottom: 0px;
}

/* media RWD */
@media (max-width:1199px) {
    .relate-posts-img {
        width: 290px;
        height: 290px;
    }

    .relate-posts-img>.img-effects {
        width: 290px;
        height: 290px;
    }

    .relate-posts-img>.img-effects:hover {
        width: 290px;
        height: 290px;
    }

    .relate-posts-img>.img-effects>img {
        width: 160px;
        height: 290px;
    }
    .post-card-container {
        width: 290px;
    }
}


/* media RWD */
@media (max-width:1024px) {
    .relate-posts-img {
        width: 290px;
        height: 220px;
    }
    .relate-posts-img>.img-effects {
        width: 290px;
        height: 220px;
    }

    .relate-posts-img>.img-effects:hover {
        width: 290px;
        height: 220px;
    }
    .post-card-container {
        width: 290px;
    }

    .relate-posts-img>.img-effects>img {
        width: 160px;
        height: 220px;
    }
}



@media (max-width:991px) {
    .relate-posts-img {
        width: 210px;
        height: 210px;
    }
    .relate-posts-img>.img-effects {
        display: none;
    }
    .post-card-container {
        width: 210px;
    }
}
@media (max-width:768px) {
    .relate-posts-img {
        width: 210px;
        height: 210px;
    }
}
@media (max-width:763px) {
    .relate-posts-img {
        width: 305px;
        height: 305px;
    }

    .post-card-container {
        width: 305px;
        margin: auto;
    }
}
@media (max-width:568px) {
    .relate-posts-img {
        width: 290px;
        height: 290px;
    }
    .post-card-container {
        width: 290px;
        margin: auto;
    }
}
