/* ===========================================
   KIMCOACH THEME — TutorLMS Overrides
   Forces theme design onto all TutorLMS pages
   =========================================== */

/* ----------------------------------------
   GLOBAL — Background, Typography, Layout
   ---------------------------------------- */

/* Theme background on all Tutor pages */
.kc-tutor-single,
.kc-tutor-archive {
  background-color: var(--wp--preset--color--bg);
}

/*
 * Fix double site-header wrapper on Tutor pages.
 * Tutor's tutor_custom_header() renders do_blocks() with className:"site-header",
 * producing an outer <header class="site-header wp-block-template-part"> that wraps
 * the inner <header class="... site-header ...">. Our custom.css rules for
 * .site-header (position:fixed, padding) hit BOTH, causing doubled padding + layout issues.
 * Solution: neutralize the outer wrapper.
 */
/* Removed: old single/archive header fix — replaced by display:contents above */

/*
 * Fix header layout on Tutor pages.
 * custom.css has `.site-header > .wp-block-group { display: flex }` which
 * on normal pages targets the inner flex container (logo + nav).
 * On Tutor pages the double wrapper means it hits the inner <header> instead,
 * breaking WordPress's is-layout-constrained (which needs display: block).
 * Restore block display on the inner header so constrained layout works.
 */
/* Inner header needs block display for constrained layout */
header.site-header.is-layout-constrained {
  display: block !important;
}

/* Push content below fixed header */
.kc-tutor-single .tutor-page-wrap,
.kc-tutor-single .tutor-wrap,
.kc-tutor-archive .tutor-page-wrap,
.kc-tutor-archive .tutor-wrap {
  padding-top: calc(var(--wp--preset--spacing--70) + 20px);
  padding-bottom: var(--wp--preset--spacing--70);
}

/* Constrain Tutor content to theme max-width */
.kc-tutor-single .tutor-container,
.kc-tutor-archive .tutor-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wp--preset--spacing--30);
  padding-right: var(--wp--preset--spacing--30);
}

/* Body typography — override Tutor defaults */
.kc-tutor-single,
.kc-tutor-single .tutor-page-wrap,
.kc-tutor-single .tutor-wrap,
.kc-tutor-archive .tutor-wrap {
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.7;
  color: var(--wp--preset--color--text);
}

/* Heading typography — override Tutor utility classes */
.kc-tutor-single h1,
.kc-tutor-single h2,
.kc-tutor-single h3,
.kc-tutor-single h4,
.kc-tutor-archive h1,
.kc-tutor-archive h2,
.kc-tutor-archive h3,
.kc-tutor-archive h4 {
  font-family: var(--wp--preset--font-family--heading) !important;
  font-weight: 400 !important;
  line-height: 1.2;
  color: var(--wp--preset--color--text) !important;
}

/* Override Tutor color utilities */
.kc-tutor-single .tutor-color-black,
.kc-tutor-single .tutor-color-secondary {
  color: var(--wp--preset--color--text) !important;
}
.kc-tutor-single .tutor-color-muted {
  color: var(--wp--preset--color--text-muted) !important;
}

/* Override Tutor font-size utilities on titles */
.kc-tutor-single .tutor-course-details-title.tutor-fs-4 {
  font-size: var(--wp--preset--font-size--x-large) !important;
  font-weight: 400 !important;
  font-family: var(--wp--preset--font-family--heading) !important;
  letter-spacing: -0.01em;
}

/* General links */
.kc-tutor-single a:not(.tutor-btn):not(.tutor-nav-link) {
  color: var(--wp--preset--color--primary);
  transition: color var(--wp--custom--transition);
}
.kc-tutor-single a:not(.tutor-btn):not(.tutor-nav-link):hover {
  color: var(--wp--preset--color--primary-dark);
}

/* ----------------------------------------
   COURSE ARCHIVE / LISTING
   ---------------------------------------- */
.kc-tutor-archive .tutor-course-list {
  gap: var(--wp--preset--spacing--30);
}

.kc-tutor-archive .tutor-course-card,
.kc-tutor-archive .tutor-card {
  border-radius: var(--wp--custom--radius--md);
  border: 1px solid var(--wp--preset--color--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kc-tutor-archive .tutor-course-card:hover,
.kc-tutor-archive .tutor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 41, 38, 0.08);
}

/* ----------------------------------------
   SINGLE COURSE — Header / Lead Info
   ---------------------------------------- */
