.mg-service .image-overlay {
    position: relative;
}
.mg-service .image-overlay .image-svg {
    background-image: url("images/image-overlay-small.png");
    z-index: 99;
    display: inline-block;
    position: absolute;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100%;
}
.mg-service .image-overlay img {
	width: 100%;
    height: auto;
    vertical-align: top;
    margin-bottom: 0;
    
}

.mg-service .box-content img.title-arrow {
    max-height: 14px;
    margin-bottom: 0;
    margin-right: 10px;
}

.image-border .image-overlay:after, 
.mg-service.image-border .homePreview,
.mg-service.image-border .image-box:after,
.image-border .image-overlay img {
    -moz-border-radius-topleft: 10px;
    -webkit-border-top-left-radius: 10px;
    border-top-left-radius: 10px;
    -moz-border-radius-topright: 10px;
    -webkit-border-top-right-radius: 10px;
    border-top-right-radius: 10px;
}
.mg-service .box-content {
    background-color: #fff;
    min-height: 105px;
    width: 100%;
    margin: 0 0 20px 0;
}
.mg-service .box-content > .inner {
	min-height: 130px;
    border-bottom: 2px solid #136fb8;
    color: #302b7d;
    font-size: 20px;
    display: block;
    padding: 17px 17px 10px 17px;
}
.mg-service .box-content > .inner:hover {
    color: #fff;
    background-color: #136fb8;
    text-decoration: none;
}
.mg-service .box-content .rightarrow {
    background-image: url("images/purplearrow.png");
    background-repeat: no-repeat;
    width: 15px;
    height: 16px;
    float: left;
    margin: 5px 5px 0 0;
}
.mg-service .box-content .des {
    margin: 0px;
    font-size: 12px;
    padding: 10px 17px 10px 17px;
    font-size: 12px;
    color: #6D767C;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
}
.mg-service .box-content h4 {
    font-size: 16px;
    line-height: 29px;
    font-weight: 400;
    margin-bottom: 0;
}
.mg-service .box-content > .inner:hover h4,
.mg-service .box-content > .inner:hover .des {
    color: #fff;
}
.mg-service .box-content > .inner:hover .rightarrow {
    background-image: url("images/whitearrow.png");
}
.hp-product {
    border: 5px solid #fff;
    position: relative;
    height: 100%;
    padding: 0;
    overflow: hidden;
}
.hp-product>div {
    padding: 0;
}
.hp-product-info img {
    margin-bottom: 0;
}
.hp-product-info {
    left: 0;
    right: 0;
    z-index: 9;
    top: -webkit-calc(100% - 135px);
    top: calc(100% - 135px);
    position: absolute;
    padding: 0;
    transition: top 1.5s ease;
    height: 100%;
}
.hp-product-info .grey, .hp-product-info h3 {
    background-color: #4f4f57;
}
.hp-product-info h3 {
    margin-right: 25px;
    margin-left: 25px;
        color: #fff;
    display: inline-block;
    position: relative;
    padding: 20px 25px;
    padding-right: 0px;
    padding-left: 0;
}
.hp-product-info h3 span {
    display: block;
    padding-right: 25px;
    background-color: #4f4f57;
    position: relative;
    z-index: 4;
    height: auto;
    width: auto;
    vertical-align: inherit;
    margin: 0;
}
.hp-product-info h3::after {
    background-color: #fff;
    /*content: "";*/
    display: block;
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 29px;
    z-index: 1;
}
.image-svg a {
    display: block;
    width: 100%;
    height: 100%;
}
.hp-product-excerpt {
    background-color: rgba(28,52,60,.6);
    color: #fff;
    font-weight: 300;
    padding: 25px;
    opacity: 0;
    transition: opacity 1s ease;
    height: 100%;
}
.hp-product-bottom-link {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 20px 25px 30px !important;  
    z-index: 9;
    background-color: #4f4f57;
}
.hp-product-bottom-link .red-link {
    color: #fff;
    background-color: #f01616;
    padding: 10px 20px;
    position: relative;
    border: none;
    box-shadow: 0 0 0;
    font-size: 16px;
}
.hp-product:hover .hp-product-info {
    top: 0;
}
.hp-product:hover .hp-product-excerpt {
    display: block;
    height: 100%;
    opacity: 1;
}
.blue-input-wrap::before, .blue-link::before, .red-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    background-color: rgba(255,255,255,.5);
    -webkit-transition: all .4s;
    -moz-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
    -webkit-transform: scale(.5,1);
    transform: scale(.5,1);
}
.blue-input-wrap:hover::before, .blue-link:hover::before, .red-link:hover::before {
    opacity: 1;
    -webkit-transform: scale(1,1);
    transform: scale(1,1);
}

.mg-service .homePreview {
    background-color: #FFF;
    border: 1px solid #FFF;
    background-size: 100% auto;
    margin: 5px -10px 5px -10px;
    padding: 1px;
    position: relative;
    height: 258px;
    background-repeat: no-repeat;
    background-position: top center;
    box-shadow: 1px 1px 1px #D1D1D1;
    cursor: pointer;
}
.mg-service .homePreview .postCategory {
    color: #FFF;
    background-color: #03B0DB;
    margin: 11px 0 0 12px;
    padding: 6px 12px;
    display: inline-block;
    font-size: 0.85em;
}
.mg-service .homePreview .postTitle {
    background-color: #FFF;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90%;
    z-index: 9;
    padding: 10px 12px;
}
.mg-service .homePreview:hover .postTitle h2,
.mg-service .homePreview:hover .postTitle {
    color: #FFF;
    background-color: #03B0DB;
}
.mg-service .homePreview .postTitle h2 {
    font-size: 1.3em;
    margin: 0 0 0 0;
    padding: 0 0 5px 0;
}