/* ==========================================================================
   Lady Hawk × Tutor LMS 4.x
   Tutor templates are never overridden — these rules restyle Tutor's own
   markup so plugin updates keep working.
   A. Shared · B. Course archive · C. Course cards · D. Single course
   E. Dashboard, learning area & login (4.x core UI) · F. Cart & checkout
   G. WooCommerce
   ========================================================================== */

/* A. Shared --------------------------------------------------------------- */
.lh-theme .tutor-wrap,
.lh-theme .tutor-course-details-page,
.lh-theme .tutor-modal,
.lh-theme .tutor-cart-page,
.lh-theme .tutor-checkout-page {
	font-family: var(--lh-font-body);
}

.lh-theme .tutor-wrap :where(h1, h2, h3, h4, h5, h6),
.lh-theme .tutor-course-details-page :where(h1, h2, h3, h4, h5, h6),
.lh-theme .tutor-modal :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--lh-font-display);
	letter-spacing: -.015em;
}

.lh-theme .tutor-container {
	width: 100%;
	max-width: calc(var(--lh-container) + var(--lh-gutter) * 2);
	padding-inline: var(--lh-gutter);
}

/* Buttons (legacy UI) */
.lh-tutor-archive .tutor-btn,
.lh-tutor-single .tutor-btn,
.lh-theme .tutor-modal .tutor-btn,
.lh-theme .tutor-cart-page .tutor-btn,
.lh-theme .tutor-checkout-page .tutor-btn {
	border-radius: var(--lh-pill);
	font-family: var(--lh-font-display);
	font-weight: 600;
	letter-spacing: 0;
	transition: transform .25s var(--lh-ease), box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.lh-tutor-archive .tutor-btn-primary,
.lh-tutor-single .tutor-btn-primary,
.lh-theme .tutor-modal .tutor-btn-primary,
.lh-theme .tutor-cart-page .tutor-btn-primary,
.lh-theme .tutor-checkout-page .tutor-btn-primary {
	border-color: transparent;
	background: var(--lh-grad);
	background-origin: border-box;
	box-shadow: 0 10px 22px -12px rgba(var(--lh-primary-rgb), .75);
	color: #fff;
}

.lh-tutor-archive .tutor-btn-primary:hover,
.lh-tutor-single .tutor-btn-primary:hover,
.lh-theme .tutor-modal .tutor-btn-primary:hover,
.lh-theme .tutor-cart-page .tutor-btn-primary:hover,
.lh-theme .tutor-checkout-page .tutor-btn-primary:hover {
	border-color: transparent;
	background: var(--lh-grad);
	background-origin: border-box;
	box-shadow: 0 16px 28px -12px rgba(var(--lh-secondary-rgb), .75);
	color: #fff;
	transform: translateY(-2px);
}

.lh-theme .tutor-btn-outline-primary:hover {
	transform: translateY(-2px);
}

.lh-theme .tutor-form-control,
.lh-theme .tutor-form-select {
	border-radius: var(--lh-r-sm);
}

.lh-theme .tutor-modal-content,
.lh-theme .tutor-modal-window .tutor-modal-content {
	border-radius: var(--lh-r-lg);
}

/* B. Course archive ------------------------------------------------------- */
.lh-tutor-archive .tutor-courses-wrap {
	padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 104px);
}

.lh-tutor-archive .tutor-course-filter,
.lh-tutor-archive [tutor-course-filter] {
	font-family: var(--lh-font-body);
}

.lh-tutor-archive .tutor-widget-title,
.lh-tutor-archive .tutor-list-title {
	color: var(--lh-heading);
	font-family: var(--lh-font-display);
	font-weight: 600;
}

/* Category filter: subcategories are tucked under their parent (main.js nests
   them) and only show after the arrow is clicked, or while one is ticked. */
.lh-theme .tutor-widget-course-categories .lh-has-sub {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 8px;
}

.lh-theme .tutor-widget-course-categories .lh-filter-more {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--lh-muted);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.lh-theme .tutor-widget-course-categories .lh-filter-more:hover {
	background: var(--lh-primary-soft);
	color: var(--lh-primary);
}

.lh-theme .tutor-widget-course-categories .lh-filter-more svg {
	transition: transform .2s ease;
}

