.row-footer2 {
    display: none;
}

/*padding left fixes for pull right texts*/
@media all and (min-width: 992px) { 
    .ms-ems .ms-principle .ms-principle-column,
    .ba-ois .ba-ois-column {
        padding-left: 3em;
    }

    .mp-core-values .slider-image {
        max-width: 80%;
    }
}
@media all and (min-width: 768px) { 
    .ms-manufacturing .row {
        padding-bottom: 7em;
    }
    .ms-manufacturing .align-vertical.pull-right {
        padding-left: 3em;
    }
}

/* Desktop view styles */
@media only screen and (min-width: 1224px) {
    .overlay2 .menu li.has-dropdown {
        position: relative;
        /* Ensure the dropdown is relative to the parent item */
    }

    .overlay2 .menu li.has-dropdown .subnav {
        position: absolute;
        /* Position submenu relative to the parent item */
        top: 100%;
        /* Position directly below the parent menu item */
        left: 0;
        /* Align to the left */
        width: 100%;
        /* Ensure the submenu matches the width of the parent item */
        background: #333;
        /* Set background color */
        display: none;
        /* Initially hide the submenu */
        z-index: 1000;
        /* Ensure submenu appears on top */
    }

    .overlay2 .menu li.has-dropdown:hover .subnav {
        display: block;
        /* Show submenu on hover */
    }

    .overlay2 .menu li.has-dropdown .subnav li a {
        font-size: 1.2em;
        /* Font size for submenu items */
        color: #cccccc;
        /* Lighter color for submenu items */
        padding: 10px 15px;
        /* Add padding */
        text-align: left;
        /* Align text to the left */
    }

    .overlay2 .menu li.has-dropdown .subnav li {
        border-bottom: 1px solid #444;
        /* Add border between submenu items */
    }

    .overlay2 .menu li.has-dropdown .subnav li:last-child {
        border-bottom: none;
        /* Remove the border for the last submenu item */
    }
}



@media all and (max-width: 1999px) { 
    .mp-person.pb10 {
        padding-top: 0;
    }
    .mp-core-values .slider-content {
        padding: 4%;
    }
    .mp-core-values .slider-content h4 {
        font-size: 2.25em;
        line-height: 1.5em;
    }
}
@media (max-width: 767px) {
    footer .footer-left {
        text-align: center;
    }
}
@media (max-width: 767px) {

    footer .footer-left,
    footer .footer-right {
        float: none;
        padding-left: 5%;
    }
}




@media all and (max-width: 991px) { 
    /*qa arrow cut*/
    .arrow-cut,
    .hero-slider .flex-control-nav {
        display: none;
    }

    /*qa company timeline*/
    #timeline .item .content-box {
        width: 140%;
    }
    #timeline .item .content-box:before {
        left: -28%;
    }
    #timeline .item.first .content-box:before {
        left: -43%;
    }
    #timeline .item.last .content-box:before {
        right: -43%;
    }
}





