@charset "UTF-8";

/* ZAA LMS — public styles (theme-neutral, minimal on purpose) */

/* Visually-hidden text for screen readers. A plugin-owned class, so it
   works on any theme regardless of what the theme provides. */
.zaa-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal;
}

.zaa-subtitle {
	font-size: 1.15em;
	color: #555;
	margin-top: -0.5em;
}

.zaa-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
	font-size: 0.9em;
	color: #555;
}

.zaa-media {
  aspect-ratio: 16 / 9;
  height: auto;
}
.zaa-media iframe,
.zaa-media img {
	max-width: 100%;
	height: auto;
}

.zaa-media-video iframe {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
}

.zaa-section {
	margin: 2em 0;
}
.zaa-toc {
    margin: 2em 0;
    padding: 24px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}
.zaa-toc-list > li {
	padding: 10px 0;
	border-bottom: 1px solid #e5e5e5;
}
.zaa-toc-list > li:last-child {
	border-bottom: none;
}

.zaa-toc-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.zaa-toc-row a,
.zaa-toc-row > span:not(.zaa-toc-check):not(.zaa-toc-duration) {
	font-weight: 600;
}

.zaa-toc-row .zaa-toc-duration {
	margin-left: auto;
}

.zaa-toc-details {
	margin: 4px 0 0 24px;
	font-size: 0.92em;
	color: #555;
}

.zaa-toc-details p {
	margin: 0 0 4px;
}

.zaa-toc-subtitle {
	font-style: italic;
}

.zaa-toc-duration {
	margin-left: auto;
	font-size: 0.85em;
	color: #595959;
	white-space: nowrap;
}

/* One size for every LMS button, whether it is an <a>, <button> or
   <input> and whatever the theme's own button rules say. */
a.zaa-button,
button.zaa-button,
input.zaa-button,
.zaa-button {
	display: inline-block;
	box-sizing: border-box;
	padding: 12px 28px;
	background: #1d2327;
	color: #fff;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	-webkit-appearance: none;
	appearance: none;
}

.zaa-button:hover,
.zaa-button:focus {
	background: #3c434a;
	color: #fff;
}

/* Keyboard focus must stay clearly visible (WCAG 2.4.7 / 1.4.11):
   the hover-style background change alone is not enough contrast. */
.zaa-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.zaa-enroll {
	margin: 2em 0;
}

/* Progress */

.zaa-progress {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 1.5em;
}

.zaa-progress-track {
	flex: 1;
	height: 10px;
	background: #e5e5e5;
	border-radius: 5px;
	overflow: hidden;
}

.zaa-progress-fill {
	height: 100%;
	background: #2c7a3f;
	border-radius: 5px;
	transition: width 0.3s ease;
}

.zaa-progress-label {
	font-size: 0.85em;
	color: #555;
	white-space: nowrap;
}

.zaa-toc-done .zaa-toc-check {
	color: #2c7a3f;
	font-weight: 700;
}

