:root{--color-primary: #455465;--color-secondary: #007ab8;--color-tertiary: #1ea4a9;--color-state: #0074be;--color-state-hover: #006ab4;--color-state-focus: #006ab4;--color-state-active: #0059a3;--color-state-highlight: #f6f9d7;--color-state-highlight-neutral: var(--color-neutral-3);--color-state-disabled: var(--color-neutral-5);--color-neutral-1: #fff;--color-neutral-2: #fafafa;--color-neutral-3: #f7f7f7;--color-neutral-4: #e6e4e4;--color-neutral-5: #c7c7c7;--color-neutral-6: #767676;--color-neutral-7: #262626;--color-background: var(--color-neutral-1);--color-border: var(--color-neutral-5);--color-text: var(--color-neutral-7);--color-text-disabled: var(--color-neutral-5);--color-text-hint: var(--color-neutral-6);--link-color: var(--color-state);--link-color-hover: var(--color-state-hover);--nav-bg-color: #fafafa;--nav-text-color: var(--color-text);--nav-selected-color: var(--color-state);--nav-border-colour: rgba(128, 128, 128, 0.2);--nav-width: 15rem;--nav-collapsed-width: 5rem;--nav-button-size: 1.25rem;--nav-logo-width: 7.5rem;--nav-logo-height: 7.5rem;--nav-logomark-width: 2.5rem;--nav-logomark-height: 2.5rem;--footer-bg-color: #fff;--footer-text-color: var(--color-text);--footer-text-color-hover: var(--footer-text-color);--btn-accent-color: var(--color-state);--btn-accent-color-active: var(--color-state-active);--btn-accent-color-hover: var(--color-state-hover);--btn-accent-color-disabled: var(--color-state-disabled);--page-content-padding-desktop: calc(var(--gap-base) * 8)}.tui-theme_inspire-navItem{--tui-theme_inspire-navItem-height: 2.75rem;--tui-theme_inspire-navItem-indicator-height: 2rem;--tui-theme_inspire-navItem-top-level-nav-item-padding: 10px;--tui-theme_inspire-navItem-nav-item-padding: 6px;display:flex;flex-grow:1;flex-wrap:wrap;height:var(--tui-theme_inspire-navItem-height);padding-top:calc(var(--gap-base) * 1);color:var(--nav-tab-text-color)}.tui-theme_inspire-navItem--navExpanded{height:100%}.tui-theme_inspire-navItem__icon{width:1.2em;height:1.2em;margin:auto}.tui-theme_inspire-navItem__icon--navExpanded{margin:calc(var(--gap-base) * 3) auto auto calc(var(--gap-base) * 3)}.tui-theme_inspire-navItem .tui-theme_inspire-navItem{padding-top:0}.tui-theme_inspire-navItem--selected{color:var(--nav-selected-color)}.tui-theme_inspire-navItem--selected:before{height:var(--tui-theme_inspire-navItem-indicator-height);margin-top:calc(var(--gap-base) * 1);border-right:calc(var(--gap-base) * 1) solid var(--nav-selected-color);border-top-right-radius:calc(var(--gap-base) * 1);border-bottom-right-radius:calc(var(--gap-base) * 1);content:""}.tui-theme_inspire-navItem .tui-theme_inspire-navItem--selected:before{margin-top:0}.tui-theme_inspire-navItem--link{flex-wrap:nowrap}.tui-theme_inspire-navItem__heading{display:flex;flex-grow:1;align-items:flex-start;padding:0;background-color:inherit;border:none;border-radius:var(--btn-radius)}.tui-theme_inspire-navItem__heading--childSelected{color:var(--nav-selected-color)}.tui-theme_inspire-navItem__heading--depth-0{margin-left:calc(var(--gap-base) * 5);font-weight:600}.tui-theme_inspire-navItem__heading--depth-0.tui-theme_inspire-navItem__heading--navExpanded{margin-left:calc(var(--gap-base) * 3)}.tui-theme_inspire-navItem__heading--depth-0.tui-theme_inspire-navItem__heading--selected{margin-left:calc(var(--gap-base) * 4)}.tui-theme_inspire-navItem__heading--depth-0.tui-theme_inspire-navItem__heading--selected.tui-theme_inspire-navItem__heading--navExpanded{margin-left:calc(var(--gap-base) * 2)}.tui-theme_inspire-navItem__heading--depth-0 .tui-theme_inspire-navItem__headingAction{margin:calc(var(--gap-base) * 2)}.tui-theme_inspire-navItem__heading--depth-1{margin-left:calc(var(--gap-base) * 10);font-weight:400}.tui-theme_inspire-navItem__heading--depth-1.tui-theme_inspire-navItem__heading--selected{margin-left:calc(var(--gap-base) * 9)}.tui-theme_inspire-navItem__heading--depth-2{margin-left:calc(var(--gap-base) * 13)}.tui-theme_inspire-navItem__heading--depth-2.tui-theme_inspire-navItem__heading--selected{margin-left:calc(var(--gap-base) * 12)}.tui-theme_inspire-navItem__heading--link{color:var(--nav-tab-text-color)}.tui-theme_inspire-navItem__heading--link:hover,.tui-theme_inspire-navItem__heading--link:focus{color:var(--nav-tab-text-color);text-decoration:none}.tui-theme_inspire-navItem__heading--link.tui-theme_inspire-navItem__heading--selected{color:var(--nav-selected-color)}@media (hover:hover){.tui-theme_inspire-navItem__heading:hover{background-color:color-mix(in srgb, var(--nav-tab-text-color) 10%, transparent)}}.tui-theme_inspire-navItem__heading:focus-visible{outline:2px solid var(--nav-tab-text-color)}.tui-theme_inspire-navItem__headingText{flex-grow:1;margin:auto;padding:var(--tui-theme_inspire-navItem-nav-item-padding) calc(var(--gap-base) * 1) var(--tui-theme_inspire-navItem-nav-item-padding) calc(var(--gap-base) * 3);text-align:left;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}.tui-theme_inspire-navItem__headingText--depth-0{padding:var(--tui-theme_inspire-navItem-top-level-nav-item-padding) calc(var(--gap-base) * 1) var(--tui-theme_inspire-navItem-top-level-nav-item-padding) calc(var(--gap-base) * 3)}.tui-theme_inspire-navItem__headingAction{flex-basis:1.5rem;flex-shrink:0;height:1.5rem;margin:calc(var(--gap-base) * 1) calc(var(--gap-base) * 2);padding:var(--tui-theme_inspire-navItem-nav-item-padding);color:var(--nav-tab-text-color)}.tui-theme_inspire-navItem__children{flex-basis:100%;margin-bottom:calc(var(--gap-base) * 2);margin-left:0;list-style:none}.tui-theme_inspire-navigation__toggle{position:absolute;z-index:1;width:var(--nav-button-size);height:var(--nav-button-size);margin:calc(var(--gap-base) * 4);color:var(--color-text)}.tui-theme_inspire-navigation__toggle--overlay{display:block}.tui-theme_inspire-navigation__toggle--expand{display:none}@media (min-width:992px){.tui-theme_inspire-navigation__toggle{left:var(--nav-collapsed-width)}.tui-theme_inspire-navigation__toggle--overlay{display:none}.tui-theme_inspire-navigation__toggle--expand{position:fixed;display:block;margin:calc(var(--gap-base) * 1);background-color:var(--color-neutral-3);opacity:0;transition:opacity var(--transition-button-duration) var(--transition-button-function) 1s}.tui-theme_inspire-navigation__toggle--expand:hover,.tui-theme_inspire-navigation__toggle--expand:focus,.tui-theme_inspire-navigation__toggle--expand:has(~ .tui-theme_inspire-navigation>.tui-theme_inspire-navigation__nav:hover),.tui-theme_inspire-navigation__toggle--expand:has(~ .tui-theme_inspire-navigation>.tui-theme_inspire-navigation__nav:focus-within){opacity:1;transition-delay:0s}.tui-theme_inspire-navigation__toggle--navExpanded{left:var(--nav-width)}.tui-theme_inspire-navigation__toggle-icon{--rotate-r: rotateY(0deg);--rotate-l: rotateY(180deg);transform:var(--rotate-r);transition-duration:0.5s}.dir-rtl .tui-theme_inspire-navigation__toggle-icon{transform:var(--rotate-l)}.tui-theme_inspire-navigation__toggle-icon--expanded{transform:var(--rotate-l)}.dir-rtl .tui-theme_inspire-navigation__toggle-icon--expanded{transform:var(--rotate-r)}}.tui-theme_inspire-navigation__toggle--navHidden{left:0}.tui-theme_inspire-navigation{position:relative;z-index:var(--zindex-navbar);display:none;flex-direction:column;overflow:visible}@media (min-width:992px){.tui-theme_inspire-navigation{display:flex;width:var(--nav-collapsed-width)}}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__nav{position:fixed;display:flex;flex-direction:column;width:var(--nav-collapsed-width);height:100%;background-color:var(--nav-bg-color);border-right:1px inset var(--nav-border-colour)}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__heading{margin:auto;border-bottom:1px inset var(--nav-border-colour)}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__headingLogo{max-width:var(--nav-logomark-width);max-height:var(--nav-logomark-height);margin:calc(var(--gap-base) * 8) 0}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__collapse{float:right;width:var(--nav-button-size);height:var(--nav-button-size);margin-top:calc(var(--gap-base) * 4);margin-right:calc(var(--gap-base) * -3);color:var(--nav-tab-text-color)}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__collapse:focus-visible{outline:2px solid var(--nav-tab-text-color)}.tui-theme_inspire-navigation .tui-theme_inspire-navigation__items{display:flex;flex-direction:column;gap:calc(var(--gap-base) * 1);height:100%;margin:0;padding:calc(var(--gap-base) * 5) calc(var(--gap-base) * 5) calc(var(--gap-base) * 5) 0;overflow-y:auto;list-style:none}.tui-theme_inspire-navigation--overlaid{position:fixed;z-index:var(--zindex-nav-overlay);display:flex;width:var(--nav-width)}@media (min-width:992px){.tui-theme_inspire-navigation--overlaid{position:relative;width:var(--nav-collapsed-width)}}.tui-theme_inspire-navigation--overlaid .tui-theme_inspire-navigation__nav{width:var(--nav-width)}.tui-theme_inspire-navigation--overlaid .tui-theme_inspire-navigation__heading{margin:0 calc(var(--gap-base) * 6)}.tui-theme_inspire-navigation--overlaid .tui-theme_inspire-navigation__headingLogo{max-width:var(--nav-logo-width);max-height:var(--nav-logo-height)}.tui-theme_inspire-navigation--overlaid .tui-theme_inspire-navigation__items{padding:calc(var(--gap-base) * 5) calc(var(--gap-base) * 3) calc(var(--gap-base) * 5) 0}.tui-theme_inspire-navigation--desktopExpanded{display:none}@media (min-width:992px){.tui-theme_inspire-navigation--desktopExpanded{display:flex;width:var(--nav-width)}.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__nav{width:var(--nav-width)}.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__heading{margin:0 calc(var(--gap-base) * 6)}.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__headingLogo{max-width:var(--nav-logo-width);max-height:var(--nav-logo-height)}.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__items{padding:calc(var(--gap-base) * 5) calc(var(--gap-base) * 3) calc(var(--gap-base) * 5) 0}}.tui-theme_inspire-navigation--hidden{display:none}.tui-settingsFormBrand__testEmailInfoButton{align-self:center}.tui-themeSettings__content{margin-top:var(--gap-8)}.tui-themeSettings__forms>*+*{margin-top:var(--gap-8)}:root{--color-primary: #455465;--btn-accent-color: #E41D7F;--link-color: #E41D7F;--color-state: #E41D7F;--color-text: #262626;--footer-bg-color: #ffffff;--footer-text-color: #262626;--btn-accent-color-hover: #da1375;--btn-accent-color-active: #c90264;--link-color-hover: #da1375;--color-state-hover: #da1375;--color-state-focus: #da1375;--color-state-active: #c90264;--footer-text-color-hover: #1c1c1c;--nav-bg-color: #fafafa;--nav-text-color: #262626;--nav-selected-color: #0074be;}





/* ============================================
   Totara Inspire Navigation - Hover Transitions
   Subtle grow/shrink effect on menu items
   ============================================ */

/* Base transition setup for all nav item headings */
.tui-theme_inspire-navItem__heading {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.25s ease,
                padding 0.25s ease;
    transform-origin: left center;
    will-change: transform;
    border-radius: 4px;
}

/* Top-level items - slightly larger lift */
.tui-theme_inspire-navItem__heading--depth-0:hover {
    transform: scale(1.04);
    background-color: rgba(0, 0, 0, 0.04);
}

/* Child items - more subtle since they're nested */
.tui-theme_inspire-navItem__heading--depth-1:hover {
    transform: scale(1.03) translateX(2px);
    background-color: rgba(0, 0, 0, 0.03);
}

/* Smooth icon scale alongside the parent */
.tui-theme_inspire-navItem__icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tui-theme_inspire-navItem__heading:hover .tui-theme_inspire-navItem__icon {
    transform: scale(1.1);
}

/* Heading text gets a tiny nudge so it feels alive */
.tui-theme_inspire-navItem__headingText {
    transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.tui-theme_inspire-navItem__heading:hover .tui-theme_inspire-navItem__headingText {
    letter-spacing: 0.01em;
}

/* Active/selected item - keep it grounded so hover doesn't fight it */
.tui-theme_inspire-navItem__heading--selected {
    transform: scale(1);
}

.tui-theme_inspire-navItem__heading--selected:hover {
    transform: scale(1.02);
}

/* Smooth rotation for the expand/collapse chevron */
.tui-theme_inspire-navItem__headingAction {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Press state - shrink slightly on click for tactile feedback */
.tui-theme_inspire-navItem__heading:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tui-theme_inspire-navItem__heading,
    .tui-theme_inspire-navItem__icon,
    .tui-theme_inspire-navItem__headingText,
    .tui-theme_inspire-navItem__headingAction {
        transition: none;
    }
    
    .tui-theme_inspire-navItem__heading:hover,
    .tui-theme_inspire-navItem__heading:hover .tui-theme_inspire-navItem__icon {
        transform: none;
    }
}

div#block-region-top {
    margin-top: -25px;
}


/* ============================================
   Totara Featured Links - Whole Tile Grow
   Targets the tile and link wrapper directly
   ============================================ */

/* The tile itself - this is what we scale */
.block-totara-featured-links-layout .block-totara-featured-links-tile {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                z-index 0s linear 0.35s;
    will-change: transform;
    transform-origin: center center;
    border-radius: 8px;
    position: relative;
}

/* Grow the entire tile on hover or focus */
.block-totara-featured-links-layout .block-totara-featured-links-tile:hover,
.block-totara-featured-links-layout .block-totara-featured-links-tile:focus-within {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18),
                0 4px 8px rgba(0, 0, 0, 0.10);
    z-index: 10;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                z-index 0s linear 0s;
}

