/* =====================================================================
 * Tutor LMS — Kenya Geographic visual overrides.
 *
 * Loaded via inc/learnquest-tutor.php on any page that emits Tutor markup
 * (course archive, single course, lesson, cart, checkout, dashboard).
 *
 * Scope: every rule is namespaced by a Tutor wrapper class so these
 * overrides never leak into the rest of the site (Traveler service pages,
 * Travel Duka shop, WooCommerce cart/checkout, etc.).
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. Course archive — bottom breathing room
 *
 * On kenyageographic.com the course archive lives at a WP *page* with slug
 * `learnquest-courses` (set as Tutor's "Course Archive Page"). That route
 * does NOT load tutor/archive-course.php — Tutor's `convert_static_page_to_template`
 * filter renders `archive-course-init.php` directly into the page content
 * instead (see classes/Template.php). The post-type archive at /courses/?…
 * IS the file that loads archive-course.php, and few sites expose it.
 *
 * So target the classes archive-course-init emits on its outer wrapper:
 * `tutor-wrap tutor-wrap-parent tutor-courses-wrap tutor-container course-archive-page`.
 * Spacing fix below works regardless of which route renders the archive.
 * --------------------------------------------------------------------- */
/* The loop wrapper from archive-course-init.php is
 *   <div class="tutor-wrap tutor-wrap-parent tutor-courses-wrap tutor-container course-archive-page">
 * Combined with the outer `.container.learnquest-courses` from
 * tutor/archive-course.php (our override), that's TWO containers
 * nested (Traveler's + Tutor's), each with their own max-width and
 * padding. The double-padding pushed everything left and squashed
 * the course cards. We collapse the inner container so the outer
 * controls width, and centre the outer at 1280px so cards have room. */
.tutor-courses-wrap.course-archive-page,
.tutor-courses-wrap.course-archive-page.tutor-container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

/* Outer container — Traveler's `.container` from our archive-course.php
 * override. Width and padding match the MV /travel-duka/ shop archive
 * EXACTLY (1170px max, 15px symmetric padding — see style.css
 * .multivendorx-store-wrapper rule). The earlier 30px padding here
 * shaved ~15px off each side of the inner content area vs. TravelDuka,
 * which compressed the right-hand 9-col course grid: cards came out
 * ~7-8px narrower per cell, which on a 3-up row was enough to force
 * "Buy Now" onto two lines. Bringing padding into parity restores the
 * full ~1140px inner content width and gives each card enough room. */
