:root {
	--main-color-fade: #008b3b33;
	--main-color: #008b3b;
	--hover-color: #007130;
}

/* .container-xl {
	max-width: 1200px !important;
} */

.nav_header {
	background-color: var(--main-color);
}

#nav_bar {
	background-color: var(--main-color);
}

.nav_bar {
	color: white;
	background-color: var(--main-color);
}

.sub-menu-toggle {
	display: none;
}

.nav_bar li {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.nav_bar > .navbar-collapse > ul > li:hover {
	background-color: var(--hover-color);
}

.nav_bar > .navbar-collapse > ul > li > a {
	color: white !important;
	font-size: 1rem;
	font-weight: 500;
}

.nav_bar a.dropdown-item {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.nav_bar .dropdown-menu li.menu-item{
	padding-left: 0;
	padding-right: 0;
}

.nav_bar > .navbar-collapse > ul > li > ul > li > a {
	font-weight: 500;
}

.nav_bar .dropdown-menu > li > .dropdown-menu {
	margin-left: 1rem;
	margin-right: 1rem;
	border: none;
	padding-top: 0;
	padding-bottom: 0;
}

.nav_bar > .navbar-collapse > ul > li > .dropdown-menu {
	margin-bottom: 0.5rem;
}

@media (min-width: 1200px) {
	#nav_bar {
		border-radius: 0.25rem;
	}

	.nav_bar > .navbar-collapse > ul > li > .dropdown-menu {
		left: 0;
	}
	
	.nav_bar > .navbar-collapse > ul > li > ul > li > a {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		font-weight: 400;
	}
	
	.nav_bar .dropdown-menu > li > .dropdown-menu {
		margin-left: -0.5rem;
		margin-right: 0;
		border: 1px solid rgba(0,0,0,.15);
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		top:0;
		left:100%;
	}

	.dropdown-menu {
		box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
	}
}

#slideTinMoiNhat .carousel-caption {
    position: absolute;
    bottom: 0;
	right: 0;
	left: 0;
    color: #fff;
    text-align: center;
    width: 100%;
    background: #0008;
    backdrop-filter: blur(5px);
    font-size: 1rem;
    font-weight: 400;
    padding: 0.75rem 1rem 1rem;
	border-radius: 0.25rem;
}

@media (min-width: 576px) {
	#slideTinMoiNhat .carousel-caption {
		font-size: 1.2rem;
		font-weight: 500;
		padding: 0.75rem 1.25rem 1.25rem;
	}
}

@media (min-width: 768px) {
	#slideTinMoiNhat .carousel-caption {
		font-size: 1.2rem;
		font-weight: 500;
		padding: 0.75rem 1.25rem 1.25rem;
	}
}

@media (min-width: 1200px) {
	#slideTinMoiNhat .carousel-caption {
		font-size: 1.3rem;
		font-weight: 500;
		padding: 0.75rem 1.25rem 1.25rem;
	}
}

#slideTinMoiNhat .carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    opacity: .5;
    transition: opacity .6s ease;
    border-radius: 0.5rem;
}

#slideTinMoiNhat .carousel-indicators .active {
    opacity: 1;
}

/* .cat_title {
	border-bottom: 2px solid var(--main-color);
	border-bottom-left-radius: 0.3rem;
}

.cat_title a {
	display:inline-flex;
	justify-content: start;
	align-items: center;
	background-color: var(--main-color);
	color: white;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	padding: 0.25rem 0.75rem;
	border-top-left-radius: 0.3rem;
	border-top-right-radius: 0.3rem;
}

.cat_title a:hover{
	color: white;
}

.cat_title img {
	height: 1.25rem;
	margin-right: 0.25rem;
} */

.cat_title {
	border-bottom: 3px solid var(--main-color-fade);
	padding-bottom: 0.09rem;
	/* border-bottom-left-radius: 0.3rem; */
	margin-bottom: 0.75rem;
}

.cat_title a {
	display:inline-flex;
	justify-content: start;
	align-items: center;
	/* background-color: var(--main-color); */
	color: black;
	text-decoration: none;
	font-size: 1.25rem;
	font-weight: 700;
	padding-bottom: 0.25rem;
	text-transform: uppercase;
	border-bottom: 3px solid var(--main-color);
	margin-bottom: -0.5rem;
}

.cat_title a:hover{
	color: black;
}

.cat_title img {
	height: 1.5rem;
	margin-right: 0.5rem;
}

.cat_content {
	text-align: justify;
}

.cat_content a {
	color: black;
	text-decoration: none;
	font-weight: 500;
}

.cat_content a:hover {
	color: var(--hover-color);
}

.cat_content hr {
	background-color: unset;
    border-bottom: 1px dashed var(--bs-dark);
    margin: 0.5rem 0;
}

.last_post a {
	font-size: 1.15rem;
	line-height: 1;
	text-indent: 1rem;
}

.last_post p {
	margin: 0.25rem 0;
	text-indent: 1rem;
}

.bannercd img {
	width: 100%;
	height: auto;
	margin-top: 1rem;
	border-radius: 0.25rem;
}