@media all and (max-width: 767px) { 
    /*general*/
    h4 {
        font-size: 2.25em;
        line-height: 1.25em;
    }
    .btn-blue {
        font-size: 0.9em;
        padding: 14px 35px;
    }

    .row-footer {
        display: block;
        text-align: center;
    }
    .row-footer2 {
        display: block;
        text-align: center;
    }
    footer .footer-left,
    footer .footer-right {
        float: none;
        padding-left: 5%;
        text-align: center;
    }
    footer .footer-left {
        text-align: center;
    }

    .breadcrumb-bottom {
        padding-top: 50px;
        padding-bottom: 32px;
    }
    .breadcrumb-bottom h4 {
        font-size: 2em;
        line-height: 1.25em;
    }
    .breadcrumb-bottom p {
        font-size: 1.15em;
        line-height: 1.5em;
    }

	/*slider*/
    .hero-slider .slides li h1 {
        font-size: 3em;
        line-height: 1em;
    }
    .hero-slider .slides li p {
        font-size: 1.25em;
    }
    .hero-slider .slides li h1 .header-underlined:before {
        height: 8px;
        bottom: 14px;
    }

    /*welcome*/
    .milestones .container {
        padding-top: 40px;
        padding-bottom: 40px !important;
    }
    .milestones h3 {
        font-size: 3em;
        line-height: 1.25em;
    }
    .milestones p {
        font-size: 1.25em;
    }
    .milestones .features > div:not(:last-child) {
        padding-bottom: 64px;
    }

    /*vcm & ois*/
    .home-vcm h1, .home-ois h1, .ba-vcm h1, .ba-ois h1 {
        font-size: 3.5em;
        line-height: 1.25em;
        margin-top: 32px;
    }
    .home-vcm span.subtitle, .home-ois span.subtitle, .ba-vcm span.subtitle, .ba-ois span.subtitle {
        font-size: 1em;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .home-vcm span.subtitle:before, .home-ois span.subtitle:before, .ba-vcm span.subtitle:before, .ba-ois span.subtitle:before {
        width: 20%;
    }
    .home-vcm p, .home-ois p, .home-vcm p, .home-ois p {
        font-size: 1.15em;
        margin-bottom: 12px;
    }
    .home-vcm {
        padding-bottom: 0;
    }
    .home-ois {
        padding-bottom: 125px;
    }

    /*recent news*/
    .home-recent-news {
        padding-bottom: 44px;
    }
    .home-recent-news .title h4 {
        font-size: 2.5em;
    }
    .home-recent-news .title p {
        font-size: 1.15em;
    }
    .home-recent-news .read-all {
        margin-top: 30px;
    }
    .home-recent-news .read-all a {
        font-size: 1.25em;
    }

    /*join our team*/
    .home-join-our-team > .container {
        padding: 3em 1em;
    }
    .home-join-our-team h1 {
        font-size: 3em;
        line-height: 1.25em;
        margin-bottom: 0.5em;
    }
    .home-join-our-team p {
        font-size: 1.25em;
        margin-bottom: 1em;
    }
    .home-join-our-team a {
        font-size: 1.25em;
    }

    /*management philosophy person*/
    .mp-person h4 {
        font-size: 2em;
        line-height: 1.5em;
        margin: 1.5em 0 1em;    
    }
    .mp-person h5 {
        font-size: 1.5em;
        line-height: 0.5em;
    }
    .mp-person h6 {
        font-size: 1.25em;
    }
    .mp-person p {
        font-size: 1.25em;
        line-height: 1.5em;
        margin-bottom: 25px;
    }
    .mp-person .mp-person-about:before {
        bottom: 32px;
    }
    .mp-person.pb10 {
        padding-top: 16px;
        padding-bottom: 75px;
    }
    .mp-person:not(.pb10) {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    /*management philosophy mission vision*/
    .mp-mission-vision .features > div:first-child {
        margin-bottom: 2em;
    }
    .mp-mission-vision h4 {
        font-size: 2.25em;
        margin: 0.5em 0;
        line-height: 1.5em;
    }
    .mp-mission-vision p {
        font-size: 1.15em;
        line-height: 1.5em;
    }

    /*management philosophy core values*/
    .mp-core-values .slider-core-values {
    	position: relative;
    	height: 100%;
    }
    .mp-core-values .slider-core-values li {
    	height: 100%;
    }
    .mp-core-values .slider-core-values .slider-content {
    	width: 90%;
    	right: 5%;
    }
    .mp-core-values .slider-content h4 {
    	font-size: 1.9em;
    }
    .mp-core-values .slider-content span {
	    top: initial;
	    bottom: -3%;
	    right: initial;
	    left: -7%;
    }
    .mp-core-values .slider-core-values .flex-direction-nav {
	    display: inline-block !important;
    }
    .mp-core-values .flex-direction-nav .flex-prev {
	    bottom: 7%;
    	right: 30%;
    }
    .mp-core-values .flex-direction-nav .flex-next {
    	bottom: 7%;
    	right: 5%;
    }

    /*management philosophy organizational culture*/
    .mp-org-culture h4 {
        font-size: 2.25em;
        line-height: 1.25em;
        margin: 0.5em 0 1em;
    }
    .mp-org-culture .container .row:last-child > div:first-child {
        margin-bottom: 2em;
    }
    .mp-org-culture .blog-snippet-1 h2 {
        font-size: 1.25em;
        margin: 1em 0;
        line-height: 1.5em;
    }
    .mp-org-culture .blog-snippet-1 p {
        font-size: 1em;
        line-height: 1.5em;
    }

    /*management systems manufacturing and production*/
    .ms-manufacturing .row {
        padding-bottom: 6em;
    }
    .ms-manufacturing h4 {
        font-size: 1.5em;
        line-height: 1.75em;
    }
    .ms-manufacturing .align-vertical {
        margin-top: 2em;
    }
    .ms-manufacturing .col-xs-11 {
        float: left! important;
    }
    .ms-manufacturing li {
        margin-bottom: 10px;
    }

    /*management systems safety management system*/
    .ms-safety {
        padding-bottom: 0;
    }
    .ms-safety .feature-icon-small:first-child {
        margin-bottom: 50px;
    }
    .ms-safety .feature-icon-small h4 {
        font-size: 2em;
        line-height: 1.5em;
        margin-bottom: 20px;
    }
    .ms-safety p, .ms-ems p, .ms-qms p {
        font-size: 1.25em;
        line-height: 1.5em;
    }
    .ms-safety .row > div:not(:last-child) {
        border: 0;
    }

    /*management systems environmental management system*/
    .ms-ems .ms-principle > div:last-child {
        margin-top: 5em;
    }
    .ms-ems h5 {
        font-size: 2em;
        line-height: 1em;
    }

    /*management systems quality management system*/
    .ms-qms .row > div:last-child {
        margin-top: 5em;
    }

    /*business areas slider gallery*/
    .gallery-slider-carousel .pull-right {
    	float: none !important;
    }
    .gallery-carousel .flex-viewport {
    	width: 60%;
    }
    .gallery-slider-carousel .gallery-carousel-sync-vcm .flex-viewport {
    	left: 40%;
    }
    .gallery-slider-carousel .flex-direction-nav {
	    display: inline-block !important;
    }
    .gallery-slider-carousel .flex-direction-nav a {
    	width: 16%;
    }
    .gallery-carousel-sync-vcm .flex-direction-nav .flex-next {
	    left: 20%;
    }
    .gallery-carousel-sync-ois .flex-direction-nav .flex-prev {
    	right: 20%;
    }
    .page-business-areas .flex-direction-nav a:before {
	    font-size: 2em;
    	top: 12px;
    }
    .ba-vcm h1, .ba-ois h1 {
	    font-size: 2.25em;
    }
    .ba-vcm {
    	padding-bottom: 0;
    }
    .ba-vcm span.subtitle, .ba-ois span.subtitle,
    .ba-vcm p, .ba-ois p {
    	font-size: 1.25em;
    }

    /*contact*/
    .page-contact .breadcrumb-top,
    .page-news .breadcrumb-top {
        padding-bottom: 32px;
    }
    .page-contact .contact-section {
        background: #f9fafa;
        padding: 1.5em;
    }
    .page-contact .contact-section > .container {
        margin-top: 1em;
        margin-bottom: 2em;
    }
    .page-contact .contact-section .contact-form-inside {
        padding: 3em 2em 1.5em;
    }
    .page-contact .contact-section .contact-form-inside h4 {
        margin-bottom: 0.5em;
    }
    .page-contact .contact-section .contact-form-description {
        font-size: 1.25em;
        line-height: 1.5em;
    }
    .page-contact .contact-section .contact-form {
        padding-top: 1.5em;
    }

    /*news updates*/
    .news-section {
        padding-bottom: 0;
    }
    .page-news .news-section > .container {
        margin-top: 1em;
        margin-bottom: 2em;
        padding: 2.5em;
        background: #ffffff;
    }
    .news-section .news-list-item > div:first-child,
    .news-section .news-menu-container {
        padding: 0;
    }
    .news-section .breadcrumb-container {
        padding: 30px 20px 0;
        background: #fafafa;
    } 
    .page-news .news-section-breadcrumb p {
        padding-bottom: 1em;
    }
    .news-section > .container > .row:nth-child(2) > div:first-child {
        padding: 0 35px;
        background: #fafafa;
    }
    .news-list-item > div:last-child {
        padding: 1.5em !important;
    }
    .page-news .pagination-container ul {
        font-size: 1em;
    }
    .page-news .pagination-container ul li a {
        padding: 0 5px;
    }
    .news-list {
        margin-bottom: 22px;
    }
    .page-news .pagination-container ul {
        margin-top: 0;
    }

    /*news details*/
    .page-news .news-content .addthis_inline_share_toolbox {
        float: left;
    }




    /*row eq height fixes*/
    .row-eq-height.features,
    .row-eq-height.articles,
    .ms-safety .row-eq-height,
    .contact-section .row-eq-height,
    .news-section  .row-eq-height {
        display: block;
    }

    /*breadcrumb top*/
    .breadcrumb-top {
        padding-top: 32px;
        padding-bottom: 32px;    
    }
    .breadcrumb-top h3 {
        font-size: 2.5em;
        line-height: 1.5em;    
    }
    .breadcrumb-top p {
        font-size: 1.25em;
    }
}





@media all and (max-width: 480px) { 
    
}









/* 
###################################################################
### OVERLAY MENU
###################################################################
*/
@media only screen and (max-width: 1223px) and (min-width: 320px) {
    .has-dropdown .subnav {
        visibility: visible;
        opacity: 1;
        transform: translateY(0%);
        transition-delay: 0s, 0s, 0.3s;
    }
    .top-bar {
        position: fixed;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    }
    .top-bar > .container {
        position: relative;
    }
	.top-bar .logo.logo-wide {
		margin: 0;
	}
	.simple-bar .nav-menu {
	    padding: 20px 0;
	}
	.simple-bar .nav-menu > div:nth-child(2) {
		display: none;
	}
	.mobile-toggle {
	    font-size: 32px;
	    display: block;
	    position: absolute;
	    top: 15px;
	    right: 16px;
	    cursor: pointer;
	    color: #333333;
	}
	.mobile-toggle .icon_menu:before {
		color: #00a9df;
    	font-weight: bold;
	}
}

@media screen and (max-width:48em) {
	.wrap ul.wrap-nav>li {
		width:100%;
		padding:20px 0;
		border-bottom:1px solid #575757;
	}
	.wrap ul.wrap-nav {
		padding:30px 0px 0px;
	}
	nav ul {
		opacity:0;
		visibility:hidden;
	}
	.social {
		color:#c1c1c1;
		font-size:25px;
		padding:15px 0;
	}
	.social-icon {
		width:100%;
		height:50px;
		background:#fff;
		color:#333;
		display:block;
		margin:5px 0;
	}
}
/*.content {
	width:100%;
	margin-top:200px;
	font-size:20px;
	color#333;
	text-align: center;
}*/
.overlay2 {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    overflow-x: hidden;
    transition: 0.5s;
    background: #1a1a1a;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;

    margin-top: 1em;
    top: 10em;
}

.overlay2 a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
    z-index: 2;
}

.overlay2 a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay2 .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;

    font-size: 3em;
    color: #ffffff;
    right: 5%;
}

