/* Typography */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,600,800');

html {
    font-size: 100%;
}

body {
    --pcl-navbar-height: 58.09375px;
}

body {
    background: white;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.75;
    color: #000000;
    font-display: swap;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    margin-top: 0;
    font-size: 2.4rem;
}

h2 {font-size: 1.9rem;}
h3 {font-size: 1.4rem;}
h4 {font-size: 1.2rem;}
h5 {font-size: 1rem;}

/* Layout */
#region-main {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Coloring */
.bg-blue {
    background-color: rgb(48,174,210);
}

.bg-dark-blue {
    background-color: rgb(15,111,197);
}

.nav-menu {
    border-radius: 7px;
    border: none;
}

.navbar-toggler {
    color: white;
    padding: 0.5rem;
    font-size: 1rem;
}

.navbar-expand-lg .pcl-navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    body.pcl-microsite-fullscreen .pcl-sidebar {
        display: none !important;
    }
    body.pcl-microsite-fullscreen.pcl-nav-open .pcl-sidebar {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 285px;
        height: calc(100vh - 80px);
        z-index: 1050;
        overflow-y: auto;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.18);
    }
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link-light {
    color: #ffffff;
    font-weight: 500;
}

.nav-link-light:hover,
.nav-link-light:focus {
    color: #e8f6ff;
}

.pcl-navbar {
    position: sticky;
    top: 0;
    z-index: 1060;
    min-height: var(--pcl-navbar-height, 58.09375px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.pcl-brand-logo {
    height: 38px;
    width: auto;
}

/* Quest & Collect streak badge in the landing navbar */
body.pcl-landing-page .pcl-qc-navbar-streak,
body.path-local-pcl-questcollect .pcl-qc-navbar-streak,
body.path-local-pcl_questcollect .pcl-qc-navbar-streak {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.3rem 0.7rem 0.3rem 0.42rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #fff !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

body.pcl-landing-page .pcl-qc-navbar-streak__flame,
body.path-local-pcl-questcollect .pcl-qc-navbar-streak__flame,
body.path-local-pcl_questcollect .pcl-qc-navbar-streak__flame {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 1.65rem !important;
    height: 1.9rem !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-right: -0.05rem !important;
    transform: scale(1) !important;
    transform-origin: center center !important;
}

body.pcl-landing-page .pcl-qc-navbar-streak__img,
body.path-local-pcl-questcollect .pcl-qc-navbar-streak__img,
body.path-local-pcl_questcollect .pcl-qc-navbar-streak__img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18)) !important;
    transform: translateY(0) !important;
}

body.pcl-landing-page .pcl-qc-navbar-streak__number,
body.path-local-pcl-questcollect .pcl-qc-navbar-streak__number,
body.path-local-pcl_questcollect .pcl-qc-navbar-streak__number {
    min-width: 1.55rem !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18) !important;
    color: #fff !important;
    position: static !important;
    transform: none !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

body.pcl-landing-page .pcl-qc-navbar-streak__popover-title,
body.path-local-pcl-questcollect .pcl-qc-navbar-streak__popover-title,
body.path-local-pcl_questcollect .pcl-qc-navbar-streak__popover-title {
    display: none !important;
}

.pcl-user-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.pcl-user-button:hover,
.pcl-user-button:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.pcl-user-menu {
    position: relative;
}

.pcl-logout-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.pcl-logout-button:hover,
.pcl-logout-button:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.pcl-sidebar-collapse-toggle {
    width: 3rem;
    height: 3rem;
    border: 0;
    align-items: center;
    justify-content: center;
}

.pcl-sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    bottom: 0;
    width: 285px;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0.9rem;
    z-index: 1030;
    overflow-y: auto;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 992px) {
}

html.pcl-sidebar-collapsed .pcl-sidebar,
body.pcl-sidebar-collapsed .pcl-sidebar {
    width: 84px;
    padding-inline: 0.35rem;
}

html.pcl-sidebar-collapsed .pcl-sidebar-item span,
html.pcl-sidebar-collapsed .pcl-sidebar-child span,
body.pcl-sidebar-collapsed .pcl-sidebar-item span,
body.pcl-sidebar-collapsed .pcl-sidebar-child span {
    display: none;
}

html.pcl-sidebar-collapsed .pcl-sidebar-item,
html.pcl-sidebar-collapsed .pcl-sidebar-child,
body.pcl-sidebar-collapsed .pcl-sidebar-item,
body.pcl-sidebar-collapsed .pcl-sidebar-child {
    justify-content: center;
    padding-inline: 0.4rem;
}

.pcl-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pcl-sidebar-item,
.pcl-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: #16324f;
    text-decoration: none;
    font-weight: 600;
}

.pcl-sidebar-item:hover,
.pcl-sidebar-item:focus,
.pcl-menu-item:hover,
.pcl-menu-item:focus {
    background: rgba(15, 111, 197, 0.08);
    color: #0f6fc5;
    text-decoration: none;
}

.pcl-sidebar-item.is-active,
.pcl-menu-item.is-active {
    background: rgba(15, 111, 197, 0.14);
    color: #0f6fc5;
}

