/* =========================================================
   MOBILE RESPONSIVE
   ใช้ .menu_webs เป็นเมนูหลักบนมือถือ
   ========================================================= */

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

    /* =========================
       GLOBAL
    ========================= */

    html {
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

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

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


    /* =========================
       MAIN WIDTH
    ========================= */

    .mainsites,
    .mainsite {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }


    /* =========================
       TOP HEADER
    ========================= */

    .head0 {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .textwelcome {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 7px 0 !important;
        text-align: center !important;
        font-size: 12px !important;
    }


    /* =========================
       TOP MENU
    ========================= */

    .menuhead0 {
        width: 100% !important;
        height: auto !important;
        text-align: center !important;
    }

    .menuhead0 ul {
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .menuhead0 li {
        float: none !important;
        display: inline-block !important;
    }


    /* =====================================================
       MAIN MENU
       .menu_webs ยังคงแสดงบนมือถือ
       ===================================================== */

    .menu_webs {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .menu_webs ul {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu_webs li {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu_webs li a {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        padding: 11px 15px !important;
        margin: 0 !important;
        line-height: 22px !important;
        text-align: left !important;
        white-space: normal !important;
    }


    /* =========================
       SUB MENU
    ========================= */

    .menu_webs li ul {
        position: static !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu_webs li ul li {
        width: 100% !important;
        float: none !important;
    }

    .menu_webs li ul li a {
        width: 100% !important;
        padding-left: 30px !important;
        font-size: 14px !important;
    }


    /* =========================
       MOBILE MENU
       ไม่ใช้เมนูซ้ำ
    ========================= */

    .menu_mobile {
        display: none !important;
    }


    /* =========================
       HEADER
    ========================= */

    .head1 {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }

    .head1_left,
    .head1_right {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }


    /* =========================
       LOGO
    ========================= */

    .head2 {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 15px 0 !important;
    }

    #hlogo {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    .logo_mobileweb {
        display: block !important;
        width: auto !important;
        max-width: 90% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    a.logo_mobilewebcss {
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .head2_call {
        float: none !important;
        width: 100% !important;
        margin: 10px 0 0 !important;
        text-align: center !important;
    }


    /* =========================
       BANNER
    ========================= */

    .headbanner {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    .headbanner img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    .bg_home_intro {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .bg_home_intro img {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
    }


    /* =========================
       HOME INTRO
    ========================= */

    .home_intro {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 25px 15px !important;
        line-height: 1.7 !important;
    }

    .home_intro h1 {
        font-size: 27px !important;
        line-height: 1.3 !important;
    }


    /* =========================
       HOME BOX
    ========================= */

    .home1,
    .home2,
    .home3 {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px !important;
        padding: 0 !important;
    }

    .home13 img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }


    /* =========================
       SERVICE
    ========================= */

    .servicebox {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 20px 0 !important;
    }

    .servicebox ul {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .servicebox li,
    .servicebox li.items1 {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 20px !important;
    }

    .servicebox li img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }


    /* =========================
       REFERENCE
    ========================= */

    .reference {
        width: 100% !important;
        padding: 25px 15px !important;
        font-size: 27px !important;
        line-height: 1.3 !important;
    }

    .references {
        width: 100% !important;
        height: auto !important;
    }

    .references a.imgt2 {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 15px !important;
    }

    .references img {
        width: 100% !important;
        height: auto !important;
    }


    /* =========================
       SIDEBAR / CONTENT
    ========================= */

    .Sidebar_left,
    .content_right {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .Sidebar_left {
        margin-bottom: 20px !important;
    }

    .content_right {
        margin-top: 15px !important;
    }


    /* =========================
       NEWS
    ========================= */

    ul.newscatpage {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    ul.newscatpage li {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        padding: 15px 0 !important;
    }

    ul.newscatpage li a.imgt1 {
        float: none !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }

    ul.newscatpage li a.imgt1 img {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    ul.newscatpage li .textright {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
    }


    /* =========================
       FOOTER
    ========================= */

    .footer_end {
        width: 100% !important;
        min-width: 0 !important;
        padding: 25px 15px 40px !important;
    }

}


/* =========================================================
   MOBILE SMALL
   ========================================================= */

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

    .mainsites,
    .mainsite {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .menu_webs li a {
        min-height: 42px !important;
        padding: 10px 13px !important;
        font-size: 14px !important;
    }

    .menu_webs li ul li a {
        padding-left: 28px !important;
        font-size: 13px !important;
    }

    .logo_mobileweb {
        max-width: 90% !important;
    }

    .home_intro h1 {
        font-size: 24px !important;
    }

    .reference {
        font-size: 23px !important;
    }

}