/* Course offer under blog articles, and the one-line note in the middle of longer ones. */
.ye-post-cta,
.ye-post-note {
	--ye-post-accent: var(--ye-accent);
	--ye-post-accent-dark: var(--ye-accent-strong);
	--ye-post-ink: var(--ye-ink);
	--ye-post-muted: var(--ye-muted);
	--ye-post-border: var(--ye-border);
	--ye-post-tint: var(--ye-tint);
	box-sizing: border-box;
	direction: rtl;
}
.ye-post-cta *,
.ye-post-cta *::before,
.ye-post-cta *::after { box-sizing: border-box; }

.blog-single .styled .ye-post-note {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 28px 0;
	padding: 14px 18px;
	border: 1px solid var(--ye-post-border);
	border-right: 4px solid var(--ye-post-accent);
	border-radius: 14px;
	background: var(--ye-post-tint);
	color: var(--ye-post-ink);
	font-size: 17px;
	line-height: 1.9;
}
.blog-single .styled .ye-post-note > i { color: var(--ye-post-accent); font-size: 22px; }
.blog-single .styled .ye-post-note__text { flex: 1 1 260px; }
.blog-single .styled .ye-post-note__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 18px;
	border-radius: 12px;
	background: var(--ye-fill-accent);
	color: #fff;
	font-weight: var(--ye-w-semibold);
	text-decoration: none;
	white-space: nowrap;
}
.blog-single .styled .ye-post-note__link:hover,
.blog-single .styled .ye-post-note__link:focus { background: var(--ye-fill-accent-strong); color: #fff; text-decoration: none; }

.ye-post-cta {
	max-width: 960px;
	margin: 40px auto 48px;
	padding: 28px;
	border: 1px solid var(--ye-post-border);
	border-radius: 24px;
	background: linear-gradient(180deg, var(--ye-post-tint) 0, var(--ye-surface) 180px);
	color: var(--ye-post-ink);
	box-shadow: 0 10px 30px rgba(68, 33, 120, .08);
}
.ye-post-cta__head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.ye-post-cta__avatar { flex: 0 0 auto; width: 92px; height: auto; border-radius: 50%; background: var(--ye-surface); }
.ye-post-cta__kicker { margin: 0 0 4px; color: var(--ye-post-accent); font-size: 15px; font-weight: var(--ye-w-semibold); }
.ye-post-cta h2.ye-post-cta__title { margin: 0; color: var(--ye-post-ink); font-size: 24px; font-weight: var(--ye-w-heading); line-height: 1.6; }
.ye-post-cta__text { margin: 6px 0 0; color: var(--ye-post-muted); font-size: 17px; line-height: 1.9; }

.ye-post-cta__courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ye-post-cta__courses--1 { grid-template-columns: minmax(0, 1fr); }
.ye-post-cta__courses--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ye-post-cta .ye-post-course {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ye-post-border);
	border-radius: 16px;
	background: var(--ye-surface);
	color: var(--ye-post-ink);
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ye-post-cta .ye-post-course:hover,
.ye-post-cta .ye-post-course:focus { border-color: var(--ye-border-accent); box-shadow: 0 8px 22px rgba(68, 33, 120, .12); transform: translateY(-2px); color: var(--ye-post-ink); text-decoration: none; }
.ye-post-course__cover { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--ye-post-tint); }
.ye-post-course__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.ye-post-course__badge { position: absolute; top: 10px; right: 10px; padding: 2px 10px; border-radius: 999px; background: #e0245e; color: #fff; font-size: 13px; font-weight: var(--ye-w-semibold); }
.ye-post-course__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.ye-post-course__name { font-size: 17px; font-weight: var(--ye-w-bold); line-height: 1.7; }
.ye-post-course__price { color: var(--ye-post-accent); font-size: 16px; font-weight: var(--ye-w-bold); }
.ye-post-course__price del { color: var(--ye-faint); font-weight: var(--ye-w-medium); font-size: 14px; }
.ye-post-course__price ins { text-decoration: none; }
.ye-post-course__action { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; color: var(--ye-post-accent); font-size: 15px; font-weight: var(--ye-w-semibold); }

.ye-post-cta__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 20px; }
.ye-post-cta .ye-post-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 8px 20px;
	border: 1px solid var(--ye-post-accent);
	border-radius: 12px;
	background: var(--ye-fill-accent);
	color: #fff;
	font-size: 16px;
	font-weight: var(--ye-w-semibold);
	line-height: 1.6;
	text-decoration: none;
}
.ye-post-cta .ye-post-cta__button:hover,
.ye-post-cta .ye-post-cta__button:focus { background: var(--ye-fill-accent-strong); border-color: var(--ye-post-accent-dark); color: #fff; text-decoration: none; }
.ye-post-cta .ye-post-cta__button--soft { background: var(--ye-surface); color: var(--ye-post-accent); border-color: var(--ye-border-accent); }
.ye-post-cta .ye-post-cta__button--soft:hover,
.ye-post-cta .ye-post-cta__button--soft:focus { background: var(--ye-post-tint); color: var(--ye-post-accent-dark); }
.ye-post-cta .ye-post-cta__more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; color: var(--ye-post-accent); font-size: 16px; font-weight: var(--ye-w-semibold); text-decoration: none; }
.ye-post-cta .ye-post-cta__more:hover { color: var(--ye-post-accent-dark); text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 767px) {
	.ye-post-cta { margin: 28px 0 36px; padding: 20px 16px; border-radius: 20px; }
	.ye-post-cta__head { align-items: flex-start; gap: 14px; }
	.ye-post-cta__avatar { width: 64px; }
	.ye-post-cta h2.ye-post-cta__title { font-size: 20px; }
	.ye-post-cta__text { font-size: 16px; }
	.ye-post-cta__courses,
	.ye-post-cta__courses--2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	/* On phones each course is a row: small cover beside its name and price. */
	.ye-post-cta .ye-post-course { flex-direction: row; align-items: stretch; }
	.ye-post-course__cover { flex: 0 0 120px; align-self: center; overflow: hidden; margin-right: 10px; border-radius: 10px; }
	.ye-post-course__body { padding: 10px 12px; }
	.ye-post-course__name { font-size: 16px; }
	/* The struck-out price already shows the discount; a badge would hide the small cover. */
	.ye-post-course__badge { display: none; }
	.ye-post-cta__foot { flex-direction: column; align-items: stretch; }
	.ye-post-cta .ye-post-cta__more { justify-content: center; margin: 0; }
	.blog-single .styled .ye-post-note { font-size: 16px; }
	.blog-single .styled .ye-post-note__link { width: 100%; justify-content: center; }
}