.overlay-open {
	width: 100%;
}

.overlay-open .overlay-content a {
    position: relative;
    z-index: 2;
}

.overlay-body {
	overflow: hidden;
}

.overlay-content .menu {
	top: 4em;
	padding-bottom: 2em;
}

.overlay-content .menu li {
    padding-bottom: 8px;
    margin-bottom: 8px;
    float: none;
    margin-right: 0;
}

.overlay-content .menu > li:not(:active):not(:last-child) {
	border-bottom: 1px solid #666666;
}
.overlay-content .menu > li.active {
	border-bottom: 0 !important;
}
.overlay-content .menu > li.active a {
	border-bottom: 2px solid #00a9df;
	padding-bottom: 16px;
}

.overlay-content .menu li a {
    color: #ffffff;
    font-size: 1.5em;
    text-transform: capitalize;
    font-weight: 500;
    letter-spacing: 0;
    padding-bottom: 8px;
}

.overlay-content .menu li.has-dropdown > a:hover {
	color: #ffffff;
}
.overlay-content .menu li.has-dropdown .subnav {
	display: none;
	/*visibility: hidden;*/
}
.overlay-content .menu li.has-dropdown .subnav {
	/*display: block;*/

    min-width: auto;
    width: auto;
    
    /*transition: top 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);*/
    /*visibility: visible;*/
}
.overlay-content .menu li.has-dropdown .subnav:before,
.overlay-content .menu li.has-dropdown:after {
	display: none;	 
}