body.learnquest-page .container.learnquest-courses,
body.learnquest-page .container.learnquest-single-course,
body.learnquest-page .container.learnquest-lesson,
body.learnquest-page #st-content-wrapper > .container,
body.learnquest-page .st-blog {
	max-width: 1170px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100% !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* Reset the negative row margins so they don't poke past the
 * container padding. */
.tutor-courses-wrap.course-archive-page > .tutor-row.tutor-gx-xl-5 {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Archive-route geometry (2026-08-02): production serves /learnquest-courses/
 * as the courses POST-TYPE ARCHIVE (staging used the static-page route, whose
 * wrappers the rules above were written for). On this route Tutor's
 * .tutor-container caps the wrap at 1140px INSIDE our 1170px container,
 * losing the card width the staging QA settled on. Let the wrap bleed over
 * the container padding — the same bootstrap-row bleed the vertical archive
 * grids use (.st-hotel-result row) — and tighten the grid gap: cards measure
 * ~273px, matching the vertical-archive card content width (~270px).
 * Values verified live in-browser 2026-08-02. */
body.learnquest-page .tutor-courses-wrap.course-archive-page {
	max-width: calc(100% + 30px) !important;
	width: calc(100% + 30px) !important;
	margin-left: -15px !important;
	margin-right: -15px !important;
}
body.learnquest-page .tutor-course-list.tutor-grid-3 {
	gap: 24px !important;
}

/* Now the sidebar / grid split. Keep Tutor's tutor-col-3 / tutor-col-xl-9
 * proportions but reduce the sidebar column padding so cards get the
 * extra breathing room. */
.tutor-courses-wrap.course-archive-page > .tutor-row > .tutor-col-3,
.tutor-courses-wrap.course-archive-page > .tutor-row > .tutor-col-xl-3 {
	padding-left: 0 !important;
	padding-right: 12px !important;
}

.tutor-courses-wrap.course-archive-page > .tutor-row > .tutor-col-xl-9 {
	padding-left: 12px !important;
	padding-right: 0 !important;
}

/* 4.2.78: below Tutor's xl breakpoint the filter sidebar leaves the row and the grid takes the
 * whole width, and the container is the whole screen. The bleed above then ran the cards to the
 * right edge of the screen (12px in on the left, none on the right). Measured on production at
 * 414px and 1024px. Here the wrap stays inside the container's 15px gutters on both sides. */
@media (max-width: 1199px) {
	body.learnquest-page .tutor-courses-wrap.course-archive-page {
		max-width: 100% !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.tutor-courses-wrap.course-archive-page > .tutor-row > .tutor-col-xl-9 {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* Frontend dashboard — clear the theme's overlay header (2026-08-02).
 * Traveler's st-header-2 nav overlays the top of the page (built for
 * hero-led pages), so the Tutor dashboard's profile strip ("Hello, <name>"
 * avatar row) rendered underneath it on /learnquest-dashboard/* screens.
 * Tutor stamps `tutor-screen-frontend-dashboard` on <body> for every
 * dashboard screen incl. endpoints (settings, orders, …) — scope on that.
 * 120px verified live in-browser against the desktop header stack; the
 * mobile header is shorter. */
body.tutor-screen-frontend-dashboard .tutor-dashboard {
	padding-top: 120px !important;
}
@media (max-width: 767px) {
	body.tutor-screen-frontend-dashboard .tutor-dashboard {
		padding-top: 90px !important;
	}
}

/* Bottom gap — kill every wrapper's bottom padding/margin between the
 * end of the course content and the start of the email-subscription
 * hero, then set ONE deliberate gap on the outermost container. Total
 * gap = 32px. Anything bigger has felt cavernous to the user, anything
 * smaller has fused with the hero.
 *
 * The single course page route (tutor/single-course.php override)
 * doesn't use Traveler's #st-content-wrapper — it uses our own
 * .learnquest-single-course-content / .learnquest-single-course — so
 * we zero those too. */
body.learnquest-page #st-content-wrapper,
body.learnquest-page #st-content-wrapper.st-page-default,
body.learnquest-page .learnquest-single-course-content,
body.learnquest-page .learnquest-single-course,
body.learnquest-page .learnquest-lesson-content,
body.learnquest-page .learnquest-lesson,
body.learnquest-page .learnquest-courses,
body.learnquest-page .tutor-course-details-page,
body.learnquest-page .tutor-course-top-info,
body.learnquest-page .tutor-full-width-course-top,
body.learnquest-page .tutor-page-wrap,
body.learnquest-page .tutor-wrap-parent,
body.learnquest-page #st-content-wrapper > .container,
body.learnquest-page #st-content-wrapper .st-blog,
body.learnquest-page #primary,
body.learnquest-page main#main {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* The one deliberate gap — applied directly on <body> so it can't be
 * overridden by any nested theme/plugin wrapper rule. Pushes the
 * email-subscription hero down so it can't touch the page content card
 * regardless of which outer wrapper actually rendered on this route. */
body.learnquest-page,
body.learnquest-page.single-courses,
body.learnquest-page.post-type-archive-courses {
	padding-bottom: 80px !important;
}

/* Newsletter / subscription VC row sits in the global footer area on
 * the learnquest archive + single course pages. Its WPBakery-generated
 * row class is `vc_custom_1673476410453` (confirmed by the user via
 * browser inspector — see screenshot 2026-05-25). The default inline
 * `margin-top` baked into that row by VC is too small once our Tutor
 * page card has its own bottom padding, so the newsletter hero ends up
 * crowding the course grid. Pushing margin-top to 100px on this row
 * gives the breathing room the user asked for.
 *
 * Scoped to body.learnquest-page so the override only affects Tutor
 * routes — the same VC row may render elsewhere on the site with the
 * tighter spacing it was originally designed for.
 *
 * Caveat: WPBakery regenerates the vc_custom_* class number when the
 * row is re-saved in the editor. If this rule ever stops working,
 * re-inspect the newsletter row and update the class number below.
 *
 * 2026-08-02: the caveat came true in a new way — the footer's Bakery→
 * Blocks conversion turned the newsletter row into a .wp-block-group that
 * KEEPS the vc_custom_1673476410453 class but is no longer a .vc_row, so
 * the selector went dead and the hero crowded the grid again. Match on
 * the class alone (covers both the old row and the converted group). */
body.learnquest-page .vc_custom_1673476410453 {
	margin-top: 100px !important;
}

body.learnquest-page #st-content-wrapper,
body.learnquest-page .learnquest-single-course-content {
	margin-bottom: 0 !important;
}

/* Featured image / video thumbnail card at top of left main column.
 * Explicit styling so the image fills the card width, has a small
 * radius, and sits cleanly above the Course Info / Reviews tabs. */
.learnquest-course-thumbnail,
.tutor-course-details-page .tutor-course-thumbnail {
	margin-bottom: 24px !important;
}

.learnquest-course-thumbnail img,
.tutor-course-details-page .tutor-course-thumbnail img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
	border-radius: 8px;
	object-fit: cover;
}

/* Also kill any bottom margin/padding that Tutor's tutor-course-details-tab
 * wrapper sometimes adds inside the main column card (this is where the
 * Course Content accordion lives). Combined with the accordion's
 * margin-bottom: 16px and the card's 24px padding, that gives a
 * predictable 40px floor inside the card. */
body.learnquest-page .tutor-course-details-tab,
body.learnquest-page .tutor-tab-item {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.tutor-courses-wrap.course-archive-page .tutor-pagination-wrapper-replaceable {
	padding-bottom: 0;
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * 1b. Courses archive — left filter sidebar boxed like MV widgets
 *
 * Live HTML shows the sidebar contains FOUR Tutor widgets, not one:
 *   .tutor-widget.tutor-widget-search          (search box)
 *   .tutor-widget.tutor-widget-course-categories
 *   .tutor-widget.tutor-widget-course-levels
 *   .tutor-widget.tutor-widget-course-filter   (clear button)
 *
 * The earlier rule scoped to `.tutor-widget-course-filter` only, so the
 * box treatment landed on the clear-button card and missed the three
 * filter cards above it. Now scoped to every `.tutor-widget` inside the
 * filter container.
 * --------------------------------------------------------------------- */
.tutor-courses-wrap.course-archive-page .tutor-course-filter-container {
	padding-right: 24px;
}

.tutor-courses-wrap.course-archive-page .tutor-course-filter-container .tutor-widget-course-categories,
.tutor-courses-wrap.course-archive-page .tutor-course-filter-container .tutor-widget-course-levels,
.tutor-courses-wrap.course-archive-page .tutor-course-filter-container .tutor-widget-course-tags,
.tutor-courses-wrap.course-archive-page .tutor-course-filter-container .tutor-widget-course-price {
	background: #fff !important;
	border: 1px solid #e6e6e6 !important;
	border-radius: 6px !important;
	padding: 16px !important;
	margin-bottom: 18px !important;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.03 ) !important;
}

/* The Search widget is NOT boxed — per user feedback, it should sit
 * as a plain input above the filter cards, not in its own card. */
.tutor-courses-wrap.course-archive-page .tutor-widget-search {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-bottom: 18px !important;
}

/* Clear All Filters — was a standalone widget card in the plugin;
 * tutor/course-filter/filters.php override moves it INSIDE the Level
 * widget content as a footer action row, in a .learnquest-clear-filters
 * wrapper. Style as a divider-topped action area. */
.learnquest-clear-filters {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #ececec;
	text-align: center;
}

.learnquest-clear-filters .tutor-btn {
	font-size: 13px;
	font-weight: 600;
}

/* The first widget needs extra top space — search input was rendering
 * at the very top of the sidebar where the sticky dark header overlay
 * crossed it. Add a comfortable padding-top so the search field sits
 * cleanly inside the visible viewport on initial load. */
.tutor-courses-wrap.course-archive-page .tutor-course-filter {
	padding-top: 16px;
}

/* Ensure the search field stacking context is above the header so any
 * autocomplete / dropdown that pops up won't be clipped by it. Header
 * z-index in Traveler is typically 100-200; we sit higher. */
.tutor-courses-wrap.course-archive-page .tutor-widget-search,
.tutor-courses-wrap.course-archive-page .tutor-widget-search .tutor-form-wrap {
	position: relative;
	z-index: 1000;
}

/* Reset Tutor's tutor-mt-48 / tutor-mt-32 utility offsets on the widgets
 * — we control the inter-card spacing via `margin-bottom: 18px` above. */
.tutor-courses-wrap.course-archive-page .tutor-course-filter .tutor-widget.tutor-mt-48,
.tutor-courses-wrap.course-archive-page .tutor-course-filter .tutor-widget.tutor-mt-32 {
	margin-top: 0 !important;
}

/* Widget titles (PRODUCT CATEGORIES / LEVEL etc.) — uppercase, bold,
 * underlined, matching the MV reference. */
.tutor-courses-wrap.course-archive-page .tutor-course-filter-container .tutor-widget-title,
.tutor-courses-wrap.course-archive-page .tutor-course-filter-container .tutor-widget h3,
.tutor-courses-wrap.course-archive-page .tutor-course-filter-container .tutor-widget h4 {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #222 !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 12px !important;
	padding-bottom: 10px !important;
	border-bottom: 1px solid #ececec !important;
}

/* Checkbox / radio rows inside each filter card. */
.tutor-courses-wrap.course-archive-page .tutor-course-filter-container label {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 6px 0 !important;
	font-size: 14px !important;
	color: #444 !important;
	margin: 0 !important;
}

.tutor-courses-wrap.course-archive-page .tutor-course-filter-container label:hover {
	color: var(--main-color, #b33636) !important;
}

/* Search input field — full-width, light border, visible on white card */
.tutor-courses-wrap.course-archive-page .tutor-widget-search .tutor-form-wrap {
	position: relative;
}

.tutor-courses-wrap.course-archive-page .tutor-widget-search input[type="search"],
.tutor-courses-wrap.course-archive-page .tutor-widget-search input[type="Search"] {
	width: 100% !important;
	border: 1px solid #d4d4d4 !important;
	border-radius: 4px !important;
	padding: 8px 32px 8px 12px !important;
	font-size: 14px !important;
}

/* ---------------------------------------------------------------------
 * 1a. KG main header — restore nav visibility on Tutor pages
 *
 * Traveler's modern header (.menu-modern, #st-header, etc.) was built to
 * overlay a hero banner: its nav links are white on the assumption a
 * dark hero image sits behind it. On Tutor's course-archive page the
 * hero is absent (it's a plain WP page set as "Course Archive Page"
 * containing the [tutor_courses] shortcode), so the white nav text
 * renders against the white page background and becomes invisible.
 *
 * The `learnquest-page` body class is added by inc/learnquest-tutor.php
 * on every page Tutor renders content for. We scope here so we only
 * affect Tutor pages and don't disturb the rest of KG.
 *
 * Both common Traveler nav class hierarchies are covered (modern, new).
 * --------------------------------------------------------------------- */
/* Traveler's actual menu markup is:
 *   <nav id="st-main-menu">
 *     <ul id="main-menu" class="main-menu">
 *       <li><a>ABOUT US</a></li>
 *       …
 *     </ul>
 *   </nav>
 *
 * (Confirmed from themes/traveler/st_templates/layouts/modern/common/header/style-1.php
 *  line 138 & 147.) The previous override targeted .menu-modern / .header-modern
 * which don't exist in this build, so the nav stayed white.
 */
/* Live HTML confirms the real Traveler header markup is:
 *   <header id="header">
 *     <div class="header header-sticky-menu">
 *       <div class="header-left">…logo + <nav id="st-main-menu">…</div>
 *       <div class="header-right">…utility + Become a Partner…</div>
 *     </div>
 *   </header>
 * The earlier selectors targeted #st-header / .header-modern / etc. —
 * none of those exist in this Traveler build. We target the real classes
 * (#header, .header.header-sticky-menu, .header-left, .header-right). */
body.learnquest-page #header,
body.learnquest-page #header .header,
body.learnquest-page #header .header-sticky-menu,
body.learnquest-page #header .header.header-sticky-menu,
body.learnquest-page #header .header-left,
body.learnquest-page #header .header-right,
body.learnquest-page nav#st-main-menu {
	background-color: #2c2c2c !important;
}

/* All menu / utility links go WHITE against the dark band. */
body.learnquest-page #header a,
body.learnquest-page #header .header-left a,
body.learnquest-page #header .header-right a,
body.learnquest-page #header .header-right li > a,
body.learnquest-page #main-menu > li > a,
body.learnquest-page #main-menu li a,
body.learnquest-page nav#st-main-menu a {
	color: #fff !important;
}

/* "Become a Partner" CTA keeps its orange/red brand colour — exclude. */
body.learnquest-page #header a.btn-orange,
body.learnquest-page #header .btn-orange,
body.learnquest-page #header a[href*="become-a-safariquest-partner"] {
	color: #fff !important;
	background-color: #f96e26 !important;
}

/* Hover / active state: lighter grey (matches MV's #f3f3f3 / #fafafa). */
body.learnquest-page #header a:hover,
body.learnquest-page #main-menu li > a:hover,
body.learnquest-page #main-menu li.current-menu-item > a,
body.learnquest-page #main-menu li.current-menu-ancestor > a {
	color: #f3f3f3 !important;
}

