/**
 * Trang Giới thiệu — chỉ chứa CSS cho các khối riêng của trang này.
 *
 * Nút, thẻ, timeline, dải số liệu, banner CTA đều lấy từ components.css.
 * Ở đây chỉ có: hero 3 cột + blob chân dung, trích dẫn viết tay, lưới chia
 * vạch dọc và vài chỉnh nhỏ cho dải số liệu.
 *
 * Tiền tố `.gt-` = "giới thiệu", tránh đụng class của 4 trang chạy song song.
 */

/* ═════════════════════════════════════════════════════════
 * 1. HERO
 * ═════════════════════════════════════════════════════════ */
.gt-hero {
	background: var(--htd-grad-hero);
}

.gt-hero__grid {
	display: grid;
	/* Cột giữa hẹp hơn vì blob tràn ra hai bên; cột phải rộng nhất cho timeline. */
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.2fr);
	gap: var(--htd-space-8);
	align-items: center;
}

/* ── Cột trái: lời chào, tên, chữ ký ───────────────────── */
.gt-hero__hello {
	margin-bottom: var(--htd-space-3);
	font-size: var(--htd-text-4xl);
	line-height: 1;
}

.gt-hero__title {
	margin-bottom: var(--htd-space-6);
	/*
	 * Không dùng --htd-text-5xl: hero chia 3 cột nên cột trái chỉ rộng ~1/3
	 * container, cỡ 5xl sẽ làm "Thầy Đạt." tràn dòng.
	 */
	font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);
}

.gt-hero__line {
	display: block;
}

.gt-hero__line--accent {
	color: var(--htd-primary);
}

.gt-hero__lead {
	line-height: var(--htd-leading-relaxed);
	color: var(--htd-ink-600);
}

/* Chữ ký tay: chữ script + nét gạch chân mô phỏng nét bút. */
.gt-hero__sign {
	display: inline-block;
	margin-top: var(--htd-space-10);
	padding-right: var(--htd-space-8);
	padding-bottom: var(--htd-space-1);
	border-bottom: 2px solid var(--htd-ink-800);
	font-size: var(--htd-text-4xl);
	line-height: 1;
	color: var(--htd-ink-900);
}

.gt-hero__sign-name {
	margin-top: var(--htd-space-3);
	font-size: var(--htd-text-sm);
	color: var(--htd-ink-600);
}

/* ── Cột giữa: chân dung trong khối blob ───────────────── */
.gt-hero__figure {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/*
 * Blob bo cong bất đối xứng: 8 giá trị border-radius cho cạnh mềm như giọt
 * mực. Đặt thấp hơn mép trên ảnh để đầu Thầy Đạt nhô lên khỏi khối màu.
 */
.gt-hero__blob {
	position: absolute;
	inset: 15% -10% 3% -10%;
	z-index: var(--htd-z-decor);
	border-radius: 58% 42% 47% 53% / 46% 58% 42% 54%;
	background: linear-gradient(155deg, var(--htd-blue-200) 0%, var(--htd-blue-400) 100%);
}

.gt-hero__portrait {
	position: relative;
	z-index: var(--htd-z-content);
	width: 100%;
	max-width: 24rem;
	height: auto;
	object-fit: contain;
}

/* ── Cột phải: hành trình ──────────────────────────────── */
.gt-hero__journey-title {
	margin-bottom: var(--htd-space-8);
	font-size: var(--htd-text-2xl);
	color: var(--htd-primary);
}

/* Mốc thời gian trong thiết kế là đĩa trắng nổi, không phải ô nền xanh nhạt. */
.gt-dot {
	border: 1px solid var(--htd-border);
	background: var(--htd-surface);
	box-shadow: var(--htd-shadow-md);
}

/* ═════════════════════════════════════════════════════════
 * 2. KHỐI TRẮNG BO GÓC (triết lý + vì sao)
 * ═════════════════════════════════════════════════════════ */
.gt-panel {
	padding: clamp(var(--htd-space-8), 4vw, var(--htd-space-16)) clamp(var(--htd-space-5), 3vw, var(--htd-space-10));
}

/* ═════════════════════════════════════════════════════════
 * 3. TRIẾT LÝ GIẢNG DẠY
 * ═════════════════════════════════════════════════════════ */
.gt-philosophy {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
	gap: var(--htd-space-10);
	align-items: center;
}

.gt-quote {
	position: relative;
	margin: 0;
	/* Chừa đúng chỗ cho bình hóa chất bên dưới, xem .gt-quote__flask */
	padding-bottom: var(--htd-space-20);
}

.gt-quote__text {
	margin: 0;
	font-family: var(--htd-font-script);
	font-size: var(--htd-text-2xl);
	font-weight: var(--htd-weight-bold);
	line-height: 2;
	color: var(--htd-ink-800);
}

.gt-quote__mark {
	font-family: var(--htd-font-display);
	font-size: var(--htd-text-3xl);
	font-weight: var(--htd-weight-extrabold);
	line-height: 1;
	color: var(--htd-primary);
	vertical-align: -0.15em;
}

.gt-quote__mark--close {
	margin-left: var(--htd-space-2);
}

/* Bình hóa chất nhỏ nép dưới trích dẫn, đúng vị trí trong thiết kế. */
/*
 * Ghim CHIỀU CAO chứ không phải chiều rộng: ảnh thật có thể tỉ lệ bất kỳ, nếu
 * để height:auto thì ảnh cao hơn phần padding chừa sẵn và đè lên dòng cuối
 * của trích dẫn. Cao tối đa 4.5rem < padding-bottom 5rem của .gt-quote.
 */
.gt-quote__flask {
	position: absolute;
	left: 0;
	bottom: 0;
	width: auto;
	height: clamp(3rem, 5vw, 4.5rem);
}

/* ═════════════════════════════════════════════════════════
 * 4. LƯỚI CHIA BẰNG VẠCH DỌC (3 giá trị / 5 lý do)
 * ═════════════════════════════════════════════════════════ */
.gt-divided {
	display: grid;
	gap: var(--htd-space-6);
}

.gt-divided--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gt-divided--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.gt-divided > * {
	padding-inline: var(--htd-space-4);
}

.gt-divided > * + * {
	border-left: 1px solid var(--htd-border);
}

/* Icon giá trị: không nền, chỉ hình — như bộ icon minh họa trong thiết kế. */
.gt-value__icon {
	color: var(--htd-primary);
}

.gt-value__icon--rose { color: var(--htd-rose); }
.gt-value__icon--gold { color: var(--htd-gold); }

/* ═════════════════════════════════════════════════════════
 * 5. NHỮNG CON SỐ BIẾT NÓI
 * ═════════════════════════════════════════════════════════ */
.gt-stats {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	row-gap: var(--htd-space-8);
	padding-block: var(--htd-space-10);
}

.gt-stats__title {
	grid-column: 1 / -1;
	margin-bottom: var(--htd-space-2);
	font-size: var(--htd-text-3xl);
	text-align: center;
	color: var(--htd-ink-on-dark);
}

/* Thiết kế xếp dọc icon → số → nhãn, khác mặc định (nằm ngang) của .htd-stat. */
.gt-stats .htd-stat {
	flex-direction: column;
	gap: var(--htd-space-3);
	text-align: center;
}

.gt-stats .htd-stat__icon {
	color: var(--htd-ink-on-dark);
}

/* ═════════════════════════════════════════════════════════
 * 6. CÂU CHUYỆN CỦA THẦY ĐẠT
 * ═════════════════════════════════════════════════════════ */
/* Gạch ngắn dưới tiêu đề section, chỉ có ở khối này. */
.gt-underline {
	display: block;
	width: 3rem;
	height: 3px;
	border-radius: var(--htd-radius-pill);
	background: var(--htd-primary);
}

.gt-story {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: var(--htd-space-10);
	align-items: center;
}

.gt-story__media {
	margin: 0;
}

.gt-story__body {
	display: grid;
	gap: var(--htd-space-5);
}

.gt-story__text {
	line-height: var(--htd-leading-relaxed);
	color: var(--htd-ink-600);
}

.gt-story__mission {
	font-size: var(--htd-text-lg);
	color: var(--htd-primary);
}

.gt-story__quote {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--htd-space-3);
	margin: 0;
	padding: var(--htd-space-5) var(--htd-space-6);
	border-radius: var(--htd-radius-lg);
	background: var(--htd-primary-soft);
	font-weight: var(--htd-weight-medium);
	line-height: var(--htd-leading-relaxed);
	color: var(--htd-ink-800);
}

