
@keyframes slidemenu {
    0% {
        transform: translateY(-500px);
    }
    100% {
        transform: translateY(3px);
    }
}

body {
    color: #666;
    font-family: 'PSL_Kittithada_Pro_Bold';
    line-height: 1.428;
    font-size: 120%;
   

}


body.greenspot {
    background: url(https://greenspot.co.th/images/global/bg-page.png) repeat-x #fff;

    z-index: 1;
}

a {
    cursor: pointer;
    text-decoration: none !important;


}


#MenuMoblie .container-fluid {
    padding: 0;
    margin: auto;
    display: flex;
    flex-direction: row;
}

.moblie-logo {
    width: 30px;
    padding: 0;
    margin: 0 auto;
}

.navbar-brand img {
    width: 50%;
}

/*----- Custom Navbar Desktop------*/
.navbar-desktop {
    height: 150px;
    position: relative;
    z-index: 3;

}

.navbar-desktop .navbar-collapse,
.navbar-desktop .navbar-form {
    border-color: #e7e7e7;

}



/*--- Dropdown ---*/
.nav .open>a,
.nav .open>a:hover,
.nav .open>a:focus {
    background: transparent;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-decoration: none !important;


}

.nav>li>a:hover,
.nav>li>a:focus {
    text-decoration: none;
    background-color: transparent;

}

li.dropdown:hover {
    background: rgba(51, 51, 51, .2);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-decoration: none !important;

}

.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
    text-decoration: none;
    color: #fff;
    background: rgba(51, 51, 51, .2);
    text-decoration: none !important;
}

.dropdown-menu>li>a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #fff;
    white-space: nowrap;
    font-size: 20px;
    text-decoration: none !important;

}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 14px;
    text-align: left;
    background: rgba(51, 51, 51, .2);
    border-radius: 10px;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    display: none;
    position: absolute;
    width: 8%;
    background: rgba(51, 51, 51, .2);
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    text-underline-position: none;
    overflow: hidden;
    text-decoration: none !important;

}

.navbar-nav>li>.dropdown-menu {
    margin-top: 0;
    border-top-right-radius: 10;
    border-top-left-radius: 0;
}


.colorGreen3 {
    color: #005229;
}

.colorPink {
    color: #e10073;
}

.badge-danger {
    position: absolute;
    margin: 15px auto;
    height: 20px;
    width: 20px;
    font-size: 15px;
    background-color: red;
    margin-left: 50px;
}






@font-face {
    font-family: 'PSL_Kittithada_Pro_Bold';
    src: url('../fonts/font.eot');
    src: url('../fonts/font.eot?#iefix') format('embedded-opentype'),
        url('../fonts/font.woff') format('woff'),
        url('../fonts/font.ttf') format('truetype'),
        url('../fonts/font.svg#glyphicons_halflingsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.greenspot {
    display: flex;
    justify-content: center;
}

.navbar {
    display: flex;
    flex-direction: row;
    position: absolute;
    width: 65%;
    justify-items: center;
    align-items: center;
    gap: 1%;
    margin-top: 1%;

}

p {
    padding-top: 3%;
    font-size: 90%;
    color: #3a3939;
    font-family: 'PSL_Kittithada_Pro_Bold', sans-serif;

}

ul,
li {
    list-style: none;
}


.logoall {
    display: flex;
    width: 100%;
   justify-content: center;
}
.logocrop {
    display: flex;
    width: 30%;
    padding: 2%;
}


.logo img{
    display: flex;
    width: 580px;
}

.menu01 {
    display: flex;
    flex-direction: row;
    width: 10%;
    height: auto;
    align-items: center;
    justify-content: center;
    gap: 5%;
}

.menu01 a {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    gap: 5%;
}

.menu01 a img {
    width: 50%;
}

.dropdown .menu02 img {
    width: 50%;
}

.logomenu {
    display: flex;
    width: 8%;
    margin-right: 2%;
}



.menu02 {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 2%;

    align-items: center;
    justify-content: center;
    gap: 5%;
}

.dropdown {
    display: flex;
    flex-direction: column;
    width: 10%;
    position: relative;
    /* สำคัญมากสำหรับ absolute dropdown-menu */
    align-items: center;
    justify-content: center;
}







li.dropdown {
    position: relative;
}

/* โชว์ dropdown เมื่อ hover ที่ li.dropdown */
li.dropdown:hover>.dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: #575757;
    /* ตัวอย่าง สีเขียวของแบรนด์ */
    font-size: 80%;
}

