/* Tutor LMS in the Dr. Askarova style: course page, learning area, student dashboard. */

.tutor-wrap,
.tutor-dashboard-layout,
.tutor-learning-page,
.tutor-modal {
	--tutor-color-primary: #0478a3;
	--tutor-color-primary-hover: #035f82;
	--tutor-surface-base: var(--wp--preset--color--bg, #fcffff);
	--tutor-surface-l1: #fff;
	--tutor-surface-l1-hover: #f1f9fc;
	--tutor-surface-sidebar-l1: #fff;
	--tutor-surface-brand-secondary: #e4f4fb;
	--tutor-surface-brand-tertiary: #f1f9fc;
	--tutor-text-primary: #0b2b3d;
	--tutor-text-secondary: #4a6577;
	--tutor-text-subdued: #5f7a8a;
	--tutor-text-brand: #0478a3;
	--tutor-icon-brand: #0478a3;
	--tutor-border-idle: #dcebf2;
	--tutor-border-idle2: #dcebf2;
	--tutor-border-color: #dcebf2;
	--tutor-body-color: #0b2b3d;
	--tutor-color-muted: #5f7a8a;
	font-family: var(--wp--preset--font-family--body);
	color: #0b2b3d;
}
.tutor-wrap :where(h1, h2, h3, h4, h5, .tutor-h5),
.tutor-dashboard-layout :where(h1, h2, h3, h4, h5, .tutor-h5),
.tutor-learning-page :where(h1, h2, h3, h4, h5) {
	font-family: var(--wp--preset--font-family--heading);
	color: #0b2b3d;
	letter-spacing: -0.01em;
}
.tutor-wrap :where(button, input, select, textarea),
.tutor-dashboard-layout :where(button, input, select, textarea),
.tutor-learning-page :where(button, input, select, textarea) {
	font-family: inherit;
}

/* Buttons */
.tutor-wrap .tutor-btn,
.tutor-dashboard-layout .tutor-btn,
.tutor-learning-page .tutor-btn {
	border-radius: 999px;
	font-weight: 700;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tutor-wrap .tutor-btn-primary,
.tutor-wrap .single_add_to_cart_button,
.tutor-dashboard-layout .tutor-btn-primary {
	background: #c42a82 !important;
	border-color: #c42a82 !important;
	color: #fff !important;
	box-shadow: 0 8px 22px -10px rgba(196, 42, 130, .65);
}
.tutor-wrap .tutor-btn-primary:hover,
.tutor-wrap .single_add_to_cart_button:hover,
.tutor-dashboard-layout .tutor-btn-primary:hover {
	background: #a82270 !important;
	border-color: #a82270 !important;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -10px rgba(168, 34, 112, .7);
}
.tutor-wrap .tutor-btn:focus-visible,
.tutor-dashboard-layout .tutor-btn:focus-visible,
.tutor-learning-page .tutor-btn:focus-visible {
	outline: 3px solid #0593c6;
	outline-offset: 2px;
}

/* ---------- Course page ---------- */
.tutor-course-details-page {
	padding-top: clamp(20px, 3vw, 40px);
	padding-bottom: clamp(40px, 6vw, 80px);
}
.tutor-course-details-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 900;
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.1;
	margin-bottom: 6px;
}
.tutor-course-details-info,
.tutor-sidebar-card .tutor-card-footer:not(:has(li)),
.tutor-course-details-top:not(:has(a, button)) {
	display: none !important;
}
.tutor-course-thumbnail {
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 60px -36px rgba(4, 120, 163, .55);
}
.tutor-course-thumbnail img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.tutor-course-thumbnail:hover img {
	transform: scale(1.04);
}
.tutor-course-details-tab .tutor-tab-item,
.tutor-course-details-tab {
	font-size: 15.5px;
	line-height: 1.65;
	color: #4a6577;
}
.tutor-course-details-tab h3,
.tutor-course-details-tab h2 {
	font-size: 20px;
	font-weight: 800;
	margin-top: 1.4em;
}
.tutor-course-details-tab em {
	display: block;
	padding: 12px 16px;
	border-radius: 14px;
	background: #f1f9fc;
	border: 1px solid #dcebf2;
	color: #4a6577;
	font-style: normal;
	font-size: 14px;
}

/* author card */
.tutor-single-course-sidebar-more .tutor-course-details-instructors {
	margin-top: 18px;
	padding: 20px 24px;
	border: 1px solid #dcebf2;
	border-radius: 22px;
	background: #fff;
}
.tutor-course-details-instructors h3 {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #5f7a8a !important;
	margin-bottom: 12px !important;
}
.tutor-course-details-instructors a {
	pointer-events: none;
	text-decoration: none !important;
	color: #0b2b3d !important;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 17px;
}
.tutor-course-details-instructors .tutor-avatar {
	background: linear-gradient(135deg, #0593c6, #db3996) !important;
	color: #fff !important;
}

/* curriculum */
.tutor-course-content-title {
	font-size: 22px !important;
	font-weight: 800 !important;
}
.tutor-wrap .tutor-accordion-item {
	border: 1px solid #dcebf2;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
}
.tutor-wrap .tutor-accordion-item-header {
	background: #f1f9fc;
	color: #0b2b3d;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 17px;
	padding: 16px 20px;
}
.tutor-wrap .tutor-accordion-item-header.is-active {
	color: #0478a3;
}
.tutor-course-content-list-item {
	padding: 12px 20px !important;
	border-top: 1px solid #eef6fa;
	transition: background-color .2s ease;
}
.tutor-course-content-list-item:hover {
	background: #f7fcfe;
}
.tutor-course-content-list-item-title a {
	text-decoration: none !important;
}
.tutor-course-content-list-item-title a:hover {
	color: #0478a3 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}
.tutor-course-content-list-item-title,
.tutor-course-content-list-item-title a {
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #0b2b3d !important;
}

/* sidebar card */
.tutor-single-course-sidebar .tutor-sidebar-card {
	border: 1px solid #dcebf2;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 50px -34px rgba(11, 43, 61, .35);
	overflow: hidden;
}
@media (min-width: 992px) {
	.tutor-single-course-sidebar {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
	}
}
.tutor-single-course-sidebar .tutor-card-body {
	background: linear-gradient(180deg, #f1f9fc 0%, #fff 70%);
	padding: 26px 24px;
}
.tutor-course-sidebar-card-pricing .woocommerce-Price-amount,
.tutor-course-sidebar-card-pricing ins .woocommerce-Price-amount {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 900;
	font-size: 30px;
	color: #0b2b3d;
}
.tutor-course-sidebar-card-pricing .woocommerce-Price-amount {
	white-space: nowrap;
}
.tutor-course-sidebar-card-pricing del {
	display: block;
	margin-top: 2px;
}
.tutor-course-sidebar-card-pricing del .woocommerce-Price-amount {
	font-size: 15px;
	font-weight: 600;
	color: #5f7a8a;
}
.tutor-course-progress-wrapper h3 {
	font-size: 18px;
	font-weight: 800;
}
.tutor-progress-bar {
	height: 8px;
	border-radius: 99px;
	background: #e4f4fb;
	overflow: hidden;
}
.tutor-progress-bar .tutor-progress-value {
	border-radius: 99px;
	background: linear-gradient(90deg, #0593c6, #db3996);
}
/* "finish course early" is not needed for short courses — avoid accidental clicks */
.tutor-sidebar-card form:has(.tutor-btn-outline-primary) {
	display: none;
}
.tutor-enrolled-info-text {
	color: #4a6577;
}

/* ---------- Student dashboard ---------- */
.tutor-dashboard-layout {
	background: var(--wp--preset--color--bg, #fcffff);
}
.tutor-dashboard-sidebar {
	background: #fff;
	border-right: 1px solid #dcebf2;
}
.tutor-dashboard-sidebar-nav a {
	border-radius: 14px;
	font-weight: 600;
	color: #0b2b3d;
	transition: background-color .2s ease, color .2s ease;
}
.tutor-dashboard-sidebar-nav a:hover {
	background: #f1f9fc;
	color: #0478a3;
}
.tutor-dashboard-sidebar-nav a.active {
	background: #e4f4fb;
	color: #0478a3;
}
.tutor-see-all-courses {
	color: #0478a3;
	font-weight: 700;
}
.tutor-dashboard-header {
	background: rgba(252, 255, 255, .85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #dcebf2;
}
.tutor-dashboard-header .tutor-h5 {
	font-weight: 800;
}
.tutor-dashboard-main .tutor-card,
.tutor-dashboard-main [class*="stat-card"],
.tutor-dashboard-main [class*="course-card"] {
	border-color: #dcebf2;
	border-radius: 18px;
}
.tutor-dashboard-main [class*="course-card"] {
	transition: box-shadow .25s ease, transform .25s ease;
}
.tutor-dashboard-main [class*="course-card"]:hover {
	box-shadow: 0 18px 40px -28px rgba(4, 120, 163, .55);
	transform: translateY(-2px);
}
.tutor-dashboard-main img {
	border-radius: 12px;
}
.tutor-avatar {
	background: #e4f4fb;
	color: #0478a3;
}

.tutor-dashboard-main a[href*="courses/wishlist"],
.tutor-dashboard-main a[href*="courses/my-quiz-attempts"] {
	display: none !important;
}
.tutor-dashboard-main [class*="dropdown"] span::first-letter {
	text-transform: uppercase;
}

/* ---------- Learning area (lesson) ---------- */
.tutor-learning-page {
	background: var(--wp--preset--color--bg, #fcffff);
}
.tutor-learning-header {
	background: #fff;
	border-bottom: 1px solid #dcebf2;
}
.tutor-learning-header-title {
	font-weight: 800;
}
.tutor-learning-sidebar {
	background: #fff;
}
.tutor-learning-progress .tutor-progress-bar,
.tutor-learning-progress [class*="progress-bar"] {
	background: #e4f4fb;
}
.dra-lesson-soon {
	position: relative;
	padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
	border-radius: 22px;
	color: #fff;
	background:
		radial-gradient(120% 140% at 0% 0%, #0593c6 0%, rgba(5, 147, 198, 0) 60%),
		radial-gradient(120% 140% at 100% 0%, #db3996 0%, rgba(219, 57, 150, 0) 55%),
		linear-gradient(135deg, #0478a3, #0b2b3d);
	overflow: hidden;
}
.dra-lesson-soon::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
}
.dra-lesson-soon p {
	position: relative;
	margin: 0 0 6px;
	color: rgba(255, 255, 255, .9);
}
.dra-lesson-soon strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(20px, 2.4vw, 26px);
	color: #fff;
}
.dra-lesson-note p {
	margin: 0 !important;
}
.dra-lesson-note p + p {
	margin-top: 6px !important;
}
.dra-lesson-note {
	margin-top: 18px;
	padding: 12px 16px;
	border-radius: 14px;
	background: #f1f9fc;
	border: 1px solid #dcebf2;
	color: #4a6577;
	font-size: 14px;
	line-height: 1.55;
}
.dra-lesson-note a {
	color: #c42a82;
	font-weight: 700;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.tutor-course-details-page {
		padding-left: 16px;
		padding-right: 16px;
	}
	.tutor-course-thumbnail {
		border-radius: 18px;
	}
	.tutor-single-course-sidebar {
		margin-top: 24px;
	}
	.tutor-dashboard-main {
		padding-left: 12px;
		padding-right: 12px;
	}
	.tutor-stat-card {
		min-height: 0 !important;
		height: auto !important;
		gap: 10px;
		padding: 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tutor-course-thumbnail img,
	.tutor-dashboard-main [class*="course-card"],
	.tutor-wrap .tutor-btn {
		transition: none !important;
	}
}