/* The link wrapper - make it match the tile so the whole thing is clickable */
.block-totara-featured-links-layout .block-totara-featured-links-tile .block-totara-featured-links-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Press state - settle back slightly on click */
.block-totara-featured-links-layout .block-totara-featured-links-tile:active {
    transform: scale(1.02);
    transition-duration: 0.1s;
}

/* Keyboard focus styling */
.block-totara-featured-links-layout .block-totara-featured-links-tile .block-totara-featured-links-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .block-totara-featured-links-layout .block-totara-featured-links-tile,
    .block-totara-featured-links-layout .block-totara-featured-links-tile .block-totara-featured-links-link {
        transition: none;
    }
    
    .block-totara-featured-links-layout .block-totara-featured-links-tile:hover,
    .block-totara-featured-links-layout .block-totara-featured-links-tile:focus-within {
        transform: none;
    }
}




/* ============================================
   Totara Inspire Navigation - Full Glow-Up
   Depth, gradient accents, glow, and polish
   ============================================ */

/* ---------- Sidebar container - subtle backdrop ---------- */
.tui-theme_inspire-navigation__items {
    padding: 0.75rem 0.5rem;
    list-style: none;
}

/* ---------- Base nav item heading ---------- */
.tui-theme_inspire-navItem__heading {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease,
                color 0.3s ease,
                padding 0.3s ease,
                box-shadow 0.3s ease;
    transform-origin: left center;
    will-change: transform;
    border-radius: 8px;
    overflow: hidden;
    padding: 0.65rem 0.85rem !important;
    margin: 0.15rem 0;
    isolation: isolate;
}

/* The sliding accent bar that appears on the left edge on hover */
.tui-theme_inspire-navItem__heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, #F40067 0%, #ff4d94 100%);
    border-radius: 0 3px 3px 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/* Soft gradient wash that fades in on hover */
.tui-theme_inspire-navItem__heading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.08) 0%,
        rgba(244, 0, 103, 0.02) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

/* ---------- Top-level items on hover ---------- */
.tui-theme_inspire-navItem__heading--depth-0:hover {
    transform: translateX(4px);
    color: #F40067;
    box-shadow: 0 2px 8px rgba(244, 0, 103, 0.08);
}

.tui-theme_inspire-navItem__heading--depth-0:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.tui-theme_inspire-navItem__heading--depth-0:hover::after {
    opacity: 1;
}

/* ---------- Child items - more subtle treatment ---------- */
.tui-theme_inspire-navItem__heading--depth-1 {
    padding: 0.5rem 0.75rem 0.5rem 2.25rem !important;
    font-size: 0.92rem;
    position: relative;
}

/* Connector dot for child items */
.tui-theme_inspire-navItem__heading--depth-1::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    width: 5px;
    height: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transform: translateY(-50%) scale(1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tui-theme_inspire-navItem__heading--depth-1:hover {
    transform: translateX(3px);
    color: #F40067;
    background-color: rgba(244, 0, 103, 0.04);
}

.tui-theme_inspire-navItem__heading--depth-1:hover::before {
    background: #F40067;
    transform: translateY(-50%) scale(1.6);
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.5);
}

/* ---------- Icons - lift, glow, and color shift ---------- */
.tui-theme_inspire-navItem__icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease,
                filter 0.3s ease;
    color: rgba(0, 0, 0, 0.55);
}

.tui-theme_inspire-navItem__heading:hover .tui-theme_inspire-navItem__icon {
    transform: scale(1.15) rotate(-3deg);
    color: #F40067;
    filter: drop-shadow(0 2px 4px rgba(244, 0, 103, 0.3));
}

/* ---------- Heading text ---------- */
.tui-theme_inspire-navItem__headingText {
    transition: color 0.3s ease,
                letter-spacing 0.3s ease,
                font-weight 0.3s ease;
    font-weight: 500;
}

.tui-theme_inspire-navItem__heading:hover .tui-theme_inspire-navItem__headingText {
    letter-spacing: 0.015em;
    font-weight: 600;
}

/* ---------- Selected/active state - the star treatment ---------- */
.tui-theme_inspire-navItem__heading--selected {
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.1) 0%,
        rgba(244, 0, 103, 0.03) 100%
    );
    color: #F40067 !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(244, 0, 103, 0.08);
}

.tui-theme_inspire-navItem__heading--selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(1);
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, #F40067 0%, #ff4d94 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.4);
}

.tui-theme_inspire-navItem__heading--selected .tui-theme_inspire-navItem__icon {
    color: #F40067;
    filter: drop-shadow(0 2px 4px rgba(244, 0, 103, 0.25));
}

.tui-theme_inspire-navItem__heading--selected:hover {
    transform: translateX(4px);
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.15) 0%,
        rgba(244, 0, 103, 0.05) 100%
    );
}

/* ---------- Chevron - smooth rotation with personality ---------- */
.tui-theme_inspire-navItem__headingAction {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease,
                opacity 0.3s ease;
    opacity: 0.5;
}

.tui-theme_inspire-navItem__heading:hover .tui-theme_inspire-navItem__headingAction {
    opacity: 1;
    color: #F40067;
}

/* When the section is expanded, rotate the chevron */
.tui-theme_inspire-navItem__heading[aria-expanded="true"] .tui-theme_inspire-navItem__headingAction {
    transform: rotate(180deg);
}

/* ---------- Children container - smooth expand ---------- */
.tui-theme_inspire-navItem__children {
    list-style: none;
    padding-left: 0;
    margin: 0.25rem 0 0.5rem;
    position: relative;
}

/* Vertical guide line down the side of children */
.tui-theme_inspire-navItem__children::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(244, 0, 103, 0.2) 0%,
        rgba(244, 0, 103, 0.05) 100%
    );
    border-radius: 1px;
}

/* ---------- Press state ---------- */
.tui-theme_inspire-navItem__heading:active {
    transform: translateX(2px) scale(0.99);
    transition-duration: 0.1s;
}

/* ---------- Keyboard focus - matches hover, branded ring ---------- */
.tui-theme_inspire-navItem__heading:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(244, 0, 103, 0.5),
                0 2px 8px rgba(244, 0, 103, 0.1);
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .tui-theme_inspire-navItem__heading,
    .tui-theme_inspire-navItem__heading::before,
    .tui-theme_inspire-navItem__heading::after,
    .tui-theme_inspire-navItem__icon,
    .tui-theme_inspire-navItem__headingText,
    .tui-theme_inspire-navItem__headingAction,
    .tui-theme_inspire-navItem__heading--depth-1::before {
        transition: none;
    }

    .tui-theme_inspire-navItem__heading:hover,
    .tui-theme_inspire-navItem__heading:hover .tui-theme_inspire-navItem__icon,
    .tui-theme_inspire-navItem__heading--selected:hover {
        transform: none;
    }
}


.block-totara-featured-links-layout .block-totara-featured-links-content-top {
    align-self: end;
}

.block-totara-featured-links-layout .block-totara-featured-links-content-middle {
    align-self: end;
}

.block {
border: 0px;
}



/* ============================================
   Hero Banner - Top Region Only
   Full width, no grow effect, scoped to #block-region-top
   ============================================ */

/* ---------- Make the top block region break out to full width ---------- */
#block-region-top {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* The chromeless block inside the top region */
#block-region-top .block.chromeless {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

#block-region-top .block.chromeless .content,
#block-region-top .block.chromeless .block-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* The featured links layout - full width, no padding */
#block-region-top .block-totara-featured-links-layout {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    gap: 0 !important;
}

/* The hero banner specifically */
#block-region-top #hero_banner {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* ---------- Hero tile - disable the grow/hover effect ---------- */
#block-region-top .block-totara-featured-links-tile {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Disable hover effects on the hero tile */
#block-region-top .block-totara-featured-links-tile:hover,
#block-region-top .block-totara-featured-links-tile:focus-within,
#block-region-top .block-totara-featured-links-tile:active {
    transform: none !important;
    box-shadow: none !important;
    z-index: auto !important;
}

/* ---------- Hide the filler tiles ---------- */
#block-region-top .block-totara-featured-links-flex-filler {
    display: none !important;
}

/* ---------- Keep cursor as pointer since the tile is clickable ---------- */
#block-region-top .block-totara-featured-links-link {
    cursor: pointer;
}

/* ---------- Hide the skip-block link visually but keep it accessible ---------- */
#block-region-top .skip-block {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#block-region-top .skip-block:focus {
    position: static;
    width: auto;
    height: auto;
    left: auto;
}




/* ============================================
   Hero Banner - Bold Call-to-Action Styling
   Centered text, no zoom, no shift on hover
   ============================================ */

/* ---------- The tile becomes the hero canvas ---------- */
#block-region-top .block-totara-featured-links-tile {
    min-height: 420px;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    /* No transitions - banner stays put */
    transition: none !important;
}

/* Lock down any zoom on hover */
#block-region-top .block-totara-featured-links-tile:hover {
    background-size: cover !important;
    transform: none !important;
}

/* Dark gradient overlay for text legibility - left to right fade */
#block-region-top .block-totara-featured-links-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.55) 35%,
        rgba(0, 0, 0, 0.25) 65%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ---------- Content container - vertically centered, sits left ---------- */
#block-region-top .block-totara-featured-links-content-container {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 4rem !important;
    margin: 0 !important;
    max-width: 1400px;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
}

/* The link layer covers the full hero so it's all clickable */
#block-region-top .block-totara-featured-links-link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

/* ---------- The content block - free from positioning constraints ---------- */
#block-region-top .block-totara-featured-links-content.block-totara-featured-links-content-top {
    position: relative !important;
    z-index: 2;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 600px;
    text-align: left;
    pointer-events: none;
    /* Override any top/bottom positioning Totara applies */
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    /* No transitions - text stays put */
    transition: none !important;
}

/* Override the -content-top class which forces it to the top */
#block-region-top .block-totara-featured-links-content-top {
    align-self: center !important;
}

/* ---------- The headline - massive and bold, no movement ---------- */
#block-region-top .block-totara-featured-links-content h3 {
    color: #ffffff !important;
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 1rem 0 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-transform: none;
    transition: none !important;
    transform: none !important;
}

/* Kill any hover shift on the headline */
#block-region-top .block-totara-featured-links-tile:hover .block-totara-featured-links-content h3 {
    transform: none !important;
}

/* ---------- The subtitle - elegant, lighter, no movement ---------- */
#block-region-top .block-totara-featured-links-content p {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 0 2rem 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    transition: none !important;
    transform: none !important;
}

#block-region-top .block-totara-featured-links-tile:hover .block-totara-featured-links-content p {
    transform: none !important;
}





/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #block-region-top .block-totara-featured-links-tile {
        min-height: 320px;
    }
    
    #block-region-top .block-totara-featured-links-content-container {
        padding: 0 1.5rem !important;
    }
    
    #block-region-top .block-totara-featured-links-tile::before {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    #block-region-top .block-totara-featured-links-content::after {
        transition: none !important;
    }
    
    #block-region-top .block-totara-featured-links-tile:hover .block-totara-featured-links-content::after {
        transform: none !important;
    }
}

#block-region-top .block-totara-featured-links-content.block-totara-featured-links-content-top {
    padding: 2rem 2.5rem !important;
}


/* ============================================
   Page Heading - Match Hero Style
   Bold, large, modern editorial feel
   ============================================ */

