/* =========================================================================
   VIDEO GUIDE
   ========================================================================= */

#video-guide.section {
	padding: 3.75rem 0;
}

.vg-bg {
	background:
		radial-gradient(circle at 50% 8%, rgba(16, 185, 129, 0.1), transparent 32%),
		linear-gradient(180deg, #fbfffd 0%, #f2faf5 60%, #eef7f1 100%);
}

.vg-section-head {
	max-width: 54rem;
	margin: 0 auto 1.75rem;
}

.vg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.vg-layout {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
		gap: 2rem;
	}
}

/* ---- Left: story card ---- */
.vg-story {
	border-radius: var(--r-xl);
	border: 1px solid var(--border);
	background: var(--card-grad);
	box-shadow: var(--shadow-card);
	padding: 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.vg-story-head {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vg-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	align-self: flex-start;
	padding: 0.45rem 0.8rem;
	border-radius: var(--r-pill);
	background: rgba(4, 120, 87, 0.08);
	border: 1px solid rgba(4, 120, 87, 0.14);
	color: var(--green-deep);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
}

.vg-story-kicker {
	color: var(--text-2);
	font-size: var(--text-sm);
	line-height: 1.5;
	margin: 0;
}

.vg-featured-title {
	font-size: clamp(1.4rem, 1.6vw, 1.8rem);
	font-weight: 700;
	color: var(--text-strong);
	line-height: 1.2;
	margin: 0;
}

.vg-featured-desc {
	font-size: var(--text-sm);
	color: var(--text-2);
	line-height: 1.7;
	margin: 0;
}

.vg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.35rem;
}

.vg-actions .btn {
	flex: 0 1 auto;
}

/* ---- Right: vertical video stage (fits on screen, no scroll) ---- */
.vg-stage {
	min-width: 0;
	align-self: center;
	justify-self: center;
	width: 100%;
}

.vg-stage-shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Native vertical frame — the source video is genuinely 9:16, so the iframe
   fills it directly (no crop/scale). A larger player also makes YouTube's
   auto-selector serve a higher default resolution. */
.vg-stage-media {
	position: relative;
	aspect-ratio: 9 / 16;
	height: clamp(22rem, 68vh, 34rem);
	width: auto;
	max-width: 100%;
	margin-inline: auto;
	border-radius: var(--r-xl);
	overflow: hidden;
	background: #0a1f18;
	border: 1px solid rgba(7, 19, 15, 0.08);
	box-shadow:
		0 18px 44px rgba(4, 120, 87, 0.18),
		0 4px 14px rgba(7, 19, 15, 0.08);
}

.vg-thumb,
.vg-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.vg-thumb {
	object-fit: cover;
	object-position: center;
	transition: opacity var(--t-slow), transform var(--t-ui);
}

.vg-stage-media:hover .vg-thumb {
	transform: scale(1.03);
}

.vg-stage-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	z-index: 2;
	background: linear-gradient(180deg, rgba(7, 19, 15, 0.08) 0%, rgba(7, 19, 15, 0.32) 100%);
	transition: opacity var(--t-slow);
}

.vg-stage-copy {
	display: none;
}

.vg-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--green-bright), var(--green));
	border: 3px solid rgba(255, 255, 255, 0.92);
	box-shadow:
		0 12px 30px rgba(4, 120, 87, 0.4),
		0 0 0 8px rgba(4, 120, 87, 0.12);
	color: #fff;
	cursor: pointer;
	transition: transform var(--t-ui), box-shadow var(--t-ui);
}

.vg-play:hover {
	transform: scale(1.08);
	box-shadow:
		0 16px 36px rgba(4, 120, 87, 0.48),
		0 0 0 10px rgba(4, 120, 87, 0.16);
}

.vg-play svg {
	width: 1.6rem;
	height: 1.6rem;
	margin-left: 0.15rem;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.vg-tag {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 3;
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: var(--ls-wide);
	padding: 0.3rem 0.65rem;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--c) 90%, black 10%);
	color: var(--on-green);
	box-shadow: 0 6px 16px rgba(4, 120, 87, 0.28);
}

.vg-iframe {
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--t-slow);
	z-index: 4;
	background: #000;
}

.vg-stage-shell.is-playing .vg-iframe {
	opacity: 1;
	pointer-events: auto;
}

.vg-stage-shell.is-playing .vg-thumb,
.vg-stage-shell.is-playing .vg-stage-overlay,
.vg-stage-shell.is-playing .vg-tag {
	opacity: 0;
	pointer-events: none;
}

/* Single-column layout (phones + tablets, below the 1024px two-column break). */
@media (max-width: 1023px) {
	#video-guide.section {
		padding: 2.75rem 0;
	}

	.vg-layout {
		gap: 1.25rem;
	}

	/* Video first — it's the point of the section, so it shouldn't sit below
	   a tall wall of text on a phone. */
	.vg-stage {
		order: -1;
	}

	.vg-stage-media {
		height: clamp(17rem, 46vh, 23rem);
	}

	.vg-story {
		padding: 1.3rem 1.15rem;
		gap: 0.85rem;
	}

	.vg-featured-title {
		font-size: 1.3rem;
	}

	.vg-featured-desc {
		line-height: 1.6;
	}

	.vg-play {
		width: 3.4rem;
		height: 3.4rem;
	}

	.vg-play svg {
		width: 1.3rem;
		height: 1.3rem;
	}
}
