/**
 * Layout shell for application/views/home.php (navbar, legacy indexVaanii, image popup).
 * Legacy guest masthead uses a CSS gradient (no image asset); scoped so student .main-header and .playground-hero are excluded.
 */

/* Override Bootstrap 3 navbar styles for Bootstrap 5 compatibility */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        color: #6c757d !important;
        text-decoration: none;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link:hover,
    .navbar-expand-lg .navbar-nav .nav-link:focus {
        color: #495057 !important;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link.active {
        color: var(--vaanii-primary, #51b5eb) !important;
        font-weight: 500;
    }
    
    .navbar-toggler {
        border: 1px solid rgba(0,0,0,.1) !important;
        padding: 0.375rem 0.75rem !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        z-index: 1002;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(var(--vaanii-primary-rgb, 81, 181, 235), 0.25) !important;
    }
    
    .navbar-collapse {
        flex-basis: 100% !important;
        flex-grow: 1 !important;
        align-items: center !important;
    }
    
    @media (max-width: 991.98px) {
        .navbar-collapse {
            position: static !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            flex-basis: 100% !important;
            width: 100% !important;
            background: white !important;
            border-top: 1px solid rgba(0,0,0,.1) !important;
            box-shadow: 0 2px 4px rgba(0,0,0,.1) !important;
            z-index: 1000 !important;
        }

        .navbar-collapse.collapse:not(.show) {
            display: none !important;
        }

        .navbar-collapse.show,
        .navbar-collapse.collapse.show {
            display: block !important;
            visibility: visible !important;
            height: auto !important;
        }
        
        .navbar-nav {
            padding: 1rem 0 !important;
        }
        
        .navbar-nav .nav-item {
            border-bottom: 1px solid rgba(0,0,0,.05) !important;
        }
        
        .navbar-nav .nav-item:last-child {
            border-bottom: none !important;
        }
        
        .navbar-nav .nav-link {
            padding: 0.75rem 1rem !important;
        }
    }
    
    /* Smooth scrolling enhancements */
    html {
        scroll-behavior: smooth;
    }

    /*
     * Guest (non-student) pages: prevent slight horizontal panning on mobile when
     * any child is a few pixels wider than the viewport (common with nav, carousels, blobs).
     */
    @media (max-width: 991.98px) {
        html:has(body.layout-guest) {
            max-width: 100%;
        }

        body.layout-guest {
            max-width: 100%;
            overscroll-behavior-x: none;
        }

        body.layout-guest nav.navbar.fixed-top,
        body.layout-guest nav.navbar.fixed-top > .container {
            overflow: visible !important;
        }
    }

    /*
     * Compact guest fixed masthead: front.css sets .navbar { min-height: 68px; padding 10px; }
     * and 48px logo — too tall for public pages. Scoped to layout-guest only (students use layout-student).
     */
    body.layout-guest nav.navbar.fixed-top {
        min-height: 0 !important;
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
        /* Opaque bar (legacy bare .navbar used to paint this; keep solid over page content) */
        background-color: #fff !important;
        background-image: none !important;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 14px rgba(15, 23, 42, 0.06);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    body.layout-guest nav.navbar.fixed-top .navbar-brand {
        padding-top: 0;
        padding-bottom: 0;
    }
    body.layout-guest nav.navbar.fixed-top .navbar-brand img {
        height: 34px !important;
        max-height: 34px !important;
        width: auto !important;
    }
    @media (min-width: 576px) {
        body.layout-guest nav.navbar.fixed-top .navbar-brand img {
            height: 36px !important;
            max-height: 36px !important;
        }
    }
    body.layout-guest .guest-top-navbar .guest-nav-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8125rem;
    }
    /* Legacy shell used margin-top on ALL .navbar-nav — blows up BS5 fixed masthead */
    body.layout-guest nav.navbar.fixed-top .navbar-nav {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        list-style: none !important;
    }

    /* guest-page-typography scopes lists to .guest-content-wrapper; guard masthead either way */
    body.layout-guest nav.navbar.fixed-top ul.navbar-nav,
    body.layout-guest nav.navbar.fixed-top .navbar-nav .nav-item {
        padding-left: 0 !important;
        margin-bottom: 0 !important;
        list-style: none !important;
    }
    
    /* Section spacing for better navigation (anchor scroll offset ≈ fixed bar + small gap) */
    section[id] {
        scroll-margin-top: 64px;
    }

    @media (max-width: 991.98px) {
        section[id] {
            scroll-margin-top: 60px;
        }
    }

    @media (max-width: 575.98px) {
        section[id] {
            scroll-margin-top: 56px;
        }
    }

    body:has(.flash-banner-bar) section[id] {
        scroll-margin-top: 108px;
    }

    @media (max-width: 991.98px) {
        body:has(.flash-banner-bar) section[id] {
            scroll-margin-top: 102px;
        }
    }

    @media (max-width: 575.98px) {
        body:has(.flash-banner-bar) section[id] {
            scroll-margin-top: 98px;
        }
    }
    
    /*
     * Guest main column: clear the fixed masthead (64px). Do not add extra gap — breadcrumb
     * on course pages lives inside main and carries its own compact padding.
     */
    .guest-content-wrapper {
        margin-top: 64px !important;
        padding-top: 0;
        min-height: calc(100vh - 64px);
    }
    
    /* Reduce spacing for auth pages */
    .guest-content-wrapper .auth-hero {
        padding-top: 20px !important;
    }

    /*
     * Compact auth (login, register, forgot password, reset, admin login):
     * Do not force the main wrapper to nearly full viewport height — that leaves a
     * large empty band above the footer on short forms (e.g. password_recovery_form).
     */
    body.layout-guest .guest-content-wrapper:has(> .auth-hero.auth-flow-shell--compact) {
        min-height: auto;
    }

    /* Guest course preview — content height varies; full-viewport min-height leaves a large empty band above the footer */
    body.layout-guest .guest-content-wrapper:has(.course-summary-wrap--guest) {
        min-height: auto !important;
    }

    /* Guest index (/) — marketing sections are tall; avoid forced viewport min-height empty band above footer */
    body.layout-guest .guest-content-wrapper.guest-homepage {
        min-height: auto !important;
    }
    
    /* Flash ticker uses --flash-bar-h (flash-banner-ticker.css); bar + 64px nav */
    body:has(.flash-banner-bar) .guest-content-wrapper {
        margin-top: calc(var(--flash-bar-h, 46px) + 64px) !important;
        min-height: calc(100vh - var(--flash-bar-h, 46px) - 64px);
    }

    /* Guest course preview: do not force near-full-viewport min-height when ticker is visible (empty band above footer) */
    body:has(.flash-banner-bar) .guest-content-wrapper:has(.course-summary-wrap--guest) {
        min-height: auto !important;
    }

    body:has(.flash-banner-bar) .guest-content-wrapper.guest-homepage {
        min-height: auto !important;
    }
    
    /* Active navigation link styling (exclude dropdown toggles — they use ::after for the caret) */
    .navbar-nav .nav-link.active {
        color: #51B5EB !important;
        font-weight: 600 !important;
        position: relative;
    }
    
    .navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background-color: #51B5EB;
        border-radius: 1px;
    }
    
    /* Hover effects for navigation links */
    .navbar-nav .nav-link:hover {
        color: #51B5EB !important;
        transition: color 0.3s ease;
    }