.page-heading h1 {
    font-size: clamp(1rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-top: 13px;
    color: #f60067;
    text-transform: none;

}




/* ============================================
   Block Headings - Modern Tab Style
   Left-aligned, squared, with underline accent
   ============================================ */

.title.block-title {
    display: block;
    margin-bottom: 1.5rem;
    padding: 0;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.title.block-title h2 {
    display: inline-block;
    padding: 0.5rem 0 0.85rem 0;
    margin: 0 !important;
    background: none;
    color: #1a1a1a;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
}

/* The active "tab" underline - thicker pink bar that sits over the grey line */
.title.block-title h2::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #F40067;
    border-radius: 2px 2px 0 0;
}

/* The block_action div - keep it on the right */
.title.block-title .block_action {
    float: right;
    margin-top: 0.5rem;
}

/* Clearfix for the float */
.title.block-title::after {
    content: '';
    display: table;
    clear: both;
}


.title.block-title {
    
    margin-bottom: 0;
    padding: 0;
    border-bottom: 0px;
    
}



/* ============================================
   User Toolbar - Full Height Items, Individual Colours
   Each icon gets its own coloured "tab" feel
   ============================================ */

/* ---------- The toolbar itself - establish height context ---------- */
.userToolbar_prim {
    padding: 0 !important;
}

.userToolbar_prim .container-fluid {
    padding: 0 !important;
    height: 100%;
}

.userToolbar_prim--side {
    display: flex !important;
    align-items: stretch !important;
    height: 100%;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- Each toolbar item becomes a full-height block ---------- */
.userToolbar_prim--side > div {
    display: flex !important;
    align-items: stretch !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- The clickable triggers - full height, centred icons ---------- */
.userToolbar_prim--side .nav-link,
.userToolbar_prim--side .popover-region-toggle,
.userToolbar_prim--side .totara_core__QuickAccess_icon,
.userToolbar_prim--side .toggle-display.textmenu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    min-height: 60px;
    padding: 0 1.25rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;
    position: relative;
    cursor: pointer;
}

/* ---------- Quick Access (gear icon) - Titus Pink ---------- */
#quickaccess-popover-container .totara_core__QuickAccess_icon {
    background-color: #F40067;
    color: #ffffff;
}

#quickaccess-popover-container .totara_core__QuickAccess_icon:hover {
    background-color: #d10058;
}

/* ---------- Messages - Blue ---------- */
#nav-message-popover-container .popover-region-toggle {
    background-color: #2563eb;
    color: #ffffff;
}

#nav-message-popover-container .popover-region-toggle:hover {
    background-color: #1d4ed8;
}

/* ---------- Notifications - Amber/Orange ---------- */
#nav-notification-popover-container .popover-region-toggle {
    background-color: #f59e0b;
    color: #ffffff;
}

#nav-notification-popover-container .popover-region-toggle:hover {
    background-color: #d97706;
}

/* ---------- User Menu (avatar) - Dark slate ---------- */
.userToolbar_prim--side .usermenu .toggle-display.textmenu {
    background-color: #1e293b;
    color: #ffffff;
}

.userToolbar_prim--side .usermenu .toggle-display.textmenu:hover {
    background-color: #334155;
}

/* ---------- Make the icons themselves white and slightly larger ---------- */
.userToolbar_prim--side .flex-icon {
    color: #ffffff !important;
    font-size: 1.1rem;
    line-height: 1;
}

/* ---------- Username text - clean white styling ---------- */
.userToolbar_prim--side .usertext {
    color: #ffffff !important;
    font-weight: 500;
    margin-right: 0.6rem;
    font-size: 0.9rem;
}

.userToolbar_prim--side .caret {
    color: #ffffff !important;
}

/* ---------- Avatar - tidy circular crop ---------- */
.userToolbar_prim--side .userpicture {
    border-radius: 50%;
    width: 32px !important;
    height: 32px !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Notification/message count badges - reposition for new layout ---------- */
.userToolbar_prim--side .count-container {
    position: absolute !important;
    top: 8px;
    right: 8px;
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-radius: 100px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.userToolbar_prim--side .count-container.hidden {
    display: none !important;
}

/* ---------- The user menu dropdown should sit cleanly under its tab ---------- */
.userToolbar_prim--side .usermenu .menubar {
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    display: flex;
}

.userToolbar_prim--side .usermenu .menubar > li {
    height: 100%;
    display: flex;
}

/* ---------- Active/expanded states get a subtle inset shadow ---------- */
.userToolbar_prim--side .nav-link[aria-expanded="true"],
.userToolbar_prim--side .toggle-display[aria-expanded="true"] {
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.6);
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 768px) {
    .userToolbar_prim--side .nav-link,
    .userToolbar_prim--side .popover-region-toggle,
    .userToolbar_prim--side .totara_core__QuickAccess_icon,
    .userToolbar_prim--side .toggle-display.textmenu {
        padding: 0 0.85rem !important;
        min-height: 50px;
    }
    
    .userToolbar_prim--side .usertext {
        display: none; /* hide username, just show avatar */
    }
}


/* ---------- Push the toolbar items hard right ---------- */
.userToolbar_prim .container-fluid {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.userToolbar_prim--side {
    margin-left: auto !important;
    margin-right: 0 !important;
}


div#block-region-top {
    margin-top: -8px !important;
}




/* ============================================
   Featured Links Bottom Content - Glassmorphism
   Frosted glass effect for the text overlay
   ============================================ */

.block-totara-featured-links-layout .block-totara-featured-links-content-bottom {
    /* The frosted glass effect - this is the magic */
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Subtle border to define the glass edge */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Padding for breathing room */
    padding: 1.25rem 1.5rem !important;
    
    /* Ensure text colour works on the glass */
    color: #ffffff;
    
    /* Position at the bottom of the tile */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    
    /* Smooth transition when tile is hovered */
    transition: backdrop-filter 0.4s ease,
                background 0.4s ease,
                padding 0.4s ease;
}

/* Make sure text inside is white and readable */
.block-totara-featured-links-layout .block-totara-featured-links-content-bottom h3 {
    color: #ffffff !important;
    font-weight: 700;
    margin: 0 0 0.4rem 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.block-totara-featured-links-layout .block-totara-featured-links-content-bottom span,
.block-totara-featured-links-layout .block-totara-featured-links-content-bottom p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* On hover - intensify the frost slightly */
.block-totara-featured-links-tile:hover .block-totara-featured-links-content-bottom {
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    .block-totara-featured-links-layout .block-totara-featured-links-content-bottom {
        background: rgba(0, 0, 0, 0.55) !important;
    }
}

.container-fluid.breadcrumb-container {
    border-top: 1px solid grey;
    margin-top: -8px;
}



/* ============================================
   Catalogue Tiles - Modern Card Treatment
   Depth, hierarchy, polished hover, editorial feel
   ============================================ */

/* ---------- The card itself ---------- */
.tw-catalogItemNarrow {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    will-change: transform;
}

/* Hover - lift, deepen shadow, branded glow */
.tw-catalogItemNarrow:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12),
                0 8px 16px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(244, 0, 103, 0.1);
    border-color: rgba(244, 0, 103, 0.15);
}

/* Keyboard focus - branded ring */
.tw-catalogItemNarrow:focus-visible {
    outline: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12),
                0 8px 16px rgba(0, 0, 0, 0.06),
                0 0 0 3px rgba(244, 0, 103, 0.5);
}

/* ---------- The image area ---------- */
.tw-catalogItemNarrow__image {
    position: relative;
    overflow: hidden;
}

.tw-catalogItemNarrow__image_ratio_img {
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Image zooms gently on hover */
.tw-catalogItemNarrow:hover .tw-catalogItemNarrow__image_ratio_img {
    transform: scale(1.06);
}

/* Subtle gradient overlay on the image - adds depth */
.tw-catalogItemNarrow__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0.6;
}

.tw-catalogItemNarrow:hover .tw-catalogItemNarrow__image::after {
    opacity: 1;
}

/* ---------- Content area ---------- */
.tw-catalogItemNarrow__content {
    padding: 1.25rem 1.4rem 1.4rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
}

/* ---------- Title ---------- */
.tw-catalogItemNarrow__title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em;
    margin: 0 !important;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.tw-catalogItemNarrow:hover .tw-catalogItemNarrow__title {
    color: #F40067 !important;
}

/* ---------- The "Featured" badge ---------- */
.tw-catalogItemNarrow__title_featured {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, #F40067 0%, #ff4d94 100%);
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    box-shadow: 0 2px 6px rgba(244, 0, 103, 0.3);
    line-height: 1;
    width: fit-content;
    order: -1; /* Move it ABOVE the title text */
}

/* Sparkle dot before "Featured" text */
.tw-catalogItemNarrow__title_featured::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* ---------- Meta info group (time, level, etc) ---------- */
.tw-catalogItemNarrow__textarea_group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto; /* Push to bottom of content area */
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tw-catalogItemNarrow__textarea_group_item {
    font-size: 0.8rem !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    transition: color 0.3s ease;
}

/* Hide empty meta items */
.tw-catalogItemNarrow__textarea_group_item:empty {
    display: none;
}

/* Add small icon dots before each meta item */
.tw-catalogItemNarrow__textarea_group_item:not(:empty)::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.tw-catalogItemNarrow:hover .tw-catalogItemNarrow__textarea_group_item:not(:empty)::before {
    background: #F40067;
}

/* ---------- Progress bar area (when present) ---------- */
.tw-catalogItemNarrow__noprogress {
    display: none;
}

/* ---------- Subtle "go" arrow that appears on hover ---------- */
.tw-catalogItemNarrow__content::after {
    content: '→';
    position: absolute;
    bottom: 1.4rem;
    right: 1.4rem;
    color: #F40067;
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    line-height: 1;
}

.tw-catalogItemNarrow:hover .tw-catalogItemNarrow__content::after {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Press state ---------- */
.tw-catalogItemNarrow:active {
    transform: translateY(-2px);
    transition-duration: 0.1s;
}

/* ---------- Grid spacing ---------- */
.tw-grid__item {
    padding: 0.75rem !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .tw-catalogItemNarrow,
    .tw-catalogItemNarrow__image_ratio_img,
    .tw-catalogItemNarrow__image::after,
    .tw-catalogItemNarrow__title,
    .tw-catalogItemNarrow__textarea_group_item,
    .tw-catalogItemNarrow__textarea_group_item::before,
    .tw-catalogItemNarrow__content::after {
        transition: none !important;
    }
    
    .tw-catalogItemNarrow:hover,
    .tw-catalogItemNarrow:hover .tw-catalogItemNarrow__image_ratio_img {
        transform: none !important;
    }
}


/* ---------- Fix: Let tiles grow with content, never clip ---------- */

/* The card itself - allow it to grow */
.tw-catalogItemNarrow {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
}

/* Re-clip just the image area (so the image zoom on hover still works) */
.tw-catalogItemNarrow__image,
.tw-catalogItemNarrow__image_ratio {
    overflow: hidden !important;
}

/* Content area - let it expand */
.tw-catalogItemNarrow__content {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Meta group - no height limit, no clipping */
.tw-catalogItemNarrow__textarea_group {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    flex-shrink: 0;
}

/* Each meta item - never clip, never truncate */
.tw-catalogItemNarrow__textarea_group_item {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    line-clamp: unset !important;
}

/* The grid item wrapper - let cards take whatever height they need */
.tw-grid__item {
    height: auto !important;
    align-items: stretch !important;
}

/* The grid itself - align cards to the top, equal heights via stretch */
.tw-grid {
    align-items: stretch !important;
}

.rb-sidebar .fcontainer .fitem .felement select, .rb-sidebar .fcontainer .fitem .felement input[type=text] {
    padding: inherit;
}

.tui-theme_inspire-navigation--desktopExpanded .tui-theme_inspire-navigation__heading {
        margin: auto !important;
    }


/* ============================================
   Tui Page Heading - Match Site Heading Style
   Same modern editorial feel as .page-heading h1
   ============================================ */

.tui-pageHeading__title {
    font-size: clamp(2rem, 3.5vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 1.5rem 0 !important;
    color: inherit;
    text-transform: none;
}



/* ============================================
   Learning Block - Modern Sidebar Navigation
   Sectioned navigation with icons and hover polish
   ============================================ */

/* ---------- The block container ---------- */
.block_fake,
.block.block_fake {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.block_fake:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
                0 2px 4px rgba(0, 0, 0, 0.03);
}

/* ---------- The block header ---------- */
.block_fake .block-header {
    padding: 1.25rem 1.5rem 0.75rem !important;
    background: none !important;
    border: none !important;
}

.block_fake .title.block-title {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Block heading - clean and bold */
.block_fake .title.block-title h2 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-transform: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
}

/* Pink accent dot before the block title */
.block_fake .title.block-title h2::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #F40067;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.5);
    flex-shrink: 0;
}

/* Hide any decorative pseudo-elements from earlier rules */
.block_fake .title.block-title h2::after {
    display: none !important;
}

/* ---------- Content area ---------- */
.block_fake .content.block-content {
    padding: 0.5rem 1rem 1.25rem !important;
}

/* ---------- Section subheadings (Learning Plans, Record of Learning, etc) ---------- */
#dp-plans-menu h3.main {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8 !important;
    margin: 1.25rem 0 0.5rem 0 !important;
    padding: 0 0.75rem !important;
    background: none !important;
    border: none !important;
}

/* First subheading - no top margin */
#dp-plans-menu h3.main:first-child {
    margin-top: 0.5rem !important;
}

