
.serif-font {
	/* font-family: 'Cinzel', serif; */
}

/* Scoped CSS สำหรับส่วนแอนิเมชันสามเหลี่ยม 3E (Energy, Emotion, Execution) */
#triangle-section {
	min-height: 100vh; 
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	background-color: #f7f6f4; /* พื้นหลังสีครีมอุ่นสไตล์ luxury เดียวกันทั้งชิ้นงาน */
	padding: 80px 24px;
	gap: 30px; /* ระยะห่างระหว่างสามเหลี่ยมและการ์ดอธิบาย ปรับให้ชิดกันมากที่สุดอย่างสวยงาม */
}

#triangle-section .triangle-wrapper {
	position: relative;
	width: 90%;
	max-width: 400px;
	aspect-ratio: 3 / 2; 
	margin-bottom: 10px; /* เพิ่มความชิดกระชับกับกล่องการ์ด */
}

/* คุณสมบัติร่วมของเศษสามเหลี่ยม */
#triangle-section .fragment {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0; 
	transform-origin: center center; 
	
	animation-duration: 6s;
	animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); 
	animation-fill-mode: forwards; 

	/* เพิ่ม Transition เพื่อให้การตอบสนองเมื่อ Hover และแยกออก มีความสมูทลื่นไหล พร้อม transition สีหรูหรา */
	transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
				opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
				filter 0.8s cubic-bezier(0.25, 1, 0.5, 1),
				background 0.8s ease,
				background-color 0.8s ease;
}

/* --- การตั้งค่าตัวหนังสือประกอบด้านข้าง (ตามความต้องการลูกค้า) --- */
#triangle-section .triangle-label {
	position: absolute;
	color: var(--heading-color, #2e1206); /* สีน้ำตาลเดียวกับแบนเนอร์บนสุด */
	font-weight: 700;
	font-size: 1.15rem;
	display: flex;
	align-items: baseline;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
				opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
				filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
				color 0.4s ease,
				text-shadow 0.4s ease;
	opacity: 0;
	pointer-events: none;
	z-index: 15;
	cursor: pointer;
	/* font-family: 'Cinzel', serif; */
}

#triangle-section .triangle-label .big-e {
	font-size: 1.65rem; 
	line-height: 1;
	font-weight: 800;
}

/* ตำแหน่งป้ายประกอบด้านข้างที่สมดุลและสวยงามบนจอใหญ่ */
#triangle-section .label-execution { top: 22%; left: -85px; }
#triangle-section .label-emotion { top: 22%; right: -85px; }
#triangle-section .label-energy { bottom: -45px; left: 50%; transform: translateX(-50%); }

/* ให้แสดงป้ายตัวหนังสือข้างนอกเฉพาะตอนที่แอนิเมชันประกอบเสร็จแล้ว (.animation-done) เท่านั้น */
#triangle-section.animation-done .triangle-label {
	opacity: 1;
	pointer-events: auto;
}

/* --- การตั้งค่าตัวอักษรด้านในสามเหลี่ยมขณะเล่นแอนิเมชันบินเข้ามา --- */
#triangle-section .text-content {
	position: absolute;
	color: white;
	font-weight: bold;
	font-size: 1rem;
	display: flex;
	align-items: baseline;
	text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
	transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
	opacity: 1;
	pointer-events: none;
}

#triangle-section .big-e {
	font-size: 1.5rem; 
	line-height: 1;
}

#triangle-section .angle1 .text-content { top: 55%; left: 38%; transform: translate(-50%, -50%); }
#triangle-section .angle2 .text-content { top: 55%; left: 63%; transform: translate(-50%, -50%); }
#triangle-section .angle3 .text-content { top: 85%; left: 50%; transform: translate(-50%, -50%); }

/* เมื่อแอนิเมชันประกอบสำเร็จ ให้ซ่อนตัวหนังสือด้านในอย่างสมูทและเป็นธรรมชาติ */
#triangle-section.animation-done .fragment .text-content {
	opacity: 0 !important;
	pointer-events: none;
}

