/*
 * Courses: the list (pages/nettkurs.php) and the course page (nettkurs/kurs.php).
 * Loaded after online.css and reuses its type, buttons, cards and FAQ panel.
 */

.dp-kurs h1 { font-size: 40px; font-weight: 700; }
.dp-kurs #kurser { scroll-margin-top: 100px; }

/* Card photo: video format, with a plain green box when there is no picture. */
.dp-kurs a.dp-on-card-photo { aspect-ratio: 16 / 10; }
.dp-kurs-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 220px;
	border-radius: 12px;
	background: #f3f8f4;
	color: #2f7d32;
	font-size: 48px;
}
.dp-kurs-card-price { font-weight: 700; color: #1f2937; }

/* Course page: picture or promo video on the left, text on the right. */
.dp-kurs-top { background: #f7faf7; }
.dp-kurs-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}
.dp-kurs .dp-kurs-media img {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
	border-radius: 18px;
	box-shadow: none;
}
.dp-kurs-eyebrow {
	margin-bottom: 8px !important;
	color: #2f7d32;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.dp-kurs-by { margin-top: 10px !important; font-weight: 600; color: #374151; }
.dp-kurs-by a { color: #2f7d32; }
.dp-kurs-short { margin: 18px 0 0; }
.dp-kurs-short p + p { margin-top: 12px; }
.dp-kurs-price { margin: 22px 0 14px !important; font-size: 28px; font-weight: 700; color: #1f2937; }
.dp-kurs-owned { margin: 22px 0 14px !important; font-weight: 600; color: #2f7d32; }
.dp-kurs-expired { margin: 22px 0 0 !important; font-weight: 600; color: #92400e; }
.dp-kurs-note { margin-top: 10px !important; font-size: 14px; }

/* Videos keep 16:9 at every width. */
.dp-kurs-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 18px;
	background: #0f172a;
}
.dp-kurs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dp-kurs-video--course { margin-top: 28px; }

#kurset { scroll-margin-top: 100px; }
.dp-kurs-group { margin-top: 32px; }
.dp-kurs-group h3 { margin-bottom: 8px; }
.dp-kurs-group p { margin-bottom: 20px; }

.dp-kurs-description p + p, .dp-kurs-description ul + p { margin-top: 14px; }
.dp-kurs-description ul { margin: 8px 0 0; padding-left: 22px; }
.dp-kurs-about h2 { margin-bottom: 24px; }

/* Three steps. */
.dp-kurs ol.dp-kurs-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: dp-kurs-step;
}
.dp-kurs-steps li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid #e2e8e3;
	border-radius: 14px;
	background: #fff;
	counter-increment: dp-kurs-step;
}
.dp-kurs-steps li::before { content: counter(dp-kurs-step); font-size: 22px; font-weight: 700; color: #2f7d32; }
.dp-kurs-steps strong { color: #1f2937; }
.dp-kurs-more { margin-top: 28px !important; text-align: center; }
.dp-kurs-more a { color: #2f7d32; font-weight: 600; }

/* Receipt page links (WooCommerce, outside .dp-on). */
.dp-kurs-receipt { margin: 24px 0; padding: 20px 24px; border-radius: 14px; background: #f3f8f4; }
.dp-kurs-receipt a { font-weight: 600; color: #2f7d32; }

@media (max-width: 900px) {
	.dp-kurs-intro { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
	.dp-kurs h1 { font-size: 30px; }
	.dp-kurs ol.dp-kurs-steps { grid-template-columns: 1fr; }
}

/* The list page: the two text boxes, the course cards and the FAQ. */
.dp-kurs .dp-on-card-photo .dp-kurs-placeholder { position: absolute; inset: 0; min-height: 0; border-radius: 0; }
.dp-kurs .dp-on-card .dp-on-card-meta { min-height: 0; }
.dp-kurs .dp-on-card .dp-on-card-text { min-height: 0; }
.dp-kurs-why {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	max-width: 1000px;
}
.dp-kurs-box {
	padding: 32px 28px;
	border: 1px solid #eef1f3;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	text-align: center;
}
.dp-kurs-box h2 { margin-bottom: 16px; font-size: 26px; }
.dp-kurs ul.dp-kurs-checks { display: inline-flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; text-align: left; color: #374151; }
.dp-kurs #kurser h2 { margin-bottom: 0; }
.dp-kurs-faq .dp-on-container > h2 { margin-bottom: 32px; }
.dp-kurs .dp-kurs-online { margin-top: 48px; }

@media (max-width: 700px) {
	.dp-kurs-why { grid-template-columns: 1fr; gap: 20px; }
}