.overlay-content .menu li.has-dropdown .subnav li {
    border-bottom: 0;
}
.overlay-content .menu li.has-dropdown .subnav li a {
    font-size: 1em;
    padding: 1em !important;
}

.overlay-content .menu li.has-dropdown .subnav.subnavhidden  {
	overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    -moz-transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}
.overlay-content .menu li.has-dropdown .subnav.subnavopen {
	-moz-transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-transition-timing-function: ease-in;
    -webkit-transition-timing-function: ease-in;
    -o-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
    max-height: 200px;
    overflow: hidden;
}
.overlay-content .social-icons {
	display: inline-block;
    padding: 5em 0 2em;
    text-align: center;
}
.overlay-content .social-icons li {

}
.overlay-content .social-icons li a {
    font-size: 1em;
    color: #cccccc;
}









/* #################################### */
/* PHONE SPECIFICS
/* #################################### */

/*iPhone 6*/
@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 667px) {
    /*business areas gallery carousel*/
    .page-business-areas .flex-direction-nav a {
        top: 31%;
    }
    .page-business-areas .flex-direction-nav a:before {
        top: 17px;
    }
    .page-business-areas .flex-direction-nav .flex-nav-next a:before {
        left: 12px;
    }



    /*company timeline*/
    #timeline .item .content-box {
        width: 190%;
    }
    #timeline .item .content-box:before {
        left: -48%;
    }
    #timeline .item.first .content-box:before {
        left: -58%;
    }
    #timeline .item.last .content-box:before {
        right: -58%;
    }
}



