/* TinLaw – Trang hồ sơ luật sư (page-luat-su.php). Mọi style nằm trong .tl-lawyer */

.tl-lawyer {
	--tl-blue: #2266AD;
	--tl-blue-deep: #174A80;
	--tl-blue-tint: #EEF4FB;
	--tl-gold: linear-gradient(135deg, #f4e0a0 0%, #d9bd66 46%, #c49a43 100%);
	--tl-gold-solid: #d9bd66;   /* màu dự phòng / outline / gạch chân */
	--tl-gold-soft: #FBF5E4;
	--tl-ink: #1B2533;
	--tl-text: #3D4A5C;
	--tl-muted: #66758A;
	--tl-line: #DDE5EF;
	color: var(--tl-text);
	overflow-x: clip; /* chặn cuộn ngang trên mobile */
}

.tl-lawyer img { max-width: 100%; }

.tl-lawyer h1,
.tl-lawyer h2,
.tl-lawyer h3 {
	color: var(--tl-ink);
	letter-spacing: -0.01em;
}

.tl-lawyer a:focus-visible {
	outline: 3px solid var(--tl-gold-solid);
	outline-offset: 3px;
}

/* Nút */
.tl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition: background-color .15s, border-color .15s, color .15s;
}

.tl-lawyer .tl-btn--gold { background: var(--tl-gold); color: var(--tl-ink); }
.tl-lawyer .tl-btn--gold:hover { background: var(--tl-gold); color: var(--tl-ink); filter: brightness(1.06); }
.tl-lawyer .tl-btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.tl-lawyer .tl-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.tl-lawyer .tl-btn--blue { background: var(--tl-blue); color: #fff; }
.tl-lawyer .tl-btn--blue:hover { background: var(--tl-blue-deep); color: #fff; }

/* 1. Hero */
.tl-hero {
	position: relative;
	padding: 20px 0 72px;
	background: var(--tl-blue);
	color: #fff;
	overflow: hidden;
}

.tl-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 38%;
	height: 6px;
	background: var(--tl-gold);
}

.tl-crumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.tl-crumb li { margin: 0; color: rgba(255, 255, 255, .7); }
.tl-crumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .4); }
.tl-crumb a { color: #fff; }
.tl-crumb a:hover { color: var(--tl-gold-solid); }

.tl-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	margin-top: 40px;
}

.tl-lawyer .tl-hero__name {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.15;
}

.tl-hero__role {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 600;
}

.tl-hero__lead {
	max-width: 58ch;
	margin: 0 0 28px;
	color: rgba(255, 255, 255, .88);
	font-size: 17px;
	line-height: 1.7;
}

.tl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
}

.tl-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .22);
}

.tl-stats > div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 6px;
	padding-right: 16px;
}

.tl-stats > div + div {
	padding-left: 20px;
	border-left: 1px solid rgba(255, 255, 255, .22);
}

.tl-stats dd {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
}

.tl-stats dt {
	margin: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

/* Chữ màu vàng gradient */
.tl-crumb [aria-current],
.tl-hero__role,
.tl-stats dd,
.tl-contact .is-primary strong {
	color: var(--tl-gold-solid);
	background: var(--tl-gold);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Link Đoàn Luật sư TP Hà Nội */
.tl-lawyer .tl-bar-link {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--tl-gold-solid);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.tl-lawyer .tl-bar-link:hover { text-decoration-thickness: 2px; }
.tl-prose .tl-bar-link,
.tl-facts .tl-bar-link { color: var(--tl-blue); }

/* Ảnh chân dung + khung vàng lệch – điểm nhấn của trang */
.tl-hero__photo {
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: 0 0 0 auto;
}

.tl-hero__photo::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	padding: 2px;                      /* độ dày khung */
	border-radius: 4px;
	background: var(--tl-gold);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

.tl-lawyer .tl-hero__img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: top center;
	border-radius: 4px;
	background: var(--tl-blue-deep);
}

.tl-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .35);
	font-size: 56px;
	font-weight: 700;
}

