/* =========================================
   KAZ UNIVERSE - GLOBAL NAVIGATION
   ========================================= */
:root {
    --kaz-primary: #222222; 
    --kaz-accent: #0078D4;  
    --kaz-text: #ffffff;
}

.kaz-nav {
    background: var(--kaz-primary);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--kaz-accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kaz-brand {
    color: var(--kaz-text);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.kaz-brand span { 
    color: var(--kaz-accent); 
    margin-right: 5px; 
}

/* Hamburger Button (ซ่อนไว้ในจอคอม) */
.kaz-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.kaz-hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--kaz-text);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Desktop Menu */
.kaz-menu { 
    display: flex; 
    gap: 15px; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.kaz-menu a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.kaz-menu a:hover { color: var(--kaz-accent); }
.kaz-menu a.active { 
    color: var(--kaz-text); 
    border-bottom: 2px solid var(--kaz-accent); 
    padding-bottom: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kaz-hamburger {
        display: flex; /* แสดงปุ่ม Hamburger */
    }
    
    .kaz-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--kaz-primary);
        flex-direction: column;
        gap: 0;
        max-height: 0; /* ซ่อนเมนูด้วยความสูง 0 */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    /* เมื่อกดเปิดเมนู */
    .kaz-menu.active {
        max-height: 300px; /* ความสูงที่พอดีกับเนื้อหาเมนู */
        border-bottom: 2px solid var(--kaz-accent);
    }

    .kaz-menu li {
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .kaz-menu a {
        display: block;
        padding: 15px 20px;
    }

    .kaz-menu a.active {
        border-bottom: none;
        color: var(--kaz-accent);
    }

    /* Hamburger Animation (เปลี่ยนเป็นกากบาท) */
    .kaz-hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .kaz-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .kaz-hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }