:root {
	/* Font Size */
	--font-heading: 2.5rem;
	--font-second: 1.5rem;
	--font-main: 1.2rem;
	--font-small: 0.875rem;

	/* Color */
	--orange-color: #f16522;
	--darkblue-color: hwb(241 9% 72%);
	--main-font-color: #212529;
	--second-font-color: #b2b2b2;

	/* margin */
	--mg-1: .5rem; /* 8px */
	--mg-2: 1rem; /* 16px */
	--mg-3: 1.5rem; /* 24px */
	--mg-4: 2rem; /* 32px */
	--mg-5: 2.5rem; /* 40px */
	--mg-6: 3rem; /* 48px */
}


/* Layout */
.grid-template1 {
	display: grid;
}

/*--------------------- font size ---------------------*/



/* main */
	main{
		background-color: #fff;
		padding: 10px;
		position: relative;
	}
	.grid {
		display: grid;
		gap: 1.5rem;
	}
	
	.grid-template {
		grid-template-columns: repeat(1,1fr);
	}
	.grid-template1 {
		gap: 1.5rem;
	}
	.change-lang{
		display: grid;
		grid-template-columns: repeat(3,1fr);
		gap: 0.5rem;
		width: 280px;
		margin: auto;
		padding-bottom: 30px;
	}
	.lang {
		text-align: center;
		background-color: rgb(220, 220, 220);
		color: #3d3d3d;
		padding: 6px 0 2px 0;
	}
	.lang img{
		width: 18px;
	}
	.popup-image {
		position: fixed;
		top: 0;
		left: 0;
		background-color: rgba(0, 0, 0, 0.9);
		height: 100%;
		width: 100%;
		z-index: 1000;
		padding: 10px;
		display: none;
		transition: .4s ease; 
	}
	.popup-image span{
		position: absolute;
		top:-0.5rem;
		right: 1rem;
		font-size: 40px;
		font-weight: border;
		color: #fff;
		cursor: pointer;
	}
	.popup-image img {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		border-radius: 5px;
		width:1100px;
		object-fit: cover;
	}
	.main-font {
		font-size: var(--main-font);
		text-align: left;

	}



.heading-font{
	font-size: var(--font-heading);
	font-weight: 600;
}
.second-font {
	font-size: var(--font-second);
	font-weight: 400
}
.main-font {
	font-size: var(--font-main);
	color: var(--main-font-color);
	line-height: 1.6;
}
.small-font {
	font-size: var(--font-small);
}
.section-text{
	padding: 12px 0 0 0;
}


/*--------------------- Layout ---------------------*/
.container {
	max-width: 1200px;
	width: calc(100% - 2rem);
	margin-left: var(--mg-2);
	margin-right: var(--mg-2);
}
.grid-template2{
	display: grid;
	gap: 1.5rem;
} 



/*-----------------------Scroll Top ------------------------*/

.scrolltop {
	background-color: #f16522;
	position: fixed;
	right: 1rem;
	bottom: -20%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: .4rem;
	border-radius: 4px;
	transition: .5s ease;
	cursor: pointer;
	visibility: hidden;
	z-index: 1000;
}

.scrolltop i {
	font-size: 24px;
	color: #fff;
	cursor: pointer;
}
/* show scrolltop */
.scroll-top {
	visibility: visible;
	bottom: 1.5rem;
}

.scrolltop:hover {
	background-color: #171648;
}

/*--------------------- responsive set font -------------------*/

@media screen and (max-width:768px) {
	:root {
		/* Font Size */
		--font-heading: 1.5rem;
		--font-second: 1.125rem;
		--font-main: 1rem;
		--font-small: 0.875rem;
	}
}

/*--------------------- basic css -------------------*/

*,::after,::before {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}
body {
	font-family: "Kanit", sans-serif;
	font-size: var(--font-main);
	color: #212529;
	background-image: url(../img/bg-steelS.jpg);
	background-attachment: fixed;
	background-repeat: repeat;
	background-position: center;
	background-position: top;
}

img {
	height: auto;
	max-width: 100%;
}

a {
	text-decoration:none;
	color: #f16522;
	font-weight: 500;
	transition: 0.3s ease;
}
a:hover {
	text-decoration:none;
	color: #171648;
	font-weight: 500;
}
.update-text {
	color: var(--second-font-color);
}
h2 {
	font-weight: 500;
}
.social a:hover {
	transform: translateY(-5px);
}

span {
	font-weight: 600;
}
.img-box {
	position: relative;
}
.img-box p{
	position: absolute;
	bottom: 0px;
	text-align: center;
	left: 0;
	right: 0;
	color: #fff;
	font-size: 21px;
	background-color: #f16522;
	height: 70px;
	line-height: 70px;
	opacity: 0.9;
}
/*-----------------------Resposive 330px -----------------------*/