.tl-verified {
	position: absolute;
	left: -20px;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 10px 12px;
	border-radius: 6px;
	background: #fff;
	color: var(--tl-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	box-shadow: 0 8px 24px rgba(10, 30, 60, .18);
}

.tl-verified svg { flex: none; color: var(--tl-blue); }
.tl-verified span { display: block; color: var(--tl-muted); font-size: 12px; font-weight: 400; }

/* 2. Kinh nghiệm và chuyên môn */
.tl-about { padding: 80px 0 72px; background: #fff; }

.tl-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.tl-about h2,
.tl-posts__head h2 {
	margin: 0 0 20px;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.25;
}

.tl-prose { max-width: 70ch; font-size: 16px; line-height: 1.75; }
.tl-prose p { margin: 0 0 16px; }
.tl-prose strong { color: var(--tl-ink); }

.tl-about h3 { margin: 28px 0 14px; font-size: 18px; }

.tl-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tl-tags li {
	margin: 0;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--tl-blue-tint);
	color: var(--tl-blue-deep);
	font-size: 14px;
}

.tl-note {
	margin: 28px 0 0;
	padding: 16px 20px 16px 24px;
	border-radius: 0;
	background: var(--tl-gold) left top / 4px 100% no-repeat, var(--tl-gold-soft);
	color: var(--tl-ink);
	font-size: 15px;
	line-height: 1.65;
}

.tl-card {
	position: sticky;
	top: 110px;
	padding: 24px;
	border: 1px solid var(--tl-line);
	border-top: 4px solid var(--tl-blue);
	border-radius: 0 0 8px 8px;
	background: #fff;
}

.tl-lawyer .tl-card__title { margin: 0 0 12px; font-size: 18px; }

.tl-facts { margin: 0; }

.tl-facts > div {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--tl-line);
}

.tl-facts dt { margin: 0; color: var(--tl-muted); font-size: 14px; font-weight: 400; }
.tl-facts dd { margin: 0; color: var(--tl-ink); font-size: 14px; font-weight: 600; }

.tl-contact {
	display: grid;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.tl-contact li { margin: 0; }

.tl-contact a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 6px;
	background: var(--tl-blue-tint);
	color: var(--tl-ink);
	font-size: 14px;
	text-decoration: none;
}

