/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/

 
/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */ 
@media only screen and (max-width: 1440px) {
	.qs-btn-item {
		max-width: 190px;
	}

	section.welcome-wrapper::after {
	    content: '';
	    width: 253px;
	    left: -20px;
	    background-size: 100% 100%;
	    height: 183px;
	}

	.fa-img {
		margin-left: -91px;
	}

	.fa-second .fa-img {
		margin-right: -91px;
	}
	.testi-wrap {
		padding-top: 34%;
	}
}

@media only screen and (max-width: 1365px) {
	.nav-left > li {
		margin-right: 60px;
	}

	header .nav2.nav-right > li {
		/*margin-left: 29px;*/
		margin-left: 60px;
	}

	.testi-wrap {
	    padding-bottom: 20px;
	}

	.testi-item p {
		font-size: 18px;
	}

	.cta-item a {
		height: 413px;
	}

	.fa-img {
	    margin-left: -17px;
	}

	.fa-second .fa-img {
		margin-right: -17px;
	}

	.fa-desc p {
		font-size: 15px;
	}

	.nlp-add {
		font-size: 15px;
	}
}

@media only screen and (max-width: 1199px) {
	.nav2 > li > a {
		font-size: 12px;
	}

	#nav .sub-menu, .nav2 .sub-menu {
	    left: 124%;
	}

	.nav-left > li {
	    margin-right: 40px;
	}

	#scroll-down .textwidget,
	#scroll-down {
	    pointer-events: none;
	}

	.sb-qs .qs-select .dropdown-menu.open {
	    left: auto;
	    right: 0;
	}

	#scroll-down ul {
		pointer-events: auto;
	}

	.sb-qs .qs-btn-sub::after,
	.sb-qs .qs-btns.advancewrap a::after {
		left: -131px;
	}

	header .nav2.nav-right > li {
	    margin-left: 40px;
	}

	.qs-btn-sub::after {
		left: -109px;
	}

	.qs-btns.advancewrap a::after {
		left: -82px;
	}

	.qs-btn-sub input, .qs-btns.advancewrap a {
		font-size: 11px;
	}

	.qs-btns.advancewrap a {
	    line-height: 4.2;
	}

	.testi-wrap {
		padding-top: 40%;
	}

	.testi-item p {
	    font-size: 16px;
	    line-height: 26px;
	}

	.testi-btn {
		margin-top: 18px;
	}

	.hp-agent-photo {
		width: calc(((100vw - 848px) / 2) + 100%);
	}

	.welcome-light-blue {
		width: 43.31%;
	}

	.cta-desc {
		font-size: 26px;
	}

	.cta-item a {
	    height: 375px;
	}

	.fa-right {
		max-width: 491px;
	    padding-top: 11px;	
	}

	.aa-title span span {
	    font-size: 41px;
	}

	.nlp-add {
	    font-size: 12px;
	}

	.nlp-item a:hover .nlp-btn > div {
		height: 40px;
	    line-height: 2.9;	
	}

	.nlp-add {
		margin-top: 4px;
	}

	.nlp-desc {
		bottom: 17px;
	}

	.sidebar {
		z-index: 999;
    	position: relative;
	}
} 

