*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Jost", serif;
    list-style: none;
    text-decoration: none;
}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10%;
}
.logo img{
    max-width: 100px;
    height: auto;
}
.navmenu{
    display: flex;
}
.navmenu a{
    color: #2c2c2c;
    font-size: 16px;
    text-transform: capitalize;
    padding: 10px 20px;
    font-weight: 400;
    transition: all .42s ease;
}
.navmenu a:hover{
    color: #ee1c47;
}
.nav-btn{
    display: flex;
    align-items: center;
}
.custom-btn{
    margin-right: 20px;
    color: #fffcfc;
    font-size: 15px;
    font-weight: 400;
    transition: all .32s ease;
    border-radius: 12px; /* ปรับค่าตามต้องการ */
    padding: 10px 10px; /* ปรับขนาดให้สวยงาม */
    background-color: #ee1c47; /* ตัวอย่างสีพื้นหลัง */
    border: none; /* เอาเส้นขอบออก */
}
.custom-btn:hover{
    transition: scale(1.1);
    background-color: #000000;
    color: #ffffff;
}
.menu-icon{
    font-size: 35px;
    color: #2c2c2c;
    z-index: 1001;
    cursor: pointer;
}
section {
    padding: 5% 10%;
}
.main-home{
    width: 100%;
    height: 100vh;
    background-image: url(image/banner.png);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
}
.main-text h5{
    color: #ee1c47;
    font-size: 18px;
    text-transform: capitalize;
    font-weight: 600; 
}
.main-text h1{
    color: black;
    font-size: 40px;
    text-transform: capitalize;
    line-height: 1.1;
    font-weight: 600;
    margin: 6px 0 10px;
}
.main-text p{
    color: #333c56;
    font-size: 15px;
    font-style: italic;
    margin-bottom: 20px;
}
.main-image{
    display: flex;
    justify-content: center;
}
.main-image img{
    width: 70%;
    max-width: 500px;
}
.main-btn{
    display: inline-block;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    border: 2px solid #111;
    padding: 12px 25px;
    transition: all .32s ease;
}
.main-btn:hover{
    background-color: #111;
    color: white;
}
.main-btn i{
    vertical-align: middle;
}
.down-arrow {
    position: absolute;
    top: 85%;
    right: 8%;
}
.down i{
    font-size: 30px;
    color: #2c2c2c;
    border: 2px solid #2c2c2c;
    border-radius: 50px;
    padding: 12px 12px;
}
.down i:hover{
    background-color: #2c2c2c;
    color : #fff;
    transition: all .42s ease;   
}
header.sticky {
    background: #fff;
    padding: 20px 10%;
    box-shadow: 0px 0px 10px rgb(0 0 0/10%);
}
/* treading */
.trending-product {
    margin-top: 150px; /* เพิ่มระยะห่างด้านบนตามต้องการ เช่น 30px */
}
.center-text h2{
    color: #111;
    font-size: 32px;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 30px;
}
.center-text span{
    color: #ee1c47;
}

/*apps*/
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 คอลัมน์ */
    gap: 20px; /* ระยะห่างระหว่างบล็อก */
    padding: 20px;

}

.grid-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* เปลี่ยนเมาส์เป็น pointer */
    text-decoration: none;  /* ลบเส้นใต้ของลิงก์ */
    color: inherit;  /* ใช้สีตัวอักษรปกติ */
    display: block;  /* ทำให้ทั้ง div คลิกได้ */
}

.grid-item:hover {
    transform: scale(0.95); /* ลดขนาดลงเล็กน้อย */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    width: 100px; /* ปรับขนาดไอคอน */
    height: auto;
    margin-bottom: 10px;
}

.grid-item p {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0px;
}

.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: gray;
}

.announce{
    text-align: center;
}
.announce h3{
    color: #111;
    font-size: 25px;
    text-transform: capitalize;
    text-align: center;
    font-weight: 700;
}
.announce img{
    width: 100px;
    height: auto;
    border-radius: 50px;
    margin: 10px 0;
}
.announce p{
    color: #707070;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    margin-bottom: 10px;
}
.announce h2{
    font-size: 22px;
    color: #000;
    font-weight: 400;
    text-transform: capitalize;
    margin-bottom: 2px;
}

