/* ============================================
   MAIN HEADER STYLES - Custom Implementation
   ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 1260px;
    padding: 35px 50px;
    z-index: 9999;
    transition: all .3s ease;
    background: transparent;
}

.main-header * {
    transition: all .3s ease;
}

.main-header:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    content: '';
    background: #ec2b09;
    opacity: 1;
    z-index: 1;
}

.main-header:before {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--scroll-progress, 0%);
    height: 3px;
    content: '';
    background: #fffb0c;
    opacity: 1;
    z-index: 2;
    transition: width 0.1s ease;
}

.header-fixed {
    background: #b70002;
    padding: 20px 50px;
    box-shadow: 0 0 3px rgba(0,0,0,.3);
}

.header-fixed:after {
    height: 4px;
}

.header-fixed:before {
    height: 4px;
}

.main-header .brand-section {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.main-header .brand-section:before {
    position: absolute;
    top: 111px;
    right: 50%;
    margin-right: 80px;
    content: '';
    width: 1000px;
    height: 1px;
    background: #fff;
    opacity: .1;
}

.main-header .brand-section:after {
    position: absolute;
    top: 111px;
    left: 50%;
    margin-left: 80px;
    content: '';
    width: 1000px;
    height: 1px;
    background: #fff;
    opacity: .1;
}

.header-fixed .brand-section:before {
    opacity: 0;
}

.header-fixed .brand-section:after {
    opacity: 0;
}

.main-header .brand-section .anchor-link {
    position: absolute !important;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-header .brand-section img {
    width: 100px;
    display: block;
}

.main-header .logo-secondary {
    opacity: 0;
}

.main-header .logo-mobile {
    opacity: 0;
    display: none;
}

.header-fixed .brand-section .anchor-link {
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
}

.header-fixed .brand-section .logo-primary {
    opacity: 0;
    width: 50px;
}

.header-fixed .brand-section .logo-secondary {
    opacity: 1;
    width: 300px;
}

.header-fixed .brand-section .logo-mobile {
    width: 200px;
}

.main-header .navigation-menu {
    display: table;
    width: 100%;
}

.main-header .menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header .menu-item {
    flex: 1;
    text-align: center;
}

.main-header .menu-item:nth-child(4) {
    margin-right: 20%;
}

.main-header .menu-link {
    position: relative;
    display: block;
    font-family: 'GmarketSans';
    font-weight: 300;
    text-align: center;
    font-size: 18px;
    line-height: 40px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.main-header .menu-item.active .menu-link {
    font-weight: 500;
    color: #fffb0c;
}

/* Mobile Responsive Styles */
@media (max-width: 750px) {
    .main-header {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
    }

    .main-header:after {
        display: none;
    }

    .header-fixed {
        padding: 15px 10px;
    }

    .main-header .brand-section {
        top: 0;
    }

    .main-header .brand-section:before {
        display: none;
    }

    .main-header .brand-section:after {
        display: none;
    }

    .main-header .brand-section img {
        position: absolute;
        top: 10px;
        left: 50%;
        width: 100px;
        transform: translateX(-50%);
    }

    .main-header .logo-primary {
        display: block;
    }

    .main-header .logo-secondary {
        width: 200px;
        opacity: 0;
    }

    .header-fixed .brand-section img {
        top: 15px;
    }

    .header-fixed .logo-primary {
        opacity: 0;
        width: 10px;
    }

    .header-fixed .logo-secondary {
        opacity: 1;
    }

    .main-header .navigation-menu {
        margin-top: -200px;
        opacity: 0;
    }

    .main-header .menu-list {
        flex-wrap: wrap;
        gap: 5px;
    }

    .main-header .menu-item {
        flex: 0 0 calc(25% - 5px);
        width: 25%;
    }

    .main-header .menu-item:nth-child(4) {
        margin-right: 0;
    }

    .main-header .menu-link {
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        padding: 5px 2px;
    }

    .header-fixed .navigation-menu {
        margin-top: 50px;
        opacity: 1;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 480px) {
    .main-header .menu-link {
        font-size: 14px;
        line-height: 18px;
    }
}

@media (max-width: 375px) {
    .main-header .menu-link {
        font-size: 13px;
        line-height: 16px;
    }
}

@media (max-width: 320px) {
    .main-header .menu-link {
        font-size: 12px;
        line-height: 14px;
    }
}