/* Extra responsive helpers for all devices */

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

.as_logo img,
.as_logo_img {
    width: auto !important;
    height: auto !important;
    max-height: 78px;
    max-width: 200px;
    object-fit: contain;
}

/* Desktop nav: keep all menu items on one line */
@media (min-width: 768px) {
    .as_logo {
        padding: 14px 24px !important;
        flex-shrink: 0;
        min-width: 180px;
    }

    .as_header_detail {
        width: auto !important;
        flex: 1;
        min-width: 0;
    }

    .as_menu_wrapper {
        padding-right: 12px !important;
    }

    .as_menu > ul {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
    }

    .as_menu > ul > li {
        margin: 0 5px !important;
        flex-shrink: 0;
    }

    .as_menu > ul > li > a {
        font-size: 11px;
        line-height: 1.2;
        padding: 14px 0;
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {
    .as_logo img,
    .as_logo_img {
        max-height: 88px;
        max-width: 220px;
    }

    .as_menu > ul > li {
        margin: 0 7px !important;
    }

    .as_menu > ul > li > a {
        font-size: 12px;
        padding: 16px 0;
    }
}

@media (min-width: 1500px) {
    .as_logo {
        padding: 18px 32px !important;
        min-width: 220px;
    }

    .as_logo img,
    .as_logo_img {
        max-height: 96px;
        max-width: 240px;
    }

    .as_menu_wrapper {
        padding-right: 28px !important;
    }

    .as_menu > ul > li {
        margin: 0 10px !important;
    }

    .as_menu > ul > li > a {
        font-size: 13px;
    }
}

@media (min-width: 1700px) {
    .as_menu_wrapper {
        padding-right: 60px !important;
    }

    .as_menu > ul > li {
        margin: 0 14px !important;
    }

    .as_menu > ul > li > a {
        font-size: 14px;
    }
}

.tablecontainer,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#toast-container.toast-top-right {
    right: 12px;
    left: auto;
}

.pagination {
    flex-wrap: wrap;
    justify-content: center;
}

.as_service_box {
    margin-bottom: 15px;
}

@media (max-width: 991px) {
    .as_logo img,
    .as_logo_img {
        max-height: 58px;
        max-width: 140px;
    }

    .as_banner_detail h1 {
        word-break: break-word;
    }

    .as_heading {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .pricing-box {
        min-height: auto !important;
        margin-bottom: 20px;
    }

    .as_btn,
    .nn-btn {
        display: inline-block;
        max-width: 100%;
    }

    .as_map_section iframe {
        height: 360px !important;
    }
}

@media (max-width: 767px) {
    .as_logo img,
    .as_logo_img {
        max-height: 48px;
        max-width: 120px;
    }

    .as_banner_wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .as_banner_detail h1 {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    .as_padderTop80 {
        padding-top: 50px !important;
    }

    .as_padderBottom80 {
        padding-bottom: 50px !important;
    }

    .as_sign_form ul {
        flex-direction: column !important;
    }

    .as_sign_form ul li,
    .as_sign_form ul li:nth-child(3),
    .as_sign_form ul li:last-child {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 0 15px !important;
    }

    .as_sign_form .as_btn,
    .as_form_box .as_btn {
        width: 100%;
        text-align: center;
    }

    .col-lg-3.col-md-6 .as_service_box .as_icon {
        font-size: 18px !important;
    }

    .tablecontainer {
        margin: 0 0 15px !important;
    }

    table th,
    table td {
        white-space: nowrap;
        font-size: 13px;
    }

    .pricing-box.as_service_box {
        padding: 20px 15px;
    }

    #toast-container.toast-top-right {
        left: 12px;
        right: 12px;
        width: auto;
    }

    #toast-container > div {
        width: 100% !important;
    }

    .as_map_section iframe {
        height: 280px !important;
    }

    .as_footer_widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    body.nn-menu-open {
        overflow: hidden;
    }

    /* Keep menu above everything and clickable */
    .as_menu_wrapper.menu_open,
    .menu_open.as_menu_wrapper {
        z-index: 10050 !important;
        position: relative;
    }

    .as_menu_wrapper.menu_open .as_menu,
    .menu_open .as_menu {
        z-index: 10051 !important;
        pointer-events: auto !important;
    }

    .as_menu_wrapper.menu_open .as_menu a,
    .menu_open .as_menu a {
        position: relative;
        z-index: 10052 !important;
        pointer-events: auto !important;
        cursor: pointer;
    }

    .as_toggle {
        z-index: 10053 !important;
        position: relative;
        pointer-events: auto !important;
    }

    /* Overlay must NOT cover the 200px menu drawer */
    .as_body_overlay {
        pointer-events: none !important;
    }

    .as_menu_wrapper.menu_open ~ .as_body_overlay,
    .menu_open ~ .as_body_overlay {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 200px !important; /* leave menu area free */
        width: auto !important;
        background: rgba(3, 29, 46, 0.55) !important;
        z-index: 10040 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 480px) {
    .as_banner_detail h1 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .as_heading,
    .as_heading_center {
        font-size: 24px !important;
    }

    .as_breadcrum_wrapper h1 {
        font-size: 26px !important;
    }

    .as_info_detail {
        display: none;
    }
}

.as_right_info {
    padding: 8px 12px 8px 0;
    flex-shrink: 0;
}

.as_right_info .as_logintext {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.as_user_box .as_logintext {
    display: flex !important;
    flex-direction: column;
    line-height: 1.25;
}

.as_user_box .as_logintext strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.as_user_box .as_logintext small {
    color: #ff7010;
    font-size: 11px;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.as_user_dropdown {
    position: relative;
}

.as_user_dropdown_toggle {
    cursor: pointer;
}

.as_user_dropdown_menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #06263a;
    border: 1px solid rgba(255, 112, 16, 0.35);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 1200;
}

.as_user_dropdown:hover .as_user_dropdown_menu,
.as_user_dropdown:focus-within .as_user_dropdown_menu,
.as_user_dropdown.is-open .as_user_dropdown_menu {
    display: block;
}

.as_user_dropdown_menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.as_user_dropdown_menu li a:hover {
    background: #ff7010;
    color: #fff;
}

.as_user_dropdown_menu li:last-child a {
    color: #ffb08a;
}

.as_user_dropdown_menu li:last-child a:hover {
    color: #fff;
}

/* Global page loader */
.as_loader_inner {
    text-align: center;
}

.as_loader_text {
    margin: 14px 0 0;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Full-width consultation booking forms must not pull footer up */
.as_contact_form.as_consultation_form {
    margin-bottom: 0;
}

.as_contact_section.as_consultation_section {
    padding-bottom: 80px;
}

.as_consultation_form .consultation-form-actions {
    padding-top: 24px;
    padding-bottom: 8px;
}