.kc-tutor-single .tutor-course-details-header {
  background: var(--wp--preset--color--bg-alt);
  border-radius: var(--wp--custom--radius--lg);
  padding: var(--wp--preset--spacing--40) !important;
  margin-bottom: var(--wp--preset--spacing--40) !important;
}

/* Hide empty star ratings (no reviews yet) */
.kc-tutor-single .tutor-course-details-ratings {
  display: none;
}

/* Hide category meta ("Okategoriserade") and author info in header */
.kc-tutor-single .tutor-meta.tutor-course-details-info {
  display: none;
}

/* Hide unwanted sidebar meta: enrolled count, last updated */
.kc-tutor-single .tutor-sidebar-card li:has(span[aria-labelledby="Antal anmalda"]),
.kc-tutor-single .tutor-sidebar-card li:has(span[aria-labelledby="Senast uppdaterad"]) {
  display: none;
}

/* Hide "En kurs av" instructor section in sidebar */
.kc-tutor-single .tutor-course-details-instructors {
  display: none;
}

/* Category & author meta */
.kc-tutor-single .tutor-course-details-info,
.kc-tutor-single .tutor-course-details-top .tutor-meta {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
}
.kc-tutor-single .tutor-course-details-info a {
  color: var(--wp--preset--color--primary) !important;
  font-weight: 600;
}

/* Hide "Okategoriserade" — show only if real categories exist */
.kc-tutor-single .tutor-course-details-top {
  margin-top: var(--wp--preset--spacing--20);
}

/* Wishlist / share action buttons */
.kc-tutor-single .tutor-course-details-actions .tutor-btn-ghost {
  color: var(--wp--preset--color--text-muted) !important;
  background: none !important;
  border: none !important;
  font-size: var(--wp--preset--font-size--small);
  transition: color var(--wp--custom--transition);
}
.kc-tutor-single .tutor-course-details-actions .tutor-btn-ghost:hover {
  color: var(--wp--preset--color--primary) !important;
}

/* Segment borders */
.kc-tutor-single .tutor-single-course-segment {
  border-color: var(--wp--preset--color--border);
}

/* ----------------------------------------
   SINGLE COURSE — Video / Thumbnail
   ---------------------------------------- */
.kc-tutor-single .tutor-course-details-page .tutor-course-thumbnail,
.kc-tutor-single .tutor-course-details-page .tutor-course-thumbnail img,
.kc-tutor-single .tutor-video-player {
  border-radius: var(--wp--custom--radius--md);
  overflow: hidden;
}

/* ----------------------------------------
   SINGLE COURSE — Sidebar Card
   ---------------------------------------- */
.kc-tutor-single .tutor-sidebar-card,
.kc-tutor-single .tutor-card.tutor-sidebar-card {
  background: var(--wp--preset--color--bg) !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: var(--wp--custom--radius--md) !important;
  box-shadow: 0 4px 24px rgba(44, 41, 38, 0.06);
  overflow: hidden;
}

/* Override Tutor's blue/grey card body background */
.kc-tutor-single .tutor-sidebar-card .tutor-card-body,
.kc-tutor-single .tutor-card.tutor-sidebar-card .tutor-card-body {
  background-color: var(--wp--preset--color--bg) !important;
  border-radius: var(--wp--custom--radius--md) var(--wp--custom--radius--md) 0 0 !important;
  padding: var(--wp--preset--spacing--30) !important;
}

/* Sidebar info rows */
.kc-tutor-single .tutor-sidebar-card .tutor-card-footer,
.kc-tutor-single .tutor-card.tutor-sidebar-card .tutor-card-footer {
  background-color: var(--wp--preset--color--bg) !important;
  border-top: 1px solid var(--wp--preset--color--border) !important;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) !important;
}

/* Individual meta rows in sidebar */
.kc-tutor-single .tutor-sidebar-card .tutor-course-details-info-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
}
.kc-tutor-single .tutor-sidebar-card .tutor-course-details-info-item:last-child {
  border-bottom: none;
}

/* Sidebar more section (instructors, requirements, audience) */
.kc-tutor-single .tutor-single-course-sidebar-more {
  background: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--md);
  padding: var(--wp--preset--spacing--30);
  box-shadow: 0 4px 24px rgba(44, 41, 38, 0.06);
}

/* Instructor display */
.kc-tutor-single .tutor-single-course-sidebar-more .tutor-instructor-info-card {
  font-family: var(--wp--preset--font-family--body);
}
.kc-tutor-single .tutor-single-course-sidebar-more a {
  color: var(--wp--preset--color--primary) !important;
  font-weight: 600;
}

