/* ==========================================================================
   OnlineZone courses: page banner extras, course cards, LMS page skin
   ========================================================================== */

.ozt-shero--courses .ozt-shero__blob--1 { background: #7C3AED; }
.ozt-shero--courses .ozt-shero__blob--2 { background: #0EA5E9; }
.ozt-shero--courses .ozt-shero__blob--3 { background: #14B8A6; }
.ozt-shero--courses h1 { background: linear-gradient(95deg, #FFFFFF 28%, #C4B5FD 66%, #A5F3FC 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ozt-shero__proof { gap: 26px; padding-top: 2px; }
.ozt-shero__proof strong { font: 800 20px/1 var(--ozt-display); color: #fff; }
.ozt-shero__proof span { font-size: 11.5px; color: var(--ozt-faint); }
.ozt-shero--courses .ozt-shero__step:nth-child(1) .ozt-shero__step-icon { background: linear-gradient(135deg, #7C3AED, #2563EB); }
.ozt-shero--courses .ozt-shero__step:nth-child(2) .ozt-shero__step-icon { background: linear-gradient(135deg, #0EA5E9, #14B8A6); }
.ozt-shero--courses .ozt-shero__step:nth-child(3) .ozt-shero__step-icon { background: linear-gradient(135deg, #F59E0B, #EC4899); }

.ozt-courses__bar { margin-bottom: 18px; }
.ozt-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.ozt-course { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--ozt-line); border-radius: 20px; box-shadow: var(--ozt-shadow); transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease, border-color .28s ease; }
.ozt-course:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 24px 46px -24px var(--c1), 0 0 0 1px rgba(15, 23, 42, .06); }
.ozt-course[hidden] { display: none !important; }

.ozt-course__cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.ozt-course__cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% -10%, rgba(255, 255, 255, .35), transparent 60%); }
.ozt-course__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ozt-course:hover .ozt-course__cover img { transform: scale(1.06); }
.ozt-course__cover-icon { position: relative; z-index: 1; opacity: .9; animation: ozt-course-float 6s ease-in-out infinite; }
@keyframes ozt-course-float { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
.ozt-course__tag { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ozt-ink); font: 800 12.5px/1 var(--ozt-font); box-shadow: 0 6px 16px -8px rgba(2, 6, 23, .5); }
.ozt-course__tag--in { left: auto; right: 12px; background: var(--ozt-green); color: #fff; }

.ozt-course__body { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px 6px; }
.ozt-course__name { margin: 0; font: 800 18px/1.28 var(--ozt-display); letter-spacing: -.01em; }
.ozt-course__name a { color: var(--ozt-ink) !important; }
.ozt-course__name a:hover { color: var(--ozt-blue) !important; }
.ozt-course__note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ozt-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ozt-course__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ozt-course__meta li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: var(--ozt-soft); font-size: 11.5px; font-weight: 700; color: var(--ozt-ink-2); }
.ozt-course__meta .ozt-icon { color: var(--c1); }
.ozt-course__ticks { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 5px; }
.ozt-course__ticks li { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--ozt-text); }
.ozt-course__ticks .ozt-icon { flex: 0 0 auto; margin-top: 1px; color: var(--ozt-green); }
.ozt-course__by { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--ozt-faint); }

.ozt-course__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 14px 18px 16px; }
.ozt-course__price { display: flex; flex-direction: column; }
.ozt-course__price b { font: 800 22px/1 var(--ozt-display); color: var(--ozt-ink); }
.ozt-course__price small { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--ozt-muted); }
.ozt-course__btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px; border-radius: 12px; color: #fff !important; font: 700 13.5px/1.1 var(--ozt-font); background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -12px var(--c1); transition: transform .2s ease, box-shadow .2s ease; }
.ozt-course__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px var(--c1); }
.ozt-course__btn .ozt-icon { transition: transform .2s ease; }
.ozt-course:hover .ozt-course__btn .ozt-icon { transform: translateX(3px); }

.ozt-reveal .ozt-course { opacity: 0; }
.ozt-reveal .ozt-course.is-in { animation: ozt-rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* The LMS plugin's own course, lesson and dashboard pages, in the site's colours */
.ozt .mlms { --mlms-accent: var(--ozt-blue); font-family: var(--ozt-font); }
.ozt .mlms-page { width: 100%; max-width: var(--ozt-wrap); margin: 0 auto; padding: 26px var(--ozt-gutter) 56px; }
.ozt .mlms h1, .ozt .mlms h2, .ozt .mlms h3 { font-family: var(--ozt-display); letter-spacing: -.01em; }
.ozt .mlms a { color: var(--ozt-blue); }
.ozt .mlms-buybar-price { flex: 0 0 auto; white-space: nowrap; }
.ozt .mlms-buybar .mlms-btn { flex: 1 1 auto; justify-content: center; text-align: center; }

@media (max-width: 759px) {
	.ozt-shero__proof { gap: 8px; }
	.ozt-courses { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ozt-course { border-radius: 16px; }
	.ozt-course__cover { aspect-ratio: 16 / 6; }
	.ozt-course__body { padding: 14px 14px 4px; }
	.ozt-course__name { font-size: 16.5px; }
	.ozt-course__foot { padding: 12px 14px 14px; }
	.ozt-course__price b { font-size: 19px; }
	.ozt-courses__bar { margin-bottom: 14px; }
	.ozt .mlms-page { padding: 14px var(--ozt-gutter) 28px; }
	/* Keep the course "Buy now" bar clear of the phone menu at the bottom */
	.ozt .mlms-buybar { bottom: calc(66px + env(safe-area-inset-bottom)); }
	.ozt .mlms-page table { display: block; overflow-x: auto; font-size: 12.5px; }
}
