/* polymathematic overrides for courses.polymathematic.net (BrainCert).
   Source of truth: website/polymathematic.net/braincert/head-snippet.html (the <style> block).
   Loaded by BrainCert Global Head Snippet via <link>. Redeploy: apps/play-site/build.sh deploy */
/* ---------- 1. tokens ---------- */
:root{
  --pm-ink:#111111; --pm-body:#4B5560; --pm-muted:#8A949E;
  --pm-paper:#F4F6F9; --pm-rule:#E3E7EC; --pm-border:#C9D1DA;
  --pm-blue:#63A6D6; --pm-blue-hover:#4F96C9; --pm-green:#77B482; --pm-pink:#EFA0E8;
  --pm-font:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --pm-display:"Plus Jakarta Sans",sans-serif;
  --pm-radius-pill:50rem;
}
/* re-point the Geeks theme variables (these cascade everywhere) */
html[data-theme=light]{
  --geeks-body-font-family:var(--pm-font) !important;
  --geeks-font-sans-serif:var(--pm-font) !important;
  --geeks-body-color:var(--pm-body) !important; --geeks-body-color-rgb:75,85,96 !important;
  --geeks-body-bg:#ffffff !important;          --geeks-body-bg-rgb:255,255,255 !important;
  --geeks-headings-color:var(--pm-ink) !important;
  --geeks-link-color:var(--pm-ink) !important; --geeks-link-hover-color:var(--pm-blue-hover) !important;
  --geeks-primary:var(--pm-blue) !important;   --geeks-primary-rgb:99,166,214 !important;
  --geeks-border-color:var(--pm-rule) !important;
  --geeks-input-border:var(--pm-border) !important; --geeks-input-focus-border:var(--pm-blue) !important;
  --geeks-input-focus-box-shadow:0 0 0 3px rgba(99,166,214,.25) !important;
}
/* BrainCert's language script appends a Noto Sans stylesheet; beat it */
html[data-theme=light] body, html[data-theme=light] p, html[data-theme=light] .btn,
html[data-theme=light] input, html[data-theme=light] select, html[data-theme=light] label{
  font-family:var(--pm-font) !important;
}
html[data-theme=light] h1,html[data-theme=light] h2,html[data-theme=light] h3,
html[data-theme=light] h4,html[data-theme=light] .h1,html[data-theme=light] .h2,
html[data-theme=light] .h3,html[data-theme=light] .h4,html[data-theme=light] .display-4{
  font-family:var(--pm-display) !important; color:var(--pm-ink) !important;
  letter-spacing:-0.02em !important; font-weight:700 !important;
}

