/* ==========================================================================
   AN PHAT WINDOOR GUTENBERG - COMPONENTS, ANIMATIONS & MOBILE-FIRST UX
   ========================================================================== */

/* 1. TOPBAR & MAIN HEADER (STICKY PINNED ACROSS ALL PAGES) */
header.wp-block-template-part,
.wp-block-template-part,
.apw-site-header {
	width: 100% !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 9999 !important;
	background: #ffffff !important;
}

.apw-site-header {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
	transition: box-shadow 0.2s ease !important;
}

.apw-topbar {
	background-color: #ebf2f5;
	color: #525252;
	font-size: 12px;
	border-bottom: 1px solid #e5e7eb;
}

.apw-topbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 6px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.apw-topbar-slogan {
	font-weight: 500;
	color: #1f2937;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.apw-topbar-meta {
	display: none;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

@media (min-width: 992px) {
	.apw-topbar-meta {
		display: flex;
	}
}

.apw-topbar-phone a {
	color: #0e51d1;
	font-weight: 700;
	text-decoration: none;
}

.apw-topbar-sep {
	color: #cbd5e1;
}

.apw-header-main {
	background: #ffffff;
}

.apw-header-main-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.apw-brand-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-decoration: none;
}

.apw-brand-wrapper img {
	max-height: 44px;
	width: auto;
	display: block;
}

@media (min-width: 782px) {
	.apw-brand-wrapper img {
		max-height: 52px;
	}
}

.apw-brand-slogan {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #0e51d1;
	margin-top: 2px;
	line-height: 1.2;
}

/* Primary Navigation with Hover Submenu */
.apw-nav-primary {
	margin: 0 auto;
}

.apw-nav-primary .wp-block-navigation__container {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.apw-nav-primary .wp-block-navigation-item__content {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937 !important;
	text-decoration: none;
	padding: 8px 4px;
	transition: color 0.2s ease;
	position: relative;
}

.apw-nav-primary .wp-block-navigation-item__content:hover,
.apw-nav-primary .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	color: #0e51d1 !important;
}

/* Submenu dropdown */
.apw-nav-primary .wp-block-navigation__submenu-container {
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 8px !important;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12) !important;
	padding: 8px 0 !important;
	min-width: 230px !important;
}

.apw-nav-primary .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 14px !important;
	font-weight: 500 !important;
	padding: 8px 16px !important;
	color: #374151 !important;
	display: block;
	white-space: nowrap;
}

.apw-nav-primary .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: #ebf2f5 !important;
	color: #0e51d1 !important;
}

/* Header Actions */
.apw-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.apw-header-phone {
	display: none;
	flex-direction: column;
	text-align: right;
	text-decoration: none;
}

@media (min-width: 992px) {
	.apw-header-phone {
		display: flex;
	}
}

.apw-phone-sub {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	color: #6b7280;
	letter-spacing: 0.5px;
}

.apw-phone-val {
	font-size: 16px;
	font-weight: 700;
	color: #0e51d1;
	line-height: 1.2;
}

.apw-header-quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #0e51d1;
	color: #ffffff !important;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	min-height: 40px;
	transition: background-color 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
}

.apw-header-quote:hover {
	background-color: #0a3d91;
	color: #ffffff !important;
}


/* 2. HERO BANNER SECTION */
.apw-hero-section {
	background-color: #ffffff;
	padding-top: 1.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 782px) {
	.apw-hero-section {
		padding-top: 2.5rem;
		padding-bottom: 2.75rem;
	}
}

.apw-hero-eyebrow {
	color: #0e51d1;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.apw-hero-title {
	color: #0a3d91;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.apw-hero-img-wrap figure,
.apw-hero-img-wrap img {
	border-radius: 10px;
	width: 100%;
	height: auto;
	box-shadow: 0 8px 24px rgba(10, 61, 145, 0.1);
}

.apw-hero-pillars {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e5e7eb;
}

.apw-pillar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
}

.apw-pillar-item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.apw-pillar-item p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.35;
	color: #0e51d1;
}

/* 3. BLUE VALUE STRIP (Swipeable on Mobile, 5-Col on Desktop) */
.apw-value-strip {
	background-color: #0e51d1;
	color: #ffffff;
	padding: 1.75rem 0;
}

.apw-value-strip-row {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 0.875rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.apw-value-strip-row::-webkit-scrollbar {
	display: none;
}

.apw-value-strip-item {
	flex: 0 0 68%;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 8px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.apw-value-strip-item:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
}

@media (min-width: 782px) {
	.apw-value-strip-row {
		display: grid !important;
		grid-template-columns: repeat(5, 1fr);
		overflow-x: visible;
		gap: 1rem;
	}
	.apw-value-strip-item {
		flex: initial;
	}
}

.apw-value-strip-item img {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
}

.apw-value-strip-item h3 {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

/* 4. 4 QUICK PRODUCT CATEGORIES (Square 1:1 Preserved) */
.apw-quick-cats {
	background-color: #ebf2f5;
	padding: 2.5rem 0;
}

.apw-quick-cat-card {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.apw-quick-cat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(10, 61, 145, 0.12);
	border-color: #0e51d1;
}

.apw-quick-cat-card figure {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.apw-quick-cat-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.apw-quick-cat-card:hover img {
	transform: scale(1.04);
}

.apw-quick-cat-card p {
	margin: 0;
	padding: 0.85rem 0.5rem;
	font-weight: 700;
	font-size: 0.9375rem;
	color: #0a3d91;
	text-transform: uppercase;
}

/* 5. SECTION HEADINGS */
.apw-section-heading {
	color: #0e51d1;
	text-transform: uppercase;
	text-align: center;
	margin-top: 0;
	margin-bottom: 1.5rem;
}

/* 6. HORIZONTAL SCROLL-SNAP CAROUSELS (Anti-Long-Scroll on Mobile & Desktop) */
.apw-carousel-shell {
	position: relative;
}

.apw-scroll-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.5rem;
	scrollbar-width: thin;
	scrollbar-color: #0e51d1 #ebf2f5;
}

.apw-scroll-track > * {
	flex: 0 0 84%;
	scroll-snap-align: start;
}

@media (min-width: 600px) {
	.apw-scroll-track > * {
		flex: 0 0 47%;
	}
}

@media (min-width: 960px) {
	.apw-scroll-track > * {
		flex: 0 0 calc((100% - 2rem) / 3);
	}
}

.apw-carousel-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
}

.apw-carousel-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1.5px solid #0e51d1;
	background: #ffffff;
	color: #0e51d1;
	font-size: 1.35rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.apw-carousel-btn:hover {
	background-color: #0e51d1;
	color: #ffffff;
}

/* 7. PROJECT GALLERY WITH TABS & NATIVE ASPECT RATIO PRESERVATION */
.apw-gallery-tabs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	justify-content: flex-start;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.25rem;
	scrollbar-width: none;
}

.apw-gallery-tabs::-webkit-scrollbar {
	display: none;
}

