/*=========================================
ISAGO HEADER - TOP NAV
==========================================*/

.isago-logo .isago-site-title,
.isago-logo .isago-site-title::after,
.isago-menu-button,
.isago-search-button,
.isago-dark-toggle{
    transition:
        transform .3s ease,
        font-size .3s ease,
        width .3s ease,
        height .3s ease,
        background .3s ease,
        color .3s ease;
}
  
.isago-header-wrapper{

position:sticky;

top:0;

z-index:9999;

background:var(--isago-bg);

}

.isago-header{
   position: relative;

    z-index: 10002;

    background: var(--isago-bg);

    border-bottom: 1px solid var(--isago-border);

    transition: .35s;

}

.isago-topbar{

height:92px;

display:flex;

align-items:center;
  padding: 0 5px;
justify-content:space-between;

}

.isago-header-left{

display:flex;

align-items:center;

gap:16px;

flex:1;

min-width:0;

}

.isago-header-right{

display:flex;

justify-content:flex-end;

align-items:center;

flex:1;

min-width:0;

}

.isago-logo{

flex:0 0 auto;

display:flex;

justify-content:center;

align-items:center;

padding:0 24px;

}

.isago-logo .isago-site-title{

    position:relative;

    display:inline-block;

    font-size:54px;

    font-weight:900;

    letter-spacing:-2px;

    font-family:"Manrope",sans-serif;

    color:var(--isago-text);

    line-height:1;

}
.isago-logo .isago-site-title::after{

    content:".";

    color:var(--isago-primary);

    font-size:68px;

    font-weight:900;

    line-height:0;

    margin-left:2px;

}


.isago-menu-button,
.isago-search-button,
.isago-dark-toggle{

width:42px;
height:42px;

display:flex;
align-items:center;
justify-content:center;

background:transparent;

border:none;

border-radius:50%;

cursor:pointer;

font-size:18px;

color:var(--isago-text);

transition:all .3s ease;

}

.isago-menu-button:hover,
.isago-search-button:hover,
.isago-dark-toggle:hover{

background:var(--isago-card);

color:var(--isago-primary);

transform:translateY(-2px);

}

.isago-header button i{

font-size:18px;

line-height:1;

}





/* =========================================
DISABLE HEADER WHEN SEARCH IS OPEN
========================================= */

body.isago-search-open .isago-header-wrapper {
    pointer-events: none;
}

/*=========================================
Scrolled
==========================================*/


.isago-header.scrolled{

 position: relative;

    z-index: 10002;

    background: var(--isago-scrolled-bg);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 8px 25px rgba(0,0,0,.08);

    border-bottom: 1px solid var(--isago-border);

}



.isago-header.scrolled .isago-topbar{

    height:92px;

}



.isago-header.scrolled .isago-logo .isago-site-title{

    font-size:44px;

}

.isago-header.scrolled .isago-logo .isago-site-title::after{

    font-size:56px;

}




.isago-header.scrolled .isago-menu-button,
.isago-header.scrolled .isago-search-button,
.isago-header.scrolled .isago-dark-toggle{

    width:38px;

    height:38px;

}









/*=========================================================
SOCIAL ICONS
=========================================================*/

.isago-social-icons{

display:flex;

align-items:center;

justify-content:flex-end;

gap:14px;

}

.isago-social-icons a{

width:38px;

height:38px;

display:flex;

align-items:center;

justify-content:center;

border-radius:50%;

color:var(--isago-text);

background:transparent;

font-size:16px;

transition:.3s;

}

.isago-social-icons a:hover{

background:#f4f7f8;

color:var(--isago-primary);

transform:translateY(-2px);

}















/*=========================================================
HEADER LOGO IMAGE
=========================================================*/

.isago-logo img {

    display: block;

    max-width: 190px;
    max-height: 60px;

    width: auto;
    height: auto;
}


/*=========================================================
TABLET
=========================================================*/

@media (max-width: 900px) {
.isago-topbar{
  padding: 0 15px;


}
 


    .isago-logo .isago-site-title {

        font-size: 42px;

    }
 .isago-logo .isago-site-title::after{

    font-size:38px;
}

.isago-menu-button,
.isago-search-button,
.isago-dark-toggle{

width:24px;
height:24px;

}
.isago-header button i{

font-size:16px;

line-height:1;

}

}


