.ayo-public-wrap {
	direction: rtl;
}

.ayo-course-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ayo-course-card {
	overflow: hidden;
	border: 1px solid #e4e4e4;
	border-radius: 14px;
	background: #fff;
}

.ayo-course-card img {
	display: block;
	width: 100%;
	height: auto;
}

.ayo-course-card-body {
	padding: 18px;
}

.ayo-course-card h3 {
	margin: 10px 0;
}

.ayo-course-badge {
	display: inline-block;
	padding: 5px 9px;
	border-radius: 999px;
	background: #eef7f3;
	font-size: 12px;
	font-weight: 700;
}

.ayo-button {
	display: inline-block;
	padding: 9px 14px;
	border-radius: 8px;
	background: #176b4d;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 900px) {
	.ayo-course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ayo-course-grid {
		grid-template-columns: 1fr;
	}
}


.ayo-course-curriculum {
	margin-top: 35px;
	padding-top: 25px;
	border-top: 1px solid #e5e7eb;
}

.ayo-course-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}

.ayo-course-summary span {
	padding: 9px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	font-size: 14px;
}

.ayo-curriculum-title {
	margin: 0 0 20px;
	font-size: 28px;
}

.ayo-modules-list {
	display: grid;
	gap: 20px;
}

.ayo-module {
	overflow: hidden;
	border: 1px solid #dfe5e2;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .035);
}

.ayo-module-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	background: #f3faf6;
	border-bottom: 1px solid #dfe5e2;
}

.ayo-module-header h3 {
	margin: 4px 0 0;
	font-size: 21px;
}

.ayo-module-number {
	color: #18713f;
	font-weight: 700;
	font-size: 13px;
}

.ayo-lessons-count {
	padding: 6px 10px;
	border-radius: 999px;
	background: #fff;
	color: #475569;
	font-size: 13px;
	white-space: nowrap;
}

.ayo-lessons-list {
	padding: 8px 20px 20px;
}

.ayo-lesson {
	padding: 17px 0;
	border-bottom: 1px solid #edf0ee;
}

.ayo-lesson:last-child {
	border-bottom: 0;
}

.ayo-lesson-title-wrap {
	display: flex;
	align-items: flex-start;
	gap: 13px;
}

.ayo-lesson-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border-radius: 50%;
	background: #18713f;
	color: #fff;
	font-weight: 700;
}

.ayo-lesson h4 {
	margin: 2px 0 7px;
	font-size: 18px;
}

.ayo-lesson-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: #64748b;
	font-size: 13px;
}

.ayo-lesson-meta span {
	padding-left: 9px;
	border-left: 1px solid #cbd5e1;
}

.ayo-lesson-meta span:last-child {
	border-left: 0;
}

.ayo-preview-label {
	color: #18713f;
	font-weight: 700;
}

.ayo-lesson-preview {
	margin-top: 16px;
	padding-right: 45px;
}

.ayo-video-wrap {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 12px;
	background: #000;
}

.ayo-video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ayo-lesson-content {
	margin-top: 18px;
}

.ayo-resource-button {
	display: inline-block;
	margin-top: 10px;
	padding: 9px 14px;
	border-radius: 8px;
	background: #18713f;
	color: #fff !important;
	text-decoration: none;
}

.ayo-locked-note {
	margin: 14px 45px 0 0;
	padding: 12px 14px;
	border-radius: 9px;
	background: #f8fafc;
	color: #64748b;
}

.ayo-empty-state,
.ayo-no-lessons {
	padding: 18px;
	border-radius: 10px;
	background: #f8fafc;
	color: #64748b;
}

@media (max-width: 600px) {
	.ayo-module-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.ayo-lesson-preview {
		padding-right: 0;
	}

	.ayo-locked-note {
		margin-right: 0;
	}
}


.ayo-enrollment-box {
	margin: 24px 0 28px;
	padding: 20px;
	border: 1px solid #d9e8df;
	border-radius: 14px;
	background: #f7fcf9;
}

.ayo-enrollment-box h3,
.ayo-enrollment-box p {
	margin-top: 0;
}

.ayo-auth-actions,
.ayo-enrolled-state {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.ayo-enrolled-state {
	justify-content: space-between;
}

.ayo-enroll-button,
.ayo-register-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 9px;
	background: #18713f;
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.ayo-register-button {
	border: 1px solid #18713f;
	background: #fff;
	color: #18713f !important;
}

.ayo-pending-state {
	color: #7a5700;
}

.ayo-notice {
	margin-bottom: 15px;
	padding: 12px 14px;
	border-radius: 8px;
	font-weight: 700;
}

.ayo-notice-success {
	background: #e8f7ee;
	color: #176b4d;
}

.ayo-notice-info {
	background: #eaf3ff;
	color: #24588f;
}

.ayo-notice-warning {
	background: #fff5d8;
	color: #7a5700;
}

.ayo-notice-error {
	background: #fdecec;
	color: #9b1c1c;
}

.ayo-locked-note {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px dashed #cbd5e1;
}

.ayo-student-dashboard {
	direction: rtl;
}

.ayo-student-welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px;
	border-radius: 15px;
	background: #f3faf6;
}

.ayo-student-welcome h2 {
	margin: 5px 0;
}

.ayo-dashboard-count {
	min-width: 90px;
	text-align: center;
}

.ayo-dashboard-count strong {
	display: block;
	font-size: 34px;
}

