/*
 * Dhimson Learn brand-aligned buttons
 * Shared across public, learner, company, tutor and admin layouts.
 */
:root {
    --dl-brand-magenta: #c21868;
    --dl-brand-magenta-dark: #9e1555;
    --dl-brand-navy: #17364a;
    --dl-brand-navy-dark: #102637;
    --dl-brand-focus: #f3a5c8;
}

/* Public header account actions: match the magenta and charcoal brand buttons. */
body.frontend-page .lms-chrome-navbar .btn-nav-login,
body.frontend-page .lms-chrome-navbar .btn-nav-register {
    display: inline-flex !important;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 5px 14px 5px 6px !important;
    border: 1px solid rgba(23, 54, 74, .12) !important;
    border-radius: 999px !important;
    font-size: .88rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.frontend-page .lms-chrome-navbar .btn-nav-login {
    color: var(--dl-brand-navy) !important;
    background: linear-gradient(145deg, #fff, #edf2f6) !important;
    box-shadow: 7px 7px 16px rgba(16, 38, 55, .14), -5px -5px 13px rgba(255,255,255,.96), inset 1px 1px 2px rgba(255,255,255,.9);
    animation: dl-neumo-breathe 4.8s ease-in-out infinite;
}

body.frontend-page nav.lms-chrome-navbar .btn-nav-register,
body.frontend-page .lms-chrome-navbar .btn-nav-register {
    color: #fff !important;
    background: linear-gradient(145deg, #34343b, #17171d) !important;
    border-color: rgba(255,255,255,.45) !important;
    box-shadow: 7px 7px 15px rgba(16, 22, 32, .24), -4px -4px 11px rgba(255,255,255,.72), inset 1px 1px 2px rgba(255,255,255,.2) !important;
    animation: dl-neumo-breathe-dark 4.8s 350ms ease-in-out infinite;
}

body.frontend-page .lms-chrome-navbar .btn-nav-icon {
    display: inline-grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: var(--dl-brand-magenta);
    box-shadow: 0 2px 8px rgba(16, 38, 55, .16);
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 800;
}

body.frontend-page .lms-chrome-navbar .btn-nav-register .btn-nav-icon {
    background: var(--dl-brand-magenta);
    color: #fff;
    box-shadow: 0 2px 8px rgba(194, 24, 104, .3);
    font-size: 1.15rem;
}

body.frontend-page .lms-chrome-navbar .btn-nav-login:hover,
body.frontend-page .lms-chrome-navbar .btn-nav-register:hover {
    transform: translateY(-2px);
}

/* Soft raised surfaces and a slow breathing highlight for the homepage actions. */
body.frontend-page.page-home .hero-section[data-home-carousel] .hero-cta-btn {
    min-height: 48px;
    border: 1px solid rgba(255,255,255,.74) !important;
    border-radius: 16px !important;
    animation: dl-neumo-breathe 4.8s ease-in-out infinite;
}
body.frontend-page.page-home .hero-section[data-home-carousel] .hero-cta-btn.btn-gradient {
    color: #fff !important;
    background: linear-gradient(145deg,#343943,#1b2029) !important;
    border-color: rgba(255,255,255,.52) !important;
    box-shadow: 8px 8px 18px rgba(2,14,25,.34), -5px -5px 14px rgba(255,255,255,.22), inset 1px 1px 2px rgba(255,255,255,.25), inset -1px -1px 2px rgba(0,0,0,.25) !important;
}
body.frontend-page.page-home .hero-section[data-home-carousel] .hero-cta-btn.btn-gradient i {
    color: #f24896;
}
body.frontend-page.page-home .hero-section[data-home-carousel] .hero-cta-btn.btn-secondary {
    color: #17364a !important;
    background: linear-gradient(145deg,#fff,#e8eef3) !important;
    border-color: rgba(255,255,255,.9) !important;
    box-shadow: 8px 8px 18px rgba(2,14,25,.22), -5px -5px 14px rgba(255,255,255,.72), inset 1px 1px 2px rgba(255,255,255,.95), inset -1px -1px 2px rgba(20,53,75,.08) !important;
    animation-delay: 450ms;
}
body.frontend-page.page-home .hero-section[data-home-carousel] .hero-carousel-arrow,
body.frontend-page.page-home .hero-section[data-home-carousel] .hero-carousel-pause {
    border-color: rgba(255,255,255,.52) !important;
    box-shadow: 5px 5px 12px rgba(2,14,25,.28), -3px -3px 9px rgba(255,255,255,.18), inset 1px 1px 2px rgba(255,255,255,.2) !important;
    animation: dl-neumo-breathe-dark 5s ease-in-out infinite;
}
body.frontend-page.page-home .hero-section[data-home-carousel] :is(.hero-cta-btn,.hero-carousel-arrow,.hero-carousel-pause):active {
    transform: translateY(1px) scale(.985) !important;
    box-shadow: inset 4px 4px 9px rgba(1,12,21,.35), inset -2px -2px 6px rgba(255,255,255,.12) !important;
}
@keyframes dl-neumo-breathe {
    0%,100% { box-shadow: 7px 7px 16px rgba(16,38,55,.14), -5px -5px 13px rgba(255,255,255,.92), 0 0 0 0 rgba(194,24,104,0); }
    50% { box-shadow: 8px 9px 19px rgba(16,38,55,.18), -6px -6px 15px rgba(255,255,255,1), 0 0 0 4px rgba(194,24,104,.07); }
}
@keyframes dl-neumo-breathe-dark {
    0%,100% { filter: brightness(1) drop-shadow(0 0 0 rgba(194, 24, 104, 0)); }
    50% { filter: brightness(1.055) drop-shadow(0 0 7px rgba(194, 24, 104, .3)); }
}

body.frontend-page .lms-chrome-navbar .btn-nav-login:hover {
    box-shadow: 0 8px 18px rgba(16, 38, 55, .18), inset 0 1px 0 #fff;
}

body.frontend-page nav.lms-chrome-navbar .btn-nav-register:hover,
body.frontend-page .lms-chrome-navbar .btn-nav-register:hover {
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(16, 22, 32, .3), 0 0 0 3px rgba(194, 24, 104, .15), inset 0 1px 0 rgba(255,255,255,.2) !important;
}

body.frontend-page .lms-chrome-navbar .btn-nav-login:focus-visible,
body.frontend-page .lms-chrome-navbar .btn-nav-register:focus-visible {
    outline: 3px solid var(--dl-brand-magenta) !important;
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    body.frontend-page .lms-chrome-navbar .btn-nav-login,
    body.frontend-page .lms-chrome-navbar .btn-nav-register {
        width: fit-content;
        margin: 6px 0;
    }
}

/* Keep semantic danger/success/warning buttons in their established colors. */
.btn,
.button {
    font-family: inherit;
    font-style: italic;
    font-weight: 700;
    letter-spacing: .01em;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.btn-primary,
.btn-gradient,
.button-primary {
    color: #fff !important;
    background: linear-gradient(120deg, var(--dl-brand-magenta), #d72d7c) !important;
    border-color: var(--dl-brand-magenta) !important;
    box-shadow: 0 5px 16px rgba(194, 24, 104, .18);
}

.btn-primary:hover:not(:disabled):not(.disabled),
.btn-gradient:hover:not(:disabled):not(.disabled),
.button-primary:hover:not(:disabled) {
    color: #fff !important;
    background: linear-gradient(120deg, var(--dl-brand-magenta-dark), #b91d67) !important;
    border-color: var(--dl-brand-magenta-dark) !important;
    box-shadow: 0 8px 20px rgba(194, 24, 104, .26);
    transform: translateY(-1px);
}

.btn-secondary,
.button-secondary {
    color: #fff !important;
    background: linear-gradient(120deg, var(--dl-brand-navy), var(--dl-brand-navy-dark)) !important;
    border-color: var(--dl-brand-navy) !important;
}

.btn-secondary:hover:not(:disabled):not(.disabled),
.button-secondary:hover:not(:disabled) {
    color: #fff !important;
    background: var(--dl-brand-navy-dark) !important;
    border-color: var(--dl-brand-navy-dark) !important;
    transform: translateY(-1px);
}

.btn-outline-primary,
.btn-outline-secondary,
.button-outline {
    color: var(--dl-brand-navy) !important;
    background: transparent !important;
    border-color: var(--dl-brand-navy) !important;
}

.btn-outline-primary:hover:not(:disabled):not(.disabled),
.btn-outline-secondary:hover:not(:disabled):not(.disabled),
.button-outline:hover:not(:disabled) {
    color: #fff !important;
    background: var(--dl-brand-navy) !important;
    border-color: var(--dl-brand-navy) !important;
}

.btn:focus-visible,
.button:focus-visible,
button.btn:focus-visible {
    outline: 3px solid var(--dl-brand-focus) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(194, 24, 104, .38) !important;
}

.btn:disabled,
.btn.disabled,
.button:disabled {
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .button,
    body.frontend-page .lms-chrome-navbar .btn-nav-login,
    body.frontend-page .lms-chrome-navbar .btn-nav-register {
        transition-duration: .01ms !important;
        animation: none !important;
    }
    body.frontend-page.page-home .hero-section[data-home-carousel] .hero-cta-btn,
    body.frontend-page.page-home .hero-section[data-home-carousel] .hero-carousel-arrow,
    body.frontend-page.page-home .hero-section[data-home-carousel] .hero-carousel-pause { animation:none !important; }
}

/* Consistent site-wide typography, while leaving icon glyphs and SVG artwork intact. */
html body,
html body :not(:is(svg, svg *, i, [class*="fa"], [class*="icon"], [data-lucide])) {
    font-family: Calibri, Arial, sans-serif !important;
    font-style: italic !important;
}

html body :is(svg, svg *, i, [class*="fa"], [class*="icon"], [data-lucide]) {
    font-style: normal !important;
}

/* Soft raised controls and a restrained breathing motion across every role area. */
.btn,
.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
body.frontend-page.page-home .home-nl-head__btn {
    border-radius: 14px !important;
    box-shadow: 4px 4px 9px rgba(16, 38, 55, .14),
        -3px -3px 8px rgba(255, 255, 255, .68),
        inset 0 1px 0 rgba(255, 255, 255, .24);
    animation: dl-site-button-breathe 5.2s ease-in-out infinite !important;
    transform-origin: center;
}

.btn:active,
.button:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
[role="button"]:active,
body.frontend-page.page-home .home-nl-head__btn:active {
    animation-play-state: paused;
    transform: translateY(1px) scale(.985);
    box-shadow: inset 3px 3px 7px rgba(16, 38, 55, .2),
        inset -2px -2px 5px rgba(255, 255, 255, .4);
}

@keyframes dl-site-button-breathe {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 0 rgba(194, 24, 104, 0));
        box-shadow: 4px 4px 9px rgba(16, 38, 55, .14), -3px -3px 8px rgba(255, 255, 255, .68), inset 0 1px 0 rgba(255, 255, 255, .24);
    }
    50% {
        filter: brightness(1.045) drop-shadow(0 0 7px rgba(194, 24, 104, .22));
        box-shadow: 6px 7px 13px rgba(16, 38, 55, .22), -4px -4px 10px rgba(255, 255, 255, .82), inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 3px rgba(194, 24, 104, .07);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .button,
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    [role="button"],
    body.frontend-page .lms-chrome-navbar .btn-nav-login,
    body.frontend-page .lms-chrome-navbar .btn-nav-register,
    body.frontend-page.page-home .home-nl-head__btn {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

/* Keep dropdown navigation as plain text links, not raised button controls. */
body.frontend-page .lms-chrome-navbar #liveLearningDropdown,
body.frontend-page .lms-chrome-navbar #tutorDropdown {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

/* A soft animated halo gives the rounded homepage banners a little depth. */
body.frontend-page.page-home #home-hero-carousel {
    animation: dl-banner-shadow-breathe 7.2s ease-in-out infinite;
}

@keyframes dl-banner-shadow-breathe {
    0%, 100% {
        box-shadow: 0 18px 42px rgba(10, 35, 48, .20), 0 0 0 rgba(194, 24, 104, 0);
    }
    50% {
        box-shadow: 0 24px 54px rgba(10, 35, 48, .28), 0 0 22px rgba(194, 24, 104, .12);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.frontend-page.page-home #home-hero-carousel { animation: none !important; }
}


/* Dhimson Learn brand identity: shared frontend palette from the logo. */
:root {
  --dl-brand-magenta: #c21868;
  --dl-brand-magenta-dark: #9e1555;
  --dl-brand-magenta-soft: #f9e8f0;
  --dl-brand-navy: #17364a;
  --dl-brand-navy-dark: #102637;
  --dl-brand-navy-soft: #e9f0f4;
  --dl-brand-focus: #f3a5c8;
  --bs-primary: #c21868;
  --bs-primary-rgb: 194, 24, 104;
  --bs-link-color: #c21868;
  --bs-link-hover-color: #9e1555;
}
body.frontend-page { color: #17364a; }
body.frontend-page h1, body.frontend-page h2, body.frontend-page h3,
body.frontend-page h4, body.frontend-page h5, body.frontend-page h6 { color: #17364a; }
body.frontend-page .hero-section h1, body.frontend-page .hero-section h2,
body.frontend-page .hero-section h3, body.frontend-page .bg-dark h1,
body.frontend-page .bg-dark h2, body.frontend-page .bg-dark h3,
body.frontend-page .text-white h1, body.frontend-page .text-white h2,
body.frontend-page .text-white h3 { color: #fff; }
body.frontend-page a:not(.btn):not(.nav-link):not(.dropdown-item) { color: #c21868; }
body.frontend-page a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
body.frontend-page a:not(.btn):not(.nav-link):not(.dropdown-item):focus-visible { color: #9e1555; }
body.frontend-page .lms-chrome-navbar .nav-link { color: #17364a; }
body.frontend-page .card, body.frontend-page .dashboard-card,
body.frontend-page .stat-card, body.frontend-page .panel,
body.frontend-page .modal-content, body.frontend-page .list-group-item { border-color: rgba(23,54,74,.14); }
body.frontend-page .card:hover, body.frontend-page .dashboard-card:hover,
body.frontend-page .stat-card:hover, body.frontend-page .panel:hover { border-color: rgba(194,24,104,.34); box-shadow: 0 10px 26px rgba(23,54,74,.10), 0 0 0 1px rgba(194,24,104,.05); }
body.frontend-page .form-control:focus, body.frontend-page .form-select:focus { border-color: #c21868; box-shadow: 0 0 0 .22rem rgba(194,24,104,.16); }
body.frontend-page .nav-tabs .nav-link.active, body.frontend-page .nav-pills .nav-link.active,
body.frontend-page .page-item.active .page-link { color: #fff; background-color: #c21868; border-color: #c21868; }
body.frontend-page .page-link { color: #17364a; }
body.frontend-page table thead th { color: #17364a; background-color: #e9f0f4; border-color: rgba(23,54,74,.14); }
body.frontend-page.page-home #home-hero-carousel .hero-background { background: linear-gradient(125deg,#102637 0%,#17364a 56%,#741447 100%) !important; }
/* Semantic success, warning, danger and info colors remain untouched. */


/* Final logo-theme cascade: brand tones across shared public and portal views. */
body.frontend-page { color: #17364a !important; }
body.frontend-page h1, body.frontend-page h2, body.frontend-page h3, body.frontend-page h4, body.frontend-page h5, body.frontend-page h6 { color: #17364a !important; }
body.frontend-page .hero-title, body.frontend-page #home-hero-carousel h1, body.frontend-page #home-hero-carousel h2, body.frontend-page #home-hero-carousel h3, body.frontend-page .hero-section h1, body.frontend-page .hero-section h2, body.frontend-page .hero-section h3, body.frontend-page .bg-dark h1, body.frontend-page .bg-dark h2, body.frontend-page .bg-dark h3, body.frontend-page .text-white h1, body.frontend-page .text-white h2, body.frontend-page .text-white h3 { color: #fff !important; }
body.frontend-page .text-white, body.frontend-page .text-white a:not(.btn), body.frontend-page .bg-dark, body.frontend-page .bg-dark a:not(.btn) { color: #fff !important; }
body.frontend-page a:not(.btn):not(.nav-link):not(.dropdown-item) { color: #c21868 !important; }
body.frontend-page a:not(.btn):not(.nav-link):not(.dropdown-item):hover, body.frontend-page a:not(.btn):not(.nav-link):not(.dropdown-item):focus-visible { color: #9e1555 !important; }
body.frontend-page .text-primary { color: #c21868 !important; }
body.frontend-page .bg-primary, body.frontend-page .btn-primary, body.frontend-page .page-item.active .page-link { color: #fff !important; background-color: #c21868 !important; border-color: #c21868 !important; }
body.frontend-page .btn-primary:hover, body.frontend-page .btn-primary:focus-visible { background-color: #9e1555 !important; border-color: #9e1555 !important; }
body.frontend-page .form-control:focus, body.frontend-page .form-select:focus { border-color: #c21868 !important; box-shadow: 0 0 0 .22rem rgba(194,24,104,.16) !important; }
/* Keep semantic success, warning, danger, and info colors intact. */


/* Ensure heading fill effects use the Dhimson logo palette across shared pages. */
body.frontend-page.frontend-page main.main-content :is(h1,h2,h3,h4,h5,h6,.page-title,.section-title,.card-title,.course-title,.ct-hero-title,.bc-hero-title,.bc-page-title,.wb-hero-title,.wbx-title,.bl-hero-title,.bl-show-title,.ec-hero-title,.tl-hero-title,.hc-hero-title,.ab-hero-title,.ts-hero-title,.tp-hero-title,.tutor-title,.home-trust-title,.cta-title):not(.hero-ref-title):not(.learn-current-lesson-title) { color: #17364a !important; -webkit-text-fill-color: #17364a !important; }
body.frontend-page.frontend-page main.main-content :is(h1,h2,h3,h4,h5,h6,.page-title,.section-title,.card-title,.course-title,.ct-hero-title,.bc-hero-title,.bc-page-title,.wb-hero-title,.wbx-title,.bl-hero-title,.bl-show-title,.ec-hero-title,.tl-hero-title,.hc-hero-title,.ab-hero-title,.ts-hero-title,.tp-hero-title,.tutor-title,.home-trust-title,.cta-title):not(.hero-ref-title):not(.learn-current-lesson-title) :is(span,strong,em) { color: #17364a !important; -webkit-text-fill-color: #17364a !important; }
body.frontend-page.frontend-page main.main-content :is(.tl-hero-title,.tl-hero-title .tl-gradient,.bc-hero-title,.wb-hero-title,.hc-hero-title,.ab-hero-title,.ts-hero-title,.tp-hero-title) :is(span,strong,em), body.frontend-page.frontend-page main.main-content :is(.tl-hero-title,.tl-gradient) { color: #c21868 !important; -webkit-text-fill-color: #c21868 !important; }
body.frontend-page.frontend-page main.main-content :is(.hero-title,#home-hero-carousel h1,#home-hero-carousel h2,#home-hero-carousel h3,.hero-section h1,.hero-section h2,.hero-section h3,.bg-dark h1,.bg-dark h2,.bg-dark h3,.text-white h1,.text-white h2,.text-white h3) { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }

/* Extend the logo palette into signed-in learner, tutor, company and admin portals. */
body[class*="-portal"] { color: #17364a; }
body[class*="-portal"] main :is(h1,h2,h3,h4,h5,h6,.page-title,.section-title,.card-title,.course-title), body[class*="-portal"] .main-content :is(h1,h2,h3,h4,h5,h6,.page-title,.section-title,.card-title,.course-title), body.company-storefront main :is(h1,h2,h3,h4,h5,h6,.page-title,.section-title,.card-title,.course-title) { color: #17364a !important; -webkit-text-fill-color: #17364a !important; }
body[class*="-portal"] main a:not(.btn):not(.nav-link):not(.dropdown-item):not([role="button"]), body[class*="-portal"] .main-content a:not(.btn):not(.nav-link):not(.dropdown-item):not([role="button"]), body.company-storefront main a:not(.btn):not(.nav-link):not(.dropdown-item):not([role="button"]) { color: #c21868; }
body[class*="-portal"] main a:not(.btn):not(.nav-link):not(.dropdown-item):not([role="button"]):hover, body[class*="-portal"] .main-content a:not(.btn):not(.nav-link):not(.dropdown-item):not([role="button"]):hover { color: #9e1555; }
body[class*="-portal"] .text-primary, body.company-storefront .text-primary { color: #c21868 !important; }
body[class*="-portal"] .btn-primary, body[class*="-portal"] .page-item.active .page-link, body.company-storefront .btn-primary { color: #fff !important; background-color: #c21868 !important; border-color: #c21868 !important; }
body[class*="-portal"] .btn-primary:hover, body[class*="-portal"] .btn-primary:focus-visible, body.company-storefront .btn-primary:hover { background-color: #9e1555 !important; border-color: #9e1555 !important; }
body[class*="-portal"] .form-control:focus, body[class*="-portal"] .form-select:focus, body.company-storefront .form-control:focus, body.company-storefront .form-select:focus { border-color: #c21868 !important; box-shadow: 0 0 0 .22rem rgba(194,24,104,.16) !important; }
body[class*="-portal"] .card, body[class*="-portal"] .panel, body[class*="-portal"] .modal-content, body.company-storefront .card { border-color: rgba(23,54,74,.14); }

/* Site-wide breathing neumorphic action buttons (live update). */
@keyframes dl-button-breathe-live {
  0%, 100% { box-shadow: 7px 7px 16px rgba(16,38,55,.18), -6px -6px 15px rgba(255,255,255,.92); transform: translateY(0); }
  50% { box-shadow: 9px 9px 20px rgba(16,38,55,.22), -7px -7px 18px rgba(255,255,255,.96), 0 0 0 4px rgba(194,24,104,.045); transform: translateY(-1px); }
}
body.frontend-page :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]),
body[class*="-portal"] :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]),
body.company-storefront :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]) {
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  color: #000 !important;
  box-shadow: 7px 7px 16px rgba(16,38,55,.18), -6px -6px 15px rgba(255,255,255,.92) !important;
  animation: dl-button-breathe-live 4.2s ease-in-out infinite;
  transition: transform .22s ease, box-shadow .28s ease, color .2s ease, background-color .2s ease !important;
}
/* Filled/dark action buttons use white labels for contrast; all other buttons use black. */
body.frontend-page :is(.btn-primary, .btn-dark, .btn-secondary, .btn-success, .btn-danger, .btn-info, .btn-register, .btn-nav-register, .footer-newsletter-submit, .tl-search-btn, .dl-assistant-send, .dl-assistant-fab),
body[class*="-portal"] :is(.btn-primary, .btn-dark, .btn-secondary, .btn-success, .btn-danger, .btn-info, .btn-register, .btn-nav-register, .footer-newsletter-submit, .tl-search-btn, .dl-assistant-send, .dl-assistant-fab),
body.company-storefront :is(.btn-primary, .btn-dark, .btn-secondary, .btn-success, .btn-danger, .btn-info, .btn-register, .btn-nav-register, .footer-newsletter-submit, .tl-search-btn, .dl-assistant-send, .dl-assistant-fab) {
  color: #fff !important;
}
body.frontend-page .lms-chrome-navbar .btn-nav-login,
body[class*="-portal"] .lms-chrome-navbar .btn-nav-login,
body.frontend-page .lms-chrome-navbar .btn-nav-register,
body[class*="-portal"] .lms-chrome-navbar .btn-nav-register {
  border: 0 !important;
  border-width: 0 !important;
}
body.frontend-page :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):hover,
body[class*="-portal"] :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):hover,
body.company-storefront :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 10px 10px 20px rgba(16,38,55,.2), -7px -7px 17px rgba(255,255,255,.96), 0 0 0 4px rgba(194,24,104,.055) !important;
}
body.frontend-page :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):active,
body[class*="-portal"] :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):active,
body.company-storefront :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):active {
  transform: translateY(1px) scale(.985);
  box-shadow: inset 4px 4px 8px rgba(16,38,55,.16), inset -4px -4px 8px rgba(255,255,255,.78) !important;
}
body.frontend-page :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):focus-visible,
body[class*="-portal"] :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):focus-visible,
body.company-storefront :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):focus-visible {
  outline: 2px solid #c21868 !important;
  outline-offset: 3px;
}
body.frontend-page :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):disabled,
body[class*="-portal"] :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):disabled,
body.company-storefront :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]):disabled {
  animation: none;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  body.frontend-page :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]),
  body[class*="-portal"] :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]),
  body.company-storefront :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"]) { animation: none !important; transition: none !important; }
}


/* Explicitly include branded header links and controls with component-specific styles. */
body.frontend-page :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"], .btn-nav-login, .btn-nav-register, .footer-newsletter-submit, .tl-search-btn, .lms-link-btn),
body[class*="-portal"] :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"], .btn-nav-login, .btn-nav-register, .footer-newsletter-submit, .tl-search-btn, .lms-link-btn),
body.company-storefront :is(button, input[type="button"], input[type="submit"], input[type="reset"], .btn, a[role="button"], [role="button"], .btn-nav-login, .btn-nav-register, .footer-newsletter-submit, .tl-search-btn, .lms-link-btn) {
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  color: #000 !important;
  box-shadow: 7px 7px 16px rgba(16,38,55,.18), -6px -6px 15px rgba(255,255,255,.92) !important;
  animation: dl-button-breathe-live 4.2s ease-in-out infinite !important;
}
body.frontend-page :is(.btn-nav-register, .btn-primary, .btn-dark, .btn-secondary, .btn-success, .btn-danger, .btn-info, .btn-register, .footer-newsletter-submit, .tl-search-btn, .dl-assistant-send, .dl-assistant-fab),
body[class*="-portal"] :is(.btn-nav-register, .btn-primary, .btn-dark, .btn-secondary, .btn-success, .btn-danger, .btn-info, .btn-register, .footer-newsletter-submit, .tl-search-btn, .dl-assistant-send, .dl-assistant-fab),
body.company-storefront :is(.btn-nav-register, .btn-primary, .btn-dark, .btn-secondary, .btn-success, .btn-danger, .btn-info, .btn-register, .footer-newsletter-submit, .tl-search-btn, .dl-assistant-send, .dl-assistant-fab) {
  color: #fff !important;
}
body.frontend-page .lms-chrome-navbar :is(.btn-nav-login, .btn-nav-register),
body[class*="-portal"] .lms-chrome-navbar :is(.btn-nav-login, .btn-nav-register) {
  border: 0 !important;
  border-width: 0 !important;
  animation: dl-button-breathe-live 4.2s ease-in-out infinite !important;
}
body.frontend-page .lms-chrome-navbar .btn-nav-login,
body[class*="-portal"] .lms-chrome-navbar .btn-nav-login { color: #000 !important; }


/* Final contrast overrides for branded controls whose component CSS is more specific. */
body.frontend-page #navbarNav a.btn-nav-login,
body[class*="-portal"] #navbarNav a.btn-nav-login { color: #000 !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; }
body.frontend-page #navbarNav a.btn-nav-register,
body[class*="-portal"] #navbarNav a.btn-nav-register { color: #fff !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; }
body.frontend-page button.tl-search-btn.tl-search-btn,
body[class*="-portal"] button.tl-search-btn.tl-search-btn { color: #fff !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; box-shadow: 7px 7px 16px rgba(16,38,55,.18), -6px -6px 15px rgba(255,255,255,.92) !important; }
body.frontend-page #footer-newsletter-submit,
body[class*="-portal"] #footer-newsletter-submit { color: #fff !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; box-shadow: 7px 7px 16px rgba(16,38,55,.18), -6px -6px 15px rgba(255,255,255,.92) !important; }
body.frontend-page button.btn-primary.btn-primary,
body[class*="-portal"] button.btn-primary.btn-primary,
body.frontend-page button.btn-dark.btn-dark,
body[class*="-portal"] button.btn-dark.btn-dark { color: #fff !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; }
body.frontend-page footer.professional-footer.dynamic-footer button.lms-link-btn.lms-link-btn,
body[class*="-portal"] footer.professional-footer.dynamic-footer button.lms-link-btn.lms-link-btn { color: #fff !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; }
body.frontend-page button.btn-outline-dark.btn-outline-dark,
body[class*="-portal"] button.btn-outline-dark.btn-outline-dark,
body.frontend-page button.btn-light.btn-light,
body[class*="-portal"] button.btn-light.btn-light { color: #000 !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; }
@media (prefers-reduced-motion: reduce) {
  body.frontend-page :is(button, .btn, .btn-nav-login, .btn-nav-register, .lms-link-btn),
  body[class*="-portal"] :is(button, .btn, .btn-nav-login, .btn-nav-register, .lms-link-btn) { animation: none !important; }
}


/* Tutor-directory CTA and filter controls; keep navigation dropdowns plain. */
body.frontend-page a.tl-btn-primary.tl-btn-sm:not(.btn):not(.nav-link):not(.dropdown-item),
body[class*="-portal"] a.tl-btn-primary.tl-btn-sm:not(.btn):not(.nav-link):not(.dropdown-item) { color: #fff !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; box-shadow: 7px 7px 16px rgba(16,38,55,.18), -6px -6px 15px rgba(255,255,255,.92) !important; }
body.frontend-page a.tl-btn-outline.tl-btn-sm:not(.btn):not(.nav-link):not(.dropdown-item),
body[class*="-portal"] a.tl-btn-outline.tl-btn-sm:not(.btn):not(.nav-link):not(.dropdown-item),
body.frontend-page a.tl-sort-tab:not(.btn):not(.nav-link):not(.dropdown-item),
body[class*="-portal"] a.tl-sort-tab:not(.btn):not(.nav-link):not(.dropdown-item) { color: #000 !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; box-shadow: 7px 7px 16px rgba(16,38,55,.14), -5px -5px 13px rgba(255,255,255,.92) !important; }
body.frontend-page #navbarNav button.nav-link.dropdown-toggle,
body[class*="-portal"] #navbarNav button.nav-link.dropdown-toggle { color: #000 !important; border: 0 !important; box-shadow: none !important; animation: none !important; }

/* Keep the existing plain header dropdown navigation black, without button effects. */
body.frontend-page .navbar .nav-link.dropdown-toggle,
body[class*="-portal"] .navbar .nav-link.dropdown-toggle { color: #000 !important; border: 0 !important; box-shadow: none !important; animation: none !important; }

/* Header dropdown controls remain plain text links; enforce pure black only. */
body.frontend-page #liveLearningDropdown, body.frontend-page #tutorDropdown,
body[class*="-portal"] #liveLearningDropdown, body[class*="-portal"] #tutorDropdown { color: #000 !important; animation: none !important; box-shadow: none !important; border: 0 !important; }


/* Cover legacy and homepage-specific CTA anchors that do not use the Bootstrap .btn class. */
body.frontend-page a[class*="btn"]:not(.btn):not(.nav-link):not(.dropdown-item),
body[class*="-portal"] a[class*="btn"]:not(.btn):not(.nav-link):not(.dropdown-item),
body.company-storefront a[class*="btn"]:not(.btn):not(.nav-link):not(.dropdown-item) {
  color: #000 !important; border: 0 !important; border-width: 0 !important;
  box-shadow: 7px 7px 16px rgba(16,38,55,.16), -6px -6px 15px rgba(255,255,255,.92) !important;
  animation: dl-button-breathe-live 4.2s ease-in-out infinite !important;
}
body.frontend-page a.btn:not(.btn-nav-login):not(.btn-nav-register),
body[class*="-portal"] a.btn:not(.btn-nav-login):not(.btn-nav-register),
body.company-storefront a.btn:not(.btn-nav-login):not(.btn-nav-register) {
  color: #000 !important; border: 0 !important; border-width: 0 !important;
  box-shadow: 7px 7px 16px rgba(16,38,55,.16), -6px -6px 15px rgba(255,255,255,.92) !important;
  animation: dl-button-breathe-live 4.2s ease-in-out infinite !important;
}
body.frontend-page a.btn.btn-primary, body.frontend-page a.btn.btn-gradient,
body.frontend-page a.btn.tutor-cta-btn.btn-gradient, body.frontend-page a.btn.hero-cta-btn.btn-gradient,
body.frontend-page a.home-nl-head__btn--primary,
body[class*="-portal"] a.btn.btn-primary, body[class*="-portal"] a.btn.btn-gradient,
body[class*="-portal"] a.btn.tutor-cta-btn.btn-gradient, body[class*="-portal"] a.btn.hero-cta-btn.btn-gradient,
body[class*="-portal"] a.home-nl-head__btn--primary,
body.company-storefront a.btn.btn-primary, body.company-storefront a.btn.btn-gradient {
  color: #fff !important;
}
body.frontend-page a.btn.btn-secondary, body.frontend-page a.btn.btn-outline,
body.frontend-page a.btn.btn-outline-dark, body.frontend-page a.home-nl-head__btn--outline,
body[class*="-portal"] a.btn.btn-secondary, body[class*="-portal"] a.btn.btn-outline,
body[class*="-portal"] a.btn.btn-outline-dark, body[class*="-portal"] a.home-nl-head__btn--outline,
body.company-storefront a.btn.btn-secondary, body.company-storefront a.btn.btn-outline { color: #000 !important; }
body.frontend-page a.hero-cta-btn.btn-secondary,
body[class*="-portal"] a.hero-cta-btn.btn-secondary { color: #000 !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; }
body.frontend-page a.hiw-step-btn, body.frontend-page a.efs-card__btn,
body.frontend-page a.home-nl-head__btn, body[class*="-portal"] a.hiw-step-btn,
body[class*="-portal"] a.efs-card__btn, body[class*="-portal"] a.home-nl-head__btn {
  border: 0 !important; border-width: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important;
  box-shadow: 7px 7px 16px rgba(16,38,55,.14), -5px -5px 13px rgba(255,255,255,.92) !important;
}
body.frontend-page a.hiw-step-btn, body.frontend-page a.efs-card__btn,
body.frontend-page a.home-nl-head__btn--outline,
body[class*="-portal"] a.hiw-step-btn, body[class*="-portal"] a.efs-card__btn,
body[class*="-portal"] a.home-nl-head__btn--outline { color: #000 !important; }
body.frontend-page a.home-nl-head__btn--primary,
body[class*="-portal"] a.home-nl-head__btn--primary { color: #fff !important; }


/* Home page rules with specificity above its carousel and newsletter component styles. */
body.frontend-page.page-home .hero-section[data-home-carousel] a.hero-cta-btn {
  border: 0 !important; border-width: 0 !important;
  animation: dl-button-breathe-live 4.2s ease-in-out infinite !important;
  box-shadow: 7px 7px 16px rgba(16,38,55,.18), -6px -6px 15px rgba(255,255,255,.92) !important;
}
body.frontend-page.page-home .hero-section[data-home-carousel] a.hero-cta-btn.btn-secondary { color: #000 !important; }
body.frontend-page.page-home .hero-section[data-home-carousel] a.hero-cta-btn.btn-gradient { color: #fff !important; }
body.frontend-page.page-home a.home-nl-head__btn.home-nl-head__btn--primary { color: #fff !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; }
body.frontend-page.page-home a.home-nl-head__btn.home-nl-head__btn--outline { color: #000 !important; border: 0 !important; animation: dl-button-breathe-live 4.2s ease-in-out infinite !important; }



/* Final live-site contrast and empty-state repair · 24 Oct 2026 */
/* Register treatment: charcoal surface, white label, magenta accent, visible breathing shadow. */
body.frontend-page a.dl-home-btn--register,
body.frontend-page button.dl-home-btn--register,
body[class*="-portal"] a.dl-home-btn--register,
body[class*="-portal"] button.dl-home-btn--register,
body.company-storefront a.dl-home-btn--register,
body.company-storefront button.dl-home-btn--register {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(145deg, #30343d, #171920) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 7px 7px 16px rgba(16, 38, 55, .18), -5px -5px 13px rgba(255,255,255,.82) !important;
    animation: dl-button-breathe-live 4.2s ease-in-out infinite !important;
}
body.frontend-page a.dl-home-btn--register :is(span,strong,em,i,svg),
body.frontend-page button.dl-home-btn--register :is(span,strong,em,i,svg),
body[class*="-portal"] a.dl-home-btn--register :is(span,strong,em,i,svg),
body.company-storefront a.dl-home-btn--register :is(span,strong,em,i,svg) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
/* Login treatment: light neumorphic surface and navy label. */
body.frontend-page a.dl-home-btn--login,
body.frontend-page button.dl-home-btn--login,
body[class*="-portal"] a.dl-home-btn--login,
body[class*="-portal"] button.dl-home-btn--login,
body.company-storefront a.dl-home-btn--login,
body.company-storefront button.dl-home-btn--login {
    color: #17364a !important;
    -webkit-text-fill-color: #17364a !important;
    background: linear-gradient(145deg, #fff, #edf2f6) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 7px 7px 16px rgba(16, 38, 55, .14), -5px -5px 13px rgba(255,255,255,.96) !important;
    animation: dl-button-breathe 4.8s ease-in-out infinite !important;
}
body.frontend-page a.dl-home-btn--login :is(span,strong,em,i,svg),
body.frontend-page button.dl-home-btn--login :is(span,strong,em,i,svg),
body[class*="-portal"] a.dl-home-btn--login :is(span,strong,em,i,svg),
body.company-storefront a.dl-home-btn--login :is(span,strong,em,i,svg) {
    color: #17364a !important;
    -webkit-text-fill-color: #17364a !important;
}
/* Fix the black-on-black action labels shown on course filters and empty states. */
body.frontend-page main.main-content :is(.ac-filter-btn,.wb-empty-btn--primary),
body.frontend-page main.main-content a:is(.ac-filter-btn,.wb-empty-btn--primary),
body.frontend-page main.main-content button:is(.ac-filter-btn,.wb-empty-btn--primary) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(145deg, #30343d, #171920) !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 44px;
    box-shadow: 6px 6px 14px rgba(16,38,55,.18), -4px -4px 11px rgba(255,255,255,.88) !important;
    animation: dl-button-breathe-live 4.2s ease-in-out infinite !important;
}
body.frontend-page main.main-content :is(.ac-clear-btn,.wb-empty-btn--outline) {
    color: #17364a !important;
    -webkit-text-fill-color: #17364a !important;
    background: linear-gradient(145deg, #fff, #edf2f6) !important;
    border: 0 !important;
    border-radius: 999px !important;
}
body.frontend-page main.main-content .wb-empty-btn--primary :is(span,i,svg),
body.frontend-page main.main-content .ac-filter-btn :is(span,i,svg) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
/* Bring all catalogue selects into the same rounded, filled brand treatment. */
body.frontend-page main.main-content :is(select,.form-select,.filter-select) {
    color: #17364a !important;
    background-color: #f7f9fc !important;
    border: 1px solid rgba(23,54,74,.16) !important;
    border-radius: 999px !important;
    min-height: 48px;
    padding-inline: 1rem 2.7rem !important;
    box-shadow: inset 2px 2px 5px rgba(23,54,74,.045), 3px 3px 8px rgba(23,54,74,.06) !important;
}
body.frontend-page main.main-content :is(select,.form-select,.filter-select):focus {
    border-color: #c21868 !important;
    box-shadow: 0 0 0 3px rgba(194,24,104,.14) !important;
}
body.frontend-page main.main-content :is(select,.form-select,.filter-select) option {
    color: #17364a;
    background: #f7f9fc;
}
/* Shorten and elevate the no-results sections so the empty catalogue reads as an intentional state. */
body.frontend-page main.main-content .ac-empty,
body.frontend-page main.main-content .bc-empty {
    width: min(100% - 2rem, 900px) !important;
    min-height: 0 !important;
    margin: 1.25rem auto 2rem !important;
    padding: clamp(1.75rem, 4vw, 2.5rem) !important;
    border: 1px solid rgba(23,54,74,.12) !important;
    border-radius: 28px !important;
    background: linear-gradient(145deg, #fff, #f7f9fc) !important;
    box-shadow: 8px 10px 26px rgba(16,38,55,.08), -5px -5px 16px rgba(255,255,255,.95) !important;
    text-align: center;
}
body.frontend-page main.main-content .ac-empty-icon {
    color: #c21868 !important;
    background: #f9e8f0 !important;
    border-radius: 20px !important;
}
body.frontend-page main.main-content .bc-empty-text {
    color: #17364a !important;
    line-height: 1.55;
}
/* Consistent brand color for webinar empty-state actions and remove the unrelated violet. */
body.frontend-page main.main-content .wb-empty-btn--primary {
    background: linear-gradient(145deg, #30343d, #171920) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body.frontend-page main.main-content .wb-empty-btn--outline {
    background: linear-gradient(145deg, #fff, #edf2f6) !important;
    color: #17364a !important;
    -webkit-text-fill-color: #17364a !important;
    border-color: rgba(23,54,74,.12) !important;
}
/* Newsletter submit and cookie controls must remain readable on their dark surfaces. */
body.frontend-page main.main-content :is(.footer-newsletter-submit,#footer-newsletter-submit,#webinars-newsletter-submit) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(145deg, #30343d, #171920) !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 48px;
}
body.frontend-page .lms-link-btn {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(145deg, #30343d, #171920) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: .65rem 1.1rem !important;
}
/* Assistant controls use Dhimson magenta/navy instead of the browser-blue theme. */
body.frontend-page :is(#dlAssistantFab,.dl-assistant-fab,.dl-assistant-send) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(145deg, #d72d7c, #9e1555) !important;
    border: 0 !important;
    box-shadow: 0 8px 22px rgba(158,21,85,.28), 4px 4px 10px rgba(23,54,74,.14) !important;
}
body.frontend-page :is(#dlAssistantFab,.dl-assistant-fab,.dl-assistant-send) :is(svg,path,circle,line,polyline,polygon,i) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    stroke: #fff !important;
    fill: currentColor;
}
/* Remove unrelated green success buttons while retaining readable semantic text. */
body.frontend-page main.main-content :is(.btn-success,.btn-outline-success) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(145deg, #c21868, #9e1555) !important;
    border: 0 !important;
    border-radius: 999px !important;
}
@media (max-width: 767.98px) {
    body.frontend-page main.main-content .ac-empty,
    body.frontend-page main.main-content .bc-empty { width: calc(100% - 1rem) !important; padding: 1.5rem 1rem !important; border-radius: 22px !important; }
    body.frontend-page main.main-content .ac-filter-btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    body.frontend-page a.dl-home-btn--register,
    body.frontend-page button.dl-home-btn--register,
    body.frontend-page a.dl-home-btn--login,
    body.frontend-page button.dl-home-btn--login,
    body.frontend-page main.main-content :is(.ac-filter-btn,.wb-empty-btn--primary) { animation: none !important; transition: none !important; }
}