.mobile-menu {
    display: none !important;
}


@media (max-width: 1136px) {
    .greenspot {
        display: none
    }
    .dropdown-menu {
  display: none;
  width: 100%;           /* ซ่อนเมนูย่อยไว้ก่อน */
  flex-direction: column;  /* กรณีใช้ flex */
  background: #fff;
  box-shadow: 0 2px 8px #0001;
  margin: 0 0 0 10%;       /* หรือแล้วแต่ layout */
  padding: 8px 0;
  opacity: 70%;
  list-style: none;
  position: relative;
  z-index: 10;
  border-radius: 8px;
  overflow-x: hidden;

}
.logocrop {
    display: flex;
    width: 70%;
    padding: 2%;
}

}


    body {
        margin: 0;
        font-family: 'Prompt', Arial, sans-serif;
        background: #f5f5f5;
    }

    .sidebar {
        width: 90vw;
        max-width: 350px;
        background: #fff;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
        z-index: 10;
        overflow-y: auto;
    }

    .sidebar-header {
        padding: 20px 24px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .sidebar-logo {
        width: 42px;
        height: 42px;
        background: #31914b;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 1.1rem;
        font-weight: bold;
        margin-right: 10px;
    }

    .menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .menu-item {
        padding: 18px 24px;
        display: flex;
        align-items: center;
        cursor: pointer;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
        background: #fff;
        transition: background 0.2s;
    }

    .menu-item:hover {
        background: #f6f6f6;
    }

    .menu-icon {
        width: 26px;
        margin-right: 15px;
        display: flex;
        justify-content: center;
    }

    .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.2s;
    }

    .dropdown.open>.dropdown-arrow {
        transform: rotate(90deg);
    }

    .dropdown-list {
        display: none;
        background: #f9f9f9;
        padding-left: 55px;
        border-left: 2px solid #31914b;
    }

    .dropdown.open .dropdown-list {
        display: block;
    }

    .dropdown-item {
        padding: 12px 0;
        color: #31914b;
        font-size: 1rem;
        cursor: pointer;
    }

    .dropdown-item:hover {
        text-decoration: underline;
    }




 /* menumobile*/



.mobilemenu {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    background: white;
    z-index: 2;
}

.logomobile img{
    display: flex;
    width: 15%;
    height: auto;
    padding: 5%;
}

.menumobile {
    display: flex;
    justify-content: end;
}
.menumobile img{
    display: flex;
    width: 20%;
    height: auto;
    padding: 3%;
}

.menudrop {
    display: none;
    width: 100%;
    height: auto;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    z-index: 2;
    justify-content: start;
    gap: 10px;
    padding-left:2%;
    opacity: 80%;
    animation: slidemenu 0.4s forwards;
    z-index: 1;
    overflow-x: hidden;
   
}


.menu01_mobile {
    display: flex;
    width: 50%;
   

    
}
.menu01_mobile a{
    display: flex;
    width: 100%;
    flex-direction: row;
    padding: 2%;
    font-size: 25px;
    gap: 5%;

}

.menu01_mobile img{
    width: 23%;

}

.dropdown_mobile {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: column;
    justify-content: start;
   
}


.menu02_mobile {
    display: flex;
    gap: 3%;
}

.menu02_mobile img{

    display: flex;
    width: 10%;
    height: 80%;
 
}
.menu02_mobile p{
    display: flex;
    width: 50%;
  
    font-size: 22px;
   
    margin-right: 15%;

}




.menu02_mobile {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  width: 100%;           /* ซ่อนเมนูย่อยไว้ก่อน */
  flex-direction: column;  /* กรณีใช้ flex */
  background: #fff;
  box-shadow: 0 2px 8px #0001;
  margin: 0 0 0 10%;       /* หรือแล้วแต่ layout */
  padding: 8px 0;
  opacity: 70%;
  list-style: none;
  /*position: relative;*/
  z-index: 10;
  border-radius: 8px;
}

.dropdown_mobile.open > .dropdown-menu {
  display: flex;  
  flex-direction: column;         /* โชว์เมนูย่อยเมื่อมีคลาส open */
}



/*เปิดปิดเมนูดทรศัพ*/


.menumobile img {
  transition: transform 0.3s;
}
.menumobile img.active {
  transform: rotate(90deg) scale(0.1);  /* หรือตามต้องการ */
}









@media  (min-width: 1136px) {
.mobile {
    display: none;
   
}     
    
}