@media screen and (min-width: 330px) {
	.cover-page {
		max-width: calc(100% - 1rem);
		background-color: #fff;
		box-shadow: 4px 5px 8px rgba(0, 0, 0, 0.1);
		margin: .1rem auto;
		padding: 1rem 0;
		border-radius: .5rem;
	}
	
	.title-section {
		display: flex;
		justify-content: space-between;
		position: relative;
	}
	.title-section::before {
		content: "";
		width: 100%;
		height: 3px;
		background-color: #f16522;
		top: 54px;
		position: absolute;
	}
	.title-text {
		position: relative;
		top: 11px;
	}
	.heading {
		margin-top: var(--mg-6);
		margin-bottom: var(--mg-3);
	}
	.social {
		display: flex;
		column-gap: .6rem ;
		margin-bottom: var(--mg-2);
	}
	.social a img {
		width: 35px;
		height: 35px;
		margin-top: var(--mg-1);
		cursor: pointer;
	}
	
	.heading2, .section-text {
		padding-top: 12px;
	}

	.detail-img {
		margin-top: var(--mg-2);
		margin-bottom: var(--mg-1);
	}
	.detail-text {
		margin-bottom: var(--mg-3);
	}
	.footer-box img {
		width: 60px;
	}
	.footer-text {
		font-size: .6rem;
		font-weight: 500;
		margin-bottom: 6px;
	}
	.footer-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 10px 0;
		margin: 0 auto;
	}
	footer {
		margin-top: var(--mg-6);
		display: flex;
		justify-content: center;
		background-color: #fff;
		height: 150px;
		align-items: center;
	}
	.footer-img {
		display: flex;
	}
	.copy {
		background-color: var(--darkblue-color) ;
		color: #fff;
		font-size: 12px;
		padding: 10px;
		text-align: center;
	}
	.section-text {
		padding-bottom: 16px;
	}
	.img-box p{
		font-size: 18px;
		height: 70px;
		line-height: 70px;
	}

	.grid-template2 {
		gap: 1rem;
	}
	.popup-image {
		position: fixed;
		top: 0;
		left: 0;
		background-color: rgba(0, 0, 0, 0.9);
		height: 100%;
		width: 100%;
		z-index: 1000;
		padding: 10px;
		display: none;
		transition: .4s ease; 
	}
	.popup-image span{
		position: absolute;
		top:-0.5rem;
		right: 1rem;
		font-size: 40px;
		font-weight: border;
		color: #fff;
		cursor: pointer;
	}
	.popup-image img {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		border-radius: 5px;
		width: 1100px;
		object-fit: cover;
	}
}

@media screen and (min-width: 560px) {
	.grid-template2 {
		grid-template-columns: repeat(2,1fr);
		gap: 1.5rem;
	}
}

/*-------------------- Img Hover ------------------------*/
section .box-img img {
	transition: .4s ease;
}

.box-img{
	overflow: hidden;
	transition: .4s;
}

section .box-img  img:hover {
	transform: scale(1.1);
}

.active.lang{
	background-color: #3d3d3d;
}
.active p {
	color: #fff;
}

/* Layout */
.grid-template1 {
	display: grid;
}

/*---------------- Set font Responsive ------------------*/

/*-----------------------Resposive 768px -----------------------*/

@media screen and (min-width:768px) {
	.cover-page {
		max-width: calc(100% - 6rem);
		margin: 2rem auto;
		padding-top: 1rem;
	}
	.copy {
		display: flex;
		justify-content: center;
		gap: 3px;
	}
	.footer-box img {
		width: 100px;
	}
	.footer-text {
		font-size: .8rem;
		font-weight: 500;
		margin-bottom: 6px;
	}
	.one-img {
		width: 60%;
		margin: 0 auto;
	}
	.title-text {
		font-size: 1rem;
	}
	
	.img-box p{
		font-size: 1.31rem;
	}
		
}

/*-----------------------Resposive 960px -----------------------*/

@media screen and (min-width:960px) {
	
	.cover-page {
		max-width: calc(100% - 6rem);
		margin: 2rem auto;
		padding-top: var(--mg-2);
	}
	.container {
		max-width: 1200px;
		margin: 0 auto;
	}
	.copy {
		font-size: 16px;
		height: 80px;
		display: flex;
		align-items: center;
		gap: 4px;
	}

	.update {
		margin: 24px auto;
	}
	.update-text{
		font-size: 1rem;
	}
	.heading {
		margin-top: 20px;
	}
	.social a img {
		width: 40px;
		height: 40px;
	}

	.section-last{
		padding: 20px 0;
	}

	.img-logo {
		width: 100%;
	}
	.heading {
		margin-top: var(--mg-6);
	}
	.section-text {
		padding-bottom: 16px;
	}
	
	.img-box p{
		font-size: 1.8rem;
		height: 90px;
		line-height: 90px;
	}
}

/*---------------------------- Responsive 960px --------------------------*/

@media screen and (min-width:960px) {
	
	.grid-template {
		grid-template-columns: repeat(4,1fr);
	}
	.change-lang{
		position: absolute;
		right: 20px;
	}
	.wrapper{
		margin-top: 100px;
	}
	.grid-template1 {
		grid-template-columns: repeat(4,1fr);
	}
}