/* Price display */
.kc-tutor-single .tutor-course-price .tutor-course-price-current {
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--heading) !important;
}

/* ----------------------------------------
   SINGLE COURSE — Enroll / Purchase Button
   ---------------------------------------- */
.kc-tutor-single .tutor-btn-primary,
.kc-tutor-single .tutor-btn.tutor-btn-primary,
.kc-tutor-single a.tutor-btn-primary {
  background-color: var(--wp--preset--color--primary) !important;
  border-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--text-light) !important;
  border-radius: var(--wp--custom--radius--pill) !important;
  font-family: var(--wp--preset--font-family--body) !important;
  font-weight: 600 !important;
  padding: 0.9rem 2rem !important;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}
.kc-tutor-single .tutor-btn-primary:hover,
.kc-tutor-single .tutor-btn.tutor-btn-primary:hover,
.kc-tutor-single a.tutor-btn-primary:hover {
  background-color: var(--wp--preset--color--primary-dark) !important;
  border-color: var(--wp--preset--color--primary-dark) !important;
  transform: translateY(-2px);
}

/* Secondary / outline buttons */
.kc-tutor-single .tutor-btn-outline-primary {
  border-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--primary) !important;
  border-radius: var(--wp--custom--radius--pill) !important;
  font-family: var(--wp--preset--font-family--body) !important;
}
.kc-tutor-single .tutor-btn-outline-primary:hover {
  background-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--text-light) !important;
}

/* ----------------------------------------
   SINGLE COURSE — Tabs (tutor-nav)
   ---------------------------------------- */
.kc-tutor-single .tutor-course-details-tab .tutor-nav {
  border-bottom: 2px solid var(--wp--preset--color--border) !important;
  background: none !important;
  gap: 0;
}

.kc-tutor-single .tutor-course-details-tab .tutor-nav-link {
  font-family: var(--wp--preset--font-family--body) !important;
  font-weight: 600 !important;
  font-size: var(--wp--preset--font-size--medium) !important;
  color: var(--wp--preset--color--text-muted) !important;
  padding: 0.75rem 1.5rem !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none !important;
  transition: color var(--wp--custom--transition), border-color var(--wp--custom--transition);
}
.kc-tutor-single .tutor-course-details-tab .tutor-nav-link:hover {
  color: var(--wp--preset--color--text) !important;
}
.kc-tutor-single .tutor-course-details-tab .tutor-nav-link.is-active {
  color: var(--wp--preset--color--primary) !important;
  border-bottom-color: var(--wp--preset--color--primary) !important;
  background: none !important;
}

/* Tab content panels */
.kc-tutor-single .tutor-course-details-tab .tutor-tab {
  padding-top: var(--wp--preset--spacing--30);
}

/* ----------------------------------------
   SINGLE COURSE — Curriculum / Lessons
   ---------------------------------------- */