@media (min-width: 782px) {
	.apw-gallery-tabs {
		justify-content: center;
		flex-wrap: wrap;
	}
}

.apw-tab-btn,
.apw-gallery-tabs .wp-block-button__link {
	min-height: 48px;
	padding: 0.5rem 1.25rem;
	border-radius: 99px !important;
	border: 1.5px solid #0e51d1 !important;
	background: transparent !important;
	color: #0a0a0a !important;
	font-weight: 700;
	font-size: 0.875rem;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.apw-tab-btn:hover,
.apw-gallery-tabs .wp-block-button__link:hover {
	color: #0e51d1 !important;
	background: #ebf2f5 !important;
}

.apw-tab-btn.is-active,
.apw-gallery-tabs .wp-block-button.is-active .wp-block-button__link,
.apw-gallery-tabs .wp-block-button__link.is-active {
	background-color: #0e51d1 !important;
	color: #ffffff !important;
}

/* Gallery Grid: Mobile horizontal scroll-snap; Desktop responsive columns preserving exact ratio */
.apw-project-grid {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 1rem;
	padding-bottom: 0.75rem;
	scrollbar-width: thin;
	scrollbar-color: #0e51d1 #ebf2f5;
}

.apw-project-card {
	flex: 0 0 78%;
	scroll-snap-align: start;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.apw-project-card[hidden] {
	display: none !important;
}

.apw-project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(10, 61, 145, 0.14);
}

@media (min-width: 782px) {
	.apw-project-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		align-items: start;
		overflow-x: visible;
	}
	.apw-project-card {
		flex: initial;
	}
}

.apw-project-thumb {
	position: relative;
	display: block;
	width: 100%;
	background: #ebf2f5;
	cursor: zoom-in;
	border: none;
	padding: 0;
}

/* Preserve exact original photo ratios without cutting or distorting */
.apw-project-thumb img,
.apw-project-card figure.wp-block-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.35s ease;
	cursor: zoom-in;
}

.apw-project-card figure.wp-block-image {
	position: relative;
	margin: 0;
	background: #ebf2f5;
}

.apw-project-card figure.wp-block-image::after {
	content: "+";
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(14, 81, 209, 0.92);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 700;
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.apw-project-card:hover .apw-project-thumb img,
.apw-project-card:hover figure.wp-block-image img {
	transform: scale(1.03);
}

.apw-zoom-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(14, 81, 209, 0.9);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.apw-project-meta {
	padding: 0.875rem 1rem;
}

.apw-project-meta h3,
.apw-project-meta h4 {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0a0a0a;
}

.apw-project-meta p {
	margin: 0;
	font-size: 0.875rem;
	color: #4b5563;
}

/* 8. WHY CHOOSE US COLLAGE & STATS */
.apw-why-collage {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.625rem;
	align-items: start;
}

.apw-why-collage-main {
	grid-column: 1 / -1;
}

.apw-why-collage figure {
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	cursor: zoom-in;
}

.apw-why-collage img {
	width: 100%;
	height: auto;
}

.apw-stat-card {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-left: 3px solid #0e51d1;
	border-radius: 8px;
	padding: 1rem;
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.apw-stat-card:hover {
	box-shadow: 0 6px 16px rgba(10, 61, 145, 0.1);
	transform: translateY(-2px);
}

.apw-stat-card img {
	width: 36px;
	height: 36px;
	margin: 0 auto 0.5rem;
}

.apw-stat-number {
	font-size: 1.5rem;
	font-weight: 700;
	color: #0e51d1;
	margin: 0 0 0.2rem;
	line-height: 1.2;
}

.apw-stat-label {
	font-size: 0.875rem;
	color: #4b5563;
	margin: 0;
}

/* 9. VIDEO CONSTRUCTION CARDS */
.apw-video-section {
	background-color: #0e51d1;
	color: #ffffff;
	padding: 3rem 0;
}

.apw-video-card-block figure.wp-block-image {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.25);
	cursor: pointer;
}

.apw-video-card-block figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.apw-video-card-block:hover figure.wp-block-image img {
	transform: scale(1.04);
}

.apw-video-card-block figure.wp-block-image::after {
	content: "▶";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #0e51d1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	padding-left: 3px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.apw-video-card {
	background: transparent;
	border: none;
	padding: 0;
	text-align: center;
	cursor: pointer;
	width: 100%;
	color: inherit;
}

.apw-video-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.apw-video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apw-video-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.apw-video-card:hover .apw-video-overlay {
	background: rgba(0, 0, 0, 0.45);
}

.apw-video-play {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	color: #0e51d1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	transition: transform 0.2s ease;
}

.apw-video-card:hover .apw-video-play {
	transform: scale(1.08);
}

.apw-video-title {
	margin: 0.65rem 0 0.15rem;
	font-weight: 700;
	font-size: 0.9375rem;
	color: #ffffff;
}

.apw-video-sub {
	margin: 0;
	font-size: 0.8125rem;
	color: #ebf2f5;
}

/* 10. CUSTOMER REVIEWS SLIDER */
.apw-reviews-section {
	background-color: #ebf2f5;
	padding: 3rem 0;
}

.apw-review-card {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem 1.25rem;
	box-shadow: 0 4px 16px rgba(10, 61, 145, 0.06);
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.apw-review-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.apw-review-head img {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid #e5e7eb;
}

.apw-review-head h3 {
	margin: 0;
	font-size: 1rem;
	color: #0a3d91;
}

.apw-review-head p {
	margin: 0;
	font-size: 0.8125rem;
	color: #4b5563;
}

.apw-review-body {
	margin: 0;
	font-size: 0.9375rem;
	color: #0a0a0a;
	line-height: 1.6;
}

/* 11. NEWS CARDS */
.apw-news-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.apw-news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(10, 61, 145, 0.12);
}

.apw-news-card .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.apw-news-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apw-news-card .wp-block-post-title {
	padding: 0.875rem 1rem 0.4rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
}

.apw-news-card .wp-block-post-excerpt {
	padding: 0 1rem 1rem;
	margin: 0;
	font-size: 0.875rem;
	color: #4b5563;
}

/* 12. SURVEY CTA SECTION */
.apw-survey-section {
	background-color: #0e51d1;
	color: #ffffff;
	padding: 3rem 0;
}

.apw-survey-section h2,
.apw-survey-section p {
	color: #ffffff;
}

/* 13. FOOTER */
.apw-footer-main {
	background-color: #ebf2f5;
	color: #0a0a0a;
	padding: 2.75rem 0 2rem;
	border-top: 1px solid #e5e7eb;
}

.apw-footer-title {
	font-size: 1rem;
	font-weight: 700;
	color: #0a3d91;
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #0e51d1;
	display: inline-block;
}

.apw-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.apw-footer-links li {
	margin-bottom: 0.35rem;
}

.apw-footer-links a {
	color: #0a0a0a;
	font-size: 0.9375rem;
	display: inline-block;
	padding: 0.25rem 0;
}

.apw-footer-links a:hover {
	color: #0e51d1;
	text-decoration: underline;
}

.apw-footer-bottom {
	background-color: #282828;
	color: #ffffff;
	text-align: center;
	padding: 1.125rem 1rem;
	font-size: 0.875rem;
	line-height: 1.6;
}

.apw-footer-bottom p {
	margin: 0;
}

/* 14. LIGHTBOX MODAL (Image & Video Zoom) */
.apw-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 10, 10, 0.9);
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.apw-lightbox.is-open {
	display: flex;
}

