/* ==========================================================================
   VHP AUTO RESPONSIVE HEADER - STYLESHEET
   100% Exact to https://vishwahindiparishad.in/
   ========================================================================== */

#vhp-header-root {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-family: 'Noto Sans Devanagari', 'Mukta', -apple-system, sans-serif;
    position: relative;
    z-index: 99999;
    overflow-x: clip !important;
}

#vhp-header-root *,
#vhp-header-root *::before,
#vhp-header-root *::after {
    box-sizing: border-box !important;
}

/* HIDE ONLY THE FLOATING ORANGE TRIGGER BUTTON (SO IT DOES NOT OVERLAP BUTTONS) */
.imt-trigger-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* KEEP IMT FLOATING CONTAINER READY FOR POPUP MODAL */
.imt-floating-container {
    position: fixed !important;
    top: 42px !important;
    right: 20px !important;
    z-index: 999999999 !important;
    pointer-events: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.imt-floating-container.active {
    pointer-events: auto !important;
}

.imt-floating-container .imt-dropdown-panel {
    pointer-events: auto !important;
    z-index: 999999999 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}

.imt-floating-container.active .imt-dropdown-panel {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* --------------------------------------------------------------------------
   1. TOP BAR (TICKER & LANGUAGE)
   -------------------------------------------------------------------------- */
#vhp-header-root .vhp-top-bar {
    background-color: #850000;
    color: #ffffff;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#vhp-header-root .vhp-ticker-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 25px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 25px), transparent);
}

#vhp-header-root .vhp-ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: vhpTickerSlide 35s linear infinite;
}

#vhp-header-root .vhp-ticker-track:hover {
    animation-play-state: paused;
}

#vhp-header-root .vhp-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff !important;
    padding: 0 20px;
    text-decoration: none !important;
    line-height: 38px;
    cursor: pointer;
    transition: color 0.2s, text-shadow 0.2s;
}

#vhp-header-root .vhp-ticker-item:hover {
    color: #ffda79 !important;
    text-shadow: 0 0 8px rgba(255, 218, 121, 0.6);
}

#vhp-header-root .vhp-ticker-divider {
    color: rgba(255, 255, 255, 0.4);
    margin-right: 15px;
    line-height: 38px;
}

@keyframes vhpTickerSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Top Bar Translator (Visible in Top Bar on Desktop & Mobile) */
#vhp-header-root .vhp-top-lang {
    padding-right: 15px;
    padding-left: 10px;
    z-index: 10;
    background: #850000;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
}

#vhp-header-root .vhp-lang-btn {
    background: #d9651b;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

#vhp-header-root .vhp-lang-btn:hover {
    background: #ba4e0a;
}

#vhp-header-root .vhp-top-lang select,
#vhp-header-root .vhp-top-lang .goog-te-combo,
#vhp-header-root .vhp-top-lang .gtranslate_wrapper select,
#vhp-header-root .vhp-top-lang .imt-inline-select {
    background: #d9651b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    outline: none !important;
    cursor: pointer !important;
}

#vhp-header-root .vhp-top-lang .goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

#vhp-header-root .vhp-top-lang .goog-te-gadget .goog-te-combo {
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   2. MIDDLE HEADER (PURE WHITE BACKGROUND - NO GREY)
   -------------------------------------------------------------------------- */
#vhp-header-root .vhp-main-header {
    background-color: #ffffff !important;
    background: #ffffff !important;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

#vhp-header-root .vhp-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    background: transparent !important;
}

#vhp-header-root .vhp-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
    background: transparent !important;
}

/* Exact Banner Logo - Natural Aspect Ratio (NO CIRCLE, NO GREY BG) */
#vhp-header-root .vhp-brand-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
    background: transparent !important;
}

#vhp-header-root .vhp-main-logo {
    height: clamp(48px, 4.5vw, 65px);
    width: auto;
    max-width: 360px;
    object-fit: contain;
    display: block;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Controls Right */
#vhp-header-root .vhp-header-right {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.1vw, 16px);
    flex-shrink: 1;
}

/* Phone Contact Box */
#vhp-header-root .vhp-contact-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    border-left: 2px solid #f0f0f0;
    padding-left: 12px;
}

#vhp-header-root .vhp-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

#vhp-header-root .vhp-contact-link:hover {
    color: #b71c1c !important;
}

#vhp-header-root .vhp-contact-link i {
    color: #b71c1c;
    font-size: 13px;
    width: 14px;
}

/* Action Buttons */
#vhp-header-root .vhp-header-actions {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.75vw, 10px);
}

