/*
 * Masteriyo LMS in oncodaily.com's look (loaded by includes/masteriyo.php).
 * Same vocabulary as the theme's cards: Inter Tight, slate-950 text, white
 * cards with a 12px radius and no shadow on a #F8F8FA band, 162:96 images with
 * rounded corners, blue-800 labels, slate-400 meta, OncoDaily green buttons.
 */

/* Inter Tight, as in style.css: the learn page loads only Masteriyo's styles and this file. */
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:100 900;font-display:swap;src: url('../fonts/NGSwv5HMAFg6IuGlBNMjxLsH8ag.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:100 900;font-display:swap;src: url('../fonts/NGSwv5HMAFg6IuGlBNMjxLsJ8ah8QA.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+A720-A7FF}

:root {
    --od-ink: #020617;          /* slate-950 */
    --od-text: #334155;         /* slate-700 */
    --od-muted: #94a3b8;        /* slate-400 */
    --od-band: #f8f8fa;         /* .gray-container */
    --od-line: #f0f1f5;         /* hairlines (border-gray, a touch darker on white) */
    --od-img-fallback: #eef1f5; /* card.php image placeholder */
    --od-label: #1e40af;        /* blue-800, card categories */
    --od-green: #1caa7b;
    --od-green-hover: #169364;
    /* Buttons are grey (only "Subscribe to newsletter", in the footer, is green):
       light grey with ink text on the site; Masteriyo's apps, which always print
       white text on buttons, use the slate shades from includes/masteriyo.php. */
    --od-btn-bg: #f1f5f9;       /* slate-100 */
    --od-btn-hover: #e2e8f0;    /* slate-200 */
    --od-btn-text: #020617;     /* ink */
    --od-btn-app: #475569;      /* slate-600 */
    --od-btn-app-hover: #334155;/* slate-700 */
    --od-radius: .75rem;        /* rounded-xl */

    /* Masteriyo's own palette, in the theme's colours (the primary colours also
       come from includes/masteriyo.php's settings filter; repeated here for the
       SCORM learn page, where Masteriyo doesn't print them). */
    --masteriyo-color-primary: var(--od-btn-app);
    --masteriyo-color-primary-dark: var(--od-btn-app-hover);
    --masteriyo-button-primary: var(--od-btn-app);
    --masteriyo-button-primary-hover: var(--od-btn-app-hover);
    --masteriyo-color-btn-blue-hover: var(--od-btn-app-hover);
    --masteriyo-color-heading: var(--od-ink);
    --masteriyo-color-text: var(--od-text);
    --masteriyo-color-text-light: var(--od-muted);
    --masteriyo-color-border: var(--od-line);
}

body.masteriyo,
body.masteriyo .masteriyo-w-100,
body.masteriyo button,
body.masteriyo input {
    font-family: "Inter Tight", sans-serif;
}

/* ------------------------------------------------------------------ *
 *  Course list (front page, archive, category, instructor): the title in
 *  a light grey band under the menu bar (where oncodaily.com pages have
 *  their grey strip), then a white page of plain cards.
 * ------------------------------------------------------------------ */