.apw-lightbox-stage {
	max-width: 92vw;
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.apw-lightbox-stage img {
	max-width: 90vw;
	max-height: 78vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
}

.apw-lightbox-video {
	width: 90vw;
	max-width: 860px;
	aspect-ratio: 16 / 9;
	background: #000000;
	border-radius: 8px;
	overflow: hidden;
}

.apw-lightbox-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.apw-lightbox-caption {
	color: #ffffff;
	font-size: 0.9375rem;
	margin: 0.75rem 0 0;
	text-align: center;
}

.apw-lightbox-close,
.apw-lightbox-prev,
.apw-lightbox-next {
	position: fixed;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;
	font-size: 1.5rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.apw-lightbox-close {
	top: 16px;
	right: 16px;
}

.apw-lightbox-prev {
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.apw-lightbox-next {
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

/* 15. ELEGANT FLOATING CONTACT BUBBLES (BONG BÓNG LIÊN HỆ GỌN GÀNG) */
.apw-contact-bubbles {
	position: fixed;
	right: 18px;
	bottom: 24px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-end;
	pointer-events: none;
}

.apw-bubble-item {
	position: relative;
	pointer-events: auto;
}

.apw-bubble-link {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	position: relative;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.apw-bubble-link:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.apw-bubble-zalo .apw-bubble-link {
	background-color: #0068ff;
}

.apw-bubble-phone .apw-bubble-link {
	background-color: #e53935;
}

.apw-bubble-pulse {
	position: absolute;
	top: -4px;
	left: -4px;
	right: -4px;
	bottom: -4px;
	border-radius: 50%;
	pointer-events: none;
	animation: apwPulse 2s infinite ease-out;
}

.apw-bubble-zalo .apw-bubble-pulse {
	border: 2px solid rgba(0, 104, 255, 0.5);
}

.apw-bubble-phone .apw-bubble-pulse {
	border: 2px solid rgba(229, 57, 53, 0.5);
}

@keyframes apwPulse {
	0% {
		transform: scale(0.95);
		opacity: 0.9;
	}
	70% {
		transform: scale(1.35);
		opacity: 0;
	}
	100% {
		transform: scale(1.35);
		opacity: 0;
	}
}

.apw-bubble-label {
	display: none;
}

@media (min-width: 992px) {
	.apw-contact-bubbles {
		right: 24px;
		bottom: 30px;
		gap: 14px;
	}
	.apw-bubble-link {
		width: 52px;
		height: 52px;
	}
	.apw-bubble-item:hover .apw-bubble-label {
		display: block;
		position: absolute;
		right: 62px;
		top: 50%;
		transform: translateY(-50%);
		background: #1f2937;
		color: #ffffff;
		padding: 4px 10px;
		border-radius: 6px;
		font-size: 0.8125rem;
		font-weight: 500;
		white-space: nowrap;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
		pointer-events: none;
	}
}

/* 16. HOMEPAGE GRID & REAL PROJECT GALLERY WITH LIGHTBOX ZOOM */
.apw-badge-card {
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.apw-badge-card p {
	margin: 0;
	line-height: 1.4;
}

.apw-cat-card {
	background: #ffffff;
	border-radius: 8px;
	padding: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease;
}

.apw-cat-card:hover {
	transform: translateY(-3px);
}

.apw-cat-card a {
	text-decoration: none;
	color: #0a3d91;
}

.apw-lightbox-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 1.5rem 0;
}

@media (min-width: 782px) {
	.apw-lightbox-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 16px;
	}
}

.apw-gallery-card {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apw-gallery-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.apw-gallery-zoom-trigger {
	display: block;
	position: relative;
	text-decoration: none;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.apw-gallery-zoom-trigger img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.apw-gallery-zoom-trigger:hover img {
	transform: scale(1.06);
}

.apw-gallery-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 8px 10px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.apw-zoom-label {
	font-size: 0.75rem;
	background: rgba(14, 81, 209, 0.95);
	color: #ffffff;
	padding: 2px 8px;
	border-radius: 4px;
	align-self: flex-start;
	margin-bottom: 4px;
	font-weight: 500;
}

.apw-gallery-title {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.apw-promise-box {
	background: rgba(255, 255, 255, 0.08);
	padding: 16px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 16. PRESERVED KONTACT SHORTCODE BUTTONS */
.apw-kontact-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.apw-kontact-btn {
	min-height: 48px;
	padding: 0.65rem 1.5rem;
	border-radius: 99px;
	font-weight: 700;
	color: #ffffff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.apw-kontact-tel {
	background-color: #d32f2f;
}

.apw-kontact-zalo {
	background-color: #0068ff;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   17. HERO BANNER - FULL BLEED LUXURY & HIGH CONTRAST (Anti-Glitch)
   ========================================================================== */
/* ==========================================================================
   HERO BANNER & SCRIM SPECIFICATION (Asymmetric Focal Scrim)
   ========================================================================== */
.apw-hero-section {
	position: relative !important;
	width: 100vw !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	left: 0 !important;
	right: 0 !important;
	min-height: 540px !important;
	background-color: #071324 !important;
	background-image: linear-gradient(90deg, rgba(7, 19, 36, 0.94) 0%, rgba(7, 19, 36, 0.80) 40%, rgba(7, 19, 36, 0.38) 68%, rgba(7, 19, 36, 0.05) 100%),
	                  linear-gradient(to top, rgba(7, 19, 36, 0.90) 0%, transparent 45%, rgba(0, 0, 0, 0.25) 100%),
	                  url('/wp-content/uploads/new_gallery/cong-trinh/cong-trinh-49.jpg') !important;
	background-size: cover !important;
	background-position: center right !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	padding: 56px 20px 48px 20px !important;
	box-sizing: border-box !important;
}

.apw-hero-content-wrap {
	max-width: 1140px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	text-align: left !important;
	position: relative !important;
	z-index: 10 !important;
	box-sizing: border-box !important;
}

.apw-hero-section > * {
	max-width: 1140px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: left !important;
	box-sizing: border-box !important;
}

.apw-hero-badge,
.apw-hero-section .apw-hero-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	width: fit-content !important;
	max-width: max-content !important;
	margin: 0 0 16px 0 !important;
	padding: 6px 16px !important;
	border-radius: 9999px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	align-self: flex-start !important;
}

.apw-hero-title,
.apw-hero-section .apw-hero-title {
	text-align: left !important;
	margin: 0 0 16px 0 !important;
	max-width: 820px !important;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
	font-size: clamp(28px, 4vw, 46px) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	color: #ffffff !important;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
	text-rendering: optimizeLegibility !important;
	-webkit-font-smoothing: antialiased !important;
}

.apw-hero-subtitle,
.apw-hero-section .apw-hero-subtitle {
	text-align: left !important;
	margin: 0 0 28px 0 !important;
	max-width: 680px !important;
	color: #e2e8f0 !important;
	font-size: clamp(15px, 1.8vw, 17px) !important;
	line-height: 1.6 !important;
	font-weight: 400 !important;
}

.apw-hero-cta-buttons,
.apw-hero-section .apw-hero-cta-buttons {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 16px !important;
	margin: 0 0 32px 0 !important;
	width: 100% !important;
}

.apw-hero-pills,
.apw-hero-section .apw-hero-pills {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 16px !important;
	padding-top: 20px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
}

@media (max-width: 768px) {
	.apw-hero-pills,
	.apw-hero-section .apw-hero-pills {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}
}

.apw-hero-pills .wp-block-column {
	width: 100% !important;
	margin: 0 !important;
	flex-basis: auto !important;
}

.apw-hero-pill-item {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	color: #e2e8f0 !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
}

/* ==========================================================================
   2. CATEGORIES GRID (4 COLUMNS DESKTOP x 2 ROWS / 2 COLUMNS MOBILE)
   ========================================================================== */
.wp-block-columns.apw-cat-carousel-grid,
.apw-cats-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-cat-carousel-grid,
	.apw-cats-section .wp-block-columns {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px !important;
	}
}

.wp-block-columns.apw-cat-carousel-grid > .wp-block-column,
.apw-cats-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	padding: 16px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	box-sizing: border-box !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wp-block-columns.apw-cat-carousel-grid > .wp-block-column:hover,
.apw-cats-section .wp-block-columns > .wp-block-column:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 8px 24px rgba(14, 81, 209, 0.12) !important;
}

.apw-cat-card-img img {
	width: 100% !important;
	height: 190px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	display: block !important;
	margin-bottom: 12px !important;
}

.apw-cat-card-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0a0a0a !important;
	margin: 0 0 6px 0 !important;
	line-height: 1.35 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.apw-cat-card-sub {
	font-size: 13px !important;
	color: #4b5563 !important;
	margin: 0 0 16px 0 !important;
	line-height: 1.4 !important;
	flex-grow: 1 !important;
}

.apw-cat-card-cta,
.apw-cat-card-col .wp-block-buttons {
	width: 100% !important;
	margin: 0 !important;
}

.apw-cat-card-cta .wp-block-button,
.apw-cat-card-col .wp-block-button {
	width: 100% !important;
}

.apw-cat-card-cta .wp-block-button__link,
.apw-cat-card-col .wp-block-button__link {
	width: 100% !important;
	display: block !important;
	text-align: center !important;
	white-space: nowrap !important;
	padding: 10px 16px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	background-color: #0e51d1 !important;
	color: #ffffff !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
}

/* ==========================================================================
   3. PRODUCTS GRID (4 COLUMNS DESKTOP x 2 ROWS / 2 COLUMNS MOBILE)
   ========================================================================== */
.wp-block-columns.apw-products-grid,
.apw-products-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-products-grid,
	.apw-products-section .wp-block-columns {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px !important;
	}
}

.wp-block-columns.apw-products-grid > .wp-block-column,
.apw-products-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	padding: 16px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	box-sizing: border-box !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wp-block-columns.apw-products-grid > .wp-block-column:hover,
.apw-products-section .wp-block-columns > .wp-block-column:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 8px 24px rgba(14, 81, 209, 0.12) !important;
}

.apw-prod-card-img img {
	width: 100% !important;
	height: 190px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	display: block !important;
	margin-bottom: 12px !important;
}

.apw-prod-card-title {
	font-size: 15.5px !important;
	font-weight: 700 !important;
	color: #0a0a0a !important;
	margin: 0 0 6px 0 !important;
	line-height: 1.35 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.apw-prod-card-price {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0e51d1 !important;
	margin: 0 0 16px 0 !important;
}

.apw-prod-card-cta,
.apw-prod-card-col .wp-block-buttons {
	width: 100% !important;
	margin: 0 !important;
}

.apw-prod-card-cta .wp-block-button,
.apw-prod-card-col .wp-block-button {
	width: 100% !important;
}

.apw-prod-card-cta .wp-block-button__link,
.apw-prod-card-col .wp-block-button__link {
	width: 100% !important;
	display: block !important;
	text-align: center !important;
	white-space: nowrap !important;
	padding: 10px 16px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	background-color: #0e51d1 !important;
	color: #ffffff !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
}

/* ==========================================================================
   4. PROJECTS GRID (3 COLUMNS DESKTOP x 2 ROWS / 1 COLUMN MOBILE)
   ========================================================================== */
.wp-block-columns.apw-project-carousel-grid,
.apw-projects-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-project-carousel-grid,
	.apw-projects-section .wp-block-columns {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
}

.wp-block-columns.apw-project-carousel-grid > .wp-block-column,
.apw-projects-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	padding: 0 0 16px 0 !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	box-sizing: border-box !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wp-block-columns.apw-project-carousel-grid > .wp-block-column:hover,
.apw-projects-section .wp-block-columns > .wp-block-column:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 8px 24px rgba(14, 81, 209, 0.12) !important;
}

.apw-project-card-img img {
	width: 100% !important;
	height: 240px !important;
	object-fit: cover !important;
	border-radius: 12px 12px 0 0 !important;
	display: block !important;
	margin-bottom: 14px !important;
}

.apw-project-card-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0a0a0a !important;
	margin: 0 16px 6px 16px !important;
	line-height: 1.4 !important;
}

.apw-project-card-sub {
	font-size: 13.5px !important;
	color: #4b5563 !important;
	margin: 0 16px !important;
	line-height: 1.5 !important;
}

/* ==========================================================================
   5. VIDEOS, WHY-CHOOSE, REVIEWS, NEWS, SURVEY GRIDS
   ========================================================================== */
.wp-block-columns.apw-video-carousel-grid,
.apw-videos-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 20px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-video-carousel-grid,
	.apw-videos-section .wp-block-columns {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}
}

.wp-block-columns.apw-video-carousel-grid > .wp-block-column,
.apw-videos-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 12px !important;
	padding: 16px !important;
	color: #ffffff !important;
	box-sizing: border-box !important;
}

.wp-block-columns.apw-why-grid,
.apw-why-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 20px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-why-grid,
	.apw-why-section .wp-block-columns {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px !important;
	}
}

