/* Veduka Courses — launch buttons, embeds and lightbox. */

.vc-course {
	--vc-purple: #9367a2;
	--vc-purple-dark: #7d5590;
	--vc-purple-deep: #6b4880;
	--vc-radius: 999px;
	--vc-font: inherit;
	margin: 1.5em 0;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

/* Every declaration is explicit: themes style bare <a>/<button> heavily. */
.vc-course .vc-btn,
.vc-locked .vc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	margin: 0;
	padding: 14px 32px;
	border: 0;
	border-radius: var(--vc-radius);
	background: linear-gradient(135deg, var(--vc-purple) 0%, var(--vc-purple-dark) 100%);
	color: #fff;
	font-family: var(--vc-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(147, 103, 162, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	max-width: 100%;
}

.vc-course .vc-btn:hover,
.vc-course .vc-btn:focus,
.vc-locked .vc-btn:hover {
	background: linear-gradient(135deg, var(--vc-purple-dark) 0%, var(--vc-purple-deep) 100%);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(147, 103, 162, 0.45);
	text-decoration: none;
}

.vc-course .vc-btn:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(147, 103, 162, 0.35);
}

.vc-course .vc-btn:focus-visible,
.vc-locked .vc-btn:focus-visible {
	outline: 3px solid var(--vc-purple-deep);
	outline-offset: 3px;
}

.vc-btn--lg {
	padding: 16px 40px !important;
	font-size: 18px !important;
}

.vc-btn--sm {
	padding: 9px 18px !important;
	font-size: 14px !important;
	box-shadow: 0 3px 10px rgba(147, 103, 162, 0.28) !important;
}

/* Secondary action */
.vc-course .vc-btn--ghost {
	background: transparent;
	color: var(--vc-purple-dark);
	border: 2px solid var(--vc-purple);
	box-shadow: none;
}

.vc-course .vc-btn--ghost:hover {
	background: rgba(147, 103, 162, 0.1);
	color: var(--vc-purple-deep);
	box-shadow: none;
}

.vc-btn__icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.vc-btn__label {
	display: inline-block;
}

.vc-btn__img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Flat style */
.vc-style-flat .vc-btn {
	background: var(--vc-purple);
	border-radius: 8px;
	box-shadow: none;
	font-weight: 600;
}

.vc-style-flat .vc-btn:hover {
	background: var(--vc-purple-dark);
	transform: none;
	box-shadow: none;
}

/* Card style */
.vc-style-card {
	display: inline-block;
	padding: 20px 24px;
	border: 1px solid #e6dced;
	border-radius: 16px;
	background: #fdfbfe;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	max-width: 100%;
}

.vc-course__title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	color: #3b2b45;
	line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/* Inline embed                                                        */
/* ------------------------------------------------------------------ */

.vc-embed {
	position: relative;
	width: 100%;
	margin: 0 auto;
	background: #f4eef7;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.vc-embed--ratio {
	aspect-ratio: var(--vc-embed-ratio, 16 / 9);
}

.vc-embed--fixed {
	height: var(--vc-embed-height, 600px);
	max-height: 80vh;
}

.vc-embed__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
	.vc-embed--ratio {
		height: 0;
		padding-bottom: 56.25%;
	}
}

.vc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 12px;
}

/* Fullscreen: let the frame fill the screen. */
.vc-embed:fullscreen,
.vc-course:fullscreen {
	width: 100%;
	height: 100%;
	max-height: none;
	border-radius: 0;
	background: #000;
	aspect-ratio: auto;
}

.vc-course:fullscreen .vc-embed {
	height: 100%;
	max-height: none;
	border-radius: 0;
	aspect-ratio: auto;
}

.vc-course:fullscreen .vc-actions,
.vc-course:fullscreen .vc-course__title {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */

.vc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(28, 18, 33, 0.85);
	animation: vc-fade 0.2s ease;
}

.vc-modal[hidden] {
	display: none;
}

.vc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 1200px;
	height: 100%;
	max-height: 90vh;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
}

.vc-modal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: linear-gradient(135deg, var(--vc-purple, #9367a2), var(--vc-purple-dark, #7d5590));
	color: #fff;
	flex-shrink: 0;
}

.vc-modal__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vc-modal__tools {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.vc-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.vc-modal__btn:hover {
	background: rgba(255, 255, 255, 0.32);
}

.vc-modal__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.vc-modal__frame {
	flex: 1;
	width: 100%;
	border: 0;
	display: block;
	background: #f4eef7;
}

@keyframes vc-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* Members-only notice                                                 */
/* ------------------------------------------------------------------ */

.vc-locked {
	max-width: 520px;
	margin: 1.5em auto;
	padding: 28px 24px;
	text-align: center;
	background: #faf6fc;
	border: 1px solid #e6dced;
	border-radius: 16px;
}

.vc-locked__icon {
	color: var(--vc-purple, #9367a2);
	margin-bottom: 8px;
}

.vc-locked__title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	color: #3b2b45;
}

.vc-locked__text {
	margin: 0 0 18px;
	color: #5f5268;
	font-size: 15px;
	line-height: 1.5;
}

.vc-locked__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.vc-locked .vc-btn--ghost {
	background: transparent;
	color: var(--vc-purple-dark, #7d5590);
	border: 2px solid var(--vc-purple, #9367a2);
	box-shadow: none;
	padding: 12px 24px;
	font-size: 15px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Mobile                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 600px) {
	.vc-btn--lg {
		padding: 15px 26px !important;
		font-size: 16px !important;
		width: 100%;
		max-width: 340px;
	}

	.vc-embed--fixed {
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.vc-modal {
		padding: 0;
	}

	.vc-modal__dialog {
		max-height: 100%;
		border-radius: 0;
	}

	.vc-actions .vc-btn {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-course .vc-btn,
	.vc-modal {
		transition: none;
		animation: none;
	}

	.vc-course .vc-btn:hover {
		transform: none;
	}
}