body.post-type-archive-mto-course .masteriyo-w-100.masteriyo-container,
body.home.masteriyo .masteriyo-w-100.masteriyo-container,
body.tax-course_cat .masteriyo-w-100.masteriyo-container {
    max-width: none;
    width: 100%;
    margin: 0 !important;
    padding: 0 0 clamp(28px, 4vw, 64px);
    background: #fff;
}
body.post-type-archive-mto-course .masteriyo-container > *,
body.home.masteriyo .masteriyo-container > *,
body.tax-course_cat .masteriyo-container > * {
    max-width: 1472px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Title band: full-width grey behind a container-width title. */
.masteriyo-courses-header {
    margin: 0 auto clamp(24px, 3vw, 40px) !important;
    padding-top: clamp(20px, 2.5vw, 32px) !important;
    padding-bottom: clamp(20px, 2.5vw, 32px) !important;
    text-align: left;
    background: var(--od-band);
    box-shadow: 0 0 0 100vmax var(--od-band);
    clip-path: inset(0 -100vmax);
}
.masteriyo-courses-header__title {
    margin: 0 !important;
    color: var(--od-ink);
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
}
@media (min-width: 1280px) { .masteriyo-courses-header__title { font-size: 2.25rem; } }

/* Intro under the title band (white area): the theme's description text —
   slate-600, ~1.05rem, relaxed leading — across the full content width. */
.od-courses-intro {
    width: 100%;
    box-sizing: border-box;
    max-width: 1472px;
    margin: 0 auto clamp(20px, 2.5vw, 32px) !important;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}
.od-courses-intro { text-align: left; }
.od-courses-intro p { max-width: none; margin: 0 0 .75rem !important; text-align: left; }
.od-courses-intro p:last-child { margin-bottom: 0; }
.od-courses-intro a { color: #2849c7; text-decoration: underline; }

/* The card: image, title, short description, button — nothing else. */
.masteriyo-course--card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.masteriyo-course--card .masteriyo-course--badges,
.masteriyo-course--card .masteriyo-course--content__category,
.masteriyo-course--card .masteriyo-course-author-rating-wrapper,
.masteriyo-course--card .masteriyo-course-expiration-info,
.masteriyo-course--card .masteriyo-course--content__stats,
.masteriyo-course--card .masteriyo-course-stats,
.masteriyo-course--card .masteriyo-course-progress,
.masteriyo-course--card svg,
.masteriyo-course--card .masteriyo-play-featured-video-btn {
    display: none !important;
}

/* Image: the theme's card image — 162:96, rounded; the theme's plain
   #eef1f5 block when a course has no image (instead of Masteriyo's artwork). */
.masteriyo-course--card .masteriyo-course--img-wrap {
    display: block;
    padding: 0;
}
.masteriyo-course--card .masteriyo-feature-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--od-radius);
    background: var(--od-img-fallback);
    aspect-ratio: 162 / 96;
}
/* The image fills the 162:96 frame exactly (Masteriyo's grid sets it to 230px /
   185px / auto, which overflowed the frame). */
.masteriyo-course--card .masteriyo-feature-img img,
.masteriyo-course.grid-view .masteriyo-col .masteriyo-course--card .masteriyo-course--img-wrap a img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover;
    border-radius: var(--od-radius);
    transition: transform .3s ease;
}
.masteriyo-course--card:hover .masteriyo-feature-img img { transform: scale(1.03); }
.masteriyo-course--card .masteriyo-course--content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: .875rem .25rem 0 !important; /* the theme's card text inset */
}
.masteriyo-course--card .masteriyo-course--content__wrapper { flex: 1; }
.masteriyo-course--card .masteriyo-course--content__title {
    margin: 0 0 .5rem !important;
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 800;
}
.masteriyo-course--card .masteriyo-course--content__title a {
    color: var(--od-ink) !important;
    text-decoration: none;
}
.masteriyo-course--card:hover .masteriyo-course--content__title a { text-decoration: underline; }
.masteriyo-course--card .masteriyo-course--content__description {
    margin: 0 !important;
    color: #475569; /* slate-600, as the theme's descriptions */
    font-size: .9375rem;
    line-height: 1.5;
}
/* Up to four lines (Masteriyo clamps this span to three). */
.masteriyo-course--card .masteriyo-course-highlights--description {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
    font-size: inherit;
}

/* Footer: a full-width button in every state (Register / Start / Continue /
   Review), with the price, when a paid course has one, on its own line above. */
.masteriyo-course-card-footer {
    display: flex !important;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
    padding: 0 !important;
    border: 0 !important;
}
.masteriyo-course-price:not(:has(.amount:not(:empty))) { display: none !important; }
.masteriyo-course-card-footer .masteriyo-course-price { flex: 1 1 100%; }
/* Beats Masteriyo's inline card-component styles (.masteriyo-course-list-display-section
   .masteriyo-single-course--btn { border-radius: 2px !important }). */
body .masteriyo-course-list-display-section .masteriyo-course--card .masteriyo-course-card-footer .masteriyo-btn,
body .masteriyo-course--card .masteriyo-course-card-footer .masteriyo-btn {
    flex: 1 1 100%;
    width: 100% !important;
    margin: 0 !important;
    justify-content: center;
    text-align: center;
    border-radius: var(--od-radius) !important;
}

/* Course page: featured image frame — the whole image at its own proportions
   (Masteriyo fixes its height at 440px, which cropped it and left the frame
   empty below). */
