/* =========================================
   ASIA CONNECT - SHARED HEADER
   ========================================= */

:root {
    --tvc-primary: #242f67;
    --tvc-primary-dark: #1b2451;
    --tvc-accent: #e64555;
    --tvc-accent-hover: #c73346;
}


/* =========================================
   HEADER
   ========================================= */

header {
    background-color: var(--tvc-primary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    z-index: 2000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

body {
    padding-top: 85px;
}

.site-header-inner {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}


/* =========================================
   LOGO
   ========================================= */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.brand-logo img {
    width: 52px;
    height: auto;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.brand-text small {
    font-size: 0.75rem;
}


/* =========================================
   MAIN NAVIGATION
   ========================================= */

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

nav.main-nav a.nav-link-custom {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

nav.main-nav a.nav-link-custom:hover {
    color: var(--tvc-accent);
}


/* =========================================
   DROPDOWNS
   ========================================= */

.services-dropdown,
.lang-dropdown {
    position: relative;
}


/* Services dropdown */

.services-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    background: #ffffff;
    min-width: 220px;

    padding: 8px 0;
    margin: 0;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    z-index: 3000;
}


/* OPEN SERVICES BY CLICK */

.services-dropdown.show .services-menu {
    display: block;
}


/* Services links */

.services-menu a {
    display: block;

    padding: 9px 18px;

    color: var(--tvc-primary);
    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 500;

    transition: all 0.2s ease;
}

.services-menu a:hover {
    background-color: var(--tvc-primary);
    color: #ffffff;
}


/* =========================================
   LANGUAGE DROPDOWN
   ========================================= */

.lang-menu {
    display: none;

    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;

    background: #ffffff;

    min-width: 70px;

    padding: 8px;
    margin: 0;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    z-index: 3000;

    list-style: none;
}

.lang-dropdown.show .lang-menu {
    display: block;
}

.lang-menu li {
    list-style: none;
}

.lang-menu li a {
    display: block;

    padding: 5px;

    border-radius: 8px;
    text-align: center;
}

.lang-menu li a:hover {
    background-color: #f1f3f7;
}


/* =========================================
   FLAGS
   ========================================= */

.flag-circle {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    display: inline-block;

    background-size: cover;
    background-position: center;

    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* =========================================
   LANGUAGE BUTTON
   ========================================= */

.lang-btn {
    background: none !important;
    background-color: transparent !important;
    border: none !important;

    cursor: pointer;

    padding: 0 !important;
    margin: 0 !important;

    width: auto !important;
    height: auto;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    box-shadow: none !important;
}

/* =========================================
   LOGIN BUTTON
   ========================================= */

.header-login-btn {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.header-login-btn:hover {
    color: var(--tvc-accent) !important;
    text-decoration: none !important;
}

.header-login-btn i {
    font-size: 0.95rem;
}

/* =========================================
   MOBILE HAMBURGER
   ========================================= */

.menu-toggle {
    display: none;

    background: transparent !important;
    background-color: transparent !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    color: #ffffff !important;

    font-size: 1.8rem;

    width: 42px;
    height: 42px;

    padding: 0;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}


/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 991px) {

    .site-header-inner {
        padding: 0.9rem 1rem;
    }


    /* Hamburger */

    .menu-toggle {
        display: flex;
    }


    /* Mobile Navigation */

    nav.main-nav {
        display: none;

        flex-direction: column;

        width: 100%;

        position: absolute;

        top: 100%;
        left: 0;

        background-color: var(--tvc-primary);

        padding: 1rem 1.25rem 1.25rem;

        gap: 0.8rem;

        align-items: flex-start;

        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);

        z-index: 2000;
    }


    /* Open mobile navigation */

    nav.main-nav.active {
        display: flex;
    }


    /* Mobile nav links */

    nav.main-nav a.nav-link-custom {
        width: 100%;

        padding: 7px 0;

        font-size: 0.95rem;
    }


    /* =====================================
       MOBILE SERVICES DROPDOWN
       ===================================== */

    .services-dropdown {
    width: 100%;
    position: relative;
}


    /* IMPORTANT:
       Don't use absolute positioning on mobile */

    .services-menu {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    width: 240px;
    min-width: 240px;
    height: auto;

    background: #ffffff;

    padding: 8px 0;
    margin: 0;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    z-index: 9999;
}

.services-dropdown.show .services-menu {
    display: block;
}


    /* Mobile services links */

    .services-menu a {
    display: block;

    padding: 10px 15px;

    color: var(--tvc-primary);

    text-decoration: none;

    font-size: 0.9rem;
}

.services-menu a:hover {
    background-color: var(--tvc-primary);
    color: #ffffff;
}


    /* Language */

    .lang-dropdown {
        position: relative;
        width: 100%;
    }
    
    .lang-dropdown .lang-btn {
        width: auto !important;
        justify-content: flex-start;
    }

    .lang-menu {
        left: 0;
        right: auto;
    }


    /* Logo */

    .brand-logo img {
        width: 46px;
    }

    .brand-text {
        font-size: 0.95rem;
    }
    
    .header-login-btn {
    width: 100%;
    justify-content: flex-start;

    padding: 7px 0;

    border: none;
    border-radius: 0;
}

.header-login-btn:hover {
    background-color: transparent;
    color: var(--tvc-accent);
}
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 576px) {

    .site-header-inner {
        padding: 0.75rem 1rem;
    }

    .brand-logo {
        gap: 8px;
    }

    .brand-logo img {
        width: 42px;
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .brand-text small {
        font-size: 0.65rem;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}