/* Extracted from Shared/_Layout.cshtml (.NET reference). */
        :root {
            --website-logo-top-spacing: 0px;
        }
        /* Apply admin WebsiteLogoTopSpacing on every public page that uses this layout
           (Home/CoursePage, UnitDetails, Quiz/StartQuiz, CourseDetails, Index, etc.).
           Uses !important so it wins over _B2BBandPartial and template padding rules. */
        body .theme-main-menu > .inner-content {
            padding-top: calc(35px + var(--website-logo-top-spacing, 0px)) !important;
        }
        @media (max-width: 991px) {
            body .theme-main-menu > .inner-content {
                padding-top: calc(30px + var(--website-logo-top-spacing, 0px)) !important;
            }
        }
        @media (max-width: 575px) {
            body .theme-main-menu > .inner-content {
                padding-top: calc(20px + var(--website-logo-top-spacing, 0px)) !important;
            }
        }
        /* When B2B band is hidden (CoursePage / UnitDetails / Quiz), theme-main-menu
           itself carries the chrome padding — add the same spacing there. */
        body .theme-main-menu:not(:has(.b2b-band)) {
            padding-top: calc(35px + var(--website-logo-top-spacing, 0px)) !important;
        }
        body .theme-main-menu:not(:has(.b2b-band)) > .inner-content {
            padding-top: 0 !important;
        }
        @media (max-width: 991px) {
            body .theme-main-menu:not(:has(.b2b-band)) {
                padding-top: calc(30px + var(--website-logo-top-spacing, 0px)) !important;
            }
        }
        @media (max-width: 575px) {
            body .theme-main-menu:not(:has(.b2b-band)) {
                padding-top: calc(20px + var(--website-logo-top-spacing, 0px)) !important;
            }
        }

        @keyframes ct-spin-anim { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        .ct-spin { display: inline-block; animation: ct-spin-anim 0.8s linear infinite; }
        .ct-progress-bar {
            position: relative; height: 3px; background: #e5e7eb; border-radius: 3px;
            overflow: hidden; margin-top: 12px;
        }
        .ct-progress-bar::after {
            content: ''; position: absolute; top: 0; left: -40%; height: 100%; width: 40%;
            background: linear-gradient(90deg, transparent, #111827, transparent);
            border-radius: 3px;
            animation: ct-progress-slide 1.2s ease-in-out infinite;
        }
        @keyframes ct-progress-slide { 0% { left: -40%; } 100% { left: 100%; } }

        .suggestions-box {
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .suggestion-item {
            padding: 8px;
            cursor: pointer;
        }

            .suggestion-item:hover {
                background-color: #f0f0f0;
            }

        .pie-wrapper .shadow {
            height: 100%;
            width: 100%;
            /*border: 0.1em solid #bdc3c7;*/
            border-radius: 50%;
            box-sizing: border-box;
            background: radial-gradient(closest-side, #fff 80%, transparent 60% 40%), conic-gradient(#FEBD69 calc(var(--progress-percentage) * 1%), #bdc3c7 0);
            animation: x-tutorial 1s 1 forwards;
        }

        @media (max-width: 991px) {
            .brief-placeholder {
                margin-left: 0 !important; 
            }
        }

        @media (max-width: 574px) {
            .brief-placeholder {
                padding: 0 !important; 
            }
        }
        .skill-error {
            font-size: 13px;
            margin-left: 4px;
        }

        .play-btn {
            background: #febd69;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            color: white;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        /* Custom styling for newsletter email input */
        .newsletter-form .input-group {
            max-width: 300px;
            margin: 0 auto;
        }
        
        .newsletter-form .form-control {
            max-width: 200px;
            width: 100%;
        }
        
        .newsletter-form .btn {
            max-width: 80px;
            white-space: nowrap;
        }
        
        /* Mobile responsive adjustments */
        @media (max-width: 768px) {
            .newsletter-form .input-group {
                max-width: 250px;
            }
            
            .newsletter-form .form-control {
                max-width: 150px;
            }
            
            .newsletter-form .btn {
                max-width: 70px;
                font-size: 12px;
                padding: 8px 12px;
            }
        }
        
        @media (max-width: 576px) {
            .newsletter-form .input-group {
                max-width: 200px;
            }
            
            .newsletter-form .form-control {
                max-width: 120px;
            }
            
            .newsletter-form .btn {
                max-width: 60px;
                font-size: 11px;
                padding: 6px 10px;
            }
        }
    
            @keyframes gpl-spin { to { transform:rotate(360deg); } }
            @keyframes gpl-progress { 0% { transform:translateX(-100%); } 100% { transform:translateX(100%); } }
            @keyframes gpl-fadeIn { from { opacity:0; transform:translate(-50%,-50%) scale(0.96); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }
        
            .footer-modern {
                position: relative;
                background-color: #f8f9fa; /* Light Gray Background */
                color: #495057; /* Darker Gray for Text */
                padding: 50px 0 20px;
                overflow: hidden;
                margin-top: 60px;
                border-top: 1px solid #dee2e6; /* Subtle top border */
            }

            .footer-bg-pattern {
                display: none; /* Hide dark pattern */
            }

            .footer-content {
                position: relative;
                z-index: 2;
            }

            .footer-main {
                margin-bottom: 30px;
            }

            .footer-brand .brand-logo a {
                text-decoration: none;
                color: inherit;
                transition: transform 0.3s ease;
            }

            .footer-brand .brand-logo a:hover {
                transform: translateY(-2px);
            }

            .brand-title {
                font-size: 1.25rem;
                font-weight: 700;
                color: #212529; /* Black for titles */
                margin: 0;
                line-height: 1.2;
            }

            .brand-subtitle {
                font-size: 0.875rem;
                color: #5c636a; /* Medium gray for subtitles — 5.8:1 on #f8f9fa (2026-10-03 a11y; #6c757d was 4.45:1) */
                margin: 0;
                font-weight: 500;
            }

            .brand-description {
                color: #5c636a;
                line-height: 1.6;
                margin: 20px 0;
                font-size: 0.95rem;
            }

            .social-links {
                display: flex;
                gap: 12px;
                margin-top: 25px;
            }

            .social-link {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 44px;
                height: 44px;
                border-radius: 12px;
                background: #ffffff; /* White background for buttons */
                color: #495057; /* Dark icon color */
                text-decoration: none;
                transition: all 0.3s ease;
                border: 1px solid #dee2e6; /* Light border */
            }

            .social-link:hover {
                color: #ffffff; /* White icon on hover */
                transform: translateY(-3px);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            }

            .social-link.twitter:hover {
                background: linear-gradient(135deg, #1da1f2, #0d8bd9);
            }

            .social-link.linkedin:hover {
                background: linear-gradient(135deg, #0077b5, #005885);
            }

            .social-link.facebook:hover {
                background: linear-gradient(135deg, #1877f2, #0d6efd);
            }

            .social-link.instagram:hover {
                background: linear-gradient(135deg, #e4405f, #c13584);
            }

            .footer-title {
                font-size: 1.125rem;
                font-weight: 700;
                color: #212529; /* Black for titles */
                margin-bottom: 25px;
                position: relative;
            }

            .footer-title::after {
                content: '';
                position: absolute;
                bottom: -8px;
                left: 0;
                width: 30px;
                height: 3px;
                background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); /* Keep accent gradient */
                border-radius: 2px;
            }

            .footer-menu {
                list-style: none;
                padding: 0;
                margin: 0;
            }

            .footer-menu li {
                margin-bottom: 12px;
            }

            .footer-menu a {
                color: #5c636a; /* Medium gray for links (WCAG AA on #f8f9fa) */
                text-decoration: none;
                font-size: 0.95rem;
                transition: all 0.3s ease;
                position: relative;
                padding-left: 0;
            }

            .footer-menu a::before {
                content: '→';
                position: absolute;
                left: -15px;
                opacity: 0;
                transition: all 0.3s ease;
                color: #667eea; /* Keep accent color */
            }

            .footer-menu a:hover {
                color: #212529; /* Darken link on hover */
                padding-left: 15px;
            }

            .footer-menu a:hover::before {
                opacity: 1;
            }

            .newsletter-description {
                color: #5c636a;
                line-height: 1.6;
                margin-bottom: 25px;
                font-size: 0.95rem;
            }

            .input-group-modern {
                position: relative;
                display: flex;
                background: #ffffff; /* White background */
                border-radius: 16px;
                padding: 4px;
                border: 1px solid #dee2e6; /* Light border */
            }

            .form-control-modern {
                flex: 1 1 auto;
                min-width: 0;
                border: none;
                background: transparent;
                color: #212529; /* Dark text */
                padding: 16px 20px;
                font-size: 0.95rem;
                outline: none;
            }

            .form-control-modern::placeholder {
                color: #adb5bd; /* Lighter gray for placeholder */
            }

            .btn-modern {
                flex-shrink: 0;
                display: inline-block;
                background-color: #f9fafb;
                border: 1px solid #e5e7eb;
                color: #4b5563;
                padding: 6px 14px;
                border-radius: 8px;
                font-weight: 500;
                font-size: 11px;
                font-style: normal;
                cursor: pointer;
                transition: all 0.2s ease-in-out;
                text-transform: capitalize;
                white-space: nowrap;
                text-decoration: none;
                line-height: 1;
            }

            .btn-modern:hover {
                transform: translateY(-1px);
                color: #3b82f6;
                background-color: #fff;
                border-color: #3b82f6;
                box-shadow: 0 3px 10px 0 rgba(59, 130, 246, 0.15);
                text-decoration: none;
            }

            .btn-icon {
                transition: transform 0.3s ease;
            }

            .btn-modern:hover .btn-icon {
                transform: translateX(3px);
            }

            /* ── Corporate footer strip — same understated style as Explore Free Resources ── */
            .footer-corporate-strip {
                margin-top: 32px;
                padding-bottom: 4px;
            }

            /* ── Student Pass footer banner — full gradient product
                  card between Corporate and Explore strips. The one visually
                  elevated element in the footer, so students scanning for a
                  student discount find it in one pass. ── */
            .footer-spp-banner {
                margin-top: 28px;
                background: linear-gradient(120deg, #1e1b4b 0%, #1e3a8a 60%, #1d4ed8 100%);
                border-radius: 14px;
                padding: 24px 28px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 18px;
                flex-wrap: wrap;
            }
            .footer-spp-banner-text h3 {
                color: #fff;
                font-size: 16px;
                font-weight: 700;
                margin: 0 0 4px;
            }
            .footer-spp-banner-text h3 i {
                color: #7dd3fc;
                margin-right: 8px;
            }
            .footer-spp-banner-text p {
                color: rgba(255, 255, 255, 0.75);
                font-size: 12.5px;
                margin: 0;
            }
            .footer-spp-banner-cta {
                background: #fff;
                color: #1e1b4b;
                font-size: 12.5px;
                font-weight: 700;
                padding: 9px 20px;
                border-radius: 999px;
                text-decoration: none;
                white-space: nowrap;
                transition: box-shadow 0.2s, transform 0.2s;
            }
            .footer-spp-banner-cta:hover {
                color: #1e1b4b;
                text-decoration: none;
                box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
                transform: translateY(-1px);
            }
            @media (max-width: 768px) {
                .footer-spp-banner { justify-content: center; text-align: center; padding: 20px; }
            }

            /* ── Horizontal "Explore Free Resources" strip — sits directly
                  above the existing footer-bottom grey divider line.
                  Pipe-separated links keep the row tight; on narrow
                  screens it wraps gracefully. No own borders — the single
                  grey line below (.footer-bottom border-top) is the only
                  divider, matching the user-requested layout. ── */
            .footer-explore-strip {
                margin-top: 36px;
                padding: 18px 0 22px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 18px;
                flex-wrap: wrap;
            }
            .footer-explore-label {
                font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
                font-size: 12px;
                font-weight: 500;
                text-transform: none;
                letter-spacing: 0.01em;
                color: #495057;
                white-space: nowrap;
                position: relative;
                padding-right: 16px;
            }
            .footer-explore-label::after {
                content: "";
                position: absolute;
                top: 50%;
                right: 0;
                width: 1px;
                height: 14px;
                background: #ced4da;
                transform: translateY(-50%);
            }
            .footer-explore-list {
                list-style: none;
                margin: 0;
                padding: 0;
                display: flex;
                align-items: center;
                gap: 14px;
                flex-wrap: wrap;
                justify-content: center;
            }
            .footer-explore-list > li {
                font-size: 13.5px;
                color: #adb5bd;
                font-weight: 400;
            }
            .footer-explore-list > li > a {
                color: #6C757D;
                text-decoration: none;
                font-weight: 400;
                transition: color 160ms ease, transform 160ms ease;
                display: inline-block;
            }
            .footer-explore-list > li > a:hover {
                color: #2563eb;
                transform: translateY(-1px);
            }
            @media (max-width: 575px) {
                .footer-explore-strip { gap: 10px; padding: 14px 0 16px; }
                .footer-explore-label { font-size: 10px; padding-right: 0; width: 100%; text-align: center; }
                .footer-explore-label::after { display: none; }
                .footer-explore-list { gap: 10px; }
                .footer-explore-list > li { font-size: 12.5px; }
            }

            .footer-bottom {
                padding-top: 30px;
                border-top: 1px solid #dee2e6; /* Light border */
            }

            .footer-bottom-right {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 10px;
                text-align: right;
            }

            .copyright-text {
                color: #5c636a; /* Medium gray (WCAG AA on #f8f9fa) */
                font-size: 0.9rem;
                margin: 0;
            }

            .footer-powered-by {
                margin: 0;
                font-size: 0.8125rem;
                color: #94a3b8;
                white-space: nowrap;
            }

            .footer-powered-by a {
                text-decoration: none;
                color: inherit;
            }

            .footer-powered-by a:hover .footer-lu-learn {
                color: #111827;
            }

            .footer-lu-learn {
                font-family: Georgia, 'Times New Roman', Times, serif;
                font-weight: 600;
                color: #1a1a1a;
            }

            .footer-lu-uni {
                font-family: Georgia, 'Times New Roman', Times, serif;
                font-weight: 700;
                color: #757575;
                letter-spacing: 0.03em;
            }

            .footer-attributions {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 2px;
            }

            .footer-ai-by {
                margin: 0;
                display: inline-flex;
                align-items: center;
                gap: 5px;
                font-size: 0.8125rem;
                color: #94a3b8;
                white-space: nowrap;
            }

            .footer-fastinfra-link {
                display: inline-flex;
                align-items: center;
                gap: 0.3em;
                text-decoration: none;
                font-family: system-ui, -apple-system, 'Segoe UI', Inter, Roboto, sans-serif;
                font-weight: 800;
                color: #0a0a0a;
                letter-spacing: -0.035em;
            }

            .footer-fastinfra-link:hover {
                color: #0a0a0a;
                opacity: 0.8;
            }

            .footer-fi-bolt {
                width: 0.8em;
                height: 0.8em;
                color: #f55036;
                flex-shrink: 0;
            }

            .footer-stats {
                display: flex;
                gap: 20px;
                justify-content: flex-end;
                flex-wrap: wrap;
            }

            .stat-item {
                display: flex;
                align-items: center;
                gap: 6px;
                color: #5c636a; /* Medium gray (WCAG AA on #f8f9fa) */
                font-size: 0.85rem;
                font-weight: 400;
            }

            .stat-item i {
                color: #495057; /* Dark grey */
                font-size: 1rem;
            }

            /* Keep footer text above the fixed podcast dock (bottom-left). */
            body:has(.pc-dock:not(.is-dismissed):not([hidden])) .footer-modern {
                padding-bottom: 96px;
            }

            @media (max-width: 991.98px) {
                .footer-stats {
                    justify-content: center;
                }

                .copyright-text {
                    text-align: center;
                }

                .footer-bottom-right {
                    align-items: center;
                    text-align: center;
                }

                .footer-attributions {
                    align-items: center;
                }
            }

            @media (max-width: 767.98px) {
                .footer-powered-by {
                    white-space: normal;
                }

                body:has(.pc-dock:not(.is-dismissed):not([hidden])) .footer-modern {
                    padding-bottom: 108px;
                }
            }

            @media (max-width: 640px) {
                .footer-stats {
                    gap: 12px 16px;
                }

                .stat-item {
                    font-size: 0.8rem;
                }

                body:has(.pc-dock:not(.is-dismissed):not([hidden])) .footer-modern {
                    padding-bottom: 120px;
                }
            }
        
                        @keyframes ntfSlideIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
                        #notification-badge.fade-out { animation: ntfSlideOut 0.35s ease-in forwards; }
                        @keyframes ntfSlideOut { to { opacity: 0; transform: translateY(12px) scale(0.97); } }
                        .notification-progress { background: linear-gradient(90deg, #34d399, #059669); width: 100%; animation: ntfProgress 10s linear forwards; }
                        @keyframes ntfProgress { from { width: 100%; } to { width: 0%; } }
                        #notification-badge strong { font-weight: 600; color: #fff; }
                        #notification-badge a:hover { opacity: 0.85; }
                    