/* Mega-menu and standard dropdowns — these are <ul class="sub-menu mega-menu">
 * UNDER each top-level item with children. They have a WHITE background
 * by design (Traveler's default), so when our rule above forced all
 * descendants of #main-menu to white text, the dropdown items became
 * white-on-white. Re-darken the text inside any dropdown / sub-menu. */
body.learnquest-page #main-menu .sub-menu,
body.learnquest-page #main-menu .sub-menu *,
body.learnquest-page #main-menu .mega-menu,
body.learnquest-page #main-menu .mega-menu *,
body.learnquest-page #main-menu .sub-menu a,
body.learnquest-page #main-menu .mega-menu a,
body.learnquest-page #main-menu .dropdown-menu-inner,
body.learnquest-page #main-menu .dropdown-menu-inner * {
	color: #2c2c2c !important;
}

body.learnquest-page #main-menu .sub-menu a:hover,
body.learnquest-page #main-menu .mega-menu a:hover,
body.learnquest-page #main-menu .dropdown-menu-inner a:hover {
	color: var(--main-color, #b33636) !important;
}

/* Add breathing room between the dark header and the start of the
 * course content. The earlier rule only covered Traveler's
 * #st-content-wrapper (which is the archive route's outer container);
 * the single course route uses our own .learnquest-single-course-content,
 * so we add it explicitly too. */
