/* Video section — section-5-home (โหลดไฟล์นี้หลัง style.css, plyr.css และไฟล์ breakpoint ทั้งหมด) */
.section-5-home.vd-section {
	--vd-main: #5e64a8;
	--vd-main-dark: #3d4178;
	--vd-rgb: 94, 100, 168;
	--vd-accent: #feb713;
	--vd-ink: #1f2133;
	--vd-muted: #5b5e72;
	--plyr-color-main: #5e64a8;
	--plyr-video-control-background-hover: #5e64a8;
	--plyr-range-fill-background: #feb713;
	position: relative;
	height: auto;
	max-height: none;
	padding: clamp(1rem, 1vw, 4.5rem) 0 clamp(2rem, 6vw, 15rem); /*clamp(2.5rem, 5vw, 4.5rem) 0 clamp(9rem, 16vw, 15rem);*/
	overflow: hidden;
	background-color: #f6f7fc;
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: cover;
}
.section-5-home.vd-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,247,252,.96) 0%, rgba(246,247,252,.75) 35%, rgba(246,247,252,0) 70%); pointer-events: none; }
.vd-section .container { position: relative; z-index: 1; }
/* Heading */
.vd-head { max-width: 680px; margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.vd-eyebrow { display: inline-block; margin-bottom: .6rem; padding: .3rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--vd-main); background: rgba(var(--vd-rgb), .12); }
.vd-title { position: relative; margin: 0 0 1rem; padding-bottom: .7rem; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 600; line-height: 1.2; color: var(--vd-ink); }
.vd-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--vd-accent), var(--vd-main)); transform: translateX(-50%); }
.vd-lead { margin: 0; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.6; color: var(--vd-muted); }
/* Cards */
.vd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.vd-card { display: flex; flex-direction: column; margin: 0; padding: .6rem; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 28px 50px -28px rgba(var(--vd-rgb), .75); transition: transform .3s, box-shadow .3s; }
.vd-card:hover { transform: translateY(-4px); box-shadow: 0 34px 56px -26px rgba(var(--vd-rgb), .8); }
.vd-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #0d0e1a; }
.vd-frame .plyr, .vd-frame > video, .vd-frame > div { width: 100%; height: 100%; }
.vd-frame .plyr { border-radius: 16px; }
.vd-frame .plyr__poster { background-size: cover; }
.vd-frame .plyr--video .plyr__control--overlaid { padding: clamp(14px, 1.6vw, 20px); background: rgba(var(--vd-rgb), .92); box-shadow: 0 0 0 8px rgba(255,255,255,.25), 0 12px 30px rgba(0,0,0,.35); }
.vd-frame .plyr--video .plyr__control--overlaid:hover { background: var(--vd-main); }
.vd-caption { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; padding: .85rem .6rem .35rem; }
.vd-tag { grid-row: 1 / span 2; align-self: center; padding: .35rem .7rem; border-radius: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--vd-main), var(--vd-main-dark)); }
.vd-caption strong { font-size: clamp(1rem, .9rem + .3vw, 1.15rem); font-weight: 600; line-height: 1.25; color: var(--vd-ink); }
.vd-caption small { font-size: .86rem; line-height: 1.35; color: var(--vd-muted); }
/* Responsive */
@media (max-width: 767.98px) {
	.vd-grid { grid-template-columns: 1fr; }
	.section-5-home.vd-section { padding-bottom: clamp(7rem, 30vw, 10rem); background-size: auto 60%; }
	.section-5-home.vd-section::before { background: linear-gradient(180deg, rgba(246,247,252,.97) 0%, rgba(246,247,252,.85) 60%, rgba(246,247,252,0) 90%); }
}
@media (prefers-reduced-motion: reduce) {
	.vd-card { transition: none; }
}