@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

:root {
    --full-size: 1920px;
    --full-minisize: 1200px;
    --fit-height: 1080px;
    --bg_santa_main: #2C8276;
    --santa_main: #FFFFFF;
    --santa_2main: #b20000;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
}

.header {
    width: var(--full-size);
}

.header {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2002;
    transition: all .5s var(--greenshift-transition), z-index 0s;
    position: sticky;
    top: 0;
}

.btn_login {
    width: 20px;
    height: 20px;
    background-color: transparent;
}

.top-bar {
    width: var(--full-minisize);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
}

.logo-area {
    width: 40%;
    display: flex;
    align-items: center;
}

.logo {
    width: 160px;
    margin-right: 10px;
}

.company-info h1 {
    margin: 0;
    color: var(--bg_santa_main);
    font-size: 20px;
}

.company-info p {
    margin: 2px 0;
    font-size: 14px;
}

.contact-area {
    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact_1 {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact_2 {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact_2 p {
    margin: 0;
}

.contact_2 a {
    color: var(--bg_santa_main);
    text-decoration: none;
}

.contact_2 strong {
    font-size: 20px;
    font-weight: bold;
}

.line {
    width: 2px;
    height: 60px;
    background-color: #55555559;
    margin-right: 20px;
}

.working-hours {
    font-size: 14px;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}

.line-icon {
    width: 30px;
    vertical-align: middle;
    margin-right: 5px;
}

.staff-img {
    width: 170px;
    height: 170px;
}

.navbar {
    width: var(--full-size);
    background-color: var(--bg_santa_main);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    gap: 1rem;
}

.navbar_menu {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
}

.navbar_menu:hover {
    border-bottom: 2px solid #FFF;
}

.navbar_menu.active {
    border-bottom: 2px solid #FFF;
}


.navbar_menu.highlight {
    background-color: white;
    color: #c00;
    border-radius: 20px;
    font-weight: bold;
    padding: 8px 16px;
    /* optional padding */
    transition: background-color 0.3s, color 0.3s;
}

.navbar_menu.highlight:hover {
    background-color: #FFF600;
    color: #c00;
}


.dropdown {
    width: 10px;
}

.dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    min-width: 320px;
    z-index: 999;
}

.dropdown-container:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
    color: var(--bg_santa_main);
}

.dropdown-menu img.icon {
    width: 35px;
    height: 35px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 10px;
}

.dropdown-container.mega {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 20px;
    min-width: 480px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    flex-direction: column;
    gap: 40px;
}

.mega-menu h4 {
    margin: 0;
}

.dropdown-container.mega:hover .mega-menu {
    display: flex;
}

.city-section,
.lifestyle-section {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

/* ส่วนตกแต่งภายใน */
.city-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px;
}

.city-grid div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

.city-grid img {
    width: 24px;
    height: 24px;
}

.city-grid a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row_tags {
    display: flex;
    gap: 10px;
}

.tag {
    padding: 6px 6px;
    background-color: var(--bg_santa_main);
    border-radius: 20px;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    width: 25%;
    display: flex;
    justify-content: center;
}


.tag:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.mobile-header,
.mobile-sidebar {
    display: none;
}


.navbar_menu_dropdown {
    position: relative;
    display: inline-block;
}

.navbar_dropdown_content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    z-index: 1;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.navbar_dropdown_content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.navbar_dropdown_content a:hover {
    background-color: #f0f0f0;
    border-radius: 6px;
    color: #D81E05;
}

.navbar_menu_dropdown:hover .navbar_dropdown_content {
    display: block;
}

@media (min-width:1101px) and (max-width: 1919px) {
    .header {
        width: 100%;
    }

    .navbar {
        width: 100%;
    }

    .mobile-nav-toggle,
    .mobile-header {
        display: none;
    }

}


/* เมนูมือถือแบบ Sidebar */
@media (max-width:1100px) {
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--bg_santa_main);
        color: white;
        padding: 10px 0px;
        z-index: 3000;
        /* ให้มากกว่า sidebar กับ overlay */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .content_header {
        width: 90%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;

    }

    .mobile-nav-toggle {
        display: block;
        z-index: 2001;
        cursor: pointer;
    }

    .mobile-nav-toggle div {
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        margin: 5px 0;
        transition: 0.4s;
    }

    .navbar {
        display: none;
    }

    .header {
        display: none;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-logo {
        width: 45px;
        height: 45px;
    }

    .mobile-company-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.2;
    }

    .mobile-title {
        font-size: 18px;
        font-weight: bold;
        color: white;
    }

    .mobile-subtitle {
        font-size: 11px;
        color: white;
        line-height: 1.7;
    }

    body.no-scroll {
        overflow: hidden;
        height: 100vh;
    }

    /* ✅ เมนูมือถือ */
    .mobile-sidebar {
        position: fixed;
        top: 60px;
        /* เปลี่ยนจาก 50px เป็น 60px */
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        /* ปรับความสูงให้พอดี */
        overflow-y: auto;
        background-color: #fff;
        padding: 20px;
        z-index: 2000;
        transition: left 0.3s ease-in-out;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
    }



    .dropdown1 {
        width: 18px;
        background-color: var(--bg_santa_main);
    }

    .dropdown2 {
        width: 18px;
        background-color: var(--bg_santa_main);
    }

    .mobile-sidebar.open {
        left: 0;
    }

    .mobile-sidebar a {
        padding: 15px 10px;
        border-bottom: 1px solid #eee;
        color: var(--bg_santa_main);
        font-weight: bold;
        text-decoration: none;
        display: flex;
        justify-content: flex-start;
        gap: 1rem;

    }

    .mobile-sidebar a:hover {
        background-color: #f5f5f5;
        border-radius: 8px;
    }

    .mobile-submenu {
        display: none;
        flex-direction: column;
        margin-left: 10px;
        border-left: 2px solid #eee;
        padding-left: 10px;
    }

    .mobile-submenu a {
        color: #444;
        font-weight: normal;
        padding: 10px 5px;
        border-bottom: none;
        font-size: 14px;
    }

    .mobile-submenu-program {
        display: none;
        flex-direction: column;
        padding-left: 10px;
        gap: 10px;
    }

    .city-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 20px;
        font-size: 14px;
        color: #444;
    }

    .lifestyle-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

    .lifestyle-buttons .btn {
        font-size: 13px;
        padding: 6px 10px;
        border-radius: 20px;
        color: white;
        font-weight: 500;
        background-color: var(--bg_santa_main);
    }

    .lifestyle-buttons .btn:hover {
        background-color: var(--bg_santa_main);
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        /* สีดำโปร่ง */
        z-index: 1999;
        display: none;
    }

    .mobile-overlay.show {
        display: block;
    }
}