/* ==========================================
   PREMIUM WHITE HEADER & FOOTER STYLES
   ========================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    background: #f8fafc;
}

/* ---- Top Bar ---- */
.top_bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 44px;
    background: #1e3a5f;
    z-index: 10000;
    display: flex;
    align-items: center;
}
.top_bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.top_bar_contact_list {
    display: flex;
    gap: 22px;
    align-items: center;
    margin: 0; padding: 0;
    list-style: none;
}
.top_bar_contact_list li {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.9);
    font-size: 12.5px;
    font-weight: 400;
    gap: 6px;
}
.top_bar_contact_list i { font-size: 12px; opacity: 0.8; }
.top_bar_contact_list a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s;
}
.top_bar_contact_list a:hover { color: #ffffff; }

/* Right side top bar containing lang and login */
.top_bar_right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Top Bar Language Selector */
.top_bar_lang {
    position: relative;
    display: inline-block;
}
.top_bar_lang_btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.25s, border-color 0.25s;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}
.top_bar_lang_btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}
.top_bar_lang_btn svg {
    fill: none;
    stroke: #ffffff;
    width: 14px;
    height: 14px;
}
.top_bar_lang_dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 10001;
    padding: 6px;
    list-style: none;
    margin: 0;
}
.top_bar_lang.show .top_bar_lang_dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.top_bar_lang_dropdown li {
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}
.top_bar_lang_dropdown li:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}
.top_bar_lang_dropdown li.lang-active {
    color: #0077ff;
    background-color: #f0f7ff;
    font-weight: 600;
}

/* Login pill in top bar */
.login_button { display: flex; align-items: center; }
    .login_button a {
        background: rgba(255,255,255,0.18);
        border: 1px solid rgba(255,255,255,0.35);
        color: #ffffff !important;
        padding: 5px 16px !important;
        border-radius: 24px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: background 0.25s, border-color 0.25s !important;
        letter-spacing: 0.3px;
    }
.login_button a:hover {
    background: rgba(255,255,255,0.30) !important;
    border-color: rgba(255,255,255,0.6) !important;
}

/* ---- Main Header ---- */
.header_container {
    position: fixed;
    top: 44px;
    width: 100%;
    z-index: 9998;
    background: #ffffff;
    box-shadow: 0 1px 0 #e8edf3, 0 4px 24px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.header_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}
.logo_container a { display: flex; align-items: center; }
.logo_container img { height: 50px; width: auto; }

/* Desktop Nav */
.main_nav_container {
    flex: 1;
    display: flex;
    justify-content: center;
}
.main_nav {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0; padding: 0;
}
.main_nav li { position: relative; }
.main_nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    padding-bottom: 4px;
    transition: color 0.25s;
    letter-spacing: 0.2px;
}
.main_nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0%; height: 2.5px;
    background: #0077ff;
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.main_nav a:hover::after,
.main_nav li.active a::after { width: 100%; }
.main_nav a:hover { color: #0077ff; }

/* Desktop Search Box */
.header_search_wrapper {
    display: flex;
    align-items: center;
}
.header_search_box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.header_search_box:focus-within {
    background: #ffffff;
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0,119,255,0.1);
}
.header_search_box input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1e293b;
    width: 160px;
    padding: 4px 6px;
    font-family: 'Outfit', sans-serif;
    transition: width 0.3s ease;
}
.header_search_box input::placeholder {
    color: #94a3b8;
}
.header_search_box input:focus {
    width: 200px;
}
.header_search_box button {
    background: none;
    border: none;
    padding: 0;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.header_search_box button:hover {
    color: #0077ff;
}

/* ---- Hamburger (mobile) ---- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}
.hamburger:hover { background: #f0f4f8; }
.ham-bar {
    display: block;
    width: 22px; height: 2.5px;
    background: #2c3e50;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.hamburger.open .ham-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Hidden legacy dropdowns (keep for server logic) ---- */
#ddlLanguage, #ddlLanguage2,
[id$='ddlLanguage'], [id$='ddlLanguage2'] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}
.header_search_form { display: none !important; }

/* ---- Old mobile menu (hidden, replaced below) ---- */
.menu { display: none !important; }

/* ---- Page content offset ---- */
.homesite { padding-top: 54x; }

/* ==============================================
   GLOBE / LANGUAGE  –  iPhone-style popup
   ============================================== */