#vhp-header-root .vhp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px clamp(8px, 0.95vw, 14px);
    border-radius: 6px;
    font-size: clamp(12px, 0.9vw, 13.5px);
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    animation: vhpBtnBlink 2.2s infinite ease-in-out;
}

#vhp-header-root .vhp-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    animation-play-state: paused;
}

#vhp-header-root .vhp-btn-orange {
    background: linear-gradient(135deg, #f2711c 0%, #d45000 100%);
    animation-delay: 0s;
}

#vhp-header-root .vhp-btn-red {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    animation-delay: 0.4s;
}

#vhp-header-root .vhp-btn-yellow {
    background: linear-gradient(135deg, #ffc800 0%, #e59400 100%);
    color: #1a1a1a !important;
    animation-delay: 0.8s;
}

#vhp-header-root .vhp-btn-yellow:hover {
    color: #000000 !important;
}

/* 3 Buttons Blinking / Pulsing Animation */
@keyframes vhpBtnBlink {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.15);
        box-shadow: 0 0 14px rgba(255, 200, 0, 0.65), 0 3px 8px rgba(0, 0, 0, 0.25);
    }
}

/* Social Strip */
#vhp-header-root .vhp-social-strip {
    display: flex;
    align-items: center;
    gap: 6px;
}

#vhp-header-root .vhp-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: transform 0.2s ease;
}

#vhp-header-root .vhp-social-icon:hover {
    transform: scale(1.1);
}

#vhp-header-root .vhp-icon-fb { background-color: #1877f2; }
#vhp-header-root .vhp-icon-x { background-color: #000000; }
#vhp-header-root .vhp-icon-yt { background-color: #ff0000; }
#vhp-header-root .vhp-icon-insta {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* --------------------------------------------------------------------------
   3. BOTTOM NAVBAR: EXACT LIVE GRADIENT & AUTO ADJUSTING (NO GREY BOX)
   -------------------------------------------------------------------------- */
#vhp-header-root .vhp-navbar-wrap {
    background-color: #B91C1C !important;
    background-image: linear-gradient(180deg, #B91C1C 0%, #DF7500 100%) !important;
    background: linear-gradient(180deg, #B91C1C 0%, #DF7500 100%) !important;
    box-shadow: 0 3px 10px rgba(185, 28, 28, 0.35);
    position: sticky;
    top: 0;
    z-index: 99998;
}

#vhp-header-root .vhp-navbar-wrap.vhp-is-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99998 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

#vhp-header-root .vhp-navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 10px;
    background: transparent !important;
    background-color: transparent !important;
}

/* Navigation List (Desktop & Laptop) - REMOVE ALL GREY BACKGROUNDS */
#vhp-header-root .vhp-nav-list,
#vhp-header-root ul#menu-main-menu,
#vhp-header-root ul.menu {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#vhp-header-root .vhp-nav-list > li,
#vhp-header-root ul#menu-main-menu > li {
    position: relative;
    flex-shrink: 0;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#vhp-header-root .vhp-nav-list > li > a,
#vhp-header-root ul#menu-main-menu > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: clamp(12px, 0.94vw, 14.5px) !important;
    font-weight: 600 !important;
    padding: 13px clamp(4px, 0.72vw, 11px) !important;
    white-space: nowrap !important;
    transition: background 0.2s, color 0.2s;
    border-bottom: 3px solid transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

#vhp-header-root .vhp-nav-list > li:hover > a,
#vhp-header-root .vhp-nav-list > li.current-menu-item > a,
#vhp-header-root .vhp-nav-list > li.current_page_item > a,
#vhp-header-root .vhp-nav-list > li.active > a,
#vhp-header-root ul#menu-main-menu > li.current-menu-item > a,
#vhp-header-root ul#menu-main-menu > li.current_page_item > a {
    background: rgba(0, 0, 0, 0.16) !important;
    background-color: rgba(0, 0, 0, 0.16) !important;
    border-bottom: 3px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#vhp-header-root .vhp-arrow {
    font-size: 10px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

#vhp-header-root .vhp-nav-list > li:hover > a .vhp-arrow {
    transform: rotate(180deg);
}

/* Dropdown Sub-menu - HEADER GRADIENT BG & HOVER WHITE */
#vhp-header-root .vhp-nav-list .sub-menu,
#vhp-header-root ul#menu-main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-image: linear-gradient(180deg, #B91C1C 0%, #DF7500 100%) !important;
    background-color: #B91C1C !important;
    min-width: 250px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    list-style: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999999;
    border-top: 3px solid #ffcc00 !important;
}