.wp-block-columns.apw-why-grid > .wp-block-column,
.apw-why-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	padding: 20px 16px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	box-sizing: border-box !important;
}

.wp-block-columns.apw-reviews-grid,
.apw-reviews-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-reviews-grid,
	.apw-reviews-section .wp-block-columns {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
}

.wp-block-columns.apw-reviews-grid > .wp-block-column,
.apw-reviews-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	padding: 24px 20px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	box-sizing: border-box !important;
}

.wp-block-columns.apw-news-grid,
.apw-news-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-news-grid,
	.apw-news-section .wp-block-columns {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
}

.wp-block-columns.apw-news-grid > .wp-block-column,
.apw-news-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	padding: 16px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	box-sizing: border-box !important;
}

.wp-block-columns.apw-survey-grid,
.apw-survey-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 32px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
	padding: 32px !important;
	background: #0e51d1 !important;
	border-radius: 16px !important;
	color: #ffffff !important;
	box-sizing: border-box !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-survey-grid,
	.apw-survey-section .wp-block-columns {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
		padding: 20px 16px !important;
	}
}

.wp-block-columns.apw-survey-grid > .wp-block-column,
.apw-survey-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	box-sizing: border-box !important;
}
	color: #e2e8f0 !important;
	font-size: clamp(15px, 1.8vw, 17.5px) !important;
	line-height: 1.65 !important;
	max-width: 680px !important;
	margin: 0 0 32px 0 !important;
	font-weight: 400 !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* 4 Value Pills along bottom of banner */