.csdt {
	padding: 0.25rem 0;
	margin-left: 0.25rem;
}

.csdt li {
	padding: 0.25rem 0;
	font-size: 1.15rem;
}

.lienket img {
	width: 100%;
	height: auto;
	border-radius: 0.25rem;
	border: 1px solid #0002;
}

.marquee {
	overflow: hidden;
}

.page_footer {
	background: url(/media/footer_bg.png) var(--main-color) no-repeat right bottom;
	color: white;
	background-size: 40%;
}

.page_footer p {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	#mrq_slide {
		height: 327.09px;
	}
}

@media (min-width: 992px) {
	#mrq_slide {
		height: 327.91px;
	}
}

@media (min-width: 1200px) {
	#mrq_slide {
		height: 366.66px;
	}
}

@media (min-width: 1400px) {
	#mrq_slide {
		height: 426.66px;
	}
}

#mrq_vanban_md, #mrq_vanban_lg {
	min-height: 376px;
	height: 100%;
}

.search-article {
	text-align: justify;
}

/* .search-article .title {
	font-weight: 500;
} */

/* .search-article img {
	width: 100%;
	height: auto;
} */

/* @media (min-width: 576px) {
	.search-article img {
		width: 450px !important;
		max-height: 300px !important;
		max-width: 50% !important;
	}
} */

.pagination.navigation {
	justify-content: flex-end;
}

.page-numbers {
    padding: 0.25rem 0.75rem;
}

a.page-numbers {
    text-decoration: none;
    color: var(--main-color);
}

a.page-numbers:hover {
    color: var(--hover-color);
}

span.page-numbers.current {
    background-color: var(--main-color);
    border-radius: 0.25rem;
    color: white;
}

/* .ead-preview {
	min-height: 80vh;
} */

.ead-preview embed {
	/* height: 100% !important; */
	min-height: 80vh;
}

.ead-preview .ead-iframe-wrapper {
	height: 100% !important;
}

.ead-document {
    height: 100%;
	width: 100%;
    border: none;
    min-height: 500px;
    height: 80vh;
}

.wpcf7-not-valid-tip {
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 500;
}

.wpcf7 form .wpcf7-response-output {
	margin: 0 auto;
	padding: 1rem 1rem;
	border: 1px solid #b6d4fe; /* Blue */
	border-radius: 0.25rem;
	color: #084298;
    background-color: #cfe2ff;
	text-align: center;
    font-weight: bold;
}

.wpcf7 form.sent .wpcf7-response-output {
	color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc; /* Green */
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7; /* Red */
}

.wpcf7 form.spam .wpcf7-response-output {
	color: #ca6510;
    background-color: #ffe5d0;
    border-color: #feb272; /* Orange */
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5; /* Yellow */
}

@media (min-width: 992px) {
	.wpcf7 form .wpcf7-response-output {
		width: 66%;
	}
}

.fw-500 {
	font-weight: 500 !important;
}

.entry-content p{
	text-align: justify;
	text-indent: 1.5rem;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.25rem;
}

.entry-content figure {
	max-width: 100%;
}

.entry-content figcaption {
	text-align: center;
	margin-top: 0.25rem;
    font-style: italic;
    color: var(--bs-gray-dark);
}

.sl-image img {
	border-radius: 0.25rem;
}

.sl-overlay {
	background: #0003;
	/* backdrop-filter: blur(3px); */
	opacity: 1;
}

.sl-caption {
	text-align: center;
	border-radius: 0.25rem;
	backdrop-filter: blur(3px);
}

.card-body .ngg-slideshow.slick-slider {
	margin: 0 !important;
}

@media (min-width: 992px) {
	.ngg-slideshow .ngg-gallery-slideshow-image {
		height: auto !important;
	}
	
	.slick-track {
		display: flex !important;
		align-items: center;
	}
}

.comment-author img {
	border-radius: 50%;
}

.comment-author .fn {
	margin: 0 0.25rem;
}

.comment-list > li {
	margin-bottom: 0.25rem;
}

.comment-metadata > a {
	text-decoration: none;
	font-size: 0.85rem;
}

.comment-metadata {
	margin-bottom: 0.25rem;
}

.comment-awaiting-moderation {
	font-size: 0.85rem;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.home_slide_container {
	position: relative;
	width: 100%;
	padding-bottom: 66.67%;
}

img.home_slide {
	position: absolute;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
}

blockquote {
	padding: 1rem 1rem 1rem 1.5rem;
    border: 1px dashed #0002;
    border-left: 4px solid var(--main-color);
    border-radius: 0.5rem;
}

blockquote > p {
	text-indent: 0 !important;
	margin-bottom: 0;
}

#fancybox-wrap, #fancybox-content, #fancybox-outer {
    border-radius: 0.25rem;
}

#fancybox-img {
	border-radius: 0.25rem;
}

.tthc ol {
	padding-left: 0;
    list-style-position: inside;
    font-weight: 500;
	margin-bottom: 0;
}

.tthc li {
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
}

.ngg-galleryoverview {
	max-width: unset !important;
	max-height: unset !important;
}

#list_hs {
	max-height: 70vh;
	overflow-y: auto;
}

