/* ==========================================================================
   Tutor Course Listing v2
   Brand: #079B9D · Font: "Golos Text", sans-serif
   NOTE: this file deliberately uses !important on typography/box properties.
   WordPress themes (and Tutor's own frontend CSS) aggressively style headings,
   buttons and links — without these resets you get uppercase titles, oversized
   text and broken button layouts.
   ========================================================================== */

.tcl-wrap {
	--tcl-primary: #079B9D;
	--tcl-primary-dark: #05797B;
	--tcl-primary-soft: #E6F5F5;
	--tcl-ink: #14202E;
	--tcl-body: #5B6B7C;
	--tcl-line: #E8EDF2;
	--tcl-amber-bg: #FDF0DC;
	--tcl-amber-fg: #C2761A;
	--tcl-purple-bg: #EFE9FD;
	--tcl-purple-fg: #6D3BEB;
	--tcl-cols: 3;
	--tcl-radius: 16px;

	display: grid !important;
	grid-template-columns: 300px minmax(0, 1fr) !important;
	gap: 36px !important;
	align-items: start !important;
	max-width: 1320px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	font-family: "Golos Text", sans-serif !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: var(--tcl-ink) !important;
	text-align: left !important;
	-webkit-font-smoothing: antialiased;
}

/* --- Blanket reset so theme styles can't leak in --- */
.tcl-wrap *,
.tcl-wrap *::before,
.tcl-wrap *::after {
	box-sizing: border-box !important;
	font-family: "Golos Text", sans-serif !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.tcl-wrap p,
.tcl-wrap h2,
.tcl-wrap h3,
.tcl-wrap label,
.tcl-wrap span,
.tcl-wrap del {
	margin: 0 !important;
	padding: 0 !important;
	text-shadow: none !important;
}

.tcl-wrap a {
	text-decoration: none !important;
	box-shadow: none !important;
	border: 0 !important;
}

.tcl-wrap button {
	font-family: "Golos Text", sans-serif !important;
	cursor: pointer;
	border: 0;
	background: none;
	box-shadow: none !important;
	text-shadow: none !important;
	min-height: 0 !important;
	line-height: 1.4 !important;
}

.tcl-wrap svg {
	display: block;
	flex: 0 0 auto;
}

.tcl-wrap ::selection {
	background: var(--tcl-primary-soft);
	color: var(--tcl-ink);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.tcl-sidebar {
	background: #fff;
	border: 1px solid var(--tcl-line);
	border-radius: 20px;
	padding: 24px 22px;
	position: sticky;
	top: 24px;
	box-shadow: 0 1px 2px rgba(20, 32, 46, .04);
}

.tcl-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--tcl-line);
}

.tcl-sidebar-title {
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: .06em !important;
	color: var(--tcl-ink) !important;
}

.tcl-clear-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--tcl-primary) !important;
	background: none !important;
}

.tcl-clear-all svg {
	width: 13px;
	height: 13px;
}

.tcl-group {
	border-bottom: 1px solid var(--tcl-line);
	padding: 18px 0;
}

.tcl-group-head {
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 0 !important;
	background: none !important;
	text-align: left;
}

.tcl-group-icon {
	display: flex;
	color: var(--tcl-primary);
}

.tcl-group-icon svg {
	width: 19px;
	height: 19px;
}

.tcl-group-title {
	flex: 1;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--tcl-ink) !important;
}

.tcl-group-chevron {
	display: flex;
	color: var(--tcl-ink);
	transition: transform .25s ease;
}

.tcl-group-chevron svg {
	width: 17px;
	height: 17px;
}

.tcl-group:not(.is-open) .tcl-group-chevron {
	transform: rotate(180deg);
}

.tcl-group-body {
	display: flex;
	flex-direction: column;
	gap: 13px;
	padding-top: 16px;
	overflow: hidden;
}

.tcl-group:not(.is-open) .tcl-group-body {
	display: none;
}

/* --- Checkboxes --- */

.tcl-check {
	display: flex !important;
	align-items: center;
	gap: 11px;
	cursor: pointer;
	font-size: 15px !important;
	font-weight: 400 !important;
	color: var(--tcl-ink) !important;
	line-height: 1.35 !important;
	-webkit-user-select: none;
	user-select: none;
}

.tcl-check input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	margin: 0 !important;
	pointer-events: none;
}

.tcl-box {
	position: relative;
	width: 20px !important;
	height: 20px !important;
	flex: 0 0 20px;
	border: 1.5px solid #C9D4DE;
	border-radius: 6px;
	background: #fff;
	transition: background .15s ease, border-color .15s ease;
}