/* --- การวาดรูปทรง --- */
#triangle-section .fragment.angle1 {
	background-color: #856d09;
	clip-path: polygon(50% 0%, 0% 100%, 50% 65%);
}
#triangle-section .fragment.angle2 {
	background-color: #72551b;
	clip-path: polygon(50% 0%, 100% 100%, 50% 65%);
}
#triangle-section .fragment.angle3 {
	background-color: #83570b;
	clip-path: polygon(0% 100%, 100% 100%, 50% 65%);
}

/* --- Trigger Class --- */
#triangle-section.start-anim .fragment.angle1 { animation-name: entryAngle1; }
#triangle-section.start-anim .fragment.angle2 { animation-name: entryAngle2; }
#triangle-section.start-anim .fragment.angle3 { animation-name: entryAngle3; }

/* --- การจัดการหลังจากเล่น Entry Animation จบแล้ว (เพื่อรองรับการ Hover) --- */
#triangle-section.animation-done .fragment {
	animation: none !important; /* ปิดแอนิเมชันหลักเพื่อให้ CSS Transition ทำงานแทนได้อย่างสมบูรณ์ */
	opacity: 1;
	transform: translate(0, 0) scale(1);
	cursor: pointer;
}

/* เมื่อแอนิเมชันรวมตัวเป็นปีรามิดเสร็จสิ้น ให้ทุกชิ้นส่วนเปลี่ยนเป็นสีเหลืองทองหรูหรา */
#triangle-section.animation-done .fragment.angle1 {
	background: linear-gradient(135deg, #f6df65 0%, #e9c010 50%, #c99e02 100%) !important;
}
#triangle-section.animation-done .fragment.angle2 {
	background: linear-gradient(225deg, #f2d852 0%, #d4ae0c 50%, #9e7f00 100%) !important;
}
#triangle-section.animation-done .fragment.angle3 {
	background: linear-gradient(180deg, #ebd04b 0%, #bd9900 100%) !important;
}

/* เอฟเฟกต์การโฮเวอร์: แยกตัวสามเหลี่ยมออกจากกันและขยายขนาดอย่างช้าๆ นุ่มนวล */
#triangle-section.animation-done .fragment.angle1:hover {
	transform: translate(-20px, -10px) scale(1.08);
	z-index: 10;
}

#triangle-section.animation-done .fragment.angle2:hover {
	transform: translate(20px, -10px) scale(1.08);
	z-index: 10;
}

#triangle-section.animation-done .fragment.angle3:hover {
	transform: translate(0, 20px) scale(1.08);
	z-index: 10;
}

/* เอฟเฟกต์เบลอและการจางลงของเศษสามเหลี่ยมที่เหลือ และเบลอการ์ดที่ไม่เกี่ยวข้องกันด้วย */
#triangle-section.animation-done .fragment {
	transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
				opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
				filter 0.8s cubic-bezier(0.25, 1, 0.5, 1),
				background 0.8s ease,
				background-color 0.8s ease;
}

#triangle-section .pillar-card {
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
				opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
				filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
				box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
				border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* เมื่อโฮเวอร์ที่รูปสามเหลี่ยมใด ๆ -> เชื่อมโยงไปยังการ์ดอธิบายที่ถูกต้อง */
/* 1. Execution (.angle1) -> ไฮไลท์การ์ด Execution (angle3-card) และหรี่การ์ดอื่น */
#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle1:hover) ~ .cards-container .pillar-card:not(.angle3-card) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}
/* 2. Emotion (.angle2) -> ไฮไลท์การ์ด Emotion (angle2-card) และหรี่การ์ดอื่น */
#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle2:hover) ~ .cards-container .pillar-card:not(.angle2-card) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}
/* 3. Energy (.angle3) -> ไฮไลท์การ์ด Energy (angle1-card) และหรี่การ์ดอื่น */
#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle3:hover) ~ .cards-container .pillar-card:not(.angle1-card) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}