/*iPhone 5*/
@media screen and (device-aspect-ratio: 40/71) {
    /*nav menu*/
    .overlay-content {
        top: 5em;
    }
    .overlay-content .menu li.has-dropdown .subnav.subnavopen {
        left: -60%;
    }
    .overlay-content .menu li.has-dropdown .subnav li a {
        font-size: 1.15em;
    }
    .overlay-content .menu li.has-dropdown .subnav li.active a {
        color: #00a9df;
    }
}
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) {
    /*core values*/
    .mp-core-values .slider-content {
        height: 72%;
    }
    .mp-core-values .slider-content h4 {
        font-size: 1.65em;
    }
    .mp-core-values .slider-content p {
        font-size: 20px;
        line-height: 30px;
    }
    .mp-core-values .flex-direction-nav .flex-prev,
    .mp-core-values .flex-direction-nav .flex-next {
        bottom: -4%;
    }



    /*business areas gallery carousel*/
    .gallery-slider-carousel .flex-direction-nav a {
        width: 18%;
        height: 50%;
    }
    .page-business-areas .flex-direction-nav a {
        top: 29%;
    }
    .page-business-areas .flex-direction-nav a:before {
        top: 16px;
    }
    .gallery-carousel-sync-vcm .flex-direction-nav .flex-prev {
        left: 0;
    }
    .gallery-carousel-sync-ois .flex-direction-nav .flex-next {
        right: 0;
    }
}