.tcl-check:hover .tcl-box {
	border-color: var(--tcl-primary);
}

.tcl-check input:focus-visible + .tcl-box {
	outline: 2px solid var(--tcl-primary);
	outline-offset: 2px;
}

.tcl-check input:checked + .tcl-box {
	background: var(--tcl-primary);
	border-color: var(--tcl-primary);
}

.tcl-check input:checked + .tcl-box::after {
	content: "";
	position: absolute;
	left: 6.5px;
	top: 2.5px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(43deg);
}

.tcl-check-label {
	flex: 1;
}

.tcl-count {
	font-size: 14px !important;
	color: #93A3B3 !important;
}

.tcl-sidebar-foot {
	padding-top: 20px;
}

.tcl-clear-btn {
	display: block;
	width: 100%;
	padding: 13px 16px !important;
	border: 1.5px solid var(--tcl-primary) !important;
	border-radius: 10px;
	background: #fff !important;
	color: var(--tcl-primary) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	transition: background .15s ease;
}

.tcl-clear-btn:hover {
	background: var(--tcl-primary-soft) !important;
}

/* ==========================================================================
   HEADER + TOOLBAR
   ========================================================================== */

.tcl-header {
	margin-bottom: 26px;
}

.tcl-eyebrow {
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: .1em !important;
	color: var(--tcl-primary) !important;
	margin-bottom: 10px !important;
}

.tcl-title {
	font-size: 44px !important;
	font-weight: 700 !important;
	line-height: 1.12 !important;
	color: var(--tcl-ink) !important;
	margin-bottom: 14px !important;
}

.tcl-subtitle {
	font-size: 17px !important;
	line-height: 1.6 !important;
	color: var(--tcl-body) !important;
	max-width: 620px;
}

.tcl-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.tcl-showing {
	font-size: 16px !important;
	color: var(--tcl-body) !important;
}

.tcl-showing strong {
	color: var(--tcl-ink) !important;
	font-weight: 700 !important;
}

.tcl-sort {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tcl-sort label {
	font-size: 15px !important;
	color: var(--tcl-body) !important;
	white-space: nowrap;
}

.tcl-sort-select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 190px;
	padding: 12px 42px 12px 16px !important;
	border: 1px solid var(--tcl-line) !important;
	border-radius: 10px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%2314202E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 18px 18px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--tcl-ink) !important;
	line-height: 1.3 !important;
	height: auto !important;
	box-shadow: none !important;
}

/* ==========================================================================
   GRID + CARDS
   ========================================================================== */

.tcl-grid {
	display: grid;
	grid-template-columns: repeat(var(--tcl-cols), minmax(0, 1fr));
	gap: 26px;
	align-items: stretch;
}

.tcl-state {
	grid-column: 1 / -1;
	padding: 80px 20px;
	text-align: center;
	font-size: 16px !important;
	color: var(--tcl-body) !important;
}

.tcl-card {
	display: flex !important;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tcl-line);
	border-radius: var(--tcl-radius);
	overflow: hidden;
	transition: box-shadow .22s ease, transform .22s ease;
}

.tcl-card:hover {
	box-shadow: 0 14px 34px rgba(20, 32, 46, .10);
	transform: translateY(-3px);
}

/* --- Media --- */

.tcl-card-media {
	position: relative;
	background: #F1F5F8;
}

.tcl-media-link {
	display: block;
	aspect-ratio: 16 / 11;
}

.tcl-thumb {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 0 !important;
	margin: 0 !important;
}

.tcl-thumb-empty {
	background: linear-gradient(135deg, #E9EFF3, #DCE6EC);
}

.tcl-badge {
	position: absolute;
	top: 14px;
	left: 0;
	z-index: 2;
	padding: 7px 14px !important;
	background: var(--tcl-primary);
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: .08em !important;
	border-radius: 0 6px 6px 0;
}

.tcl-wishlist {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 38px !important;
	height: 38px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .92) !important;
	color: var(--tcl-ink) !important;
	backdrop-filter: blur(4px);
	transition: color .15s ease, background .15s ease;
}

.tcl-wishlist svg {
	width: 20px;
	height: 20px;
}

.tcl-wishlist:hover {
	background: #fff !important;
	color: #E11D48 !important;
}

.tcl-wishlist.is-active {
	color: #E11D48 !important;
}

.tcl-wishlist.is-active svg path {
	fill: #E11D48;
}

/* --- Body --- */

.tcl-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px !important;
}

