/* CSS Document */

@import url(https://fonts.googleapis.com/css?family=Open+Sans);
@import url(https://fonts.googleapis.com/css?family=Bree+Serif);

body {
	background: #212121;
	font-size:18px;
	line-height: 32px;
	color: #000000;
	margin: 0;
	padding: 0;
	word-wrap:break-word !important;
	font-family: 'Open Sans', sans-serif;

	padding-top: 60px; /* หรือขนาดเท่าความสูงของ nav */
}
	
h5 a {
	color: #000000;
}

h4 {
	color: #000000;
}



.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
.nav01 { 
	margin:0 ;
	padding: 0;
	background-color: #f7f7f7;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* เงาลอยเล็กน้อย */
}
.nav01 li a:hover {
	color: #000;
	background-color: #f8c822 !important; /* Hover เป็นสีเหลือง */
}

.nav01 .submenu li a:hover {
	border-bottom: 2px solid #000000; /* เส้นขอบด้านล่าง */
	border-radius: 0px 0px 10px 10px; /* มุมโค้งมน */
}



/* #logo {
	display: block;
	padding: 0 30px;
	float: left;
	font-size:20px;
	line-height: 60px;
} */

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */
 /*  เพิ่ม CSS คลาส sticky */
.sticky-nav {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
	background: linear-gradient(0deg,rgba(71, 155, 7, 1) 0%, rgba(216, 249, 161, 1) 100%) !important; /* เทาเข้ม */
	border-radius: 0px 0px 50px 50px; /* มุมโค้งมน */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	transition: background-color 0.3s ease;
}

.sticky-nav li a {
	color: #000000 !important; /* ตัวหนังสือสีขาว */
	transition: background-color 0.2s ease;/* transition: all 0.5s ease; */
}

.sticky-nav .menu>li {
	background: linear-gradient(0deg,rgba(71, 155, 7, 1) 0%, rgba(216, 249, 161, 1) 100%); /* เทาเข้ม */
}

.sticky-nav .submenu li{
	background-color: #ffffff ; /* พื้นหลังสีขาว */
}
.sticky-nav .submenu li a:hover{
	background-color: #f8c822 !important; /* Hover เป็นสีเหลือง */
	/* transition: all 0.1s ease; */
	color: #000;
	border-radius: 0px 0px 10px 10px; /* มุมโค้งมน */
	border-bottom: 3px solid #000000; /* เส้นขอบด้านล่าง */
}






.nav01:after {
	content:"";
	display:table;
	clear:both;
}
.nav01 ul.menu {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0 auto;
	list-style: none;
	float: none;
	
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
.nav01 ul {
	/* float: right; */
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
	
	}
	
/* Positioning the navigation items inline */
.nav01 ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: #f7f7f7;
	
	}

/* Styling the links */
.nav01 a {
	display:block;
	padding:14px 20px;	
	color:#000;
	font-size:15px;
	text-decoration:none;
}




/* Background color change on Hover */
.nav01 a:hover { 
	background-color: #fff; 
	
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
.nav01 ul ul {
	display: none;
	position: absolute; 
	/* has to be the same number as the "line-height" of "nav a" */
	top: 53px; 
    z-index: 999;
	
}
	
/* Display Dropdowns on Hover */
.nav01 ul li:hover > ul {
	display:inherit;
}
	
/* Fisrt Tier Dropdown */
.nav01 ul ul li {
	width: auto;
	float:none;
	display:list-item;
	position: relative;
}

/* Second, Third and more Tiers	
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
.nav01 ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "nav ul ul li" */ 
	left:170px; 
}

	



/* Media Queries
--------------------------------------------- */

@media all and (max-width : 768px) {

	/* #logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	} */

	.nav01 {
		margin: 0;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		background-color: #fff;
		padding:14px 20px;	
		color:#000;
		font-size:17px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		background-color: #dbdbdbfd;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	.nav01 ul li {
		display: block;
		width: 1250px;
		}

	.nav01 ul ul .toggle,
	.nav01 ul ul a {
		padding: 0 40px;
	}

	.nav01 ul ul ul a {
		padding: 0 80px;
	}

	.nav01 a:hover,
 	.nav01 ul ul ul a {
		background-color: #dbdbdbfd;
	}
  
	.nav01 ul li ul li .toggle,
	.nav01 ul ul a,
  .nav01 ul ul ul a{
		padding:14px 20px;	
		color:#000;
		font-size:17px; 
	}
  
  
	.nav01 ul li ul li .toggle,
	.nav01 ul ul a {
		background-color: #fff; 
	}

	/* Hide Dropdowns by Default */
	.nav01 ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* has to be the same number as the "line-height" of "nav a" */
	}
		
	/* Hide menus on hover */
	.nav01 ul ul li:hover > ul,
	.nav01 ul li:hover > ul {
		display: none;
	}
		
	/* Fisrt Tier Dropdown */
	.nav01 ul ul li {
		display: block;
		width: 100%;
	}

	.nav01 ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */ 

	}

}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 20%;
	}

}