﻿#custom-header {
    background: linear-gradient(to bottom, #D1DEEB 0%, #6A8FC0 100%);
    width: 100%;
    max-width: 100%; 
    box-sizing: border-box;
    box-shadow: 0px 4px 10px rgba(84, 117, 160, 0.5); 
    position: relative;
    z-index: 1000;
}

#custom-header .header-inner {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

#custom-header .header-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#custom-header .header-nav {
    display: flex;
    gap: 30px;
}

#custom-header .header-nav a {
    color: #444444;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 0px 0;
    position: relative;
    transition: color 0.3s ease;
    line-height: 35px;
}

#custom-header .header-nav a:hover {
    color: #000000;
}

#custom-header .header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000; 
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#custom-header .header-nav a:hover::after {
    transform: scaleX(1);
}

@media screen and (max-width: 768px) {
    #custom-header .header-inner {
        flex-direction: column; 
        gap: 0px;
        padding: 5px 15px 5px 15px;
    }

    #custom-header .header-nav {
        display: flex;
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start; 
        padding: 5px 20px 0px 10px; 
        gap: 25px;                 
        scrollbar-width: none;     
        -webkit-overflow-scrolling: touch;

        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    }

    #custom-header .header-nav::-webkit-scrollbar {
        display: none;
    }

    #custom-header .header-nav a {
        font-size: 15px;
        padding: 0px 0;
    }

    #custom-header .header-nav::after {
        display: none !important;
    }

    #custom-header .header-nav a:active {
        opacity: 0.6;
    }
}