.lh-theme .tutor-widget-course-categories .lh-filter-sub {
	display: none;
	grid-column: 1 / -1;
	margin: 8px 0 2px 12px;
	padding: 0 0 0 14px;
	border-left: 2px solid var(--lh-line);
	list-style: none;
}

.lh-theme .tutor-widget-course-categories .lh-has-sub.is-open > .lh-filter-sub {
	display: block;
}

.lh-theme .tutor-widget-course-categories .lh-has-sub.is-open > .lh-filter-more svg {
	transform: rotate(180deg);
}

.lh-tutor-archive .tutor-pagination {
	margin-top: clamp(28px, 4vw, 48px);
	border: 0;
}

.lh-tutor-archive .tutor-pagination-numbers .page-numbers {
	border-radius: 50%;
}

/* C. Course cards (Tutor loop) -------------------------------------------- */
.lh-theme .tutor-card.tutor-course-card {
	border: 0;
	border-radius: var(--lh-r-lg);
	background: #fff;
	box-shadow: var(--lh-shadow-sm), inset 0 0 0 1px var(--lh-line);
	overflow: hidden;
	transition: transform .35s var(--lh-ease), box-shadow .35s ease;
}

.lh-theme .tutor-card.tutor-course-card:hover {
	box-shadow: var(--lh-shadow);
	transform: translateY(-6px);
}

.lh-theme .tutor-course-card .tutor-course-thumbnail {
	margin: 10px 10px 0;
	border-radius: var(--lh-r);
	overflow: hidden;
}

.lh-theme .tutor-course-card .tutor-course-thumbnail img {
	border-radius: 0;
	transition: transform .6s var(--lh-ease);
}

.lh-theme .tutor-course-card:hover .tutor-course-thumbnail img {
	transform: scale(1.06);
}

.lh-theme .tutor-course-card .tutor-course-bookmark {
	top: 22px;
	right: 22px;
}

.lh-theme .tutor-course-card .tutor-course-bookmark .tutor-iconic-btn {
	background: rgba(255, 255, 255, .94);
	box-shadow: var(--lh-shadow-sm);
	color: var(--lh-primary);
}

.lh-theme .tutor-course-card .tutor-card-body {
	padding: 20px 22px 16px;
}

.lh-theme .tutor-course-card .tutor-course-name {
	font-family: var(--lh-font-display);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.35;
}

.lh-theme .tutor-course-card .tutor-course-name a {
	color: var(--lh-heading);
}

.lh-theme .tutor-course-card .tutor-course-name a:hover {
	color: var(--lh-primary);
}

.lh-theme .tutor-course-card .tutor-meta {
	color: var(--lh-body);
	font-size: .875rem;
}

.lh-theme .tutor-course-card .tutor-meta a {
	color: var(--lh-heading);
	font-weight: 600;
}

.lh-theme .tutor-course-card .tutor-meta a:hover {
	color: var(--lh-primary);
}

.lh-theme .tutor-course-card .tutor-card-footer {
	padding: 16px 22px 22px;
	border-top: 1px solid var(--lh-line);
	background: transparent;
}

.lh-theme .tutor-course-card .tutor-card-footer .tutor-btn {
	border-radius: var(--lh-pill);
	font-family: var(--lh-font-display);
	font-weight: 600;
}

.lh-theme .tutor-course-card .tutor-course-list-btn .tutor-btn-outline-primary {
	border-color: transparent;
	background: var(--lh-tint);
	color: var(--lh-heading);
}

.lh-theme .tutor-course-card:hover .tutor-course-list-btn .tutor-btn-outline-primary,
.lh-theme .tutor-course-card .tutor-course-list-btn .tutor-btn-outline-primary:hover {
	border-color: transparent;
	background: var(--lh-primary);
	color: #fff;
}

.lh-theme .tutor-course-card .tutor-avatar {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--lh-line);
}