#vhp-header-root .vhp-nav-list > li:hover > .sub-menu,
#vhp-header-root ul#menu-main-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#vhp-header-root .vhp-nav-list .sub-menu li,
#vhp-header-root ul#menu-main-menu .sub-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

#vhp-header-root .vhp-nav-list .sub-menu li a,
#vhp-header-root ul#menu-main-menu .sub-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #ffffff !important; /* DEFAULT WHITE TEXT ON HEADER BG */
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: transparent !important;
}

/* CURSOR AANE PAR BG WHITE HOGA AUR TEXT RED */
#vhp-header-root .vhp-nav-list .sub-menu li a:hover,
#vhp-header-root .vhp-nav-list .sub-menu li:hover > a,
#vhp-header-root ul#menu-main-menu .sub-menu li a:hover,
#vhp-header-root ul#menu-main-menu .sub-menu li:hover > a {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #b71c1c !important;
    padding-left: 25px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* --------------------------------------------------------------------------
   4. MOBILE TOGGLE & DRAWER
   -------------------------------------------------------------------------- */
#vhp-header-root .vhp-mobile-toggle-bar {
    display: none;
    width: 100%;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

#vhp-header-root .vhp-mobile-title {
    font-weight: 700;
    font-size: 15px;
}

#vhp-header-root .vhp-mobile-menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

#vhp-header-root .vhp-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

#vhp-header-root .vhp-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#vhp-header-root .vhp-mobile-drawer.active {
    opacity: 1;
    visibility: visible;
}

#vhp-header-root .vhp-drawer-panel {
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
}

#vhp-header-root .vhp-mobile-drawer.active .vhp-drawer-panel {
    transform: translateX(0);
}

#vhp-header-root .vhp-drawer-header {
    background: #850000;
    padding: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#vhp-header-root .vhp-drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

#vhp-header-root .vhp-drawer-body {
    padding: 10px 0;
    flex: 1;
}

#vhp-header-root .vhp-drawer-nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#vhp-header-root .vhp-drawer-nav li {
    border-bottom: 1px solid #f0f0f0;
    list-style: none !important;
    margin: 0 !important;
}

#vhp-header-root .vhp-drawer-nav li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

#vhp-header-root .vhp-drawer-nav li.active a,
#vhp-header-root .vhp-drawer-nav li a:hover {
    color: #b71c1c !important;
    background: #fff8f6;
}

#vhp-header-root .vhp-drawer-sub {
    display: none;
    background: #fafafa;
    list-style: none !important;
    padding: 0 0 0 15px !important;
    margin: 0 !important;
}

#vhp-header-root .vhp-drawer-actions {
    padding: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   5. AUTO-ADJUST BREAKPOINTS (LAPTOP & MULTI-SCREEN)
   -------------------------------------------------------------------------- */

/* Standard Laptops (1200px - 1440px with 125%/150% scaling) */
@media screen and (max-width: 1399px) {
    #vhp-header-root .vhp-nav-list > li > a {
        padding: 11px clamp(3.5px, 0.58vw, 7px) !important;
        font-size: 12.8px !important;
    }
    #vhp-header-root .vhp-contact-box {
        font-size: 12px;
        padding-left: 8px;
    }
    #vhp-header-root .vhp-btn {
        padding: 6px 9px;
        font-size: 12px;
    }
    #vhp-header-root .vhp-social-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ==========================================================================
   4. MOBILE & TABLET NATIVE APP BAR (EXACT AS USER SCREENSHOT)
   ========================================================================== */
#vhp-header-root .vhp-mobile-appbar {
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: space-between;
    background: #8e1b10 !important;
    padding: 8px 12px;
    height: 64px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 99999;
}

/* Left: Rounded Square Hamburger Button */
#vhp-header-root .vhp-appbar-hamburger {
    width: 42px;
    height: 42px;
    background: #8e1b10 !important;
    border: 1.5px solid #111111 !important;
    border-radius: 6px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#vhp-header-root .vhp-appbar-hamburger:active {
    transform: scale(0.94);
    background: rgba(0, 0, 0, 0.25) !important;
}

#vhp-header-root .vhp-appbar-hamburger span {
    display: block;
    width: 20px;
    height: 2.4px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Center: Brand (Logo + Hindi Text + Subtitle) */
#vhp-header-root .vhp-appbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    flex: 1;
    justify-content: center;
    margin: 0 8px;
    min-width: 0;
}

