/**
 * Tan Bao Phat homepage components.
 *
 * Scope: rendered Homepage components only.
 * Dependencies: 01-base.css and 02-layout.css.
 */

.home .tbp-bright-main {
	--tbp-home-section-space: 40px;
}

.home .tbp-bright-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.home .tbp-bright-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(72px, 10vh, 112px) clamp(64px, 9vh, 96px);
	background: var(--tbp-white);
}

.home .tbp-bright-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.home .tbp-bright-eyebrow {
	margin: 0 0 16px;
	color: var(--tbp-orange);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.home .tbp-bright-hero h1 {
	margin: 0 0 20px;
	color: var(--tbp-blue-dark);
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 900;
	line-height: 1.16;
}

.home .tbp-bright-hero h1 span {
	color: var(--tbp-orange);
}

.home .tbp-bright-hero__desc {
	max-width: 520px;
	margin: 0 0 28px;
	color: var(--tbp-text-soft);
	font-size: 16px;
	line-height: 1.75;
}

.home .tbp-bright-hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.home .tbp-bright-hero__visual img {
	width: 100%;
	max-width: 580px;
	height: auto;
	object-fit: cover;
}

.home .tbp-bright-trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 32px;
	overflow: hidden;
	border: 1px solid rgba(30, 64, 175, 0.1);
	border-radius: 12px;
}

.home .tbp-bright-trust div {
	padding: 14px 18px;
	border-right: 1px solid rgba(30, 64, 175, 0.1);
}

.home .tbp-bright-trust div:last-child {
	border-right: 0;
}

.home .tbp-bright-trust strong {
	display: block;
	color: var(--tbp-blue-dark);
	font-size: 18px;
	font-weight: 900;
}

.home .tbp-bright-trust span {
	color: var(--tbp-text-soft);
	font-size: 12px;
}

.home .tbp-bright-section,
.home .tbp-section-products {
	margin-top: 40px;
}
.home .tbp-bright-brands,
.home .tbp-bright-final-cta {
	padding-block: var(--tbp-home-section-space);
}

.home .tbp-section-products {
	background: var(--tbp-white);
}

.home .tbp-bright-section--soft {
	background: #f6f8fb;
}

.home .tbp-bright-section-head {
	max-width: 640px;
	margin: 0 auto 48px;
	text-align: center;
}

.home .tbp-bright-section-head--left {
	margin-left: 0;
	text-align: left;
}

.home .tbp-bright-label {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	color: var(--tbp-orange);
	background: rgba(255, 122, 0, 0.08);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.home .tbp-bright-section-head h2 {
	margin: 0 0 14px;
	color: var(--tbp-text);
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 900;
	line-height: 1.22;
}

.home .tbp-bright-section-head p {
	margin: 0;
	color: var(--tbp-text-soft);
	font-size: 15.5px;
	line-height: 1.7;
}

.home .tbp-bright-card-grid {
	display: grid;
	gap: 12px;
}

.home .tbp-bright-card-grid--5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home .tbp-bright-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 16px 18px;
	border: 1.5px solid #e2eaf4;
	border-radius: 16px;
	background: var(--tbp-white);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home .tbp-bright-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
	transform: translateY(-3px);
}

.home .tbp-bright-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--tbp-bg-blue-soft);
	font-size: 26px;
}

.home .tbp-bright-card h3 {
	margin: 0;
	color: var(--tbp-text);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.home .tbp-bright-card p {
	margin: 0;
	color: var(--tbp-text-soft);
	font-size: 13.5px;
	line-height: 1.6;
}

.home .tbp-fp-wrap {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 28px;
}

.home .tbp-fp-item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1.5px solid #e2eaf4;
	border-radius: 16px;
	color: inherit;
	background: var(--tbp-white);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.home .tbp-fp-item:hover {
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
	transform: translateY(-4px);
}

.home .tbp-fp-item__img {
	position: relative;
}

.home .tbp-fp-item__img img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.home .tbp-fp-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 10px;
	border-radius: 20px;
	color: var(--tbp-white);
	background: #d96200;
	font-size: 11px;
	font-weight: 700;
}

.home .tbp-fp-item__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 12px 14px 16px;
}

.home .tbp-fp-name {
	margin: 0 0 3px;
	color: #1a1a2e;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.home .tbp-fp-sub {
	margin: 0 0 6px;
	color: #666;
	font-size: 11px;
}

.home .tbp-fp-price {
	margin: auto 0 8px;
	color: #d96200;
	font-size: 15px;
	font-weight: 800;
}

.home .tbp-fp-btn {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 8px;
	color: var(--tbp-white);
	background: #d96200;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.home .tbp-bright-brands {
	background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #1d4ed8 100%);
}

.home .tbp-bright-brand-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 40px;
}

.home .tbp-bright-brand-grid a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	color: var(--tbp-white);
	background: rgba(255, 255, 255, 0.1);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	transition: background-color 0.18s;
}

.home .tbp-bright-brand-grid a:hover {
	color: var(--tbp-white);
	background: rgba(255, 255, 255, 0.22);
}

.home .tbp-bright-brands .tbp-bright-label {
	color: var(--tbp-white);
	background: rgba(255, 255, 255, 0.15);
}

.home .tbp-bright-brands .tbp-bright-section-head h2 {
	color: var(--tbp-white);
}

.home .tbp-bright-brands .tbp-bright-section-head > p {
	color: rgba(255, 255, 255, 0.82);
}

.home .tbp-bright-two-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 52px;
	align-items: start;
}

.home .tbp-bright-benefit-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}

.home .tbp-bright-benefit {
	padding: 24px 20px;
	border: 1.5px solid #e2eaf4;
	border-radius: 16px;
	background: var(--tbp-white);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
	transition: transform 0.2s, box-shadow 0.2s;
}

