/* Classes page: course catalogue read from Weco ([kj_weco_classes], inc/classes.php).
   Same tokens as the rest of the site: ink #101218, accent #4175fc -> #084af3, Raleway headings. */

.kj-classes {
	--kjc-ink: #101218;
	--kjc-text: #474b55;
	--kjc-accent: #4175fc;
	--kjc-accent-2: #084af3;
	--kjc-ease: cubic-bezier(.2, .8, .2, 1);
	width: 100%;
	padding: 72px 0 84px;
	color: var(--kjc-text);
}
.elementor-widget-shortcode:has(> .elementor-widget-container .kj-classes),
.elementor-widget-shortcode:has(> .elementor-shortcode .kj-classes) { width: 100%; }
.kj-classes h2,
.kj-classes h3 { font-family: Raleway, "Open Sans", sans-serif; color: var(--kjc-ink); margin: 0; }
.kj-classes p { margin: 0; }
.kj-classes a { text-decoration: none; }

/* ---- heading ---- */
.kj-classes__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.kj-classes__eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 6px 14px; border-radius: 999px;
	background: rgba(65, 117, 252, .1); color: var(--kjc-accent-2);
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.kj-classes__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.kj-classes__title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; margin: 18px 0 14px !important; }
.kj-classes__lead { font-size: 17px; line-height: 1.75; }
/* Three facts from Weco under the lead. Meant to be noticed, not shouted: ink-coloured figures a little larger
   than the text, hairlines between them, no boxes and no accent colour. */
.kj-classes__facts {
	display: flex; flex-wrap: wrap; justify-content: center;
	margin: 26px 0 0; padding: 0;
}
.kj-classes__facts div {
	display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
	padding: 2px 30px; border-left: 1px solid rgba(16, 18, 36, .12);
}
.kj-classes__facts div:first-child { border-left: 0; }
.kj-classes__facts dd {
	margin: 0; font-family: Raleway, "Open Sans", sans-serif; font-size: 24px; line-height: 1.2;
	font-weight: 600; color: var(--kjc-ink); font-variant-numeric: tabular-nums lining-nums;
}
.kj-classes__facts dt { font-size: 13px; font-weight: 500; letter-spacing: .01em; color: #7a7f8c; }
@media (max-width: 600px) {
	.kj-classes__facts { flex-wrap: nowrap; align-items: flex-start; }   /* the three stay on one row */
	.kj-classes__facts div { flex: 1 1 0; min-width: 0; padding: 2px 8px; }
	.kj-classes__facts dd { font-size: 21px; }
	.kj-classes__facts dt { font-size: 12px; line-height: 1.35; text-align: center; }
}

/* ---- the cards ---- */
.kj-classes__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }   /* a short last row sits centred */
.kj-course {
	flex: 0 1 calc((100% - 56px) / 3); min-width: 0;
	display: flex; flex-direction: column; overflow: hidden;
	border-radius: 20px; background: rgba(255, 255, 255, .86);
	border: 1px solid rgba(16, 18, 36, .07);
	box-shadow: 0 1px 2px rgba(16, 18, 36, .04), 0 12px 32px -14px rgba(16, 18, 36, .2);
	backdrop-filter: blur(14px);
	transition: transform .35s var(--kjc-ease), box-shadow .35s var(--kjc-ease), border-color .35s ease;
}
.kj-course:hover {
	transform: translateY(-6px);
	border-color: rgba(65, 117, 252, .35);
	box-shadow: 0 2px 4px rgba(16, 18, 36, .05), 0 26px 48px -18px rgba(16, 18, 36, .32);
}
.kj-course__cover { position: relative; display: block; aspect-ratio: 400 / 190; overflow: hidden; }
.kj-course__cover svg { display: block; width: 100%; height: 100%; }
.kj-course__mark,
.kj-course__ghost { transition: transform .6s var(--kjc-ease); transform-box: fill-box; transform-origin: center; }
.kj-course:hover .kj-course__mark { transform: scale(1.07); }
.kj-course__badge {
	position: absolute; top: 14px; right: 14px;
	padding: 5px 11px; border-radius: 999px;
	background: rgba(16, 18, 24, .42); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .04em;
	backdrop-filter: blur(6px);
}
.kj-course__badge.is-open { background: #fff; color: #0f7a4d; }

.kj-course__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 20px; }
.kj-course__title { font-size: 20px; line-height: 1.3; font-weight: 700; }
.kj-course__title a { color: inherit; transition: color .2s ease; }
.kj-course__title a:hover { color: var(--kjc-accent-2); }
.kj-course__fa {
	margin-top: 4px !important; text-align: left;
	font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif; font-size: 14px; color: #7a7f8c;
}
.kj-course__desc { margin-top: 12px !important; font-size: 15px; line-height: 1.7; }
.kj-course__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: auto; padding-top: 20px;
}
.kj-course__meta { font-size: 13px; font-weight: 600; color: #7a7f8c; }
.kj-course__link,
.kj-classes__button {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: 999px;
	background: linear-gradient(135deg, var(--kjc-accent), var(--kjc-accent-2)); color: #fff !important;
	font-size: 14px; font-weight: 600; white-space: nowrap;
	box-shadow: 0 10px 22px -10px rgba(65, 117, 252, .7);
	transition: transform .25s var(--kjc-ease), box-shadow .25s ease;
}
.kj-course__link:hover,
.kj-classes__button:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(65, 117, 252, .8); }
.kj-course__link svg,
.kj-classes__button svg { width: 15px; height: 15px; transition: transform .25s var(--kjc-ease); }
.kj-course__link:hover svg,
.kj-classes__button:hover svg { transform: translateX(3px); }