#vhp-header-root .vhp-appbar-emblem {
    width: 38px;
    height: 38px;
    background: #ffffff !important;
    border-radius: 6px !important;
    padding: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
    flex-shrink: 0 !important;
}

#vhp-header-root .vhp-appbar-emblem img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    display: block !important;
}

#vhp-header-root .vhp-appbar-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#vhp-header-root .vhp-appbar-titles h2 {
    color: #ffffff !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
    font-weight: 800 !important;
    font-family: 'Mukta', 'Noto Sans Devanagari', -apple-system, sans-serif !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: normal !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
}

#vhp-header-root .vhp-appbar-titles p {
    color: #ffd875 !important;
    font-size: clamp(9.5px, 2.7vw, 11.5px) !important;
    font-weight: 600 !important;
    font-family: 'Mukta', 'Noto Sans Devanagari', -apple-system, sans-serif !important;
    line-height: 1.1 !important;
    margin: 2px 0 0 0 !important;
    white-space: nowrap !important;
    font-style: italic !important;
    letter-spacing: normal !important;
    opacity: 0.95;
    -webkit-font-smoothing: antialiased !important;
}

/* Right: Actions ([HI], Search, Bell, Profile) */
#vhp-header-root .vhp-appbar-actions {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.8vw, 11px);
    flex-shrink: 0;
}

#vhp-header-root .vhp-appbar-pill-lang {
    border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 12px !important;
    padding: 2px 8px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.22) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#vhp-header-root .vhp-appbar-pill-lang:active,
#vhp-header-root .vhp-appbar-pill-lang:hover {
    background: rgba(255, 255, 255, 0.45) !important;
    transform: scale(0.95) !important;
}

#vhp-header-root .vhp-appbar-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff !important;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform 0.15s ease;
}

#vhp-header-root .vhp-appbar-icon-btn:active {
    transform: scale(0.9);
}

#vhp-header-root .vhp-appbar-user-btn {
    font-size: 21px !important;
}

/* Mobile Quick Actions Strip (3 Blinking Buttons below App Bar) */
#vhp-header-root .vhp-mobile-actions-strip {
    display: none; /* Hidden on desktop */
    padding: 8px 10px;
    gap: 5px;
    justify-content: space-between;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

#vhp-header-root .vhp-mobile-actions-strip .vhp-btn {
    flex: 1 1 0 !important;
    padding: 6px 3px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 5px !important;
}

/* Mobile Expandable Search Bar */
#vhp-header-root .vhp-appbar-search-box {
    background: #ffffff;
    padding: 8px 12px;
    border-bottom: 2px solid #b71c1c;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#vhp-header-root .vhp-appbar-search-box form {
    display: flex;
    gap: 8px;
}

#vhp-header-root .vhp-appbar-search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

#vhp-header-root .vhp-appbar-search-box button {
    background: #b71c1c;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. AUTO-ADJUST BREAKPOINTS (SWITCH TO MOBILE APP BAR)
   -------------------------------------------------------------------------- */

/* Tablet & Mobile Screens (<= 1024px) -> ACTIVATE NATIVE MOBILE APP BAR */
@media screen and (max-width: 1024px) {
    /* Hide Desktop Middle Header & Desktop Navbar */
    #vhp-header-root .vhp-main-header,
    #vhp-header-root .vhp-navbar-wrap,
    #vhp-header-root .vhp-top-lang {
        display: none !important;
    }

    /* Show Native Mobile App Bar (Sticky at Top) & Action Strip */
    #vhp-header-root {
        position: relative !important;
        overflow: visible !important;
    }

    #vhp-header-root .vhp-mobile-appbar {
        display: flex !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 999999 !important;
    }

    /* Fixed Sticky when scrolled on mobile */
    #vhp-header-root.vhp-sticky-active .vhp-mobile-appbar,
    .vhp-mobile-appbar.vhp-is-fixed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999999 !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
        border-radius: 0 0 16px 16px !important;
    }

    #vhp-header-root.vhp-sticky-active {
        padding-top: 64px !important;
    }

    #vhp-header-root .vhp-mobile-actions-strip {
        display: flex !important;
    }

    /* IMT Language Modal Positioning on Mobile/Tablet */
    .imt-floating-container {
        top: 85px !important;
        right: 12px !important;
        left: auto !important;
    }
    .imt-floating-container .imt-dropdown-panel {
        width: min(320px, calc(100vw - 24px)) !important;
        max-height: 75vh !important;
    }
}

