/*!
Theme Name: SIP
Theme URI: http://underscores.me/
Author: Peter Wimren & Nihal Mohideen
Author URI: https://www.webdezign.co.uk
Description: Custom made for SIP
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sip
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

* {
    -webkit-overflow-scrolling: touch;
}

body, html {
    overflow-x: hidden;
}

.block.padd.white {
    background-color: #fff;
}
h1, h2.blog-title {
    font-size: 2em;
    font-weight: 200;
    color: #005bbb;
    margin: 0.75em 0 1em;
}

h2.blog-title a {
    color: #005bbb;
}

h1, h2, h3 {
    line-height: 1.2em;
}

#product-development h1 {
    color: #fff;
}

.sliding-bg h1, .sliding-bg h2 {
    font-size: 50px !important;
    -text-shadow: 0 13px 20px rgba(0, 0, 0, 0.4);
    line-height: 1em;
    flex: 0 0 auto;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sliding-bg .slider-box {
    min-height: 150px;
    height: auto;
    width: 30%;
    padding: 20px 15px 20px 15px;
    background-color: #599bbc;
}

.sliding-bg .slider-box p {
    font-size: 25px;
}

#brochures .col.c4 {
    padding: 5px;
    padding-bottom: 10px;
}

#brochures .col.c4 strong {
    height: 2.5em;
}

body.single-post .post-navigation{ clear: both; }
body.single-post .post-navigation .nav-previous{ text-align: left; float: left; width: 40%; }
body.single-post .post-navigation .nav-next{ text-align: right; float: right; width: 40%; }

a.pdf strong {
    line-height: 1em;
}

.owl-stage h1 {
    color: #fff;
}

.teams .title {
    padding-bottom: 5px;
}

.feature-icon {
    vertical-align: middle;
    margin-right: 15px;
    height: 50px;
}

.features {
    text-align: left;
}

section.values {
    background-color: #599bbc;
}

section.values p {
    color: #fff !important;
}

.wp-paginate .current, .wp-paginate .page {
    border: none !important;
}

span.page.current {
    background-color: #003359;
}

div .col.c6 img {
    max-width: 100% !important;
}

.service-container {
    width: 510px;
    height: 260px;
    background-size: cover;
}

.page-id-125 h1 {
    display: none;
}

.page-id-125 section#support {
    padding-top: 0px !important;
}

section#mobile-slides {
    display: none;
}

@media only screen and (min-width: 1440px) {
    section.bg_light.block.padd.service-box {
        height: 400px !important;
    }
}

@media only screen and (min-width: 900px) {
    .feature-box {
        width: 80%;
        height: auto;
        min-height: 300px;
        margin: 0 auto;
    }

    .feature-right {
        padding-left: 5em;
    }

    .news-post {
        width: 70% !important;
        max-width: 740px !important;
    }

    .service-box img {
        margin-top: 95px;
    }

    .service-container {
        width: 100%;
    }


}

@media only screen and (max-width: 1024px) {
    .banner-top.about {
        height: 30% !important;
    }
    .service-container {
        width: 100%;
    }

}

@media only screen and (max-width: 1320px) {   
    .sliding-bg .slider-box {
        margin-left: -50px;
        width: 300px;
    }

    .sliding-bg .container {
        margin-left: 200px;
    }
}

/* Team mobile adpation by David */
#popup .mobile-col {
    display: block;
}
#popup .next {
    display: none;
}

.col.c7.mobile-col {
    padding: 20px;
}

@media only screen and (max-width: 768px) {
    .banner-top.about {
        height: 20vh !important;
    }
    .news-post img {
        width: 95%;
        height: auto;
    }
    .service-container {
        width: 100%;
    }

    .sliding-bg h1, .sliding-bg h2 {
        font-size: 1.5em !important;
        text-align: center !important;
    }

/*     section#desktop-slides {
        display: none;
    } */

    section#mobile-slides {
        display: block;
    }

    .sliding-bg .slider-box {
        min-height: 150px;
        height: 200px;
        width: 100%;
        padding: 20px 20px 20px 20px;
        margin-left: 0px;
        position: absolute;
        top: 400px;
        z-index: 9999;
    }

    .sliding-bg .slider-box h2 {
        text-align: left !important;
    }

    section#home-products {
        -margin-top: 120px;
    }

    .sliding-bg {
        min-height: 600px;
    }

    #slider .owl-controls {
        top: -30px;
    }

    .sliding-bg .slider-box p {
        font-size: 20px;
    }

    .sliding-bg .slider-box h2 {
        font-size: 22px !important;
    }
}

