/* only ipad 1024 and bigger screen landscape screen */
@media only screen and (min-width: 1001px) {
    #mainmenu > ul { display:block !important; }
}

/* only ipad 1024 landscape screen */
@media only screen and (min-width: 1001px) and (max-width: 1024px) {

    .services:after { display:none; }
    #header { position:relative; z-index:9; background:url(../images/bgi/body-bg.jpg); margin:0 -15px; width:auto; }
    #mainmenu, .banner-area { box-shadow:none; }
    .owl-nav .owl-prev, .owl-nav .owl-next { top:50%; margin-top:-26px; }
    .main-banner .wrap { padding:0; }

}

@media only screen and (max-width: 1279px) {

    .wrap { width:auto; padding:0 15px; }
    #mainmenu li a { font-size:14px; padding:0 15px; }
    #mainmenu ul { padding:0; }
    .banner-area { padding:0 !important; }
    .registration { padding:20px 0 20px 20px; }
    .registration h2 { font-size:18px; margin:10px 0 0; font-weight:600; }
    .services .col h3 { font-size:20px; }
    .newsletter label { font-size:24px; font-weight:600; }
    .newsletter input[type="text"] { width:410px; }
    .fmenu { margin:0 0 20px 0; padding:0 0 20px; border-bottom:1px solid #595959; display:block; }
    .footer-social { float:right; }
    .copyright { float:left; margin:0; }
    .fmenu:before, .fmenu:after { content:""; display:table; }
    .fmenu:after { clear:both; }
    .fmenu { zoom:1; }
    .fmenu li:first-child a { padding-left:0; }
    .staff .cols5 .col .staff-contain p{font-size: 0.7em;}

    .entry .alignleft.wp-caption, .entry .alignright.wp-caption { max-width: 60%; }
    img{ max-width: 100%; width:auto; height:auto; }
    .introduction h1 { font-size: 31px; }

}

@media only screen and (max-width: 1000px) {
    /*body { min-width:320px; }*/
    img{ max-width: 100%; width:auto; height:auto; }
    .backtotop { display:none; }
    .registration{ text-align: center; }
    .registration h2 { font-size:16px; margin:13px 0 13px; float: none!important; width: 100%!important; }
    .registration a.button{ display: inline-block!important; float: none!important; }
    .introduction { padding-left:0; }
    .introduction h1 { font-size:23px; margin:10px 0 15px; }
    .services .cols4 { margin:-2% 0 0 -2%; }
    .services .col { width:49%; margin:2% 0 0 2%; }
	.services .col:nth-of-type(3n) { margin-left:0; }
    .newsletter input[type="text"] { width:270px; }
    .newsletter label { font-size:19px; }
    .newsletter { padding:20px 0; }
    .fmenu ul { margin:-13px 0 0; }
    .fmenu li { margin:13px 0 0; }
    #mainmenu ul { display:none; }
    #menu { display:block; }
    #mainmenu ul li { float:none; line-height:normal; padding:0; }
    #mainmenu ul li a { padding:11px 15px; }
    #mainmenu li a:before { display:none; }
    .navtrigger, .subnavtrigger { display:block; color:#2f3030; font-weight:700; text-align:center; line-height:27px; position:absolute; right:7px; width:28px; height:28px; background:#fab702; top:7px; z-index:2; cursor:pointer; }
    #mainmenu ul li { border-top:1px solid #3e3e3e ; }
    #mainmenu ul li ul { position:static; width:auto; }
    #mainmenu ul li ul li a { padding:11px 30px; }
    .owl-nav .owl-prev, .owl-nav .owl-next { bottom:20%; }
    #mainmenu ul li ul li:first-child { border-top:1px solid #363636; }
    #mainmenu ul li ul li { background:#3e3e3e; border-top:1px solid #363636; }
    #mainmenu ul li ul li ul li a { padding:11px 45px; }
    #main .wrap { box-shadow:none; }
    .video-contain { margin-bottom:15px; }
    .services::after { display:none; }
    #header { position:relative; z-index:9; background:url(../images/bgi/body-bg.jpg); margin:0 -15px; width:auto; }
    #mainmenu, .banner-area { box-shadow:none; }
    .owl-nav .owl-prev, .owl-nav .owl-next { top:50%; margin-top:-26px; }
    .main-banner .wrap { padding:0; }
    .modulebox h3 { font-size:18px; margin:0 0 8px; }
    .staff .cols5 .col{width: 23.4375%;}
    .page-template-contact-page .cols2 .col {width: 100%; margin: 0 0 40px 0;}

    .homepage-panels h2 { font-size: 18px; }

    .archive-list-item .col_4of12 { width: 100%; margin: 0; }
    .archive-list-item .col_8of12 { width: 100%; padding: 0;}
    .archive-list .archive-list-item figure { margin-bottom: 20px; }
    .archive-list .archive-list-item .figure-img-cover.box-rectangle { min-height: 0; }

    .header-slogan { font-size: 16px; width: 232px; margin: 22px 0 0 20px; line-height: 1.3; }
}

@media only screen and (min-width: 768px) and (max-width: 1000px) {
    #searchform input[type="text"]{ width: 65%; }
    #searchform input[type="submit"]{ width: 35%;}
}

/*==========================================================================================================*/
@media only screen and (max-width: 767px) {

    .newsletter label { margin:0 0 10px; }
    .video-contain { margin:20px 0 0; float:none; width:auto; }
    .registration h2 { line-height:1.2; }
    .registration a.button { margin-bottom: 10px; }
    .header-top { padding:25px 15px; }
    .owl-nav .owl-prev, .owl-nav .owl-next { -webkit-transform:scale(0.8); transform:scale(0.8); bottom:15%; }
    .owl-nav .owl-prev { left:-5px; }
    .owl-nav .owl-next { right:-5px; }
    .video-contain { margin-bottom:0; }
    #primary { float:none; width:auto; }
    #sidebar { float:none; width:auto; margin-top:20px; }
    .modulebox:last-child { margin:0; }
    .staff .cols5 .col{width: 31.77083333333333%;}
    .header-slogan { display: none;}
    .introduction h1 { margin-top: 40px; }
    .introduction ul { width: auto;  }

}

/*==========================================================================================================*/
/*Max till Cols Breaks*/
@media only screen and (min-width:641px) {
    .same_height_col { padding-bottom: 1000%!important; margin-bottom: -1000%!important; }
}

/* only iphone4 landscape & Potriat 300 by 480*/
@media only screen and (max-width: 640px) {

    #logo { float:none; margin:0 auto 18px; }
    .header-right { float:none; }
    .phone { text-align:center; }
    #post-245 .phone { text-align:left; }
    .user-login { text-align:center; }
    .mobile-wrap{ width: 448px; margin: 0 auto; }
    .services .col h3 { font-size:16px; }
    .footer-social { float:none; margin:0 0 15px; }
    .copyright { float:none; }
    .registration { text-align:center; padding-left:0; }
    .registration h2 { float:none; width:auto; margin:0 0 15px; }
    .header-top { padding:18px 15px; }
    .staff .cols5 .col{width: 48.4375%;}
    .share-buttons a{ float: none; font-size: 0; width: 36px; padding: 0; margin-right: 3px; }

    .homepage-search { margin-top: -190px; }
    .homepage-panels { margin-bottom: 40px; }
    .homepage-panels .col { width:100%; margin-bottom:20px; }
    .homepage-search form input[type="text"] { font-size: 20px; padding-left:4%;}

    .home .header-right .user-login { float: none; margin-bottom: 10px; }
    .header-top .phone { text-align: center;}

    .introduction ul  { margin: 10px 0 0 10px;}
    .introduction ul li { font-size: 20px; line-height: 1.5; padding-left: 40px; background-size: 20px; }

}
/*==========================================================================================================*/
/* only iphone landscape 340 by 478*/
@media only screen and (max-width: 500px) {
    #post-245 .wpcf7-submit{ width: 100%; }
    .registerform{ display: block; overflow-x: scroll; }
    #sidebar .registerform{ display: table; }
    .entry a{ word-break: break-all; }
    .header-right .user-login{ float: none; margin-bottom: 10px; }
    .header-right .search-box{ float: none; }
    .header-right .search-box form #s{ width: 100%!important; }
    .header-right .search-box form #searchsubmit{ float: right; width: 45px; color: transparent!important; background-position: center center; }
    .mobile-wrap{ width: auto; }
}
/*==========================================================================================================*/
/* only iphone portrait 300 by 479*/
@media only screen and (max-width: 479px) {

    .services .col { float:none; margin:20px 0 0; width:auto; display:inline-block;}
    .services .cols4 { margin:-20px 0 0; }
    .newsletter label { font-size:17px; }
    .introduction h1, h1 { font-size:19px; }
    .newsletter input[type="text"] { width:100%; margin:0 0 11px; }
    .fmenu li a { font-size:12px; }
    .fmenu ul { margin:-10px 0 0; }
    .fmenu li { margin:10px 0 0; }
    .fmenu li a:before { height:18px; }
    .registration h2 { font-size:17px; line-height:1.2; }
    .registration a.button { font-size:15px; }
    .registerform th, .registerform td{ font-size: 0.8em; text-align: left; }

}

@media only screen and (max-width: 380px) {
	.no_380 { display: none;}
}

/*==========================================================================================================*/
/* Retina css */
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3 / 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2) {
    .sprites, .sp-after:after, .sp-before:before, .social li a, .venoboxvid:after { background-image:url(../images/bgi/sprites@2x.png); -ms-background-size:184px 108px; background-size:184px 108px;}
}
