/* ========================================
   HEADER-FIX.CSS - Clean Header Solution
   Namespace: .dmg-header-fix
   ======================================== */

/* Reset and isolate header styles */
.dmg-header-fix {
    width: 100%;
    background: rgba(9, 103, 139, 0.95);  /* More opaque - changed from 0.36 */
    backdrop-filter: blur(10px);  /* Add blur effect */
    -webkit-backdrop-filter: blur(10px);  /* Safari support */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);  /* Stronger shadow */
}

/* Add padding to body to compensate for fixed header */
body {
    padding-top: 70px !important;  /* Increased for better spacing */
}

body.no-page-top {
    padding-top: 70px !important;
}

/* Ensure all main content areas have proper padding */
main,
.main-content,
#content,
.content,
.container:first-of-type {
    padding-top: 20px !important;
}

.dmg-header-fix * {
    box-sizing: border-box;
}

/* Container */
.dmg-header-fix .dmg-container {
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
    padding: 12px 15px;
    position: relative;
}

/* Wrapper for flex layout */
.dmg-header-fix .dmg-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* Logo/Welcome - Left Side */
.dmg-header-fix .dmg-welcome {
    flex: 0 0 auto;
    color: white;
    font-size: 15px;
    margin: 0;
    padding: 5px 0;
}

.dmg-header-fix .dmg-welcome a {
    color: white;
    text-decoration: none;
}

.dmg-header-fix .dmg-welcome .dmg-name {
    color: #ff4444;
    font-weight: bold;
}

/* Hamburger Button - Right Side */
.dmg-header-fix .dmg-hamburger {
    flex: 0 0 auto;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 20px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: none;
    line-height: 1;
}

.dmg-header-fix .dmg-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Navigation Menu */
.dmg-header-fix .dmg-nav {
    flex: 1 1 auto;
    margin-left: 20px;
}

.dmg-header-fix .dmg-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.dmg-header-fix .dmg-nav-item {
    margin: 0;
}

.dmg-header-fix .dmg-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    transition: background 0.3s;
    white-space: nowrap;
}

.dmg-header-fix .dmg-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.dmg-header-fix .dmg-nav-link i {
    margin-right: 4px;
    font-size: 12px;
}

/* Mobile Styles (Below 992px) */
@media (max-width: 991px) {
    /* Show hamburger */
    .dmg-header-fix .dmg-hamburger {
        display: block;
    }
    
    /* Hide nav by default */
    .dmg-header-fix .dmg-nav {
        flex: 1 1 100%;
        order: 10;
        width: 100%;
        margin: 15px 0 0 0;
        display: none;
    }
    
    /* Show nav when active */
    .dmg-header-fix .dmg-nav.dmg-active {
        display: block;
    }
    
    /* Stack menu vertically */
    .dmg-header-fix .dmg-nav-list {
        flex-direction: column;
        width: 100%;
        background: rgba(9, 103, 139, 0.95);
        border-radius: 8px;
        padding: 10px 0;
    }
    
    .dmg-header-fix .dmg-nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dmg-header-fix .dmg-nav-item:last-child {
        border-bottom: none;
    }
    
    .dmg-header-fix .dmg-nav-link {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
    }
}

/* Desktop Only (992px and above) */
@media (min-width: 992px) {
    .dmg-header-fix .dmg-hamburger {
        display: none !important;
    }
    
    .dmg-header-fix .dmg-nav {
        display: block !important;
    }
}

/* Small Mobile (Below 480px) */
@media (max-width: 480px) {
    .dmg-header-fix .dmg-welcome {
        font-size: 14px;
    }
    
    .dmg-header-fix .dmg-hamburger {
        font-size: 20px;
        padding: 6px 12px;
    }
}
