/* General Styling */
a.item-title:not([href]) {text-decoration: none !important; }

section.admin-link {
    margin-left: -20px;
    border-bottom: 1px solid #ddd;
    padding: 5px 20px 10px 10px !important;
}

.admin-link .fa {
    margin-right: 10px;
}

.homepage-middle .admin-link .fa {
    margin: auto 5px 0 10px;
    font-size: 20px;
    font-weight: normal;
}


.id7-page-title {
    display:none;
}

/* Grid Styling */
.flex-grid {
    display: flex;
    height: 585px;
    padding: 5px;
    flex-wrap: wrap;
}

.col-left {
    flex: 1;
    padding: 5px;
    width: 70%;
    height: 100%;
}

.col-right {
    padding: 5px;
    height: 100%;
    width: 30%;
}

.col-left .left-slider {
    height: 100%;
}

.col-right .top {
    height: 33.3%;
    padding-bottom: 10px;
}

.col-right .middle {
    display: flex;
    height: 33.3%;
    padding-bottom: 10px;

}

.col-right .bottom {
    display: flex;
    height: 33.3%;
}

.col-left .inner, .col-right .inner {
    width: 100%;
    height: 100%;

}

.col-left .left-slider .inner {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #ddd;

}

.col-left .left-slider .inner .grid-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px 30px 30px 15px;
    display: inline-block;
    background: -moz-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 15%, rgba(0, 0, 0, 0.75) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, transparent), color-stop(15%, rgba(0, 0, 0, 0.40)), color-stop(100%, rgba(0, 0, 0, 0.75)));
    background: -webkit-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 30%, rgba(0, 0, 0, 0.75) 100%);
    background: -o-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 15%, rgba(0, 0, 0, 0.75) 100%);
    background: -ms-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 15%, rgba(0, 0, 0, 0.75) 100%);
    background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.40) 15%, rgba(0, 0, 0, 0.75) 100%) filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
}

.col-right .top .inner {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #ddd;


}

.col-right .middle .inner {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #ddd;

}

.col-right .bottom .inner {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #ddd;

}

.col-right .top .inner .grid-title, .col-right .middle .inner .grid-title, .col-right .bottom .inner .grid-title {
    width: 100%;
    bottom: 0;
    position: absolute;
    padding: 30px 20px 20px 20px;
    display: inline-block;
    background: -moz-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 30%, rgba(0, 0, 0, 0.75) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, transparent), color-stop(30%, rgba(0, 0, 0, 0.40)), color-stop(100%, rgba(0, 0, 0, 0.75)));
    background: -webkit-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 30%, rgba(0, 0, 0, 0.75) 100%);
    background: -o-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 30%, rgba(0, 0, 0, 0.75) 100%);
    background: -ms-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 30%, rgba(0, 0, 0, 0.75) 100%);
    background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.40) 30%, rgba(0, 0, 0, 0.75) 100%) filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
}

.grid-title h2 {
    font-size: 1.5em;
    color: #fff;
    text-shadow: 2px 2px #000;
}


/*Slider styling */

* {	/* Fixes issue with slider container going full width */
    min-width: 0;
    min-height: 0;
}

.col-left .left-slider {
    height: 100%;
}

.col-left  .slider, .slick-list, .slick-track, .slick-slide, .slick-slide>div, .slider-inner {
    height: 100%;
    position: relative;
}

.slider .slider-inner {
    background-size: cover;
    background-position: center;
}

.slick-slide .grid-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px 30px 25px 15px;
    display: inline-block;
    background: -moz-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 15%, rgba(0, 0, 0, 0.75) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, transparent), color-stop(15%, rgba(0, 0, 0, 0.40)), color-stop(100%, rgba(0, 0, 0, 0.75)));
    background: -webkit-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 30%, rgba(0, 0, 0, 0.75) 100%);
    background: -o-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 15%, rgba(0, 0, 0, 0.75) 100%);
    background: -ms-linear-gradient(top, transparent 0, rgba(0, 0, 0, 0.40) 15%, rgba(0, 0, 0, 0.75) 100%);
    background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.40) 15%, rgba(0, 0, 0, 0.75) 100%) filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
}

.slick-arrow {
    color: transparent;
    background-position: center;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-color: rgba(221, 221, 221, 0.8);
    border: none;
}

.slick-previous .fa-chevron-right {
    color: rgba(0, 0, 0, 0.8);
    font-weight: bold;
    font-size: 1.7em;
    margin: 5px 0 0 5px;
}



.slick-next .fa-chevron-left {
    color: rgba(0, 0, 0, 0.8);
    font-weight: bold;
    font-size: 1.7em;
    margin: 5px 0 0 -5px;

}

.slick-previous {
    right: 15px;
}

.slick-next  {
    color: rgba(221, 221, 221, 0.8);
    left: 15px;
}

/* Dots */
.slick-dotted.slick-slider{
    margin-bottom: 30px;
}

.slick-dots{
    position: absolute;
    bottom: 15px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.slick-dots li
{
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
    border: 2px solid #fff;;
    border-radius: 50%;
}


.slick-dots li.slick-active  {
    background: #fff;

}

.slick-dots li button {
    display: none;

}



.slick-dots li:hover,  .slick-dots li:focus {
    background: #fff;
}



/* Homepage middle section */

section.homepage-middle {
    padding-top: 30px;
}

.homepage-middle  .box-grey h3 {
    color: #511c6c;
    margin-bottom: 25px;
}


.homepage-middle  .box-grey {
    padding: 25px;
}

.homepage-middle .box-shadow.ppe-link {
    color: #fff;
    font-size: 1.4em;
    background-color: #40434A;
    padding: 25px 0;
}

.homepage-middle .ppe-news-container .news-title h4 {
    font-size: 1.2em;
}

.homepage-middle .ppe-news-item {
    margin-bottom: 20px;
}

.homepage-middle .vertical-align .btn {
    position: absolute;
    bottom: 14px;
}



/* Custom box styles */
.box-grey {
    background: #f4f4f4;
    padding: 20px;
    margin-bottom: 20px;
}

.box-shadow {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #DEDEDE;
    box-shadow: 0 1px 1px #EFEFEF;
    -webkit-box-shadow: 0 1px 1px #EFEFEF;
    -moz-box-shadow: 0 1px 1px #EFEFEF;
}

/* Vertical align buttons on boxes */

.vertical-align {
    float: none;
    display: table-cell;
    vertical-align: top;
    position: relative;
}

.vertical-align .btn {
    position:absolute;
    bottom:40px
}

@media only screen and (max-width:768px) {
    .vertical-align {
        display:block
    }
}


/* Responsive layout */
@media (max-height: 768px) {
    .flex-grid {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .flex-grid {
        height: 375px;
    }
    .col-left, .col-right{
        height: 100%;
    }

    .slick-arrow {
        top: 10%;
    }
}


@media (max-width: 768px) {
    .slick-arrow {
        top: 10%;
    }

    .slick-dots {
        bottom: 15px;}


    .flex-grid {
        display: block;
        height: 800px;
    }
    .col-left {
        height: 40%;
        width: 100%;
    }

    .col-right {
        height: 60%;
        width: 100%;
    }

    #main section.full-width {
        padding: 35px 10px 10px 10px;
    }
}