.kj-classes__empty {
	max-width: 560px; margin: 0 auto; padding: 34px 28px; text-align: center;
	border-radius: 20px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(16, 18, 36, .07);
}
.kj-classes__empty p { margin-bottom: 18px; font-size: 16px; line-height: 1.7; }

/* ---- how it works ---- */
/* ---- in the classroom: four real photos, a small mosaic (wide + small, then small + wide) ---- */
.kj-classes__room {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 56px;
	margin-top: 92px;
}
.kj-classes__room-eyebrow {
	margin-bottom: 12px !important; color: var(--kjc-accent-2);
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.kj-classes__room .kj-classes__subtitle { text-align: left; margin-bottom: 16px !important; }
.kj-classes__room-text p:last-child { font-size: 16px; line-height: 1.75; }
.kj-classes__room-photos {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0;
}
.kj-classes__room-photos img {
	display: block; width: 100%; max-width: none; object-fit: cover; border-radius: 18px !important;
	box-shadow: 0 2px 4px rgba(16, 18, 36, .06), 0 22px 44px -22px rgba(16, 18, 36, .42) !important;
	transition: transform .45s var(--kjc-ease);
}
.kj-classes__room-photos img:hover { transform: translateY(-3px); }
.kj-classes__room-wide { grid-column: span 3; height: auto; aspect-ratio: 3 / 2; }
/* The small one takes its row's height from the wide one beside it. */
.kj-classes__room-small { grid-column: span 2; height: 0; min-height: 100%; }
.kj-classes__room-photos figcaption {
	grid-column: 1 / -1; justify-self: end; margin-top: 4px;
	display: inline-flex; align-items: center; gap: 9px;
	font-size: 13px; font-weight: 600; color: #6b7080;
}
.kj-classes__room-photos figcaption span { width: 22px; height: 2px; border-radius: 2px; background: var(--kjc-accent); }
@media (max-width: 921px) {
	.kj-classes__room { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
	.kj-classes__room .kj-classes__subtitle, .kj-classes__room-eyebrow { text-align: center; }
	.kj-classes__room-text p:last-child { text-align: center; }
}
@media (max-width: 600px) {
	.kj-classes__room-photos { gap: 8px; }
	.kj-classes__room-photos img { border-radius: 12px !important; }
	.kj-classes__room-photos figcaption { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .kj-classes__room-photos img { transition: none; } }

.kj-classes__steps { margin-top: 84px; }
.kj-classes__subtitle { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; text-align: center; margin-bottom: 34px !important; }
.kj-classes__steps ol {
	display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0; padding: 0; list-style: none; counter-reset: none;
}
.kj-classes__steps li {
	position: relative; padding: 30px 26px 26px;
	border-radius: 20px; background: rgba(255, 255, 255, .7);
	border: 1px solid rgba(16, 18, 36, .07);
}
.kj-classes__num {
	display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
	border-radius: 12px; background: linear-gradient(135deg, var(--kjc-accent), var(--kjc-accent-2)); color: #fff;
	font-family: Raleway, sans-serif; font-size: 17px; font-weight: 700;
	box-shadow: 0 10px 20px -10px rgba(65, 117, 252, .8);
}
.kj-classes__steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px !important; }
.kj-classes__steps li p { font-size: 15px; line-height: 1.7; }

/* ---- call to action ---- */
.kj-classes__cta {
	display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
	margin-top: 56px; padding: 36px 40px;
	border-radius: 24px; color: #c9cedb;
	background:
		radial-gradient(60% 120% at 100% 0%, rgba(65, 117, 252, .45), transparent 60%),
		linear-gradient(135deg, #101218, #171b27);
	box-shadow: 0 24px 50px -24px rgba(16, 18, 36, .6);
}
.kj-classes__cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin-bottom: 8px !important; }
.kj-classes__cta p { font-size: 16px; line-height: 1.7; max-width: 520px; }
.kj-classes__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.kj-classes__button { padding: 13px 24px; font-size: 15px; }
.kj-classes__button.is-ghost {
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none;
}
.kj-classes__button.is-ghost:hover { background: rgba(255, 255, 255, .16); box-shadow: none; }

@media (max-width: 900px) {
	.kj-classes { padding: 52px 0 60px; }
	.kj-classes__steps ol { grid-template-columns: 1fr; }
	.kj-classes__steps { margin-top: 60px; }
	.kj-classes__cta { padding: 30px 26px; }
}
@media (max-width: 1000px) {
	.kj-course { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 640px) {
	.kj-classes__grid { gap: 22px; }
	.kj-course { flex-basis: 100%; }
	.kj-course__foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	.kj-course, .kj-course__mark, .kj-course__link, .kj-classes__button { transition: none; }
	.kj-course:hover { transform: none; }
}