/* --update--section--css-- */
.up-center-text {
    text-align: center;
    color: #111;
    font-size: 25px;
    text-transform: capitalize;
    font-weight: 700;
    margin-bottom: 30px;
}
.cart img{
    width: 250px;
    height: 250px;
    border-radius: 5px;
    display: block;
    margin: auto;
}
.update-cart{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,auto));
    gap: 1rem;
}
.cart h5{
    color: #636872;
    font-size: 14px;
    text-transform: capitalize;
    font-weight: 500;
}
.cart h4{
    color: #111;
    font-size: 18px;
    font-weight: 600;
}
.cart p{
    color: #707070;
    font-size: 15px;
    max-width: 380px;
    line-height: 25px;
    margin-bottom: 12px;
}
.cart h6 {
    color: #151515;
    font-size: 13px;
    font-weight: 500;
}

/* contact */
.new-program{
    display: grid;
    grid-template-columns: 1fr 4fr;
    align-items: start;
    padding: 0 0%;
}
.contact{
    background-color: #f3f4f6;
}
.contact-info{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,auto));
    gap: 3rem;
}
.first-info img{
    max-width: 75px;
    height: auto;
}
.contact-info h4{
    color: #212529;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.contact-info p{
    color: #565656;
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 1.5;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .42s;
}
.contact-info p:hover{
    color: #ee1c47;
}
.social-icon i{
    color: #565656;
    margin-right: 10px;
    font-size: 20px;
    transition: all .42s;
}
.social-icon i:hover{
    transform: scale(1.3);
}
.end-text{
    background-color: #edfff1;
    text-align: center;
    font-size: 15px;
    padding: 0px;
}
.end-text p{
    color: #111;
    text-transform: capitalize;
}

/* legacy */
.sidebar {
    min-width: 200px; /* กำหนดความกว้าง */
    margin-top: 0; /* ให้ขยับขึ้นไปด้านบน */
}
.sidebar li{
    color: #565656;
    font-size: 18px;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 1.5;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .42s;
}
.sidebar li:hover{
    color: #ee1c47;
}
.sidebar ul li.active {
    color: #ee1c47; /* เปลี่ยนสีเป็นสีแดง */
    font-weight: bold; /* ทำให้ตัวหนา */
}
.grid-container-legacy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    margin-left: 50px; /* เว้นระยะจาก sidebar */
}

.grid-content-legacy {
    display: none;
    width: 100%;
}

.grid-content-legacy.active {
    display: block;
    flex-wrap: wrap;
    gap: 10px;
}

.grid-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.grid-content-legacy img{
    width: 55px;
}

/*หัวข้อย่อยตรงcreate legacy*/
#create-submenu li {
    font-size: 16px;
    padding: 2px 0;
    cursor: pointer;
}

#create-submenu li:hover {
    color: #ee1c47;
}

/* Responsive-css */
@media(max-width:890px){
    header{
        padding: 20px 3%;
        transition: .4s;
    }
    .main-text h1{
        font-size: 20px;
        transition: .4s;
    }
    .main-text p{
        font-size: 10px;
        transition: .4s;
    }
    .main-btn{
        padding: 10px 20px;
        transition: .4s;
    }
}

@media(max-width:750px){
    .navmenu{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 200;
        height: 130vh;
        background-color: #edfff1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 120px 30px;
        transition: all .42s;
    }
    .navmenu p{
        display: block;
        margin: 18px 0;
    }
    .navmenu.open{
        right: 0;
    }
}

@media (min-width: 1366px) {
    .main-text h1 {
        font-size: 50px; /* ปรับขนาดใหญ่ขึ้น */
    }

    .main-text p {
        font-size: 20px; /* ปรับขนาดตัวอักษรย่อหน้า */
    }
}