/* Bình hóa chất nằm ngoài lề phải container — chỉ hiện khi màn đủ rộng. */
.gt-story__flask {
	position: absolute;
	right: calc(var(--htd-space-16) * -1);
	bottom: 0;
	width: 5.5rem;
	height: auto;
	pointer-events: none;
	user-select: none;
}

/* ═════════════════════════════════════════════════════════
 * 7. BANNER CTA
 * ═════════════════════════════════════════════════════════ */
.gt-cta__decor {
	width: clamp(6rem, 13vw, 11rem);
	height: auto;
}

/* ═════════════════════════════════════════════════════════
 * 8. RESPONSIVE
 * ═════════════════════════════════════════════════════════ */

/* Không đủ chỗ cho lề trang trí bên ngoài container. */
@media (max-width: 1320px) {
	.gt-story__flask { display: none; }
}

/* Laptop nhỏ / tablet ngang: timeline xuống hàng dưới, chiếm cả bề ngang. */
@media (max-width: 1100px) {
	.gt-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--htd-space-10);
	}

	.gt-hero__journey {
		grid-column: 1 / -1;
	}

	.gt-hero__portrait {
		max-width: 20rem;
	}
}

@media (max-width: 1024px) {
	.gt-divided--5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Vạch dọc chỉ đúng khi mọi mục nằm trên một hàng — xuống hàng thì bỏ. */
	.gt-divided--5 > * + * {
		border-left: 0;
	}

	.gt-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gt-stats .htd-stat + .htd-stat {
		border-left: 0;
	}
}

/* Tablet dọc */
@media (max-width: 900px) {
	.gt-philosophy,
	.gt-story {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--htd-space-8);
	}

	.gt-quote {
		padding-bottom: var(--htd-space-20);
	}
}

@media (max-width: 768px) {
	.gt-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gt-hero__figure {
		max-width: 22rem;
		margin-inline: auto;
	}

	.gt-divided--3,
	.gt-divided--5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gt-divided > * + * {
		border-left: 0;
	}

	.gt-divided > * {
		padding-inline: 0;
	}

	.gt-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Điện thoại */
@media (max-width: 520px) {
	.gt-divided--3,
	.gt-divided--5,
	.gt-stats {
		grid-template-columns: minmax(0, 1fr);
	}

	.gt-hero__sign {
		margin-top: var(--htd-space-8);
	}

	.gt-quote__text {
		font-size: var(--htd-text-xl);
		line-height: 1.9;
	}

	.gt-quote__flask {
		width: 3.25rem;
	}
}