.isago-dark-mobile {

    display: none;

}



/*=========================================================
MOBILE
=========================================================*/
@media (max-width: 600px) {
    .isago-logo img {

        max-width: 145px;

        max-height: 45px;

    }


.isago-topbar{

        display:grid;

        grid-template-columns:1fr auto 1fr;

        align-items:center;

    }

    .isago-header-left{

        justify-content:flex-start;

        display:flex;

        gap:16px;
    }

    .isago-logo{

        justify-self:center;
    }

    .isago-header-right{

        display:flex;

        justify-content:flex-end;

        align-items:center;
    }

    .isago-dark-desktop{

        display:none;
    }

    .isago-dark-mobile{

        display:flex !important;
    }

    .isago-social-icons{

        display:none;
    }
}
    
@media (max-width:480px){

    .isago-topbar{

        padding:0 8px;

    }

}


/*=========================================================
VERY SMALL DEVICES
=========================================================*/
@media (max-width:400px){

    .isago-logo .isago-site-title{
        font-size:28px;
    }

    .isago-header.scrolled .isago-logo .isago-site-title{
        font-size:28px;
    }

    .isago-header.scrolled .isago-logo .isago-site-title::after{
        font-size:38px;
    }

    .isago-header.scrolled .isago-menu-button,
    .isago-header.scrolled .isago-search-button,
    .isago-header.scrolled .isago-dark-toggle{
        width:28px;
        height:28px;
    }

}


















/*=========================================================
ISAGO SOCIAL + AUTH HEADER CONTROLS
=========================================================*/

.isago-header-social-auth {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 18px;

    position: relative;
}


/*=========================================================
AUTH LINKS
=========================================================*/

.isago-header-auth {

    display: flex;

    align-items: center;

    gap: 8px;
}


.isago-header-auth-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 36px;

    padding:
        0
        12px;

border: 1px solid rgba(0, 212, 245, 0.4);
border-radius: 8px;
    background-color: var(--isago-card);
    
    font-size: 12px;

    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


/*=========================================================
SIGN IN
=========================================================*/

.isago-header-sign-in {

    color:
        var(
            --isago-text );
       border: 1px solid rgba(0, 212, 245, 0.4);
border-radius: 8px;
    background-color: var(--isago-card);
}


.isago-header-sign-in:hover {

    color:
        var(
            --isago-primary
        );
}


/*=========================================================
SIGN UP
=========================================================*/

.isago-header-sign-up {

    padding-left: 14px;

    padding-right: 14px;

    border:
        1px solid
        var(
            --isago-primary,
            #00d4f5
        );

    background:
        var(
            --isago-primary,
            #00d4f5
        );
    color:
        var(
            --isago-text );

}


.isago-header-sign-up:hover {

    opacity: .86;

       color:var( --isago-text );
}


/*=========================================================
USER DROPDOWN
=========================================================*/

.isago-header-user {

    position: relative;

    display: flex;

border: 1px solid rgba(0, 212, 245, 0.4);
border-radius: 8px;
    background-color: var(--isago-card);
    align-items: center;
}


/*=========================================================
USER TOGGLE
=========================================================*/

.isago-header-user-toggle {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    min-height: 36px;

    padding: 0 10px;

    border: 0;

    background: transparent;

    color:
        var(
            --isago-text,
         
        );

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    white-space: nowrap;
}


.isago-header-user-toggle:hover {

    color:
        var(
            --isago-primary,
            #00d4f5
        );
}


.isago-header-user-toggle > i {

    margin-left: 3px;

    font-size: 9px;

    transition:
        transform .2s ease;
}


.isago-header-user-greeting {

    font-weight: 500;

    opacity: .75;
}


.isago-header-user-name {

    max-width: 120px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/*=========================================================
USER DROPDOWN
=========================================================*/

.isago-header-user-dropdown {

    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    z-index: 99999;

    width: 230px;

    padding: 12px;

    border:
        1px solid rgba(0, 212, 245, .4);


    border-radius: 12px;

    background:
        var(
            --isago-card,
        );

    box-shadow:
        0 15px 40px
        rgba(
            0,
            0,
            0,
            .12
        );

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-5px);

    pointer-events: none;

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}


