﻿
@media screen and (max-width: 1024px) {
    .outerpage {
        width: 1200px;
    }
}
@media screen and (min-width: 1024px) {
    .outerpage {
        width: 100%;
    }
}
.outerpage {
    width: 100%;
}





.divheadertop {
    height: 116px;
}


    .divheadertop > div {
        position: relative;
        width: 1200px;
        margin-right: auto;
        margin-left: auto;
    }


#imgMKCLogo {
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.divheadermenu {
    display: flex;
    margin-left: 270px;
    padding-top: 20px;
}

.divheadermenu span {
    /* color: #797979; */
    color:black;
    display: inline-block;
    padding: 2px;
    cursor: pointer;
}

.divheadermenu span:hover {
    color: #f26123;
}

/* คลาสสำหรับไอคอนเมนู */
.divheadermenu span.menuicon {
    background-position: left center;
    background-repeat: no-repeat;
    padding-left: 40px;
}

/* ขีดเส้นขวา */
.divheadermenu span.leftline {
    padding-right: 40px;
}

/* ระบุความกว้างเฉพาะบางเมนู */
.divheadermenu span:nth-child(3) {
    width: 150px;
}

/* สีเน้นข้อความ */
.divheadermenu strong {
    color: #f26123;
}

/* 🔒 เมนูที่ไม่สามารถคลิกได้ */
.divheadermenu span.disabled {
    color: #ccc;
    pointer-events: none;
    cursor: default;
}




.divheadersearch {
    position: relative;
    margin-top: 10px;
    margin-left: 270px;
}


.divheadersearch div:first-child img {
    position: absolute;
    bottom: 6px;
    right: 15px;
    height: 40px;
}

#txtSearch {
    font-size: 24px;
    text-indent: 10px;
    border: 2px solid #f26123;
    border-radius: 5px;
    outline: none;
    height: 48px;
    padding: 0 64px 0 0;
    background-image: linear-gradient(to bottom, #ffffff 0%, #ffffff 100%), linear-gradient(to bottom, #f26123 0%,#f26123 100%);
    background-clip: content-box, padding-box;
    width: calc(100% - 70px);
}


.divsearchpopup {
    border-style: none solid solid solid;
    border-width: 2px;
    border-color: #f26123;
    background-color: white;
    position: absolute;
    top: 45px;
    left: 0;
    width: calc(100% - 70px);
    height: 300px;
    overflow-y: scroll;
    z-index: 2;
}


    .divsearchpopup table {
        border-collapse: collapse;
        padding: 10px;
    }

        .divsearchpopup table tr > * {
            cursor: pointer;
        }

        .divsearchpopup table td {
            text-indent: 5px;
        }

            .divsearchpopup table td:first-child img {
                height: 64px;
            }


.divsearchpopup div {
    text-align: center;
    border-collapse: collapse;
    background-color: #fedccd;
    padding: 10px 0;
}


    .divsearchpopup div span {
        color: #797979;
        cursor: pointer;
    }
        .divsearchpopup div span:hover {
            color: #f26123;
        }



.divheaderbottom {
    border-color: #E3E3E3;
    border-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    height: 52px;
}


    .divheaderbottom > div {
        width: 1200px;
        height: 100%;
        margin-right: auto;
        margin-left: auto;
        position: relative;
    }


.divgroupmenu {
    background-color: #f26123;
    background-image: url('../Images/properties.png');
    background-repeat: no-repeat;
    background-position: left;
    background-position: 10px;
    float: left;
    display: flex;
    width: 250px;
    height: 100%;
    padding-right: 10px;
    cursor: pointer;
}


    .divgroupmenu span {
        font-size: larger;
        color: white;
        margin-top: 10px;
        margin-left: 44px;
    }


.divmainmenu {
    height: 100%;
    float: left;
}

.divmainmenu span {
    display: inline-block;
    /*padding: 15px 15px 10px 15px; */
    padding: 15px 45px 10px 15px;
    cursor: pointer;
}

/* สำหรับ span ที่มี id (คือเมนูคลิกได้) */
.divmainmenu span[id] {
    color: black;
}
.divmainmenu span[id]:hover {
    color: #f26123;
}

