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

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

/* =========================================================
   EE88 - Bố cục bài viết trang chủ (SEO typography & layout)
   ========================================================= */
.ee88-article {
	max-width: 820px;
	margin: 0 auto;
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #1f2430;
	text-align: left;
}

.ee88-article p {
	line-height: 1.8;
	font-family: inherit;
	font-size: 1rem;
	margin: 0 0 1.05em;
}

.ee88-article h1 {
	font-size: clamp(1.6rem, 3.6vw, 2.15rem);
	line-height: 1.28;
	margin: 0 0 0.55em;
	letter-spacing: -0.01em;
	color: #101522;
}

.ee88-article h2 {
	font-size: clamp(1.3rem, 2.6vw, 1.6rem);
	line-height: 1.35;
	margin: 2.4em 0 0.7em;
	padding-bottom: 0.42em;
	border-bottom: 2px solid #e8eaee;
	color: #101522;
	scroll-margin-top: 96px;
}

.ee88-article h3 {
	font-size: clamp(1.08rem, 2vw, 1.22rem);
	line-height: 1.45;
	margin: 1.9em 0 0.55em;
	color: #16324f;
	scroll-margin-top: 96px;
}

/* Thanh thông tin tác giả / ngày cập nhật */
.ee88-meta-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 1.6em;
	padding: 0.75em 1em;
	background: #f6f8fb;
	border: 1px solid #e6eaf0;
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #55607a;
}

.ee88-meta-bar a {
	color: #0f5693;
	font-weight: 600;
	text-decoration: none;
}

.ee88-meta-bar a:hover {
	text-decoration: underline;
}

.ee88-meta-sep {
	color: #b9c2d0;
}

/* Mục lục */
.ee88-toc {
	background: #f7f9fc;
	border-left: 4px solid #0f5693;
	padding: 18px 22px;
	margin: 0 0 2em;
	border-radius: 0 8px 8px 0;
}

.ee88-toc h2 {
	font-size: 1.02rem;
	margin: 0 0 0.7em;
	padding: 0;
	border: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #0f5693;
}

.ee88-toc ol {
	margin: 0 0 0 1.2em;
	padding: 0;
	font-size: 0.95rem;
}

.ee88-toc li {
	margin-bottom: 0.42em;
}

.ee88-toc a {
	color: #22304a;
	text-decoration: none;
}

.ee88-toc a:hover {
	color: #0f5693;
	text-decoration: underline;
}

/* Danh sách */
.ee88-article ul,
.ee88-article ol {
	margin: 0 0 1.2em 1.35em;
	padding: 0;
}

.ee88-article li {
	margin-bottom: 0.5em;
	line-height: 1.75;
}

/* Bảng dữ liệu */
.ee88-article table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.ee88-article th,
.ee88-article td {
	border: 1px solid #e2e6ec;
	padding: 10px 13px;
	text-align: left;
	vertical-align: top;
}

.ee88-article thead th {
	background: #eef2f8;
	font-weight: 700;
	color: #16324f;
}

.ee88-article tbody tr:nth-child(even) {
	background: #fafbfd;
}

.ee88-article caption {
	caption-side: bottom;
	font-size: 0.8125rem;
	color: #6b7688;
	padding-top: 8px;
	text-align: left;
	line-height: 1.5;
}

/* Hình ảnh */
.ee88-figure {
	margin: 1.8em 0;
}

.ee88-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.ee88-figure figcaption {
	margin-top: 0.6em;
	font-size: 0.85rem;
	color: #6b7688;
	text-align: center;
	line-height: 1.55;
}

/* Hộp ghi chú & cảnh báo */
.ee88-note-box,
.ee88-warning-box {
	margin: 1.7em 0;
	padding: 15px 20px;
	border-radius: 0 8px 8px 0;
	font-size: 0.98rem;
}

.ee88-note-box {
	background: #eef5ff;
	border-left: 4px solid #0f5693;
}

.ee88-warning-box {
	background: #fff8e6;
	border-left: 4px solid #e0a11b;
}

.ee88-note-box p:last-child,
.ee88-warning-box p:last-child {
	margin-bottom: 0;
}

/* Khối CTA */
.ee88-cta {
	background: linear-gradient(135deg, #14375f, #0f5693);
	color: #fff;
	padding: 22px 26px;
	border-radius: 10px;
	margin: 2em 0;
}

.ee88-cta p {
	color: #fff;
	margin-bottom: 0.7em;
}

.ee88-cta p:last-child {
	margin-bottom: 0;
}

.ee88-cta a {
	color: #ffe9a8;
	text-decoration: underline;
	font-weight: 600;
}

/* Hộp tác giả */
.ee88-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: #f8f9fb;
	border: 1px solid #e6eaf0;
	border-radius: 10px;
	padding: 20px 22px;
	margin-top: 2.6em;
}

.ee88-author-avatar {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0;
}

.ee88-author-text {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ee88-author-text p {
	font-size: 0.9rem;
	line-height: 1.7;
	margin-bottom: 0.6em;
}

.ee88-author-role {
	font-size: 0.75rem !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0f5693;
	font-weight: 700;
	margin-bottom: 0.2em !important;
}

.ee88-author-name {
	font-size: 1.02rem !important;
	margin-bottom: 0.5em !important;
}

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

	.ee88-article {
		font-size: 1rem;
	}

	.ee88-article p {
		font-size: 1rem;
		line-height: 1.75;
	}

	.ee88-article h2 {
		margin-top: 1.9em;
		scroll-margin-top: 76px;
	}

	.ee88-article h3 {
		scroll-margin-top: 76px;
	}

	.ee88-article table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		font-size: 0.875rem;
		white-space: nowrap;
	}

	.ee88-article th,
	.ee88-article td {
		white-space: normal;
		min-width: 130px;
	}

	.ee88-toc {
		padding: 15px 17px;
	}

	.ee88-author-box {
		flex-direction: column;
		gap: 12px;
		padding: 18px;
	}

	.ee88-cta {
		padding: 18px 20px;
	}
}
