/*ส่วนย่อย*/
:root {
    --purple: #690f7a;
    --black: #333333;
    --white: #ffffff;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600&display=swap');

body{
	line-height: 1.5;
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	/*เพิ่มเติม*/
	overflow-x: hidden;
}
body.hidden-scrolling{
	overflow-y: hidden;
}
*{
	margin:0;
	box-sizing: border-box;
}
.container{
	max-width: 100%;
	margin:auto;
}
ul{
	list-style: none;
	margin:0;
	padding:0;
}
a{
	text-decoration: none;
}
/*header*/
.header{
	position: absolute;
	width: 100%;
	left:0;
	top:0;
	z-index: 99;
	padding: 15px;
	
}
.header-main{
	background-color: #ffffff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-radius: 4px;
	background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}
.header .logo{
	padding: 0 15px;
}
.header .logo a{
	font-size: 30px;
	text-transform: capitalize;
	color: #c010d3;
	font-weight: 600;
}
.header .nav-menu{
	padding: 0 15px;
}
.header .menu > .menu-item{
	display: inline-block;
	margin-left: 30px;
	position: relative;
}
.header .menu > .menu-item > a{
	display: block;
	padding: 12px 0;
	font-size: 16px;
	color: #ffffff;
	text-transform: capitalize;
	font-weight: 600;
	transition: all 0.3s ease;
}
.header .menu > .menu-item > a .plus{
	display: inline-block;
	height: 12px;
	width: 12px;
	position: relative;
	margin-left:5px; 
	pointer-events: none;
}
.header .menu > .menu-item > a .plus:before,
.header .menu > .menu-item > a .plus:after{
	content:'';
	position: absolute;
	box-sizing: border-box;
	left: 50%;
	top:50%;
	background-color: #ffffff;
	height: 2px;
	width: 100%;
	transform: translate(-50%,-50%);
	transition: all 0.3s ease;
}
.header .menu > .menu-item:hover > a .plus:before,
.header .menu > .menu-item:hover > a .plus:after{
   background-color: #c010d3;
}
.header .menu > .menu-item > a .plus:after{
   transform: translate(-50%,-50%) rotate(-90deg);	
}
.header .menu > .menu-item > .sub-menu > .menu-item > a:hover,
.header .menu > .menu-item:hover > a{
	color: #c010d3;
}
.header .menu > .menu-item > .sub-menu{
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	width: 220px;
	position: absolute;
	left:0;
	top:100%;
	background-color: #ffffff;
    backdrop-filter: blur(5px);
	padding: 10px 0;
	border-top: 3px solid #c010d3;
	transform: translateY(10px);
	transition: all 0.3s ease;
	opacity:0;
	visibility: hidden;
}
@media(min-width: 992px){
.header .menu > .menu-item-has-children:hover > .sub-menu{
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
 }
 .header .menu > .menu-item-has-children:hover > a .plus:after{
    transform: translate(-50%,-50%) rotate(0deg);		
 }
}
.header .menu > .menu-item > .sub-menu > .menu-item{
	display: block;
}
.header .menu > .menu-item > .sub-menu > .menu-item > a{
	display: block;
	padding: 10px 20px;
	font-size: 16px;
	font-weight: 600;
	color: #000000;
	transition: all 0.3s ease;
	text-transform: capitalize;
}
.header .open-nav-menu{
	height: 34px;
	width: 40px;
	margin-right: 15px;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.header .open-nav-menu span{
	display: block;
	height: 3px;
	width: 24px;
	background-color: #000000;
    position: relative;
}
.header .open-nav-menu span:before,
.header .open-nav-menu span:after{
	content: '';
	position: absolute;
	left:0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	box-sizing: border-box;
}
.header .open-nav-menu span:before{
	top:-7px;
}
.header .open-nav-menu span:after{
	top:7px;
}
.header .close-nav-menu{
	height: 40px;
	width: 40px;
	background-color: #ffffff;
	margin:0 0 15px 15px;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
}
.header .close-nav-menu img{
	width: 16px;
}
.header .menu-overlay{
	position: fixed;
	z-index: 999;
	background-color: rgba(0,0,0,0.5);
	left:0;
	top:0;
	height: 100%;
	width: 100%;
	visibility: hidden;
	opacity:0;
	transition: all 0.3s ease;
}

/*home section
.home-section{
	width: 100%;
	display: block;
	min-height: 100vh;
	background-image: url('../img/home.jpg');
	background-position: center top;
	background-size: cover;
}
/* Hero Section */
.hero{
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Slider */
.slides{
    width: 100%;
    height: 100%;
    position: absolute;
}

.slide{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active{
    opacity: 1;
}

.slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* responsive */

@media(max-width: 991px){
	.header .menu-overlay.active{
	visibility: visible;
	opacity: 1;
}
	.header .nav-menu{
		position: fixed;
		right: -280px;
		visibility: hidden;
		width: 280px;
		height: 100%;
		top:0;
		overflow-y: auto;
		background-color: #222222;
		z-index: 1000;
		padding: 15px 0;
		transition: all 0.5s ease;
	}
	.header .nav-menu.open{
		visibility: visible;
		right: 0px;
	}
	.header .menu > .menu-item{
		display: block;
		margin:0;
	}
	.header .menu > .menu-item-has-children > a{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.header .menu > .menu-item > a{
		color: #ffffff;
		padding: 12px 15px;
		border-bottom: 1px solid #333333;
	}
	.header .menu > .menu-item:first-child > a{
	    border-top: 1px solid #333333;	
	}
	.header .menu > .menu-item > a .plus:before, 
	.header .menu > .menu-item > a .plus:after{
		background-color: #ffffff;
	}
	.header .menu > .menu-item-has-children.active > a .plus:after{
        transform: translate(-50%,-50%) rotate(0deg);
	}
	.header .menu > .menu-item > .sub-menu{
		width: 100%;
		position: relative;
		opacity: 1;
		visibility: visible;
		border:none;
		background-color: transparent;
		box-shadow: none;
		transform: translateY(0px);
		padding: 0px;
		left: auto;
		top:auto;
		max-height: 0;
		overflow: hidden;
	}
	.header .menu > .menu-item > .sub-menu > .menu-item > a{
		padding: 12px 45px;
		color: #ffffff;
		border-bottom: 1px solid #333333;
	}
	.header .close-nav-menu,
	.header .open-nav-menu{
		display: flex;
	}
}

/* Mobile Menu */
.menu-toggle{
    display: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

/* Overlay */
.hero::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* Hero Content */
.hero-content{
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-content h1{
    font-size: 60px;
    margin-bottom: 20px;
}

.hero-content p{
    font-size: 22px;
    margin-bottom: 25px;
}

.hero-content button{
    padding: 14px 30px;
    border: none;
    background: #3b0249;
    color: white;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-content button:hover{
    background: #450246;
}

/* Responsive 
@media(max-width: 768px){

    nav{
        position: absolute;
        top: 80px;
        right: -100%;
        width: 250px;
        background: rgba(0,0,0,0.9);
        transition: 0.4s;
        padding: 20px;
    }

    nav.active{
        right: 0;
    }

    nav ul{
        flex-direction: column;
    }

    nav ul li{
        margin: 15px 0;
    }

    .menu-toggle{
        display: block;
    }

    .hero-content h1{
        font-size: 38px;
    }

    .hero-content p{
        font-size: 18px;
    }
}

 /* popular menu*/
 .popular-menu{
    background-color:var(--white);
    background-repeat: no-repeat;
    background-size: cover;
    height: 800;
    color: var(--black);
    overflow: hidden;
    text-align: center;

    .popular-menu-item img{
        border-radius: 5px;
        transition: transform 0.3s ease;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
    .popular-menu-item img:hover{
        transform: scale(1.05);
    } 
    .popular-menu-item{
        margin: 1.5rem 0;
        text-align: center;

        h2{
            font-size: clamp(2rem,10vw,4rem);
            text-transform: uppercase;
        }
        p{
            font-size: clamp(1rem,10vw,2rem);
        }
    }

    .popular-menu-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
       gap: 3rem;
        .popular-menu-item{
            text-align: center;
            h3{
                font-size: clamp(1rem,10vw,2rem);
                margin: 1rem 0;
            }
            p{
                font-size: clamp(1rem,10vw,1.25rem);
            }
        }
        .popular-menu-title1{
            margin: 3rem 0;
            text-align: left;
        p{
                font-size: clamp(1rem,10vw,1.25rem);
            }
        }
    }
    @media  and (max-width:768px) {
        height: auto;
        padding: 3rem 0;
    }
   }

     /*layout*/
     .maincontent{
        background-color:var(--white);
     }

     .maincontent-con{
        display: flex;
     }

     .maincontent-info{
        width: 100%;
        padding: 2rem;
        h3{
            font-size: 2rem;
        }
        p{
            margin: 1rem 0;
        }
        .maincontent-btn{
            background-color: var(--purple);
            color: var(--white);
            padding: 1rem;
            border-radius: 30px;
            text-decoration: none;
        }
     }

     .maincontent-img{
        width: 100%;
        padding: 2rem;
        margin-left: auto;
     }
/*grid*/

.active-menu{
    background-color: var(--white)
    background-repeat: no-repeat;
    background-size: cover;
    height: 800;
    color: var(--black);
    overflow: hidden;
   
    .active-menu-title{
        margin: 3rem 0;
        text-align: center;

        h2{
            font-size: clamp(1rem,10vw,2rem);
            text-transform: uppercase;
        }
        p{
            font-size: clamp(1rem,10vw,2rem);
        }
    }

    .active-menu-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
        gap: 2rem;
            .active-menu-item img{
                display: block;
                width: 100%;
                border-radius: 10px;
                transition: transform 0.3s ease;
                box-shadow: 0 0 20px rgba(0,0,0,0.3);
            }
            .active-menu-item img:hover{
                transform: scale(1.05);
            } 

            .active-menu-item{
            text-align: left;
            h3{
                font-size: clamp(1rem,10vw,2rem);
                margin: 1rem 0;
            }
            p{
                font-size: clamp(1rem,10vw,1rem);
                margin: 1rem 0;
            }
            
          .content-btn{
            background-color: var(--purple);
            color: var(--white);
            padding: 0.5rem;
            border-radius: 30px;
            text-decoration: none;
            }  
        }
    }
    @media  and (max-width:768px) {
        height: auto;
        padding: 3rem 0;
    }
    }

      /*footer*/

 footer{
        color: #fff;
        background: #400246;
        padding-top: 30px;
    }
    .footer-container{
        width: 1140px;
        margin: auto;
        display: flex;
        justify-content: center;
    }
    .footer-content{
        width: 33.3%;
    }
    h3{
        font-size: 28px;
        margin-bottom: 15px;
        text-align: center;
    }
    .footer-content p{
        width:400px;
        margin: auto;
        padding: 7px;
      }
    .footer-content ul{
        text-align: center;
    }
    .list{
        padding: 0;
    }
    .list li{
        width: auto;
        text-align: center;
        list-style-type:none;
        padding: 7px;
        position: relative;
    }
    .list li::before{
        content: '';
        position: absolute;
        transform: translate(-50%,-50%);
        left: 50%;
        top: 100%;
        width: 0;
        height: 2px;
        background: #ffffff;
        transition-duration: .5s;
    }
    .list li:hover::before{
        width: 100px;
    }
    .social-icons{
        text-align: center;
        padding: 0;
    }
    .social-icons li{
        display: inline-block;
        text-align: center;
        padding: 5px;
    }
    .social-icons i{
        color: white;
        font-size: 25px;
    }
    a{
        text-decoration: none;
        color: #fff;
    }
    a:hover{
        color: #900b9f;
    }
    .social-icons i:hover{
        color: #900b9f;
    }
    .bottom-bar{
        background: #400246;
        text-align: center;
        padding: 10px 0;
        margin-top: 50px;
    }
    .bottom-bar p{
        color: #fcfafa;
        margin: 0;
        font-size: 16px;
        padding: 7px;
    }

    /*popup-box*/

    .popup-box {
  display: none; /* ซ่อนไว้ก่อน */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* พื้นหลังสีดำโปร่งแสง */
}
.popup-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 50%;
}