.masteriyo-single-course .masteriyo-feature-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--od-radius);
    background: var(--od-img-fallback);
    aspect-ratio: auto;
    height: auto !important;
}
.masteriyo-single-course .masteriyo-feature-img img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    border-radius: var(--od-radius);
}
.masteriyo-feature-img img.masteriyo-placeholder { visibility: hidden; }

/* No author name or avatar anywhere (cards print it from the template; course
   pages' block is unhooked in includes/masteriyo.php). */
.masteriyo-course-author,
.masteriyo-course-author-rating-wrapper:not(:has(.masteriyo-rating)) {
    display: none !important;
}

/* ------------------------------------------------------------------ *
 *  Buttons and accents (everywhere)
 * ------------------------------------------------------------------ */
.masteriyo-btn.masteriyo-btn-primary,
.masteriyo-enroll-btn,
.masteriyo-retake-btn {
    min-height: 2.75rem;
    padding: .625rem 1.25rem !important;
    border: 0 !important;
    border-radius: var(--od-radius) !important;
    background: var(--od-btn-bg) !important;
    color: var(--od-btn-text) !important;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.5rem;
    box-shadow: none !important;
    transition: background-color .15s ease;
}
.masteriyo-btn.masteriyo-btn-primary:hover,
.masteriyo-enroll-btn:hover,
.masteriyo-retake-btn:hover {
    background: var(--od-btn-hover) !important;
    color: var(--od-btn-text) !important;
}
.masteriyo-btn.masteriyo-btn-outline {
    border-radius: var(--od-radius) !important;
    border-color: var(--od-line) !important;
    color: var(--od-ink) !important;
}
.masteriyo-link-primary { color: var(--od-green) !important; }

/* ------------------------------------------------------------------ *
 *  Masteriyo app pages (account, checkout): masteriyo-page.php, at the
 *  width of the other pages' content.
 * ------------------------------------------------------------------ */
#masteriyo-page {
    max-width: 1472px;
    padding: clamp(20px, 3vw, 48px) 16px;
}

/* ------------------------------------------------------------------ *
 *  Single course
 * ------------------------------------------------------------------ */
