@media (max-width: 900px) {
    .lsfd-nav-right {
        margin-left: auto !important;
        justify-content: flex-end !important;
        float: right !important;
        display: flex !important;
        position: relative;
        right: 0;
    }
}
@media (max-width: 900px) {
    .lsfd-nav-left {
        display: none !important;
    }
}
.lsfd-logout-btn-top {
    display: inline-flex;
}
@media (max-width: 900px) {
    .lsfd-logout-btn-top {
        display: none !important;
    }
}
.lsfd-nav-left {
    overflow-y: auto;
    max-height: 60px;
    position: relative;
}

.lsfd-nav-left .nav-item {
    display: block;
}

@media (max-width: 900px) {
    .lsfd-nav-left {
        max-height: 48px;
    }
}

/* Hide nav items that overflow vertically */
.lsfd-nav-left .nav-item {
    /* Hide if not fully visible vertically */
    position: relative;
}
.lsfd-nav-left .nav-item {
    /* Use a mask to hide overflow, but fallback to display:none for items out of bounds */
}
.lsfd-nav-left {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}
.lsfd-nav-left::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}
/* Cute Red Logout Button */
.lsfd-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.12);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-left: 1rem;
}
.lsfd-logout-btn.lsfd-logout-btn-sidebar {
    display: block;
    margin: 1.2rem auto 1.2rem auto;
    text-align: center;
    padding: 0.4rem 0.9rem;
    font-size: 0.93rem;
    min-width: 90px;
    max-width: 140px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.10);
}
.lsfd-logout-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.18);
    color: #fff !important;
}
/* Los Santos Fire Department Header Styles */

/* Red header bar at the very top */
.lsfd-top-bar {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #991b1b;
}

/* Black emergency bar at the very top */
.lsfd-emergency-bar {
    background: #000000;
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 2px solid #dc2626;
}

/* Grey navigation bar */
.lsfd-navbar {
    background:  #4b5563;
    border-bottom: 2px solid #1f2937;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.lsfd-nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: nowrap;
    height: 60px;
    overflow: visible;
}

/* Left side navigation */
.lsfd-nav-left {
.lsfd-nav-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
    min-width: 0;
}
    display: flex;
    max-width: 40%;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    z-index: 20;
    position: relative;
    height: 60px;
    /* overflow: visible; allow dropdowns to overflow */
}

.lsfd-navbar.has-overflow .lsfd-nav-left {
    padding-left: 50px;
}

.lsfd-nav-left a,
.lsfd-nav-left button {
    color: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
.lsfd-nav-left .nav-item {
    min-width: 0;
    max-width: 180px;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
    gap: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lsfd-nav-left a:hover,
.lsfd-nav-left button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Category dropdown menu styling */
.lsfd-category-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    min-width: 250px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 9999;
    overflow: visible !important;
}
/* Ensure nav left allows dropdowns to overflow above navbar */
.lsfd-nav-left {
    overflow-y: visible;
    overflow-x: visible;
}

/* Add invisible bridge to prevent dropdown from closing */
.lsfd-nav-left .zn-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    display: none;
    z-index: 49;
}
@media (max-width: 900px) {
    .lsfd-nav-left {
        flex-wrap: wrap;
        gap: 0.1rem;
        padding-left: 0 !important;
    }
    .lsfd-nav-left .nav-item {
        max-width: 100vw;
        font-size: 0.95em;
        padding: 0.25rem 0.5rem;
    }
}

.lsfd-nav-left .zn-dropdown.open .lsfd-category-dropdown {
    display: block;
}

/* Show dropdown on hover for desktop */
@media (min-width: 768px) {
    .lsfd-nav-left .zn-dropdown:hover::before {
        display: block;
    }
    
    .lsfd-nav-left .zn-dropdown:hover .lsfd-category-dropdown {
        display: block;
    }
}

.lsfd-category-dropdown .dropdown-item {
    color: #e5e7eb;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.lsfd-category-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Active category styling */
.lsfd-nav-left a.active,
.lsfd-nav-left .zn-dropdown-toggle.active {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

/* Center logo - overlapping */
.lsfd-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -20px;
    z-index: 30;
    background: white;
    border-radius: 50%;
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 4px solid #dc2626;
    transition: opacity 0.3s ease;
}

.lsfd-logo-center img {
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 50%;
}

/* Hide center logo on small screens to prevent overlap */
@media (max-width: 900px) {
    .lsfd-logo-center {
        display: none;
    }
}

/* Right side navigation */
.lsfd-nav-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 20;
    height: 60px;
    overflow: hidden;
}

.lsfd-nav-right a {
    color: #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.lsfd-nav-right a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Badge for notifications/messages */
.lsfd-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
    border: 2px solid #374151;
}

/* Hide original breadcrumbs */
.breadcrumbs-panel {
    display: none !important;
}

/* Adjust header section */
.lsfd-header .header-section {
    display: none;
}

/* Banner carousel styling */
.lsfd-banner-carousel {
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
    height: 400px;
    z-index: 1;
}

.lsfd-carousel-container {
    max-width: 80rem;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.lsfd-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.lsfd-carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.lsfd-carousel-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.lsfd-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 2;
}

.lsfd-carousel-btn {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.lsfd-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lsfd-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.lsfd-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.lsfd-carousel-indicator.active {
    background: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lsfd-top-bar {
        font-size: 1rem;
        letter-spacing: 1px;
        padding: 0.5rem;
    }
    
    .lsfd-emergency-bar {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .lsfd-nav-left,
    .lsfd-nav-right {
        flex-wrap: wrap;
    }
    
    .lsfd-logo-center {
        position: relative;
        left: auto;
        transform: none;
        top: auto;
        margin: 1rem auto;
    }
    
    .lsfd-nav-container {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .lsfd-banner-carousel {
        height: 250px;
    }
}

/* Mobile Menu Toggle Button */
.lsfd-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #e5e7eb;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
}

.lsfd-mobile-menu-toggle:hover {
    color: white;
}

/* Sidebar Overlay */
.lsfd-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lsfd-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.lsfd-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.lsfd-sidebar.active {
    left: 0;
}

.lsfd-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #dc2626;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    gap: 1rem;
}

.lsfd-sidebar-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.lsfd-sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid white;
}

.lsfd-sidebar-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    flex-grow: 1;
}

.lsfd-sidebar-close {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.lsfd-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lsfd-sidebar-content {
    padding: 1rem 0;
}

.lsfd-sidebar-item {
    display: block;
    padding: 1rem 1.5rem;
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.lsfd-sidebar-item:hover {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: #dc2626;
}

.lsfd-sidebar-category {
    border-bottom: 1px solid #e5e7eb;
}

.lsfd-sidebar-subitem {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.lsfd-sidebar-subitem:hover {
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
}

/* Show mobile menu button and adjust layout */
.lsfd-navbar.has-overflow .lsfd-mobile-menu-toggle {
    display: block !important;
}

/* Hide overflow items completely */
.lsfd-navbar.has-overflow .lsfd-nav-left .nav-item:not(.visible-item) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.lsfd-nav-left .nav-item {
    flex-shrink: 0;
}

/* Always show menu button on smaller screens */
@media (max-width: 1100px) {
    .lsfd-mobile-menu-toggle {
        display: block !important;
    }
    
    .lsfd-nav-left {
        padding-left: 50px !important;
    }
}
