/* Design defaults; the Style-tab controls override them per widget.
   Two-class selectors: the kit styles h3 / p / ul (.elementor-kit-7 h3 …) and must not leak in.
   Book: back and front are the same featured image; the back is shifted up-left and faded. */
.kmst-rl {
	--kmst-rl-book-col: 42%;
	--kmst-rl-cols-gap: 48px;
	--kmst-rl-btn-icon: 20px;
	--kmst-rl-point-icon: 14px;
	--kmst-rl-divider-w: 1px;
	--kmst-rl-divider-c: #eeeeee;
	--kmst-rl-book-ratio: 4 / 5;
	--kmst-rl-book-radius: 10px;
	--kmst-rl-back-x: -20%;
	--kmst-rl-back-y: -12%;
	--kmst-rl-btn-c: #fff;
	--kmst-rl-btn-bg: #00ccb3;
	--kmst-rl-btn-bg-h: #00b39d;
	--kmst-rl-pg-c: #101827;
	--kmst-rl-pg-bg: #fff;
	--kmst-rl-pg-bd: #efefef;
	--kmst-rl-pg-c-h: #245db3;
	--kmst-rl-pg-bg-h: #fff;
	--kmst-rl-pg-bd-h: #245db3;
	--kmst-rl-pg-c-a: #fff;
	--kmst-rl-pg-bg-a: #245db3;
	--kmst-rl-pg-bd-a: #245db3;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.kmst-rl .kmst-rl__card {
	display: grid;
	grid-template-columns: var(--kmst-rl-book-col) 1fr;
	gap: var(--kmst-rl-cols-gap);
	align-items: center;
	padding: 52px;
	background: #fff;
	border: 1px solid #efefef;
	border-radius: 18px;
}

/* Book */
.kmst-rl .kmst-rl__book {
	position: relative;
	width: 62%;
	aspect-ratio: var(--kmst-rl-book-ratio);
	margin: 12% auto 6%;
	transform: translateX(10%);
}

.kmst-rl .kmst-rl__book img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: var(--kmst-rl-book-radius);
}

.kmst-rl .kmst-rl__back {
	transform: translate(var(--kmst-rl-back-x), var(--kmst-rl-back-y)) rotate(-5deg);
	opacity: .55;
	filter: saturate(.7);
	box-shadow: 0 8px 20px rgb(15 23 42 / .10);
}

.kmst-rl .kmst-rl__front {
	transform: rotate(-2deg);
	box-shadow: 0 24px 48px rgb(15 23 42 / .28);
}

/* Text */
.kmst-rl .kmst-rl__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.kmst-rl .kmst-rl__head {
	align-self: stretch;
	padding-bottom: 20px;
	margin-bottom: 26px;
}

/* Show Divider (Style → Category Tag); on by default, so every instance has the class. */
.kmst-rl--divider-on .kmst-rl .kmst-rl__head {
	border-bottom: var(--kmst-rl-divider-w) solid var(--kmst-rl-divider-c);
}

.kmst-rl .kmst-rl__pill {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	background: #e7edf6;
	color: #245db3;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.kmst-rl a.kmst-rl__pill:visited,
.kmst-rl a.kmst-rl__pill:hover,
.kmst-rl a.kmst-rl__pill:focus-visible {
	text-decoration: none;
}

.kmst-rl .kmst-rl__title {
	margin: 0 0 14px;
	color: #101827;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
}

/* Title link: looks like the title; every state set — legacy CSS styles a:visited / a:hover. */
.kmst-rl .kmst-rl__title a,
.kmst-rl .kmst-rl__title a:visited,
.kmst-rl .kmst-rl__title a:hover,
.kmst-rl .kmst-rl__title a:focus-visible {
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}

.kmst-rl .kmst-rl__desc {
	margin: 0 0 22px;
	color: #6c727f;
	font-size: 17px;
	line-height: 1.6;
}

.kmst-rl .kmst-rl__points {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.kmst-rl .kmst-rl__point {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0;
	color: #1f2937;
	font-size: 16px;
	line-height: 1.4;
	list-style: none;
}

/* Point icon box = one text line tall (1lh), so the icon centres on the first line
   whatever the point typography. The icon itself is sized by --kmst-rl-point-icon. */
.kmst-rl .kmst-rl__point-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 1lh;
	color: #006afe;
}

.kmst-rl .kmst-rl__btn-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	line-height: 1;
}

/* Font icons size by font-size, SVG icons by width/height. */
.kmst-rl .kmst-rl__point-icon > * {
	font-size: var(--kmst-rl-point-icon);
	line-height: 1;
}

.kmst-rl .kmst-rl__btn-icon > * {
	font-size: var(--kmst-rl-btn-icon);
	line-height: 1;
}

.kmst-rl .kmst-rl__point-icon svg,
.kmst-rl .kmst-rl__btn-icon svg {
	width: 1em;
	height: 1em;
}

.kmst-rl .kmst-rl__point-icon .e-font-icon-svg,
.kmst-rl .kmst-rl__btn-icon .e-font-icon-svg {
	fill: currentColor;
}