.apw-hero-pills {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 14px !important;
	padding-top: 24px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
	width: 100% !important;
	max-width: 960px !important;
}

@media (min-width: 768px) {
	.apw-hero-pills {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

.apw-hero-pill-item {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	color: #ffffff !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.apw-hero-pill-item .material-symbols-outlined {
	color: #60a5fa !important;
	font-size: 20px !important;
	flex-shrink: 0;
}

/* ==========================================================================
   18. ACCESSORY MODAL POP-UP (Xem phụ kiện & Bảng giá đồng bộ)
   ========================================================================== */
.ap-v2-btn-detail.ap-btn-view-accessory {
	background-color: #ffffff !important;
	color: #0e51d1 !important;
	border: 1.5px solid #0e51d1 !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	padding: 8px 14px !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	transition: all 0.2s ease !important;
	text-decoration: none !important;
}

.ap-v2-btn-detail.ap-btn-view-accessory:hover {
	background-color: #eff6ff !important;
	border-color: #0a3d91 !important;
	color: #0a3d91 !important;
	transform: translateY(-1px) !important;
}

/* Modal Overlay & Dialog */
.apw-acc-backdrop {
	position: fixed !important;
	inset: 0 !important;
	z-index: 100000 !important;
	background: rgba(15, 23, 42, 0.75) !important;
	backdrop-filter: blur(6px) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 16px !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.apw-acc-backdrop.is-open {
	opacity: 1 !important;
	visibility: visible !important;
}

.apw-acc-dialog {
	background: #ffffff !important;
	border-radius: 16px !important;
	width: 100% !important;
	max-width: 860px !important;
	max-height: 90vh !important;
	display: flex !important;
	flex-direction: column !important;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
	overflow: hidden !important;
	transform: translateY(20px) scale(0.98);
	transition: transform 0.25s ease;
}

.apw-acc-backdrop.is-open .apw-acc-dialog {
	transform: translateY(0) scale(1) !important;
}

.apw-acc-header {
	background: #0a192f !important;
	color: #ffffff !important;
	padding: 18px 24px !important;
	display: flex !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 16px !important;
	border-bottom: 2px solid #0e51d1 !important;
}

.apw-acc-header h3 {
	margin: 0 !important;
	color: #ffffff !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.apw-acc-header-sub {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 12.5px !important;
	color: #93c5fd !important;
	margin-top: 4px !important;
}

.apw-acc-close-btn {
	background: rgba(255, 255, 255, 0.15) !important;
	border: none !important;
	color: #ffffff !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	font-size: 18px !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	transition: background 0.2s ease !important;
}

.apw-acc-close-btn:hover {
	background: rgba(255, 255, 255, 0.3) !important;
}

.apw-acc-body {
	padding: 20px 24px !important;
	overflow-y: auto !important;
	flex: 1 1 auto !important;
}

/* Formula Advisory Box */
.apw-acc-formula-box {
	background: #f0fdf4 !important;
	border: 1px solid #bbf7d0 !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	margin-bottom: 20px !important;
	font-size: 13.5px !important;
	color: #166534 !important;
	line-height: 1.5 !important;
}

.apw-acc-formula-box strong {
	color: #15803d !important;
}

/* Table styling */
.apw-acc-table-wrap {
	overflow-x: auto !important;
	margin-bottom: 20px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
}

.apw-acc-table {
	width: 100% !important;
	border-collapse: collapse !important;
	font-size: 13.5px !important;
	text-align: left !important;
}

.apw-acc-table th {
	background: #f8fafc !important;
	color: #334155 !important;
	font-weight: 700 !important;
	padding: 12px 14px !important;
	border-bottom: 2px solid #e2e8f0 !important;
	white-space: nowrap !important;
}

.apw-acc-table td {
	padding: 12px 14px !important;
	border-bottom: 1px solid #e2e8f0 !important;
	color: #1e293b !important;
	vertical-align: middle !important;
}

.apw-acc-table tr:last-child td {
	border-bottom: none !important;
}

.apw-acc-table tr:nth-child(even) {
	background: #f8fafc !important;
}

.apw-acc-price-badge {
	display: inline-block !important;
	background: #eff6ff !important;
	color: #0e51d1 !important;
	font-weight: 700 !important;
	padding: 4px 10px !important;
	border-radius: 6px !important;
	font-size: 13.5px !important;
	border: 1px solid #bfdbfe !important;
	white-space: nowrap !important;
}

/* Commitment Box */
.apw-acc-commit-box {
	background: #fef2f2 !important;
	border: 1px solid #fecaca !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	color: #991b1b !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}

.apw-acc-footer {
	background: #f8fafc !important;
	padding: 16px 24px !important;
	border-top: 1px solid #e2e8f0 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 12px !important;
}

.apw-acc-btn-quote {
	background: #0e51d1 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	font-size: 14px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	transition: background 0.2s ease !important;
	border: none !important;
	cursor: pointer !important;
}

.apw-acc-btn-quote:hover {
	background: #0a3d91 !important;
}

.apw-acc-btn-call {
	background: #ffffff !important;
	color: #d32f2f !important;
	border: 1.5px solid #d32f2f !important;
	font-weight: 700 !important;
	padding: 9px 18px !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	font-size: 14px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.apw-acc-btn-close {
	background: #e2e8f0 !important;
	color: #475569 !important;
	font-weight: 600 !important;
	padding: 10px 18px !important;
	border-radius: 8px !important;
	border: none !important;
	font-size: 14px !important;
	cursor: pointer !important;
}

/* ==========================================================================
   19. FEATURE STRIP (Thanh 5 tính năng xanh biển - Desktop 60px 1 hàng / Mobile Swipe)
   ========================================================================== */
.apw-feature-strip-section {
	width: 100% !important;
	background-color: #0e51d1 !important;
	color: #ffffff !important;
	padding: 0 !important;
	box-shadow: 0 4px 12px rgba(14, 81, 209, 0.15) !important;
	position: relative !important;
	z-index: 5 !important;
}

.apw-feature-strip-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
	width: 100%;
}

.apw-feature-strip-track {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 0;
}

@media (min-width: 1024px) {
	.apw-feature-strip-track {
		display: grid !important;
		grid-template-columns: repeat(5, 1fr) !important;
		min-height: 60px !important;
		max-height: 65px !important;
		align-items: center !important;
	}
	.apw-feature-item {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 10px !important;
		padding: 10px 12px !important;
		height: 100% !important;
		border-right: 1px solid rgba(255, 255, 255, 0.22) !important;
		text-align: left !important;
	}
	.apw-feature-item:last-child {
		border-right: none !important;
	}
}

@media (max-width: 1023px) {
	.apw-feature-strip-track {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
		padding: 14px 10px !important;
		overflow-x: visible !important;
		scroll-snap-type: none !important;
	}
	.apw-feature-item {
		display: flex !important;
		align-items: center !important;
		gap: 10px !important;
		padding: 10px 12px !important;
		background: rgba(255, 255, 255, 0.12) !important;
		border-radius: 8px !important;
		border: 1px solid rgba(255, 255, 255, 0.25) !important;
		text-align: left !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	.apw-feature-item:nth-child(5) {
		grid-column: 1 / -1 !important; /* The 5th item spans full width on row 3 */
	}
}

.apw-feature-icon {
	color: #93c5fd !important;
	font-size: 24px !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.apw-feature-text {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	min-width: 0 !important;
}

.apw-feature-title {
	font-weight: 700 !important;
	font-size: 13px !important;
	line-height: 1.3 !important;
	color: #ffffff !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
}

.apw-feature-sub {
	font-size: 11px !important;
	line-height: 1.25 !important;
	color: #bfdbfe !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	margin-top: 2px !important;
}

.apw-btn-outline a,
.wp-block-button.apw-btn-outline a,
.wp-block-button.apw-btn-outline .wp-block-button__link {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.45) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	font-weight: 600 !important;
}

.apw-btn-outline a:hover,
.wp-block-button.apw-btn-outline a:hover,
.wp-block-button.apw-btn-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.25) !important;
	color: #ffffff !important;
	border-color: #ffffff !important;
}

/* ==========================================================================
   20. UNIVERSAL SWIPEABLE CAROUSEL MODULE (Danh mục, Dự án, Video)
   ========================================================================== */
.apw-carousel-container {
	position: relative !important;
	width: 100% !important;
}

.apw-carousel-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin-bottom: 24px !important;
	gap: 16px !important;
}

.apw-carousel-nav {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	flex-shrink: 0 !important;
}

.apw-carousel-arrow {
	width: 38px !important;
	height: 38px !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	color: #0e51d1 !important;
	border: 1.5px solid #cbd5e1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
	padding: 0 !important;
	user-select: none !important;
}

.apw-carousel-arrow:hover {
	background: #0e51d1 !important;
	color: #ffffff !important;
	border-color: #0e51d1 !important;
	box-shadow: 0 4px 10px rgba(14, 81, 209, 0.3) !important;
	transform: scale(1.05) !important;
}

.apw-carousel-arrow:active {
	transform: scale(0.96) !important;
}

.apw-carousel-arrow.is-dark {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
}

.apw-carousel-arrow.is-dark:hover {
	background: #ffffff !important;
	color: #0e51d1 !important;
	border-color: #ffffff !important;
}

.apw-carousel-track {
	display: flex !important;
	gap: 20px !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	-webkit-overflow-scrolling: touch !important;
	scroll-behavior: smooth !important;
	scrollbar-width: none !important;
	cursor: grab !important;
	user-select: none !important;
	padding-bottom: 12px !important;
	margin-bottom: -12px !important;
}

.apw-carousel-track img,
.apw-carousel-card img {
	-webkit-user-drag: none !important;
	user-drag: none !important;
	user-select: none !important;
}

.apw-carousel-track::-webkit-scrollbar {
	display: none !important;
}

.apw-carousel-track.is-dragging {
	cursor: grabbing !important;
	scroll-behavior: auto !important;
	scroll-snap-type: none !important;
}

/* Carousel card sizing */
.apw-carousel-card {
	flex: 0 0 82vw !important;
	max-width: 82vw !important;
	scroll-snap-align: start !important;
	display: flex !important;
	flex-direction: column !important;
}

@media (min-width: 640px) {
	.apw-carousel-card {
		flex: 0 0 calc((100% - 20px) / 2) !important;
		max-width: calc((100% - 20px) / 2) !important;
	}
}

@media (min-width: 1024px) {
	.apw-carousel-card {
		flex: 0 0 calc((100% - 60px) / 4) !important;
		max-width: calc((100% - 60px) / 4) !important;
	}
}

/* ==========================================================================
   FINAL OVERRIDES: STRICT DESKTOP & MOBILE GRIDS (CLIENT CERTIFIED)
   ========================================================================== */
.wp-block-columns.apw-cat-carousel-grid,
.wp-block-columns.apw-products-grid,
.apw-cats-section .wp-block-columns,
.apw-products-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	overflow: visible !important;
	scroll-snap-type: none !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-cat-carousel-grid,
	.wp-block-columns.apw-products-grid,
	.apw-cats-section .wp-block-columns,
	.apw-products-section .wp-block-columns {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}
}

.wp-block-columns.apw-cat-carousel-grid > .wp-block-column,
.wp-block-columns.apw-products-grid > .wp-block-column,
.apw-cats-section .wp-block-columns > .wp-block-column,
.apw-products-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	flex-basis: auto !important;
	box-sizing: border-box !important;
}