.tcl-card-tags {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.tcl-tag {
	padding: 5px 11px !important;
	border-radius: 6px;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: .07em !important;
	line-height: 1.3 !important;
}

.tcl-tag--teal {
	background: var(--tcl-primary-soft);
	color: var(--tcl-primary-dark) !important;
}

.tcl-tag--amber {
	background: var(--tcl-amber-bg);
	color: var(--tcl-amber-fg) !important;
}

.tcl-tag--purple {
	background: var(--tcl-purple-bg);
	color: var(--tcl-purple-fg) !important;
}

.tcl-format {
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--tcl-body) !important;
}

.tcl-dot {
	color: #B8C4D0 !important;
}

.tcl-card-title {
	font-size: 21px !important;
	font-weight: 700 !important;
	line-height: 1.28 !important;
	margin-bottom: 10px !important;
}

.tcl-card-title a {
	color: var(--tcl-ink) !important;
	transition: color .15s ease;
}

.tcl-card-title a:hover {
	color: var(--tcl-primary) !important;
}

.tcl-card-excerpt {
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: var(--tcl-body) !important;
	margin-bottom: 18px !important;
}

.tcl-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-bottom: 18px !important;
}

.tcl-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--tcl-ink) !important;
}

.tcl-meta-item svg {
	width: 17px;
	height: 17px;
	color: var(--tcl-primary);
}

/* --- Instructor --- */

.tcl-card-instructor {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--tcl-line);
}

.tcl-card-instructor img,
.tcl-avatar {
	width: 38px !important;
	height: 38px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex: 0 0 38px;
	margin: 0 !important;
}

.tcl-instructor-text {
	display: flex !important;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.tcl-instructor-label {
	font-size: 12px !important;
	color: #8D9CAB !important;
	line-height: 1.3 !important;
}

.tcl-instructor-name {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--tcl-ink) !important;
	line-height: 1.3 !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- Footer --- */

.tcl-card-footer {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--tcl-line);
}

.tcl-price-label {
	display: block !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--tcl-primary) !important;
	margin-bottom: 4px !important;
}

.tcl-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.tcl-price-now {
	font-size: 28px !important;
	font-weight: 700 !important;
	color: var(--tcl-ink) !important;
	line-height: 1.1 !important;
}

.tcl-price-was {
	font-size: 17px !important;
	font-weight: 500 !important;
	color: #9AA8B6 !important;
	text-decoration: line-through !important;
}

.tcl-view-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	padding: 14px 20px !important;
	border-radius: 10px !important;
	background: var(--tcl-primary) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	transition: background .18s ease;
}

.tcl-view-btn:hover {
	background: var(--tcl-primary-dark) !important;
	color: #fff !important;
}

.tcl-view-btn svg {
	width: 16px;
	height: 16px;
}

.tcl-coming-soon {
	display: block !important;
	width: 100%;
	padding: 15px 16px !important;
	border-radius: 10px;
	text-align: center;
	font-size: 16px !important;
	font-weight: 700 !important;
	background: var(--tcl-primary-soft);
	color: var(--tcl-primary-dark) !important;
}

.tcl-coming-soon--amber {
	background: var(--tcl-amber-bg);
	color: var(--tcl-amber-fg) !important;
}

.tcl-coming-soon--purple {
	background: var(--tcl-purple-bg);
	color: var(--tcl-purple-fg) !important;
}

/* --- Load more --- */

.tcl-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.tcl-loadmore {
	padding: 14px 34px !important;
	border: 1.5px solid var(--tcl-primary) !important;
	border-radius: 10px;
	background: #fff !important;
	color: var(--tcl-primary) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	transition: background .15s ease;
}

.tcl-loadmore:hover {
	background: var(--tcl-primary-soft) !important;
}

.tcl-loadmore[hidden] {
	display: none !important;
}

/* --- Loading state --- */

.tcl-grid.is-loading {
	opacity: .45;
	pointer-events: none;
	transition: opacity .2s ease;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
	.tcl-grid { --tcl-cols: 2; }
}

@media (max-width: 991px) {
	.tcl-wrap {
		grid-template-columns: 1fr !important;
		gap: 28px !important;
	}
	.tcl-sidebar { position: static; }
	.tcl-title { font-size: 34px !important; }
}

@media (max-width: 640px) {
	.tcl-grid { --tcl-cols: 1; }
	.tcl-toolbar { flex-direction: column; align-items: flex-start; }
	.tcl-sort { width: 100%; }
	.tcl-sort-select { flex: 1; min-width: 0; }
	.tcl-title { font-size: 28px !important; }
}