/* เพิ่มแอนิเมชัน Pulse หรือการขยายตัวให้กับการ์ดที่ตรงกับชิ้นสามเหลี่ยมที่ถูก Hover เพื่อให้เด่นชัดขึ้น */
/* 1. เมื่อ Hover ชิ้น Execution -> ขยายการ์ด Execution (angle3-card) */
#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle1:hover) ~ .cards-container .pillar-card.angle3-card {
	transform: scale(1.03) translateY(-4px);
	box-shadow: 0 24px 48px rgba(234, 150, 130, 0.22);
	border-color: rgba(234, 150, 130, 0.5);
}
/* เมื่อ hover การ์ด Execution -> ชิ้น Execution เด้งตัวแยกออกมา */
#triangle-section.animation-done:has(.pillar-card.angle3-card:hover) .fragment.angle1 {
	transform: translate(-20px, -10px) scale(1.08);
	z-index: 10;
	opacity: 1;
	filter: none;
}

/* 2. เมื่อ Hover ชิ้น Emotion -> ขยายการ์ด Emotion (angle2-card) */
#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle2:hover) ~ .cards-container .pillar-card.angle2-card {
	transform: scale(1.03) translateY(-4px);
	box-shadow: 0 24px 48px rgba(241, 194, 107, 0.22);
	border-color: rgba(241, 194, 107, 0.5);
}
/* เมื่อ hover การ์ด Emotion -> ชิ้น Emotion เด้งตัวแยกออกมา */
#triangle-section.animation-done:has(.pillar-card.angle2-card:hover) .fragment.angle2 {
	transform: translate(20px, -10px) scale(1.08);
	z-index: 10;
	opacity: 1;
	filter: none;
}

/* 3. เมื่อ Hover ชิ้น Energy -> ขยายการ์ด Energy (angle1-card) */
#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle3:hover) ~ .cards-container .pillar-card.angle1-card {
	transform: scale(1.03) translateY(-4px);
	box-shadow: 0 24px 48px rgba(136, 197, 189, 0.22);
	border-color: rgba(136, 197, 189, 0.5);
}
/* เมื่อ hover การ์ด Energy -> ชิ้น Energy เด้งตัวแยกออกมา */
#triangle-section.animation-done:has(.pillar-card.angle1-card:hover) .fragment.angle3 {
	transform: translate(0, 20px) scale(1.08);
	z-index: 10;
	opacity: 1;
	filter: none;
}

/* เมื่อโฮเวอร์ที่ตัวป้ายหนังสือประกอบด้านข้างโดยตรง -> ให้ส่งผลต่อชิ้นสามเหลี่ยมและการ์ด */
#triangle-section.animation-done .triangle-wrapper:has(.label-execution:hover) .fragment.angle1 {
	transform: translate(-20px, -10px) scale(1.08);
	z-index: 10;
}
#triangle-section.animation-done .triangle-wrapper:has(.label-execution:hover) .fragment:not(.angle1) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}
#triangle-section.animation-done .triangle-wrapper:has(.label-execution:hover) ~ .cards-container .pillar-card.angle3-card {
	transform: scale(1.03) translateY(-4px);
	box-shadow: 0 24px 48px rgba(234, 150, 130, 0.22);
	border-color: rgba(234, 150, 130, 0.5);
}
#triangle-section.animation-done .triangle-wrapper:has(.label-execution:hover) ~ .cards-container .pillar-card:not(.angle3-card) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}

#triangle-section.animation-done .triangle-wrapper:has(.label-emotion:hover) .fragment.angle2 {
	transform: translate(20px, -10px) scale(1.08);
	z-index: 10;
}
#triangle-section.animation-done .triangle-wrapper:has(.label-emotion:hover) .fragment:not(.angle2) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}
#triangle-section.animation-done .triangle-wrapper:has(.label-emotion:hover) ~ .cards-container .pillar-card.angle2-card {
	transform: scale(1.03) translateY(-4px);
	box-shadow: 0 24px 48px rgba(241, 194, 107, 0.22);
	border-color: rgba(241, 194, 107, 0.5);
}
#triangle-section.animation-done .triangle-wrapper:has(.label-emotion:hover) ~ .cards-container .pillar-card:not(.angle2-card) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}