body.single-mto-course { background: var(--od-band); }
body.single-mto-course header.sticky { background: #fff; }
body.single-mto-course .masteriyo-w-100.masteriyo-container {
    max-width: 1472px;
    margin: clamp(20px, 3vw, 48px) auto !important;
    padding: 0 16px;
}
.masteriyo-single-course {
    width: 100%;
    margin: 0 !important;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .masteriyo-single-course { flex-wrap: nowrap; }
    .masteriyo-single-course > .masteriyo-col-4 { flex: 0 0 360px; max-width: 360px; }
}
.masteriyo-single-course--main,
.masteriyo-single-course--aside {
    border: 0 !important;
    border-radius: 1rem !important;
    background: #fff !important;
    box-shadow: none !important;
}
.masteriyo-single-course--main .masteriyo-course--img-wrap { padding: .5rem .5rem 0; }
/* No featured image: no image area at all (as on the theme's articles). */
.masteriyo-single-course--main .masteriyo-course--img-wrap:has(img.masteriyo-placeholder) { display: none; }
.masteriyo-single-course--main > .masteriyo-single-course--title { padding-top: 1.5rem; }
.masteriyo-single-course--title {
    color: var(--od-ink) !important;
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}
.masteriyo-single-course--aside { padding: 1.5rem !important; }
.masteriyo-single-course--aside .masteriyo-course-pricing--wrapper {
    padding-bottom: 1.25rem;
    border-bottom-color: var(--od-line) !important;
}
.masteriyo-single-course--aside .masteriyo-course-pricing--wrapper:not(:has(.masteriyo-course-price:not([style*="none"]) .amount:not(:empty))) .masteriyo-btn {
    width: 100%;
    justify-content: center;
}
.masteriyo-single-course-stats,
.masteriyo-single-course-stats .masteriyo-single-course--mdetail {
    color: var(--od-text);
    font-size: .9375rem;
}

/* Tabs: active tab in ink with the green underline. */
.masteriyo-stab .masteriyo-tab {
    color: var(--od-muted);
    font-weight: 600;
}
.masteriyo-stab .masteriyo-tab.active-tab {
    color: var(--od-ink) !important;
    border-bottom-color: var(--od-green) !important;
}

/* ------------------------------------------------------------------ *
 *  Learn page (standalone app: only Masteriyo's styles and this file)
 * ------------------------------------------------------------------ */
body.masteriyo-interactive-page {
    --chakra-fonts-body: "Inter Tight", sans-serif;
    --chakra-fonts-heading: "Inter Tight", sans-serif;
    font-family: "Inter Tight", sans-serif;
    color: var(--od-ink);
}
body.masteriyo-interactive-page :is(h1, h2, h3, h4, h5, h6, p, a, span, button, input, label, li, div):not([class*="dashicons"]) {
    font-family: "Inter Tight", sans-serif;
}

/* SCORM course bar: course name in the theme's type, buttons like the theme's. */
.masteriyo-scorm-course-header {
    border-bottom: 1px solid var(--od-line);
    box-shadow: none !important;
}
.masteriyo-scorm-course-header,
.masteriyo-scorm-course-header * {
    font-family: "Inter Tight", sans-serif !important;
    color: var(--od-ink);
}
.masteriyo-scorm-course-header a[class*="__button"] {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .5rem 1rem !important;
    border-radius: var(--od-radius) !important;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease;
}
.masteriyo-scorm-course-header__button-continue {
    border: 0 !important;
    background: var(--od-btn-bg) !important;
    color: var(--od-btn-text) !important;
}
.masteriyo-scorm-course-header__button-continue:hover { background: var(--od-btn-hover) !important; }
.masteriyo-scorm-course-header__button-exit {
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: var(--od-ink) !important;
}
.masteriyo-scorm-course-header__button-exit:hover { background: var(--od-band) !important; }

/* ------------------------------------------------------------------ *
 *  Course congratulations page (masteriyo-course-completed.php): the
 *  congratulations in the grey band, then a white page with the course
 *  card and the courses still to take.
 * ------------------------------------------------------------------ */
body.od-course-done-page { background: #fff; }
.od-done { background: #fff; padding-bottom: clamp(32px, 5vw, 72px); }
.od-done__wrap { max-width: 1472px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.od-done__band { background: transparent; margin: 0 !important; padding: clamp(24px, 3vw, 40px) 0 clamp(12px, 2vw, 24px); } /* white, no grey band (the grey bar above is the page's top) */
.od-done__eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    margin: 0 0 .9rem; padding: .3rem .75rem .3rem .45rem;
    border-radius: 9999px; background: rgba(28, 170, 123, .12);
    color: var(--od-green-hover); font-size: .875rem; font-weight: 600; line-height: 1.25rem;
}
.od-done__eyebrow svg { width: 18px; height: 18px; padding: 2px; border-radius: 9999px; background: var(--od-green); color: #fff; box-sizing: border-box; }
.od-done__title { margin: 0; color: var(--od-ink); font-size: 1.875rem; line-height: 1.2; font-weight: 700; }
@media (min-width: 1280px) { .od-done__title { font-size: 2.25rem; } }
.od-done__lead { max-width: 46rem; margin: .75rem 0 0; color: #475569; font-size: 1.05rem; line-height: 1.65; }
.od-done__lead strong { color: var(--od-ink); font-weight: 600; }

.od-done__body { padding-top: clamp(24px, 3vw, 40px); }
.od-done__card {
    display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center;
}
@media (min-width: 768px) { .od-done__card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; } }
.od-done__card--no-image { grid-template-columns: 1fr !important; }
.od-done__image { display: block; overflow: hidden; aspect-ratio: 162 / 96; border-radius: var(--od-radius); background: var(--od-img-fallback); }
.od-done__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-done__course { margin: 0; font-size: 1.5rem; line-height: 1.3; font-weight: 700; }
.od-done__course a { color: var(--od-ink); text-decoration: none; }
.od-done__course a:hover { text-decoration: underline; }
.od-done__date { margin: .5rem 0 0; color: #64748b; font-size: .95rem; }
.od-done__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.od-done__btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 2.75rem; padding: .625rem 1.25rem; box-sizing: border-box;
    border: 1px solid #e2e5ea; border-radius: var(--od-radius); background: #fff;
    color: var(--od-ink); font-size: .9375rem; font-weight: 600; line-height: 1.5rem;
    text-decoration: none; transition: background-color .15s ease, border-color .15s ease;
}
.od-done__btn:hover { background: var(--od-band); color: var(--od-ink); }
.od-done__btn--primary { border-color: var(--od-btn-bg); background: var(--od-btn-bg); color: var(--od-btn-text); }
.od-done__btn--primary:hover { border-color: var(--od-btn-hover); background: var(--od-btn-hover); color: var(--od-btn-text); }
@media (max-width: 479px) { .od-done__btn { flex: 1 1 100%; } }

.od-done__next { margin-top: clamp(40px, 5vw, 72px); }
.od-done__next-title { margin: 0 0 1.25rem; color: var(--od-ink); font-size: 1.5rem; line-height: 1.3; font-weight: 700; }
.od-done__grid.masteriyo-courses-wrapper { display: grid !important; grid-template-columns: 1fr; gap: 1.5rem; margin: 0; }
@media (min-width: 640px)  { .od-done__grid.masteriyo-courses-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .od-done__grid.masteriyo-courses-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.od-done__grid > .masteriyo-col { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }

.od-done__confetti { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }

/* SCORM player bar: no "Completed" badge-button once the course is done (Exit and
   Download Certificate stay). */
.masteriyo-scorm-course-header__button-complete { display: none !important; }

/* Course page sidebar: the Start / Continue / Review button like the cards' (rounded,
   beating Masteriyo's inline 2px), and "Back to Academy" a grey button without a border. */
body .masteriyo-single-course .masteriyo-single-course--aside .masteriyo-btn.masteriyo-single-course--btn,
body .masteriyo-single-course--aside .masteriyo-enroll-btn {
    width: 100% !important;
    justify-content: center;
    text-align: center;
    border-radius: var(--od-radius) !important;
}
body .masteriyo-single-course--aside .masteriyo-course-statistics__home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .625rem 1.25rem !important;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: var(--od-radius) !important;
    background: #f1f5f9 !important;
    color: var(--od-ink) !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    text-decoration: none;
    transition: background-color .15s ease;
}
body .masteriyo-single-course--aside .masteriyo-course-statistics__home:hover { background: #e2e8f0 !important; }

/* Phone "Newsfeed" side tab: grey like the other buttons (oncodaily.com's is green). */
button.newsfeedBtn { background: var(--od-btn-bg) !important; color: var(--od-btn-text) !important; box-shadow: -2px 0 8px rgba(15, 23, 42, .08); }
button.newsfeedBtn:hover { background: var(--od-btn-hover) !important; }

/* Account app sidebar: the current item is a light grey pill with ink text and
   icons (Masteriyo fills it with its primary colour and prints it white). */
.mto-account-sidebar a.chakra-link.active {
    background: var(--od-btn-bg) !important;
    color: var(--od-btn-text) !important;
}
.mto-account-sidebar a.chakra-link.active:hover { background: var(--od-btn-hover) !important; }
.mto-account-sidebar a.chakra-link.active *,
.mto-account-sidebar a.chakra-link.active svg,
.mto-account-sidebar a.chakra-link.active svg path {
    color: var(--od-btn-text) !important;
}
.mto-account-sidebar a.chakra-link.active svg[fill]:not([fill="none"]),
.mto-account-sidebar a.chakra-link.active svg path[fill]:not([fill="none"]) { fill: currentColor !important; }
.mto-account-sidebar a.chakra-link.active svg [stroke]:not([stroke="none"]) { stroke: currentColor !important; }

/* Course page Overview (the course's description): paragraph spacing and list
   bullets/indentation, which the theme's Tailwind reset takes away. */
.masteriyo-single-course .tab-content.course-overview > * + * { margin-top: 1em; }
.masteriyo-single-course .tab-content.course-overview ul,
.masteriyo-single-course .tab-content.course-overview ol { padding-left: 1.5em; }
.masteriyo-single-course .tab-content.course-overview ul { list-style: disc; }
.masteriyo-single-course .tab-content.course-overview ol { list-style: decimal; }
.masteriyo-single-course .tab-content.course-overview ul ul { list-style: circle; margin-top: .4em; }
.masteriyo-single-course .tab-content.course-overview li { display: list-item; }
.masteriyo-single-course .tab-content.course-overview li + li { margin-top: .4em; }
.masteriyo-single-course .tab-content.course-overview li > p { margin: 0; }
.masteriyo-single-course .tab-content.course-overview li::marker { color: #64748b; }
