/* Hero Banner Styles - Shared across all pages */

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

/* Add padding for fixed header on desktop and tablet */
@media (min-width: 769px) {
    body {
        padding-top: 165px !important; /* Fixed header (122px) + hero nav (40px) + margin */
    }
}

/* Mobile: No top padding - hero nav at bottom */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important; /* No top padding on mobile - header is static */
    }
}


/* Remove link underlines globally */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Remove gap between nav and page-hero */
header nav {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

header {
    padding-bottom: 0 !important;
}

.nav-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.header-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Hero Banner - Now a sky blue navbar with menu items */
.page-hero {
    position: fixed !important;
    top: 122px !important; /* Below the header */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #2196F3 !important;
    color: white !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 40px !important;
    z-index: 999 !important;
}

.page-hero-content {
    padding: 0 50px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    min-height: 40px !important;
}

.page-hero h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

/* Hero Navbar Menu */
.hero-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.hero-nav-item {
    color: white !important;
    padding: 10px 15px;
    font-weight: 500;
    font-size: 0.85em;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

/* Show text by default */
.hero-nav-item .nav-text {
    display: inline;
}

/* On mobile: Keep text visible in hero nav (sub navbar) */
@media (max-width: 768px) {
    .hero-nav-item .nav-text {
        display: inline !important; /* SHOW text on mobile for sub navbar */
    }

    .hero-nav-item {
        padding: 12px 15px;
        justify-content: center;
    }
}

.hero-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: white;
    color: white !important;
}

.hero-nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-bottom-color: white;
    color: white !important;
}

.hero-nav-item i {
    font-size: 1em;
}

/* Hero Actions (for pages with buttons in the banner) */
.hero-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 7px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.2s;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    color: white !important;
}

/* Breadcrumb Trail */
.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    padding: 15px 0;
    margin-bottom: 25px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-trail a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-trail a:hover {
    color: #1976D2;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
    font-weight: 300;
}

.breadcrumb-trail i {
    font-size: 1em;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .breadcrumb-trail {
        font-size: 0.75em;
        padding: 8px 0;
        margin-bottom: 12px;
        gap: 5px;
    }

    .breadcrumb-trail i {
        font-size: 0.9em;
        margin-right: 2px;
    }
}

/* Mobile Responsive - Position page-hero above mobile-bottom-nav */
@media (max-width: 768px) {
    /* Position page-hero as fixed bar above mobile nav */
    .page-hero {
        position: fixed !important;
        top: auto !important; /* Unset desktop top positioning */
        bottom: 50px !important; /* Aligned with compact mobile-bottom-nav */
        left: 0 !important;
        right: 0 !important;
        z-index: 999998 !important; /* Just below mobile-bottom-nav (999999) */
        background: #2196F3 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.15) !important;
        min-height: 34px !important;
        height: auto !important;
        overflow-x: auto !important;
        /* Auto-hide transition */
        transition: transform 0.3s ease-out !important;
    }

    /* Auto-hide state - slides down with bottom nav */
    .page-hero.nav-hidden {
        transform: translateY(calc(100% + 50px)) !important;
    }

    .page-hero-content {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 4px 10px !important;
        gap: 6px !important;
        width: 100% !important;
        overflow-x: auto !important;
    }

    .hero-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        overflow-x: auto !important;
        max-width: 100vw !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Hide scrollbar Firefox */
        -ms-overflow-style: none !important; /* Hide scrollbar IE/Edge */
    }

    .hero-nav::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar Chrome/Safari */
    }

    .hero-nav-item {
        white-space: nowrap !important;
        padding: 6px 8px !important;
        font-size: 0.75em !important;
        flex-shrink: 0 !important;
    }

    /* Hide icons in hero nav items on mobile - text only */
    .hero-nav-item i {
        display: none !important;
    }

    /* Hero actions for mobile */
    .hero-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        overflow-x: auto !important;
    }

    .hero-btn {
        white-space: nowrap !important;
        padding: 5px 9px !important;
        font-size: 0.78em !important;
        flex-shrink: 0 !important;
    }

    /* Hide icons in hero buttons on mobile - text only */
    .hero-btn i {
        display: none !important;
    }

    /* Adjust body padding for fixed bottom navs - compact sizes */
    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important; /* 50px mobile nav + 38px hero nav */
    }
}