#triangle-section.animation-done .triangle-wrapper:has(.label-energy:hover) .fragment.angle3 {
	transform: translate(0, 20px) scale(1.08);
	z-index: 10;
}
#triangle-section.animation-done .triangle-wrapper:has(.label-energy:hover) .fragment:not(.angle3) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}
#triangle-section.animation-done .triangle-wrapper:has(.label-energy:hover) ~ .cards-container .pillar-card.angle1-card {
	transform: scale(1.03) translateY(-4px);
	box-shadow: 0 24px 48px rgba(136, 197, 189, 0.22);
	border-color: rgba(136, 197, 189, 0.5);
}
#triangle-section.animation-done .triangle-wrapper:has(.label-energy:hover) ~ .cards-container .pillar-card:not(.angle1-card) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}

/* เอฟเฟกต์การโฮเวอร์ของป้ายข้อความดึงดูดสายตา */
#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle1:hover) .label-execution,
#triangle-section.animation-done .label-execution:hover,
#triangle-section.animation-done:has(.pillar-card.angle3-card:hover) .label-execution {
	transform: scale(1.1);
	color: #e9c010;
	text-shadow: 0 2px 10px rgba(233, 192, 16, 0.2);
	opacity: 1;
	filter: none !important; /* ปิดเอฟเฟกต์เบลอสำหรับป้ายคำที่เกี่ยวข้อง */
}

#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle2:hover) .label-emotion,
#triangle-section.animation-done .label-emotion:hover,
#triangle-section.animation-done:has(.pillar-card.angle2-card:hover) .label-emotion {
	transform: scale(1.1);
	color: #e9c010;
	text-shadow: 0 2px 10px rgba(233, 192, 16, 0.2);
	opacity: 1;
	filter: none !important; /* ปิดเอฟเฟกต์เบลอสำหรับป้ายคำที่เกี่ยวข้อง */
}

#triangle-section.animation-done .triangle-wrapper:has(.fragment.angle3:hover) .label-energy,
#triangle-section.animation-done .label-energy:hover,
#triangle-section.animation-done:has(.pillar-card.angle1-card:hover) .label-energy {
	transform: scale(1.1) translateX(-50%); /* รักษาการจัดกึ่งกลางของป้ายล่าง */
	color: #e9c010;
	text-shadow: 0 2px 10px rgba(233, 192, 16, 0.2);
	opacity: 1;
	filter: none !important; /* ปิดเอฟเฟกต์เบลอสำหรับป้ายคำที่เกี่ยวข้อง */
}

/* เมื่อโฮเวอร์ที่การ์ดใบใดใบหนึ่ง ให้เบลอการ์ดใบอื่นและเศษสามเหลี่ยมส่วนอื่นด้วย */
#triangle-section.animation-done .cards-container:hover .pillar-card:not(:hover) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}
#triangle-section.animation-done:has(.pillar-card.angle1-card:hover) .fragment:not(.angle3) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}
#triangle-section.animation-done:has(.pillar-card.angle2-card:hover) .fragment:not(.angle2) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}
#triangle-section.animation-done:has(.pillar-card.angle3-card:hover) .fragment:not(.angle1) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}

/* เมื่อโฮเวอร์ที่ป้ายหรือการ์ดหรือแผ่น ให้เบลอตัวอื่น ๆ */
#triangle-section.animation-done .triangle-wrapper:hover .triangle-label:not(:hover) {
	opacity: 0.3;
	filter: blur(1px);
}
#triangle-section.animation-done:has(.pillar-card:hover) .triangle-label {
	opacity: 0.3;
	filter: blur(1px);
}
#triangle-section.animation-done:has(.pillar-card.angle1-card:hover) .label-energy,
#triangle-section.animation-done:has(.pillar-card.angle2-card:hover) .label-emotion,
#triangle-section.animation-done:has(.pillar-card.angle3-card:hover) .label-execution {
	opacity: 1;
	filter: none;
}

/* เมื่อเอาเมาส์จ่อสามเหลี่ยม ให้ลดความสว่างของสามเหลี่ยมชิ้นอื่นลง */
#triangle-section.animation-done .triangle-wrapper:hover .fragment:not(:hover) {
	opacity: 0.35;
	filter: grayscale(40%) blur(2px);
}

