/* Navigation Styles - Site Wide */
/* Make the header sticky - Use !important to override parent theme */
#bloglo-header.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1100 !important;
    background-color: var(--background-paper, #ffffff) !important; /* Fallback to white */
    width: 100% !important;
}

/* Ensure breadcrumbs use the same font as the rest of the site */
.bloglo-breadcrumbs,
.breadcrumb-trail,
.breadcrumb-trail .trail-items,
.breadcrumb-trail .trail-items li,
.breadcrumb-trail .trail-items a,
.page-header .bloglo-breadcrumbs,
.page-header .bloglo-breadcrumbs a {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ensure parent containers don't interfere with sticky */
#page {
    overflow-x: hidden; /* Allow vertical scrolling */
    position: relative; /* Ensure proper stacking context */
}

body {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.bloglo-header-inner {
    width: 100%;
}

.main-navigation {
    padding: 16px 24px;
    border-bottom: 1px solid var(--divider, rgba(145, 158, 171, 0.24));
    background-color: var(--background-paper, #ffffff) !important; /* Ensure solid background */
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
    max-width: 200px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-link:hover {
    background-color: var(--background-neutral);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navigation Buttons */
.nav-right .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    white-space: nowrap;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-right .btn-text {
    background: transparent;
    color: var(--text-primary);
    border: none;
}

.nav-right .btn-text:hover {
    background-color: var(--background-neutral);
}

.nav-right .btn-contained {
    background: #2196F3;
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.nav-right .btn-contained:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

/* Responsive Navigation */
@media (max-width: 960px) {
    .nav-links {
        display: none; /* Hide nav links on mobile */
    }

    .nav-left {
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .main-navigation {
        padding: 12px 16px;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .logo-image {
        height: 32px;
    }

    .nav-right {
        gap: 8px;
    }

    .nav-right .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}