/* Mobile Phones (Below 768px) -> Perfect Responsive Layout */
@media screen and (max-width: 767px) {
    #vhp-header-root {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        overflow-x: clip !important;
    }
    #vhp-header-root .vhp-top-bar {
        height: 30px !important;
    }
    #vhp-header-root .vhp-ticker-item {
        font-size: 11.5px !important;
        padding: 0 12px !important;
        line-height: 30px !important;
    }
    #vhp-header-root .vhp-ticker-divider {
        line-height: 30px !important;
        margin-right: 8px !important;
    }
    #vhp-header-root .vhp-main-header {
        padding: 10px 0 8px 0 !important;
    }
    #vhp-header-root .vhp-header-content {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }
    #vhp-header-root .vhp-brand-logo-link {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    #vhp-header-root .vhp-main-logo {
        height: auto !important;
        max-height: 48px !important;
        max-width: 80% !important;
    }
    #vhp-header-root .vhp-header-right {
        width: 100% !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    #vhp-header-root .vhp-header-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 4px !important;
        justify-content: space-between !important;
    }
    #vhp-header-root .vhp-header-actions .vhp-btn {
        flex: 1 1 0 !important;
        padding: 6px 3px !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border-radius: 4px !important;
    }
    #vhp-header-root .vhp-social-strip {
        display: none !important;
    }
    #vhp-header-root .vhp-navbar-wrap {
        width: 100% !important;
    }
    #vhp-header-root .vhp-mobile-menu-btn {
        padding: 6px 12px !important;
        font-size: 13.5px !important;
    }
}

/* ==========================================================================
   6. VHP BUILT-IN LANGUAGE MODAL (100% RELIABLE ON ALL DEVICES)
   ========================================================================== */
#vhp-header-root .vhp-lang-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9999999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

#vhp-header-root .vhp-lang-modal-backdrop.active {
    display: flex !important;
    animation: vhpModalFadeIn 0.2s ease forwards !important;
}

@keyframes vhpModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#vhp-header-root .vhp-lang-modal-dialog {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 440px !important;
    max-height: 85vh !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: vhpModalSlideUp 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
}

@keyframes vhpModalSlideUp {
    from { transform: translateY(20px) scale(0.96); }
    to { transform: translateY(0) scale(1); }
}

#vhp-header-root .vhp-lang-modal-header {
    background: linear-gradient(135deg, #850000 0%, #aa1515 100%) !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#vhp-header-root .vhp-lang-modal-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    color: #ffffff !important;
}

#vhp-header-root .vhp-lang-modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    transition: background 0.2s !important;
}

#vhp-header-root .vhp-lang-modal-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

#vhp-header-root .vhp-lang-modal-search {
    padding: 12px 16px !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    position: relative !important;
}

#vhp-header-root .vhp-lang-modal-search i {
    position: absolute !important;
    left: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #888 !important;
    font-size: 14px !important;
}

#vhp-header-root .vhp-lang-modal-search input {
    width: 100% !important;
    padding: 9px 12px 9px 36px !important;
    border: 1.5px solid #ced4da !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
}

#vhp-header-root .vhp-lang-modal-search input:focus {
    border-color: #aa1515 !important;
}

#vhp-header-root .vhp-lang-modal-body {
    padding: 10px 14px 16px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    max-height: 55vh !important;
}

#vhp-header-root .vhp-lang-grid {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

@media screen and (max-width: 480px) {
    #vhp-header-root .vhp-lang-grid {
        grid-template-columns: 1fr !important;
    }
}

#vhp-header-root .vhp-lang-card {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    background: #fdfdfd !important;
    border: 1.5px solid #e9ecef !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    user-select: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(170, 21, 21, 0.2) !important;
}

#vhp-header-root .vhp-lang-card:hover,
#vhp-header-root .vhp-lang-card:active {
    background: #fff5f5 !important;
    border-color: #aa1515 !important;
    transform: translateY(-1px) !important;
}

#vhp-header-root .vhp-lang-card.active {
    background: #ffebeb !important;
    border-color: #850000 !important;
    box-shadow: 0 2px 6px rgba(133, 0, 0, 0.15) !important;
}

#vhp-header-root .vhp-lang-flag {
    font-size: 22px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

#vhp-header-root .vhp-lang-info {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
}

#vhp-header-root .vhp-lang-info strong {
    font-size: 14px !important;
    color: #212529 !important;
    font-weight: 700 !important;
}

#vhp-header-root .vhp-lang-info span {
    font-size: 11.5px !important;
    color: #6c757d !important;
}