.kc-tutor-single .tutor-accordion-item {
  border-color: var(--wp--preset--color--border) !important;
  border-radius: var(--wp--custom--radius--sm) !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.kc-tutor-single .tutor-accordion-item-header {
  background: var(--wp--preset--color--bg-alt) !important;
  font-family: var(--wp--preset--font-family--body) !important;
  font-weight: 600;
}
.kc-tutor-single .tutor-accordion-item-body {
  background: var(--wp--preset--color--bg) !important;
}

/* Course content section headings (Om kursen, Målgrupp, etc.) */
.kc-tutor-single .tutor-course-details-tab h3,
.kc-tutor-single .tutor-course-details-tab h4,
.kc-tutor-single .tutor-single-course-segment h3 {
  font-size: 1.25rem !important;
  font-family: var(--wp--preset--font-family--heading) !important;
  font-weight: 400 !important;
  margin-bottom: 0.75rem;
}

/* Course description area */
.kc-tutor-single .tutor-course-details-content p,
.kc-tutor-single .tutor-course-details-content li,
.kc-tutor-single .tutor-tab-item p,
.kc-tutor-single .tutor-tab-item li {
  font-family: var(--wp--preset--font-family--body);
  color: var(--wp--preset--color--text-muted);
  line-height: 1.7;
}

/* "Visa mer" / show-more toggle */
.kc-tutor-single .tutor-show-more-btn,
.kc-tutor-single .tutor-toggle-more-content {
  color: var(--wp--preset--color--primary) !important;
  font-family: var(--wp--preset--font-family--body) !important;
  font-weight: 600;
}

/* "Vad kommer du att lära dig" list items */
.kc-tutor-single .tutor-course-details-widget-list li {
  color: var(--wp--preset--color--text-muted);
  font-family: var(--wp--preset--font-family--body);
  padding: 0.5rem 0;
}

/* Progress bar */
.kc-tutor-single .tutor-progress-bar .tutor-progress-value,
.kc-tutor-single .tutor-progress-bar .tutor-progress-filled {
  background-color: var(--wp--preset--color--primary) !important;
}

/* Star ratings */
.kc-tutor-single .tutor-star-rating-group i,
.kc-tutor-archive .tutor-star-rating-group i {
  color: var(--wp--preset--color--highlight) !important;
}

/* ----------------------------------------
   SINGLE COURSE — Content Area Styling
   ---------------------------------------- */

/* Course requirements, audience, tags lists */
.kc-tutor-single .tutor-course-details-widget-list li,
.kc-tutor-single .tutor-single-course-sidebar-more li {
  padding: 0.4rem 0;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--text-muted);
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.kc-tutor-single .tutor-course-details-widget-list li:last-child,
.kc-tutor-single .tutor-single-course-sidebar-more li:last-child {
  border-bottom: none;
}

/* Tags */
.kc-tutor-single .tutor-course-details-tags a {
  background: var(--wp--preset--color--bg-alt) !important;
  color: var(--wp--preset--color--text-muted) !important;
  border-radius: var(--wp--custom--radius--pill) !important;
  font-size: var(--wp--preset--font-size--small);
  padding: 0.25rem 0.75rem !important;
  transition: background-color var(--wp--custom--transition);
}
.kc-tutor-single .tutor-course-details-tags a:hover {
  background: var(--wp--preset--color--border) !important;
  color: var(--wp--preset--color--text) !important;
}

/* ----------------------------------------
   TUTOR ICONS — theme color overrides
   ---------------------------------------- */
.kc-tutor-single [class*="tutor-icon-"] {
  color: var(--wp--preset--color--primary);
}
.kc-tutor-single .tutor-sidebar-card [class*="tutor-icon-"],
.kc-tutor-single .tutor-course-details-info [class*="tutor-icon-"] {
  color: var(--wp--preset--color--text-muted);
}

/* ----------------------------------------
   LESSON / CONTENT AREA
   ---------------------------------------- */
.tutor-single-lesson-wrap {
  font-family: var(--wp--preset--font-family--body);
}
.tutor-single-lesson-wrap h1,
.tutor-single-lesson-wrap h2,
.tutor-single-lesson-wrap h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 400;
}
.tutor-video-player {
  border-radius: var(--wp--custom--radius--md);
  overflow: hidden;
}

/* ----------------------------------------
   DASHBOARD
   ---------------------------------------- */
.kc-tutor-dashboard {
  background-color: var(--wp--preset--color--bg);
}
.kc-tutor-dashboard .tutor-wrap,
.kc-tutor-dashboard .tutor-dashboard-wrap {
  padding-top: var(--wp--preset--spacing--70);
}
.tutor-dashboard .tutor-dashboard-menu-item.active a,
.tutor-dashboard .tutor-dashboard-menu-item a:hover {
  color: var(--wp--preset--color--primary);
}
.tutor-dashboard .tutor-btn-primary {
  background-color: var(--wp--preset--color--primary) !important;
  border-color: var(--wp--preset--color--primary) !important;
  border-radius: var(--wp--custom--radius--pill);
}

/* ----------------------------------------
   TUTOR UTILITY OVERRIDES
   Override Tutor's utility classes that fight our theme
   ---------------------------------------- */
.kc-tutor-single .tutor-mb-44 {
  margin-bottom: var(--wp--preset--spacing--40) !important;
}
.kc-tutor-single .tutor-mt-32 {
  margin-top: var(--wp--preset--spacing--30) !important;
}
.kc-tutor-single .tutor-mt-40 {
  margin-top: 0 !important;
}
.kc-tutor-single .tutor-pt-24 {
  padding-top: var(--wp--preset--spacing--20) !important;
}

/* Override Tutor's background colors */
.kc-tutor-single .tutor-bg-white {
  background-color: var(--wp--preset--color--bg) !important;
}

/* Override Tutor border colors */
.kc-tutor-single .tutor-border-top,
.kc-tutor-single .tutor-border-bottom {
  border-color: var(--wp--preset--color--border) !important;
}

