/**
 * NCC Hero Banner - Frontend Styles (Compact 6-Piece Cluster Mode)
 * Fully Responsive, GPU-Accelerated, Retina Ready, Zero-CLS
 */

/* ==========================================================================
   1. HERO CONTAINER & SECTION
   ========================================================================== */
.ncc-hero-section {
	position: relative;
	width: 100%;
	min-height: 520px;
	overflow: hidden;
	background-color: #56121E;
	font-family: 'FC Vision', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ncc-hero-swiper,
.ncc-hero-swiper .swiper-wrapper,
.ncc-hero-slide-main,
.ncc-hero-slide-static {
	width: 100%;
	height: 100%;
	min-height: 520px;
}

/* ==========================================================================
   2. SLIDE 1: MAIN INTERACTIVE HERO
   ========================================================================== */
.ncc-hero-slide-main {
	position: relative;
	display: flex;
	align-items: center;
	background-image: var(--ncc-bg-desktop);
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
}

@media (max-width: 767px) {
	.ncc-hero-slide-main {
		background-image: var(--ncc-bg-mobile, var(--ncc-bg-desktop));
		background-position: center top;
	}
}

.ncc-hero-bg-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Smooth blend: deep crimson on left to transparent on right */
	background: linear-gradient(90deg, rgba(74, 14, 23, 0.96) 0%, rgba(91, 19, 34, 0.90) 36%, rgba(91, 19, 34, 0.35) 62%, rgba(0, 0, 0, 0.08) 100%);
	pointer-events: none;
	z-index: 1;
}

.ncc-hero-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1560px;
	margin: 0 auto;
	padding: 40px 24px;
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	align-items: center;
	gap: 24px;
	box-sizing: border-box;
}

/* ==========================================================================
   3. LEFT COLUMN: CONTENT & SEO TYPOGRAPHY
   ========================================================================== */
.ncc-hero-content-col {
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #FFFFFF;
}

