/*
Theme Name: gm
Description: This is a child theme for gm
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
	/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
body {
	/* Font chữ chính được ưu tiên */
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

	/* Các thông số bổ trợ thường thấy trên trang */
	font-size: 16px;
	line-height: 1.6; /* Khoảng cách dòng giúp dễ đọc hơn */
	color: #ffffff;    /* Màu chữ mặc định (thường là trắng trên nền tối) */
	-webkit-font-smoothing: antialiased; /* Làm mượt chữ trên trình duyệt Chrome/Safari */
}


h2:not(.post-title) {
	font-size: 24px;
	font-weight: bold;
	background: linear-gradient(90deg, #ff9c00, #9a0000);
	padding: 10px 20px;
	border-radius: 5px;
	color:#fff !important
}

/* Background Ligh */
:root {
	--primary: #f4a038;
	--primary-dark: #921d11;
	--accent: #ffbd0d;
	--text: #ffffff;
	--text-inverse: #ffffff;
	--border: color-mix(in srgb, var(--primary-dark) 30%, transparent);
	--hover: color-mix(in srgb, var(--primary) 10%, transparent);
	--radius: 12px;
}

.content-home,
.taxonomy-description {
	max-height: 600px;
	overflow-y: scroll;
	padding-right: 8px;
	text-align: justify;
	padding: 10px 15px;
}

.taxonomy-description {
	max-height: 200px;
}

.content-home::-webkit-scrollbar,
.taxonomy-description::-webkit-scrollbar {
	width: 8px;
}

.content-home::-webkit-scrollbar-track,
.taxonomy-description::-webkit-scrollbar-track {
	background: rgba(18, 24, 31, 0.06);
	border-radius: 10px;
}

.content-home::-webkit-scrollbar-thumb,
.taxonomy-description::-webkit-scrollbar-thumb {
	background: linear-gradient(181deg, var(--primary), var(--primary-dark));
	border-radius: 10px;
}

.content-home::-webkit-scrollbar-thumb:hover,
.taxonomy-description::-webkit-scrollbar-thumb:hover {
	filter: brightness(1.15);
}

.content-home,
.taxonomy-description {
	scrollbar-width: thin;
	scrollbar-color: var(--primary) rgba(18, 24, 31, 0.06);
	margin-bottom: 20px
}

table {
	overflow: hidden;
	border-radius: var(--radius);
	border-collapse: separate;
	border-spacing: 0;
	color: var(--text);
	font-family: inherit;
	border:1px solid var(--primary)
}

table tr {
	transition: background-color 0.25s ease;
}

table tbody tr:nth-child(even) {
	background-color: color-mix(in srgb, var(--text) 4%, transparent);
}

table tbody tr:hover {
	background-color: var(--hover);
}

table thead tr,
table:not(:has(thead)) tr:first-child {
	background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

table thead tr:hover,
table:not(:has(thead)) tr:first-child:hover {
	background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

table thead th,
table thead td,
table:not(:has(thead)) tr:first-child th,
table:not(:has(thead)) tr:first-child td {
	color: var(--text-inverse);
	font-weight: 800;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.6px;
}

table th,
table td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
	color: var(--text);
}

table th:first-child,
table td:first-child {
	padding-left: 10px !important;
}

table tbody tr:last-child td {
	border-bottom: none;
}

table tbody td:first-child {
	width: 35%;
	color: var(--primary);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.6px;
}

table tbody td:last-child {
	font-size: 15px;
}

table:not(:has(thead)) tr:first-child td:first-child {
	color: var(--text-inverse);
}

.wp-caption img {
	border-radius: 5px 5px 0 0
}

.wp-caption .wp-caption-text {
	color: var(--text-inverse);
	background: linear-gradient(120deg, var(--primary), var(--primary-dark));
	border-radius: 0px 0px 5px 5px
}

.entry-image img {
	border-radius: 5px;
	border: 1px solid var(--border);
}

.entry-header-text .entry-divider {
	display: none
}

/* Post List */
#post-list .box-image {
	border-radius: 5px 0px 0px 5px;
	border: 1px solid var(--primary);
	overflow: hidden;
	border-right: none
}

#post-list .box-text {
	border-radius: 0px 5px 5px 0px;
	border: 1px solid var(--primary);
	overflow: hidden;
	border-left: none
}

.section-title b {
	display: none
}

.widget .current-cat {
	color: var(--text);
}

.widget .current-cat>a {
	color: var(--accent);
	font-weight: 600;
}

.section-title.section-title-center {
	justify-content: center;
	text-align: center;
}

#page-breadcrumbs {
	margin-top: 10px;
}

#page-breadcrumbs a {
	font-weight: 600;
}

#page-breadcrumbs+#content {
	padding-top: 0;
}

h1,
.section-title-main {
	display: inline-block;
	background: linear-gradient(120deg, #00c6ff, #0072ff, #7a5cff, #ff3cac, #ff8a00, #00c6ff);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradient-run 5s linear infinite;
	text-transform:uppercase;
}

@keyframes gradient-run {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

h1,
.section-title-main {
	display: inline-block;
	background: linear-gradient(120deg,
		#ff006e, #ff4d00, #ffbd0d, #fae54e,
		#00f5a0, #00d9ff, #0072ff, #7a5cff,
		#c724b1, #ff006e);
	background-size: 400% 400%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	animation: gradient-rainbow 8s ease infinite;
	filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary) 40%, transparent));
	font-weight: 800;
}

@keyframes gradient-rainbow {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.img-inner::before {
	position: absolute;
	top: 0;
	left: -75%;
	z-index: 2;
	display: block;
	content: '';
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 100%);
	transform: skewX(-25deg);
	transition: left 0.75s ease-out;
}

.img-inner:hover::before {
	left: 125%;
}