/* ---------- The link lists ---------- */
#dp-plans-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#dp-plans-menu ul li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- The actual nav links ---------- */
#dp-plans-menu ul li a {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    line-height: 1.3;
}

/* Small dot indicator before each link */
#dp-plans-menu ul li a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Arrow that slides in on hover */
#dp-plans-menu ul li a::after {
    content: '→';
    margin-left: auto;
    color: #F40067;
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Link hover state ---------- */
#dp-plans-menu ul li a:hover,
#dp-plans-menu ul li a:focus-visible {
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.06) 0%,
        rgba(244, 0, 103, 0.02) 100%
    );
    color: #F40067 !important;
    transform: translateX(2px);
    outline: none;
}

#dp-plans-menu ul li a:hover::before,
#dp-plans-menu ul li a:focus-visible::before {
    background: #F40067;
    transform: scale(1.6);
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.5);
}

#dp-plans-menu ul li a:hover::after,
#dp-plans-menu ul li a:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Press state ---------- */
#dp-plans-menu ul li a:active {
    transform: translateX(1px);
    transition-duration: 0.1s;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .block_fake,
    #dp-plans-menu ul li a,
    #dp-plans-menu ul li a::before,
    #dp-plans-menu ul li a::after {
        transition: none !important;
    }
    
    #dp-plans-menu ul li a:hover,
    #dp-plans-menu ul li a:hover::before {
        transform: none !important;
    }
}


/* ============================================
   News Items Block - Modern Feed List
   Card layout with date pills, hover polish
   ============================================ */

/* ---------- The block container ---------- */
.block_news_items,
.block.block_news_items {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.block_news_items:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
                0 2px 4px rgba(0, 0, 0, 0.03);
}

/* ---------- Content area ---------- */
.block_news_items .content.block-content {
    padding: 0 !important;
}

/* ---------- "Add a new topic" link - styled as a CTA at the top ---------- */
.block_news_items .newlink {
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.04) 0%,
        rgba(244, 0, 103, 0.01) 100%
    );
}

.block_news_items .newlink a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: #F40067;
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(244, 0, 103, 0.25);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Plus sign before the link text */
.block_news_items .newlink a::before {
    content: '+';
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
}

.block_news_items .newlink a:hover {
    background: #ff1a78;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(244, 0, 103, 0.35);
}

/* Hide the trailing "..." that Totara adds */
.block_news_items .newlink {
    font-size: 0;
}

.block_news_items .newlink a {
    font-size: 0.85rem;
}

/* ---------- The post list ---------- */
.block_news_items ul.unlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- Each post becomes a feed row ---------- */
.block_news_items .post {
    list-style: none !important;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: background 0.25s ease,
                padding 0.25s ease;
    position: relative;
    cursor: pointer;
}

.block_news_items .post:last-child {
    border-bottom: none;
}

/* Hover - subtle background wash and slight indent */
.block_news_items .post:hover {
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.04) 0%,
        rgba(244, 0, 103, 0.01) 100%
    );
    padding-left: 1.4rem !important;
}

/* Pink accent bar that slides in from the left on hover */
.block_news_items .post::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #F40067 0%, #ff4d94 100%);
    border-radius: 0 3px 3px 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.block_news_items .post:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* ---------- Post header (date + author) ---------- */
.block_news_items .post .head {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

/* ---------- Date - styled as a small pill ---------- */
.block_news_items .post .date {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    background: rgba(244, 0, 103, 0.08);
    color: #F40067 !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    border-radius: 6px;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid rgba(244, 0, 103, 0.15);
}

/* ---------- Author name - quiet supporting text ---------- */
.block_news_items .post .name {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-weight: 500;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Small "by" prefix for authorship clarity */
.block_news_items .post .name::before {
    content: 'by';
    color: #cbd5e1;
    font-style: italic;
    font-weight: 400;
}

/* ---------- Post title (the link) ---------- */
.block_news_items .post .info {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.block_news_items .post .info a {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: inline-block;
    transition: color 0.25s ease;
    letter-spacing: -0.005em;
}

.block_news_items .post:hover .info a {
    color: #F40067 !important;
}

/* ---------- Footer ("Older topics" link) ---------- */
.block_news_items .footer {
    padding: 0.85rem 1.25rem !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.015);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0;
}

.block_news_items .footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.25s ease, gap 0.25s ease;
}

/* Arrow that slides on hover */
.block_news_items .footer a::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.block_news_items .footer a:hover {
    color: #F40067 !important;
    gap: 0.65rem;
}

.block_news_items .footer a:hover::after {
    transform: translateX(3px);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .block_news_items,
    .block_news_items .newlink a,
    .block_news_items .post,
    .block_news_items .post::before,
    .block_news_items .post .info a,
    .block_news_items .footer a,
    .block_news_items .footer a::after {
        transition: none !important;
    }
    
    .block_news_items .newlink a:hover,
    .block_news_items .post:hover,
    .block_news_items .footer a:hover::after {
        transform: none !important;
    }
}


/* ============================================
   Upcoming Events Block - Modern Agenda Style
   Calendar-style date blocks, time pills, polished CTAs
   ============================================ */

/* ---------- The block container ---------- */
.block_calendar_upcoming,
.block.block_calendar_upcoming {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.block_calendar_upcoming:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
                0 2px 4px rgba(0, 0, 0, 0.03);
}

/* ---------- Block header ---------- */
.block_calendar_upcoming .block-header {
    padding: 1.25rem 1.5rem 0.75rem !important;
    background: none !important;
    border: none !important;
}

.block_calendar_upcoming .title.block-title {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
}

.block_calendar_upcoming .title.block-title h2 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-transform: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
}

/* Pink accent dot before block title */
.block_calendar_upcoming .title.block-title h2::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #F40067;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.5);
    flex-shrink: 0;
}

.block_calendar_upcoming .title.block-title h2::after {
    display: none !important;
}

/* ---------- Content area ---------- */
.block_calendar_upcoming .content.block-content {
    padding: 0.5rem 0 0 0 !important;
}

/* ---------- Hide the awful default <hr> separators ---------- */
.block_calendar_upcoming hr,
.block_calendar_upcoming hr.my-3 {
    display: none !important;
}

/* ---------- Each event becomes a calendar row ---------- */
.block_calendar_upcoming .event {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.25s ease,
                padding-left 0.25s ease;
    position: relative;
}

.block_calendar_upcoming .event:last-of-type {
    border-bottom: none;
}

/* Hover - pink wash + slight indent */
.block_calendar_upcoming .event:hover {
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.04) 0%,
        rgba(244, 0, 103, 0.01) 100%
    );
    padding-left: 1.4rem !important;
}

/* Pink accent bar slides in on hover */
.block_calendar_upcoming .event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #F40067 0%, #ff4d94 100%);
    border-radius: 0 3px 3px 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.block_calendar_upcoming .event:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* ---------- Hide the default seminar icon (we'll use date block instead) ---------- */
.block_calendar_upcoming .event .icon {
    display: none !important;
}

/* ---------- Event main content (title + course + date) ---------- */
.block_calendar_upcoming .event > a:first-of-type {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    margin: 0 !important;
    transition: color 0.25s ease;
    letter-spacing: -0.005em;
    display: block;
}

.block_calendar_upcoming .event:hover > a:first-of-type {
    color: #F40067 !important;
}

/* ---------- Course name (smaller, supporting) ---------- */
.block_calendar_upcoming .event .course {
    grid-column: 2;
    grid-row: 2;
    margin: 0.2rem 0 0 0 !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    line-height: 1.3 !important;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.block_calendar_upcoming .event .course::before {
    content: 'in';
    color: #cbd5e1;
    font-style: italic;
    font-weight: 400;
}

.block_calendar_upcoming .event .course a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.25s ease;
}

.block_calendar_upcoming .event:hover .course a {
    color: #64748b !important;
}

/* ---------- Date - styled as a small calendar-style block ---------- */
.block_calendar_upcoming .event .date {
    grid-column: 2;
    grid-row: 3;
    margin: 0.5rem 0 0 0 !important;
    padding: 0.25rem 0.6rem !important;
    background: rgba(244, 0, 103, 0.08);
    border: 1px solid rgba(244, 0, 103, 0.15);
    color: #F40067 !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    border-radius: 6px;
    line-height: 1.4;
    width: fit-content;
    letter-spacing: 0.01em;
}

/* ---------- The date "block" on the left - calendar tear-off style ---------- */
.block_calendar_upcoming .event {
    position: relative;
}

/* Use a pseudo-element to inject a fake calendar block since Totara doesn't expose dates separately */
/* This pulls visual emphasis to the LEFT side of each event */
.block_calendar_upcoming .event::after {
    content: '';
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #F40067 0%, #ff4d94 100%);
    border-radius: 4px;
    opacity: 0.3;
    transition: opacity 0.25s ease, width 0.25s ease;
    align-self: center;
}

.block_calendar_upcoming .event:hover::after {
    opacity: 0.7;
    width: 5px;
}

/* ---------- Sign-up button - proper modern CTA ---------- */
.block_calendar_upcoming .event .pull-right {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.block_calendar_upcoming .event .btn,
.block_calendar_upcoming .event .btn-default,
.block_calendar_upcoming .event .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem !important;
    background: #F40067 !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(244, 0, 103, 0.25);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    line-height: 1.3;
}

.block_calendar_upcoming .event .btn::after {
    content: '→';
    font-size: 0.95rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.block_calendar_upcoming .event .btn:hover {
    background: #ff1a78 !important;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(244, 0, 103, 0.35);
    color: #ffffff !important;
}

.block_calendar_upcoming .event .btn:hover::after {
    transform: translateX(2px);
}

/* ---------- Hide the clearfix divs ---------- */
.block_calendar_upcoming .event .clearfix {
    display: none !important;
}

/* ---------- Footer with two action links ---------- */
.block_calendar_upcoming .footer {
    padding: 0.85rem 1.25rem !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.015);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Hide trailing "..." */
.block_calendar_upcoming .footer .gotocal,
.block_calendar_upcoming .footer .newevent {
    font-size: 0;
    margin: 0 !important;
}

.block_calendar_upcoming .footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    line-height: 1.3;
}

/* "Go to calendar" - primary text style */
.block_calendar_upcoming .footer .gotocal a {
    color: #64748b !important;
    background: rgba(0, 0, 0, 0.04);
}

.block_calendar_upcoming .footer .gotocal a::before {
    content: '📅';
    font-size: 0.9rem;
}

.block_calendar_upcoming .footer .gotocal a:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.08);
}

/* "New event" - branded pink */
.block_calendar_upcoming .footer .newevent a {
    color: #F40067 !important;
    background: rgba(244, 0, 103, 0.08);
    border: 1px solid rgba(244, 0, 103, 0.15);
}

.block_calendar_upcoming .footer .newevent a::before {
    content: '+';
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.block_calendar_upcoming .footer .newevent a:hover {
    background: rgba(244, 0, 103, 0.15);
    color: #F40067 !important;
}

/* ---------- Responsive - stack on mobile ---------- */
@media (max-width: 600px) {
    .block_calendar_upcoming .event {
        grid-template-columns: 4px 1fr;
        gap: 0.75rem;
    }
    
    .block_calendar_upcoming .event .pull-right {
        grid-column: 2;
        grid-row: 4;
        margin-top: 0.5rem !important;
        align-self: start;
    }
    
    .block_calendar_upcoming .event::after {
        grid-row: 1 / span 4;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .block_calendar_upcoming,
    .block_calendar_upcoming .event,
    .block_calendar_upcoming .event::before,
    .block_calendar_upcoming .event::after,
    .block_calendar_upcoming .event > a:first-of-type,
    .block_calendar_upcoming .event .btn,
    .block_calendar_upcoming .event .btn::after,
    .block_calendar_upcoming .footer a {
        transition: none !important;
    }
    
    .block_calendar_upcoming .event:hover,
    .block_calendar_upcoming .event:hover::before,
    .block_calendar_upcoming .event:hover::after,
    .block_calendar_upcoming .event .btn:hover,
    .block_calendar_upcoming .event .btn:hover::after {
        transform: none !important;
    }
}


/* ============================================
   Learning Hours Widget - Modern Dashboard Style
   Light, airy, stacked layout with hero radial
   ============================================ */

/* ---------- The block container ---------- */
.block_learning_hours,
.block.block_learning_hours {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.block_learning_hours:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
                0 2px 4px rgba(0, 0, 0, 0.03);
}

/* ---------- Block header ---------- */
.block_learning_hours .block-header {
    padding: 1.25rem 1.5rem 0.75rem !important;
    background: none !important;
    border: none !important;
}

.block_learning_hours .title.block-title {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
}

.block_learning_hours .title.block-title h2 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-transform: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
}

/* Pink dot signature */
.block_learning_hours .title.block-title h2::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #F40067;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.5);
    flex-shrink: 0;
}

.block_learning_hours .title.block-title h2::after {
    display: none !important;
}

/* ---------- Content area ---------- */
.block_learning_hours .content.block-content {
    padding: 0 1.5rem 1.5rem !important;
}