/* Remove global padding on Tutor page wrapper that WP block system adds */
.kc-tutor-single .wp-site-blocks {
  padding: 0 !important;
}

/*
 * Fix footer padding on Tutor pages.
 * Same double-wrapper issue as header: outer footer.site-footer.wp-block-template-part
 * gets padding: 2.5rem 1.5rem from custom.css, showing beige body through transparent bg.
 */
/* Removed: old single/archive footer fix — replaced by display:contents above */

/*
 * Fix Tutor's "show more" white gradient overlay.
 * Tutor uses a white gradient on .tutor-toggle-more-collapsed::before
 * which clashes with our beige background. Override to match theme bg.
 */
.kc-tutor-single .tutor-toggle-more-collapsed::before {
  background: linear-gradient(
    rgba(250, 246, 241, 0) 0%,
    rgb(250, 246, 241) 100%
  ) !important;
}

/* Override Tutor font families everywhere */
.kc-tutor-single .tutor-fs-6,
.kc-tutor-single .tutor-fs-5,
.kc-tutor-single .tutor-fs-7,
.kc-tutor-single .tutor-fw-bold,
.kc-tutor-single .tutor-fw-medium,
.kc-tutor-single .tutor-fw-normal {
  font-family: var(--wp--preset--font-family--body) !important;
}

/* Ensure all Tutor content uses theme body font */
.kc-tutor-single .tutor-page-wrap *:not([class*="tutor-icon"]):not(i),
.kc-tutor-single .tutor-wrap-parent *:not([class*="tutor-icon"]):not(i) {
  font-family: var(--wp--preset--font-family--body);
}
/* But headings use heading font */
.kc-tutor-single .tutor-page-wrap h1,
.kc-tutor-single .tutor-page-wrap h2,
.kc-tutor-single .tutor-page-wrap h3,
.kc-tutor-single .tutor-page-wrap h4,
.kc-tutor-single .tutor-wrap-parent h1,
.kc-tutor-single .tutor-wrap-parent h2,
.kc-tutor-single .tutor-wrap-parent h3,
.kc-tutor-single .tutor-wrap-parent h4 {
  font-family: var(--wp--preset--font-family--heading) !important;
  font-weight: 400 !important;
}

/* ----------------------------------------
   DASHBOARD — Header, Footer, Icons fix
   ---------------------------------------- */

/*
 * Fix double-wrapper on ALL Tutor pages.
 * tutor_custom_header() renders: <header class="site-header wp-block-template-part">
 *   <header class="site-header is-layout-constrained">
 * The outer wrapper steals .site-header styles (position:fixed etc.) but has
 * wrong layout. Solution: make outer wrapper invisible via display:contents
 * so all CSS hits the inner header directly.
 * Same fix for footer.
 */
header.wp-block-template-part.site-header {
  display: contents !important;
}
footer.wp-block-template-part.site-footer {
  display: contents !important;
}

/* Dashboard: override Tutor blue icons to theme green */
.kc-tutor-dashboard [class*="tutor-icon-"],
.kc-tutor-dashboard .tutor-dashboard-menu-item [class*="tutor-icon-"],
.kc-tutor-dashboard .tutor-icon-color-primary,
.kc-tutor-dashboard .tutor-color-primary {
  color: var(--wp--preset--color--primary) !important;
}

/* Dashboard: override all Tutor blue brand colors */
.kc-tutor-dashboard .tutor-btn-primary,
.kc-tutor-dashboard a.tutor-btn-primary {
  background-color: var(--wp--preset--color--primary) !important;
  border-color: var(--wp--preset--color--primary) !important;
  border-radius: var(--wp--custom--radius--pill) !important;
}
.kc-tutor-dashboard .tutor-btn-primary:hover,
.kc-tutor-dashboard a.tutor-btn-primary:hover {
  background-color: var(--wp--preset--color--primary-dark) !important;
  border-color: var(--wp--preset--color--primary-dark) !important;
}