body.learnquest-page #st-content-wrapper,
body.learnquest-page .learnquest-single-course-content,
body.learnquest-page #primary.learnquest-single-course-content,
body.learnquest-page .learnquest-lesson-content,
body.learnquest-page .learnquest-courses {
	padding-top: 40px !important;
}

/* Search input + cart icon should also be light against dark. */
body.learnquest-page #header .field-icon svg,
body.learnquest-page #header .field-icon path,
body.learnquest-page #header .header-search input {
	color: #fff !important;
	stroke: #fff !important;
	background: transparent !important;
	border-color: rgba( 255, 255, 255, 0.2 ) !important;
}

/* ---------------------------------------------------------------------
 * 1c. Archive top toolbar — MV-style row above the grid
 *
 * Emitted by tutor/course-filter/course-archive-filter-bar.php override:
 *   <div class="learnquest-archive-toolbar">
 *     <div class="learnquest-archive-toolbar-count">Showing N courses</div>
 *     <form class="learnquest-archive-toolbar-sort">…select…</form>
 *     <form class="learnquest-archive-toolbar-search">…search…</form>
 *   </div>
 * Mirrors the TravelDuka shop toolbar (count | sort | search).
 * --------------------------------------------------------------------- */
.learnquest-archive-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	padding: 12px 0;
	border-bottom: 1px solid #ececec;
}

.learnquest-archive-toolbar-count {
	flex: 1 1 auto;
	font-size: 14px;
	color: #555;
	font-weight: 500;
}

.learnquest-archive-toolbar-sort {
	flex: 0 0 auto;
}