.portfolio-item .thumbnail {
 padding: 10px;
 border: 1px #c3c3c3 solid !important;
 border-radius: 10px;
 box-shadow: 2px 2px 15px rgba(23,13,90,0.2);
 transform: scale(0.9);
 }
 .portfolio-item .thumbnail:hover {
 transform: scale(1.0);
 transition: all .2s ease-in-out;
 }
 @media (min-width: 768px){
 #portfolio {
 padding: 100px 0 !important;
 }
 }
 #portfolio h2 ,h2.intro-lead-in {
 color: #243574;
 font: bold 22px Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
 }
 #portfolio .portfolio-item {
 min-height: 360px;
 }
 #exam_summery .container {
 border: 1px #ccc solid !important;
 background-color: #FFF;
 box-shadow: 2px 2px 15px rgba(23,13,90,0.2);
 }
 .course-summary-thumbnail {
 margin-top: 10px;
 border: 1px #e6e6e6 solid;
 box-shadow: 5px 5px 0px rgb(35 84 158);
 margin-bottom: 10px;
 }
 @media (min-width: 768px) {
 #exam_summery {padding: 120px 0;}
 }
 
     .navbar-default .navbar-brand {padding:0px 0px;}
 @media (min-width: 768px){
     .navbar-default {padding: 10px 0;}
 }
 .navbar-default .navbar-brand>img {height:60px;}
 .indexVaanii nav .container {}
 @media (min-width: 768px){
 .navbar-default.navbar-shrink {background-color: #f1f1f1;padding: 0px 0 10px;box-shadow: 0 0 15px rgba(0,0,0,0.2);border-bottom: 1px #d4d4d4 solid;}
 .navbar-right {margin-top: 10px;}
 .navbar-shrink .nav li a {color: #243574;}
 /* Legacy guest masthead only — do not target student #mainHeader or in-page <header> blocks */
 .indexVaanii header:not(.main-header):not(.playground-hero):not(.admin-topbar):not(.topbar):not(#portfolio):not(.pp-head):not(.pp-hero):not(.pb-hero):not(.guest-corp-section-head):not(.guest-blog-hero):not(.guest-blog-article-hero):not(.guest-promise-pillar-v2__head) .intro-text {padding-top: 200px;}
 .indexVaanii header:not(.main-header):not(.playground-hero):not(.admin-topbar):not(.topbar):not(#portfolio):not(.pp-head):not(.pp-hero):not(.pb-hero):not(.guest-corp-section-head):not(.guest-blog-hero):not(.guest-blog-article-hero):not(.guest-promise-pillar-v2__head) .intro-text .intro-heading {font-size: 55px;}
 }
 .indexVaanii header:not(.main-header):not(.playground-hero):not(.admin-topbar):not(.topbar):not(#portfolio):not(.pp-head):not(.pp-hero):not(.pb-hero):not(.guest-corp-section-head):not(.guest-blog-hero):not(.guest-blog-article-hero):not(.guest-promise-pillar-v2__head) {background-color:#1e3a5f;background-image:linear-gradient(165deg,#1e3a5f 0%,#243574 42%,#1565a8 100%);position:relative;width: 100%;height: 100%;z-index:1;}
 .indexVaanii header:not(.main-header):not(.playground-hero):not(.admin-topbar):not(.topbar):not(#portfolio):not(.pp-head):not(.pp-hero):not(.pb-hero):not(.guest-corp-section-head):not(.guest-blog-hero):not(.guest-blog-article-hero):not(.guest-promise-pillar-v2__head) .container {position:relative;z-index:2;}
 .indexVaanii header:not(.main-header):not(.playground-hero):not(.admin-topbar):not(.topbar):not(#portfolio):not(.pp-head):not(.pp-hero):not(.pb-hero):not(.guest-corp-section-head):not(.guest-blog-hero):not(.guest-blog-article-hero):not(.guest-promise-pillar-v2__head)::before{display:block;content:" ";width: 100%;height: 100%;position:absolute;left:0;top:0;background:rgba(15,23,42,0.2);pointer-events:none;}
 .indexVaanii .intro-text > div {text-shadow: 0px 0px 10px rgb(255 255 255);color: #243574;}
 .navbar-default .nav li a {color: #243574;}
 .navbar-default .navbar-nav>.active>a {background-color: #00a2e8 !important;}
 .navbar-default .nav li a:hover, .navbar-default .nav li a:focus {color: #00a2e8;}
 .btn-xl {background-color: #243574;color: #FFFFFF;border-color: #243574;border-radius: 10px;}
 .btn-xl:hover, .btn-xl:focus, .btn-xl:active, .btn-xl.active, .open .dropdown-toggle.btn-xl {background-color: #00a2e8;color: #fff;border-color: #00a2e8;}
 @media (max-width: 768px){
     .navbar-default .navbar-brand>img {height: 40px;}
     .navbar-default .navbar-brand {padding: 5px 5px;}
     .navbar-default {background-color: transparent;}
     .navbar-default .navbar-toggle {background-color: #243574;    border-color: #243574;}
     .indexVaanii header:not(.main-header):not(.playground-hero):not(.admin-topbar):not(.topbar):not(#portfolio):not(.pp-head):not(.pp-hero):not(.pb-hero):not(.guest-corp-section-head):not(.guest-blog-hero):not(.guest-blog-article-hero):not(.guest-promise-pillar-v2__head) .intro-text .intro-heading {font-size: 35px;}
 .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {background-color: #00a2e8;}
 .navbar-default .navbar-collapse,.navbar-shrink {background-color:#f1f1f1;}
 .navbar-default.navbar-shrink {background-color: #f1f1f1;padding: 0px 0 5px;box-shadow: 0 0 15px rgba(0,0,0,0.2);border-bottom: 1px #d4d4d4 solid;}
 }
 /* Legacy BS3 bar only — never bare .navbar (matches BS5 guest .navbar-light.fixed-top) */
 .navbar-default {
 background-color: #f1f1f1;
     padding: 0px 0 10px;
     box-shadow: 0 0 15px rgba(0,0,0,0.2);
     border-bottom: 1px #d4d4d4 solid;
     z-index: 99999;
 }
 .timeline {z-index: 0;}
 .signup-vaanii {min-height: 650px !important;}
 .navbar-default .navbar-nav > li > a {
     padding: 15px 20px;
     font-size: 14px;
     line-height: 18px;
     color:#243574;
 }
 .navbar-default .navbar-nav {
     margin-top: 10px;
 }
 .navbar-default .navbar-brand {
     width: inherit;
     height: inherit;
 }
 .navbar-default .navbar-nav > li > .active {
     background-color: #00a2e8 !important;
     border-radius: 3px;
     color: #FFF;
 }
 .box {
 border: 1px #ccc solid !important;
 background-color: #FFF;
 box-shadow: 2px 2px 15px rgba(23,13,90,0.2);
         padding: 10px 30px 60px 30px;
 }
 @media (min-width: 768px){
     /* Legacy homepage sections only — not login/register/forgot (.auth-hero) or the global rule fights fixed-nav spacing */
     body.layout-guest .guest-content-wrapper > section:not(.auth-hero):not(.guest-blog-main) {
         padding: 100px 0;
     }
 }
 .panel-default > .panel-heading {padding: 0;}
 .panel-title{position: relative}
 .panel-title > a {display: block;padding: 10px 20px;}
 .panel-title > a > p {margin: 0;font-size: 16px;font-weight: bold;}
 .panel-title > .collapsed::before {
     content: "\002b";
     font-size: 40px;
     font-weight: bold;
     position: absolute;
     right: 10px;
     top: 10px;
     height: 30px;
     line-height: 30px;
     width: 30px;
     border-radius: 30px;
 }
 .panel-title > a:hover {
 text-decoration: none;
 }
 .panel-title > a::before {
     content: "\2212";
     font-size: 40px;
     font-weight: bold;
     position: absolute;
     right: 10px;
     top: 10px;
     height: 30px;
     line-height: 30px;
     width: 30px;
     border-radius: 30px;
 }
 .panel-title{}
 .panel-heading {}
 .panel-title > a{
     background-color: #355cc0;
     color:#FFF;
     border: 1px #153684 solid;
 }
 .panel-title > .collapsed::before {
    padding-left: 3px;
    padding-top: 1px;
    
 }
 .panel-title > a::before {
    padding-left: 3px;
    padding-top: 1px;
 }
 .panel-title > a:hover {
    background-color: #26248f;
    transition: all .2s ease-in-out;
 }
 .panel-title > a:hover::before,.panel-title > .collapsed:hover::before {
    background-color: #FFF;
    color: #26248f;
    transition: all .2s ease-in-out;
 }
 .panel-title > a{text-decoration: none !important;}
 .exam-caption {padding-bottom:20px; padding-bottom: 20px !important;}
 /* Legacy floating toasts (kept for alerts outside main guest content, if any) */
 .alert{
    position: fixed;
    z-index: 99999;
    right: 20px;
    top: 100px;
    border-radius: 20px;
 }
 .alert-success {
    background-color: #3c763d;
    color: #FFF;
 }
 .alert > .close {
    color: #FFF;
    opacity: 0.8;
 }

/* Guest main content: in-flow alerts (login, register, forgot, activation, etc.) */
body.layout-guest .guest-content-wrapper .alert {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 0.5rem;
}
body.layout-guest .guest-content-wrapper .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}
body.layout-guest .guest-content-wrapper .alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}
body.layout-guest .guest-content-wrapper .alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}
body.layout-guest .guest-content-wrapper .alert-info {
    background-color: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
}
body.layout-guest .guest-content-wrapper .alert .btn-close {
    filter: none;
}
body.layout-guest .guest-content-wrapper .alert > .close {
    color: inherit;
    opacity: 0.55;
    text-shadow: none;
}
 .alert > img {
    margin-right: 15px;
 }
 .mod-list-vaanii{
    width:100%;
    min-height: 340px;
    max-height: 340px;
    overflow: auto;
    padding-right:5px;
    
 }
 .mod-list-vaanii a{
    display:block;
    background-color:#243574;
    margin-bottom:10px;
    padding: 10px;
    text-decoration: none;
    border-radius:7px;
    border:1px #243574 solid;
 }
 .mod-list-vaanii a:hover {
    background-color: #202f66;
    box-shadow: 1px 3px 2px rgba(0,0,0,0.3);
    border:1px #fbfbfb solid;
 }
 .mod-list-vaanii a:hover {background-color: #00a2e8 !important;}
 .mod-list-vaanii a.active {background-color: #00a2e8 !important;}
 #accordion .panel-heading h5 a {min-height: 50px;}
 #accordion .panel-heading h5 a p {float: left;}
 #accordion .panel-heading h5 a > span {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    padding-top:7px;
    text-transform: capitalize;
 }
 #accordion .panel-heading h5 a span > span {
    margin-right:5px;
    float: left;
 }
 #exam_summery .row {padding-top: 40px;}
 .result-note {display: inline-block;padding-top: 20px;}
 #exam_summery .container {min-height: 600px;}
 #exam_summery .panel-body {min-height: 150px;}
 .indexVaanii header:not(.main-header):not(.playground-hero):not(.admin-topbar):not(.topbar):not(#portfolio):not(.pp-head):not(.pp-hero):not(.pb-hero):not(.guest-corp-section-head):not(.guest-blog-hero):not(.guest-blog-article-hero):not(.guest-promise-pillar-v2__head){min-height: 700px;}

.popup-modal-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.75);
                backdrop-filter: blur(5px);
                z-index: 9999;
                display: none;
                align-items: center;
                justify-content: center;
            }
            
            @keyframes fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }

.popup-modal-overlay.popup-modal-overlay--open {
                display: flex;
                align-items: center;
                justify-content: center;
                animation: fadeIn 0.3s ease;
            }

            .popup-modal-container {
                position: relative;
                max-width: 400px;
                width: 85%;
                max-height: 85vh;
                background: #fff;
                border-radius: 16px;
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
                overflow: hidden;
                animation: slideUp 0.4s ease;
            }
            
            @keyframes slideUp {
                from {
                    transform: translateY(50px);
                    opacity: 0;
                }
                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }
            
            .popup-close-btn {
                position: absolute;
                top: 12px;
                right: 12px;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background: rgba(0, 0, 0, 0.6);
                border: none;
                color: #fff;
                font-size: 18px;
                cursor: pointer;
                z-index: 10;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;
                backdrop-filter: blur(10px);
            }
            
            .popup-close-btn:hover {
                background: rgba(0, 0, 0, 0.8);
                transform: scale(1.1) rotate(90deg);
            }
            
            .popup-content {
                padding: 0;
                display: block;
            }
            
            .popup-image-link {
                display: block;
                text-decoration: none;
                cursor: pointer;
            }
            
            .popup-image {
                width: 100%;
                height: auto;
                max-height: 70vh;
                max-width: 100%;
                object-fit: contain;
                display: block;
            }
            
            @media (max-width: 768px) {
                .popup-modal-container {
                    max-width: 95%;
                    border-radius: 12px;
                }
                
                .popup-close-btn {
                    width: 32px;
                    height: 32px;
                    font-size: 16px;
                    top: 8px;
                    right: 8px;
                }
            }

/* Site-wide guest breadcrumb (application/views/partials/guest_breadcrumb.php) */
body.layout-guest {
    --guest-bc-link-color: var(--vaanii-secondary, #1c4a63);
    --guest-bc-current-color: #64748b;
}
body.layout-guest .guest-breadcrumb-bar {
    position: relative;
    padding: 0;
    background: linear-gradient(
        180deg,
        rgba(var(--vaanii-primary-rgb, 81, 181, 235), 0.06) 0%,
        rgba(var(--vaanii-bg, 244, 248, 251), 0.92) 100%
    );
    border-bottom: 1px solid rgba(var(--vaanii-secondary-rgb, 28, 74, 99), 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}
body.layout-guest .guest-breadcrumb-inner {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
body.layout-guest .guest-breadcrumb-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent);
}
body.layout-guest .guest-breadcrumb-nav::-webkit-scrollbar {
    display: none;
}
body.layout-guest .guest-site-breadcrumb {
    gap: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
    min-width: min-content;
}
body.layout-guest .guest-bc-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: min(100%, 16rem);
}
body.layout-guest .guest-bc-item--active {
    max-width: min(100%, 22rem);
}
body.layout-guest .guest-bc-link,
body.layout-guest .guest-bc-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0.45rem;
    max-width: 100%;
    font-size: inherit;
    line-height: 1.35;
}
body.layout-guest .guest-bc-link-text,
body.layout-guest .guest-bc-text-inner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
body.layout-guest .guest-bc-home-icon {
    flex-shrink: 0;
    font-size: 0.72rem;
    opacity: 0.88;
}
body.layout-guest .guest-bc-link {
    color: var(--guest-bc-link-color);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
body.layout-guest .guest-bc-link:hover,
body.layout-guest .guest-bc-link:focus-visible {
    color: var(--vaanii-primary-dark, #2d8bc4);
    background-color: rgba(var(--vaanii-primary-rgb, 81, 181, 235), 0.1);
    box-shadow: 0 0 0 1px rgba(var(--vaanii-primary-rgb, 81, 181, 235), 0.14);
    outline: none;
}
body.layout-guest .guest-bc-item--active .guest-bc-text {
    color: var(--guest-bc-current-color);
    font-weight: 600;
    cursor: default;
    background: rgba(100, 116, 139, 0.1);
    box-shadow: none;
    border: 1px solid rgba(100, 116, 139, 0.16);
}
body.layout-guest .guest-bc-item--active .guest-bc-home-icon {
    color: var(--guest-bc-current-color);
    opacity: 0.9;
}

/* Course catalog (/courses) and learn preview — link vs current page */
body.layout-guest .guest-content-wrapper:has(.guest-catalog-page) .guest-bc-link,
body.layout-guest .guest-content-wrapper:has(.course-summary-wrap--guest) .guest-bc-link {
    color: var(--guest-bc-link-color);
    font-weight: 500;
    cursor: pointer;
}
body.layout-guest .guest-content-wrapper:has(.guest-catalog-page) .guest-bc-item--active .guest-bc-text,
body.layout-guest .guest-content-wrapper:has(.course-summary-wrap--guest) .guest-bc-item--active .guest-bc-text {
    color: var(--guest-bc-current-color);
    font-weight: 600;
    cursor: default;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.16);
    box-shadow: none;
}
body.layout-guest .guest-content-wrapper:has(.guest-catalog-page) .guest-bc-link:hover,
body.layout-guest .guest-content-wrapper:has(.guest-catalog-page) .guest-bc-link:focus-visible,
body.layout-guest .guest-content-wrapper:has(.course-summary-wrap--guest) .guest-bc-link:hover,
body.layout-guest .guest-content-wrapper:has(.course-summary-wrap--guest) .guest-bc-link:focus-visible {
    color: var(--vaanii-primary-dark, #2d8bc4);
    background-color: rgba(var(--vaanii-primary-rgb, 81, 181, 235), 0.1);
}

body.layout-guest .guest-bc-separator {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 0.15rem;
    color: rgba(var(--vaanii-secondary-rgb, 28, 74, 99), 0.28);
    user-select: none;
    pointer-events: none;
}
body.layout-guest .guest-bc-separator-icon {
    display: block;
    opacity: 0.9;
}
@media (min-width: 768px) {
    body.layout-guest .guest-breadcrumb-inner {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
    body.layout-guest .guest-site-breadcrumb {
        font-size: 0.84375rem;
    }
    body.layout-guest .guest-bc-link,
    body.layout-guest .guest-bc-text {
        padding: 0.32rem 0.65rem;
    }
    body.layout-guest .guest-bc-item {
        max-width: min(100%, 18rem);
    }
    body.layout-guest .guest-bc-item--active {
        max-width: min(100%, 26rem);
    }
}
@media (max-width: 767.98px) {
    body.layout-guest .guest-bc-item--collapse-mobile,
    body.layout-guest .guest-bc-separator--collapse-mobile {
        display: none !important;
    }

    body.layout-guest .guest-bc-ellipsis {
        color: var(--guest-bc-current-color);
        font-weight: 600;
        letter-spacing: 0.12em;
        padding: 0.28rem 0.35rem;
        user-select: none;
        pointer-events: none;
    }
}

@media (max-width: 575.98px) {
    body.layout-guest .guest-site-breadcrumb {
        font-size: 0.75rem;
    }
    body.layout-guest .guest-bc-link--home .guest-bc-link-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    body.layout-guest .guest-bc-link--home {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.layout-guest .guest-bc-link {
        transition: none;
    }
}

/* Breadcrumb band + hero spacing */
body.layout-guest .guest-content-wrapper:has(.guest-catalog-page) > .guest-breadcrumb-bar,
body.layout-guest .guest-content-wrapper:has(.course-summary-wrap--guest) > .guest-breadcrumb-bar {
    margin-bottom: clamp(0.5rem, 1.25vw, 0.85rem);
}
body.layout-guest .guest-content-wrapper:has(.guest-catalog-page) > .guest-breadcrumb-bar .guest-breadcrumb-inner,
body.layout-guest .guest-content-wrapper:has(.course-summary-wrap--guest) > .guest-breadcrumb-bar .guest-breadcrumb-inner {
    padding-top: clamp(0.4rem, 1vw, 0.65rem);
}
body.layout-guest .guest-content-wrapper:has(.guest-breadcrumb-bar) .guest-catalog-hero.section-wrap.py-5 {
    padding-top: 0 !important;
}
body.layout-guest .guest-content-wrapper:has(.guest-breadcrumb-bar) .guest-catalog-page .guest-catalog-hero .container.py-lg-3 {
    padding-top: 0 !important;
}
body.layout-guest .guest-content-wrapper:has(.guest-breadcrumb-bar) .guest-detail-page > .guest-corp-hero-skyline:first-of-type,
body.layout-guest .guest-content-wrapper:has(.guest-breadcrumb-bar) .guest-detail-page > .showcase-hero--clean:first-of-type {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.layout-guest .guest-content-wrapper:has(.guest-breadcrumb-bar) .course-summary-wrap--guest {
    padding-top: 0 !important;
}