/*Samsung Galaxy S4*/
@media screen and (device-width: 360px) and (device-height: 640px) and (-webkit-device-pixel-ratio: 3) {
    .gallery-slider-carousel .flex-direction-nav a {
        width: 16%;
    }
    .mp-core-values {
        padding-bottom: 100px;
    }
    .mp-core-values .flex-direction-nav .flex-prev, 
    .mp-core-values .flex-direction-nav .flex-next {
        bottom: -6%;
    }
}



/*Lenovo*/
@media screen and (device-width: 600px) and (device-height: 1024px) {
    /*Nav*/
    .overlay-content .menu li.has-dropdown .subnav li a {
        font-size: 1.25em;
    }

    /*VCM and OIS*/
    .home-vcm span.subtitle:before, 
    .home-ois span.subtitle:before {
        width: 10%;
    }

    /*Core values slider*/
    .mp-core-values {
        padding-bottom: 0;
    }
    .mp-core-values .slider-content {
        height: 43%;
        top: 25%;
        padding: 6%;
        width: 80% !important;
        right: 10% !important;
    }
    .mp-core-values .flex-direction-nav .flex-prev, 
    .mp-core-values .flex-direction-nav .flex-next {
        bottom: 22%;
    }
    .mp-core-values .flex-direction-nav .flex-prev {
        right: 20%;
    }

    /*Org Chart*/
    .page-company-information .org-container h6 {
        padding: 1em;
    }
    ol.organizational-chart > li ol > li:last-of-type:after {
        height: 66%;
    }
    ol.organizational-chart > li > ol > li:last-of-type:after {
        height: 9.7%;
    }

    /*Gallery carousel*/
    .gallery-slider-carousel .flex-direction-nav a {
        width: 12%;
    }
    .page-business-areas .flex-direction-nav a:before {
        top: 20px;
    }
    .gallery-carousel-sync-vcm .flex-direction-nav .flex-prev {
        left: 6.5%;
    }
    .gallery-carousel-sync-ois .flex-direction-nav .flex-next {
        right: 6.5%;
    }

    /*News Updates*/
    .page-news .news-list .news-list-item:nth-child(odd) > div:nth-child(even),
    .page-news .news-list .news-list-item:nth-child(even) > div:nth-child(even) {
        padding: 1.6em;
    }
}



/*Sony XPeria*/
@media screen and (device-width: 480px) and (device-height: 854px) {
    /*Core values slider*/
    .mp-core-values {
        padding-bottom: 0px;
    }
    .mp-core-values .slider-content {
        height: 45%;
    }
    .mp-core-values .flex-direction-nav .flex-prev, 
    .mp-core-values .flex-direction-nav .flex-next {
        bottom: 20%;
    }
    .mp-core-values .flex-direction-nav .flex-prev {
        right: 23%;
    }

    /*Business areas*/
    .gallery-slider-carousel .flex-direction-nav a {
        width: 14%;
        top: 35%;
    }
    .gallery-carousel-sync-vcm .flex-direction-nav .flex-prev {
        left: 5%;
    }
    .gallery-carousel-sync-ois .flex-direction-nav .flex-next {
        right: 5%;
    }
}


/*iPhone 6 specific*/
@media screen and (device-width: 414px) and (device-height: 736px) {
    .gallery-slider-carousel .flex-direction-nav a {
        width: 14%;
    }
    .gallery-carousel-sync-vcm .flex-direction-nav .flex-next {
        left: 16%;
    }
    .gallery-carousel-sync-ois .flex-direction-nav .flex-prev {
        right: 16%;
    }
    .gallery-slider-carousel .flex-direction-nav a.flex-next:before {
        /*display: none;*/
        left: initial;
        right: 10px;
    }
}