.learnquest-archive-toolbar-sort .tutor-form-control {
	border: 1px solid var(--main-color, #b33636) !important;
	color: var(--main-color, #b33636) !important;
	font-weight: 600 !important;
	background: #fff !important;
	padding: 6px 32px 6px 12px !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	min-width: 220px;
}

.learnquest-archive-toolbar-search {
	flex: 0 0 auto;
	display: flex;
	gap: 0;
	max-width: 320px;
}

.learnquest-archive-toolbar-search input[type="search"] {
	flex: 1 1 auto;
	border: 1px solid #d4d4d4 !important;
	border-right: 0 !important;
	border-radius: 4px 0 0 4px !important;
	padding: 6px 12px !important;
	font-size: 14px !important;
}

.learnquest-archive-toolbar-search-btn {
	background: var(--main-color, #b33636);
	color: #fff;
	border: 1px solid var(--main-color, #b33636);
	border-radius: 0 4px 4px 0;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 14px;
}

.learnquest-archive-toolbar-search-btn:hover {
	filter: brightness( 0.92 );
}

/* Tutor's default toolbar (the lone sort dropdown in a right-aligned
 * div) is replaced by the new layout above. Hide the default fallback
 * if the plugin's template still emits anything we don't want. */
.tutor-courses-wrap.course-archive-page > .tutor-row .tutor-course-filter[style*="text-align: right"] {
	display: none;
}

/* The Tutor archive's outer wrapper is rendered immediately under the
 * dark utility bar (top thin bar with phone/login/sign-up). Traveler's
 * main KG header (logo + ABOUT US/SOLUTIONS/DISCOVER/BLOG/BEST OF nav
 * menu + "Become a Partner" button) is positioned via absolute/sticky
 * positioning ON TOP OF that area. Without a top buffer, the Tutor
 * filter UI (Search + Category sidebar) overlaps the KG main header
 * vertically — the user saw the nav items rendered THROUGH the dark
 * utility bar, with the Tutor search bar competing with the main nav.
 *
 * 140px is a deliberate over-pad: Traveler's KG header height is ~110px
 * on desktop (logo line plus nav line), and the dark utility bar adds
 * another ~36px above it. Total ~146px before the archive content can
 * start cleanly. We round to 140px and let the visual margin handle the
 * rest. On mobile Traveler collapses to a hamburger, so a smaller
 * top-pad is plenty. */
.tutor-courses-wrap.course-archive-page {
	padding-top: 140px;
}

@media (max-width: 991px) {
	.tutor-courses-wrap.course-archive-page {
		padding-top: 80px;
	}
}

/* ---------------------------------------------------------------------
 * 2. Lesson page typography — fix barely-visible fonts
 *
 * The lesson body wrapper is rendered by templates/single/lesson/parts/overview.php:
 *
 *   <div class="tutor-fs-6 tutor-color-secondary tutor-lesson-wrapper">
 *     <?php the_content(); ?>
 *   </div>
 *
 * `.tutor-fs-6` pins the font to 14px and `.tutor-color-secondary` greys
 * out the text — which on KG's white spotlight panel rendered as nearly
 * invisible 13px grey. We override both directly on `.tutor-lesson-wrapper`
 * (and equivalents on quiz/assignment) so the change is precise: dashboard
 * sidebar / topic nav / spotlight chrome elsewhere still get their compact
 * Tutor scale, only the actual lesson PROSE is bumped.
 * --------------------------------------------------------------------- */
.tutor-lesson-wrapper,
.tutor-lesson-wrapper.tutor-fs-6,
.tutor-lesson-wrapper.tutor-color-secondary,
#tutor-single-entry-content .tutor-lesson-wrapper {
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: #2c2c2c !important;
}

.tutor-lesson-wrapper p,
.tutor-lesson-wrapper li,
.tutor-lesson-wrapper blockquote,
.tutor-lesson-wrapper td {
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: #2c2c2c !important;
	margin-bottom: 1em;
}

/* Heading scale is in px, NOT rem. Traveler sets the root <html> font-size
 * to 62.5% (= ~10px), so rem units collapse here — the old 1.3rem h3 rendered
 * at just 13px (smaller than the 16px body text). px keeps these in step with
 * the px-based .tutor-lesson-wrapper p/li rules above. */
.tutor-lesson-wrapper h1 { font-size: 30px; font-weight: 700; line-height: 1.25; margin-block: 1.2em 0.5em; }
.tutor-lesson-wrapper h2 { font-size: 26px; font-weight: 700; line-height: 1.3;  margin-block: 1.2em 0.5em; }
.tutor-lesson-wrapper h3 { font-size: 22px; font-weight: 600; line-height: 1.35; margin-block: 1.2em 0.5em; }
.tutor-lesson-wrapper h4 { font-size: 18px; font-weight: 600; line-height: 1.4;  margin-block: 1.2em 0.5em; }

/* Lift the spotlight content column off the bottom edge so the next/prev
 * buttons aren't pinned against the page bottom. */
#tutor-course-spotlight-overview {
	padding-block: 24px 60px;
}

/* Widen the lesson reading column slightly on large screens — Tutor's
 * default `tutor-col-xl-8` is fine but the inner padding made it feel
 * narrow on KG's spotlight panel. */
@media (min-width: 1200px) {
	#tutor-course-spotlight-overview .tutor-col-xl-8 {
		flex: 0 0 auto;
		max-width: 80%;
	}
}

/* Spotlight top bar — course title shown in the red header strip. */
.tutor-single-page-top-bar .tutor-fs-6 {
	font-size: 15px;
}

/* Lesson sidebar — using the ACTUAL class names from
 * templates/single/lesson/lesson_sidebar.php (not the guessed
 * spotlight-* names that don't exist):
 *
 *   .tutor-course-single-sidebar-title         — "Course Content" header (line 41)
 *   .tutor-course-topic-title                  — Module title (line 74)
 *   .tutor-course-topic-summary                — "0/3" counter (line 93)
 *   .tutor-course-topic-item-title             — Lesson title (line 121/191/209/227/265)
 *   .tutor-course-topic-item-duration          — "00:00" duration (line 164/273)
 *
 * `.tutor-fs-6` and `.tutor-fs-7` Tutor utilities lock font-size at
 * 12–14px so we need !important on top of the exact class chain.
 */

/* "Course Content" header */
.tutor-course-single-sidebar-title,
.tutor-course-single-sidebar-title .tutor-fs-6 {
	font-size: 17px !important;
	font-weight: 600 !important;
	color: #2c2c2c !important;
}

/* Module / topic title ("Module 1: Introduction to Digital Marketing
 * for Travel Professionals", etc.) */
.tutor-course-topic-title {
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
}

/* "0/3" topic-summary counter */
.tutor-course-topic-summary {
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #555 !important;
}

/* Individual lesson rows ("Overview of Digital Marketing…", etc.) */
.tutor-course-topic-item-title,
.tutor-course-topic-item-title.tutor-fs-7 {
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.45 !important;
}

/* Duration stamp ("00:00") + lock/checkmark icons next to lesson title */
.tutor-course-topic-item-duration,
.tutor-course-topic-item-duration.tutor-fs-7 {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #555 !important;
}

/* ---------------------------------------------------------------------
 * 2a. Lesson sidebar — MV-style card treatment
 *
 * Mirrors the .multivendorx-store-sidebar > .widget look the user already
 * approved for the storefront (style.css line 443-480):
 *   - white background
 *   - 1px #e6e6e6 border
 *   - 6px radius
 *   - 16px padding
 *   - 22px bottom gap between cards
 *
 * Applied here to:
 *   - The "Course Content" header (treated as its own card-header strip)
 *   - Each .tutor-course-topic (module) becomes its own card
 *
 * The .tutor-course-single-content-wrapper.tutor-spotlight-mode parent
 * scope keeps this confined to the lesson "spotlight" layout.
 * --------------------------------------------------------------------- */
.tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper {
	padding: 16px;
	background: #fafafa;
}

.tutor-course-single-content-wrapper .tutor-course-single-sidebar-title {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	padding: 14px 16px;
	margin: 0 0 16px 0;
}

.tutor-course-single-content-wrapper .tutor-course-topic {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	padding: 0;
	margin: 0 0 14px 0;
	overflow: hidden;
}

.tutor-course-single-content-wrapper .tutor-course-topic .tutor-accordion-item-header {
	padding: 14px 16px;
	border-bottom: 1px solid transparent;
	cursor: pointer;
}

.tutor-course-single-content-wrapper .tutor-course-topic .tutor-accordion-item-header.is-active {
	border-bottom-color: #ececec;
}

.tutor-course-single-content-wrapper .tutor-course-topic .tutor-accordion-item-body {
	padding: 8px 0;
}

.tutor-course-single-content-wrapper .tutor-course-topic-item {
	padding: 10px 16px;
	border-bottom: 1px solid #f3f3f3;
	transition: background-color .15s ease;
}

.tutor-course-single-content-wrapper .tutor-course-topic-item:last-child {
	border-bottom: 0;
}

.tutor-course-single-content-wrapper .tutor-course-topic-item:hover {
	background: #fafafa;
}

.tutor-course-single-content-wrapper .tutor-course-topic-item.is-active {
	background: #fdf3f3;
	box-shadow: inset 3px 0 0 var(--main-color, #b33636);
}

.tutor-course-single-content-wrapper .tutor-course-topic-item a {
	color: #2c2c2c;
	text-decoration: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.tutor-course-single-content-wrapper .tutor-course-topic-item.is-active a {
	color: var(--main-color, #b33636);
}

.tutor-course-single-content-wrapper .tutor-course-topic-item-icon {
	color: var(--main-color, #b33636);
	font-size: 16px;
}

/* ---------------------------------------------------------------------
 * 2b. Module accordion — red headers, white text "across the board"
 *
 * Per the user's screenshot 3 annotations: every module/topic
 * accordion-item-header (both on the lesson sidebar AND on the single
 * course page Course Content section) gets the KG red background with
 * white text. Time chips ("00:00") on lesson rows also get red chips so
 * they stand out as deliberate metadata pills.
 *
 * Affects:
 *   - .tutor-course-topic .tutor-accordion-item-header   (lesson sidebar)
 *   - .tutor-accordion-item .tutor-accordion-item-header (single course page)
 *
 * "Course Content" header on single course page is also enlarged.
 * --------------------------------------------------------------------- */
.tutor-course-topic .tutor-accordion-item-header,
.tutor-accordion-item .tutor-accordion-item-header {
	background-color: #b33636 !important;
	color: #fff !important;
	border-radius: 6px;
}

.tutor-course-topic .tutor-accordion-item-header .tutor-course-topic-title,
.tutor-accordion-item .tutor-accordion-item-header .tutor-course-topic-title,
.tutor-course-topic .tutor-accordion-item-header *,
.tutor-accordion-item .tutor-accordion-item-header * {
	color: #fff !important;
}

/* When the accordion item is open, square off the bottom edge so it
 * meets the lesson list flush. */
.tutor-course-topic .tutor-accordion-item-header.is-active,
.tutor-accordion-item .tutor-accordion-item-header.is-active {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* Right-side chevron icon stays visible against the red. */
.tutor-course-topic .tutor-accordion-item-header [class^="tutor-icon-"],
.tutor-accordion-item .tutor-accordion-item-header [class^="tutor-icon-"] {
	color: #fff !important;
}

/* "0/3" topic summary counter — small white pill on the right of the
 * red header row so it reads as a chip rather than mid-line text. */
.tutor-course-topic-summary {
	background: rgba( 255, 255, 255, 0.18 );
	color: #fff !important;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 13px !important;
	font-weight: 600 !important;
}

/* "Course Content" section title on the single course page —
 * bigger + bolder to anchor the module list visually. */
.tutor-course-content-title {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #2c2c2c !important;
	margin-bottom: 24px !important;
}

/* Course Content header on the spotlight lesson sidebar — bumped per
 * user's request ("Increase"). */
.tutor-course-single-content-wrapper .tutor-course-single-sidebar-title,
.tutor-course-single-content-wrapper .tutor-course-single-sidebar-title .tutor-fs-6 {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #2c2c2c !important;
}

/* Lesson duration "00:00" — plain muted text on transparent background
 * (no red pill — that was too loud per user feedback). */
.tutor-course-topic-item-duration,
.tutor-course-topic-item-duration.tutor-fs-7 {
	background: transparent !important;
	color: #777 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

/* Active lesson row indicator — lighter grey hover/active background
 * (matches MV's #fafafa), as the user asked. */
.tutor-course-topic-item:hover,
.tutor-course-topic-item.is-active,
.tutor-course-topic-lesson:hover,
.tutor-course-topic-lesson.is-active {
	background-color: #fafafa !important;
}

/* Bottom space below the Course Content listing on the single course
 * page — the loop was butting straight into the next section. */
.tutor-course-details-tab .tutor-accordion {
	margin-bottom: 60px !important;
}

/* ---------------------------------------------------------------------
 * 2c. Lesson page — lay the Tutor content out inside KG chrome
 *
 * tutor/single-content-loader.php (KG override) now renders lessons via
 * get_header()/get_footer() wrapped in
 *   #primary.learnquest-lesson-content > main#main > .container.learnquest-lesson
 * exactly like archive-course.php / single-course.php — instead of Tutor's
 * setting-dependent get_tutor_header()/get_tutor_footer().
 *
 * Tutor's own lesson CSS is written for SPOTLIGHT (full-viewport) mode:
 * the Course Content rail is `flex:0 0 400px` with `position:absolute`
 * off-canvas variants at some breakpoints, and #tutor-single-entry-content
 * carries `min-height:100vh`. Dropped into the KG container those rules
 * render squeezed + leave a 100vh empty gulf. We pin a deterministic
 * two-column flow (rail + content) and neutralise the spotlight chrome.
 * All rules are scoped to `.learnquest-lesson` so nothing leaks.
 * --------------------------------------------------------------------- */
body.learnquest-page .learnquest-lesson .tutor-course-single-content-wrapper {
	display: flex !important;
	gap: 24px;
	width: 100% !important;
	position: relative;
	align-items: flex-start;
}

/* Course Content rail — static card, NOT the off-canvas absolute panel. */
body.learnquest-page .learnquest-lesson .tutor-course-single-sidebar-wrapper {
	position: static !important;
	opacity: 1 !important;
	z-index: auto !important;
	flex: 0 0 340px !important;
	width: 340px !important;
	max-width: 340px !important;
	height: auto !important;
	right: auto !important;
	top: auto !important;
	overflow: visible !important;
	border-right: 0 !important;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
}

/* Lesson content column — fill the remaining width; kill the 100vh floor
 * that left a huge empty area below short lessons. */
body.learnquest-page .learnquest-lesson #tutor-single-entry-content {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: auto !important;
	min-height: 0 !important;
}

/* The reading column inside the content area is centred by the plugin at
 * tutor-col-xl-8 (66%). Once the rail already narrows the content area,
 * let the prose use the full content width for comfortable measure. */
body.learnquest-page .learnquest-lesson #tutor-course-spotlight-overview .tutor-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.learnquest-page .learnquest-lesson #tutor-course-spotlight-overview .tutor-col-xl-8 {
	flex: 0 0 100% !important;
	max-width: 100% !important;
}

/* Tablet / mobile — stack the rail on top, content full width below. */
@media (max-width: 991px) {
	body.learnquest-page .learnquest-lesson .tutor-course-single-content-wrapper {
		flex-direction: column;
	}
	body.learnquest-page .learnquest-lesson .tutor-course-single-sidebar-wrapper {
		flex: 1 1 auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ---------------------------------------------------------------------
 * 3. Wishlist + Share buttons — move from header to under Start Learning
 *
 * Scoped via the Tutor wrapper classes (NOT body.learnquest-page) so the
 * rules apply on the single course page regardless of whether body class
 * detection fires. The PHP hook in inc/learnquest-tutor.php injects the
 * `.learnquest-wishlist-share` card via tutor_course/single/after/sidebar.
 * --------------------------------------------------------------------- */
.tutor-course-details-header .tutor-course-details-actions {
	display: none !important;
}

.tutor-single-course-sidebar {
	display: flex !important;
	flex-direction: column !important;
}

.tutor-single-course-sidebar > .tutor-card.tutor-sidebar-card:not(.learnquest-wishlist-share) {
	order: 1;
}

.tutor-single-course-sidebar > .learnquest-wishlist-share {
	order: 2;
}

.tutor-single-course-sidebar > .tutor-single-course-sidebar-more {
	order: 3;
}

.learnquest-wishlist-share .tutor-btn,
.learnquest-wishlist-share .tutor-course-share-btn,
.learnquest-wishlist-share button {
	color: var(--main-color, #b33636) !important;
}

/* ---------------------------------------------------------------------
 * 3a. Single course page — KG box treatment + bigger title/rating/category
 *
 * All rules below are scoped via Tutor's own .tutor-course-details-*
 * classes (NOT body.learnquest-page) so they apply unconditionally on the
 * single course page. The user's MV-screen reference (PRODUCT CATEGORIES
 * box) drives the visual language: white card, 1px #e6e6e6 border,
 * 8px radius, internal padding, modest shadow.
 * --------------------------------------------------------------------- */

/* Wrap the left main column in a card. */
.tutor-course-details-page .tutor-row > main.tutor-col-xl-8 {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.03 );
}

@media (max-width: 1199px) {
	.tutor-course-details-page .tutor-row > main.tutor-col-xl-8 {
		padding: 16px;
	}
}

/* Same card treatment for the right sidebar Start Learning card so it
 * pairs with the left main column. Per user feedback, the "Course By"
 * block (.tutor-single-course-sidebar-more) is LEFT in its original
 * Tutor styling — don't box it. */
.tutor-single-course-sidebar > .tutor-card.tutor-sidebar-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.03 );
}

/* Bigger title, more presence. */
.tutor-course-details-title,
.tutor-course-details-title span,
h1.tutor-course-details-title {
	font-size: 32px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	color: #1a1a1a !important;
	margin-top: 16px !important;
	margin-bottom: 12px !important;
}

/* Rating row — stars + numeric average + count, all readable. */
.tutor-course-details-ratings,
.tutor-course-details-ratings .tutor-fs-7,
.tutor-course-details-ratings .tutor-fs-6,
.tutor-course-details-ratings span {
	font-size: 15px !important;
}

.tutor-course-details-ratings .tutor-rating-stars i,
.tutor-course-details-ratings i {
	font-size: 18px !important;
}

/* Category row ("By <author> Categories: Digital Marketing"). */
.tutor-course-details-info,
.tutor-course-details-info a,
.tutor-course-details-info span {
	font-size: 15px !important;
	line-height: 1.5 !important;
}

.tutor-course-details-info a {
	color: var(--main-color, #b33636) !important;
	font-weight: 600 !important;
}

/* About Course body — readable body size, not the cramped tutor-fs-6. */
.tutor-course-details-content,
.tutor-course-details-content p,
.tutor-course-details-content li,
.tutor-course-details-content .tutor-color-secondary {
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: #2c2c2c !important;
}

.tutor-course-details-content h2 {
	font-size: 22px !important;
	font-weight: 700 !important;
	margin-bottom: 16px !important;
}

/* Course Info / Reviews tabs — bigger, clearer */
.tutor-course-details-tab .tutor-nav,
.tutor-course-details-tab .tutor-nav .tutor-nav-link {
	font-size: 16px !important;
	font-weight: 600 !important;
}

/* Bottom of the Course Content listing — keep a tight 16px breathing
 * room inside the white card (user flagged the previous 80px+24px combo
 * as a huge empty white area). The card's own 24px padding then
 * provides the visual closure. */
.tutor-course-details-tab,
.tutor-course-details-tab .tutor-accordion,
main.tutor-col-xl-8 .tutor-accordion {
	margin-bottom: 16px !important;
	padding-bottom: 0 !important;
}

/* Sidebar Start Learning button — bigger, more presence */
.tutor-sidebar-card .tutor-btn-primary,
.tutor-single-course-sidebar .tutor-btn-primary {
	font-size: 16px !important;
	font-weight: 700 !important;
	padding: 14px 24px !important;
}

/* Sidebar meta rows (Level / Time to Complete / Lessons / Updated).
 *
 * Live HTML shows the actual wrapping ul is `<ul class="tutor-ul">`, NOT
 * `.tutor-meta` — the earlier selectors targeted a class that doesn't
 * exist in this Tutor build, so the rules silently never applied.
 * Targeting the real classes now.
 */
.tutor-sidebar-card .tutor-ul,
.tutor-sidebar-card .tutor-ul li,
.tutor-sidebar-card .tutor-ul li > span,
.tutor-sidebar-card .tutor-ul li > span.tutor-fs-6,
.tutor-sidebar-card .tutor-ul .learnquest-meta-label,
.tutor-sidebar-card .tutor-ul .learnquest-meta-value {
	font-size: 17px !important;
	line-height: 1.5 !important;
}

/* Vertically CENTRE the icon with the text. The plugin's <li> uses
 * `tutor-d-flex` (display:flex) with default `align-items: stretch`,
 * and bolts a `tutor-mt-4` (margin-top:4px) onto the icon — that 4px
 * offset was tuned for 14px text and looks wrong at our 17px size.
 * We override both with high-specificity rules. */
.tutor-sidebar-card .tutor-ul li,
.tutor-sidebar-card .tutor-ul li.tutor-d-flex {
	display: flex !important;
	align-items: center !important;
	gap: 12px;
}

.tutor-sidebar-card .tutor-ul li > span[class*="tutor-icon-"],
.tutor-sidebar-card .tutor-ul li > span.tutor-mt-4 {
	margin-top: 0 !important;
	margin-right: 0 !important;
	font-size: 20px !important;
	line-height: 1 !important;
	flex: 0 0 auto;
}

/* "A course by" header above the instructor card */
.tutor-course-details-instructors h3,
.tutor-course-details-instructors h3.tutor-fs-6 {
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #1a1a1a !important;
}

/* Instructor name link */
.tutor-course-details-instructors a.tutor-fs-6,
.tutor-course-details-instructors .tutor-d-flex > div > a {
	font-size: 18px !important;
	font-weight: 700 !important;
}

/* Instructor designation (subtitle under name) */
.tutor-course-details-instructors .tutor-instructor-designation,
.tutor-course-details-instructors .tutor-instructor-designation.tutor-fs-7 {
	font-size: 14px !important;
}

/* Label / value typography inside each meta row. The PHP filter wraps
 * the label in .learnquest-meta-label and the value in .learnquest-meta-value;
 * label is normal-weight muted, value is bold black. */
.learnquest-meta-label {
	color: #555 !important;
	font-weight: 400 !important;
}

.learnquest-meta-value {
	color: #1a1a1a !important;
	font-weight: 700 !important;
}

/* "What You Will Learn" / "Target Group" / "About Course" widget titles
 * on the single course page. Tutor's .tutor-fs-5 utility holds them at
 * ~18px; bump to 22px so they read as proper section heads. */
.tutor-course-details-widget-title,
.tutor-course-details-widget-title.tutor-fs-5,
.tutor-course-details-widget .tutor-fs-5,
h3.tutor-course-details-widget-title {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #1a1a1a !important;
	margin-bottom: 16px !important;
}

/* Widget list bodies (the bulleted items under each heading). */
.tutor-course-details-widget-list,
.tutor-course-details-widget-list li,
.tutor-course-details-widget-list li span,
.tutor-course-details-widget-list.tutor-fs-6 li,
.tutor-course-details-widget-list.tutor-fs-6 li span {
	font-size: 16px !important;
	line-height: 1.6 !important;
	color: #2c2c2c !important;
}

/* Meta row layout — category + rating inline on the same row, like the
 * reference screenshot:  Categories: Tour Guiding    ★★★★★ 4.7 (3) */
.learnquest-course-meta-row {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap;
	gap: 24px;
	font-size: 15px;
}

.learnquest-course-meta-row .learnquest-meta-categories a {
	color: var(--main-color, #b33636) !important;
	font-weight: 600 !important;
}

.learnquest-course-meta-row .learnquest-meta-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.learnquest-course-meta-row .learnquest-meta-rating .tutor-ratings-stars i,
.learnquest-course-meta-row .learnquest-meta-rating .tutor-ratings-stars span {
	font-size: 18px !important;
	color: #f0a500 !important;
}

/* ---------------------------------------------------------------------
 * 4. Flash badges (SALE / NEW) on course-card thumbnails
 *
 * Rendered by the tutor_after_course_loop_thumbnail_link hook in
 * inc/learnquest-tutor.php. Positioned as small uppercase pills in the
 * top-left of the thumbnail, layered above the image.
 * --------------------------------------------------------------------- */
.learnquest-flash-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	z-index: 2;
	pointer-events: none;
}

.tutor-course-thumbnail {
	position: relative;
}

.learnquest-flash-badge {
	display: inline-block;
	/* Fixed pill geometry so badges stacked on the same thumbnail
	 * (e.g. "-5%" + "NEW") render as a clean uniform column instead
	 * of staggered widths. 56px holds the longest copy we emit
	 * ("FREE" / "SALE" / "-XX%") at 11px/700 with the 10px side
	 * padding accounted for; the 4px column gap is controlled by
	 * the parent .learnquest-flash-badges flex. */
	min-width: 56px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	background: #b33636;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.18 );
	box-sizing: border-box;
}

.learnquest-flash-badge--new {
	background: #1a8a3a; /* MV green */
}

.learnquest-flash-badge--sale {
	background: #b33636; /* KG red */
}

.learnquest-flash-badge--free {
	background: #1a8a3a; /* MV green — same as NEW */
}

.learnquest-flash-badge--hot {
	background: #d97706; /* warm amber — distinct from NEW (green) and SALE (red) */
}

/* ---------------------------------------------------------------------
 * 4a. Course card footer — keep "Buy Now" / "Enroll" on one line
 *
 * The footer row (tutor/loop/footer.php) lays out price + CTA via
 * .tutor-d-flex.tutor-align-center.tutor-justify-between. With Tutor's
 * default tutor-btn-md padding (10px 20px), labels like "Buy Now" /
 * "Enroll Course" wrap to two lines once the card column dips below
 * ~280px (i.e. on most 3-up archive layouts). We:
 *   - force the CTA text to nowrap
 *   - shrink the horizontal padding so the chip fits beside the price
 *   - cap the price cell so it can't starve the button of space
 * --------------------------------------------------------------------- */
.tutor-card-footer .tutor-btn,
.tutor-course-list-btn .tutor-btn,
.tutor-card-footer .list-item-button .tutor-btn {
	white-space: nowrap !important;
	padding-left: 14px !important;
	padding-right: 14px !important;
}

.tutor-card-footer .list-item-price,
.tutor-card-footer .tutor-course-price {
	min-width: 0;
	flex: 0 1 auto;
}

/* ---------------------------------------------------------------------
 * 3. Cart / Checkout — KG visual polish
 *
 * Templates already provide the .learnquest-cart-page / .learnquest-checkout-page
 * scoping classes (see tutor/ecommerce/cart.php, checkout.php). The page
 * template provides chrome via the standard the_content() wrapper.
 * --------------------------------------------------------------------- */
.learnquest-cart-page,
.learnquest-checkout-page {
	padding-block: 40px 80px;
}

.learnquest-cart-page .tutor-cart-summery,
.learnquest-checkout-page .tutor-checkout-billing,
.learnquest-checkout-page .tutor-checkout-details-wrapper {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	padding: 24px;
}

.learnquest-cart-page .tutor-cart-course-item {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
}

.learnquest-cart-page .tutor-btn-primary,
.learnquest-checkout-page .tutor-btn-primary {
	background-color: var(--main-color, #2c8b56);
	border-color: var(--main-color, #2c8b56);
}

.learnquest-cart-page .tutor-btn-primary:hover,
.learnquest-checkout-page .tutor-btn-primary:hover {
	filter: brightness(0.92);
}

/* ---------------------------------------------------------------------
 * 4. Order status pages (success / failed)
 * --------------------------------------------------------------------- */
.learnquest-order-status {
	padding-block: 60px 80px;
}

.learnquest-order-status .tutor-order-status-wrapper {
	max-width: 560px;
	margin-inline: auto;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 40px 32px;
	text-align: center;
}

/* ---------------------------------------------------------------------
 * 5. Registration / login — match KG form styling
 *
 * Inputs in #tutor-registration-form / .tutor-login-form-wrapper render
 * with a thin 1px grey border by default. Bump contrast and add focus
 * state in KG primary colour.
 * --------------------------------------------------------------------- */
#tutor-registration-wrap,
.tutor-login-form-wrapper {
	max-width: 560px;
	margin-inline: auto;
	padding-block: 24px 48px;
}

#tutor-registration-form .tutor-form-control,
.tutor-login-form-wrapper .tutor-form-control {
	border-color: #cfcfcf;
}

#tutor-registration-form .tutor-form-control:focus,
.tutor-login-form-wrapper .tutor-form-control:focus {
	border-color: var(--main-color, #2c8b56);
	box-shadow: 0 0 0 3px rgba(44, 139, 86, 0.12);
}

.learnquest-login {
	padding-block: 40px 80px;
}
