@media only screen and (max-width: 992px) {
    #mobile_menu {
        display: block;
        top: 50%;
        transform: translateY(-50%);
    }

    #desk_nav {
        display: none !important;
    }

    #header {
        min-height: 120px;
    }

    #header-container {
        padding-bottom: 15px;
    }

    #header-container .logo {
        height: 95px;
        position: relative;
        z-index: 5000;
        max-width: 100%;
        margin: 0 auto;
    }

    #header-container .logo img {
        display: block;
        height: 100%;
        margin: 0 auto;
        width: auto;
    }

    #mobinavmenuicon {
        width: 50px;
        margin: 5px;
    }

    #mobinavmenuiconphone {
        float: right;
        width: 50px;
        margin: 5px;
    }

    .mobileheadericon {
        display: block;
        height: 60px;
        /* width:60%; */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0px;
        z-index: 5001;
    }

    .mobileheadericon a:nth-child(2) {
        padding-right: 5px;
    }

    #socialicons {
        display: none;
    }

    /* the menu system */
    .scrollmenu ul {
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

    .scrollmenu ul li {
        color: #FFF;
        padding: 5px;
        font-size: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-right: 2px #FFF solid;
        border-bottom: 1px #FFF solid;
        float: left;
        background-color: #335A7F;
        width: calc(100% - 10px);
    }

    .scrollmenu ul li a {
        color: #FFF;
        text-decoration: none;
    }

    .scrollmenu li:hover {
        background-color: #4C88BF;
    }

    .scrollmenu ul li ul {
        display: none;

    }

    .scrollmenu ul li:hover ul {
        display: list-item;
        /*   position: absolute; */
        margin-top: 14px;

        width: 100%;
    }

    .scrollmenu ul li:hover ul li {
        float: none;
        background-color: #335A7F;
    }

    .scrollmenu ul li ul li:hover {
        float: none;
        background-color: #66B5FF;
    }

    .navigation {
        width: calc(100% - 20px);
        position: relative;
    }

    .navigation div.subnavigation {
        display: none;
        position: relative;
    }

    .navigation div.subnavigation.left_space {
        margin-left: 20px;
    }

    .header {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    #desk_nav {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    .common-carousel .name {
        margin-top: 10px;
    }

    #sub-banner .banner-text .block {
        padding: 15px !important;
        max-width: 100%;
    }

    #sub-banner .banner-text .block h1 {
        padding-bottom: 20px !important;
        font-size: 200% !important;
        font-weight: 400 !important;
        line-height: 1.25em !important;
    }

    #sub-banner .banner-text .block h2 {
        font-size: 24px !important;
        max-width: 100%;
        margin: 0 15px !important;
    }

    #menu-overlay {
        cursor: url(i/curser.png), crosshair;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9999;
        opacity: 0;
        height: 0;
        -webkit-transition: opacity .4s ease .8s, height 0s ease 1.2s;
        -o-transition: opacity .4s ease .8s, height 0s ease 1.2s;
        transition: opacity .4s ease .8s, height 0s ease 1.2s;
    }

    .show-menu #menu-overlay {
        top: 0;
        opacity: 1;
        height: 100%;
        -webkit-transition: height 0s ease 0s, opacity .4s ease 0s;
        -o-transition: height 0s ease 0s, opacity .4s ease 0s;
        transition: height 0s ease 0s, opacity .4s ease 0s;
    }

    #side-panel {
        position: fixed;
        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,6d5e5e+100 */
        background: #000000;
        /* Old browsers */
        background: -moz-linear-gradient(left, #000000 0%, #6d5e5e 100%);
        /* FF3.6-15 */
        background: -webkit-linear-gradient(left, #000000 0%, #6d5e5e 100%);
        /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to right, #000000 0%, #6d5e5e 100%);
        /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#6d5e5e', GradientType=1);
        /* IE6-9 */
        
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 99999;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        -webkit-transition: transform .3s ease-out .4s;
        -o-transition: transform .3s ease-out .4s;
        transition: transform .3s ease-out .4s;
        backface-visibility: hidden;
        width: 320px;
        -webkit-transform: translateX(320px);
        -moz-transform: translateX(320px);
        -ms-transform: translateX(320px);
        transform: translateX(320px);
        display: block;
    }

    .show-menu #side-panel {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
        -webkit-transition: transform .3s linear .4s;
        -o-transition: transform .3s linear .4s;
        transition: transform .3s linear .4s;
        backface-visibility: hidden;
    }

    #side-panel .side-panel {
        -webkit-transition: all 2s ease-in-out;
        transition: all 2s ease-in-out;
        opacity: 0;
        visibility: hidden;
        position: relative;
        height: 100%;
    }

    #side-panel .side-panel .close {
        position: absolute;
        right: 5px;
        top: 5px;
        opacity: 1;
        width: 32px;
        height: 32px;
        cursor: pointer;
    }

    #side-panel .side-panel .close span {
        position: absolute;
        display: block;
        height: 5px;
        width: calc(100% - 8px);
        border-radius: 5px;
        opacity: 1;
        left: 4px;
        top: 12px;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
        background: white;
    }

    #side-panel .side-panel .close span:nth-child(1) {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    #side-panel .side-panel .close span:nth-child(2) {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    #side-panel .side-panel .logo {
        padding: 10px 40px 16px;
    }

    #side-panel .side-panel .logo img {
        max-height: 95px;
    }

    .show-menu #side-panel .side-panel {
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }

    #side-panel .side-panel .menu {
        overflow-y: auto;
    }

    #side-panel .side-panel .menu ul {
        list-style: none;
        padding: 0;
    }

    #side-panel .side-panel .menu ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        position: relative;
    }

    #side-panel .side-panel .menu ul li.sub-nav ul li:last-child {
        border-bottom: none;
    }

    #side-panel .side-panel .menu ul li ul li {
        text-align: left;
        text-decoration: none;
    }

    #side-panel .side-panel .menu ul li>a {
        display: block;
        padding: 13px 20px 12px;
        font-size: 16px;
        color: #fff;
        text-decoration: none;
        position: relative;
        text-align: left;
    }

    #side-panel .side-panel .menu ul li>a:hover {
        color: #fff;
    }

    #side-panel .side-panel .menu ul li.sub-nav>span:after {
        position: absolute;
        right: 27px;
        top: 10px;
        content: "\f067";
        font-family: "Font Awesome 5 Free";
        color: #fff;
        cursor: pointer;
        font-weight: 700;
        width: 32px; height: 32px; text-align: center; line-height: 32px;
    }

    #side-panel .side-panel .menu ul li.open>span:after {
        content: "\f068"
    }

    #side-panel .side-panel .menu ul li ul {
        padding: 0 0px 15px 20px;
        display: none;
    }

    #side-panel .side-panel .menu ul li ul li {
        position: relative;
        margin: 5px 0px;
    }

    #side-panel .side-panel .menu ul li ul li a {
        position: relative;
        font-size: 14px;
        color: #fff;
        text-transform: uppercase;
    }

    #side-panel .side-panel .menu ul li ul li a:hover {
        color: #fff;
    }

    .show-menu {
        overflow: hidden !important;
    }

}

