/* Header Styling */
.group-56 {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--common-header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    box-sizing: border-box;
    z-index: 1000;
}

.awawlogo-79-2306 { /* General Logo Style, could be in common if used elsewhere identically */
    width: 88px;
    height: 56px;
    position: relative; /* Adjusted from original for flexibility */
    /* top: 0; left: 0; no longer needed if flex alignment handles it */
}

.group-56 .pc-nav {
    display: flex;
    align-items: center;
    /* position: relative; left: 0; top: 0; not needed with flex */
}

    .group-56 .pc-nav a {
        text-decoration: none;
        font-size: var(--pc-font-1-483-size);
        font-family: var(--pc-font-1-483-family);
        font-weight: var(--pc-font-1-483-style);
        color: var(--pc-paint-11-735);
        margin-left: 40px;
    }

        .group-56 .pc-nav a:first-child {
            margin-left: 0;
        }

.text-79-2268, .text-79-2273, .text-79-2282 { /* Games text in nav */
    font-family: var(--pc-font-44-0957-family);
    font-size: var(--pc-font-44-0957-size);
    font-weight: var(--pc-font-44-0957-style);
    color: var(--common-text-color-light);
    position: relative; /* For underline positioning */
}

.rectangle-34-79-2272 { /* Underline for Games */
    width: 24px;
    height: 4px;
    background-color: var(--common-text-color-light);
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.rectangle-33-79-2312 { /* Decorative line in header - often design specific */
    width: 52px;
    height: 4px;
    background-color: var(--common-text-color-light);
    display: none; /* Typically controlled by media queries or specific states */
}

/* Language Dropdown */
.group-54.language-dropdown {
    width: 154px;
    position: absolute;
    right: 40px;
    top: 60px; /* Assuming header height is fixed, adjust if not */
    background-color: var(--pc-paint-1-455);
    opacity: 0.95;
    z-index: 1001;
    display: none; /* Controlled by JS */
    border-radius: 4px;
    overflow: hidden;
}

.rectangle-55-79-2301,
.rectangle-56-79-2287,
.rectangle-57-79-2288 {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--common-text-color-light);
    cursor: pointer;
}

    .rectangle-55-79-2301:hover,
    .rectangle-56-79-2287:hover,
    .rectangle-57-79-2288:hover {
        background-color: var(--pc-paint-1-502);
    }

.text-79-2293,
.text-79-2289,
.text-79-2297 { /* Language names */
    font-family: var(--pc-font-11-747-family);
    font-size: var(--pc-font-11-747-size);
    font-weight: var(--pc-font-11-747-style);
}

/* Assuming .text-79-2293 is the default/selected one, others might be different color */
.text-79-2289,
.text-79-2297 {
    color: var(--pc-paint-11-749);
}

/* Mobile Header Specifics (Hamburger menu) */
.mobile-nav-toggle {
    display: none; /* Shown via media query */
    width: 33px;
    height: 33px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
}

    .mobile-nav-toggle span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--common-text-color-light);
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

        .mobile-nav-toggle span:nth-child(1) {
            top: 0px;
        }

        .mobile-nav-toggle span:nth-child(2) {
            top: 10px;
        }

        .mobile-nav-toggle span:nth-child(3) {
            top: 20px;
        }

    /* Active state for hamburger - to be toggled by JS */
    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
    }

    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        left: -30px;
    }

    .mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
    }

/* Mobile Navigation Panel - Default state for all views (hidden off-screen) */
.primary-navigation {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    transform: translateY(-1000%); /* Hidden off-screen to the right */
    transition: transform 0.3s ease-in-out;
    padding-top: 120px;
    padding-bottom: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

    /* This rule is specifically for when the mobile nav is toggled to be visible */
    .primary-navigation[data-visible="true"] {
        transform: translateY(0);
    }

/* General hover effects for nav links */
header nav a:hover,
header nav a.active { /* Added .active for current page indication */
    color: var(--common-text-color-light); /* Or a highlight color */
}


/* Media Queries for Header */
@media (max-width: 768px) {
    .primary-navigation {
        display: block;
    }

    .group-56 { /* Mobile Header */
        padding: 0 20px; /* Adjust padding for mobile */
    }

    .awawlogo-79-2306 { /* Mobile Logo */
        /* Adjust size if needed for mobile */
        /* width: 70px; */
        /* height: 44px; */
    }

    .group-56 .pc-nav { /* Hide PC Nav on mobile */
        display: none;
    }

    .rectangle-34-79-2272 {
        display: none;
    }
    /* Hide PC underline for Games */
    .rectangle-33-79-2312 {
        display: none;
    }
    /* Hide PC decorative line */
    .group-54.language-dropdown {
        display: none !important;
    }
    /* Hide PC language dropdown */

    .mobile-nav-toggle { /* Show Hamburger */
        display: block;
    }

    /* Mobile Navigation Panel styles within media query can now be minimal, */
    /* as default styles are already set. Only override if needed for mobile. */
    /* For example, if padding-top or width needs to be different, specify here. */
    /* The transform: translateX(100%) is already the default. */
    /* The .primary-navigation[data-visible="true"] for translateX(0) is also global. */

    .primary-navigation ul {
        list-style: none;
        padding: 0 20px;
        margin: 0;
    }

        .primary-navigation ul li {
            margin-bottom: 20px;
        }

            .primary-navigation ul li a {
                font-family: 'Alibaba Sans SEA', sans-serif; /* font_11:1275 for main items */
                font-size: 32px; /* Adjusted from 36px for better fit */
                font-weight: 500; /* Medium */
                color: var(--common-text-color-light); /* paint_1:441 */
                text-decoration: none;
                display: block;
                padding: 10px 0;
            }

    .primary-navigation .language-switcher-mobile > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .primary-navigation .language-dropdown-mobile {
        list-style: none;
        padding-left: 20px; /* Indent language options */
        margin-top: 10px;
        display: none; /* Controlled by JS */
    }

        .primary-navigation .language-dropdown-mobile li a {
            font-size: 28px; /* Adjusted from 32px */
            color: var(--pc-paint-11-735); /* paint_11:735 for language options */
            padding: 8px 0;
        }

            .primary-navigation .language-dropdown-mobile li a.active-lang,
            .primary-navigation .language-dropdown-mobile li a:hover {
                color: var(--common-text-color-light);
            }

    .primary-navigation .arrow-down {
        width: 14px;
        transition: transform 0.3s ease;
    }

    .primary-navigation .language-switcher-mobile.open .arrow-down {
        transform: rotate(90deg);
    }

    /* Optional: Add a close button inside the panel if desired */
    /* .mobile-nav-close-btn { ... } */

}

@media (max-width: 480px) {
    .group-56 { /* Header for very small screens */
        height: 60px; /* Slightly smaller header */
        padding: 0 15px;
    }

    .awawlogo-79-2306 { /* Logo for very small screens */
        width: 75px;
        height: 48px;
    }

    .primary-navigation {
        padding-top: 90px; /* Adjust for smaller header */
    }

        .primary-navigation ul li {
            margin-bottom: 5px;
        }

            .primary-navigation ul li a {
                font-size: 18px;
            }

        .primary-navigation .language-dropdown-mobile li a {
            font-size: 18px;
        }

        .primary-navigation .arrow-down {
            width: 7px;
            transition: transform 0.3s ease;
        }
}