.wp-block-columns.apw-project-carousel-grid,
.apw-projects-section .wp-block-columns {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 1140px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	overflow: visible !important;
	scroll-snap-type: none !important;
}

@media (max-width: 1023px) {
	.wp-block-columns.apw-project-carousel-grid,
	.apw-projects-section .wp-block-columns {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
}

.wp-block-columns.apw-project-carousel-grid > .wp-block-column,
.apw-projects-section .wp-block-columns > .wp-block-column {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: none !important;
	flex-basis: auto !important;
	box-sizing: border-box !important;
}

.apw-cat-card-cta .wp-block-button__link,
.apw-cat-card-col .wp-block-button__link,
.apw-prod-card-cta .wp-block-button__link,
.apw-prod-card-col .wp-block-button__link {
	width: 100% !important;
	white-space: nowrap !important;
	text-align: center !important;
	display: block !important;
	padding: 10px 16px !important;
	box-sizing: border-box !important;
}

/* Service Landing Pages (.stitch-page) full-width container protection */
main.stitch-page,
main.stitch-page > .wp-block-post-content,
main.stitch-page > .entry-content {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}




/* ==========================================================================
   AN PHÁT WINDOOR - LUXURY GLASS & SCROLL REVEAL OPTIMIZATIONS
   Kết hợp Gợi ý 1 (Luxury Glass Sheen) + Gợi ý 2 (Trust Badges & Elevation)
   + Hiệu ứng lướt đến đâu hiện đến đó (Scroll Reveal & Native Lazy Load)
   Tiêu chuẩn: TGDD / Clean Gutenberg / Core Web Vitals (LCP < 2.5s, CLS = 0)
   ========================================================================== */

/* 1. Khóa cứng khung ảnh sản phẩm tỉ lệ vàng 4:3 chống giật khung (CLS = 0) */
.apw-prod-card-col .apw-prod-card-img,
.apw-cat-card-col .apw-cat-card-img,
.apw-project-card-col .apw-project-card-img,
.apw-news-card-col .apw-news-card-img,
.apw-featured-item .apw-featured-img,
.anphat-product-card .ap-v2-img-wrap,
.ap-process-img-wrap {
	position: relative !important;
	width: 100% !important;
	aspect-ratio: 4 / 3 !important;
	overflow: hidden !important;
	border-radius: 8px !important;
	background-color: #f1f5f9 !important;
}

/* 2. Ảnh sản phẩm sắc nét, chuyển động phóng to 1.045x êm ái (Subtle Cinematic Zoom) */
.apw-prod-card-col .apw-prod-card-img img,
.apw-cat-card-col .apw-cat-card-img img,
.apw-project-card-col .apw-project-card-img img,
.apw-news-card-col .apw-news-card-img img,
.apw-featured-item .apw-featured-img img,
.anphat-product-card .ap-v2-img-wrap img,
.ap-process-img-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transform: scale(1) translateZ(0);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
	will-change: transform;
}

