/* AIES Premium Course Player 1.0.0 — styles only, scoped to MasterStudy UI.
   Colors: midnight navy #09244b, deep navy #061a36, royal blue #2469de. */
:root { --aies-navy:#09244b; --aies-ink:#102645; --aies-royal:#2469de; --aies-canvas:#f7f9fc; --aies-border:#dfe7f0; --aies-muted:#5c718a; }

/* Elegant university-style top bar. */
.masterstudy-course-player-header {
  background:#09244b !important; border-bottom:1px solid #264165 !important;
  box-shadow:0 3px 18px rgba(7,27,55,.12);
}
.masterstudy-course-player-header__course-label { color:#a9c0dd !important; }
.masterstudy-course-player-header a.masterstudy-course-player-header__course-title,
.masterstudy-course-player-header__course-title {color:#fff !important;}
.masterstudy-course-player-header a.masterstudy-course-player-header__course-title:hover {color:#d7e9ff !important;}
.masterstudy-course-player-header__back,
.masterstudy-course-player-header__dark-mode {border-color:#27466c !important;}
.masterstudy-course-player-header__navigation {color:#fff;}
.masterstudy-course-player-header__navigation .masterstudy-course-player-header__discussions-toggler__title {color:#e7f0ff;}
.masterstudy-course-player-header__logo img{border-radius:50%;background:white;border:2px solid rgba(255,255,255,.35);}

/* Sidebar is airy and readable; keep MasterStudy open/closed widths intact. */
.masterstudy-course-player-curriculum {background:#f8faff !important;border-right:1px solid #dce5ef !important;}
.masterstudy-course-player-curriculum__title-wrapper {padding:25px 22px 20px !important;background:#fff;border-bottom:1px solid #e4ebf3;}
.masterstudy-course-player-curriculum__title {color:#09244b !important;font-weight:800 !important;font-size:19px !important;line-height:1.35 !important;letter-spacing:-.3px;}
.masterstudy-course-player-curriculum__progress {margin-top:18px !important;}
.masterstudy-course-player-curriculum__content {background:#f8faff;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__section {
  background:#eaf0f8 !important;border-bottom:1px solid #d7e1ee !important;padding:17px 18px !important;
  border-left:4px solid #a7bad3;transition:background .15s ease;
}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__section:hover{background:#dfeaf7 !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__section-title {color:#173456 !important;font-size:14px !important;line-height:1.45 !important;font-weight:750 !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__section-count {color:#4c6684 !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__toggler {background:#d5e2f1 !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__item {background:#fff;border-bottom:1px solid #e9edf3 !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion a.masterstudy-curriculum-accordion__link {padding:15px 19px !important;transition:background .15s ease !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion a.masterstudy-curriculum-accordion__link:hover,
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion a.masterstudy-curriculum-accordion__link:focus {background:#edf5ff !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion a.masterstudy-curriculum-accordion__link_current {background:#e9f2ff !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion a.masterstudy-curriculum-accordion__link_current::before{background:#2469de !important;width:4px !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__title {color:#183657 !important;font-size:13px !important;line-height:1.5 !important;font-weight:600 !important;}
.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__meta {color:#667d94 !important;}

/* Lesson reading area. Do not change widths of embeds, PDFs, video players or content functionality. */
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) {background:var(--aies-canvas) !important;}
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-content__wrapper {background:var(--aies-canvas) !important;}
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-content__header {max-width:900px;margin-top:35px !important;margin-bottom:22px !important;}
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-content__header h1 {
 color:#09244b !important; font-size:clamp(27px,2.2vw,39px) !important;line-height:1.18 !important;font-weight:800 !important;letter-spacing:-.8px;
}
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-content__header-lesson-type {color:#517091 !important;font-weight:650 !important;letter-spacing:.04em;}
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-lesson__content {color:#1b3352;}

/* Card surfaces around quiz results/questions; retain MasterStudy's existing structure and display toggles. */
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-quiz__result-container,
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-quiz__attempt-info {
 background:#fff; border:1px solid #e0e8f2; border-radius:18px;box-shadow:0 10px 32px rgba(13,39,75,.055);
}
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-quiz__result-title {color:#09244b;}
.masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-question {border-radius:14px;}

/* Button surfaces in player only, preserving disabled / loading / quiz functionality. */
.masterstudy-course-player-content .masterstudy-button,
.masterstudy-course-player-header .masterstudy-button {border-radius:10px !important;transition:box-shadow .15s ease,filter .15s ease,background .15s ease;}
.masterstudy-course-player-content .masterstudy-button:hover:not(:disabled),
.masterstudy-course-player-header .masterstudy-button:hover:not(:disabled) {filter:brightness(.96);box-shadow:0 4px 14px rgba(15,57,112,.12);}
.masterstudy-course-player-content .masterstudy-button:focus-visible,
.masterstudy-course-player-header .masterstudy-button:focus-visible,
.masterstudy-course-player-curriculum a:focus-visible {outline:3px solid #72acff !important;outline-offset:2px;}

/* Bottom navigation stays fixed/sticky according to the original responsive layout. */
.masterstudy-course-player-navigation {background:#fff !important;border-top:1px solid #dfe7f0 !important;box-shadow:0 -3px 18px rgba(10,40,80,.055);}
.masterstudy-course-player-navigation__status {color:#1b66bd !important;}
.masterstudy-course-player-navigation__prev, .masterstudy-course-player-navigation__next {font-weight:700;}

/* Avoid overriding MasterStudy dark mode contrast; use its original dark course surface. */
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum,
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum__content {background:#1e293b !important;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum__title-wrapper {background:#24344d;border-color:#3a4d69;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum__title {color:#fff !important;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__section {background:#233957 !important;border-color:#3b5270 !important;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__section-title {color:#e9f3ff !important;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__item {background:#1e293b !important;border-color:#3a4d69 !important;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__title {color:#e4edf8 !important;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum a.masterstudy-curriculum-accordion__link_current {background:#28436a !important;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-curriculum a.masterstudy-curriculum-accordion__link:hover {background:#2a4263 !important;}
.masterstudy-course-player-content_dark-mode .masterstudy-course-player-navigation {background:#24344d !important;border-color:#40536e !important;}

/* Respect the original mobile curriculum drawer and reduce typography at small sizes. */
@media(max-width:1024px){
 .masterstudy-course-player-curriculum__title-wrapper {width:100% !important;}
 .masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-content__header {padding-left:16px;padding-right:16px;}
}
@media(max-width:600px){
 .masterstudy-course-player-content:not(.masterstudy-course-player-content_dark-mode) .masterstudy-course-player-content__header h1 {font-size:26px !important;letter-spacing:-.4px;}
 .masterstudy-course-player-curriculum__title-wrapper {padding:18px !important;}
 .masterstudy-course-player-navigation__wrapper{padding-left:16px !important;padding-right:16px !important;}
}
@media(prefers-reduced-motion:reduce){.masterstudy-course-player-content .masterstudy-button,.masterstudy-course-player-curriculum .masterstudy-curriculum-accordion__section{transition:none !important;}}
