/**
 * About page — mirrors the visual reference at html_tntech/gioi-thieu.html.
 */

.tntech-about {
	background: #fff;
	padding-top: 5rem;
}

.tntech-about__hero {
	position: relative;
	display: flex;
	min-height: 360px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tntech-about__hero-image,
.tntech-about__hero-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tntech-about__hero-image {
	object-fit: cover;
	object-position: center;
}

.tntech-about__hero-overlay {
	background: rgb(0 0 0 / 50%);
}

.tntech-about__hero-content {
	position: relative;
	z-index: 1;
	padding-top: 6rem;
	padding-bottom: 6rem;
	text-align: center;
}

.tntech-about__hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 700;
	line-height: 1.1;
	text-shadow: 0 2px 14px rgb(0 0 0 / 25%);
}

.tntech-about__body {
	background: #f5f4f0;
	padding: 4rem 0 8rem;
}

.tntech-about__mosaic {
	display: none;
}

.tntech-about__mobile-image {
	margin: 0 1rem 2rem;
}

.tntech-about__mobile-image img {
	display: block;
	width: 100%;
	max-height: 520px;
	border-radius: 1rem;
	box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
	object-fit: cover;
}

.tntech-about__content {
	display: grid;
	gap: 2rem;
}

.tntech-about__copy {
	max-width: 900px;
}

.tntech-about__copy h2 {
	margin: 0 0 1.5rem;
	color: #212529;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.35;
}

.tntech-about__copy h2 span {
	color: #ff9c00;
}

.tntech-about__copy p {
	margin: 0 0 1rem;
	color: #6c757d;
	font-size: 1rem;
	line-height: 1.75;
}

.tntech-about__copy p:first-of-type,
.tntech-about__copy p:last-of-type {
	font-size: 1.125rem;
}

.tntech-about__copy p:last-child {
	margin-bottom: 0;
}

.tntech-about__cta {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}

.tntech-about__cta .btn-primary {
	padding: 0.75rem 2rem;
	font-size: 1.125rem;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.tntech-about__hero {
		min-height: 420px;
	}

	.tntech-about__body {
		padding-bottom: 16rem;
	}
}

@media (min-width: 1024px) {
	.tntech-about__mosaic {
		display: grid;
		width: 100%;
		margin-bottom: 3rem;
		padding: 0 1rem;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: repeat(10, 72px);
		gap: 1rem;
	}

	.tntech-about__mosaic-image {
		width: 100%;
		height: 100%;
		border-radius: 0.5rem;
		object-fit: cover;
	}

	.tntech-about__mosaic-image--1 {
		grid-column: 1;
		grid-row: 2 / span 8;
	}

	.tntech-about__mosaic-image--2 {
		grid-column: 2 / span 3;
		grid-row: 1 / span 5;
	}

	.tntech-about__mosaic-image--3 {
		grid-column: 2 / span 3;
		grid-row: 6 / span 5;
	}

	.tntech-about__mosaic-image--4 {
		grid-column: 5 / span 3;
		grid-row: 2 / span 8;
	}

	.tntech-about__mosaic-image--5 {
		grid-column: 8 / span 3;
		grid-row: 1 / span 10;
	}

	.tntech-about__mosaic-image--6 {
		grid-column: 11 / span 2;
		grid-row: 2 / span 8;
	}

	.tntech-about__mobile-image {
		display: none;
	}

	.tntech-about__content {
		grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
		align-items: start;
	}

	.tntech-about__cta {
		justify-content: flex-end;
	}
}

@media (max-width: 782px) {
	body.admin-bar .tntech-about {
		padding-top: 5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tntech-about__hero-image {
		transform: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Elementor HTML widget compatibility                                        */
/*                                                                            */
/* Elementor content is stored in the database, so Tailwind cannot discover   */
/* its dynamic utility classes during the theme build. These rules mirror the  */
/* about-page utilities used by the existing Elementor HTML widgets.           */
/* -------------------------------------------------------------------------- */

.elementor .elementor-widget-html section.min-h-\[360px\] {
	min-height: 360px !important;
}

.elementor .elementor-widget-html .text-\[\#FF9C00\] {
	color: #ff9c00 !important;
}

@media (min-width: 768px) {
	.elementor .elementor-widget-html section.md\:min-h-\[420px\] {
		min-height: 420px !important;
	}
}

@media (min-width: 1024px) {
	.elementor .elementor-widget-html .hidden.lg\:grid {
		display: grid !important;
		width: 100% !important;
		grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
		grid-template-rows: repeat(10, 72px) !important;
		gap: 1rem !important;
	}

	.elementor .elementor-widget-html .hidden.lg\:grid > img:nth-child(1) {
		grid-column: 1 !important;
		grid-row: 2 / span 8 !important;
	}

	.elementor .elementor-widget-html .hidden.lg\:grid > img:nth-child(2) {
		grid-column: 2 / span 3 !important;
		grid-row: 1 / span 5 !important;
	}

	.elementor .elementor-widget-html .hidden.lg\:grid > img:nth-child(3) {
		grid-column: 2 / span 3 !important;
		grid-row: 6 / span 5 !important;
	}

	.elementor .elementor-widget-html .hidden.lg\:grid > img:nth-child(4) {
		grid-column: 5 / span 3 !important;
		grid-row: 2 / span 8 !important;
	}

	.elementor .elementor-widget-html .hidden.lg\:grid > img:nth-child(5) {
		grid-column: 8 / span 3 !important;
		grid-row: 1 / span 10 !important;
	}

	.elementor .elementor-widget-html .hidden.lg\:grid > img:nth-child(6) {
		grid-column: 11 / span 2 !important;
		grid-row: 2 / span 8 !important;
	}

	.elementor .elementor-widget-html .grid.lg\:grid-cols-12 {
		grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
		align-items: flex-start !important;
	}

	.elementor .elementor-widget-html .lg\:col-span-8 {
		grid-column: span 8 / span 8 !important;
	}

	.elementor .elementor-widget-html .lg\:col-span-4 {
		grid-column: span 4 / span 4 !important;
	}
}