@media (min-width: 992px) {
	#list_hs {
		max-height: unset;
		height: 400px;
		overflow-y: auto;
		flex: 1 1 auto;
	}
}

@media (min-width: 1200px) {
	#list_hs::-webkit-scrollbar {
		width: 5px;
	}
	#list_hs::-webkit-scrollbar-track {
		background: #fff; 
	}
	#list_hs::-webkit-scrollbar-thumb {
		background: #fff;
		border-radius: 5px;
	}

	#list_hs:hover::-webkit-scrollbar-thumb {
		background: #ddd;
	}
}

/* banner đầu trang */

#site_title {
    font-size: clamp(1.65rem, 3.5vw, 2rem);;
    margin-top: auto;
    margin-bottom: auto;
    color: var(--hover-color);
	text-align: center;
	font-family: "Noto Serif", serif;
	font-optical-sizing: auto;
	font-weight: 800;
	font-style: normal;
	font-variation-settings: "wdth" 100;
}

#site_title .site_parent {
	font-size: clamp(0.75rem, 4vw, 1.25rem);
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-family: "Nunito", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
}

#img_logo {
    border-right: 1px solid var(--hover-color);
	max-width: 30vw;
	max-height: 120px;
}

/* @media (min-width: 576px) {
	#site_title {
		padding-left: 1.5rem;
	}
} */

.block {
	/* margin: 0.5rem 0 1.25rem; */
	aspect-ratio: 3 / 2;
	height: auto;
	padding: 1.5rem;
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: end;
	overflow: hidden;
	border-radius: 0.5rem;
}

.block_background {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	background-size: cover;
	background-position: center;
	border-radius: 0.5rem;
	z-index: -1;
	transform: scale(1, 1);
	transition: transform 0.25s;
}

.block::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-image: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0),
		rgba(0, 0, 0, 0.4),
		rgba(0, 0, 0, 0.9)
	);
	z-index: -1;
	backdrop-filter: blur(0px);
	border-radius: 0.5rem;

	transition: backdrop-filter 0.25s;
}

.block_title {
	color: white;
	font-weight: 600;
	font-size: 1.5rem;
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.5rem;
	transition: all 0.25s;
}

.block_content {
	font-size: 0.95rem;
	opacity: 0;
	color: white;
	transition: all 0.25s;
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	top: 80%;
	bottom: 1.5rem;
}

.block_content::after {
	content: "";
	position: absolute;
	width: calc(100% + 3rem);
	height: 3rem;
	bottom: -4.5rem;
	left: 0;
	background-image: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0),
		rgba(0, 0, 0, 1)
	);
	z-index: 1;
	transition: all 0.25s;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.block:hover::after {
	backdrop-filter: blur(5px);
}

.block:hover .block_title {
	bottom: 40%;
}

.block:hover .block_content {
	opacity: 1;
	top: 65%;
}

.block:hover .block_content::after {
  	bottom: -1.5rem;
}

.block:hover .block_background {
	transform: scale(1.1, 1.1);
}

.text-main {
	color: var(--main-color) !important;
}

.bg-main {
	background-color: var(--main-color) !important;
}

.sqr {
	position: relative;
	border-radius: 0.5rem;
    border: 1px solid #0003;
    padding: 0.5rem 1.25rem;
    height: 100%;
	background-color: white;
	box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
	cursor: pointer;
	transition: box-shadow 0.2s;
}

.sqr:hover {
	box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.sqr img {
	padding: 0.75rem;
    aspect-ratio: 1 / 1;
	border-radius: 1.5rem !important;
}

.sqr_title {
    text-align: center;
    color: var(--hover-color);
    font-size: 1rem;
    font-weight: 500;
}

/* .sqr img {
	transition: transform 0.25s;
}

.sqr::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: #fff8;
	opacity: 0;
	border-radius: 0.5rem;
	z-index: 1;

	transition: opacity 0.25s, backdrop-filter 0.25s;
}

.sqr::after {
	content: 'Chi tiết';
	position: absolute;
    font-size: 1.25rem;
	background-color: var(--main-color);
	color: white;
	padding: 0.25rem 0.75rem;
	opacity: 0;
	border-radius: 0.25rem;
	z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;

	transition: opacity 0.25s;
	cursor: pointer;
}

.sqr:hover::before {
	opacity: 1;
	backdrop-filter: blur(5px);
}

.sqr:hover::after {
	opacity: 1;
}

.sqr:hover img {
	transform: scale(1.15);
} */

.btn-main {
	color: white !important;
	background-color: var(--main-color) !important;
}

.btn-main:hover, .btn-main:focus {
	background-color: var(--hover-color) !important;
}

.navbar-nav > li.active {
    background-color: var(--hover-color);
}

.header_image {
    max-width: 50%;
	height: 140px;
}

.header_image > img {
	height: 100%;
	width: auto;
	max-width: 100%;
	border-radius: 0.25rem!important;
}

* {
  contain-intrinsic-size: unset !important;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--main-color) !important;
}

.nav_slide {
	background-image: url(/media/header-bg.png);
    background-position: right;
}