.pcl-sidebar-child,
.pcl-menu-child {
    margin-left: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.pcl-sidebar-section,
.pcl-menu-section {
    padding: 0.9rem 0.9rem 0.2rem;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8a9bb0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin-top: 0.25rem;
}

html.pcl-sidebar-collapsed .pcl-sidebar-section,
body.pcl-sidebar-collapsed .pcl-sidebar-section {
    display: none;
}

.pcl-mobile-menu {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1040;
    position: relative;
}

.pcl-mobile-menu:not(.show) {
    display: none;
}

.pcl-mobile-menu-body {
    padding: 0.5rem 0.75rem 1rem;
}

.path-local-pcl_landing #page,
.path-local-pcl_portals #page {
    min-height: 100vh;
}

body.pcl-frontpage-dashboard {
    background:
        radial-gradient(circle at top left, rgba(48, 174, 210, 0.14), transparent 34rem),
        linear-gradient(180deg, #f6fbff 0%, #ffffff 44%, #f5f9fc 100%);
    scrollbar-gutter: stable;
}

body.pcl-frontpage-dashboard #page-header {
    display: none !important;
}

body.pcl-frontpage-dashboard #page-content,
body.pcl-frontpage-dashboard #region-main,
body.pcl-frontpage-dashboard #region-main-box {
    padding: 0 !important;
}

body.pcl-frontpage-dashboard #region-main {
    border: 0 !important;
    background: transparent !important;
}

body.pcl-frontpage-dashboard.pcl-shell-pending .pcl-sidebar {
    visibility: hidden !important;
}

body.pcl-frontpage-dashboard.pcl-shell-ready .pcl-sidebar,
body.pcl-frontpage-dashboard.pcl-shell-ready .pcl-auth-frontpage-main {
    visibility: visible !important;
}

.pcl-auth-frontpage-main {
    min-height: calc(100vh - 72px);
    padding: 2rem clamp(1rem, 3vw, 2.5rem) 3rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    position: relative;
}

body.pcl-frontpage-dashboard {
    overflow-x: hidden !important;
}

body.pcl-frontpage-dashboard #page.drawers,
body.pcl-frontpage-dashboard #page,
body.pcl-frontpage-dashboard .main-inner,
body.pcl-frontpage-dashboard #topofscroll {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body.pcl-frontpage-dashboard .pcl-auth-frontpage-main {
    padding-top: calc(2rem + var(--pcl-navbar-height, 84.5px));
    margin-left: 0;
}

@media (min-width: 992px) {
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main {
        margin-left: 285px !important;
        width: auto !important;
        max-width: none !important;
        padding-left: clamp(1rem, 3vw, 2.5rem) !important;
        padding-right: clamp(1rem, 3vw, 2.5rem) !important;
    }

    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main {
        margin-left: 84px !important;
        width: auto !important;
        max-width: none !important;
        padding-left: clamp(1rem, 3vw, 2.5rem) !important;
        padding-right: clamp(1rem, 3vw, 2.5rem) !important;
    }
}

.pcl-auth-frontpage-main #portals.row.portals {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

.pcl-auth-frontpage-main .card-main {
    padding: 0;
}

.pcl-auth-frontpage-main .card-selector {
    border: 0;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(22, 50, 79, 0.12);
}

.pcl-auth-frontpage-main .card-selector .card-body {
    min-height: 178px;
    justify-content: center;
}

.pcl-auth-frontpage-main .card-footer {
    min-height: 78px;
    background: #ffffff;
    border-top: 0;
}

.pcl-auth-frontpage-main #custom_footer {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}

/* ================================================================
   GLOBAL PCL LAYOUT — all Moodle page types
   PCL sidebar is position:fixed, top:80px, left:0, width:285px.
   Offset #topofscroll (covers page header + main content) on desktop.
   Microsite fullscreen pages override this in the section below.
   ================================================================ */