/* iPad(portrait) | Galaxy Tab 4(portrait)  */ 
@media only screen and (max-width: 991px) {
	header.header {
	    position: relative;
	    background: #000;
	    text-align: center;
	    padding: 20px 0;
	    margin-top: 52px;
	}

	.git-long textarea {
		padding-right: 113px;
	}

	section.nlp-wrapper {
		padding: 115px 10px 90px;
	}

	section.fa-wrapper {
	    padding: 15px 10px 20px;
	}
	.slideshow-inner .aios-slider.aios-slider-template-default .aios-slider-splide .aios-slider-custom-video canvas {
        min-height: 0 !important;
    }
	.slideshow-inner .cycloneslider-template-video, .slideshow-inner .cycloneslider-slides, .slideshow-inner .cycloneslider-slide {
	    height: 100% !important;
	}

	.cta-item a {
		height: 431px;
	}

	#scroll-down {
		display: none;
	}

	.header-logo.header-center {
		width: 100%;
		text-align: center;
	}

	.header-logo.header-center img {
		margin: 0 auto;
	}

	.header-top {
		display: none;
	}

	section.hp-slideshow {
	    position: relative;
	    width: 100%;
	    height: 100%;
	}

	.slideshow-inner {
	    position: relative !important;
	    height: 100%;
	    width: 100%;
	}

	.slideshow-inner .cycloneslider-template-responsive, .slideshow-inner .cycloneslider-template-responsive .cycloneslider-slide-image, .slideshow-inner .cycloneslider-template-responsive .cycloneslider-slides {
	    width: 100% !important;
	    height: auto !important;
	}

	.nav2 {
		display: none !important;
	}

	.header-logo.header-center {
		display: block;
	}

	.initial-gap {
		display: none;
	}

	section.hp-qs {
	    position: relative;
	    top: 0;
	    transform: translate(0);
	    background: #000;
	    padding-top: 20px;    
	}

	.qs-btn {
	    margin: 0 auto;
	}

	.qs-long {
	    width: 100%;
	    padding: 0;
	    display: block;
	    margin-bottom: 4px;
	}

	.qs-short {
	    width: 50%;
	    padding: 0;
	    margin-bottom: 4px;
	}

	.qs-mid {
	    width: 50%;
		padding: 0;
		margin-bottom: 4px;    
	}

	.qs-left {
		padding-right: 2px;
	}

	.qs-right {
		padding-left: 2px;
	}

	.qs-inner {
	    max-width: 500px;
	    margin: 0 auto;
	}

	.qs-btns.btnsubmit-wrap {
	    width: 100%;
	    display: block;
	    padding: 0;
	    margin-top: 4px;
	}

	.qs-btn-sub::after,
	.qs-btns.advancewrap a::after {
	    left: -473px !important;
	}

	.qs-btn-sub {
		max-width: 100%;
		width: 100%;
	}

	.qs-btns.advancewrap {
	    width: 100%;
	    margin-top: 4px;
	} 

	.qs-btns.advancewrap a::after {
	    left: -473px;
	}

	.slide-smi {
		display: none;
	}

	section.welcome-wrapper {
	    padding-top: 20px;
	}

	.welcome-wrap .row {
	    display: flex;
	    flex-direction: column-reverse;
	    align-items: flex-start;
	}

	.welcome-inner .col-md-6 {
		z-index: 7;
		width: 100%;
	}

	.hp-agent-photo-inner {
		margin-left: 0;
	}

	.welcome-red {
		width: 66.31%;
	}

	.welcome-light-blue {
	    width: 100%;
	}

	.hp-agent-photo {
	    width: 100%;
	    max-width: 400px;
	    margin: 0 auto;
	}

	.testi-wrap {
	    padding-bottom: 20px;
	    max-width: 500px;
	    margin: 0 auto;
	    margin-top: 18px;
		text-align: center;
		padding-top: 0;
	}

	.testi-desc {
		padding: 0;
	}

	.testi-item p {
		margin: 0 auto;
	}

	.sidebar .testi-name-wrap {
		display: none;
	}

	.testi-name-wrap {
	    max-width: 325px;
	    margin-top: 50px !important;
	    margin: 0 auto;
	}

	.testi-btn {
		padding-left: 0;
	}

	.testi-btn a {
	    margin: 0 auto;
	} 

	section.welcome-wrapper::after {
		display: none;
	}

	.cta-item {
	    width: 100%;
	    transform: skew(0);
	    max-width: 571px;
	    display: block;
	    margin: 10px auto;
	}

	.cta-img {
	    transform: skew(0);
	}

	.cta-desc {
		transform: translate(-50%, -50%) skew(0);
	}

	.cta-item:last-child a::before {
		opacity: 1;
	}

	.fa-right {
	    max-width: 100%;
	    margin: 0 auto;
	    text-align: center;
	}

	.fa-img {
	    margin: 0 !important;
	}

	.fa-title::after {
	    width: 100%;
	    left: 50%;
	    transform: translateX(-50%);
	    right: auto;
	}

	.fa-second .fa-title::after {
	    left: 50%;
	    right: auto;
	}

	.fa-wrap .row {
	    margin-bottom: 50px;
	}


	.row.fa-second {
	    display: flex;
	    flex-direction: column-reverse;
	}

	.fa-list a {
	    margin: 0 auto;
	}

	section.git-wrapper {
		background-color: #000;
	}

		section.git-wrapper::before {
			display: none;
		}

	.footernav {
	    flex-direction: column;
	    text-align: center;
	}
	
	.footernav > li {
		margin-bottom: 10px;
	}	

	.qs-btn-sub::after {
	    left: -410px;
	}

	.qs-btns.advancewrap a::after {
	    left: -410px;
	}

	.cta-img {
		right: 0; 
     	margin-left: 0; 
	}

	.cta-item {
		max-width: 571px;
	}

	.aa-title::after {
		display: none;
	}

	.aa-title {
		text-align: center;
	}

	.aa-desc {
		text-align: center;
	}

	.git-title h2 {
		font-size: 38px;
	}
	/* The following are used on inner pages. Please edit carefully. */

	.inner {
	    width: 100%;
	}
	#content-sidebar, #content-full {
	    width: 100%;
	}	
	.outer{
		width: 100%;
		min-width: 100%;
	}
	#content-sidebar #content{
		width: 100%;
	}

	.cta-wrap {
		margin: 0;
	}

	.fa-second .fa-desc {
		text-align: center;
	}
	.agent-holder .render-all-description {
		text-align: center;
	}
	div#ihf-board-disclaimers .ihf-board-disclaimer-text {
	    font-size: 15px;
	}

	#ihf-main-container .ihf-description {
	    font-size: 16px;
	}

	.page-id-27 #inner-page-wrapper .entry.entry-content p {
	    font-size: 17px;
	}

	.safari-true .git-wrap {
		padding: 0 !important;
	}

	.sb-qs .qs-btn-sub::after, .sb-qs .qs-btns.advancewrap a::after {
	    left: 0 !important;
	}

	.qs-btn-sub::after, .qs-btns.advancewrap a::after {
		left: 0 !important;
	}
	
} 

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */ 
@media only screen and (max-width: 767px) {
    .ip-banner .container{
        width: 100%;
    }


	#ihf-main-container .ihf-detail-back-to-results {
	    padding: 0 !important;
	}

	.aios-roadmaps .aios-roadmap-link {
	    margin-bottom: 10px;
	}

	.copyright {
		line-height: 1.5;
	}
}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {
	.qs-btn {
	    flex-direction: column;
	}

	#ihf-main-container .modal-body select {
	    font-size: 12px;
	    padding: 4px;
	}

	.qs-btn-item {
	    max-width: 100%;
	    margin-bottom: 5px;
	}

	.welcome-red {
	    width: 95.31%;
	}

	.git-short {
        width: 100%;
        padding: 0;
        margin-bottom: 18px;
    }

    .git-title h2 {
	    font-size: 27px;
	}

	.cta-item a {
		height: 413px;
	}

	.cta-desc {
	    font-size: 22px;
	}

	.aa-title span {
		font-size: 21px;
	}

	.aa-title span span {
	    font-size: 27px;
	}

	.nlp-title span {
		font-size: 28px;
	}

	.nlp-title span span {
		font-size: 34px;
	}

	.footer-contact {
	    flex-direction: column;
	    text-align: center;
	}
	.footer-contact .textwidget {
	    flex-direction: column;
	}
	.ihf-modal-container .g-recaptcha iframe {
	    transform: scale(.8) translateX(-39px);
	}

	#content .entry-title, #content .archive-title {
	    font-size: 20px;
	    line-height: 1.2;
	}

	.git-btn {
	    position: relative;
	    bottom: -15px;
	    left: 50%;
	    transform: translateX(-50%);
	}

	.git-wrap .wpcf7-response-output {
		    bottom: -56px;
	}

    .git-long textarea {
    	padding: 0;
    }
}

@media print{

    header.header,
    #ihf-main-container .ihf-contiguous-links,
    .ip-banner,
    div#page-bg,
    h1.entry-title,
    aside.sidebar,
    p#breadcrumbs,
    .entry.entry-content > a,
    .addtoany_content,
    div#ihf-leadcapture-btns,
    footer.footer,
    section#content-git{
        display: none!important;
    }

    #content{
        width: 100% !important;
    }

    #ihf-main-container .col-xs-5 {
    width: 41.66666666666667%;
    float: right!important;
    }

}
 