/* สำหรับ span ที่ไม่มี id (เมนูเป็นสีเทาและคลิกไม่ได้) */
.divmainmenu span:not([id]) {
    color: #ccc;
    pointer-events: none;
    cursor: default;
}


.ulgroupmenu {
    border-style: solid;
    border-width: 1px;
    border-color: #f26123;
    background-color: #ffffff;
    position: absolute;
    top: 52px;
    left: 0;
    width: 253px;
    height: 550px;
    margin: 0;
    padding-left: 5px;
    z-index: 99999;
    list-style-type: none;
}

    .ulgroupmenu li, .ulgroupmenu li label {
        position: relative;
        padding: 5px 0;
        cursor: pointer;
    }
        .ulgroupmenu li:hover {
            background-color: aliceblue;
        }


.ulgroupsubmenu {
    border-style: solid solid solid none;
    border-width: 1px;
    border-color: #f26123;
    background-color: aliceblue;
    position: absolute;
    left: 253px;
    width: 930px;
    height: 540px;
    margin: 0;
    padding: 5px;
    z-index: 2;
    list-style-type: none;
}

    .ulgroupsubmenu li {
        text-align: center;
        display: inline-block;
        width: 180px;
        margin: 0;
        padding: 0;
        cursor: pointer;
    }


        .ulgroupsubmenu li div {
            background-repeat: no-repeat;
            background-position: center top;
            background-size: 128px;
            padding-top: 130px;
            padding-bottom: 20px;
        }


.menu-item {
    position: relative;
    display: inline-block;
    padding: 10px;
    cursor: pointer;
    z-index: 99999;

}


.ulbandmenu {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0px;
    display: flex;
    margin: 0;
    padding: 10px;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    width: 900px;
    display: none;
  }  

.menu-item:hover .ulbandmenu {
    display: flex;
}


.ulbandmenu li {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    white-space: nowrap;
}

    .ulbandmenu li:hover {
        background-color: #f0f0f0;
    }


.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 6px;
}


.mkcmsg {
    border: 1px solid #E3E3E3;
    border-radius: 20px;
    background-color: white;
    position: fixed;
    bottom: 10px;
    right: 70px;
    width: 250px;
    padding: 30px 55px 15px 15px;
}


    .mkcmsg img {
        position: absolute;
        right: -60px;
        bottom: -10px;
    }


    .mkcmsg div.popup-close {
        position: absolute;
        right: 10px;
        top: 10px;
        width: 24px;
        height: 24px;
        opacity: .1;
        cursor: pointer;
    }
        .mkcmsg div.popup-close:hover {
            opacity: 1;
        }
  
.mkcmsg span {
         cursor: pointer;
        
    }

.pagefooter {
    /* font-size: smaller; */
    color: white;
    background-image: linear-gradient(to bottom, #2d2d2d 0%, #2d2d2d 100%), linear-gradient(to bottom, #f26123 0%,#f26123 100%);
    background-clip: content-box, padding-box;
    position: relative;
    padding: 0 0 24px 0;
}

    .pagefooter > div {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .pagefooter > div > div {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 0;
    }


    .pagefooter .title {
        font-size: larger;
        font-weight: bold;
        display: block;
    }
        .pagefooter .title.topspac {
            margin-top: 10px;
        }


    .pagefooter label.gotopage {
        cursor: pointer;
    }
        .pagefooter label.gotopage:hover {
            color: #f26123;
            text-decoration-line: underline;
        }


    .pagefooter .lblimg {
        background-repeat: no-repeat;
        background-position: left top;
        background-size: auto 16px;
        padding-left: 25px;
    }


#lblMail::before {
    content: 'อีเมล์ติดต่อ: ';
    background-image: url('../Images/email.png');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 16px;
    padding-left: 25px;
}


.pagefooter .copyright {
    text-align: center;
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
}


.contactapp {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

    .contactapp > div {
        background-repeat: no-repeat;
        background-size: 32px 32px;
        width: 32px;
        height: 32px;
        cursor: pointer;
    }


.linkpointer {
    cursor: pointer;
}





