/*
 * Responsive retrofit for the Intexim BizWay installation.
 * Loaded after the legacy theme styles so desktop presentation remains intact
 * while tablet and phone layouts no longer inherit fixed-width components.
 */

.mobile-menu-toggle {
    display: none;
}

.content-bar img,
.content-bar video,
.content-bar iframe,
.content-bar embed,
.content-bar object {
    max-width: 100%;
}

.content-bar img,
.content-bar video {
    height: auto;
}

@media only screen and (max-width: 1024px) {
    body#regal_body .container_24 {
        width: calc(100% - 32px);
    }
}

@media only screen and (max-width: 959px) {
    .main-content .page-item img {
        box-sizing: border-box;
        width: 100%;
        height: auto;
    }
}

@media only screen and (max-width: 767px) {
    html {
        overflow-x: hidden;
    }

    body#regal_body {
        min-width: 0;
        font-size: 16px;
        line-height: 1.65;
        overflow-wrap: break-word;
    }

    body#regal_body *,
    body#regal_body *::before,
    body#regal_body *::after {
        box-sizing: border-box;
    }

    body#regal_body .container_24 {
        width: 100%;
        max-width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .container_24 [class^="grid_"],
    .container_24 [class*=" grid_"] {
        display: block;
        float: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .header .logo {
        margin: 18px 0;
        text-align: center;
    }

    .header .logo img {
        width: auto;
        max-width: 100%;
        height: auto;
    }

    .menu-container {
        margin-bottom: 0;
        padding: 8px 0;
        background-color: #0b6d8d;
        background-image: none;
    }

    .menu_wrapper.mobile-menu-enhanced .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle {
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        margin: 0;
        padding: 10px 16px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 4px;
        background: #0b506c;
        color: #fff;
        font: inherit;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        cursor: pointer;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        background: #083f55;
    }

    .mobile-menu-toggle:focus-visible,
    #menu .sf-menu a:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 2px;
    }

    .mobile-menu-toggle__icon {
        position: relative;
        width: 22px;
        height: 18px;
        margin-right: 10px;
        color: currentColor;
    }

    .mobile-menu-toggle__icon::before,
    .mobile-menu-toggle__icon::after {
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        background: currentColor;
        content: "";
        transition: transform 160ms ease, top 160ms ease, bottom 160ms ease, box-shadow 160ms ease;
    }

    .mobile-menu-toggle__icon::before {
        top: 3px;
        box-shadow: 0 5px 0 currentColor;
    }

    .mobile-menu-toggle__icon::after {
        bottom: 3px;
    }

    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon::before {
        top: 8px;
        box-shadow: none;
        transform: rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon::after {
        bottom: 8px;
        transform: rotate(-45deg);
    }

    .menu_wrapper.mobile-menu-enhanced > #menu {
        display: none;
    }

    .menu_wrapper.mobile-menu-enhanced > #menu.is-open {
        display: block;
    }

    #menu .sf-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 8px 0 0;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 4px;
        background: #0b5d79;
    }

    #menu .sf-menu li,
    #menu .sf-menu li li {
        display: block;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        background: transparent;
        font: inherit !important;
        text-transform: none;
    }

    #menu .sf-menu li:last-child {
        border-bottom: 0;
    }

    #menu .sf-menu li a,
    #menu .sf-menu li li a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 46px;
        margin: 0;
        padding: 11px 16px;
        border: 0;
        border-bottom: 0;
        background: transparent;
        color: #fff;
        font-size: 16px;
        line-height: 1.45;
        text-align: left;
        text-shadow: none;
        word-break: normal;
    }

    #menu .sf-menu > li.current-menu-item > a,
    #menu .sf-menu > li.current-menu-parent > a,
    #menu .sf-menu > li.current_page_parent > a,
    #menu .sf-menu > li.current_page_item > a,
    #menu .sf-menu li > a:hover,
    #menu .sf-menu li > a:focus {
        background: #083f55;
        color: #fff;
    }

    #menu .sf-menu li > ul,
    #menu .sf-menu li:hover > ul,
    #menu .sf-menu li.sfHover > ul {
        position: static !important;
        top: auto !important;
        left: auto !important;
        display: block !important;
        visibility: visible !important;
        width: 100%;
        margin: 0;
        padding: 0 0 0 16px;
        border: 0;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.12);
        box-shadow: none;
    }

    #menu .sf-sub-indicator {
        display: none;
    }

    .slider-wrapper-container {
        padding-top: 24px;
    }

    .slider-wrapper-container h1 {
        margin: 0 0 8px;
        padding: 0 8px;
        font-size: 28px;
        line-height: 1.2;
    }

    .slider-wrapper-container h2 {
        margin: 0 0 24px;
        padding: 0 8px;
        font-size: 18px;
        line-height: 1.45;
    }

    .slider-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .flexslider,
    .flexslider .slides {
        visibility: visible !important;
        height: auto !important;
    }

    .slider-wrapper .flexslider {
        position: relative;
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
        border: 0;
        border-radius: 4px;
        background: #e8e8e8;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    }

    .flexslider .slides {
        width: 100%;
    }

    .slider-wrapper .flexslider .slides img {
        width: 100% !important;
        max-height: none;
        height: auto !important;
        margin: 0 auto;
    }

    .slider-shaddow,
    .flex-direction-nav {
        display: none !important;
    }

    .slider-wrapper .flex-control-nav {
        right: 0;
        bottom: 4px;
        left: 0;
        z-index: 5;
        margin: 0 auto;
    }

    .flex-control-nav li {
        margin: 0 1px;
    }

    .flex-control-nav li a {
        position: relative;
        width: 36px;
        height: 36px;
        background: none;
    }

    .flex-control-nav li a::before {
        position: absolute;
        top: 13px;
        left: 13px;
        width: 10px;
        height: 10px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.45);
        content: "";
    }

    .flex-control-nav li a:hover::before,
    .flex-control-nav li a:focus::before,
    .flex-control-nav li a.active::before {
        background: #0b6d8d;
    }

    .main-content-container {
        margin-top: 38px;
        padding-bottom: 16px;
        overflow: visible;
    }

    .main-content {
        width: 100%;
        margin: 0;
    }

    .main-content > [class^="grid_sub_"],
    .main-content > [class*=" grid_sub_"] {
        margin-bottom: 42px;
    }

    .main-content > [class^="grid_sub_"]:last-child,
    .main-content > [class*=" grid_sub_"]:last-child {
        margin-bottom: 0;
    }

    .main-content .page-item,
    .main-content .page-item.first-item,
    .main-content .page-item.item-two,
    .main-content .page-item.last-item {
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .main-content .page-item h1 {
        margin-bottom: 14px;
        font-size: 27px;
        line-height: 1.25;
        text-align: center;
    }

    .main-content .page-item img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 0 auto 20px;
        padding: 0;
        border-radius: 4px;
        background: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .page-heading-container {
        padding-top: 12px;
    }

    .page-heading h1 {
        margin-bottom: 12px;
        font-size: 30px;
        line-height: 1.25;
    }

    .page-content {
        padding-top: 28px;
        padding-bottom: 38px;
        overflow: visible;
    }

    .content-bar {
        width: 100%;
        padding-right: 0;
        overflow: visible;
        overflow-wrap: anywhere;
    }

    .content-bar img,
    .content-bar video,
    .content-bar iframe,
    .content-bar embed,
    .content-bar object {
        max-width: 100% !important;
    }

    .content-bar img,
    .content-bar video {
        height: auto !important;
    }

    .content-bar iframe {
        width: 100%;
    }

    .content-bar table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        border-collapse: collapse;
        -webkit-overflow-scrolling: touch;
    }

    .content-bar pre {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre;
        -webkit-overflow-scrolling: touch;
    }

    .content-bar input:not([type="checkbox"]):not([type="radio"]),
    .content-bar select,
    .content-bar textarea {
        max-width: 100%;
        min-height: 44px;
        padding: 9px 10px;
        font: inherit;
    }

    .content-bar textarea {
        width: 100%;
        min-height: 120px;
    }

    #respond input#submit,
    .contactform input[type="submit"] {
        width: auto;
        height: auto;
        min-width: 96px;
        min-height: 44px;
        padding: 10px 16px;
        border: 0;
        border-radius: 4px;
        background: #0b6d8d;
        color: #fff;
        text-indent: 0;
    }

    #respond input#submit:hover,
    #respond input#submit:focus,
    .contactform input[type="submit"]:hover,
    .contactform input[type="submit"]:focus {
        background: #083f55;
    }

    .alignleft,
    .alignright,
    a img.alignleft,
    a img.alignright {
        float: none;
        margin-right: auto;
        margin-left: auto;
    }

    blockquote {
        margin: 28px 0;
        padding-left: 42px;
        background-size: 30px auto;
    }

    .one_half,
    .one_third,
    .two_third,
    .three_fourth,
    .one_fourth,
    .col2,
    .col3,
    .col4 {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .page-content .gallery ul.thumbnail {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .page-content .gallery ul.thumbnail li {
        float: none;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: none;
    }

    .page-content .gallery ul.thumbnail li img {
        width: 100%;
        height: auto;
        margin: 0;
    }

    ol.commentlist li.comment .comment-body {
        max-width: 100%;
        margin-left: 0;
        padding: 20px 14px;
    }

    ol.commentlist li.comment .comment-author .avatar {
        position: static;
    }

    .footer-wrapper .footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        width: 100%;
        margin: 28px 0 0;
        text-align: left;
    }

    .footer-wrapper .footer_widget,
    .footer-wrapper .footer_widget.last {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .footer-wrapper .footer_widget.last p {
        text-align: left;
    }

    .footer_bottom {
        padding-top: 0;
        text-align: left;
    }

    .footer_bottom_content {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 22px 0 12px;
    }

    .footer_bottom .theme_desc,
    .footer_bottom .copyright {
        float: none;
        width: 100%;
    }

    ul.social_logos {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        padding: 0 0 18px;
    }
}

@media only screen and (max-width: 479px) {
    .slider-wrapper-container h1 {
        font-size: 25px;
    }

    .slider-wrapper-container h2 {
        font-size: 17px;
    }

    .page-heading h1 {
        font-size: 27px;
    }

    .page-content .gallery ul.thumbnail {
        grid-template-columns: minmax(0, 1fr);
    }
}
