/* Related Woocommerce product in Sidebar of Post*/
.sidebar-product {
    margin: 0 0 20px 0px;
    text-align: center;
}

.sidebar-product a {
    color: #666666
}

.sidebar-product a img{
    width: 100%;
    height: auto;
}

.sidebar-product h4 a:hover {
    color: #000;
}

h4.sidebar-product-banner {
    border-bottom: 3px solid transparent;
    border-bottom-color: #b22b3b;
    text-transform: uppercase;
    text-align: center;
    background: #f2f2f2;
    padding: 14px 20px 15px 20px;
    letter-spacing: 2px;
    font-size: 18px;
    font-weight: 700;
    color: #666666;
}

/* Related case study posts in Product page */
a.case-button-style {
    padding: 10px;
    border-radius: 9px;
    border: none;
    background-color: #b22b3b;
    color: white!important;
    margin-top: 20px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
    word-wrap: break-word;
    line-height: normal;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
    padding: 14px 20px;
    font-weight: bold;
}

/* one post layout*/
.related-case-study-posts-single {
    text-align: center;
    margin-top: 30px;
}

.related-case-study-posts-single p {
    padding: 0 45px;
}

/* two post layout */
.related-case-study-posts-2 {
    width: 50%;
    float: left;
    text-align: center;
    margin-top: 20px;
}

.related-case-study-posts-2 p {
    padding: 0 20px;
}

/* three post layout */
.related-case-study-posts-3 {
    width: 33.333%;
    float: left;
    text-align: center;
    margin-top: 20px;
}

.related-case-study-posts-3 p {
    padding: 0 20px;
}


/* MEDIA QUERIES */

@media screen and (max-width: 768px) {
    .related-case-study-posts-2 {
        width: 100%;
        display: block;
        margin-bottom: 30px;
    }

    .related-case-study-posts-3 {
        width: 100%;
        display: block;
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1019px) {
    .related-case-study-posts-3 h4 {
        min-height: 40px;
    }
    .related-case-study-posts-3 p {
        min-height: 140px;
    }
}

@media screen and (min-width: 1020px) {
    .related-case-study-posts-3 p {
        min-height: 100px;
    }
}

/* GK Theme Specific CSS */
.related-case-study-posts-single img, .related-case-study-posts-2 img, .related-case-study-posts-3 img {
    margin-left: 0!important;
    margin-right: 0!important;
}
    