/* Kích hoạt zoom mượt mà khi hover vào bất kỳ vị trí nào trên thẻ Card */
.apw-prod-card-col:hover .apw-prod-card-img img,
.apw-cat-card-col:hover .apw-cat-card-img img,
.apw-project-card-col:hover .apw-project-card-img img,
.apw-news-card-col:hover .apw-news-card-img img,
.apw-featured-item:hover .apw-featured-img img,
.anphat-product-card:hover .ap-v2-img-wrap img,
.ap-process-card:hover .ap-process-img-wrap img {
	transform: scale(1.045) translateZ(0) !important;
}

/* 3. Hiệu ứng vệt sáng phản quang mặt kính (Glass Light Sheen Reflection) */
.apw-prod-card-col .apw-prod-card-img::after,
.apw-cat-card-col .apw-cat-card-img::after,
.apw-project-card-col .apw-project-card-img::after,
.apw-featured-item .apw-featured-img::after,
.anphat-product-card .ap-v2-img-wrap::after {
	content: "" !important;
	position: absolute !important;
	top: -50% !important;
	left: -60% !important;
	width: 40% !important;
	height: 200% !important;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.30) 50%,
		rgba(255, 255, 255, 0) 100%
	) !important;
	transform: rotate(25deg) translateX(-150%) !important;
	pointer-events: none !important;
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 2 !important;
}

.apw-prod-card-col:hover .apw-prod-card-img::after,
.apw-cat-card-col:hover .apw-cat-card-img::after,
.apw-project-card-col:hover .apw-project-card-img::after,
.apw-featured-item:hover .apw-featured-img::after,
.anphat-product-card:hover .ap-v2-img-wrap::after {
	opacity: 1;
	transform: rotate(25deg) translateX(350%) !important;
	transition: transform 0.75s ease-out, opacity 0.2s ease !important;
}

/* 4. Thẻ Card nâng nổi đa tầng & Nền trắng tinh khiết (Ambient Elevation Shadow) */
.apw-prod-card-col,
.apw-cat-card-col,
.apw-project-card-col,
.apw-news-card-col,
.apw-why-card-col,
.apw-review-card-col,
.anphat-product-card,
.ap-v2-card,
.ap-warn-card,
.ap-process-card {
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px -2px rgba(0, 0, 0, 0.05) !important;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}

.apw-prod-card-col:hover,
.apw-cat-card-col:hover,
.apw-project-card-col:hover,
.apw-news-card-col:hover,
.apw-why-card-col:hover,
.apw-review-card-col:hover,
.anphat-product-card:hover,
.ap-v2-card:hover,
.ap-process-card:hover {
	transform: translateY(-4px) !important;
	border-color: #cbd5e1 !important;
	box-shadow: 0 12px 28px -4px rgba(14, 81, 209, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04) !important;
}



/* 6. Thẻ Acrylic bán mờ cao cấp cho Bảng Báo Giá & Hộp kỹ thuật */
.apw-acrylic-card,
.apw-pricing-table-card,
.ap-specs-table-box {
	background: rgba(255, 255, 255, 0.94) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	border: 1px solid rgba(229, 231, 235, 0.9) !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

/* 7. HIỆU ỨNG LƯỚT ĐẾN ĐÂU HIỆN ĐẾN ĐÓ (SCROLL REVEAL - ZERO LAG) */
.apw-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
	will-change: opacity, transform;
}

.apw-reveal.is-revealed {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

/* Hiệu ứng xuất hiện so le (Staggered Animation) cho các thẻ card theo hàng */
.apw-cat-card-col.apw-reveal:nth-child(2),
.apw-prod-card-col.apw-reveal:nth-child(2),
.apw-project-card-col.apw-reveal:nth-child(2) {
	transition-delay: 0.08s !important;
}

.apw-cat-card-col.apw-reveal:nth-child(3),
.apw-prod-card-col.apw-reveal:nth-child(3),
.apw-project-card-col.apw-reveal:nth-child(3) {
	transition-delay: 0.16s !important;
}

.apw-cat-card-col.apw-reveal:nth-child(4),
.apw-prod-card-col.apw-reveal:nth-child(4),
.apw-project-card-col.apw-reveal:nth-child(4) {
	transition-delay: 0.24s !important;
}

/* 8. Tối ưu ảnh Native Lazy Loading với hiệu ứng Fade-in êm dịu */
img.apw-lazy-fade {
	opacity: 0;
	transition: opacity 0.4s ease-in !important;
}

img.apw-lazy-fade.is-loaded {
	opacity: 1 !important;
}

/* 9. Tương thích chế độ giảm chuyển động của hệ điều hành (Accessibility) */
@media (prefers-reduced-motion: reduce) {
	.apw-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	img.apw-lazy-fade {
		opacity: 1 !important;
		transition: none !important;
	}
	.apw-prod-card-col:hover,
	.apw-cat-card-col:hover {
		transform: none !important;
	}
}



/* ==========================================================================
   APW CATS SECTION - STUDIO DARK LUXURY SHOWCASE (APPLE / TOP ECOMMERCE)
   Nền xanh đen than chì sâu thẳm, làm nổi bật 8 hệ cửa nhôm kính đẳng cấp
   ========================================================================== */
.apw-cats-section,
section.apw-cats-section,
.apw-dark-studio {
	background: radial-gradient(circle at 50% 12%, #1e293b 0%, #0b1329 100%) !important;
	padding-top: 64px !important;
	padding-bottom: 72px !important;
	position: relative !important;
	overflow: hidden !important;
}

.apw-cats-section::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	height: 1px !important;
	background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(255, 255, 255, 0.2), transparent) !important;
	z-index: 1 !important;
}