/* --- KEYFRAMES ANIMATIONS --- */
@keyframes entryAngle1 {
	0% {
		opacity: 0;
		transform: translate(-60vw, -60vh) rotate(-720deg) scale(0.1);
	}
	10% { opacity: 1; }
	70% {
		transform: translate(-10%, -10%) rotate(0deg) scale(0.85);
	}
	100% {
		opacity: 1;
		transform: translate(0%, 0%) rotate(0deg) scale(1);
	}
}

@keyframes entryAngle2 {
	0% {
		opacity: 0;
		transform: translate(60vw, -60vh) rotate(720deg) scale(0.1);
	}
	10% { opacity: 1; }
	70% {
		transform: translate(10%, -10%) rotate(0deg) scale(0.85);
	}
	100% {
		opacity: 1;
		transform: translate(0%, 0%) rotate(0deg) scale(1);
	}
}

@keyframes entryAngle3 {
	0% {
		opacity: 0;
		transform: translate(0, 60vh) rotate(720deg) scale(0.1);
	}
	10% { opacity: 1; }
	70% {
		transform: translate(0, 10%) rotate(0deg) scale(0.85);
	}
	100% {
		opacity: 1;
		transform: translate(0%, 0%) rotate(0deg) scale(1);
	}
}

/* --- ส่วนของการ์ดสามเสาหลัก (3 Pillars) --- */
#triangle-section .cards-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	width: 100%;
	max-width: 1200px;
	/* font-family: 'Plus Jakarta Sans', 'Sarabun', sans-serif; */
	margin-top: 10px; /* ขยับเข้าไปใกล้ขึ้นอีกนิด */
}

#triangle-section .pillar-card {
	background: #ffffff;
	border-radius: 24px;
	padding: 45px 35px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.03);
	border: 1px solid rgba(0, 0, 0, 0.04);
	transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}

#triangle-section .card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 24px;
}

#triangle-section .header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

#triangle-section .icon-box {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	transition: all 0.4s ease;
}

#triangle-section .title-box {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

#triangle-section .pillar-subtitle {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

#triangle-section .pillar-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #1e1e1f;
	margin: 0;
	line-height: 1.1;
}

#triangle-section .header-right {
	display: flex;
	align-items: flex-start;
}

#triangle-section .pillar-number {
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	/* font-family: 'Playfair Display', serif, sans-serif; */
}

#triangle-section .pillar-quote {
	font-size: 0.95rem;
	font-style: italic;
	color: #8e8e93;
	margin-top: 4px;
	margin-bottom: 24px;
	/* font-family: 'Playfair Display', serif; */
	letter-spacing: 0.3px;
}

#triangle-section .pillar-card--expanded .pillar-quote {
	font-size: 1.05rem;
	font-style: normal;
	font-weight: 600;
	color: #2d1b10;
	margin-bottom: 0;
	letter-spacing: 0.02em;
}

#triangle-section .pillar-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

#triangle-section .pillar-tagline-th {
	font-size: 0.92rem;
	line-height: 1.5;
	color: #8e6e58;
	font-weight: 500;
}

#triangle-section .pillar-theme-block {
	padding-top: 0.75rem;
	border-top: 1px solid rgba(142, 110, 88, 0.18);
}

#triangle-section .pillar-step {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #856d09;
	margin-bottom: 0.35rem;
}

#triangle-section .angle2-card .pillar-step,
#triangle-section .angle2-card .pillar-key-focus-label {
	color: #72551b;
}

#triangle-section .angle3-card .pillar-step,
#triangle-section .angle3-card .pillar-key-focus-label {
	color: #83570b;
}

#triangle-section .pillar-theme-en {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
	color: #2d1b10;
	letter-spacing: 0.02em;
}

#triangle-section .pillar-theme-th {
	font-size: 0.88rem;
	line-height: 1.45;
	color: #6b5a4a;
	margin-top: 0.2rem;
}

#triangle-section .pillar-lead {
	font-size: 0.92rem;
	line-height: 1.65;
	font-weight: 600;
	color: #3e522d;
}

#triangle-section .pillar-closing-en {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.5;
	color: #2d1b10;
}