.ncc-hero-overline {
	font-size: var(--ncc-overline-size-desk, 17px);
	font-weight: 500;
	color: var(--ncc-overline-color, #FFFFFF);
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	opacity: 0.95;
}

.ncc-hero-heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 16px 0;
	letter-spacing: -0.2px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ncc-title-line-1 {
	font-size: var(--ncc-title1-size-desk, 52px);
	line-height: var(--ncc-title1-line-height, 1.15);
	font-weight: 600;
	color: var(--ncc-title1-color, #FFFFFF);
	display: block;
}

.ncc-title-line-2 {
	font-size: var(--ncc-title2-size-desk, 30px);
	line-height: var(--ncc-title2-line-height, 1.3);
	font-weight: 400;
	color: var(--ncc-title2-color, #FFFFFF);
	display: block;
}

.ncc-hero-description {
	font-size: var(--ncc-desc-size-desk, 15px);
	line-height: 1.65;
	font-weight: 400;
	color: var(--ncc-desc-color, rgba(255, 255, 255, 0.92));
	margin: 0 0 28px 0;
	max-width: 520px;
}

.ncc-hero-cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.ncc-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 24px;
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.25s ease-in-out;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ncc-hero-btn-secondary {
	background-color: var(--ncc-btn1-bg, rgba(255, 255, 255, 0.12));
	color: var(--ncc-btn1-text, #FFFFFF) !important;
	border: 1.5px solid var(--ncc-btn1-border, rgba(255, 255, 255, 0.65));
	backdrop-filter: blur(8px);
}

.ncc-hero-btn-secondary:hover {
	background-color: var(--ncc-btn1-hover-bg, #FFFFFF);
	color: var(--ncc-btn1-hover-text, #1E293B) !important;
	border-color: #FFFFFF;
	transform: translateY(-2px);
}

.ncc-hero-btn-primary {
	background-color: var(--ncc-btn2-bg, #A51C30);
	color: var(--ncc-btn2-text, #FFFFFF) !important;
	border: 1.5px solid var(--ncc-btn2-border, #A51C30);
}

.ncc-hero-btn-primary:hover {
	background-color: var(--ncc-btn2-hover-bg, #881337);
	border-color: var(--ncc-btn2-hover-bg, #881337);
	transform: translateY(-2px);
}

.ncc-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   4. RIGHT COLUMN: 6 FLOATING IMAGE PIECES (COMPACT CLUSTER)
   ========================================================================== */
.ncc-hero-graphic-col {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

/* Cluster Stage: scalable stage for the 6 pieces */
.ncc-hero-cluster-stage {
	position: relative;
	width: 100%;
	max-width: 700px;
	height: 490px;
	margin: 0 0 0 auto;
}

.ncc-float-piece {
	position: absolute;
	will-change: transform;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
	cursor: pointer;
}

.ncc-piece-img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.20));
	transition: transform 0.25s ease, filter 0.25s ease;
}

.ncc-float-piece:hover {
	z-index: 10 !important;
}

.ncc-float-piece:hover .ncc-piece-img {
	transform: scale(1.04) translateY(-3px);
	filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.30));
}

/* Tightly grouped coordinates (Hugging & interlocking around center card) */

/* Piece Center: Meeting photo with caption pill */
.ncc-piece-pos-center {
	top: 13%;
	left: 29%;
	width: 40%;
	z-index: 2;
}

/* Piece 1: Card 01 (ศึกษาและวิเคราะห์ - Top Left) */
.ncc-piece-pos-1 {
	top: 18%;
	left: 8%;
	width: 29%;
	z-index: 4;
}

/* Piece 5: Card 05 (ประเมินผล - Top Right) */
.ncc-piece-pos-5 {
	top: 5%;
	left: 67%;
	width: 29%;
	z-index: 4;
}

/* Piece 4: Card 04 (บริหารจัดการ - Middle/Bottom Right) */
.ncc-piece-pos-4 {
	top: 39%;
	left: 70%;
	width: 29%;
	z-index: 4;
}

/* Piece 2: Card 02 (วางแผนและออกแบบ - Bottom Left) */
.ncc-piece-pos-2 {
	top: 51%;
	left: 3%;
	width: 29%;
	z-index: 4;
}

/* Piece 3: Card 03 (พัฒนา - Bottom Center, tucked directly under center card) */
.ncc-piece-pos-3 {
	top: 64%;
	left: 39%;
	width: 29%;
	z-index: 5;
}

/* ==========================================================================
   5. GPU-ACCELERATED TIGHT FLOATING ANIMATIONS (GENTLE 2.5px)
   ========================================================================== */
@keyframes nccFloatA {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-2.5px); }
}

@keyframes nccFloatB {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(2.5px); }
}

.ncc-anim-active .ncc-piece-pos-1 {
	animation: nccFloatA var(--ncc-anim-duration, 6s) ease-in-out infinite;
	animation-delay: 0s;
}

.ncc-anim-active .ncc-piece-pos-2 {
	animation: nccFloatB calc(var(--ncc-anim-duration, 6s) * 1.1) ease-in-out infinite;
	animation-delay: 0.5s;
}

.ncc-anim-active .ncc-piece-pos-center {
	animation: nccFloatB calc(var(--ncc-anim-duration, 6s) * 1.25) ease-in-out infinite;
	animation-delay: 0.3s;
}

.ncc-anim-active .ncc-piece-pos-3 {
	animation: nccFloatA calc(var(--ncc-anim-duration, 6s) * 0.95) ease-in-out infinite;
	animation-delay: 1.0s;
}

.ncc-anim-active .ncc-piece-pos-4 {
	animation: nccFloatB calc(var(--ncc-anim-duration, 6s) * 1.05) ease-in-out infinite;
	animation-delay: 1.4s;
}

.ncc-anim-active .ncc-piece-pos-5 {
	animation: nccFloatA calc(var(--ncc-anim-duration, 6s) * 1.15) ease-in-out infinite;
	animation-delay: 0.8s;
}

/* Accessibility: Disable animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ncc-anim-active .ncc-float-piece {
		animation: none !important;
	}
}

/* ==========================================================================
   6. SLIDE 2+: STATIC BANNERS
   ========================================================================== */
.ncc-hero-slide-static {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000000;
}

.ncc-static-slide-link,
.ncc-static-slide-picture,
.ncc-static-slide-img {
	width: 100%;
	height: 100%;
	display: block;
}

.ncc-static-slide-img {
	object-fit: cover;
	object-position: center;
}

/* Slider Controls */
.ncc-swiper-nav-prev,
.ncc-swiper-nav-next {
	color: #FFFFFF !important;
	background: rgba(0, 0, 0, 0.4);
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease;
}

.ncc-swiper-nav-prev:after,
.ncc-swiper-nav-next:after {
	font-size: 18px !important;
	font-weight: 700;
}

.ncc-swiper-nav-prev:hover,
.ncc-swiper-nav-next:hover {
	background: rgba(165, 28, 48, 0.85);
}

.ncc-swiper-pagination .swiper-pagination-bullet {
	background: #FFFFFF !important;
	opacity: 0.6;
	width: 10px;
	height: 10px;
	transition: all 0.25s ease;
}

.ncc-swiper-pagination .swiper-pagination-bullet-active {
	opacity: 1;
	background: #A51C30 !important;
	width: 26px;
	border-radius: 6px;
}

/* ==========================================================================
   7. RESPONSIVENESS (TABLET & MOBILE)
   ========================================================================== */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
	.ncc-hero-section,
	.ncc-hero-swiper,
	.ncc-hero-slide-main {
		min-height: auto;
	}
	.ncc-hero-container {
		grid-template-columns: 1fr;
		padding: 40px 24px;
		gap: 32px;
	}
	.ncc-hero-content-col {
		text-align: center;
		align-items: center;
	}
	.ncc-hero-cta-group {
		justify-content: center;
	}
	.ncc-hero-cluster-stage {
		max-width: 430px;
		height: 286px;
	}
	.ncc-piece-pos-center { width: 40%; left: 29%; top: 13%; }
	.ncc-piece-pos-1 { width: 29%; top: 18%; left: 8%; }
	.ncc-piece-pos-5 { width: 29%; top: 5%; left: 67%; }
	.ncc-piece-pos-4 { width: 29%; top: 39%; left: 70%; }
	.ncc-piece-pos-2 { width: 29%; top: 51%; left: 3%; }
	.ncc-piece-pos-3 { width: 29%; top: 64%; left: 39%; }
}

/* Mobile Screens (< 768px) */
@media (max-width: 767px) {
	.ncc-hero-section {
		min-height: auto;
	}
	.ncc-hero-bg-overlay {
		background: linear-gradient(180deg, rgba(74, 14, 23, 0.94) 0%, rgba(91, 19, 34, 0.90) 65%, rgba(91, 19, 34, 0.82) 100%);
	}
	.ncc-hero-container {
		padding: 36px 20px 42px 20px;
		gap: 0;
		grid-template-columns: 1fr;
	}
	.ncc-hero-content-col {
		text-align: center;
		align-items: center;
	}
	.ncc-hero-cta-group {
		flex-direction: column;
		width: 100%;
		gap: 10px;
		justify-content: center;
	}
	.ncc-hero-btn {
		width: 100%;
		max-width: 320px;
		box-sizing: border-box;
	}

	/* Completely hide floating graphics column on mobile */
	.ncc-hero-graphic-col {
		display: none !important;
	}
}
