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

html {
	scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: inherit;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
	display: block;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
	background: transparent;
	border: none;
	outline: none;
}

button {
	cursor: pointer;
}

a {
	text-decoration: none;
	color: inherit;
}

:root {
	--font-inter: "Inter", sans-serif;
	--font-kanit: "Kanit", sans-serif;

	--main-color: #179B48;
	--second-color: #f1f1f2;
	--text-color: #313431;
	--border-color: #e5e7eb;
}

#dietmoi {
	font-family: var(--font-inter);
	font-size: 14px;
	font-weight: 400;
	color: var(--text-color);
	background: #fff;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	line-height: 1.5;
}

#dietmoi * {
	box-sizing: border-box;
}

#dietmoi .section{
	padding-block: 48px;
}

#dietmoi img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

#dietmoi .js-fadein {
	opacity: 0;
	transform: translate(0, 20px);
	transition-property: opacity, transform;
	transition-duration: 1s;
}

#dietmoi .scroll-in {
	opacity: 1;
	transform: translate(0, 0);
}

#dietmoi .pc-br {
	display: none;
}

#dietmoi .sp-br {
	display: inline;
}

#dietmoi .inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
}

#dietmoi #main {
	flex: 1;
}

#dietmoi .hover,
#dietmoi .scroll {
	opacity: 1;
	transition: all 0.2s;
}

#dietmoi .hover:hover,
#dietmoi .scroll:hover {
	opacity: 0.75;
}

#dietmoi .h-font{
	font-family: var(--font-kanit);
	font-weight: 600;
	line-height: 1.2;
}

#dietmoi .span-color{
	color: var(--main-color);
}

/* breadcrumb */
#dietmoi .breadcrumb {
	padding-block: 12px;
	font-size: 12px;
	color: #52525B;
}

#dietmoi .breadcrumb .space{
	display: inline-block;
	margin-inline: 8px;
}

#dietmoi .breadcrumb a:not([href]){
	color: var(--main-color);
}

/* post */
.post-item img{
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.post-item .content{
	padding-block: 12px;
}

.post-item .post-cat{
	padding: 2px 8px;
	background-color: #EFFAF3;
	font-weight: 300 !important;
	margin-bottom: 4px;
	display: inline-block;
}

.post-item .post-title{
	font-size: 18px;
	margin-bottom: 8px;
}

.pagination{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 30px;
}
.pagination a,
.pagination span{
	border-radius: 999px;
	width: 26px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #71717A;
	background-color: var(--second-color);
	transition: all 0.3s;
	line-height: 1;
}
.pagination span.current{
	color: #fff;
	background-color: var(--main-color);
}

/* title */
#dietmoi .sc-title{
	margin-bottom: 14px;
	font-size: 24px;
}

#dietmoi .sc-title.center{
	text-align: center;
}

#dietmoi .sc-title .sub{
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 300;
	margin-bottom: 8px;
	display: block;
}

/* swiper */
.posts-swiper .swiper-nav{
	display: flex;
	align-items: center;
	column-gap: 16px;
	margin-bottom: 16px;
}
.posts-swiper .swiper-nav button{
	border-radius: 999px;
	border: 1px solid rgb(187, 227, 205);
	display: flex;
	justify-content: center;
	align-items: center;
	width: 36px; 
	aspect-ratio: 1 / 1;
	background-color: #fff;
	color: var(--main-color);
}

.posts-swiper .swiper-nav .swiper-next svg{
	rotate: 180deg;
}

.posts-swiper .post-item{
	background-color: #fff;
	border-bottom: 5px solid var(--main-color);
}

.posts-swiper .post-item .post-title a{
	-webkit-box-orient: vertical;
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	min-height: 44px;
}

.posts-swiper .post-item .content{
	padding: 16px;
}

.sc-branch {
	background-color: rgb(228, 228, 231);
	padding-block: 26px;
}

.sc-branch .box{
	background-color: #fff;
	padding: 24px 18px;
}

.sc-branch .box .sc-title{
	text-align: center;
}

.sc-branch .box .link{
	background-color: var(--main-color);
	color: #fff;
	border-radius: 12px 0;
	font-weight: 700;
	font-size: 14px;
	padding: 11px 14px 10px;
	display: block;
	width: fit-content;
	margin-inline: auto;
}



@media print, screen and (min-width: 768px) {
	#dietmoi{
		font-size: 16px;
	}

	#dietmoi .section{
		padding-block: 96px;
	}

	#dietmoi .inner {
		padding: 0 24px;
	}

	#dietmoi .sp-br {
		display: none;
	}

	#dietmoi .pc-br {
		display: inline;
	}

	/* 	breadcrumb */
	#dietmoi .breadcrumb {
		padding-block: 24px;
		font-size: 14px;
	}

	/* 	post */
	.post-item .content {
		padding-block: 16px;
	}

	.post-item .post-cat{
		margin-bottom: 8px;
	}

	.post-item .post-title {
		font-size: 20px;
		margin-bottom: 8px;
	}

	.post-item  .excerpt{
		font-size: 16px;
	}

	.pagination {
		justify-content: flex-start;
		gap: 12px;
		margin-bottom: 60px;
	}

	.pagination a, .pagination span {
		width: 32px;
		font-size: 14px;
	}

	/* 	title */
	#dietmoi .sc-title {
		margin-bottom: 28px;
		font-size: 40px;
	}

	#dietmoi .sc-title .sub {
		font-size: 16px;
	}

	/* 	swiper */
	.posts-swiper .swiper-nav button{
		width: 40px;
	}

	.posts-swiper .post-item .post-title a{
		min-height: 48px;
	}

	/* 	 */
	.sc-branch{
		padding-block: 52px;
	}
	.sc-branch .box {
		padding: 48px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.sc-branch .box .sc-title {
		text-align: left;
		margin-bottom: 0 !important;
	}

	.sc-branch .box .link{
		margin: 0;
		padding: 13px 16px 11px;
	}
}