#triangle-section .pillar-closing-th {
	font-size: 0.88rem;
	line-height: 1.55;
	color: #6b5a4a;
	font-style: italic;
}

#triangle-section .pillar-key-focus {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid rgba(142, 110, 88, 0.14);
}

#triangle-section .pillar-key-focus-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #856d09;
}

#triangle-section .pillar-key-focus-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

#triangle-section .pillar-key-focus-list li {
	position: relative;
	padding-left: 1rem;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #555557;
}

#triangle-section .pillar-key-focus-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #8e6e58;
	opacity: 0.75;
}

#triangle-section .pillar-desc {
	font-size: 0.95rem;
	line-height: 1.8;
	color: #555557;
	margin: 0;
	/* font-family: 'Sarabun', sans-serif; */
	font-weight: 400;
}

#triangle-section .pillar-card--expanded .pillar-desc {
	font-size: 0.88rem;
	line-height: 1.75;
}

/* --- คลาสสีตามเสาหลักเพื่อให้สอดคล้องกับสามเหลี่ยม --- */
#triangle-section .pillar-card.angle1-card {
	border-left: 5px solid #856d09;
}
#triangle-section .pillar-card.angle1-card .icon-box {
	background-color: rgba(133, 109, 9, 0.15);
	color: #856d09;
}
#triangle-section .pillar-card.angle1-card .pillar-subtitle {
	color: #856d09;
}
#triangle-section .pillar-card.angle1-card .pillar-number {
	color: rgba(133, 109, 9, 0.4);
}
#triangle-section .pillar-card.angle1-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(133, 109, 9, 0.18);
	border-color: rgba(133, 109, 9, 0.4);
}
#triangle-section .pillar-card.angle1-card:hover .icon-box {
	background-color: #856d09;
	color: #ffffff;
}

#triangle-section .pillar-card.angle2-card {
	border-left: 5px solid #72551b;
}
#triangle-section .pillar-card.angle2-card .icon-box {
	background-color: rgba(114, 85, 27, 0.15);
	color: #72551b;
}
#triangle-section .pillar-card.angle2-card .pillar-subtitle {
	color: #72551b;
}
#triangle-section .pillar-card.angle2-card .pillar-number {
	color: rgba(114, 85, 27, 0.4);
}
#triangle-section .pillar-card.angle2-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(114, 85, 27, 0.18);
	border-color: rgba(114, 85, 27, 0.4);
}
#triangle-section .pillar-card.angle2-card:hover .icon-box {
	background-color: #72551b;
	color: #ffffff;
}

#triangle-section .pillar-card.angle3-card {
	border-left: 5px solid #83570b;
}
#triangle-section .pillar-card.angle3-card .icon-box {
	background-color: rgba(131, 87, 11, 0.15);
	color: #83570b;
}
#triangle-section .pillar-card.angle3-card .pillar-subtitle {
	color: #83570b;
}
#triangle-section .pillar-card.angle3-card .pillar-number {
	color: rgba(131, 87, 11, 0.4);
}
#triangle-section .pillar-card.angle3-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(131, 87, 11, 0.18);
	border-color: rgba(131, 87, 11, 0.4);
}
#triangle-section .pillar-card.angle3-card:hover .icon-box {
	background-color: #83570b;
	color: #ffffff;
}

/* --- The Integration --- */
#triangle-section .pillar-integration {
	position: relative;
	width: 100%;
	max-width: 1100px;
	margin-top: 3rem;
	padding: 2.5rem 2rem 2rem;
	background:
		linear-gradient(165deg, rgba(255, 252, 248, 0.97) 0%, rgba(245, 239, 230, 0.88) 100%);
	border: 1px solid rgba(142, 110, 88, 0.2);
	border-radius: 28px;
	box-shadow:
		0 4px 6px rgba(45, 27, 16, 0.03),
		0 18px 48px rgba(62, 82, 45, 0.1);
	overflow: hidden;
}

#triangle-section .pillar-integration::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		#856d09 0%,
		#72551b 50%,
		#83570b 100%
	);
	opacity: 0.85;
}

