/* TKT-006: retain production content while correcting its layout and type. */
/* Feedback #2: image dimensions must follow the card, not a small upload's
 * intrinsic width. The frame stays 3:2 when an editor replaces a promo image.
 */
.px-promo .wp-block-image {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	aspect-ratio: 3 / 2;
}

.px-promo .wp-block-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Video/portrait uploads share one fixed frame with the image slides. */
.px-hero__slide { min-width: 0; overflow: hidden; }
.px-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

main .wp-block-cover.px-banner-tkt006,
main .wp-block-cover:has( h1 ),
main .px-page-banner {
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	margin-inline: 0 !important;
}

/* A saved alignwide class must not constrain an alignfull banner. */
main .wp-block-post-content > .px-banner-tkt006.alignfull {
	width: auto;
	margin-inline: calc( -1 * var( --wp--style--root--padding-left, 0px ) ) calc( -1 * var( --wp--style--root--padding-right, 0px ) ) !important;
}

main .px-page-banner img {
	height: auto;
}

/* Typography from Giới thiệu.png and Dich vu thue xe.png (1920px artboards). */
.px-steps--lg .px-steps__title,
.px-steps--on-brand .px-steps__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
}

.px-steps--lg .px-steps__text,
.px-prose p,
.px-values p,
.wp-block-column:has( > .px-steps--lg ) > p,
.px-consult__lead {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
}

.wp-block-post-content .px-service-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
}

.px-service-card__text {
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
}

.wp-block-post-content :is( .px-story, .px-values, .px-stats ) h2.has-h-2-font-size,
.wp-block-post-content .has-h-2-font-size:has( .px-accent ),
.px-consult .px-consult__title {
	font-size: clamp( 1.5rem, 2.25vw, 2rem );
	font-weight: 700;
	line-height: 1.25;
}

/* The previous six-logo layout hid desktop arrows; 18 partners need them. */
.px-partners-tkt006 .nd-partner-slider__arrow {
	display: flex;
}

.px-partners-tkt006 .nd-partner-slider__track {
	min-width: 0;
}

.px-partners-tkt006 .nd-partner-slider__slide {
	box-sizing: border-box;
	min-height: 8rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid var( --wp--preset--color--line, #e5e5e5 );
}

.px-partners-tkt006 .nd-partner-slider__image {
	width: 100%;
	height: 6rem;
	object-fit: contain;
}

.px-partners-tkt006 .nd-partner-slider__slide:has( img[src$="vexere.png"] ),
.px-partners-tkt006 .nd-partner-slider__slide:has( img[src$="halong-cruise-port.png"] ),
.px-partners-tkt006 .nd-partner-slider__slide:has( img[src$="delasea.png"] ) {
	background: #12324a;
}

.px-footer .px-tkt006-payments {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 0.5rem;
	width: 100%;
	max-width: 20rem;
}

.px-tkt006-payments li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0.375rem;
	background: #fff;
	border-radius: 0.25rem;
}

.px-footer .px-tkt006-payments img {
	display: block;
	width: 100%;
	max-width: 6rem;
	height: 2.25rem;
	object-fit: contain;
}

/* Content stays visible without JS. Animation is added only as it enters view. */
@keyframes px-enter-tkt006 {
	from { opacity: 0.25; transform: translateY( 1.25rem ); }
	to { opacity: 1; transform: translateY( 0 ); }
}

/* Animate the photos separately without moving their shared layout frame.
 * Individual translate leaves the existing hover transform free to work.
 * No resting opacity rule: photos remain visible if JS/observers are unavailable.
 */
@keyframes px-pair-back-tkt006 {
	from { opacity: 0; translate: -1.5rem 2rem; }
	to { opacity: 1; translate: 0 0; }
}

@keyframes px-pair-front-tkt006 {
	from { opacity: 0; translate: 1.5rem 2.5rem; }
	to { opacity: 1; translate: 0 0; }
}

@media ( prefers-reduced-motion: no-preference ) {
	.px-enter-tkt006 {
		animation: px-enter-tkt006 0.65s ease-out both;
	}

	.px-pair-enter-tkt006 > :is( .px-steps__media-back, .px-duo__back ) {
		animation: px-pair-back-tkt006 0.85s cubic-bezier( 0.22, 1, 0.36, 1 ) both;
	}

	.px-pair-enter-tkt006 > :is( .px-steps__media-front, .px-duo__front ) {
		animation: px-pair-front-tkt006 0.85s cubic-bezier( 0.22, 1, 0.36, 1 ) 0.28s both;
	}

	.px-steps__media img,
	.px-duo img,
	.px-rounded-img img,
	.px-service-card,
	.px-partners-tkt006 .nd-partner-slider__image {
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}
}

@media ( hover: hover ) and ( prefers-reduced-motion: no-preference ) {
	.px-steps__media:hover .px-steps__media-back { transform: translateY( -0.375rem ); }
	.px-steps__media:hover .px-steps__media-front { transform: translateY( calc( -50% + 0.375rem ) ); }
	.px-duo:hover .px-duo__back { transform: translateY( -0.375rem ); }
	.px-duo:hover .px-duo__front { transform: translateY( 0.375rem ); }
	.px-rounded-img:hover img { transform: translateY( -0.25rem ); }
	.px-service-card:hover { transform: translateY( -0.25rem ); }
	.px-partners-tkt006 .nd-partner-slider__slide:hover img { transform: scale( 1.04 ); }
}

@media ( prefers-reduced-motion: reduce ) {
	.px-enter-tkt006,
	.px-pair-enter-tkt006 > img { animation: none; }
	.px-steps__media img,
	.px-duo img,
	.px-rounded-img img,
	.px-service-card,
	.px-partners-tkt006 .nd-partner-slider__image { transition: none; }
}

@media ( max-width: 48rem ) {
	.px-partners-tkt006 .nd-partner-slider__slide { min-height: 6rem; padding: 0.5rem; }
	.px-partners-tkt006 .nd-partner-slider__image { height: 4rem; }
}