.lang-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lang-overlay.show { opacity: 1; pointer-events: all; }
.lang-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #ffffff;
    border-radius: 22px 22px 0 0;
    padding: 0 0 max(env(safe-area-inset-bottom),16px);
    z-index: 20001;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}
.lang-sheet.show { transform: translateY(0); }
.lang-sheet-handle {
    width: 40px; height: 4px;
    background: #d1d5db;
    border-radius: 4px;
    margin: 12px auto 0;
}
.lang-sheet-title {
    text-align: center;
    padding: 16px 20px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1e2a3b;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.lang-list { list-style: none; margin: 0; padding: 8px 0; }
.lang-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    transition: background 0.18s;
    border-bottom: 1px solid #f8fafc;
}
.lang-list li:last-child { border-bottom: none; }
.lang-list li:hover { background: #f0f7ff; }
.lang-list li.lang-active { color: #0077ff; font-weight: 700; }
.lang-list li.lang-active::after {
    content: ''; margin-left: auto; width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230077ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/contain;
}

/* ==============================================
   MOBILE MENU  –  iPhone-style slide-up sheet
   ============================================== */
.mob-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.42);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 19000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mob-overlay.show { opacity: 1; pointer-events: all; }
.mob-sheet {
    position: fixed; bottom: 0; left: 0; right: 0; background: #ffffff;
    border-radius: 24px 24px 0 0; padding: 0 0 max(env(safe-area-inset-bottom),20px);
    z-index: 19001; transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
    max-height: 80vh; overflow-y: auto; box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}
.mob-sheet.show { transform: translateY(0); }
.mob-sheet-handle {
    width: 40px; height: 4px; background: #d1d5db;
    border-radius: 4px; margin: 12px auto 4px;
}
.mob-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px 14px; border-bottom: 1px solid #f1f5f9;
}
.mob-sheet-logo img { height: 38px; }
.mob-sheet-close {
    background: #f1f5f9; border: none; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 18px; color: #64748b; transition: background 0.2s;
}
.mob-sheet-close:hover { background: #e2e8f0; }
.mob-nav-list { list-style: none; margin: 0; padding: 10px 0; }
.mob-nav-list li a, .mob-nav-list li span {
    display: flex; align-items: center; gap: 14px; padding: 15px 24px;
    font-size: 16px; font-weight: 600; color: #1e2a3b; text-decoration: none;
    transition: background 0.18s, color 0.18s; border-bottom: 1px solid #f8fafc;
}
.mob-nav-list li:last-child a, .mob-nav-list li:last-child span { border-bottom: none; }
.mob-nav-list li a:hover { background: #f0f7ff; color: #0077ff; }
.mob-nav-list li a .mob-nav-icon {
    width: 36px; height: 36px; background: #f0f4f8; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px;
}
.mob-login-btn {
    display: block; margin: 10px 20px 0; text-align: center;
    background: #0077ff; color: #fff !important;
    padding: 14px !important; border-radius: 14px !important;
    font-size: 15px !important; font-weight: 700 !important; text-decoration: none !important;
    transition: opacity 0.2s !important; letter-spacing: 0.3px;
}
.mob-login-btn:hover { opacity: 0.88 !important; }

.mob-globe-row {
    display: flex; align-items: center; gap: 14px; padding: 15px 24px;
    font-size: 15px; font-weight: 600; color: #1e2a3b; cursor: pointer;
    border-top: 1px solid #f1f5f9; margin-top: 4px; transition: background 0.18s;
}
.mob-globe-row:hover { background: #f0f7ff; }
.mob-globe-icon {
    width: 36px; height: 36px; background: #e8f1ff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Mobile search box */
.mob-search-box {
    margin: 10px 20px;
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 8px 14px;
}
.mob-search-box input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1e293b;
    width: 100%;
    padding: 4px 8px;
    font-family: 'Outfit', sans-serif;
}
.mob-search-box button {
    background: none;
    border: none;
    padding: 0;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Responsive ---- */
@media only screen and (max-width: 991px) {
    .hamburger { display: flex !important; }
    .main_nav_container { display: none !important; }
    .header_search_wrapper { display: none !important; }
    .top_bar { display: none !important; }
    .header_container { top: 0 !important; }
    .homesite { padding-top: 68px !important; }
}
@media only screen and (min-width: 992px) {
    .hamburger { display: none !important; }
}

/* ---- Search Highlight ---- */
mark.search-hl {
    background: #ffe066;
    color: #1a1a1a;
    border-radius: 3px;
    padding: 0 2px;
}

