/**
 * Dokkan Courses — shortcode output styles.
 *
 * The plugin does not ship a single-course template (Etch / the active
 * theme manages the template). These rules style the HTML emitted by
 * the seven [dokkan_course_*] shortcodes so they look intentional
 * regardless of where they're embedded.
 *
 * Themes are free to override any rule here from their own stylesheet.
 */

/* Goals + audience lists */
.dokkan-course__goals,
.dokkan-course__audience {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dokkan-course__goals li,
.dokkan-course__audience li {
	position: relative;
	padding: 0.375rem 0 0.375rem 1.5rem;
}

.dokkan-course__goals li::before,
.dokkan-course__audience li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.875rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
}

/* When (date + time) */
.dokkan-course__when-date {
	font-size: 1.125rem;
	font-weight: 600;
}

.dokkan-course__when-time {
	margin-top: 0.125rem;
	opacity: 0.8;
}

/* Where (multi-line address) */
.dokkan-course__where {
	font-style: normal;
	line-height: 1.55;
}

/* Instructor */
.dokkan-course__instructor {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 540px) {
	.dokkan-course__instructor {
		grid-template-columns: 1fr;
	}
}

.dokkan-course__instructor-image img {
	width: 100%;
	height: auto;
	border-radius: 50%;
	display: block;
	aspect-ratio: 1;
	object-fit: cover;
}

.dokkan-course__instructor-name {
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
}

.dokkan-course__instructor-bio p {
	margin: 0 0 0.75rem;
}

.dokkan-course__instructor-bio p:last-child {
	margin-bottom: 0;
}

/* Pricing */
.dokkan-course__pricing {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dokkan-course__pricing-main {
	margin: 0;
	line-height: 1.6;
}

.dokkan-course__pricing-discount {
	margin: 0;
	font-size: 0.9375rem;
	opacity: 0.85;
	line-height: 1.6;
}

/* Register CTA + Skilmálar link */
.dokkan-course__register {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.dokkan-course__register-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.5rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 6px;
	background: currentColor;
	color: #fff;
	transition: opacity 0.15s ease;
}

.dokkan-course__register-cta:hover,
.dokkan-course__register-cta:focus {
	opacity: 0.9;
	color: #fff;
}

.dokkan-course__register-terms {
	margin: 0;
	font-size: 0.9375rem;
	text-align: center;
}

.dokkan-course__register-terms a {
	text-decoration: underline;
}