/* ---------- 2. buttons ---------- */
html[data-theme=light] .btn{
  --geeks-btn-border-radius:var(--pm-radius-pill);
  --geeks-btn-font-weight:600; --geeks-btn-font-size:0.9375rem;
  --geeks-btn-padding-y:0.6rem; --geeks-btn-padding-x:1.4rem;
  box-shadow:none !important; transform:none !important;
}
html[data-theme=light] .btn-primary{
  --geeks-btn-color:var(--pm-ink) !important;        --geeks-btn-bg:var(--pm-blue) !important;
  --geeks-btn-border-color:var(--pm-blue) !important;
  --geeks-btn-hover-color:var(--pm-ink) !important;  --geeks-btn-hover-bg:var(--pm-blue-hover) !important;
  --geeks-btn-hover-border-color:var(--pm-blue-hover) !important;
  --geeks-btn-active-color:var(--pm-ink) !important; --geeks-btn-active-bg:var(--pm-blue-hover) !important;
  --geeks-btn-focus-shadow-rgb:99,166,214 !important;
}
html[data-theme=light] .btn-primary i.icon-white{color:var(--pm-ink) !important;}
/* secondary / dark / outline-white → ink outline pill */
html[data-theme=light] .btn-secondary, html[data-theme=light] .btn-dark,
html[data-theme=light] .btn-outline-white, html[data-theme=light] .btn-default:not(.btn-primary){
  --geeks-btn-color:var(--pm-ink) !important; --geeks-btn-bg:transparent !important;
  --geeks-btn-border-color:var(--pm-ink) !important;
  --geeks-btn-hover-color:#fff !important; --geeks-btn-hover-bg:var(--pm-ink) !important;
  --geeks-btn-hover-border-color:var(--pm-ink) !important;
  background:transparent !important; color:var(--pm-ink) !important; border:1.5px solid var(--pm-ink) !important;
}
html[data-theme=light] .nav.btn-group .btn-outline-white{background:#fff !important;border:1px solid var(--pm-border) !important;color:var(--pm-body) !important;}
html[data-theme=light] .nav.btn-group .btn-outline-white.active{background:var(--pm-ink) !important;border-color:var(--pm-ink) !important;color:#fff !important;}
/* enrol / cart buttons (BrainCert paints these with the "Secondary Button" colour) */
html[data-theme=light] .btn.en_now_take_course, html[data-theme=light] .btn.en_now_start_learning,
html[data-theme=light] .btn.en_now_enroll_now, html[data-theme=light] .btn.en_now_add_to_cart,
html[data-theme=light] .btn.en_now_join_waitlist, html[data-theme=light] .btn.en_now_on_waitlist,
html[data-theme=light] .btn.en_now_cancel_waitlist,
html[data-theme=light] .btn.en_now_take_course:hover, html[data-theme=light] .btn.en_now_start_learning:hover,
html[data-theme=light] .btn.en_now_enroll_now:hover, html[data-theme=light] .btn.en_now_add_to_cart:hover{
  background-color:var(--pm-blue) !important; border-color:var(--pm-blue) !important; color:var(--pm-ink) !important;
}
html[data-theme=light] .btn.en_now_preview_course, html[data-theme=light] .btn.en_now_preview_course:hover{
  background:transparent !important; border:1.5px solid var(--pm-ink) !important; color:var(--pm-ink) !important;
}
/* course sidebar: "Preview Course" as the secondary action */
html[data-theme=light] .btn-primary.ms_ie{background:transparent !important;border:1.5px solid var(--pm-ink) !important;color:var(--pm-ink) !important;}

/* ---------- 3. shell: navbar + footer ---------- */
html[data-theme=light] .navbar-default, html[data-theme=light] #myTopnav{
  background:#fff !important; border-bottom:1px solid var(--pm-rule) !important; box-shadow:none !important;
}
html[data-theme=light] #marketing_pages .navbar-default .nav-link,
html[data-theme=light] a.navoption, html[data-theme=light] a.navoption i{color:var(--pm-ink) !important;}
html[data-theme=light] a.navoption i.fe{display:none !important;}          /* drop the feather icon */
html[data-theme=light] #navbarLanding{border-bottom:0 !important;}
html[data-theme=light] .footer.bg-white{
  background:var(--pm-ink) !important; color:#C9D1DA !important; margin-top:4rem !important; padding:2rem 0 !important;
}
html[data-theme=light] .footer a{color:#C9D1DA !important;} html[data-theme=light] .footer a:hover{color:#fff !important;}
/* "© <#copyright> BrainCert. All rights reserved." — small, grey, honest */
html[data-theme=light] .footer .me-4 > span, html[data-theme=light] .footer #copyright{color:#8A949E !important; font-size:.8125rem !important;}
html[data-theme=light] #scroll-to-top{background:var(--pm-ink) !important;border-radius:50% !important;}

/* ---------- 4. hero bands (catalog + course page) ---------- */
html[data-theme=light] .banner_course_lm_ds{
  background-image:none !important; background-color:var(--pm-paper) !important;
  height:auto !important; min-height:0 !important; padding:4.5rem 0 3.5rem !important;
  border-radius:0 !important; border-bottom:1px solid var(--pm-rule) !important;
}
html[data-theme=light] .default-choose-text{height:auto !important; width:100% !important; margin:0 !important; padding:0 1.25rem !important;}
@media (max-width:767px){ html[data-theme=light] .banner_course_lm_ds{padding:3rem 0 2.5rem !important;} html[data-theme=light] .banner_course_lm_ds h1{font-size:1.75rem !important;} }
html[data-theme=light] .banner_course_lm_ds h1, html[data-theme=light] .banner_course_lm_ds .div_bann_cou_sub,
html[data-theme=light] .detailspage_background h1{color:var(--pm-ink) !important; font-size:clamp(2rem,4vw,3rem) !important;}
html[data-theme=light] .banner_course_lm_ds p, html[data-theme=light] .banner_course_lm_ds .lead,
html[data-theme=light] .banner_course_lm_ds .div_bann_cou_sub2, html[data-theme=light] .banner_course_lm_ds span{
  color:var(--pm-body) !important;
}
html[data-theme=light] .banner_course_lm_ds .cover-container{display:none !important;}  /* hides Tim's uploaded image; delete this line to keep it */
html[data-theme=light] .banner_course_lm_ds .text-warning,
html[data-theme=light] .banner_course_lm_ds span:has(> .fa-star){display:none !important;}     /* empty star row in hero */
html[data-theme=light] .a2a_floating_style{display:none !important;}                            /* floating share bar */
/* catalog search box */
html[data-theme=light] .form-search .bg-white{box-shadow:none !important; border:0 !important; background:transparent !important; padding:0 !important;}
html[data-theme=light] .form-search .form-control{outline:0 !important; border:1px solid var(--pm-border) !important; border-radius:50rem !important; padding:.65rem 1.25rem !important; background:#fff !important;}
html[data-theme=light] .form-search .search_icon{outline:0 !important;}

/* ---------- 5. cards → hairline top rule ---------- */
html[data-theme=light] .card{
  --geeks-card-border-radius:0; --geeks-card-border-width:0; --geeks-card-box-shadow:none;
  border:0 !important; border-radius:0 !important; box-shadow:none !important; background:#fff !important;
}
html[data-theme=light] #PostList .card, html[data-theme=light] .card.card-hover, html[data-theme=light] .col-lg-4 > .card{
  border-top:1px solid var(--pm-ink) !important;
}
html[data-theme=light] .card-hover, html[data-theme=light] .card-hover:hover, html[data-theme=light] .card-hover:focus{
  transform:none !important; box-shadow:none !important; transition:none !important;
}
html[data-theme=light] .card-img-top, html[data-theme=light] .rounded-top-md{border-radius:0 !important;}
html[data-theme=light] .card-footer{background:transparent !important; border-top:0 !important;}
html[data-theme=light] .card-body h4 a.text-inherit{color:var(--pm-ink) !important; font-family:var(--pm-display) !important;}
/* ratings + counts (no reviews yet) */
html[data-theme=light] .card-body .lh-1.d-flex{display:none !important;}
html[data-theme=light] .leaerner-count-css{background:var(--pm-paper) !important; color:var(--pm-body) !important;}
/* badges */
html[data-theme=light] .badge{border-radius:50rem !important; font-weight:600 !important;}
html[data-theme=light] .badge.bg-info-purple, html[data-theme=light] .badge.bg-info-soft,
html[data-theme=light] #marketing_pages .badge.bg-primary{background:var(--pm-paper) !important; color:var(--pm-body) !important;}
html[data-theme=light] .badge.bg-info-purple svg, html[data-theme=light] .badge.bg-info-soft svg{fill:var(--pm-body) !important;}
html[data-theme=light] .badge.bg-success{background:var(--pm-green) !important; color:var(--pm-ink) !important;}
html[data-theme=light] .price-bg-css:has(.ic_cart_new){background:transparent !important;}
html[data-theme=light] .ms-course-price strong, html[data-theme=light] .price .text-dark{color:var(--pm-ink) !important;}

/* ---------- 6. course page tabs + accordion ---------- */
html[data-theme=light] .nav-lb-tab .nav-item .nav-link{color:var(--pm-body) !important; font-family:var(--pm-display) !important;}
html[data-theme=light] .nav-lb-tab .nav-item .nav-link.active,
html[data-theme=light] .nav-lb-tab .nav-item .nav-link:hover{
  color:var(--pm-ink) !important; border-bottom:2px solid var(--pm-ink) !important;   /* swap for var(--pm-pink) to keep the accent */
}
html[data-theme=light] #courseAccordion .h4, html[data-theme=light] #courseAccordion a{color:var(--pm-ink) !important;}
html[data-theme=light] #courseAccordion .accordion-item, html[data-theme=light] #courseAccordion .card{border-top:1px solid var(--pm-rule) !important;}

/* ---------- 7. login / register (Modern Education) ---------- */
html[data-theme=light] #bgcolor{background:var(--pm-paper) !important;}
html[data-theme=light] #bgcolor #t1{font-family:var(--pm-display) !important; color:var(--pm-ink) !important; font-size:clamp(1.75rem,3vw,2.5rem) !important; letter-spacing:-0.02em !important;}
html[data-theme=light] #bgcolor #t2{color:var(--pm-body) !important; font-size:1.125rem !important; font-weight:400 !important; max-width:34rem; margin:0 auto;}
html[data-theme=light] #bgcolor #t3{color:var(--pm-body) !important; font-size:.8125rem !important; letter-spacing:.04em !important; text-transform:none !important;}
html[data-theme=light] .sign-in-page .card.p-5, html[data-theme=light] .sign-up-page .card{
  border-top:1px solid var(--pm-ink) !important; border-radius:0 !important; box-shadow:none !important;
}
html[data-theme=light] #t4{font-family:var(--pm-display) !important; color:var(--pm-ink) !important;}
html[data-theme=light] .sign-in-page .form-control, html[data-theme=light] .sign-up-page .form-control{
  border:1px solid var(--pm-border) !important; border-radius:.375rem !important; background:#fff !important; color:var(--pm-ink) !important;
}
html[data-theme=light] .sign-in-page .input-group-text{background:var(--pm-paper) !important; border-color:var(--pm-border) !important; color:var(--pm-body) !important;}
html[data-theme=light] .sign-in-page a, html[data-theme=light] .sign-up-page a{color:var(--pm-ink) !important; text-decoration:underline; text-decoration-color:var(--pm-blue);}
html[data-theme=light] .login-createaccount a.btn-primary{  /* header "Create account" → outline */
  background:transparent !important; border:1.5px solid var(--pm-ink) !important; color:var(--pm-ink) !important;
}
html[data-theme=light] .login-createaccount a.btn-primary:hover{background:var(--pm-ink) !important; color:#fff !important;}
html[data-theme=light] .form-check-input:checked{background-color:var(--pm-blue) !important; border-color:var(--pm-blue) !important;}
html[data-theme=light] .sign-in-page #passwordHelpBlock{display:none !important;}  /* "must be 8 characters" hint is noise on a login form */
html[data-theme=light] .sign-in-page .alert-danger{  /* "You must login to access this page" redirect notice → paper, not red */
  background:var(--pm-paper) !important; border:1px solid var(--pm-rule) !important; border-left:3px solid var(--pm-blue) !important;
  color:var(--pm-ink) !important; border-radius:.375rem !important;
}