.ayo-dashboard-courses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 22px;
}

.ayo-dashboard-course {
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 13px;
	background: #fff;
}

.ayo-dashboard-course img {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
}

.ayo-dashboard-course > div {
	padding: 18px;
}

.ayo-dashboard-status {
	display: inline-block;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.ayo-dashboard-status.is-active {
	background: #e8f7ee;
	color: #176b4d;
}

.ayo-dashboard-status.is-pending {
	background: #fff5d8;
	color: #7a5700;
}

.ayo-dashboard-empty,
.ayo-dashboard-login {
	margin-top: 20px;
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 13px;
	text-align: center;
}

@media (max-width: 700px) {
	.ayo-student-welcome,
	.ayo-enrolled-state {
		align-items: flex-start;
		flex-direction: column;
	}

	.ayo-dashboard-courses {
		grid-template-columns: 1fr;
	}
}


.ayo-progress-card {
	margin: 0 0 28px;
	padding: 19px 20px;
	border: 1px solid #dbe7df;
	border-radius: 13px;
	background: #fff;
}

.ayo-progress-header,
.ayo-dashboard-progress > div:first-child {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 9px;
}

.ayo-progress-track {
	overflow: hidden;
	width: 100%;
	height: 11px;
	border-radius: 999px;
	background: #e5ebe7;
}

.ayo-progress-track > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #18713f;
	transition: width .25s ease;
}

.ayo-progress-card p {
	margin: 9px 0 0;
	color: #64748b;
	font-size: 14px;
}

.ayo-course-complete-message {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #e8f7ee;
	color: #176b4d;
	font-weight: 700;
}

.ayo-lesson.is-completed {
	background: linear-gradient(90deg, rgba(232, 247, 238, .4), transparent);
}

.ayo-completed-label {
	color: #176b4d;
	font-weight: 700;
}

.ayo-lesson-progress-form {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #edf0ee;
}

.ayo-complete-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid #18713f;
	border-radius: 9px;
	background: #18713f;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ayo-complete-button.is-completed {
	background: #fff;
	color: #176b4d;
}

.ayo-dashboard-progress {
	margin: 15px 0;
}

.ayo-dashboard-progress > div:first-child {
	margin-bottom: 7px;
	font-size: 14px;
}


.ayo-final-quiz {
	margin-top: 30px;
	padding: 24px;
	border: 1px solid #dbe7df;
	border-radius: 15px;
	background: #fff;
}

.ayo-quiz-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e8ece9;
}

.ayo-quiz-heading > div:first-child > span {
	color: #18713f;
	font-weight: 700;
	font-size: 13px;
}

.ayo-quiz-heading h2 {
	margin: 5px 0 8px;
}

.ayo-quiz-description p:last-child {
	margin-bottom: 0;
}

.ayo-quiz-rules {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	min-width: 240px;
}

.ayo-quiz-rules span,
.ayo-attempt-summary span {
	padding: 7px 11px;
	border-radius: 999px;
	background: #f3faf6;
	color: #176b4d;
	font-size: 13px;
	font-weight: 700;
}

.ayo-quiz-state {
	margin-top: 20px;
	padding: 20px;
	border-radius: 11px;
	background: #f7faf8;
	text-align: center;
}

.ayo-quiz-state h3 {
	margin-top: 0;
}

.ayo-quiz-state.is-passed {
	background: #e8f7ee;
	color: #176b4d;
}

.ayo-quiz-state.is-warning {
	background: #fff5d8;
	color: #7a5700;
}

.ayo-quiz-state.is-locked {
	background: #f1f5f9;
	color: #475569;
}

.ayo-quiz-notice {
	margin-top: 20px;
	padding: 13px 15px;
	border-radius: 9px;
	font-weight: 700;
}

.ayo-quiz-notice.is-success {
	background: #e8f7ee;
	color: #176b4d;
}

.ayo-quiz-notice.is-warning {
	background: #fff5d8;
	color: #7a5700;
}

.ayo-quiz-notice.is-info {
	background: #eaf3ff;
	color: #24588f;
}

.ayo-quiz-notice.is-error {
	background: #fdecec;
	color: #9b1c1c;
}

.ayo-attempt-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0;
}

.ayo-quiz-form {
	display: grid;
	gap: 18px;
	margin-top: 20px;
}

.ayo-quiz-question {
	margin: 0;
	padding: 19px;
	border: 1px solid #e0e7e3;
	border-radius: 11px;
}

.ayo-quiz-question legend {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 8px;
	font-weight: 700;
}

.ayo-quiz-question legend > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #18713f;
	color: #fff;
}

.ayo-quiz-options {
	display: grid;
	gap: 9px;
	margin-top: 15px;
}

.ayo-quiz-options label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 13px;
	border: 1px solid #e2e8f0;
	border-radius: 9px;
	cursor: pointer;
}

.ayo-quiz-options label:hover {
	border-color: #18713f;
	background: #f7fcf9;
}

.ayo-quiz-submit {
	min-height: 46px;
	padding: 10px 22px;
	border: 0;
	border-radius: 9px;
	background: #18713f;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	justify-self: start;
}

@media (max-width: 700px) {
	.ayo-quiz-heading {
		flex-direction: column;
	}

	.ayo-quiz-rules {
		justify-content: flex-start;
		min-width: 0;
	}
}