/* Sign-up gift under the course offer, for guests. */
.ye-post-gift { --ye-post-accent: var(--ye-accent); display: flex; align-items: center; gap: 14px; max-width: 960px; margin: -24px auto 44px; padding: 16px 20px; border: 1px dashed #c9b0ea; border-radius: 18px; background: var(--ye-paper); color: var(--ye-ink); direction: rtl; }
.ye-post-gift__icon { flex: 0 0 auto; color: #f08a00; font-size: 30px; }
.ye-post-gift__text { display: flex; flex: 1; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.9; }
.ye-post-gift__text strong { font-size: 17px; font-weight: var(--ye-w-heading); }
.ye-post-gift__text span { color: var(--ye-muted); }
.ye-post-gift .ye-post-gift__button { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 48px; padding: 8px 20px; border-radius: 12px; background: #f08a00; color: #fff; font-size: 16px; font-weight: var(--ye-w-bold); text-decoration: none; white-space: nowrap; }
.ye-post-gift .ye-post-gift__button:hover,
.ye-post-gift .ye-post-gift__button:focus { background: #c96f00; color: #fff; text-decoration: none; }
@media (max-width: 767px) {
	.ye-post-gift { flex-wrap: wrap; margin: -16px 0 32px; padding: 14px 16px; }
	.ye-post-gift .ye-post-gift__button { width: 100%; justify-content: center; }
}
