.prottyashi-lang-switcher-wrapper {
    position: relative;
    display: inline-block;
    z-index: 9999;
}
.lang-switcher-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: transparent;
    transition: all 0.3s ease;
    color: #007B09;
}
.active-lang-shortform {
    margin-left: 6px;
    font-size: 15px;
    font-weight: 600;
}
.lang-switcher-trigger:hover {
    background-color: #007B09;
    color: #ffffff;
}
.lang-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.prottyashi-lang-switcher-wrapper.open .lang-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-item {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    text-decoration: none !important;
    color: #333333;
    transition: background-color 0.2s;
    font-size: 14px;
    font-family: inherit;
    border-bottom: 1px solid #f9f9f9;
    line-height: 1;
}
.lang-item:last-child {
    border-bottom: none;
}
.lang-item:hover, .lang-item.active {
    background-color: #f4fbf4; /* light green tint */
    color: #007B09;
}
.lang-flag {
    width: 22px;
    height: 15px;
    margin-right: 8px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
.lang-name {
    font-weight: 500;
}

/* Hide Google Translate Default Elements */
body {
    top: 0 !important;
}
.skiptranslate {
    display: none !important;
}
#google_translate_element {
    display: none !important;
}

/* Custom Highlight for Media Center via Menu Item ID */
@keyframes button-wave {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 9, 0.4), 0 0 0 0 rgba(0, 123, 9, 0.2); }
    40% { box-shadow: 0 0 0 6px rgba(0, 123, 9, 0), 0 0 0 12px rgba(0, 123, 9, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 9, 0), 0 0 0 0 rgba(0, 123, 9, 0); }
}

.highlighted-media-center,
.menu-item-6897 > a,
#mega-menu-item-6897 > a.mega-menu-link {
    background-color: #e8f5e9 !important;
    color: #007B09 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    animation: button-wave 2.5s infinite ease-out !important;
}

/* Fix FontAwesome Icon Rendering or Hide it */
.highlighted-media-center i,
.menu-item-6897 > a i,
#mega-menu-item-6897 > a.mega-menu-link i,
.login-register-btn i,
.highlighted-media-center svg:not(.media-center-announcement-icon),
.menu-item-6897 > a svg:not(.media-center-announcement-icon),
#mega-menu-item-6897 > a.mega-menu-link svg:not(.media-center-announcement-icon),
.login-register-btn svg:not(.login-register-icon) {
    display: none !important;
}

@keyframes announce-shake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-15deg) scale(1.15); }
    20% { transform: rotate(10deg) scale(1.15); }
    30% { transform: rotate(-15deg) scale(1.15); }
    40% { transform: rotate(10deg) scale(1.15); }
    50% { transform: rotate(0deg) scale(1); }
}

@keyframes sound-wave-1 {
    0%, 50%, 100% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
}

@keyframes sound-wave-2 {
    0%, 50%, 100% { opacity: 0; }
    15% { opacity: 1; }
    35% { opacity: 1; }
}

.media-center-announcement-icon {
    display: inline-block !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
    animation: announce-shake 2.5s infinite ease-in-out;
    transform-origin: 30% 60%;
}

.sound-wave-1 {
    animation: sound-wave-1 2.5s infinite ease-in-out;
}

.sound-wave-2 {
    animation: sound-wave-2 2.5s infinite ease-in-out;
}

.highlighted-media-center:hover,
.menu-item-6897 > a:hover,
#mega-menu-item-6897 > a.mega-menu-link:hover {
    background-color: #007B09 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 123, 9, 0.3) !important;
    animation: none !important;
}

.highlighted-media-center:hover .media-center-announcement-icon,
.menu-item-6897 > a:hover .media-center-announcement-icon,
#mega-menu-item-6897 > a.mega-menu-link:hover .media-center-announcement-icon {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Login/Register Globe-style Hover */
.login-register-btn,
.injected-dashboard-btn {
    padding: 6px 12px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}
.login-register-btn:hover,
.injected-dashboard-btn:hover,
.login-register-btn:hover span,
.injected-dashboard-btn:hover span,
.login-register-btn:hover svg,
.injected-dashboard-btn:hover svg {
    background-color: #007B09 !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Fix for Dashboard Button triggering Main Menu Dropdown */
.injected-dashboard-btn-wrapper,
.injected-dashboard-btn {
    position: relative !important;
    z-index: 999999 !important;
}

/* Ensure any top bar container stays above the main menu */
.ast-above-header-wrap,
.elementor-section.elementor-top-section:first-of-type {
    position: relative;
    z-index: 99999 !important;
}

/* Mobile Responsive for Dashboard & Media Center */
@media (max-width: 1024px) {
    .main-header-menu,
    ul:has(> li.injected-dashboard-btn-wrapper) {
        display: grid !important;
        grid-template-columns: auto auto 1fr;
        align-items: center;
    }
    .main-header-menu > li,
    ul:has(> li.injected-dashboard-btn-wrapper) > li {
        grid-column: 1 / -1; 
    }
    .main-header-menu > li.injected-dashboard-btn-wrapper,
    ul:has(> li.injected-dashboard-btn-wrapper) > li.injected-dashboard-btn-wrapper {
        grid-column: 1 / 2 !important;
        border-bottom: none !important;
        padding-top: 15px !important; /* Top blank space */
        padding-bottom: 25px !important; /* Bottom blank space */
        margin: 0 !important;
        padding-left: 20px !important;
        width: auto !important;
    }
    .main-header-menu > li.media-center-parent-li,
    ul:has(> li.injected-dashboard-btn-wrapper) > li.media-center-parent-li {
        grid-column: 2 / 3 !important;
        border-bottom: none !important;
        padding-top: 15px !important; /* Top blank space */
        padding-bottom: 25px !important; /* Bottom blank space */
        margin: 0 !important;
        padding-left: 5px !important; /* Reduced left space */
        width: auto !important;
    }
    li.injected-dashboard-btn-wrapper > a,
    li.media-center-parent-li > a {
        border-bottom: none !important;
        padding: 6px 10px !important; /* Smaller padding */
        font-size: 11px !important; /* Smaller font */
        white-space: nowrap !important; /* Prevent text breaking */
    }
}
