/* ==================================================
   TRANSLATION DOCK & EXACT VARIABLES
   ================================================== */
:root {
    --gt-dock-height: 40px;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
    --nida-green: #1da827; 
    overscroll-behavior-y: none !important;
    min-height: 100vh;
}

html { 
    scroll-padding-top: calc(var(--gt-dock-height) + 78px); 
    overscroll-behavior-y: none !important;
    min-height: 100vh;
}

* { 
    box-sizing: border-box; 
}

body {
    margin: 0;
    padding-top: var(--gt-dock-height);
    top: 0 !important;
    position: static !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overscroll-behavior-y: none !important;
    min-height: 100vh;
}

.gt-dock {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--gt-dock-height);
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    z-index: 2147483000;
}

.gt-widget {
    position: fixed; top: 6px; right: 16px; z-index: 2147483001;
    display: flex; align-items: center; gap: 8px;
    font: 14px/1 system-ui, sans-serif; color: #222;
}

/* ==================================================
   GOOGLE TRANSLATE OVERRIDES (The 360 Safari Hack)
   ================================================== */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
    display: none !important;
}

.goog-tooltip, .goog-tooltip:hover, .goog-text-highlight {
    display: none !important; background: transparent !important; box-shadow: none !important;
}

.goog-te-gadget {
    font-size: 0px !important;       
    color: transparent !important;   
    display: flex !important;
    align-items: center;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget .goog-te-combo {
    font-size: 11px !important;      
    color: #222 !important;          
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin: 0 0 0 5px !important;    
    cursor: pointer;
    background: #fff;
    outline: none;
    font-family: inherit;
}

/* ==================================================
   MAIN HEADER & NAVIGATION
   ================================================== */
.wrap { 
    max-width: 1180px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.site-header {
    position: sticky; top: var(--gt-dock-height); z-index: 900;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}

.lang-label {
    font-weight: 500;
    color: var(--text);
    margin-right: 5px;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    text-decoration: none;
    color: #334155; 
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--nida-green); 
}

.btn-outline {
    border: 1px solid #cbd5e1;
    padding: 8px 18px;
    border-radius: 8px;
    color: var(--primary) !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--bg);
    border-color: #94a3b8;
}

/* /* ==================================================
   RESPONSIVE MOBILE MENU (FIXED)
   ================================================== */
.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

/* Increased to 992px to catch iPads and prevent ANY breaking out */
@media (max-width: 992px) {
    /* 1. Force the hamburger button to show */
    .mobile-menu-toggle {
        display: block !important; 
    }

    /* 2. FORCE the inline links to hide unconditionally */
    .main-nav {
        display: none !important; 
        flex-direction: column;
        position: absolute;
        top: 68px; 
        left: 40%;
        right: 0;
        background: #fff;
        background-color: gold;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        padding: 10px 20px;
        gap: 5px;
        border-top: 1px solid var(--border);
    }

    /* 3. Force them to show vertically ONLY when the button is clicked */
    .main-nav.active {
        display: flex !important;
    }

    /* 4. Style the mobile dropdown links securely */
    .main-nav a {
        width: 100%;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .btn-outline {
        border: none;
        background: #f8fafc;
        text-align: center !important;
        border-radius: 4px;
        margin-top: 5px;
    }

    /* 5. Protect the Google Translate Widget layout */
    .gt-widget {
        right: 10px; 
    }
    .lang-label {
        display: none !important; /* Hide 'Language' to save screen space */
    }
}