@media (min-width: 992px) {
    body.pcl-frontpage-dashboard #topofscroll {
        margin-left: 0 !important;
    }
    /* Offset ALL page content (header + main) past the fixed PCL sidebar. */
    body:not(.pcl-frontpage-dashboard) #topofscroll {
        margin-left: 285px !important;
        padding-top: 0.25rem !important;
    }
    body.pcl-sidebar-collapsed:not(.pcl-frontpage-dashboard) #topofscroll {
        margin-left: 84px !important;
        padding-top: 0.25rem !important;
    }
    /* Admin pages inside pcl_landing need the same sidebar contract as the
       other PCL routes, but Moodle's admin layout adds an extra offset that
       leaves a visible gap unless we normalize it here. */
    body.path-local-pcl_landing-admin #topofscroll,
    body.path-local-pcl_landing_admin #topofscroll {
        margin-left: 285px !important;
        padding-top: 0.25rem !important;
    }
    body.path-local-pcl_landing-admin.pcl-sidebar-collapsed #topofscroll,
    body.path-local-pcl_landing_admin.pcl-sidebar-collapsed #topofscroll {
        margin-left: 84px !important;
        padding-top: 0.25rem !important;
    }
    /* Constrain #topofscroll width so the sidebar margin does not cause overflow.
       Moodle's sitewide.css sets #page.drawers .main-inner { width: 100% !important }
       at specificity (1,2,0). We need #page.drawers + #topofscroll to reach (2,1,0)
       and beat it. The :not() clauses exclude pages that use margin-left: 0. */
    body:not(.pcl-frontpage-dashboard):not(.pcl-dashboard-active):not(.pcl-microsite-fullscreen) #page.drawers #topofscroll {
        width: calc(100% - 285px) !important;
    }
    body.pcl-sidebar-collapsed:not(.pcl-frontpage-dashboard):not(.pcl-dashboard-active):not(.pcl-microsite-fullscreen) #page.drawers #topofscroll {
        width: calc(100% - 84px) !important;
    }
    body.path-local-pcl_landing-admin #page.drawers #topofscroll,
    body.path-local-pcl_landing_admin #page.drawers #topofscroll {
        width: calc(100% - 285px) !important;
        max-width: calc(100% - 285px) !important;
    }
    body.path-local-pcl_landing-admin.pcl-sidebar-collapsed #page.drawers #topofscroll,
    body.path-local-pcl_landing_admin.pcl-sidebar-collapsed #page.drawers #topofscroll {
        width: calc(100% - 84px) !important;
        max-width: calc(100% - 84px) !important;
    }
    /* Admin settings pages already shrink the shell via the content column,
       so use the viewport width here to keep the right edge anchored when the
       sidebar toggles instead of subtracting the sidebar twice. */
    body.path-admin.path-admin-setting #page.drawers #topofscroll {
        width: calc(100% - 285px) !important;
        max-width: calc(100% - 285px) !important;
    }
    body.path-admin.path-admin-setting.pcl-sidebar-collapsed #page.drawers #topofscroll {
        width: calc(100% - 84px) !important;
        max-width: calc(100% - 84px) !important;
    }
    body.path-admin.path-admin-setting #page-content,
    body.path-admin.path-admin-setting #region-main-box,
    body.path-admin.path-admin-setting #region-main,
    body.path-admin.path-admin-setting #region-main > div[role="main"] {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    body.pcl-sidebar-collapsed .pcl-sidebar {
        overflow-x: hidden;
    }
    /* Zero Boost Union's drawer-open left/right padding and margin.
       Boost Union applies the left drawer offset on #page.drawers.show-drawer-left;
       keep that shell pinned to the viewport so the PCL sidebar owns the gutter. */
    #page {
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }
    #page.drawers.show-drawer-left {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Boost Union also applies margin-left: 285px directly to #region-main when
       show-drawer-left is active. PCL owns the gutter via #topofscroll — cancel this. */
    #page.show-drawer-left #region-main {
        margin-left: 0 !important;
    }
    /* Hide Boost Union drawer toggles and drawers — PCL burger is the sole nav toggle */
    .drawer-toggles,
    .drawer.drawer-left,
    .drawer.drawer-right {
        display: none !important;
    }
}

/* ================================================================
   SECONDARY NAVIGATION — Moodle 4.x feature (not present in 3.10)
   .secondary-navigation is a horizontal tab bar rendered by
   output::secondarynav() on every drawers-layout page. It draws tabs
   from the current course/system context (Participants, Grades, etc.).

   Policy (survives 4.1 → 4.5 migration — class name is stable):
   • PCL plugin pages  → suppress. Context is frontpage course (id=1)
     so tabs are irrelevant ("Home", etc.). PCL sidebar + plugin nav
     own the navigation surface on these paths.
   • Moodle core pages (path-course, path-admin, path-my, path-mod-*)
     → keep. Tabs are genuinely useful to teachers and admins, and
     #topofscroll margin-left already positions them past the sidebar.
   ================================================================ */
.path-local-pcl-portals .secondary-navigation,
.path-local-pcl_portals .secondary-navigation,
.path-local-pcl-landing .secondary-navigation,
.path-local-pcl_landing .secondary-navigation,
.path-local-pcl-microsite .secondary-navigation,
.path-local-pcl_microsite .secondary-navigation {
    display: none !important;
}

@media (max-width: 991.98px) {
    #topofscroll {
        margin-left: 0 !important;
    }
    .pcl-navbar .container-fluid,
    .pcl-navbar .d-flex.align-items-center.gap-2 {
        overflow: visible;
    }

    .pcl-user-menu {
        position: relative;
        z-index: 1065;
    }

    .pcl-user-menu > .dropdown-menu {
        z-index: 1066;
        margin-top: 0.35rem;
    }

    .pcl-user-menu > .dropdown-menu.show {
        position: fixed !important;
        top: 58px !important;
        right: 0.75rem !important;
        left: auto !important;
        width: min(14rem, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem) !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
    }

    .pcl-logout-button {
        display: none !important;
    }

    body.path-local.path-local-pcl_landing,
    body.path-local.path-local-pcl_landing #page-wrapper,
    body.path-local.path-local-pcl_landing #page,
    body.path-local.path-local-pcl_landing #page.drawers,
    body.path-local.path-local-pcl_landing #page-content,
    body.path-local.path-local-pcl_landing #region-main-box,
    body.path-local.path-local-pcl_landing #region-main,
    body.path-local.path-local-pcl_landing #region-main > div[role="main"],
    body.pcl-frontpage-dashboard,
    body.pcl-frontpage-dashboard #page-wrapper,
    body.pcl-frontpage-dashboard #page,
    body.pcl-frontpage-dashboard #page.drawers,
    body.pcl-frontpage-dashboard #page-content,
    body.pcl-frontpage-dashboard #region-main-box,
    body.pcl-frontpage-dashboard #region-main,
    body.pcl-frontpage-dashboard #region-main > div[role="main"] {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #page,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #page.drawers,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #page.drawers,
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) #page,
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) #page.drawers,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed #page,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed #page.drawers {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Section Spacing */
.features, .sponsors, .subjects, .workbooks {
    margin: 20px 50px 20px 50px;
    padding: 20px;
}