/* Icon Position = After (Style → Button). */
.kmst-rl--btn-icon-after .kmst-rl .kmst-rl__btn-icon {
	order: 2;
}

/* Button: solid fill. All link states set — legacy CSS styles a:visited / a:hover. */
.kmst-rl .kmst-rl__btn,
.kmst-rl .kmst-rl__btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 16px 24px;
	border-radius: 10px;
	background: var(--kmst-rl-btn-bg);
	color: var(--kmst-rl-btn-c);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}

/* Hover text colour falls back to the normal one. */
.kmst-rl .kmst-rl__btn:hover,
.kmst-rl .kmst-rl__btn:focus-visible {
	background: var(--kmst-rl-btn-bg-h);
	color: var(--kmst-rl-btn-c-h, var(--kmst-rl-btn-c));
	text-decoration: none;
}

/* Button icon colour: empty = the text colour. */
.kmst-rl .kmst-rl__btn-icon {
	color: var(--kmst-rl-btn-icon-c, currentColor);
}

.kmst-rl .kmst-rl__btn:hover .kmst-rl__btn-icon,
.kmst-rl .kmst-rl__btn:focus-visible .kmst-rl__btn-icon {
	color: var(--kmst-rl-btn-icon-c-h, var(--kmst-rl-btn-icon-c, currentColor));
}

/* Book Side = Right (Style → Card). */
.kmst-rl--book-right .kmst-rl .kmst-rl__card {
	grid-template-columns: 1fr var(--kmst-rl-book-col);
}

.kmst-rl--book-right .kmst-rl .kmst-rl__media {
	order: 2;
}

/* Pagination */
.kmst-rl .kmst-rl__pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.kmst-rl .kmst-rl__pages .page-numbers,
.kmst-rl .kmst-rl__pages a.page-numbers:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--kmst-rl-pg-bd);
	border-radius: 8px;
	background: var(--kmst-rl-pg-bg);
	color: var(--kmst-rl-pg-c);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.kmst-rl .kmst-rl__pages a.page-numbers:hover,
.kmst-rl .kmst-rl__pages a.page-numbers:focus-visible {
	border-color: var(--kmst-rl-pg-bd-h);
	background: var(--kmst-rl-pg-bg-h);
	color: var(--kmst-rl-pg-c-h);
	text-decoration: none;
}

.kmst-rl .kmst-rl__pages .page-numbers.current {
	border-color: var(--kmst-rl-pg-bd-a);
	background: var(--kmst-rl-pg-bg-a);
	color: var(--kmst-rl-pg-c-a);
}

/* Load more: same colour tokens as the page links. Two classes + :hover/:focus beat the kit's
   global ".elementor-kit-7 button" pill style. */
.kmst-rl .kmst-rl__more {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border: 1px solid var(--kmst-rl-pg-bd);
	border-radius: 8px;
	background: var(--kmst-rl-pg-bg);
	color: var(--kmst-rl-pg-c);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.kmst-rl .kmst-rl__more:hover,
.kmst-rl .kmst-rl__more:focus,
.kmst-rl .kmst-rl__more:focus-visible {
	border-color: var(--kmst-rl-pg-bd-h);
	background: var(--kmst-rl-pg-bg-h);
	color: var(--kmst-rl-pg-c-h);
}

.kmst-rl .kmst-rl__more:disabled {
	opacity: .6;
	cursor: wait;
}

.kmst-rl .kmst-rl__pages .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* A category or keyword that matches nothing. Outside .kmst-rl: the list is not rendered then. */
.kmst-rl__none {
	padding: 48px 16px;
	color: #6c727f;
	font-size: 17px;
	text-align: center;
}

.kmst-rl__empty {
	padding: 16px;
	border: 1px dashed #c7cace;
	color: #6c727f;
	font-size: 14px;
}

@media (max-width: 1024px) {
	.kmst-rl {
		--kmst-rl-cols-gap: 32px;
	}

	.kmst-rl .kmst-rl__card {
		padding: 36px;
	}

	.kmst-rl .kmst-rl__title {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.kmst-rl {
		--kmst-rl-cols-gap: 24px;
		gap: 24px;
	}

	.kmst-rl .kmst-rl__card,
	.kmst-rl--book-right .kmst-rl .kmst-rl__card {
		grid-template-columns: 1fr;
		padding: 24px;
	}

	.kmst-rl--book-right .kmst-rl .kmst-rl__media {
		order: 0;
	}

	.kmst-rl .kmst-rl__book {
		width: 55%;
		max-width: 240px;
	}

	.kmst-rl .kmst-rl__title {
		font-size: 22px;
	}

	.kmst-rl .kmst-rl__desc {
		font-size: 15px;
	}

	.kmst-rl .kmst-rl__point {
		font-size: 15px;
	}

	.kmst-rl .kmst-rl__btn,
	.kmst-rl .kmst-rl__btn:visited {
		font-size: 17px;
	}
}