.zaa-complete {
	margin: 2em 0;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.zaa-complete-badge {
	display: inline-block;
	padding: 8px 16px;
	background: #edf7ee;
	color: #2c7a3f;
	border-radius: 3px;
	font-weight: 600;
}

.zaa-button-complete {
	background: #2c7a3f;
}

.zaa-button-complete:hover,
.zaa-button-complete:focus {
	background: #245f32;
}

.zaa-notice {
	padding: 14px 18px;
	border-left: 4px solid #2c7a3f;
	background: #edf7ee;
	margin: 0 0 1.5em;
}

.zaa-notice p {
	margin: 0;
}

/* Restricted module */

.zaa-restricted-notice {
	padding: 24px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	margin: 1.5em 0;
}

.zaa-restricted-notice .zaa-login-link {
	margin-left: 16px;
}

/* Module */

.zaa-breadcrumb {
	font-size: 0.9em;
	margin-bottom: 1em;
}

.zaa-module-duration {
	font-size: 0.9em;
	color: #595959;
}

.zaa-module-nav {
	clear: both;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 2.5em 0 0;
	padding-top: 1.5em;
	border-top: 1px solid #e5e5e5;
}

.zaa-single-module {
	padding-top: 30px;
	padding-bottom: 50px;
}

.zaa-single-module .zaa-module-title {
	margin: 0 0 0.25em;
}

.zaa-single-module .zaa-breadcrumb {
	margin-bottom: 0.5em;
}

.zaa-module-objectives,
.zaa-module-excerpt {
	color: #555;
	margin: 0 0 1.25em;
}

.zaa-module-nav .zaa-nav-next {
	margin-left: auto;
}

/* Quiz */

.zaa-quiz {
	margin: 2em 0;
	padding: 24px;
	background: #f8f9fa;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}

.zaa-quiz-title {
	margin-top: 0;
}

.zaa-quiz-q {
	border: 0;
	padding: 0;
	margin: 0 0 1.5em;
}

.zaa-quiz-q legend {
	font-weight: 600;
	margin-bottom: 0.5em;
}

.zaa-quiz-choice {
	display: block;
	padding: 8px 12px;
	margin: 0 0 6px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	cursor: pointer;
}

.zaa-quiz-choice:hover {
	border-color: #999;
}

.zaa-quiz-feedback {
	padding: 10px 14px;
	margin-top: 8px;
	background: #fff;
	border-left: 4px solid #2c7a3f;
	border-radius: 0 4px 4px 0;
}

.zaa-quiz-feedback p {
	margin: 0 0 4px;
}

.zaa-fb-good {
	color: #2c7a3f;
	font-weight: 600;
}

.zaa-fb-note {
	color: #555;
	font-size: 0.95em;
}

.zaa-quiz-result {
	margin-top: 1em;
	padding: 12px 16px;
	background: #edf7ee;
	border-radius: 4px;
	font-weight: 600;
}

/* Student dashboard */

.zaa-dashboard-section {
	margin: 0 0 2.5em;
}

.zaa-dashboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zaa-dashboard-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 16px;
	margin: 0 0 12px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	flex-wrap: wrap;
}

.zaa-dashboard-thumb img {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
}

.zaa-dashboard-body {
	flex: 1;
	min-width: 220px;
}

.zaa-dashboard-body h3 {
	margin: 0 0 8px;
	font-size: 1.05em;
}

.zaa-dashboard-body .zaa-progress {
	margin: 0;
}

.zaa-dashboard-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.zaa-dashboard-review {
	font-size: 0.9em;
}

/* Archive / grid */

.zaa-archive-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 0 0 2em;
}

.zaa-filter-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zaa-filter-cats .current a {
	font-weight: 700;
	text-decoration: underline;
}

.zaa-filter-search {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.zaa-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin: 0 0 2em;
}

.zaa-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
}

.zaa-card-media {
	display: block;
	line-height: 0;
}

.zaa-card-media img {
	width: 100%;
	height: auto;
}

.zaa-card-placeholder {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #f0f0f1, #dcdcde);
}

.zaa-card-body {
	padding: 16px 20px 20px;
}

.zaa-card-title {
	margin: 0 0 4px;
	font-size: 1.1em;
}

.zaa-card-subtitle {
	margin: 0 0 8px;
	color: #666;
	font-size: 0.95em;
}

.zaa-card-excerpt {
	margin: 0 0 8px;
	font-size: 0.9em;
	line-height: 1.5;
}

.zaa-card-meta {
	margin: 0;
	font-size: 0.85em;
	color: #595959;
}

.zaa-card-meta .zaa-card-cats {
	margin-left: 12px;
}

.zaa-card-free,
.zaa-meta-free {
	color: #2c7a3f;
	font-weight: 700;
}

.zaa-card-meta .zaa-card-free {
	margin-left: 12px;
}

/* Order received page: links to the courses just bought. */
.zaa-thankyou-courses {
	margin: 0 0 30px;
	padding: 16px 20px;
	border-left: 4px solid #2c7a3f;
	background: #f6f9f6;
}

.zaa-thankyou-courses h2 {
	margin-top: 0;
}

.zaa-thankyou-course-list {
	margin: 0;
	padding-left: 20px;
}

.zaa-thankyou-course-link {
	font-weight: 700;
}

/* A button-looking label with nowhere to go (paid course, nothing to buy). */
.zaa-button-disabled {
	opacity: 0.65;
	cursor: default;
	pointer-events: none;
}

/* Quiz with "Prevent learners from changing their answers" ticked. */
.zaa-q-locked .zaa-quiz-choice {
	opacity: 0.85;
	cursor: default;
}

/* Introduction under the courses archive title. */
.zaa-archive-intro {
	max-width: 70ch;
	margin: 8px 0 20px;
}

.zaa-archive-intro p:last-child {
	margin-bottom: 0;
}