.features, .sponsors, .portals, .workbooks {
    margin: 20px 50px 20px 50px;
    padding: 20px;
}

.features, .workbooks {
    border-radius: 10px;
    border: none;
    background: #0094c31a;
}

@media (min-width: 992px) {
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #banner,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #portals.row.portals,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) .features,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) .sponsors,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) .subjects,
    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) .workbooks {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main #banner,
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main #portals.row.portals,
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main .features,
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main .sponsors,
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main .subjects,
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main .workbooks {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    body.path-local.path-local-pcl_landing:not(.pcl-sidebar-collapsed) #portals.row.portals .row.justify-content-center {
        justify-content: flex-start !important;
    }

    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main #portals.row.portals .row.justify-content-center,
    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main #custom_footer.justify-content-center {
        justify-content: flex-start !important;
    }

    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #banner,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #portals.row.portals,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .features,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .sponsors,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .subjects,
    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed .workbooks,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main #banner,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main #portals.row.portals,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main .features,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main .sponsors,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main .subjects,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main .workbooks {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    body.path-local.path-local-pcl_landing.pcl-sidebar-collapsed #portals.row.portals .row.justify-content-center,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main #portals.row.portals .row.justify-content-center,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main #custom_footer.justify-content-center {
        justify-content: flex-start !important;
    }

    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main #custom_footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed .pcl-auth-frontpage-main #custom_footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
}


/* Portal Cards - Core Structure */
.card-selector {
    width: 100%;
    border-radius: 15px !important;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: white;
    }

.card-selector:hover {
    transform: translateY(-5px);
}

.card-selector .card-body {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    padding: 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-title {
    margin: 0;
    line-height: 30px;
}

.card-subtitle {
    font-weight: 200;
    line-height: 1.5rem;
}

.card--main-image {
    border-radius: 50px;
    max-height: 70px;
    max-width: 70px;
}

/* Portal Images and Links */
.portal-link {
    display: block;
    width: 100%;
    text-align: center;
}

.portal-link img {
    max-width: 200px;
    height: auto;
    margin: 15px 0;
}

.sponsor-logo {
    max-height: 35px;
    margin-top: 15px;
}

/* Promo Styles */
.list-group-item {
    border-radius: 8px !important;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

.list-group-item i {
    margin-right: 10px;
}

/* Badge and Sticker Containers */
.badges-container,
.stickers-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.promos-container {
    margin-top: 20px;
}

/* Loading States */
.portal-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .portal-card {
        break-inside: avoid;
    }
    
    .headline-banner,
    .rewards-section {
        display: none;
    }
}

/* Workbook Styles */
.booksimgdiv {
    overflow: hidden;
}

.booksimgdiv img {
    width: 100%;
}

.booksimgdiv img:hover {
    -webkit-transform: rotate(2deg) scale(1.5);
    -ms-transform: rotate(2deg) scale(1.5);
    transform: rotate(2deg) scale(1.5);
}

/* Sponsor Images */
.sponsor-image {
    max-height: 35px;
}

/* Action Buttons */
.actionbtn {
    margin-top: 20px;
    padding: 10px 20px;
}

.pcl-navbar .pcl-navbar-actions {
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

.pcl-navbar .pcl-navbar-actionbtn {
    margin-top: 0;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .pcl-navbar .pcl-navbar-actions {
        gap: 0.5rem !important;
    }

    .pcl-navbar .pcl-navbar-actionbtn {
        padding: 0.65rem 1.1rem;
    }
}

/* Portal Card Enhancements */
.card-selector {
    width: 100%;
    border-radius: 15px !important;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: white;
}

.card-selector:hover {
    transform: translateY(-5px);
}

.gooey-button2 {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gooey-button2:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media only screen and (max-width: 985px) {
    html {
        font-size: 85%;
    }
    
    .actionbtn {
        margin: 1px;
        width: 100%;
    }

    .hidden-on-mobile {
        display: none !important;
    }

    #portals.row.portals {
        margin: 10px;
    }
    
    .card-selector {
        margin-bottom: 15px;
    }
}

/* ============================================================
   Fullscreen microsites (subportal landings: KFC, Paria, etc.)
   Uses drawers layout for consistent PCL navbar, but suppresses
   the sidebar and page chrome so the hero fills full viewport.
   ============================================================ */
body.pcl-microsite-fullscreen .pcl-sidebar { display: none !important; }
body.pcl-microsite-fullscreen #page-header { display: none !important; }
body.pcl-microsite-fullscreen .drawer-toggles { display: none !important; }
body.pcl-microsite-fullscreen #page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.pcl-microsite-fullscreen #page-content { padding: 0 !important; }
body.pcl-microsite-fullscreen #region-main-box { padding: 0 !important; }
body.pcl-microsite-fullscreen #region-main {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.pcl-microsite-fullscreen .main-inner,
body.pcl-microsite-fullscreen #topofscroll {
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.pcl-microsite-fullscreen #page {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.pcl-microsite-fullscreen #region-main > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 1060px) and (min-width: 770px) {
    .sponsor-image {
        max-width: 200px;
    }
}

/* ================================================================
   COURSE PAGE CHROME — path-course, path-course-view
   Moodle 4.x course pages add `show-drawer-left` to #page and render
   a secondary navigation tab bar. Neither existed in 3.10 Boost.

   #page margin-left override is in the global block above.
   Secondary nav policy: keep for authenticated users (Settings,
   Participants, Grades visible to teachers/admins), style to PCL brand.
   Course header (#page-header) now shows course name via parent renderer.
   ================================================================ */

/* Secondary navigation — PCL brand treatment on course pages */
.path-course .secondary-navigation,
.path-course-view .secondary-navigation {
    border-bottom: 2px solid rgba(15, 111, 197, 0.15);
    background: #fff;
    padding-bottom: 0 !important;
}

.path-course .secondary-navigation .nav-link,
.path-course-view .secondary-navigation .nav-link {
    color: #16324f;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-bottom: 3px solid transparent;
    border-radius: 0;
}

.path-course .secondary-navigation .nav-link:hover,
.path-course-view .secondary-navigation .nav-link:hover {
    color: #0f6fc5;
    background: rgba(15, 111, 197, 0.05);
    border-bottom-color: rgba(15, 111, 197, 0.35);
}

.path-course .secondary-navigation .nav-link.active,
.path-course-view .secondary-navigation .nav-link.active {
    color: #0f6fc5;
    border-bottom-color: #0f6fc5;
    background: transparent;
}

/* Course header (#page-header) — course name display */
.path-course #page-header,
.path-course-view #page-header {
    padding: 0.5rem 1.25rem 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.path-course #page-header .page-header-headings,
.path-course-view #page-header .page-header-headings {
    margin-bottom: 0;
}