@media only screen and (max-width: 320px) {
    a.nav-toggle {
        margin-top: -57px;
    }
}

@media only screen and (max-width: 768px) {
    .nav-up {
        top: -113px;
    }

    header{
        background: white;
        height: 113px;
        position: fixed;
        z-index: 999;
        top: 0;
        transition: top 0.2s ease-in-out;
        width: 100%;
    }
    .sliding-bg .container {
        margin-left: 0;
        width: 100%;
    }
	    .sliding-bg .slider-box {
        /* min-height: 150px; */
        height: 200px;
        width: 100%;
        padding: 20px 20px 20px 20px;
        margin-left: 0px;
        position: absolute;
        top: auto;
        z-index: 9999;
			        left: 0;
    }
    body{
        overflow: hidden;
    }

    html{
        overflow-x: scroll;
    }

    .bg_gradient {
        background-color: #fff;
    }

    .about, #products-page, .support, .banner-single-product, #support {
        margin-top: 113px;
    }

    .page-id-125 section#support {
        margin-top: 60px;
    }


    .banner-top.support {
        height: 50vh !important;
    } 
}

@media only screen and (min-width: 768px) {
    html {
        height: 100%;
    }
}

/* Search Form */
form#searchform div {
    float: right;
    width: 220px;
    margin-bottom: -15px;
    margin-top: -18px;
    position: relative;
    right: -10px;
}

body.search-results article {
    background: none;
}

@media only screen and (max-width: 1140px){
    form#searchform div {
        float: left;
        width: 100%;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    
    form#searchform input {
        height: 30px !important;
    }
}

@media only screen and (max-width: 768px){
    body.search-results section {
        margin-top: 113px;
    }
}

form#searchform input[type="text"] {
    height: 25px;
    width: 150px;
}
form#searchform input[type="submit"] {
    height: 25px;
    padding: 5px;
    line-height: 0px;
    font-size: 12px;
    top: -1px;
}

.nav-toggle {
    background: url(../sip/images/icons.svg) no-repeat center -160px;
    -webkit-border-radius: 0%;
    -moz-border-radius: 0%;
    border-radius: 0%;
}

.nav-toggle.active:hover, .nav-toggle:hover {
    background-color: transparent !important;
}

@media only screen and (min-width: 1140px){
	.nav-collapse ul > li a {
		height: 60px !important;
	}
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
     /* IE10+ CSS styles go here */
	.sliding-bg .slider-box {
		margin-top: 200px !important;
		margin-left: -250px !important;
	}
	
	ul#menu-main-menu {
		margin-top: -5px;
		padding-left: -100px;
	}
	
	form#searchform {
		margin-top: 5px;
	}
	
	input#searchsubmit {
		margin-top: -15px;
	}
}



.row-flex,
.centered-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.row-flex {
    justify-content: center;
}

.centered-row {
    justify-content: center;
}

.centered-row.one-child {
    justify-content: center;
}

.centered-row.one-child .product-box {
    flex: 0 0 100% !important;
    max-width: 86% !important;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .centered-row.one-child .product-box {
        flex: 0 1 100% !important;
        max-width: 100% !important;
    }
    .row-flex,
    .centered-row {
        flex-direction: column;
        align-items: stretch; /* make sure full width */
    }

    .product-box {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    .overlay-bgs .banner-img {
    height: 200px;
    }
}

.product-box {
    width: calc(33.333% - 20px);
    overflow: hidden;
    text-align: center;
}

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






.overlay-bgs {
    position: relative;
}

.banner-img {
    width: 100%;
    height: 500px; /* adjust as needed */
    object-fit: cover;
    display: block;
}

/* This is the semi-transparent overlay */
.overlay-bgs .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.banner-single-product .container {
    display: block !important;
}

.banner-single-product{
    background-color: #f7f7f7;
}