/* ============================================================
   GLOBAL ACCENT → BURDA RED.
   The MasterStudy frontend (course catalog, single course, course player,
   filters, buttons, tabs, progress) is driven by these CSS custom properties
   (default blue rgba(34,122,255)). Overriding them recolours the whole LMS UI
   in one place. !important so it wins regardless of plugin load order.
   ============================================================ */
:root{
  --masterstudy-color--primary-100:#E2001A !important;
  --masterstudy-color--primary-hover:#C2061B !important;
  --masterstudy-color--primary-70:rgba(226,0,26,.7) !important;
  --masterstudy-color--primary-50:rgba(226,0,26,.5) !important;
  --masterstudy-color--primary-30:rgba(226,0,26,.3) !important;
  --masterstudy-color--primary-10:rgba(226,0,26,.1) !important;
  --masterstudy-color--primary-5:rgba(226,0,26,.05) !important;
  --accent-100:#E2001A !important;
  --accent-70:rgba(226,0,26,.7) !important;
  --accent-10:rgba(226,0,26,.1) !important;
  --accent-hover:#C2061B !important;
  --color-accent:#E2001A !important;
  --color-main:#E2001A !important;
  --chakra-colors-primary:#E2001A !important;
  --lms-filter-filterTogglerBgColor:rgba(226,0,26,.1) !important;
  --lms-filter-filterTogglerBgColorHover:rgba(226,0,26,.18) !important;
}

/* Safety net: common MasterStudy blue buttons/links that may not use the vars. */
.stm-lms-buy_button .stm_lms_button,
.masterstudy-button,
a.masterstudy-button,
button.masterstudy-button,
[class*="single_course"] [class*="button"]:not(.button-secondary),
.stm_lms_course__sidebar .stm_lms_button{
  background-color:#E2001A !important;
  border-color:#E2001A !important;
  color:#fff !important;
}
[class*="masterstudy"] a{ color:inherit; }

/* Single course page: title → Lora, tab accents → red. */
.single-stm-courses .bz-lms h1,
[class*="single_course__title"],
[class*="course__title"]{ font-family:"Lora",Georgia,serif !important; }
[class*="course-tabs"] [class*="active"],
[class*="single_course"] [class*="tab"][class*="active"]{ color:#E2001A !important; border-color:#E2001A !important; }

/* ============================================================
   Burda brand layer for the MasterStudy LMS account/dashboard.
   Precise overrides (real MasterStudy classes). Goal: clean hierarchy,
   Burda red as the single accent, our type, no demo data.
   ============================================================ */
body.wp-child-theme-burda.masterstudy-theme{
  font-family:"Archivo",system-ui,sans-serif;
  color:#17110E;
}

/* --- kill demo header top bar (New York address / US phone / hours / English) --- */
body.wp-child-theme-burda.masterstudy-theme .header_top_bar{ display:none !important; }

/* --- type: headings → Lora --- */
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account h1,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account h2,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account h3,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account-profile__info,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account-menu__list-section-title{
  font-family:"Lora",Georgia,serif;
}

/* --- sidebar active item: blue → Burda red, with a stitched-feel left bar --- */
.masterstudy-account-menu__list-item_active,
.masterstudy-account-menu__list-item_active *{ color:#E2001A !important; }
.masterstudy-account-menu__list-item_active{
  background:rgba(226,0,26,.07) !important;
  box-shadow:inset 3px 0 0 #E2001A;
  border-radius:6px;
}
.masterstudy-account-menu__list-item:hover{ color:#C2061B; }
.masterstudy-account-mobile-menu__link_active{ color:#E2001A !important; border-color:#E2001A !important; }

/* --- instructor-mode switcher: blue → red when on --- */
.masterstudy-switcher input:checked + .masterstudy-switcher-background,
.masterstudy-switcher.is-active .masterstudy-switcher-background,
.masterstudy-switcher_checked .masterstudy-switcher-background,
.masterstudy-account-menu-switcher .masterstudy-switcher-background{ background:#E2001A !important; }

/* --- tabs (All / Published / In Draft) active → red --- */
.masterstudy-tabs__item_active{ background:#E2001A !important; color:#fff !important; border-color:#E2001A !important; }

/* --- primary buttons / CTAs in the account → Burda red --- */
.masterstudy-account .stm_lms_button,
.masterstudy-account button[type="submit"],
.masterstudy-account-have-question__button,
.masterstudy-instructor-courses a[class*="add"],
.masterstudy-account a[class*="_add"]{
  background:#E2001A !important;
  border-color:#E2001A !important;
  color:#fff !important;
  border-radius:2px !important;
}
.masterstudy-account .stm_lms_button:hover,
.masterstudy-account-have-question__button:hover{ background:#C2061B !important; }

/* --- links / profile accents --- */
.masterstudy-account-profile__link{ color:#C2061B !important; }
.masterstudy-account a:not(.masterstudy-account-menu__list-item):not([class*="button"]):not(.stm_lms_button){ color:#C2061B; }

/* --- form fields --- */
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account input,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account select,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account textarea{ border-radius:2px !important; }
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account input:focus{
  border-color:#E2001A !important; box-shadow:0 0 0 3px rgba(226,0,26,.14) !important; outline:none !important;
}

/* --- footer: hide demo Archives/Categories widgets for a clean footer --- */
body.wp-child-theme-burda.masterstudy-theme .footer_widgets_wrapper{ display:none !important; }

/* --- dashboard layout polish: card-based panels on paper (clear hierarchy) --- */
body.wp-child-theme-burda.masterstudy-theme .bz-lms{ background:#F7F2EA; }
.masterstudy-account-container{ max-width:1200px; margin-left:auto; margin-right:auto; gap:30px; align-items:flex-start; }
.masterstudy-account-sidebar__wrapper{
  background:#fff; border:1px solid #E0D7C8; border-radius:8px;
  box-shadow:0 18px 40px -28px rgba(23,17,14,.35); padding:22px 16px;
}
.masterstudy-account-profile{ padding:4px 6px 16px; border-bottom:1px dashed #C9BCA8; margin-bottom:12px; }
.masterstudy-account-profile__name{ font-family:"Lora",Georgia,serif; font-size:1.15rem; }
.masterstudy-account-menu__list-section-title{ letter-spacing:.12em; }
.masterstudy-instructor-courses,
.masterstudy-account-courses,
.masterstudy-account-content,
.masterstudy-account-dashboard{
  background:#fff; border:1px solid #E0D7C8; border-radius:8px;
  box-shadow:0 18px 40px -28px rgba(23,17,14,.35);
  padding:clamp(20px,3vw,32px); min-height:340px;
}