/* ---------- The widget container - STACKED layout ---------- */
.learning-hours-widget-container {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
    padding: 0;
}

/* ---------- The two inner blocks ---------- */
.learning-hours-widget-container .block {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 1.25rem !important;
    transition: all 0.3s ease;
}

.learning-hours-widget-container .block:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(244, 0, 103, 0.15) !important;
}

/* ---------- Inner block headers ---------- */
.learning-hours-widget-container .block .block-header {
    padding: 0 0 0.85rem 0 !important;
    margin: 0 0 0.85rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.learning-hours-widget-container .block .block-header h3 {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.learning-hours-widget-container .block .block-content {
    padding: 0 !important;
}

/* ---------- Learning Progress block (the radial) ---------- */
.learning-progress {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.learning-progress .block-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
}

/* ---------- The radial chart ---------- */
.learning-hours-radial {
    display: flex;
    justify-content: center;
    align-items: center;
}

.learning-hours-radial a {
    text-decoration: none !important;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.learning-hours-radial a:hover {
    transform: scale(1.05);
}

/* ---------- The circular progress - branded colours ---------- */
.circular-progress {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        #F40067 var(--progress, 0deg),
        rgba(244, 0, 103, 0.1) var(--progress, 0deg)
    ) !important;
    box-shadow: 0 4px 16px rgba(244, 0, 103, 0.15),
                inset 0 0 0 1px rgba(244, 0, 103, 0.1);
    transition: box-shadow 0.3s ease;
}

.learning-hours-radial a:hover .circular-progress {
    box-shadow: 0 8px 24px rgba(244, 0, 103, 0.25),
                inset 0 0 0 1px rgba(244, 0, 103, 0.2);
}

/* ---------- The inner circle (white centre) ---------- */
.circular-progress .inner-circle {
    width: 100px !important;
    height: 100px !important;
    background-color: #ffffff !important;
    border-radius: 50%;
    background-size: 38px 38px !important;
    background-position: center 22px !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
}

/* ---------- Percentage text ---------- */
.circular-progress .percentage {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    line-height: 1;
    z-index: 2;
}

/* ---------- RAG status colour overrides ---------- */
/* Red status */
.circular-progress:has(.rag-status-red) {
    background: conic-gradient(
        #ef4444 var(--progress, 0deg),
        rgba(239, 68, 68, 0.1) var(--progress, 0deg)
    ) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15),
                inset 0 0 0 1px rgba(239, 68, 68, 0.1);
}

/* Amber/Yellow status */
.circular-progress:has(.rag-status-amber),
.circular-progress:has(.rag-status-yellow) {
    background: conic-gradient(
        #f59e0b var(--progress, 0deg),
        rgba(245, 158, 11, 0.1) var(--progress, 0deg)
    ) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15),
                inset 0 0 0 1px rgba(245, 158, 11, 0.1);
}

/* Green status */
.circular-progress:has(.rag-status-green) {
    background: conic-gradient(
        #10b981 var(--progress, 0deg),
        rgba(16, 185, 129, 0.1) var(--progress, 0deg)
    ) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15),
                inset 0 0 0 1px rgba(16, 185, 129, 0.1);
}

/* ---------- Learning Hours Summary block (the stats) ---------- */
.learning-hours-summary {
    display: flex;
    flex-direction: column;
}

.learning-hours-summary .block-content {
    flex: 1;
}

/* ---------- The stats grid - two columns ---------- */
.progress-info dl {
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

/* Each label/value pair */
.progress-info dt {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.15rem 0 !important;
    padding: 0 !important;
    line-height: 1.3;
}

.progress-info dd {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

/* RAG status row spans full width */
.progress-info dl > dt:last-of-type,
.progress-info dl > dd:last-of-type {
    grid-column: 1 / -1;
}

/* ---------- RAG status value gets coloured pill treatment ---------- */
.progress-info dd:last-of-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem !important;
    border-radius: 100px;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-top: 0.25rem !important;
}

/* Status dot inside the pill */
.progress-info dd:last-of-type::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .learning-hours-widget-container .block,
    .learning-hours-radial a,
    .circular-progress {
        transition: none !important;
    }
    
    .learning-hours-radial a:hover {
        transform: none !important;
    }
}



/* ============================================
   Current Learning Block - Dark Premium Style
   Deep slate background, glowing progress bar
   ============================================ */

/* ---------- The block container - DARK MODE ---------- */
.block_current_learning,
.block.block_current_learning {
    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e293b 100%
    );
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12),
                0 2px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease,
                transform 0.3s ease;
    position: relative;
margin-top: 15px;
}

/* Subtle glow effect that pulses gently */
.block_current_learning::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(244, 0, 103, 0.15) 0%,
        rgba(244, 0, 103, 0) 70%
    );
    pointer-events: none;
    z-index: 0;
}

.block_current_learning:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(244, 0, 103, 0.15);
}

/* ---------- Block header ---------- */
.block_current_learning .block-header {
    padding: 1.25rem 1.5rem 0.75rem !important;
    background: none !important;
    border: none !important;
    position: relative;
    z-index: 1;
}

.block_current_learning .title.block-title {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
}

.block_current_learning .title.block-title h2 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-transform: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
}

/* Glowing pink dot before title - more intense for dark BG */
.block_current_learning .title.block-title h2::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #F40067;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(244, 0, 103, 0.8),
                0 0 24px rgba(244, 0, 103, 0.4);
    flex-shrink: 0;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(244, 0, 103, 0.8),
                    0 0 24px rgba(244, 0, 103, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(244, 0, 103, 0.6),
                    0 0 16px rgba(244, 0, 103, 0.3);
    }
}

.block_current_learning .title.block-title h2::after {
    display: none !important;
}