#triangle-section .pillar-integration::after {
	content: "";
	position: absolute;
	top: -40%;
	right: -8%;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(62, 82, 45, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

#triangle-section .pillar-integration-head {
	position: relative;
	z-index: 1;
	margin-bottom: 1.75rem;
}

#triangle-section .pillar-integration-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #8e6e58;
}

#triangle-section .pillar-integration-rule {
	display: block;
	width: 48px;
	height: 2px;
	margin: 0.65rem auto 0;
	background: linear-gradient(90deg, transparent, #8e6e58, transparent);
	border-radius: 2px;
}

#triangle-section .pillar-integration-flow {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: stretch;
	gap: 0;
}

#triangle-section .pillar-integration-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.35rem 1.1rem 1.25rem;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(142, 110, 88, 0.12);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(45, 27, 16, 0.05);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
				box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#triangle-section .pillar-integration-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(45, 27, 16, 0.09);
}

#triangle-section .pillar-integration-step-badge {
	display: inline-block;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

#triangle-section .pillar-integration-step--energy .pillar-integration-step-badge {
	color: #856d09;
	background: rgba(133, 109, 9, 0.12);
}

#triangle-section .pillar-integration-step--emotion .pillar-integration-step-badge {
	color: #72551b;
	background: rgba(114, 85, 27, 0.12);
}

#triangle-section .pillar-integration-step--execution .pillar-integration-step-badge {
	color: #83570b;
	background: rgba(131, 87, 11, 0.12);
}

#triangle-section .pillar-integration-step-keyword {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
	color: #2d1b10;
	letter-spacing: 0.01em;
}

#triangle-section .pillar-integration-step-action {
	font-size: 0.95rem;
	line-height: 1.4;
	color: #3e522d;
	font-style: italic;
	margin-top: 0.2rem;
}

#triangle-section .pillar-integration-step-th {
	font-size: 0.82rem;
	line-height: 1.6;
	color: #6b5a4a;
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(142, 110, 88, 0.14);
	max-width: 17rem;
}

#triangle-section .pillar-integration-connector {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.35rem;
	min-width: 2.5rem;
	position: relative;
}

#triangle-section .pillar-integration-connector-line {
	display: block;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, rgba(142, 110, 88, 0.08), rgba(142, 110, 88, 0.45), rgba(142, 110, 88, 0.08));
}

#triangle-section .pillar-integration-connector-dot {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #8e6e58;
	box-shadow: 0 0 0 4px rgba(142, 110, 88, 0.12);
}

@media (max-width: 991px) {
	#triangle-section .cards-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	#triangle-section .pillar-integration-flow {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	#triangle-section .pillar-integration-connector {
		flex-direction: column;
		min-width: auto;
		padding: 0.15rem 0;
		min-height: 1.5rem;
	}

	#triangle-section .pillar-integration-connector-line {
		width: 1px;
		height: 100%;
		background: linear-gradient(180deg, rgba(142, 110, 88, 0.08), rgba(142, 110, 88, 0.45), rgba(142, 110, 88, 0.08));
	}

	#triangle-section .pillar-integration-step {
		align-items: flex-start;
		text-align: left;
	}

	#triangle-section .pillar-integration-step-th {
		max-width: none;
	}
}

@media (max-width: 767px) {
	#triangle-section {
		padding: 40px 16px;
		gap: 20px;
	}
	#triangle-section .cards-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	#triangle-section .pillar-card {
		padding: 35px 28px;
	}
	#triangle-section .pillar-integration {
		margin-top: 1.75rem;
		padding: 1.75rem 1.1rem 1.25rem;
		border-radius: 22px;
	}
	#triangle-section .pillar-integration-head {
		margin-bottom: 1.25rem;
	}
}

@media (max-width: 600px) {
	#triangle-section .triangle-label {
		font-size: 0.95rem;
	}
	#triangle-section .triangle-label .big-e {
		font-size: 1.35rem;
	}
	#triangle-section .label-execution { top: 18%; left: -5px; }
	#triangle-section .label-emotion { top: 18%; right: -5px; }
	#triangle-section .label-energy { bottom: -35px; }
}