/**
 * Course cards inside the Tutor 4 dashboard.
 * Tutor 4 caps the column at 760px and collapses the old 16:9 thumbnail.
 */

.nn-admin-payment-notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid #f0d7a8;
	border-radius: 12px;
	background: #fff6e8;
	color: #152039;
	font-size: 15px;
	line-height: 1.45;
}

.nn-dashboard-intro {
	margin: 24px 0 0;
	max-width: 760px;
}

.tutor-dashboard-layout .nn-dashboard-intro {
	color: #d7dbe3;
}

.nn-dashboard-intro a {
	color: #126f6b;
	font-weight: 600;
}

.tutor-dashboard-layout .tutor-dashboard-page {
	max-width: 1120px;
}

/* Ista širina zaglavlja na svakoj dashboard stranici, u ravni sa sadržajem. */
.tutor-dashboard-layout .tutor-dashboard-header {
	padding-inline: 0;
}

.tutor-dashboard-layout .tutor-dashboard-header-inner {
	width: 100%;
	max-width: 1120px;
	padding-inline: 16px;
	box-sizing: border-box;
}

.tutor-dashboard-page .all-courses .tutor-grid,
.tutor-dashboard-page .lms-help-creator-courses .tutor-grid,
.tutor-dashboard-page .enrolled-courses .tutor-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	width: 100%;
}

@media (min-width: 700px) {
	.tutor-dashboard-page .all-courses .tutor-grid-3,
	.tutor-dashboard-page .lms-help-creator-courses .tutor-grid-3,
	.tutor-dashboard-page .enrolled-courses .tutor-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.tutor-dashboard-page .all-courses .tutor-grid-3,
	.tutor-dashboard-page .lms-help-creator-courses .tutor-grid-3,
	.tutor-dashboard-page .enrolled-courses .tutor-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tutor-dashboard-page .all-courses .tutor-course-card,
.tutor-dashboard-page .lms-help-creator-courses .tutor-course-card,
.tutor-dashboard-page .enrolled-courses .tutor-course-card {
	align-items: stretch;
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e3e5eb;
	border-radius: 8px;
}

.tutor-dashboard-page .tutor-course-card .tutor-course-thumbnail {
	width: 100%;
	flex: 0 0 auto;
	position: relative;
}

.tutor-dashboard-page .tutor-course-card .tutor-course-thumbnail > a,
.tutor-dashboard-page .tutor-course-card .tutor-course-thumbnail .tutor-ratio {
	display: block;
	width: 100%;
	position: relative;
	aspect-ratio: 16 / 9;
	height: auto;
	padding: 0 !important;
	overflow: hidden;
}

.tutor-dashboard-page .tutor-course-card .tutor-course-thumbnail img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

.tutor-dashboard-page .tutor-course-card .tutor-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 16px 18px 18px;
}

.tutor-dashboard-page .tutor-course-card .nn_course_escerpt,
.tutor-dashboard-page .tutor-course-card .lms-help-course-card__desc {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: #5b616f;
}

.tutor-dashboard-page .tutor-course-card a.tutor-btn,
.tutor-dashboard-page .tutor-course-card .tutor-btn {
	display: flex !important;
	box-sizing: border-box;
	width: 100%;
	justify-content: center;
	align-items: center;
	margin-top: auto;
	padding: 10px 16px !important;
	border: 1px solid #126f6b !important;
	border-radius: 5px !important;
	background-color: #126f6b !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.tutor-dashboard-page .tutor-course-card a.tutor-btn:hover,
.tutor-dashboard-page .tutor-course-card .tutor-btn:hover {
	background-color: #ffc0c2 !important;
	border-color: #ffc0c2 !important;
	color: #152039 !important;
}

/*
 * tutor.min.css skriva .tutor-modal osim ako ima .tutor-is-active.
 * Tutor 4 otvara modal preko Alpine (x-show), pa obilazak ostane nevidljiv,
 * a x-trap.noscroll i dalje zaključa skrol na html.
 */
.tutor-modal {
	display: flex;
}

.tutor-modal[style*="display: none"],
.tutor-modal[style*="display:none"] {
	display: none !important;
}

/* Aktivna stavka u filteru i sortiranju ne treba brend pozadinu. */
.tutor-dashboard-layout .tutor-popover .tutor-popover-menu .tutor-popover-menu-item.tutor-active {
	background-color: transparent;
}

/* Elementor kit boji button.tutor-btn-link. Naplata nema .tutor-dashboard-layout. */
body.tutor-screen-frontend-dashboard button.tutor-btn-link,
body.tutor-screen-frontend-dashboard button.tutor-btn-link:hover,
body.tutor-screen-frontend-dashboard button.tutor-btn-link:focus,
body.tutor-screen-frontend-dashboard button.tutor-btn-outline,
body.tutor-screen-frontend-dashboard button.tutor-btn-outline:hover,
body.tutor-screen-frontend-dashboard button.tutor-btn-outline:focus,
body.tutor-screen-frontend-dashboard button.tutor-btn-ghost,
body.tutor-screen-frontend-dashboard button.tutor-btn-ghost:hover,
body.tutor-screen-frontend-dashboard button.tutor-btn-ghost:focus {
	background-color: transparent !important;
	background-image: none !important;
	color: #152039 !important;
}

body.nnweb-payment-result {
	background: #f6f7f8;
}

body.nnweb-payment-result .nn-thankyou {
	margin-top: 72px;
	margin-bottom: 72px;
}

.nn-thankyou {
	max-width: 450px;
	margin: 48px auto 24px;
	padding: 48px 32px 32px;
	text-align: center;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.06), 0 0 6px rgba(0, 0, 0, 0.08);
}

.nn-thankyou__icon {
	width: 120px;
	height: auto;
	margin: 0 auto 8px;
}

.nn-thankyou__title {
	margin: 16px 0 8px;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.3;
	color: #152039;
}

.nn-thankyou__text {
	margin: 0 0 12px;
	color: #5b616f;
}

.nn-thankyou__close {
	margin: 0 0 20px;
	color: #152039;
	font-weight: 600;
}

.nn-thankyou__meta {
	margin: 0 0 16px;
	text-align: left;
}

.nn-thankyou__meta div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-top: 1px solid #e3e5eb;
}

.nn-thankyou__meta dt {
	margin: 0;
	color: #5b616f;
}

.nn-thankyou__meta dd {
	margin: 0;
	color: #152039;
	font-weight: 600;
	word-break: break-all;
	text-align: right;
}

.nn-thankyou__items {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	color: #5b616f;
}

.nn-thankyou__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nn-thankyou__actions .tutor-btn {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 12px 24px !important;
	border-radius: 8px !important;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.nn-thankyou__actions .tutor-btn-secondary {
	background: #e7f3f1 !important;
	color: #126f6b !important;
	border: none !important;
}

.nn-thankyou__actions .tutor-btn-primary {
	background: #126f6b !important;
	color: #fff !important;
	border: none !important;
}