/* ---------- Content area ---------- */
.block_current_learning .content.block-content {
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

.block_current_learning .tab-content,
.block_current_learning .panel-body {
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

/* ---------- The course list ---------- */
.block_current_learning ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- Each learning item ---------- */
.block_current_learning .block_current_learning-item,
.block_current_learning ul li {
    list-style: none !important;
    padding: 1.1rem 1.5rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.25s ease,
                padding-left 0.25s ease;
    position: relative;
}

.block_current_learning .block_current_learning-item:last-child {
    border-bottom: none;
}

.block_current_learning .block_current_learning-item:hover {
    background: rgba(244, 0, 103, 0.08);
    padding-left: 1.7rem !important;
}

/* Pink accent bar on hover */
.block_current_learning .block_current_learning-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, #F40067 0%, #ff4d94 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(244, 0, 103, 0.6);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.block_current_learning .block_current_learning-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* ---------- Row item layout ---------- */
.block_current_learning-row-item {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 0.6rem 0.85rem;
    align-items: center;
}

/* ---------- Course type icon ---------- */
.block_current_learning-row-item > span:first-child {
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 32px;
    background: rgba(244, 0, 103, 0.15);
    border: 1px solid rgba(244, 0, 103, 0.3);
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.block_current_learning-row-item > span:first-child .flex-icon {
    color: #F40067 !important;
    font-size: 0.95rem;
}

.block_current_learning .block_current_learning-item:hover .block_current_learning-row-item > span:first-child {
    background: rgba(244, 0, 103, 0.25);
    border-color: rgba(244, 0, 103, 0.5);
    transform: scale(1.05);
}

/* ---------- Course title ---------- */
.block_current_learning-row-item > a {
    grid-column: 2;
    grid-row: 1;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.block_current_learning-row-item > a h3 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: color 0.25s ease;
    letter-spacing: -0.005em;
}

.block_current_learning .block_current_learning-item:hover .block_current_learning-row-item > a h3 {
    color: #ff4d94 !important;
}

/* ---------- Status / Progress area ---------- */
.block_current_learning-row-item__status {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.3rem;
}

/* ---------- Progress bar - the hero element ---------- */
.block_current_learning .progressbar_container {
    position: relative;
    cursor: pointer;
}

.block_current_learning .progress {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px !important;
    height: 22px !important;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0 !important;
}

.block_current_learning .progress .bar {
    background: linear-gradient(
        90deg,
        #F40067 0%,
        #ff4d94 50%,
        #ff80b5 100%
    ) !important;
    border-radius: 100px !important;
    height: 100% !important;
    box-shadow: 0 0 12px rgba(244, 0, 103, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Animated shimmer on the progress bar */
.block_current_learning .progress .bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: progress-shimmer 2.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Strip out the default Bootstrap "striped" pattern */
.block_current_learning .progress.progress-striped .bar,
.block_current_learning .progress-striped.active .bar {
    background-image: none !important;
    animation: none;
}

/* Re-apply the shimmer (since we just killed all bar animations above) */
.block_current_learning .progress.progress-striped .bar::after,
.block_current_learning .progress-striped.active .bar::after {
    animation: progress-shimmer 2.5s ease-in-out infinite;
}

/* ---------- Progress percentage text ---------- */
.block_current_learning .progressbar__text {
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 22px !important;
    padding: 0 0.6rem !important;
    position: relative;
    z-index: 1;
}

/* When the bar is too short, the text needs to invert color and sit outside */
.block_current_learning .progress-invert .progressbar__text {
    color: rgba(255, 255, 255, 0.6) !important;
    text-shadow: none;
}

/* ---------- Success state (100% complete) ---------- */
.block_current_learning .progress-success .bar {
    background: linear-gradient(
        90deg,
        #10b981 0%,
        #34d399 100%
    ) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---------- Footer ---------- */
.block_current_learning .panel-footer {
    padding: 0.85rem 1.5rem !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 16px 16px;
}

.block_current_learning .panel-footer .count {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.block_current_learning .panel-footer .count::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #F40067;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(244, 0, 103, 0.6);
}

/* ---------- Hide the Totara internal h2 inside the progress bar ---------- */
.block_current_learning .progressbar_container > h2 {
    display: none !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .block_current_learning,
    .block_current_learning .title.block-title h2::before,
    .block_current_learning .block_current_learning-item,
    .block_current_learning .block_current_learning-item::before,
    .block_current_learning .block_current_learning-row-item > span:first-child,
    .block_current_learning-row-item > a h3,
    .block_current_learning .progress .bar,
    .block_current_learning .progress .bar::after {
        transition: none !important;
        animation: none !important;
    }
    
    .block_current_learning .block_current_learning-item:hover,
    .block_current_learning .block_current_learning-item:hover .block_current_learning-row-item > span:first-child {
        transform: none !important;
    }
}



/* ============================================
   Last Course Accessed - "Resume Learning" Card
   Inviting CTA-style block with prominent course + progress
   ============================================ */

/* ---------- The block container ---------- */
.block_last_course_accessed,
.block.block_last_course_accessed {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #fdf2f8 100%
    );
    border-radius: 16px;
    border: 1px solid rgba(244, 0, 103, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease,
                transform 0.3s ease;
    position: relative;
margin-top: 15px;
}

/* Decorative pink glow in the corner - subtle warmth */
.block_last_course_accessed::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(
        circle,
        rgba(244, 0, 103, 0.12) 0%,
        rgba(244, 0, 103, 0) 70%
    );
    pointer-events: none;
    z-index: 0;
}

.block_last_course_accessed:hover {
    box-shadow: 0 8px 24px rgba(244, 0, 103, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.04);
}

/* ---------- Block header ---------- */
.block_last_course_accessed .block-header {
    padding: 1.25rem 1.5rem 0.5rem !important;
    background: none !important;
    border: none !important;
    position: relative;
    z-index: 1;
}

.block_last_course_accessed .title.block-title {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
}

.block_last_course_accessed .title.block-title h2 {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #F40067 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

/* Bookmark icon before the title - "save your spot" metaphor */
.block_last_course_accessed .title.block-title h2::before {
    content: '⏵';
    font-size: 0.85rem;
    color: #F40067;
    line-height: 1;
}

.block_last_course_accessed .title.block-title h2::after {
    display: none !important;
}

/* ---------- Content area ---------- */
.block_last_course_accessed .content.block-content {
    padding: 0 1.5rem 1.5rem !important;
    position: relative;
    z-index: 1;
}

.block_last_course_accessed_content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---------- The course name - HERO element ---------- */
.block_last_course_accessed .course_name_large {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.block_last_course_accessed .course_name_large a {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    text-decoration: none !important;
    display: inline-block;
    transition: color 0.25s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.block_last_course_accessed .course_name_large a:hover {
    color: #F40067 !important;
    transform: translateX(2px);
}

/* ---------- Progress bar wrapper ---------- */
.block_last_course_accessed .progressbar_container {
    position: relative;
    cursor: pointer;
    margin: 0 !important;
}

/* ---------- Progress bar - matches the dark version aesthetically ---------- */
.block_last_course_accessed .progress {
    background: rgba(244, 0, 103, 0.08) !important;
    border: 1px solid rgba(244, 0, 103, 0.12);
    border-radius: 100px !important;
    height: 22px !important;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0 !important;
}

.block_last_course_accessed .progress .bar {
    background: linear-gradient(
        90deg,
        #F40067 0%,
        #ff4d94 50%,
        #ff80b5 100%
    ) !important;
    border-radius: 100px !important;
    height: 100% !important;
    box-shadow: 0 0 12px rgba(244, 0, 103, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 22px;
}

/* Animated shimmer - "in progress" signal */
.block_last_course_accessed .progress .bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: progress-shimmer-light 2.5s ease-in-out infinite;
}

@keyframes progress-shimmer-light {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Strip Bootstrap stripes */
.block_last_course_accessed .progress.progress-striped .bar,
.block_last_course_accessed .progress-striped.active .bar {
    background-image: none !important;
    animation: none;
}

/* ---------- Progress percentage text ---------- */
.block_last_course_accessed .progressbar__text {
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 22px !important;
    padding: 0 0.6rem !important;
    position: relative;
    z-index: 1;
}

/* When bar is short (low %), text needs to invert */
.block_last_course_accessed .progress-invert .progressbar__text {
    color: #F40067 !important;
    text-shadow: none;
    padding-left: 0.85rem !important;
}

/* ---------- Success state (100%) ---------- */
.block_last_course_accessed .progress-success .bar {
    background: linear-gradient(
        90deg,
        #10b981 0%,
        #34d399 100%
    ) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}



/* ---------- Make the entire card clickable via the course link ---------- */
.block_last_course_accessed .course_name_large a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}

.block_last_course_accessed .course_name_large {
    position: static;
}

/* But keep the progress bar tooltip clickable */
.block_last_course_accessed .progressbar_container {
    position: relative;
    z-index: 6;
}

/* ---------- Hide the internal status h2 ---------- */
.block_last_course_accessed .progressbar_container > h2 {
    display: none !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .block_last_course_accessed,
    .block_last_course_accessed .course_name_large a,
    .block_last_course_accessed .progress .bar,
    .block_last_course_accessed .progress .bar::after,
    .block_last_course_accessed_content::after {
        transition: none !important;
        animation: none !important;
    }
    
    .block_last_course_accessed .course_name_large a:hover,
    .block_last_course_accessed:hover .block_last_course_accessed_content::after {
        transform: none !important;
    }
}


/* ============================================
   Report Builder Tiles - Modern Data Card Style
   Analytics-dashboard feel with original Totara images
   ============================================ */

/* ---------- The card itself ---------- */
.tui-totara_reportbuilder-listingReportItem {
    position: relative;
    display: flex !important;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    isolation: isolate;
    height: 100%;
    will-change: transform;
}

/* Hover - lift and glow */
.tui-totara_reportbuilder-listingReportItem:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 8px 16px rgba(0, 0, 0, 0.05),
                0 0 0 1px rgba(244, 0, 103, 0.1);
    border-color: rgba(244, 0, 103, 0.15);
}

/* Focus state */
.tui-totara_reportbuilder-listingReportItem:focus-visible {
    outline: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 8px 16px rgba(0, 0, 0, 0.05),
                0 0 0 3px rgba(244, 0, 103, 0.5);
}

/* ---------- The image area becomes a "chart canvas" ---------- */
.tui-totara_reportbuilder-listingReportItem__imageWrap {
    position: relative;
    background: linear-gradient(
        135deg,
        #fdf2f8 0%,
        #fce7f3 50%,
        #fbcfe8 100%
    );
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(244, 0, 103, 0.08);
}

/* Animated grid pattern on the canvas - "data" feel */
.tui-totara_reportbuilder-listingReportItem__imageWrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(244, 0, 103, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 0, 103, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: -1px -1px;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.6s ease;
    opacity: 0.5;
}

.tui-totara_reportbuilder-listingReportItem:hover .tui-totara_reportbuilder-listingReportItem__imageWrap::before {
    opacity: 0.8;
    transform: translateX(-2px) translateY(-2px);
}



/* ---------- The original Totara image - preserved ---------- */
.tui-totara_reportbuilder-listingReportItem__image {
    width: auto !important;
    max-width: 80% !important;
    max-height: 80% !important;
    height: auto !important;
    opacity: 1;
    filter: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    position: relative;
}

.tui-totara_reportbuilder-listingReportItem:hover .tui-totara_reportbuilder-listingReportItem__image {
    transform: scale(1.08);
}

/* ---------- Info section ---------- */
.tui-totara_reportbuilder-listingReportItem__info {
    padding: 1rem 1.25rem 1.25rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    background: #ffffff;
    position: relative;
}

/* "REPORT" label above the title */
.tui-totara_reportbuilder-listingReportItem__info::before {
    content: 'Report';
    font-size: 0.65rem;
    font-weight: 700;
    color: #F40067;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Arrow that fades in on hover */
.tui-totara_reportbuilder-listingReportItem__info::after {
    content: '→';
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    color: #F40067;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
}

.tui-totara_reportbuilder-listingReportItem:hover .tui-totara_reportbuilder-listingReportItem__info::after {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Title ---------- */
.tui-totara_reportbuilder-listingReportItem__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
    margin: 0 !important;
    padding-right: 1.5rem;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tui-totara_reportbuilder-listingReportItem:hover .tui-totara_reportbuilder-listingReportItem__title {
    color: #F40067 !important;
}

/* ---------- Press state ---------- */
.tui-totara_reportbuilder-listingReportItem:active {
    transform: translateY(-2px);
    transition-duration: 0.1s;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .tui-totara_reportbuilder-listingReportItem,
    .tui-totara_reportbuilder-listingReportItem__imageWrap::before,
    .tui-totara_reportbuilder-listingReportItem__imageWrap::after,
    .tui-totara_reportbuilder-listingReportItem__image,
    .tui-totara_reportbuilder-listingReportItem__title,
    .tui-totara_reportbuilder-listingReportItem__info::after {
        transition: none !important;
    }
    
    .tui-totara_reportbuilder-listingReportItem:hover,
    .tui-totara_reportbuilder-listingReportItem:hover .tui-totara_reportbuilder-listingReportItem__image {
        transform: none !important;
    }
    
    .tui-totara_reportbuilder-listingReportItem:hover .tui-totara_reportbuilder-listingReportItem__imageWrap::after {
        transform: scaleX(1) !important;
    }
}



/* ============================================
   Course Search Results - Modern Compact List
   Icon-style thumbnails, editorial layout, polish throughout
   ============================================ */

/* ---------- Page heading spacing ---------- */
.page-heading:has(+ .courses.course-search-result) {
    margin-bottom: 1.5rem !important;
}

/* ---------- The results container ---------- */
.courses.course-search-result {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0 0 2rem 0 !important;
    padding: 0 !important;
}

/* ---------- Each result row ---------- */
.courses.course-search-result .panel.coursebox {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                padding-left 0.3s ease !important;
    position: relative;
    display: grid !important;
    grid-template-columns: 64px 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: 0.4rem 1.25rem;
    align-items: start;
    isolation: isolate;
}

.courses.course-search-result .panel.coursebox:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06),
                0 2px 4px rgba(0, 0, 0, 0.03),
                0 0 0 1px rgba(244, 0, 103, 0.1) !important;
    border-color: rgba(244, 0, 103, 0.15) !important;
    padding-left: 1.7rem !important;
}

/* Pink accent bar that slides in on hover */
.courses.course-search-result .panel.coursebox::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #F40067 0%, #ff4d94 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(244, 0, 103, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.courses.course-search-result .panel.coursebox:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* ---------- The image area becomes a small thumbnail ---------- */
.courses.course-search-result .panel.coursebox .panel-heading {
    grid-column: 1;
    grid-row: 1 / span 2;
    background: linear-gradient(
        135deg,
        #fdf2f8 0%,
        #fce7f3 100%
    ) !important;
    border: 1px solid rgba(244, 0, 103, 0.1) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 64px;
    height: 64px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- The course name link - now a small thumbnail icon ---------- */
.courses.course-search-result .panel.coursebox .coursename {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    display: block;
}

.courses.course-search-result .panel.coursebox .coursename a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    text-indent: -9999px;
    overflow: hidden;
    color: transparent !important;
    text-decoration: none !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 9px;
}

.courses.course-search-result .panel.coursebox:hover .coursename a {
    transform: scale(1.08);
}

/* Dimmed (archive) thumbnails - desaturated */
.courses.course-search-result .panel.coursebox .coursename a.dimmed {
    filter: grayscale(50%) opacity(0.7);
}

/* ---------- Hide the moreinfo div ---------- */
.courses.course-search-result .panel.coursebox .moreinfo {
    display: none !important;
}

/* ---------- Inject the course title as a real heading via duplication trick ---------- */
/* We use a clip-path trick to keep the link clickable but show readable text */

/* Restore visible text on the coursename link by overlaying it */
.courses.course-search-result .panel.coursebox .panel-heading {
    grid-column: 1;
}

/* Add a clickable title overlay using the course name attribute */
/* Since we can't extract link text into another element via CSS alone,
   we'll place the title as a separate stylable layer */

/* The actual title - reset and restyle */
.courses.course-search-result .panel.coursebox .coursename {
    grid-column: 1;
    grid-row: 1 / span 2;
}

/* Now create a "phantom" title element using the link text by removing the text-indent
   and making the image its background */
.courses.course-search-result .panel.coursebox .coursename a {
    text-indent: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
}

/* ---------- TITLE: Inject from data via attr() ---------- */
/* Since CSS can't extract text from a link into another position, we create
   a duplicate clickable area using ::after on the panel.coursebox itself,
   pulling from data-courseid for accessibility */

/* The title needs to be visible somewhere. We'll style the link's text directly
   via a different approach - place the title BESIDE the thumbnail in the grid */

/* Reset: show link text but position it in column 2 */
.courses.course-search-result .panel.coursebox .panel-heading .coursename {
    position: absolute;
    inset: 0;
}

/* ---------- Approach: Show the link text overlaid on the thumbnail with text indented out,
   but ALSO add a styled title via the summary using a different strategy ---------- */

/* Reset the text-indent approach and show the link as a heading in col 2 row 1 */
.courses.course-search-result .panel.coursebox > .panel-heading {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
}

/* The .coursename link IS the clickable title - move it visually to column 2 row 1 */
.courses.course-search-result .panel.coursebox .panel-heading .coursename {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Title text on hover */
.courses.course-search-result .panel.coursebox:hover .coursename a {
    color: transparent !important;
}

/* ---------- Real solution: Use a separate clickable title outside the image ---------- */
/* Since the title is locked in the .coursename link with the background image,
   we'll create a visual wrapper that styles things correctly */

/* Make the entire panel clickable via the existing link */
.courses.course-search-result .panel.coursebox .coursename a::after {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: -1.5rem;
    right: -1.5rem;
    bottom: -1.25rem;
    z-index: 0;
}

/* Title overlay on the thumbnail - small text floating bottom of the icon */
/* Actually - let's keep the title VISIBLE inside the thumbnail using overlay */
.courses.course-search-result .panel.coursebox .panel-heading {
    overflow: visible;
}

/* Show course title as content area heading */
/* We'll use display:contents on parents to break out the link text into a usable position */

/* ---------- CLEANER SOLUTION: Show title in content area via flexbox order ---------- */
/* Reset everything for clean approach */
.courses.course-search-result .panel.coursebox {
    display: flex !important;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Thumbnail */
.courses.course-search-result .panel.coursebox .panel-heading {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    order: 1;
}

/* Content wrapper */
.courses.course-search-result .panel.coursebox .content {
    flex: 1;
    min-width: 0;
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 !important;
    margin: 0 !important;
    background: none;
    border: none;
}

/* Make the link text visible and styled as the title */
.courses.course-search-result .panel.coursebox .coursename a {
    text-indent: 0 !important;
    color: transparent !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border-radius: 9px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.courses.course-search-result .panel.coursebox:hover .coursename a {
    transform: scale(1.08);
}

/* ---------- Inject the title as a duplicate clickable layer ---------- */
/* Since the link text is hidden inside the image, we make the WHOLE card the click target
   by stretching the link via ::after */
.courses.course-search-result .panel.coursebox .coursename a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
}

/* ---------- The summary becomes the visible title + body ---------- */
/* The first line of the summary will visually act as a continuation,
   but the actual TITLE needs to be visible. Since Totara only puts the title
   in the link, we need the title text to be readable. Let's restore it: */

.courses.course-search-result .panel.coursebox .coursename {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

/* OK - simplest readable solution: keep the title visible AS the link, position it */
.courses.course-search-result .panel.coursebox .coursename a {
    color: transparent !important;
    text-indent: -9999px !important;
    font-size: 0 !important;
}

/* ---------- Pull the actual TITLE TEXT via JS-readable but CSS-overlayable approach ---------- */
/* Since pure CSS can't read text content from a sibling element, we accept that
   the title is bound to the link. We display it with a different technique: */

/* Show title in content area by re-rendering the link visibly */
.courses.course-search-result .panel.coursebox .panel-heading::after {
    content: attr(data-title);
    /* This won't work - panel-heading has no data-title */
}




/* ============================================
   Quick Access Admin Menu - Command Centre Style
   Modern popover, grouped sections, polished search
   ============================================ */

/* ---------- The popover container ---------- */
.totara_core__QuickAccess_menu.popover-region-content,
#quickaccess-popover-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18),
                0 8px 16px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    padding: 0 !important;
    overflow: hidden;
    width: 760px !important;
    max-width: 92vw !important;
    max-height: 85vh;
    overflow-y: auto;
    font-size: 0.875rem;
}

/* Custom scrollbar for the menu */
.totara_core__QuickAccess_menu::-webkit-scrollbar {
    width: 8px;
}

.totara_core__QuickAccess_menu::-webkit-scrollbar-track {
    background: transparent;
}

.totara_core__QuickAccess_menu::-webkit-scrollbar-thumb {
    background: rgba(244, 0, 103, 0.2);
    border-radius: 100px;
}

.totara_core__QuickAccess_menu::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 0, 103, 0.4);
}

/* ---------- Header ---------- */
.totara_core__QuickAccess_menu-header {
    padding: 1.25rem 1.5rem 1rem !important;
    background: linear-gradient(
        135deg,
        #fdf2f8 0%,
        #ffffff 60%
    );
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.totara_core__QuickAccess_menu-header_title {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #F40067 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

/* Pulsing pink dot before title */
.totara_core__QuickAccess_menu-header_title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #F40067;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.6);
    animation: admin-pulse 2.5s ease-in-out infinite;
}

@keyframes admin-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---------- Close button ---------- */
.totara_core__QuickAccess_menu-header_control {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    color: #64748b !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.totara_core__QuickAccess_menu-header_control:hover {
    background: rgba(244, 0, 103, 0.1);
    color: #F40067 !important;
    transform: rotate(90deg);
}

.totara_core__QuickAccess_menu-header_control .flex-icon {
    font-size: 0.9rem;
}

/* ---------- Search box - the hero of the interaction ---------- */
.totara_core__QuickAccess_menu_search {
    padding: 0.75rem 1.5rem !important;
    margin: 0 !important;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.totara_core__QuickAccess_menu_search .input-group {
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.totara_core__QuickAccess_menu_search .input-group:focus-within {
    border-color: #F40067;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(244, 0, 103, 0.15);
}

.totara_core__QuickAccess_menu_search-input {
    flex: 1;
    padding: 0.7rem 1rem !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.9rem !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
    width: auto !important;
}

.totara_core__QuickAccess_menu_search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.totara_core__QuickAccess_menu_search .input-group-btn {
    width: auto !important;
    display: flex;
}

.totara_core__QuickAccess_menu_search-button {
    padding: 0 1rem !important;
    background: transparent !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.totara_core__QuickAccess_menu_search-button:hover {
    background: rgba(244, 0, 103, 0.08) !important;
    color: #F40067 !important;
}

.totara_core__QuickAccess_menu_search-button .flex-icon {
    font-size: 0.95rem;
}

/* Keyboard shortcut hint on the right of search */
.totara_core__QuickAccess_menu_search .input-group::after {
    content: '⌘K';
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.03);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    letter-spacing: 0.05em;
}

/* ---------- Hide the horizontal rules ---------- */
.totara_core__QuickAccess_hr {
    display: none !important;
}

/* ---------- The 4-column grid container ---------- */
.totara_core__QuickAccess_flex-container {
    padding: 1.25rem 1.5rem !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    background: #ffffff;
}

/* ---------- Each group ---------- */
.totara_core__QuickAccess_group {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

/* Group title - small uppercase category header */
.totara_core__QuickAccess_group-title {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8 !important;
    margin: 0 0 0.65rem 0 !important;
    padding: 0 0 0.5rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.2;
}

/* Small pink dot before each group title */
.totara_core__QuickAccess_group-title::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #F40067;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- The link list ---------- */
.totara_core__QuickAccess_group-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.totara_core__QuickAccess_group-list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- The actual links ---------- */
.totara_core__QuickAccess_group-list li a {
    display: flex !important;
    align-items: center;
    padding: 0.4rem 0.65rem !important;
    border-radius: 6px;
    font-size: 0.825rem;
    font-weight: 500;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    line-height: 1.3;
    gap: 0.5rem;
}

/* Tiny bullet before each link */
.totara_core__QuickAccess_group-list li a::before {
    content: '';
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Arrow that appears on hover */
.totara_core__QuickAccess_group-list li a::after {
    content: '→';
    margin-left: auto;
    color: #F40067;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Link hover state */
.totara_core__QuickAccess_group-list li a:hover,
.totara_core__QuickAccess_group-list li a:focus-visible {
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.08) 0%,
        rgba(244, 0, 103, 0.02) 100%
    );
    color: #F40067 !important;
    transform: translateX(2px);
    outline: none;
}

.totara_core__QuickAccess_group-list li a:hover::before,
.totara_core__QuickAccess_group-list li a:focus-visible::before {
    background: #F40067;
    transform: scale(1.8);
    box-shadow: 0 0 6px rgba(244, 0, 103, 0.5);
}

.totara_core__QuickAccess_group-list li a:hover::after,
.totara_core__QuickAccess_group-list li a:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Footer ---------- */
.totara_core__QuickAccess_footer {
    padding: 0.85rem 1.5rem !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.totara_core__QuickAccess_footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.totara_core__QuickAccess_footer a:hover {
    background: rgba(244, 0, 103, 0.08);
    color: #F40067 !important;
}

/* Keyboard hint for escape key on the right */
.totara_core__QuickAccess_footer::after {
    content: 'ESC to close';
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: auto;
}

/* ---------- Loading state ---------- */
.totara_core__QuickAccess_menu--loading {
    min-height: 400px;
}

.totara_core__QuickAccess_menu_content_loadingContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #F40067;
}

.totara_core__QuickAccess_menu_content_loadingContainer .flex-icon {
    font-size: 1.5rem;
}

/* ---------- Responsive - stack to single column on narrow screens ---------- */
@media (max-width: 700px) {
    .totara_core__QuickAccess_menu.popover-region-content,
    #quickaccess-popover-content {
        width: 92vw !important;
    }
    
    .totara_core__QuickAccess_flex-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Hide keyboard hints on mobile */
    .totara_core__QuickAccess_menu_search .input-group::after,
    .totara_core__QuickAccess_footer::after {
        display: none;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .totara_core__QuickAccess_menu-header_title::before {
        animation: none;
    }
    
    .totara_core__QuickAccess_menu-header_control,
    .totara_core__QuickAccess_menu_search .input-group,
    .totara_core__QuickAccess_group-list li a,
    .totara_core__QuickAccess_group-list li a::before,
    .totara_core__QuickAccess_group-list li a::after,
    .totara_core__QuickAccess_footer a {
        transition: none !important;
    }
    
    .totara_core__QuickAccess_menu-header_control:hover,
    .totara_core__QuickAccess_group-list li a:hover {
        transform: none !important;
    }
}


/* ============================================
   Quick Access Admin Menu - Command Centre Style
   Wide 4-column layout with icons
   ============================================ */

/* ---------- The popover container - WIDER ---------- */
.totara_core__QuickAccess_menu.popover-region-content,
#quickaccess-popover-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18),
                0 8px 16px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    padding: 0 !important;
    overflow: hidden;
    width: 1080px !important;
    max-width: 95vw !important;
    max-height: 85vh;
    overflow-y: auto;
    font-size: 0.875rem;
}

/* Custom scrollbar */
.totara_core__QuickAccess_menu::-webkit-scrollbar {
    width: 8px;
}

.totara_core__QuickAccess_menu::-webkit-scrollbar-track {
    background: transparent;
}

.totara_core__QuickAccess_menu::-webkit-scrollbar-thumb {
    background: rgba(244, 0, 103, 0.2);
    border-radius: 100px;
}

.totara_core__QuickAccess_menu::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 0, 103, 0.4);
}

/* ---------- Header ---------- */
.totara_core__QuickAccess_menu-header {
    padding: 1.25rem 1.75rem 1rem !important;
    background: linear-gradient(
        135deg,
        #fdf2f8 0%,
        #ffffff 60%
    );
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.totara_core__QuickAccess_menu-header_title {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #F40067 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.totara_core__QuickAccess_menu-header_title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #F40067;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.6);
    animation: admin-pulse 2.5s ease-in-out infinite;
}

@keyframes admin-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---------- Close button ---------- */
.totara_core__QuickAccess_menu-header_control {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    color: #64748b !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.totara_core__QuickAccess_menu-header_control:hover {
    background: rgba(244, 0, 103, 0.1);
    color: #F40067 !important;
    transform: rotate(90deg);
}

.totara_core__QuickAccess_menu-header_control .flex-icon {
    font-size: 0.9rem;
}

/* ---------- Search box ---------- */
.totara_core__QuickAccess_menu_search {
    padding: 0.85rem 1.75rem !important;
    margin: 0 !important;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.totara_core__QuickAccess_menu_search .input-group {
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.totara_core__QuickAccess_menu_search .input-group:focus-within {
    border-color: #F40067;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(244, 0, 103, 0.15);
}

.totara_core__QuickAccess_menu_search-input {
    flex: 1;
    padding: 0.75rem 1rem !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.9rem !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
    width: auto !important;
}

.totara_core__QuickAccess_menu_search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.totara_core__QuickAccess_menu_search .input-group-btn {
    width: auto !important;
    display: flex;
}

.totara_core__QuickAccess_menu_search-button {
    padding: 0 1rem !important;
    background: transparent !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.totara_core__QuickAccess_menu_search-button:hover {
    background: rgba(244, 0, 103, 0.08) !important;
    color: #F40067 !important;
}

.totara_core__QuickAccess_menu_search-button .flex-icon {
    font-size: 0.95rem;
}

.totara_core__QuickAccess_menu_search .input-group::after {
    content: '⌘K';
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.03);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    letter-spacing: 0.05em;
}

/* ---------- Hide horizontal rules ---------- */
.totara_core__QuickAccess_hr {
    display: none !important;
}

/* ---------- The 4-COLUMN grid container ---------- */
.totara_core__QuickAccess_flex-container {
    padding: 1.5rem 1.75rem !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 2rem;
    background: #ffffff;
}

/* ---------- Each group ---------- */
.totara_core__QuickAccess_group {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

.totara_core__QuickAccess_group-title {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8 !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 0 0.6rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.2;
}

.totara_core__QuickAccess_group-title::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #F40067;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Link list ---------- */
.totara_core__QuickAccess_group-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.totara_core__QuickAccess_group-list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- Links with icons ---------- */
.totara_core__QuickAccess_group-list li a {
    display: flex !important;
    align-items: center;
    padding: 0.45rem 0.6rem !important;
    border-radius: 7px;
    font-size: 0.825rem;
    font-weight: 500;
    color: #475569 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    line-height: 1.3;
    gap: 0.55rem;
}

/* ---------- Icon before each link - using pseudo-element with emoji ---------- */
.totara_core__QuickAccess_group-list li a::before {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
    filter: grayscale(60%);
    opacity: 0.75;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Arrow on hover */
.totara_core__QuickAccess_group-list li a::after {
    content: '→';
    margin-left: auto;
    color: #F40067;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover state */
.totara_core__QuickAccess_group-list li a:hover,
.totara_core__QuickAccess_group-list li a:focus-visible {
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.08) 0%,
        rgba(244, 0, 103, 0.02) 100%
    );
    color: #F40067 !important;
    transform: translateX(2px);
    outline: none;
}

.totara_core__QuickAccess_group-list li a:hover::before,
.totara_core__QuickAccess_group-list li a:focus-visible::before {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

.totara_core__QuickAccess_group-list li a:hover::after,
.totara_core__QuickAccess_group-list li a:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   ICON MAPPINGS - by href matching
   ============================================ */

/* ---------- Core platform group ---------- */
.totara_core__QuickAccess_group-list li a[href*="tenant"]::before { content: '🏢'; }
.totara_core__QuickAccess_group-list li a[href*="admin/user"]::before { content: '👥'; }
.totara_core__QuickAccess_group-list li a[href*="cohort"]::before { content: '🎯'; }
.totara_core__QuickAccess_group-list li a[href*="position"]::before { content: '📋'; }
.totara_core__QuickAccess_group-list li a[href*="organisation"]::before { content: '🏛️'; }
.totara_core__QuickAccess_group-list li a[href*="userpolicies"]::before { content: '🔐'; }
.totara_core__QuickAccess_group-list li a[href*="competency"]::before { content: '⭐'; }
.totara_core__QuickAccess_group-list li a[href*="badges"]::before { content: '🏅'; }
.totara_core__QuickAccess_group-list li a[href*="evidence"]::before { content: '📂'; }
.totara_core__QuickAccess_group-list li a[href*="reportbuilder"]::before { content: '📊'; }
.totara_core__QuickAccess_group-list li a[href*="approval"]::before { content: '✅'; }

/* ---------- Learning group ---------- */
.totara_core__QuickAccess_group-list li a[href*="course/management"]::before { content: '📚'; }
.totara_core__QuickAccess_group-list li a[href*="program/manage.php?viewtype=program"]::before { content: '🎓'; }
.totara_core__QuickAccess_group-list li a[href*="viewtype=certification"]::before { content: '📜'; }
.totara_core__QuickAccess_group-list li a[href*="facetoface"]::before { content: '🎤'; }
.totara_core__QuickAccess_group-list li a[href*="gradessettings"]::before { content: '💯'; }
.totara_core__QuickAccess_group-list li a[href*="plan/template"]::before { content: '🗺️'; }
.totara_core__QuickAccess_group-list li a[href*="contentmarketplace"]::before { content: '🛒'; }

/* ---------- Performance group ---------- */
.totara_core__QuickAccess_group-list li a[href*="perform/manage"]::before { content: '🎯'; }
.totara_core__QuickAccess_group-list li a[href*="perform/reporting"]::before { content: '📈'; }
.totara_core__QuickAccess_group-list li a[href*="competency/assignments"]::before { content: '🎖️'; }

/* ---------- Configuration group ---------- */
.totara_core__QuickAccess_group-list li a[href*="themesettings"]::before { content: '🎨'; }
.totara_core__QuickAccess_group-list li a[href*="section=navigation"]::before { content: '🧭'; }
.totara_core__QuickAccess_group-list li a[href*="admin/plugins"]::before { content: '🧩'; }
.totara_core__QuickAccess_group-list li a[href*="sitepolicies"]::before { content: '🛡️'; }
.totara_core__QuickAccess_group-list li a[href*="totara_sync"]::before { content: '🔄'; }
.totara_core__QuickAccess_group-list li a[href*="langsettings"]::before { content: '🌐'; }
.totara_core__QuickAccess_group-list li a[href*="environment"]::before { content: '🖥️'; }
.totara_core__QuickAccess_group-list li a[href*="debugging"]::before { content: '🔧'; }
.totara_core__QuickAccess_group-list li a[href*="optionalsubsystems"]::before { content: '⚙️'; }
.totara_core__QuickAccess_group-list li a[href*="admin/index.php"]::before { content: 'ℹ️'; }
.totara_core__QuickAccess_group-list li a[href*="msteamssetup"]::before { content: '💬'; }
.totara_core__QuickAccess_group-list li a[href*="notification/notifications"]::before { content: '🔔'; }

/* ---------- Fallback icon for anything unmatched ---------- */
.totara_core__QuickAccess_group-list li a:not([href*="tenant"]):not([href*="admin/user"]):not([href*="cohort"]):not([href*="position"]):not([href*="organisation"]):not([href*="userpolicies"]):not([href*="competency"]):not([href*="badges"]):not([href*="evidence"]):not([href*="reportbuilder"]):not([href*="approval"]):not([href*="course/management"]):not([href*="program/manage"]):not([href*="facetoface"]):not([href*="gradessettings"]):not([href*="plan/template"]):not([href*="contentmarketplace"]):not([href*="perform"]):not([href*="themesettings"]):not([href*="section=navigation"]):not([href*="admin/plugins"]):not([href*="sitepolicies"]):not([href*="totara_sync"]):not([href*="langsettings"]):not([href*="environment"]):not([href*="debugging"]):not([href*="optionalsubsystems"]):not([href*="admin/index"]):not([href*="msteamssetup"]):not([href*="notification"])::before {
    content: '•';
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* ---------- Footer ---------- */
.totara_core__QuickAccess_footer {
    padding: 0.85rem 1.75rem !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.totara_core__QuickAccess_footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.totara_core__QuickAccess_footer a:hover {
    background: rgba(244, 0, 103, 0.08);
    color: #F40067 !important;
}

.totara_core__QuickAccess_footer::after {
    content: 'ESC to close';
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: auto;
}

/* ---------- Loading state ---------- */
.totara_core__QuickAccess_menu--loading {
    min-height: 400px;
}

.totara_core__QuickAccess_menu_content_loadingContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #F40067;
}

.totara_core__QuickAccess_menu_content_loadingContainer .flex-icon {
    font-size: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .totara_core__QuickAccess_flex-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .totara_core__QuickAccess_flex-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .totara_core__QuickAccess_menu.popover-region-content,
    #quickaccess-popover-content {
        width: 95vw !important;
    }
    
    .totara_core__QuickAccess_flex-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .totara_core__QuickAccess_menu_search .input-group::after,
    .totara_core__QuickAccess_footer::after {
        display: none;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .totara_core__QuickAccess_menu-header_title::before {
        animation: none;
    }
    
    .totara_core__QuickAccess_menu-header_control,
    .totara_core__QuickAccess_menu_search .input-group,
    .totara_core__QuickAccess_group-list li a,
    .totara_core__QuickAccess_group-list li a::before,
    .totara_core__QuickAccess_group-list li a::after,
    .totara_core__QuickAccess_footer a {
        transition: none !important;
    }
    
    .totara_core__QuickAccess_menu-header_control:hover,
    .totara_core__QuickAccess_group-list li a:hover,
    .totara_core__QuickAccess_group-list li a:hover::before {
        transform: none !important;
    }
}


/* ---------- Close button - dark red ---------- */
.totara_core__QuickAccess_menu-header_control {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    color: #dc2626 !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.totara_core__QuickAccess_menu-header_control:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff !important;
    transform: rotate(90deg);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.totara_core__QuickAccess_menu-header_control .flex-icon {
    font-size: 0.9rem;
}


/* ============================================
   User Toolbar Icons - Spin on Hover
   Gear, envelope, bell, and user menu icons
   ============================================ */

/* ---------- Smooth rotation transition on all toolbar icons ---------- */
.userToolbar_prim--side > div .flex-icon,
.userToolbar_prim--side .usermenu .flex-icon,
.userToolbar_prim--side .userbutton .avatars {
    display: inline-block;
    transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center center;
}

/* ---------- On hover of the parent nav-link, spin the icon ---------- */
.userToolbar_prim--side > div .nav-link:hover .flex-icon,
.userToolbar_prim--side > div .popover-region-toggle:hover .flex-icon,
.userToolbar_prim--side > div .totara_core__QuickAccess_icon:hover .flex-icon,
.userToolbar_prim--side .usermenu .toggle-display:hover .flex-icon,
.userToolbar_prim--side .usermenu .toggle-display:hover .avatars {
    transform: rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Keyboard focus - spin too for accessibility parity ---------- */
.userToolbar_prim--side > div .nav-link:focus-visible .flex-icon,
.userToolbar_prim--side > div .popover-region-toggle:focus-visible .flex-icon,
.userToolbar_prim--side > div .totara_core__QuickAccess_icon:focus-visible .flex-icon,
.userToolbar_prim--side .usermenu .toggle-display:focus-visible .flex-icon,
.userToolbar_prim--side .usermenu .toggle-display:focus-visible .avatars {
    transform: rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Belt and braces - make sure icons inside the admin popover DON'T spin ---------- */
.totara_core__QuickAccess_menu .flex-icon,
.popover-region-container .flex-icon {
    transition: none;
    transform: none;
}

.totara_core__QuickAccess_menu .flex-icon:hover,
.popover-region-container .flex-icon:hover {
    transform: none !important;
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .userToolbar_prim--side > div .flex-icon,
    .userToolbar_prim--side .usermenu .flex-icon,
    .userToolbar_prim--side .userbutton .avatars {
        transition: none !important;
    }
    
    .userToolbar_prim--side > div .nav-link:hover .flex-icon,
    .userToolbar_prim--side > div .popover-region-toggle:hover .flex-icon,
    .userToolbar_prim--side > div .totara_core__QuickAccess_icon:hover .flex-icon,
    .userToolbar_prim--side .usermenu .toggle-display:hover .flex-icon,
    .userToolbar_prim--side .usermenu .toggle-display:hover .avatars {
        transform: none !important;
    }
}



/* ============================================
   Messages & Notifications Popovers
   Modern app-style notification panel
   ============================================ */

/* ---------- The popover container ---------- */
.popover-region-container {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18),
                0 8px 16px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 400px !important;
    max-width: 92vw !important;
    max-height: 560px !important;
    display: flex !important;
    flex-direction: column;
    font-size: 0.875rem;
}

/* ---------- Header ---------- */
.popover-region-header-container {
    padding: 1rem 1.25rem !important;
    background: linear-gradient(
        135deg,
        #fdf2f8 0%,
        #ffffff 70%
    );
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ---------- Header title ---------- */
.popover-region-header-text {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Glowing pink dot before title */
.popover-region-header-text::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #F40067;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(244, 0, 103, 0.6);
    flex-shrink: 0;
    animation: popover-pulse 2.5s ease-in-out infinite;
}

@keyframes popover-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- Header action buttons ---------- */
.popover-region-header-actions {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* "New message" link - becomes a proper pink pill CTA */
.newmessage-link {
    margin: 0 !important;
    padding: 0 !important;
}

.newmessage-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: #F40067;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 100px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(244, 0, 103, 0.25);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.3;
    white-space: nowrap;
}

.newmessage-link a::before {
    content: '+';
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
}

.newmessage-link a:hover {
    background: #ff1a78;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(244, 0, 103, 0.35);
}

/* "Mark all as read" and "Preferences" icon buttons */
.popover-region-header-actions > a:not(.newmessage-link a) {
    width: 30px;
    height: 30px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    color: #64748b !important;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.popover-region-header-actions > a:not(.newmessage-link a):hover {
    background: rgba(244, 0, 103, 0.1);
    color: #F40067 !important;
    transform: scale(1.05);
}

.popover-region-header-actions .flex-icon {
    font-size: 0.85rem;
}

/* Gear icon on preferences hover - spin it */
.popover-region-header-actions > a[href*="preferences"]:hover .flex-icon,
.popover-region-header-actions > a[href*="notificationpreferences"]:hover .flex-icon {
    transform: rotate(90deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popover-region-header-actions > a[href*="preferences"] .flex-icon,
.popover-region-header-actions > a[href*="notificationpreferences"] .flex-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hide the loading-icon span on mark-all-read by default */
.popover-region-header-actions .mark-all-read-button .loading-icon {
    display: none;
}

/* ---------- Content container ---------- */
.popover-region-content-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 !important;
    background: #ffffff;
    position: relative;
    min-height: 180px;
}

/* Custom scrollbar */
.popover-region-content-container::-webkit-scrollbar {
    width: 6px;
}

.popover-region-content-container::-webkit-scrollbar-track {
    background: transparent;
}

.popover-region-content-container::-webkit-scrollbar-thumb {
    background: rgba(244, 0, 103, 0.2);
    border-radius: 100px;
}

.popover-region-content-container::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 0, 103, 0.4);
}

.popover-region-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- Individual messages/notifications (when present) ---------- */
.popover-region-content .messages,
.popover-region-content .all-notifications {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Message/notification item styling (for when content exists) */
.popover-region-content .messages > *,
.popover-region-content .all-notifications > * {
    padding: 0.85rem 1.25rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, padding-left 0.2s ease;
    position: relative;
    display: block;
    text-decoration: none;
}

.popover-region-content .messages > *:hover,
.popover-region-content .all-notifications > *:hover {
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.04) 0%,
        rgba(244, 0, 103, 0.01) 100%
    );
    padding-left: 1.5rem !important;
}

/* Pink accent bar on hover */
.popover-region-content .messages > *::before,
.popover-region-content .all-notifications > *::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #F40067 0%, #ff4d94 100%);
    border-radius: 0 3px 3px 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popover-region-content .messages > *:hover::before,
.popover-region-content .all-notifications > *:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* ---------- Empty state - properly designed ---------- */
.empty-message {
    padding: 3.5rem 1.5rem !important;
    text-align: center !important;
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    margin: 0 !important;
}

/* Decorative icon above empty state */
.empty-message::before {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
    background: linear-gradient(
        135deg,
        #fdf2f8 0%,
        #fce7f3 100%
    );
    border: 1px solid rgba(244, 0, 103, 0.1);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 12px rgba(244, 0, 103, 0.08);
}

/* Inbox/bell icon inside the empty state decoration */
.empty-message::after {
    content: '📭';
    position: absolute;
    top: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.75rem;
    filter: grayscale(30%);
    opacity: 0.8;
}

/* Swap the emoji for notifications panel specifically */
.popover-region-notifications .empty-message::after {
    content: '🔔';
}

/* ---------- Loading spinner ---------- */
.popover-region-content-container > .loading-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #F40067;
    font-size: 1.5rem;
}

.popover-region-content-container[aria-busy="true"] > .loading-icon {
    display: block;
}

.popover-region-content-container:not([aria-busy="true"]) > .loading-icon {
    display: none;
}

/* ---------- Footer "See all" link ---------- */
.see-all-link {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8fafc;
    transition: background 0.25s ease;
}

.see-all-link:hover {
    background: linear-gradient(
        90deg,
        rgba(244, 0, 103, 0.04) 0%,
        rgba(244, 0, 103, 0.08) 100%
    );
}

.popover-region-footer-container {
    padding: 0.85rem 1.25rem !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popover-region-seeall-text {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s ease;
}

.popover-region-seeall-text::after {
    content: '→';
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.see-all-link:hover .popover-region-seeall-text {
    color: #F40067 !important;
}

.see-all-link:hover .popover-region-seeall-text::after {
    transform: translateX(3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .popover-region-container {
        width: 95vw !important;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .popover-region-header-text::before {
        animation: none;
    }
    
    .popover-region-header-actions > a,
    .newmessage-link a,
    .popover-region-content .messages > *,
    .popover-region-content .messages > *::before,
    .popover-region-content .all-notifications > *,
    .popover-region-content .all-notifications > *::before,
    .see-all-link,
    .popover-region-seeall-text::after,
    .popover-region-header-actions .flex-icon {
        transition: none !important;
    }
    
    .popover-region-header-actions > a:hover,
    .newmessage-link a:hover,
    .popover-region-content .messages > *:hover,
    .popover-region-content .all-notifications > *:hover,
    .see-all-link:hover .popover-region-seeall-text::after {
        transform: none !important;
    }
}