.path-course #page-header h1,
.path-course-view #page-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16324f;
    margin: 0;
}

/* Course image in header — constrain size */
.path-course #page-header .courseimage,
.path-course-view #page-header .courseimage {
    max-height: 80px;
    width: auto;
    border-radius: 8px;
    margin-right: 1rem;
}

/* Suppress the Boost Union edit mode / drawer-toggle chrome on course pages —
   PCL burger is the sole toggle; Boost's edit pencil floats at bottom-right
   and is not needed in the PCL UX contract. */
.path-course .editmode-switch-form,
.path-course-view .editmode-switch-form {
    display: none !important;
}

/* Hide Moodle 4.5 section collapse toggle on all PCL course pages.
   Pennacool courses have 3-5 short sections; students should see all content
   immediately without needing to expand. Matches Moodle 3.10 behavior (no
   section collapsing existed). Also ensure the section body is always visible
   even if a previous session stored a collapsed state. */
.path-course [data-for="sectiontoggler"],
.path-course-view [data-for="sectiontoggler"] {
    display: none !important;
}
.path-course .section-item,
.path-course-view .section-item {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
}

/* Course content area — minimal breathing room below secondary nav */
.path-course #region-main,
.path-course-view #region-main {
    padding-top: 0.25rem;
}

/* Hide empty General section (section-0 with no activities) — common in PCL courses */
.path-course #section-0:not(:has(.activity)),
.path-course-view #section-0:not(:has(.activity)) {
    display: none !important;
}

/* Course section vertical padding — tighter than Moodle default 16px */
.path-course .course-section,
.path-course-view .course-section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Course section headers */
.path-course .section-summary,
.path-course-view .section-summary {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

/* Breadcrumb — show on course pages */
.path-course #page-navbar,
.path-course-view #page-navbar {
    padding: 0.35rem 0;
}

.path-course .breadcrumb,
.path-course-view .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.path-course .breadcrumb-item a,
.path-course-view .breadcrumb-item a {
    color: #0f6fc5;
}

/* Compact top gap — zero Boost Union's margin-top AND padding-top on .main-inner
   for course pages. The 60px #page margin-top (navbar clearance) is sufficient. */
.path-course .main-inner,
.path-course-view .main-inner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide breadcrumb container when the breadcrumb list is empty (course/view
   renders an empty <ol class="breadcrumb"> with no li items). */
.path-course #page-navbar:has(.breadcrumb:empty),
.path-course-view #page-navbar:has(.breadcrumb:empty) {
    display: none;
}

/* Section names — PCL brand dark blue */
.path-course .sectionname,
.path-course-view .sectionname {
    color: #16324f !important;
    font-weight: 700 !important;
}

