@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../../../../fonts/eb-garamond-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'EB Garamond';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../../../../fonts/eb-garamond-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.learndash-course-grid .items-wrapper .grid-1 .sidabra-card {
	--sidabra-navy: #1c1e4d;
	--sidabra-muted: #6b6f8a;
	--sidabra-line: #dfe5ec;
	--sidabra-mist: #e4ebf2;
	--sidabra-serif: 'EB Garamond', Garamond, 'Times New Roman', serif;

	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 1px solid var(--sidabra-line);
	background: #fff;
	color: var(--sidabra-navy);
	font-family: 'DM Sans', sans-serif;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.learndash-course-grid .items-wrapper .grid-1 .sidabra-card:hover {
	border-color: #c2d3dd;
	box-shadow: 0 12px 30px -18px rgba(28, 30, 77, 0.35);
}

.sidabra-card__hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	min-height: 196px;
	padding: 18px 18px 70px;
	overflow: hidden;
	background: var(--sidabra-mist);
}

.sidabra-card__hero::before {
	content: '';
	position: absolute;
	inset: 0 0 0 40%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg fill='%23fff' fill-opacity='.4'%3E%3Ccircle cx='0' cy='0' r='18'/%3E%3Ccircle cx='36' cy='0' r='18'/%3E%3Ccircle cx='0' cy='36' r='18'/%3E%3Ccircle cx='36' cy='36' r='18'/%3E%3Ccircle cx='18' cy='18' r='18'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 36px 36px;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 55%);
	mask-image: linear-gradient(to right, transparent, #000 55%);
	pointer-events: none;
}

.sidabra-card__label {
	position: relative;
	padding: 5px 10px;
	background: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.learndash-course-grid .sidabra-card__headline {
	position: relative;
	max-width: 85%;
	margin: 0;
	padding: 0;
	font-family: var(--sidabra-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.sidabra-card__play {
	position: absolute;
	right: 18px;
	bottom: 18px;
	width: 43px;
	height: 43px;
	border-radius: 50%;
	background: var(--sidabra-navy);
}

.sidabra-card__play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-35%, -50%);
}

.sidabra-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 20px 18px;
}

.learndash-course-grid .sidabra-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.learndash-course-grid .items-wrapper .grid-1 .sidabra-card__tags li {
	list-style: none;
	margin: 0;
	padding: 4px 8px;
	background: #edf1f5;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.learndash-course-grid .items-wrapper .grid-1 .sidabra-card__title {
	margin: 0 0 16px;
	padding: 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
}

.learndash-course-grid .items-wrapper .grid-1 .sidabra-card__tags li::before {
	content: none;
}

.learndash-course-grid .sidabra-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Stretches the title link over the whole card, so the card is one link and one tab stop. */
.sidabra-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sidabra-card__title a:focus-visible {
	outline: none;
}

.sidabra-card__title a:focus-visible::after {
	outline: 2px solid var(--sidabra-navy);
	outline-offset: 2px;
}

.sidabra-card__progress {
	position: relative;
	z-index: 2;
	margin-bottom: 16px;
}

.learndash-course-grid .sidabra-card__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: auto 0 0;
	padding: 14px 0;
	border-top: 1px solid var(--sidabra-line);
	border-bottom: 1px solid var(--sidabra-line);
}

.sidabra-card__facts > div {
	padding-right: 12px;
}

.sidabra-card__facts > div + div {
	padding-left: 13px;
	border-left: 1px solid var(--sidabra-line);
}

.learndash-course-grid .sidabra-card__facts dt {
	margin: 0 0 4px;
	color: var(--sidabra-muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
}

.learndash-course-grid .sidabra-card__facts dd {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.sidabra-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding-top: 18px;
}

.sidabra-card__price-label {
	display: block;
	margin-bottom: 2px;
	color: var(--sidabra-muted);
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sidabra-card__price {
	display: block;
	font-family: var(--sidabra-serif);
	font-size: 24px;
	line-height: 1.1;
}

.sidabra-card__price .woocommerce-Price-amount {
	color: inherit;
	font-weight: 400;
}

.sidabra-card__more {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sidabra-card__arrow {
	width: 35px;
	height: 35px;
	border: 1px solid var(--sidabra-navy);
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%231c1e4d' stroke-width='1.2'%3E%3Cpath d='M3 11 11 3M5 3h6v6'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: background-color 0.2s ease;
}

.sidabra-card:hover .sidabra-card__arrow {
	background-color: var(--sidabra-navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M3 11 11 3M5 3h6v6'/%3E%3C/svg%3E");
}