/* Dashboard: override Tutor's inline SVG/icon fill colors */
.kc-tutor-dashboard svg.tutor-icon,
.kc-tutor-dashboard .tutor-dashboard-menu-item svg {
  fill: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

/* Dashboard: active menu item */
.kc-tutor-dashboard .tutor-dashboard-menu-item.active a,
.kc-tutor-dashboard .tutor-dashboard-menu-item a:hover {
  color: var(--wp--preset--color--primary) !important;
}

/* Dashboard: progress bars */
.kc-tutor-dashboard .tutor-progress-bar .tutor-progress-value,
.kc-tutor-dashboard .tutor-progress-bar .tutor-progress-filled {
  background-color: var(--wp--preset--color--primary) !important;
}

/* Dashboard: typography */
.kc-tutor-dashboard .tutor-page-wrap *:not([class*="tutor-icon"]):not(i):not(svg),
.kc-tutor-dashboard .tutor-wrap *:not([class*="tutor-icon"]):not(i):not(svg) {
  font-family: var(--wp--preset--font-family--body);
}
.kc-tutor-dashboard h1, .kc-tutor-dashboard h2,
.kc-tutor-dashboard h3, .kc-tutor-dashboard h4 {
  font-family: var(--wp--preset--font-family--heading) !important;
  font-weight: 400 !important;
  color: var(--wp--preset--color--text) !important;
}

/* Dashboard: constrain content */
.kc-tutor-dashboard .tutor-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wp--preset--spacing--30);
  padding-right: var(--wp--preset--spacing--30);
}

/* Dashboard: course cards */
.kc-tutor-dashboard .tutor-card,
.kc-tutor-dashboard .tutor-course-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--md);
  overflow: hidden;
}

/* Dashboard: links */
.kc-tutor-dashboard a:not(.tutor-btn) {
  color: var(--wp--preset--color--primary);
}
.kc-tutor-dashboard a:not(.tutor-btn):hover {
  color: var(--wp--preset--color--primary-dark);
}

/* ----------------------------------------
   FORCE OVERRIDE — Tutor blue brand color
   Tutor uses CSS custom prop --tutor-primary
   and inline color on SVGs/icons.
   ---------------------------------------- */
:root {
  --tutor-primary: #5B7C5A !important;
  --tutor-primary-hover: #3D5A3C !important;
  --tutor-color-primary: #5B7C5A !important;
  --tutor-color-primary-hover: #3D5A3C !important;
  --tutor-primary-rgb: 91, 124, 90 !important;
  --tutor-color-primary-rgb: 91, 124, 90 !important;
}

/* Force Tutor SVG icons to theme green — but NOT inside active menu items */
.tutor-dashboard svg,
.tutor-dashboard [class*="tutor-icon"],
.tutor-wrap svg,
.tutor-wrap [class*="tutor-icon"] {
  color: #5B7C5A !important;
  fill: #5B7C5A !important;
}
/* Active menu items: white icons and text override (must come AFTER the green rule) */
.tutor-dashboard-menu-item.active svg,
.tutor-dashboard-menu-item.active [class*="tutor-icon"],
.tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-icon,
.tutor-dashboard .tutor-dashboard-left-menu .tutor-dashboard-menu-item.active a .tutor-dashboard-menu-item-icon {
  color: #ffffff !important;
  fill: #ffffff !important;
}
.tutor-dashboard-menu-item.active a,
.tutor-dashboard-menu-item.active a span,
.tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link,
.tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-text,
.tutor-dashboard .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a,
.tutor-dashboard .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a span {
  color: #ffffff !important;
}

/* Moved to consolidated active menu rules above */

/* Dashboard stat cards icons */
.tutor-dashboard .tutor-card svg,
.tutor-dashboard .tutor-card [class*="tutor-icon"] {
  color: var(--wp--preset--color--primary) !important;
  fill: var(--wp--preset--color--primary) !important;
}

/* Dashboard top padding — push content below header */
.kc-tutor-dashboard .tutor-wrap,
.kc-tutor-dashboard .tutor-dashboard-wrap,
.tutor-dashboard-content-inner {
  padding-top: 2rem;
}

/* Fix header area — push user profile section down */
.kc-tutor-dashboard .tutor-dashboard-header {
  margin-top: 1rem;
}

/* Dashboard content — top padding and width matching header (1200px) */
.tutor-wrap.tutor-wrap-parent.tutor-dashboard {
  padding-top: 120px !important;
}
.tutor-wrap.tutor-wrap-parent.tutor-dashboard > .tutor-container {
  max-width: 1200px !important;
  padding-left: 0;
  padding-right: 0;
}

/* ----------------------------------------
   LESSON VIEW — hide site header
   Tutor's lesson player has its own topbar.
   ---------------------------------------- */
body:has(.tutor-course-single-content-wrapper) .site-header {
  display: none !important;
}