@media only screen and (min-width: 580px) and (max-width: 992px) and (min-height: 480px) {
    #sub-banner .sub-banner .item {
        height: 520px;
    }

    #sub-banner .banner-text {
        bottom: 40px;
    }
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (max-width : 768px) {
    .ws_bullets {
        display: none !important;
    }

    .content {
        min-height: auto;
        padding-bottom: 20px;
        width: 100%;
    }

    #wowslider-container1 .ws_bullets {
        display: none !important;
    }

    .abuttons img {
        width: 50px !important;
    }

    .wrapper {

        margin-top: 0px !important;
    }

    .content img {

        padding: 0px !important;
    }

    .content {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    .footer {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    #private {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }

    #cms {
        border-radius: 0px !important;
        margin-bottom: 0px !important;
    }


    .rightwidget {
        vertical-align: bottom !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin-left: 0px !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        border-radius: 0px !important;

    }

    .leftwidget {
        vertical-align: bottom !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin-right: 0px !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        border-radius: 0px !important;
        text-align: center;
    }

    .mobilehide {
        display: none;
    }

    .mobileshow {
        display: block;
    }

    .sidemap {
        text-align: left;
    }

    .sidemap a {
        padding: 5px;
        display: block;
        text-decoration: none;
    }

    .sidemap ul li a {
        display: block;
    }

    #PAJinner {
        max-width: 100% !important;
        width: auto !important;
    }

    .makesmall {
        float: none;
        width: 100% !important;
    }

    .content {
        min-height: auto;
        padding-bottom: 20px;
        width: 100%;
    }

    .mobile_image {
        display: block;
        text-align: center;
    }

    .mobile_image img {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

}

@media only screen and (max-width : 665px) {
    .fc-toolbar .fc-right {
        float: left !important;
        padding-top: 10px;
    }

    .fc-scroller {
        height: auto !important;
    }
}

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

    .img25,
    .img33,
    .img50,
    .img75,
    .img100,
    .content img {
        max-width: 100%;
    }

    .sidemap a {
        color: rgb(125, 125, 125);
    }

    .sidemap {
        display: none;
    }

    .top_breadcrumb {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    .cms_table table,
    .cms_table thead,
    .cms_table tbody,
    .cms_table th,
    .cms_table td,
    .cms_table tr {
        display: block;
    }

    .cms_table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .cms_table tr {
        border: 1px solid #ccc;
    }

    .cms_table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: left !important;
    }

    .cms_table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45% !important;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
    }
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    body {
        padding: 0;
        margin: 0;
    }

    .content {
        padding-left: 15px;
        padding-right: 15px;
    }
}


@media (max-width: 600px) {
    form>div {
        margin: 0 0 15px 0;
    }

    form>div>label,
    form legend {
        width: 100%;
        float: none;
        margin: 0 0 5px 0;
    }

    form>div>div,
    form>div>fieldset>div {
        width: 100%;
        float: none;
    }

    form input[type=text],
    form input[type=email],
    form input[type=url],
    form input[type=password],
    form textarea,
    form select,
    form input[type=file],
    form input[type=date] {
        width: calc(100% - 22px);
    }
}

@media (min-width: 1200px) {

    form>div>label,
    form legend {
        text-align: left;
    }
}

@media (min-width: 32em) {
    .modal-box {
        width: 70%;
    }

    .modal-box .left {
        float: left;
        width: 30%;
        padding: 1%;
    }

    .modal-box .right {
        float: right;
        width: 66%;
        padding: 1%;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .iframeWrapper {
        position: relative;
        padding-bottom: 56.25%;
        /* 16:9 */
        padding-top: 25px;
        height: 0;
    }

    .iframeWrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .inner-content .wrapperinner {
        width: 100%;
        padding: 0px;
    }
}