.tl-contact a:hover { background: #E0EBF8; color: var(--tl-ink); }
.tl-contact strong { color: var(--tl-blue); word-break: break-word; text-align: right; }
.tl-contact .is-primary a { background: var(--tl-blue); color: #fff; }
.tl-contact .is-primary a:hover { background: var(--tl-blue-deep); color: #fff; }

.tl-social {
	display: flex;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.tl-social li { flex: 1; margin: 0; }

.tl-social a {
	display: block;
	padding: 8px;
	border: 1px solid var(--tl-line);
	border-radius: 6px;
	color: var(--tl-text);
	font-size: 13px;
	text-align: center;
	text-decoration: none;
}

.tl-social a:hover { border-color: var(--tl-blue); color: var(--tl-blue); }

/* 3. Bài viết – shortcode [blog_posts] 3 cột × 3 hàng */
.tl-posts { padding: 72px 0; background: #F6F8FB; }

.tl-posts__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}

.tl-posts__head h2 { margin: 0; }
.tl-posts__head p { margin: 0; color: var(--tl-muted); }
.tl-posts__head strong { color: var(--tl-blue); font-size: 20px; }

.tl-posts .row .col { padding-bottom: 30px; }
.tl-posts .col-inner,
.tl-posts .col-inner > a { display: block; height: 100%; }

.tl-posts .box-blog-post {
	height: 100%;
	border: 1px solid var(--tl-line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color .15s;
}

.tl-posts .box-blog-post:hover { border-color: var(--tl-blue); }
.tl-posts .box-blog-post .box-text { padding: 16px 18px 20px; }

.tl-posts .post-title {
	margin: 0;
	color: var(--tl-ink);
	font-size: 16px;
	line-height: 1.45;
	transition: color .15s;
}

.tl-posts .box-blog-post:hover .post-title { color: var(--tl-blue); }

.tl-posts .is-divider {
	max-width: 32px;
	height: 3px;
	margin: 10px 0;
	background: var(--tl-gold);
	opacity: 1;
}

.tl-posts .from_the_blog_excerpt {
	color: var(--tl-muted);
	font-size: 14px;
	line-height: 1.6;
}

.tl-posts__more { margin-top: 8px; text-align: center; }

/* 4. CTA */
.tl-cta { padding: 48px 0; background: var(--tl-blue); color: #fff; }

.tl-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.tl-lawyer .tl-cta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(22px, 2.4vw, 28px); }
.tl-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.tl-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===================== RESPONSIVE ===================== */

/* Tablet – breakpoint md của Flatsome (≤ 849px) */
@media (max-width: 849px) {
	.tl-hero { padding: 16px 0 56px; }
	.tl-hero::after { width: 60%; height: 5px; }

	/* Ảnh lên trên, chữ xuống dưới, căn giữa cụm ảnh */
	.tl-hero__grid { grid-template-columns: 1fr; gap: 44px; margin-top: 24px; }
	.tl-hero__photo { order: -1; max-width: 260px; margin: 0 auto; }

	/* Badge nằm giữa mép dưới ảnh, không tràn khi tên đoàn luật sư dài */
	.tl-verified {
		left: 50%;
		bottom: -22px;
		width: max-content;
		max-width: calc(100% + 24px);
		transform: translateX(-50%);
	}

	.tl-about__grid { grid-template-columns: 1fr; gap: 36px; }
	.tl-prose { max-width: none; }
	.tl-card { position: static; }

	.tl-about { padding: 56px 0; }
	.tl-posts { padding: 56px 0; }
	.tl-cta { padding: 40px 0; }
}

/* Mobile – breakpoint sm của Flatsome (≤ 549px) */
@media (max-width: 549px) {
	/* Hero */
	.tl-crumb ol { font-size: 12px; }
	.tl-hero__grid { gap: 40px; margin-top: 18px; }
	.tl-hero__photo { max-width: 210px; }
	.tl-hero__photo::before { inset: 10px -10px -10px 10px; }
	.tl-verified { padding: 8px 12px 8px 10px; font-size: 13px; }
	.tl-verified svg { width: 18px; height: 18px; }
	.tl-verified span { font-size: 11px; }

	.tl-lawyer .tl-hero__name { font-size: clamp(26px, 7.4vw, 32px); }
	.tl-hero__role { margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
	.tl-hero__lead { margin-bottom: 22px; font-size: 15.5px; line-height: 1.65; }

	.tl-hero__actions { gap: 10px; margin-bottom: 28px; }
	.tl-hero__actions .tl-btn,
	.tl-cta__actions .tl-btn,
	.tl-posts__more .tl-btn { flex: 1 1 100%; width: 100%; min-height: 48px; }

	.tl-stats { padding-top: 16px; }
	.tl-stats > div { padding-right: 6px; }
	.tl-stats > div + div { padding-left: 12px; }
	.tl-stats dd { font-size: 24px; }
	.tl-stats dt { font-size: 12px; }

	/* Kinh nghiệm và chuyên môn */
	.tl-about { padding: 44px 0; }
	.tl-prose { font-size: 15.5px; line-height: 1.7; }
	.tl-about h3 { margin-top: 24px; }
	.tl-tags { gap: 6px; }
	.tl-tags li { padding: 6px 12px; font-size: 13px; }
	.tl-note { padding: 14px 16px 14px 20px; font-size: 14.5px; }

	.tl-card { padding: 18px 16px; }
	.tl-facts > div { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
	.tl-contact a { flex-wrap: wrap; row-gap: 2px; min-height: 48px; }
	.tl-contact strong { text-align: left; overflow-wrap: anywhere; }
	.tl-social a { display: flex; align-items: center; justify-content: center; min-height: 44px; }

	/* Bài viết: chuyển thẻ dọc thành thẻ ngang (ảnh trái, tiêu đề phải) để 9 bài không quá dài */
	.tl-posts { padding: 44px 0; }
	.tl-posts__head { margin-bottom: 20px; }
	.tl-posts__head strong { font-size: 18px; }
	.tl-posts .row .col { padding-bottom: 12px; }

	.tl-posts .box-blog-post { display: flex; align-items: stretch; }
	.tl-posts .box-blog-post .box-image {
		flex: 0 0 38%;
		width: 38% !important;
		margin: 0;
	}
	.tl-posts .box-blog-post .image-cover {
		height: 100%;
		min-height: 92px;
		padding-top: 0 !important;
	}
	.tl-posts .box-blog-post .box-text {
		flex: 1;
		min-width: 0;
		padding: 10px 12px;
	}
	.tl-posts .post-title {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
		font-size: 14.5px;
	}
	.tl-posts .is-divider,
	.tl-posts .from_the_blog_excerpt { display: none; }

	/* CTA */
	.tl-cta { padding: 36px 0; }
	.tl-cta__inner { gap: 20px; }
	.tl-cta__actions { width: 100%; gap: 10px; }
}

/* Màn hình rất hẹp (iPhone SE, Galaxy cũ ≤ 360px) */
@media (max-width: 360px) {
	.tl-stats dd { font-size: 21px; }
	.tl-stats > div + div { padding-left: 8px; }
	.tl-facts > div { grid-template-columns: 1fr; gap: 2px; }
	.tl-social { flex-wrap: wrap; }
	.tl-social li { flex: 1 1 calc(50% - 4px); }
}

@media (prefers-reduced-motion: reduce) {
	.tl-lawyer * { transition: none !important; }
}
