
/* =========================================================
   Página Aprender a tejer
   ========================================================= */
body.ctejidas-learning-hub-page .site-content,
body.ctejidas-tools-hub-page .site-content,
body.ctejidas-crochet-course-page .site-content {
	max-width: 1170px;
	padding: 34px 20px 58px;
	width: 100%;
}

body.ctejidas-learning-hub-page #primary,
body.ctejidas-learning-hub-page .content-area,
body.ctejidas-learning-hub-page .site-main,
body.ctejidas-learning-hub-page article.page,
body.ctejidas-tools-hub-page #primary,
body.ctejidas-tools-hub-page .content-area,
body.ctejidas-tools-hub-page .site-main,
body.ctejidas-tools-hub-page article.page,
body.ctejidas-crochet-course-page #primary,
body.ctejidas-crochet-course-page .content-area,
body.ctejidas-crochet-course-page .site-main,
body.ctejidas-crochet-course-page article.page {
	float: none;
	margin: 0;
	max-width: none;
	width: 100%;
}

body.ctejidas-learning-hub-page .inside-article,
body.ctejidas-tools-hub-page .inside-article,
body.ctejidas-crochet-course-page .inside-article {
	background: transparent;
	padding: 0;
}

body.ctejidas-learning-hub-page .entry-header,
body.ctejidas-learning-hub-page .featured-image,
body.ctejidas-learning-hub-page .post-image,
body.ctejidas-learning-hub-page .page-header-image-single,
body.ctejidas-tools-hub-page .entry-header,
body.ctejidas-tools-hub-page .featured-image,
body.ctejidas-tools-hub-page .post-image,
body.ctejidas-tools-hub-page .page-header-image-single,
body.ctejidas-crochet-course-page .entry-header,
body.ctejidas-crochet-course-page .featured-image,
body.ctejidas-crochet-course-page .post-image,
body.ctejidas-crochet-course-page .page-header-image-single {
	display: none !important;
}

body.ctejidas-learning-hub-page .entry-content,
body.ctejidas-tools-hub-page .entry-content,
body.ctejidas-crochet-course-page .entry-content {
	margin: 0;
	max-width: none;
	width: 100%;
}

.ct-learning,
.ct-learning * {
	box-sizing: border-box;
}

.ct-learning {
	--ct-learning-pink: #f45a8e;
	--ct-learning-soft: #fff2f7;
	--ct-learning-text: #171417;
	margin: 0 auto;
	max-width: 1120px;
	width: 100%;
}

.ct-learning__header {
	margin: 0 auto 28px;
	max-width: 800px;
	text-align: center;
}

.ct-learning__eyebrow {
	color: var(--ct-learning-pink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.ct-learning__title {
	color: var(--ct-learning-text);
	font-family: "League Spartan", sans-serif;
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.02;
	margin: 0;
}

.ct-learning__intro {
	color: #6f666b;
	font-size: 17px;
	line-height: 1.65;
	margin: 14px auto 0;
	max-width: 720px;
}

.ct-learning__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.ct-learning-card {
	background: #f2ecef;
	box-shadow: 0 5px 16px rgba(54, 30, 40, .08);
	color: inherit;
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	transition: transform .22s ease, box-shadow .22s ease;
}

.ct-learning-card:hover {
	box-shadow: 0 12px 26px rgba(54, 30, 40, .14);
	transform: translateY(-2px);
}

.ct-learning-card:focus-visible {
	outline: 4px solid var(--ct-learning-pink);
	outline-offset: 4px;
}

.ct-learning-card__media {
	display: block;
	position: relative;
	width: 100%;
}

.ct-learning-card__media::before {
	content: "";
	display: block;
	padding-top: 35%;
}

.ct-learning-card__media img,
.ct-learning-card__placeholder,
.ct-learning-card__overlay {
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.ct-learning-card__media img {
	display: block;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform .28s ease;
}

.ct-learning-card:hover .ct-learning-card__media img {
	transform: scale(1.025);
}

.ct-learning-card__placeholder {
	align-items: center;
	background: linear-gradient(135deg, #fff2f7, #f5d7e3);
	color: #2d2428;
	display: flex;
	font-family: "League Spartan", sans-serif;
	font-size: 28px;
	font-weight: 800;
	justify-content: center;
}

.ct-learning-card__overlay {
	background: linear-gradient(180deg, rgba(224,178,178,0) 25%, rgba(224,178,178,.42) 68%, rgba(98,59,73,.78) 100%);
	pointer-events: none;
}

.ct-learning-card__title {
	bottom: 12px;
	color: #fff;
	font-family: "League Spartan", sans-serif;
	font-size: clamp(20px, 2vw, 27px);
	font-weight: 800;
	left: 0;
	letter-spacing: -.035em;
	line-height: 1.08;
	padding: 0 14px;
	position: absolute;
	right: 0;
	text-align: center;
	text-shadow: 0 2px 7px rgba(0,0,0,.72);
	z-index: 2;
}

.ct-learning__error {
	background: var(--ct-learning-soft, #fff2f7);
	border: 1px solid #f3cddd;
	padding: 22px;
	text-align: center;
}

@media (max-width: 760px) {
	body.ctejidas-learning-hub-page .site-content,
body.ctejidas-tools-hub-page .site-content,
body.ctejidas-crochet-course-page .site-content {
		padding: 24px 14px 44px;
	}

	.ct-learning__header {
		margin-bottom: 22px;
	}

	.ct-learning__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.ct-learning-card__media::before {
		padding-top: 58%;
	}

	.ct-learning-card__title {
		bottom: 9px;
		font-size: 18px;
		padding: 0 8px;
	}
}

@media (max-width: 420px) {
	.ct-learning__grid {
		grid-template-columns: 1fr;
	}

	.ct-learning-card__media::before {
		padding-top: 48%;
	}

	.ct-learning-card__title {
		font-size: 23px;
	}
}