.apw-cats-section::after {
	content: "" !important;
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	height: 1px !important;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent) !important;
	z-index: 1 !important;
}

.apw-cats-section .apw-section-title,
.apw-cats-section h2.wp-block-heading {
	color: #ffffff !important;
	font-size: 28px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	text-align: center !important;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
	margin-bottom: 8px !important;
}

.apw-cats-section .apw-section-subtitle,
.apw-cats-section p.apw-section-subtitle {
	color: #94a3b8 !important;
	font-size: 15.5px !important;
	line-height: 1.6 !important;
	text-align: center !important;
	max-width: 680px !important;
	margin: 0 auto 36px auto !important;
}

/* Thẻ card sản phẩm màu trắng tinh khôi nổi bồng bềnh trên nền tối */
.apw-cats-section .wp-block-columns > .wp-block-column,
.apw-cats-section .apw-cat-card-col {
	background: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 14px !important;
	padding: 16px !important;
	box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	box-sizing: border-box !important;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
	            box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
	            border-color 0.3s ease !important;
	position: relative !important;
	overflow: hidden !important;
}

.apw-cats-section .wp-block-columns > .wp-block-column:hover,
.apw-cats-section .apw-cat-card-col:hover {
	transform: translateY(-6px) !important;
	border-color: #38bdf8 !important;
	box-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px #38bdf8, 0 8px 24px rgba(14, 81, 209, 0.25) !important;
}

/* ==========================================================================
   HIỆU ỨNG XUẤT HIỆN ẢNH SẢN PHẨM KHI CUỘN TỚI (ENTRANCE REVEAL)
   ========================================================================== */
.apw-cat-card-col .apw-cat-card-img,
.apw-prod-card-col .apw-prod-card-img {
	position: relative !important;
	width: 100% !important;
	aspect-ratio: 4 / 3 !important;
	overflow: hidden !important;
	border-radius: 8px !important;
	background-color: #f1f5f9 !important;
	margin-bottom: 12px !important;
}

/* Ban đầu ảnh hơi thu nhỏ và mờ nhẹ */
.apw-cat-card-col .apw-cat-card-img img,
.apw-prod-card-col .apw-prod-card-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	opacity: 0;
	transform: scale(0.92) translateY(14px);
	filter: blur(3px) brightness(0.92);
	transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
	            filter 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
	will-change: opacity, transform, filter;
}

/* Khi phần tử được cuộn tới (thông qua .is-revealed) */
.apw-cat-card-col.is-revealed .apw-cat-card-img img,
.apw-prod-card-col.is-revealed .apw-prod-card-img img,
.is-revealed .apw-cat-card-col .apw-cat-card-img img,
.is-revealed .apw-prod-card-col .apw-prod-card-img img,
.apw-cats-section.is-revealed .apw-cat-card-img img,
.apw-products-section.is-revealed .apw-prod-card-img img {
	opacity: 1 !important;
	transform: scale(1) translateY(0) !important;
	filter: blur(0) brightness(1) !important;
}

/* Staggered Delay (Hiệu ứng lướt sóng từ trái qua phải) */
.apw-cat-card-col:nth-child(1) .apw-cat-card-img img { transition-delay: 0.05s !important; }
.apw-cat-card-col:nth-child(2) .apw-cat-card-img img { transition-delay: 0.12s !important; }
.apw-cat-card-col:nth-child(3) .apw-cat-card-img img { transition-delay: 0.19s !important; }
.apw-cat-card-col:nth-child(4) .apw-cat-card-img img { transition-delay: 0.26s !important; }
.apw-cat-card-col:nth-child(5) .apw-cat-card-img img { transition-delay: 0.33s !important; }
.apw-cat-card-col:nth-child(6) .apw-cat-card-img img { transition-delay: 0.40s !important; }
.apw-cat-card-col:nth-child(7) .apw-cat-card-img img { transition-delay: 0.47s !important; }
.apw-cat-card-col:nth-child(8) .apw-cat-card-img img { transition-delay: 0.54s !important; }

/* Khi hover: phóng to nhẹ 1.045x êm ái */
.apw-cat-card-col:hover .apw-cat-card-img img,
.apw-prod-card-col:hover .apw-prod-card-img img {
	transform: scale(1.045) translateY(0) !important;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Tia sáng lướt qua khi hover */
.apw-cat-card-col .apw-cat-card-img::after,
.apw-prod-card-col .apw-prod-card-img::after {
	content: "" !important;
	position: absolute !important;
	top: -50% !important;
	left: -60% !important;
	width: 40% !important;
	height: 200% !important;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.35) 50%,
		rgba(255, 255, 255, 0) 100%
	) !important;
	transform: rotate(25deg) translateX(-150%) !important;
	pointer-events: none !important;
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 2 !important;
}

.apw-cat-card-col:hover .apw-cat-card-img::after,
.apw-prod-card-col:hover .apw-prod-card-img::after {
	opacity: 1;
	transform: rotate(25deg) translateX(350%) !important;
	transition: transform 0.75s ease-out, opacity 0.2s ease !important;
}

/* Tiêu đề & mô tả trong card */
.apw-cat-card-title,
.apw-cat-card-col h3.wp-block-heading {
	color: #0f172a !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	margin-top: 4px !important;
	margin-bottom: 4px !important;
	line-height: 1.4 !important;
}

.apw-cat-card-sub,
.apw-cat-card-col p.apw-cat-card-sub {
	color: #64748b !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	margin-bottom: 12px !important;
}

/* Nút bấm CTA */
.apw-cat-card-cta,
.apw-cat-card-col .wp-block-buttons {
	margin-top: auto !important;
	width: 100% !important;
}

.apw-cat-card-cta .wp-block-button,
.apw-cat-card-col .wp-block-button {
	width: 100% !important;
}

.apw-cat-card-cta .wp-block-button__link,
.apw-cat-card-col .wp-block-button__link {
	background-color: #0e51d1 !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	border-radius: 8px !important;
	padding: 8px 14px !important;
	text-align: center !important;
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.apw-cat-card-cta .wp-block-button__link:hover,
.apw-cat-card-col .wp-block-button__link:hover {
	background-color: #0c43a8 !important;
	transform: translateY(-1px) !important;
}

/* TRIỆT TIÊU TOÀN BỘ HUY HIỆU ĐÈ LÊN ẢNH */
.apw-img-trust-badge,
.apw-badge-tag {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