/* Activity cards — subtle border + hover lift, compact padding */
.path-course .activity.activity-wrapper,
.path-course-view .activity.activity-wrapper {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.path-course .activity.activity-wrapper:hover,
.path-course-view .activity.activity-wrapper:hover {
    border-color: rgba(15, 111, 197, 0.25);
    box-shadow: 0 2px 8px rgba(15, 111, 197, 0.1);
}

/* Activity list — tighter gap between cards */
.path-course .course-section .activity,
.path-course-view .course-section .activity {
    margin-bottom: 0.35rem !important;
}

/* Activity icon — scale down from 50px to 36px to match icon button */
.path-course .activityiconcontainer,
.path-course-view .activityiconcontainer {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 8px !important;
}
.path-course .activityicon,
.path-course-view .activityicon {
    width: 22px !important;
    height: 22px !important;
}

/* shareactivity — compact 36px circle icon button.
   FA4 "share-alt" (\f1e0) is FontAwesome which is loaded on all Moodle pages.
   The button text is zeroed; the icon is injected via ::before.
   A CSS tooltip appears on hover via ::after. */
.path-course .shareactivity,
.path-course-view .shareactivity {
    background-color: #0f6fc5 !important;
    border-color: #0d5fa8 !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    color: transparent !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    position: relative !important;
}

.path-course .shareactivity:hover,
.path-course-view .shareactivity:hover {
    background-color: #0d5fa8 !important;
    border-color: #0a4d8b !important;
}

.path-course .shareactivity::before,
.path-course-view .shareactivity::before {
    font-family: "FontAwesome";
    content: "\f1e0";
    font-size: 14px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* Tooltip on hover — "Share exercise" label */
.path-course .shareactivity::after,
.path-course-view .shareactivity::after {
    content: "Share exercise";
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(22, 50, 79, 0.9);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.path-course .shareactivity:hover::after,
.path-course-view .shareactivity:hover::after {
    opacity: 1;
}

/* =============================================================
   pcl_dashboard shell — full-width, PCL sidebar suppressed
   The dashboard has its own sidebar (pcl-dashboard-shell__sidebar)
   so we hide the global PCL sidebar and zero the topofscroll offset.
   ============================================================= */
body.pcl-dashboard-active .pcl-sidebar {
    display: none !important;
}

@media (min-width: 992px) {
    body.pcl-dashboard-active #topofscroll {
        margin-left: 0 !important;
    }
    body.pcl-dashboard-active.pcl-sidebar-collapsed #topofscroll {
        margin-left: 0 !important;
    }
}

body.pcl-dashboard-active #page-header { display: none !important; }
body.pcl-dashboard-active .secondary-navigation { display: none !important; }
body.pcl-dashboard-active .drawer-toggles { display: none !important; }
body.pcl-dashboard-active #page {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.pcl-dashboard-active .main-inner {
    padding: 0 !important;
    margin: 0 !important;
}
body.pcl-dashboard-active #region-main > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* EduTec logo in frontpage headline row */
.pcl-edutec-logo {
    max-height: 90px;
    width: auto;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.pcl-edutec-logo-col:hover .pcl-edutec-logo {
    transform: translateY(-2px);
    opacity: 0.88;
}

@media (min-width: 992px) {
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed #portals.row.portals,
    html.pcl-sidebar-collapsed body.pcl-frontpage-dashboard #portals.row.portals {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed #portals.row.portals > .card-main,
    html.pcl-sidebar-collapsed body.pcl-frontpage-dashboard #portals.row.portals > .card-main,
    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed #portals.row.portals > .card-main > .row,
    html.pcl-sidebar-collapsed body.pcl-frontpage-dashboard #portals.row.portals > .card-main > .row {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.pcl-frontpage-dashboard.pcl-sidebar-collapsed #custom_footer,
    html.pcl-sidebar-collapsed body.pcl-frontpage-dashboard #custom_footer {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Mobile frontpage tightening: keep the hero and section blocks compact so
   the logged-in landing page reads like a mobile app screen instead of a
   desktop page squeezed into a phone viewport. */
@media (max-width: 767.98px) {
    body.pcl-frontpage-dashboard,
    body.pcl-frontpage-dashboard #page,
    body.pcl-frontpage-dashboard #page.drawers,
    body.pcl-frontpage-dashboard #page-content,
    body.pcl-frontpage-dashboard #region-main-box,
    body.pcl-frontpage-dashboard #region-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.pcl-frontpage-dashboard .main-inner,
    body.pcl-frontpage-dashboard #topofscroll {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.pcl-frontpage-dashboard:not(.pcl-sidebar-collapsed) .pcl-auth-frontpage-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
    }

    body.path-local-pcl-portals,
    body.path-local-pcl_portals,
    body.path-local-pcl-portals #page,
    body.path-local-pcl_portals #page,
    body.path-local-pcl-portals #page.drawers,
    body.path-local-pcl_portals #page.drawers,
    body.path-local-pcl-portals #page-content,
    body.path-local-pcl_portals #page-content,
    body.path-local-pcl-portals #region-main-box,
    body.path-local-pcl_portals #region-main-box,
    body.path-local-pcl-portals #region-main,
    body.path-local-pcl_portals #region-main,
    body.path-local-pcl-portals #region-main > div[role="main"],
    body.path-local-pcl_portals #region-main > div[role="main"],
    body.path-local-pcl-portals #topofscroll,
    body.path-local-pcl_portals #topofscroll {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    body.path-local-pcl-portals #topofscroll,
    body.path-local-pcl_portals #topofscroll {
        transform: none !important;
    }

    .pcl-navbar {
        min-height: 64px;
    }

    .pcl-brand-logo {
        height: 32px;
        max-width: 42vw;
    }

    .navbar-toggler {
        padding: 0.35rem 0.45rem;
    }

    body.pcl-landing-page .pcl-qc-navbar-streak {
        padding: 0.22rem 0.5rem 0.22rem 0.35rem !important;
        gap: 0.25rem !important;
    }

    body.pcl-landing-page .pcl-qc-navbar-streak__number,
    body.path-local-pcl-questcollect .pcl-qc-navbar-streak__number,
    body.path-local-pcl_questcollect .pcl-qc-navbar-streak__number {
        min-width: 1.25rem !important;
        font-size: 0.92rem !important;
    }

    body.path-local-pcl-questcollect .pcl-navbar > .container-fluid,
    body.path-local-pcl_questcollect .pcl-navbar > .container-fluid {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }

    body.path-local-pcl-questcollect .pcl-navbar .d-flex.align-items-center.gap-3,
    body.path-local-pcl_questcollect .pcl-navbar .d-flex.align-items-center.gap-3 {
        min-width: 0 !important;
        gap: 0.5rem !important;
    }

    body.path-local-pcl-questcollect .pcl-navbar .ms-auto,
    body.path-local-pcl_questcollect .pcl-navbar .ms-auto {
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    body.path-local-pcl-questcollect .pcl-brand-logo,
    body.path-local-pcl_questcollect .pcl-brand-logo {
        display: block !important;
        height: 32px !important;
        width: auto !important;
        max-width: 40vw !important;
    }

    body.path-local-pcl-questcollect #page-wrapper #page,
    body.path-local-pcl_questcollect #page-wrapper #page,
    body.path-local-pcl-questcollect #page-wrapper #page #page-content,
    body.path-local-pcl_questcollect #page-wrapper #page #page-content,
    body.path-local-pcl-questcollect #page-wrapper #page #region-main-box,
    body.path-local-pcl_questcollect #page-wrapper #page #region-main-box,
    body.path-local-pcl-questcollect #page-wrapper #page #region-main,
    body.path-local-pcl_questcollect #page-wrapper #page #region-main,
    body.path-local-pcl-questcollect #page-wrapper #page #page-content > .container,
    body.path-local-pcl_questcollect #page-wrapper #page #page-content > .container,
    body.path-local-pcl-questcollect #page-wrapper #page #page-content > .container-fluid,
    body.path-local-pcl_questcollect #page-wrapper #page #page-content > .container-fluid,
    body.path-local-pcl-questcollect #page-wrapper #page #region-main > div[role="main"],
    body.path-local-pcl_questcollect #page-wrapper #page #region-main > div[role="main"] {
        padding-left: 16px !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.path-local-pcl-questcollect .pcl-questcollect-page,
    body.path-local-pcl_questcollect .pcl-questcollect-page {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 16px !important;
        padding-right: 0 !important;
    }

    body.path-local-pcl-questcollect .pcl-hero-section,
    body.path-local-pcl_questcollect .pcl-hero-section,
    body.path-local-pcl-questcollect .pcl-panel,
    body.path-local-pcl_questcollect .pcl-panel {
        padding-right: 0 !important;
    }

    body.path-my.pagelayout-mycourses #page,
    body.path-my.pagelayout-mycourses #page-content,
    body.path-my.pagelayout-mycourses #region-main-box,
    body.path-my.pagelayout-mycourses #region-main,
    body.path-my.pagelayout-mycourses #topofscroll {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    body.path-my.pagelayout-mycourses #topofscroll {
        transform: none !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    body.path-my.pagelayout-mycourses #page-header {
        margin: 0 0 0.75rem !important;
        padding: 0.75rem 1rem 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.path-my.pagelayout-mycourses #page-header .page-context-header,
    body.path-my.pagelayout-mycourses #page-header .page-header-headings,
    body.path-my.pagelayout-mycourses #page-header h1 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.path-my.pagelayout-mycourses #page-header h1 {
        font-size: 1.2rem;
        line-height: 1.25;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.path-my.pagelayout-mycourses .coursemenubar,
    body.path-my.pagelayout-mycourses .course-filtering,
    body.path-my.pagelayout-mycourses .filter-selector,
    body.path-my.pagelayout-mycourses .paging,
    body.path-my.pagelayout-mycourses .sortingdropdown,
    body.path-my.pagelayout-mycourses .dropdown.sortingdropdown,
    body.path-my.pagelayout-mycourses #sortingdropdown {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.path-my.pagelayout-mycourses .coursemenubar,
    body.path-my.pagelayout-mycourses .course-filtering {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }

    body.path-my.pagelayout-mycourses .coursemenubar .dropdown,
    body.path-my.pagelayout-mycourses .course-filtering .dropdown {
        width: 100% !important;
    }

    body.path-my.pagelayout-mycourses .coursemenubar .btn,
    body.path-my.pagelayout-mycourses .course-filtering .btn,
    body.path-my.pagelayout-mycourses .sortingdropdown .btn {
        width: 100% !important;
        justify-content: space-between !important;
        white-space: normal !important;
    }

    body.path-my.pagelayout-mycourses .coursemenubar .form-control,
    body.path-my.pagelayout-mycourses .course-filtering .form-control,
    body.path-my.pagelayout-mycourses .sortingdropdown .form-control {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.path-local-pcl-questcollect #region-main-box,
    body.path-local-pcl_questcollect #region-main-box,
    body.path-local-pcl-questcollect #region-main,
    body.path-local-pcl_questcollect #region-main,
    body.path-local-pcl-questcollect #page-content > .container,
    body.path-local-pcl_questcollect #page-content > .container,
    body.path-local-pcl-questcollect #page-content > .container-fluid,
    body.path-local-pcl_questcollect #page-content > .container-fluid {
        padding-right: 0 !important;
    }

    .pcl-user-button {
        padding: 0.3rem 0.65rem;
        font-size: 0.85rem;
    }

    .pcl-user-button.dropdown-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        line-height: 1.1 !important;
    }

    .pcl-user-button.dropdown-toggle::after {
        margin-left: 0 !important;
        vertical-align: 0 !important;
        transform: translateY(1px) !important;
    }

    .pcl-auth-frontpage-main {
        padding: 0.75rem 0.5rem 1.5rem;
    }

    body.pcl-frontpage-dashboard .pcl-auth-frontpage-main {
        padding-top: calc(0.75rem + var(--pcl-navbar-height, 64px));
    }

    #banner {
        margin-top: 0.5rem;
    }

    #banner .carousel-inner,
    #banner .carousel-item {
        min-height: 62vh !important;
    }

    #banner .carousel-item {
        padding: 1rem 0.75rem 1.15rem !important;
        justify-content: flex-start !important;
    }

    #banner .carousel-caption {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0.75rem auto 0 !important;
        padding: 0.7rem 0.85rem !important;
        width: min(92vw, 320px);
        background: rgba(255, 255, 255, 0.8);
    }

    #banner .carousel-caption h1 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .banner-logos {
        position: static !important;
        right: auto !important;
        bottom: auto !important;
        display: flex;
        justify-content: center;
        margin: 0.5rem auto 0 !important;
        padding: 0 !important;
    }

    .banner-logo-img {
        max-height: 30px;
        max-width: 38vw;
    }

    .pcl-auth-frontpage-main #portals.row.portals {
        margin-top: 0.5rem;
        padding: 0;
    }

    .pcl-auth-frontpage-main #portals.row.portals .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .pcl-auth-frontpage-main #portals.row.portals .row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pcl-auth-frontpage-main #portals.row.portals > .card-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pcl-auth-frontpage-main #portals.row.portals .col-md-4.text-center {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pcl-auth-frontpage-main #portals.row.portals .card-selector {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .pcl-auth-frontpage-main #portals.row.portals .card-selector .card-body,
    .pcl-auth-frontpage-main #portals.row.portals .card-selector .card-footer {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .pcl-auth-frontpage-main .row.justify-content-center.align-items-center.mb-2 {
        row-gap: 0.5rem;
    }

    .pcl-auth-frontpage-main .row.justify-content-center.align-items-center.mb-2 > [class*="col-sm"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pcl-edutec-logo {
        max-height: 64px;
    }

    .info-banner #newpromos {
        padding-top: 1.2rem !important;
        padding-bottom: 1.2rem !important;
        border-radius: 999px !important;
    }

    #sticker-images,
    #badge-images {
        max-width: 84px;
    }

    .features,
    .sponsors,
    .subjects,
    .workbooks {
        margin: 0.75rem !important;
        padding: 0.9rem !important;
    }

    .features {
        padding: 1rem !important;
    }

    .pcl-auth-frontpage-main .card-selector .card-body {
        min-height: 142px;
        padding: 0.85rem !important;
    }

    .pcl-auth-frontpage-main .card-footer {
        min-height: 64px;
        padding: 0.5rem 0.65rem;
    }

    .card--main-image {
        max-height: 58px;
        max-width: 58px;
    }

    .custom_footer {
        margin: 1rem 0.75rem 0;
        padding: 1rem 0.5rem 1.25rem;
    }
}

@media (min-width: 992px) {
    body.pcl-frontpage-dashboard .pcl-auth-frontpage-main > #portals.row.portals,
    body.pcl-frontpage-dashboard .pcl-auth-frontpage-main > #custom_footer {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.pcl-frontpage-dashboard .pcl-auth-frontpage-main > #portals.row.portals > .card-main,
    body.pcl-frontpage-dashboard .pcl-auth-frontpage-main > #portals.row.portals > .card-main > .row {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