/* D. Single course -------------------------------------------------------- */
.lh-course-crumbs {
	padding-block: clamp(20px, 3vw, 32px) 0;
	background: linear-gradient(180deg, #f5f6ff, #fff);
}

.lh-course-crumbs .lh-crumbs {
	margin-bottom: 0;
}

.lh-tutor-single .tutor-course-details-page {
	padding-bottom: clamp(56px, 7vw, 104px);
}

.lh-tutor-single .tutor-course-details-title {
	color: var(--lh-ink);
	font-family: var(--lh-font-display);
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -.03em;
}

.lh-tutor-single .tutor-course-thumbnail img,
.lh-tutor-single .tutor-course-details-page .tutor-video-player,
.lh-tutor-single .tutor-course-details-page .tutor-ratio > iframe,
.lh-tutor-single .tutor-course-details-page .plyr {
	border-radius: var(--lh-r-lg);
	overflow: hidden;
}

.lh-tutor-single .tutor-sidebar-card,
.lh-tutor-single .tutor-single-course-sidebar .tutor-card {
	border: 0;
	border-radius: var(--lh-r-lg);
	box-shadow: var(--lh-shadow), inset 0 0 0 1px var(--lh-line);
	overflow: hidden;
}

.lh-tutor-single .tutor-single-course-sidebar .tutor-card-body {
	background: #fff;
}

.lh-tutor-single .tutor-single-course-sidebar .tutor-card-footer {
	background: var(--lh-tint);
}

.lh-tutor-single .tutor-course-details-widget,
.lh-tutor-single .tutor-course-details-instructors {
	border-radius: var(--lh-r);
}

.lh-tutor-single .tutor-course-details-tab .tutor-nav {
	gap: 4px;
}

.lh-tutor-single .tutor-nav-link {
	font-family: var(--lh-font-display);
	font-weight: 600;
}

.lh-tutor-single .tutor-accordion-item {
	border-color: var(--lh-line);
	border-radius: var(--lh-r);
	overflow: hidden;
}

.lh-tutor-single .tutor-accordion-item + .tutor-accordion-item {
	margin-top: 12px;
}

.lh-tutor-single .tutor-accordion-item-header {
	font-family: var(--lh-font-display);
	font-weight: 600;
}

.lh-tutor-single .tutor-course-details-content :where(h2, h3, h4),
.lh-tutor-single .tutor-fs-6.tutor-fw-medium.tutor-color-black {
	font-family: var(--lh-font-display);
}

.lh-tutor-single .tutor-course-details-content ul {
	padding-left: 1.2em;
}

.lh-tutor-single .tutor-course-details-content li::marker {
	color: var(--lh-primary);
}

/* E. Dashboard, learning area & login (Tutor 4.x core UI) ----------------- */
/* Colours and fonts arrive through the --tutor-brand-* and
   --tutor-font-family-* tokens printed by inc/tutor.php. */
.lh-theme .tutor-dashboard-layout,
.lh-theme .tutor-learning-area,
.lh-theme .tutor-account-page-wrapper,
.lh-theme .tutor-login-wrap,
.lh-theme .tutor-login-form-wrapper {
	font-family: var(--tutor-font-family-body, var(--lh-font-body));
}

.lh-theme .tutor-dashboard-layout :where(h1, h2, h3, h4, h5, h6),
.lh-theme .tutor-learning-area :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--tutor-font-family-heading, var(--lh-font-display));
	letter-spacing: -.01em;
	text-wrap: initial;
}

/* Tutor's core stylesheet resets <body>; keep the theme chrome intact when
   the site header/footer are enabled for the dashboard or learning area. */
.lh-theme .lh-header,
.lh-theme .lh-footer,
.lh-theme .lh-drawer {
	box-sizing: border-box;
	letter-spacing: normal;
	text-transform: none;
}

.lh-theme .lh-header *,
.lh-theme .lh-footer *,
.lh-theme .lh-drawer * {
	box-sizing: border-box;
}

.lh-theme .lh-header a,
.lh-theme .lh-footer a,
.lh-theme .lh-drawer a {
	text-decoration: none;
}

.lh-tutor-dashboard .lh-totop,
.lh-tutor-learning .lh-totop {
	display: none;
}

/* Login / registration rendered inside the theme */
.lh-theme .tutor-login-wrap,
.lh-theme #tutor-registration-wrap {
	margin-block: clamp(32px, 6vw, 80px);
	border-radius: var(--lh-r-lg);
}

.lh-theme .tutor-login-wrap .tutor-btn,
.lh-theme #tutor-registration-wrap .tutor-btn {
	border-radius: var(--lh-pill);
	font-family: var(--lh-font-display);
	font-weight: 600;
}

/* Lady Hawk rules (Customize → Lady Hawk → Tutor LMS). The PHP in
   inc/tutor-tweaks.php removes these parts at the source; the rules below
   only tidy what is left and act as a safety net. */