/*=========================================================
OPEN STATE
=========================================================*/

.isago-header-user.is-open
.isago-header-user-dropdown {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

    pointer-events: auto;
}


.isago-header-user.is-open
.isago-header-user-toggle
> i {

    transform:
        rotate(180deg);
}


/*=========================================================
INVISIBLE BRIDGE

Prevents the mouse from falling through the small
visual gap between the toggle and dropdown.
=========================================================*/

.isago-header-user-dropdown::before {

    content: "";

    position: absolute;

    top: -8px;

    right: 0;

    width: 100%;

    height: 8px;
}


/*=========================================================
DROPDOWN USER NAME
=========================================================*/

.isago-header-user-dropdown-name {

    padding:
        5px
        5px
        2px;

    color:
        var(
            --isago-heading,
        
        );

    font-size: 13px;

    font-weight: 800;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/*=========================================================
DROPDOWN EMAIL
=========================================================*/

.isago-header-user-dropdown-email {

    padding:
        0
        5px
        8px;

    color:
        var(
            --isago-muted,
          
        );

    font-size: 11px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/*=========================================================
DIVIDER
=========================================================*/

.isago-header-user-dropdown-divider {

    height: 1px;

    margin:
        3px
        0
        6px;

    background:
        var(
            --isago-border,
       
        );
}


/*=========================================================
LOGOUT
=========================================================*/

.isago-header-user-logout {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        9px 7px;

    border-radius: 8px;

    color:
        var(
            --isago-text
        );

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}


.isago-header-user-logout:hover {

    background:
        rgba(
            0,
            212,
            245,
            .08
        );

    color:
        var(
            --isago-primary,
            #00d4f5
        );
}


/*=========================================================
RESPONSIVE
=========================================================*/

@media (max-width: 900px) {

    .isago-header-social-auth {

        gap: 10px;
    }


    .isago-header-auth {

        gap: 3px;
    }


    .isago-header-auth-link {

        padding-left: 8px;

        padding-right: 8px;
    }


    .isago-header-user-name {

        max-width: 80px;
    }

}


@media (max-width: 600px) {

    .isago-header-social-auth {

        gap: 7px;
    }


    .isago-header-auth-link {

        min-height: 32px;

        padding:
            0
            7px;

        font-size: 11px;
    }


    .isago-header-sign-up {

        padding-left: 9px;

        padding-right: 9px;
    }


    .isago-header-user-greeting {

        display: none;
    }


    .isago-header-user-name {

        max-width: 70px;
    }


    .isago-header-user-dropdown {

        right: -5px;

        width: 210px;
    }

}





/*=========================================================
DROPDOWN USER INFO
=========================================================*/

.isago-header-user-dropdown-name {

    padding:
        5px
        5px
        2px;

    color:
        var(
            --isago-heading
        );

    font-size: 13px;

    font-weight: 800;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.isago-header-user-dropdown-email {

    padding:
        0
        5px
        8px;

    color:
        var(
            --isago-muted
        );

    font-size: 11px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/*=========================================================
DIVIDER
=========================================================*/

.isago-header-user-dropdown-divider {

    height: 1px;

    margin:
        3px
        0
        6px;

    background:
        var(
            --isago-border
        );
}


/*=========================================================
LOGOUT
=========================================================*/

.isago-header-user-logout {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        9px 7px;

    border-radius: 8px;

    color:
        var(
            --isago-text
        );

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}


.isago-header-user-logout:hover {

    background:
        rgba(
            0,
            212,
            245,
            .08
        );

    color:
        var(
            --isago-primary,
            #00d4f5
        );
}

/*=========================================================
MY ACCOUNT DROPDOWN LINK
=========================================================*/

.isago-header-user-account {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        9px 7px;

    border-radius: 8px;

    color:
        var(
            --isago-text
        );

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}


.isago-header-user-account:hover {

    background:
        rgba(
            0,
            212,
            245,
            .08
        );

    color:
        var(
            --isago-primary,
            #00d4f5
        );
}










/*=========================================================
RESPONSIVE
=========================================================*/

@media (max-width: 900px) {

    .isago-header-social-auth {

        gap: 10px;
    }


    .isago-header-auth {

        gap: 3px;
    }


    .isago-header-auth-link {

        padding-left: 8px;

        padding-right: 8px;
    }


    .isago-header-user-name {

        max-width: 80px;
    }

}


@media (max-width: 600px) {

    .isago-header-social-auth {

        gap: 7px;
    }


    /*
     * Keep the social icons visible,
     * but make the authentication controls
     * more compact on small screens.
     */

    .isago-header-auth-link {

        min-height: 32px;

        padding:
            0
            7px;

        font-size: 11px;
    }


    .isago-header-sign-up {

        padding-left: 9px;

        padding-right: 9px;
    }


    .isago-header-user-greeting {

        display: none;
    }


    .isago-header-user-name {

        max-width: 70px;
    }


    .isago-header-user-dropdown {

        right: -5px;

        width: 210px;
    }

}









/*=========================================================
MOBILE AUTH LOCATION
=========================================================*/

/*
 * Desktop/tablet:
 * auth remains in the header.
 */
.isago-mobile-auth {
    display: none;
}


/*
 * Mobile:
 * hide the header authentication controls.
 */
@media (max-width: 600px) {

    .isago-header-right
    .isago-header-social-auth {

        display: none !important;
    }


    /*
     * Show authentication inside
     * the mobile menu.
     */
    .isago-mobile-auth {

        display: block;

        margin-top: 20px;

        padding-top: 18px;

        border-top:
            1px solid
            var(
                --isago-border
            );
    }


    /*
     * Remove desktop social/auth layout.
     */
    .isago-mobile-auth
    .isago-header-social-auth {

        display: block;

        width: 100%;
    }


    /*
     * Logged-out buttons.
     */
    .isago-mobile-auth
    .isago-header-auth {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        width: 100%;

        gap: 10px;
    }


   .isago-mobile-auth
.isago-header-auth-link {

    width: 100%;

    height: 36px;

    min-height: 36px;

    box-sizing: border-box;

    justify-content: center;

    padding:
        0
        16px;

    font-size: 13px;
}

    /*
     * Logged-in user button.
     */
    .isago-mobile-auth
    .isago-header-user {

        width: 100%;

        display: block;

        box-sizing: border-box;
    }

.isago-mobile-auth
.isago-header-user-toggle {

    width: 100%;

    height: 36px;

    min-height: 36px;

    justify-content: space-between;

    padding:
        0
        14px;

    box-sizing: border-box;
}


    /*
     * Logged-in dropdown becomes part
     * of the mobile menu instead of
     * floating outside it.
     */


    .isago-mobile-auth
    .isago-header-user.is-open
    .isago-header-user-dropdown {

        transform: translateY(0);
    }


    /*
     * The invisible desktop bridge is
     * unnecessary inside the mobile menu.
     */
    .isago-mobile-auth
    .isago-header-user-dropdown::before {

        display: none;
    }


}










/* =========================================================
   ISAGO HEADER AND NAVIGATION STACKING FIX
========================================================= */

/* Keep the complete header above page content. */
.isago-header-wrapper {
    position: relative;
    z-index: 10010;
    isolation: isolate;
    background: var(--isago-bg);
}

/* Keep the top header above the navigation. */
.isago-header {
    position: relative;
    z-index: 10012;
    overflow: visible;
}

/* Keep the profile dropdown above navigation and page content. */
.isago-header-right,
.isago-header-social-auth,
.isago-header-user {
    position: relative;
    z-index: 10015;
}

.isago-header-user-dropdown {
    position: absolute;
    z-index: 10020;
}

/* Navigation stays below the top header and its dropdown. */
.isago-navigation {
    position: relative;
    z-index: 10005;
    background: var(--isago-card);
}

/* Keep navigation dropdowns above the navigation bar itself. */
.isago-navigation .isago-dropdown,
.isago-navigation .isago-submenu {
    z-index: 10006;
}

/* Preserve the header when the search overlay is open. */
body.isago-search-open .isago-header {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
    pointer-events: auto;
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    .isago-header {
        transition: none;
    }
}
