/* ===== header.css ===== */
.top-stock-bar-2 {
    width: 100%;
    background-color: rgb(255, 255, 255);
    color: var(--primary-bg);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(222, 222, 222, 0.714);
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 10s linear infinite;
    /* ✅ Fix: Start from left */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0); /* ✅ Starts visible from left */
    }
    100% {
        transform: translateX(-100%); /* ✅ Moves left and loops */
    }
}


/*------------------*/

.ky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 20px var(--spacing-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: white;
    
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.ky-header-container {
    position: relative;
    max-width: 1280px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ky-header-logo-2 {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
}

.ky-header-logo-2 img {
    height: clamp(24px, 5vw, 24px);
}


.ky-header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.ky-header-nav-menu-2 {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--primary-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ky-header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
}

.ky-header-nav-link:hover {
    background: linear-gradient(135deg, #ffe500, #ffe082, #ffca28, #ffc107, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ky-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.ky-header-signin-2 {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.3s;
}

.ky-header-signin:hover {
    color: var(--accent-color);
}

.ky-header-btn-primary {
    background-color: var(--primary-main);
    color: var(--primary-main);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ky-header-btn-primary:hover {
    background-color: var(--primary-text);
}

.ky-header-hamburger {
    display: none;
    font-size: 24px;
    color: black;
    cursor: pointer;
}

.ky-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-color);
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 20px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
}

.ky-mobile-menu.active {
    right: 0;
}

.close-btn {
    margin-left: auto;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .ky-header-nav {
        display: none;
    }
    .ky-header-actions {
        display: none;
    }
    .ky-header-hamburger {
        display: block;
    }
    .ky-header-wrapper {
        padding: 15px 15px;
    }
    .ky-header-btn-primary {
        text-align: center;
        padding: 12px 0;
    }
}


.ky-mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ky-mobile-menu-content a {
    font-size: 16px;
    text-decoration: none;
    color: var(--primary-main);
    font-weight: 500;
}

.close-btn {
    margin-left: auto;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary-bg);
}