/* Author */
.lh-hide-author .tutor-course-details-info > div:has(> a > .tutor-avatar),
.lh-hide-author .tutor-course-details-instructors {
	display: none;
}

/* "Free" */
.lh-hide-free .tutor-course-single-btn-group .tutor-enroll-course-button {
	margin-top: 0;
}

/* Earnings & withdrawals */
.lh-hide-earnings [data-section-id="overview_chart"],
.lh-hide-earnings .tutor-popover-menu-item[data-id="overview_chart"],
.lh-hide-earnings [data-section-id="current_stats"] .tutor-flex-1:not(:has(.tutor-stat-card)),
.lh-hide-earnings .tutor-dashboard-home-course > div:last-child > div:first-child:not(:only-child) {
	display: none;
}

/* Learner / instructor switch */
.lh-hide-switch div:has(> .tutor-profile-switch-button) {
	display: none;
}

/* F. Cart & checkout (Tutor native e-commerce) ---------------------------- */
.lh-theme .tutor-cart-page,
.lh-theme .tutor-checkout-page {
	padding-block: clamp(32px, 5vw, 72px);
}

.lh-theme .tutor-cart-page .tutor-cart-course-list,
.lh-theme .tutor-cart-page .tutor-cart-summery,
.lh-theme .tutor-checkout-page .tutor-checkout-billing,
.lh-theme .tutor-checkout-page .tutor-checkout-details {
	border-radius: var(--lh-r-lg);
}

/* G. WooCommerce ---------------------------------------------------------- */
.lh-theme.woocommerce a.button,
.lh-theme.woocommerce button.button,
.lh-theme.woocommerce input.button,
.lh-theme.woocommerce #respond input#submit,
.lh-theme .woocommerce a.button,
.lh-theme .woocommerce button.button,
.lh-theme .woocommerce input.button,
.lh-theme .wc-block-components-button:not(.is-link) {
	padding: 14px 26px;
	border-radius: var(--lh-pill);
	background: var(--lh-primary);
	color: #fff;
	font-family: var(--lh-font-display);
	font-weight: 600;
	transition: background-color .2s ease, transform .25s var(--lh-ease);
}

.lh-theme.woocommerce a.button:hover,
.lh-theme.woocommerce button.button:hover,
.lh-theme.woocommerce input.button:hover,
.lh-theme .woocommerce a.button:hover,
.lh-theme .woocommerce button.button:hover,
.lh-theme .woocommerce input.button:hover,
.lh-theme .wc-block-components-button:not(.is-link):hover {
	background: var(--lh-primary-dark);
	color: #fff;
	transform: translateY(-2px);
}

.lh-theme.woocommerce a.button.alt,
.lh-theme.woocommerce button.button.alt,
.lh-theme .woocommerce a.button.alt,
.lh-theme .woocommerce button.button.alt,
.lh-theme .woocommerce #place_order {
	background: var(--lh-grad);
}

.lh-theme .woocommerce-message,
.lh-theme .woocommerce-info,
.lh-theme .woocommerce-error {
	border-top-color: var(--lh-primary);
	border-radius: var(--lh-r-sm);
	background: var(--lh-tint);
}

.lh-theme .woocommerce-message::before,
.lh-theme .woocommerce-info::before {
	color: var(--lh-primary);
}

.lh-theme.woocommerce ul.products li.product,
.lh-theme .woocommerce ul.products li.product {
	padding: 12px 12px 20px;
	border-radius: var(--lh-r-lg);
	background: #fff;
	box-shadow: var(--lh-shadow-sm), inset 0 0 0 1px var(--lh-line);
}

.lh-theme.woocommerce ul.products li.product img,
.lh-theme .woocommerce ul.products li.product img {
	border-radius: var(--lh-r);
}

.lh-theme .woocommerce .price,
.lh-theme.woocommerce div.product p.price {
	color: var(--lh-ink);
	font-family: var(--lh-font-display);
	font-weight: 700;
}

.lh-theme .woocommerce form .form-row input.input-text,
.lh-theme .woocommerce form .form-row textarea,
.lh-theme .woocommerce form .form-row select {
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--lh-line);
	border-radius: var(--lh-r-sm);
}

.lh-theme .woocommerce table.shop_table {
	border-color: var(--lh-line);
	border-radius: var(--lh-r);
}

@media (max-width: 767px) {
	.lh-tutor-single .tutor-single-course-sidebar {
		margin-top: 24px;
	}
}