.home .tbp-bright-benefit:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
	transform: translateY(-3px);
}

.home .tbp-bright-benefit span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 14px;
	border-radius: 999px;
	font-size: 22px;
	font-weight: 900;
}

.home .tbp-bright-benefit h3 {
	margin: 0 0 8px;
	color: var(--tbp-text);
	font-size: 17px;
	font-weight: 900;
}

.home .tbp-bright-benefit p {
	margin: 0;
	color: var(--tbp-text-soft);
	font-size: 14px;
	line-height: 1.65;
}

.home .tbp-bright-post-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 18px;
}

.home .tbp-bright-post {
	overflow: hidden;
	border: 1.5px solid #e2eaf4;
	border-radius: 16px;
	color: inherit;
	background: var(--tbp-white);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	transition: transform 0.2s, box-shadow 0.2s;
}

.home .tbp-bright-post:hover {
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
	transform: translateY(-3px);
}

.home .tbp-bright-post img {
	display: block;
	width: 100%;
	height: 185px;
	object-fit: cover;
}

.home .tbp-bright-post div {
	padding: 18px;
}

.home .tbp-bright-post span {
	display: inline-flex;
	margin-bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	color: var(--tbp-blue-dark);
	background: var(--tbp-bg-blue-soft);
	font-size: 11.5px;
	font-weight: 700;
}

.home .tbp-bright-post h3 {
	margin: 0 0 10px;
	color: var(--tbp-text);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
}

.home .tbp-bright-post p {
	margin: 0;
	color: var(--tbp-text-soft);
	font-size: 13.5px;
	line-height: 1.6;
}

.home .tbp-bright-final-cta {
	background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.home .tbp-bright-final-cta__grid {
	display: grid;
	grid-template-columns: 1.8fr 1fr;
	gap: 36px;
	align-items: center;
}

.home .tbp-bright-final-cta h2 {
	margin: 0 0 12px;
	color: var(--tbp-white);
	font-size: clamp(1.625rem, 3vw, 2.5rem);
	font-weight: 900;
	line-height: 1.18;
}

.home .tbp-bright-final-cta p {
	max-width: 640px;
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 16px;
	line-height: 1.75;
}

@media (max-width: 1100px) {
	.home .tbp-bright-main {
		--tbp-home-section-space: 72px;
	}

	.home .tbp-bright-card-grid--5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home .tbp-bright-brand-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.home .tbp-bright-two-col {
		gap: 44px;
	}
}

@media (max-width: 900px) {
	.home .tbp-bright-hero__grid,
	.home .tbp-bright-two-col {
		grid-template-columns: minmax(0, 1fr);
	}

	.home .tbp-bright-hero__visual {
		display: none;
	}

	.home .tbp-bright-final-cta__grid,
	.home .tbp-bright-post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.home .tbp-bright-final-cta__grid {
		gap: 24px;
	}

	.home .tbp-bright-brand-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}

	.home .tbp-fp-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (max-width: 768px) {
	.home .tbp-bright-main {
		--tbp-home-section-space: 56px;
	}

	.home .tbp-bright-container {
		width: calc(100% - 28px);
	}

	.home .tbp-bright-hero {
		padding-block: 48px 40px;
	}

	.home .tbp-bright-hero h1 {
		margin-bottom: 14px;
		font-size: clamp(1.75rem, 7vw, 2.5rem);
	}

	.home .tbp-bright-hero__desc {
		margin-bottom: 22px;
		font-size: 15px;
	}

	.home .tbp-bright-trust {
		grid-template-columns: minmax(0, 1fr);
	}

	.home .tbp-bright-trust div {
		border-right: 0;
		border-bottom: 1px solid rgba(30, 64, 175, 0.12);
	}

	.home .tbp-bright-trust div:last-child {
		border-bottom: 0;
	}

	.home .tbp-bright-section-head {
		margin-bottom: 32px;
	}

	.home .tbp-bright-section-head,
	.home .tbp-bright-section-head--left {
		text-align: center;
	}

	.home .tbp-bright-card-grid--5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.home .tbp-bright-card {
		padding: 16px 12px 14px;
		border-radius: 12px;
	}

	.home .tbp-bright-card h3 {
		font-size: 14px;
	}

	.home .tbp-bright-card p {
		font-size: 12.5px;
	}

	.home .tbp-bright-brand-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.home .tbp-bright-benefit-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.home .tbp-bright-benefit {
		padding: 18px 14px;
		border-radius: 12px;
	}

	.home .tbp-bright-post {
		border-radius: 12px;
	}

	.home .tbp-bright-post img {
		height: 160px;
	}

	.home .tbp-bright-post div {
		padding: 14px;
	}

	.home .tbp-fp-wrap {
		gap: 10px;
	}

	.home .tbp-fp-item {
		border-radius: 12px;
	}
}

@media (max-width: 480px) {
	.home .tbp-bright-main {
		--tbp-home-section-space: 48px;
	}

	.home .tbp-bright-container {
		width: calc(100% - 24px);
	}

	.home .tbp-bright-hero h1 {
		font-size: 1.75rem;
	}

	.home .tbp-bright-hero__desc {
		font-size: 14.5px;
	}

	.home .tbp-bright-card-grid--5 {
		gap: 8px;
	}

	.home .tbp-bright-card {
		padding: 12px 10px;
		border-radius: 10px;
	}

	.home .tbp-bright-card h3 {
		font-size: 12.5px;
	}

	.home .tbp-fp-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.home .tbp-fp-name {
		font-size: 12px;
	}

	.home .tbp-fp-price {
		font-size: 13.5px;
	}

	.home .tbp-fp-btn {
		padding: 5px 8px;
		font-size: 11px;
	}

	.home .tbp-fp-sub {
		display: none;
	}
}
