/* ===============================================
WORDPRESS MOBILE & TABLET HEADER STYLES
File: mobile-header.css
Scope: Mobile (< 480px) and Tablet (480px - 991px)
=============================================== */

/* ------------------------------------------------
   1. HIDE MOBILE ELEMENTS ON DESKTOP
   (Ensures these never appear on screens wider than 991px)
------------------------------------------------ */
@media (min-width: 992px) {
    .mobile-header,
    .mobile-top-bar,
    .jx-monex-menubar-mobile,
    .mobile-navigation,
    .mobile-menu-backdrop,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ------------------------------------------------
   2. MAIN MOBILE & TABLET STYLES (Max-Width: 991px)
------------------------------------------------ */
@media (max-width: 991px) {
  .jx-monex-footer ul.stripMenu li::after{
      top:0 !important;
  }
  .jx-monex-footer ul.stripMenu li{
      line-height: 40px !important;
      border-bottom: 0 !important;
  }
  

    /* --- Base Containers --- */
    .mobile-header {
        background-color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 100;
        position: absolute;
        top: 0;
        width: 100%;
    }

    /* Mobile Top Bar */
    .mobile-top-bar {
        background-color: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 0;
    }

    .mobile-contact-quick {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .quick-call,
    .quick-email {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 15px;
        background-color: white;
        color: #2c91b8;
        text-decoration: none;
        font-size: 13px;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .quick-call:hover,
    .quick-email:hover {
        background-color: #2c91b8;
        color: white;
    }

    /* Mobile Navbar */
    .jx-monex-menubar-mobile {
        background-color: white;
        border-bottom: 3px solid #2c91b8;
        position: sticky;
        top: 0;
        z-index: 99;
    }

    .mobile-navbar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
    }

    .mobile-navbar-brand img {
        max-width: 120px;
        height: auto;
        display: block;
    }

    /* Hamburger Menu Button */
    .mobile-menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .hamburger-box {
        position: relative;
        width: 30px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .hamburger-line {
        width: 100%;
        height: 2.5px;
        background-color: #2c91b8;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile Menu Backdrop */
    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 99;
    }

    .mobile-menu-backdrop.active {
        display: block;
    }

    /* Mobile Navigation Menu */
    .mobile-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: white;
        z-index: 100;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-navigation.active {
        right: 0;
    }

    /* Mobile Menu Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 28px;
        color: #333;
        cursor: pointer;
        z-index: 1002;
    }

    /* Mobile Main Menu */
    .mobile-main-menu {
        list-style: none;
        padding: 15px 0;
        margin: 0;
    }

    .mobile-menu-item {
        position: relative;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 15px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .mobile-menu-link i {
        margin-right: 12px;
        color: #2c91b8;
        min-width: 20px;
        text-align: center;
    }

    .mobile-menu-item:hover > .mobile-menu-link,
    .mobile-menu-item.active > .mobile-menu-link {
        background-color: #f0f8fc;
        color: #2c91b8;
        border-left: 4px solid #2c91b8;
        padding-left: 11px;
    }

    /* Submenu Toggle Button */
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background-color: #f5f5f5;
        border-radius: 3px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        padding: 0;
    }

    .submenu-toggle i {
        margin: 0;
        font-size: 12px;
        color: #999;
    }

    .submenu-toggle.active {
        background-color: #2c91b8;
        color: white;
        transform: rotate(180deg);
    }

    .submenu-toggle.active i {
        color: white;
    }

    /* Mobile Submenu */
    .mobile-submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #fafafa;
        border-top: 1px solid #e8e8e8;
        border-left: 4px solid #80a515;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-submenu.active {
        max-height: 500px;
        display: block !important;
    }

    .mobile-submenu li {
        border-bottom: 1px solid #e8e8e8;
    }

    .mobile-submenu a {
        display: block;
        padding: 12px 15px 12px 40px;
        color: #555;
        text-decoration: none;
        font-size: 13px;
        transition: all 0.3s ease;
    }

    .mobile-submenu a:hover {
        background-color: #f0f8fc;
        color: #2c91b8;
        padding-left: 45px;
    }

    /* Mobile Menu Footer */
    .mobile-menu-footer {
        padding: 30px 15px;
        border-top: 1px solid #e0e0e0;
        background-color: #fafafa;
    }

    .mobile-contact-info,
    .mobile-language-selector,
    .mobile-social-links {
        margin-bottom: 20px;
    }

    .mobile-contact-info h4,
    .mobile-language-selector h4,
    .mobile-social-links h4 {
        font-size: 13px;
        font-weight: 600;
        color: #2c91b8;
        margin: 0 0 10px 0;
        text-transform: uppercase;
    }

    .mobile-contact-info p {
        margin: 8px 0;
        font-size: 13px;
        color: #555;
    }

    .mobile-contact-info i,
    .mobile-language-selector i {
        color: #2c91b8;
        margin-right: 8px;
        min-width: 16px;
    }

    .mobile-contact-info a,
    .mobile-language-selector a {
        color: #2c91b8;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .mobile-contact-info a:hover,
    .mobile-language-selector a:hover {
        color: #093c5a;
        text-decoration: underline;
    }

    /* Language Options */
    .language-options {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 10px;
    }

    .language-options li {
        flex: 1;
    }

    .language-options a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 3px;
        color: #333;
        text-decoration: none;
        font-size: 12px;
        transition: all 0.3s ease;
        justify-content: center;
    }

    .language-options a.active,
    .language-options a:hover {
        background-color: #2c91b8;
        color: white;
        border-color: #2c91b8;
    }

    .language-options img {
        width: 16px;
        height: 11px;
    }

    /* Social Links */
    .mobile-social-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 50%;
        color: #2c91b8;
        font-size: 16px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-link:hover {
        background-color: #2c91b8;
        color: white;
        border-color: #2c91b8;
        transform: scale(1.1);
    }
    
    /* Scrollbar Styling */
    .mobile-navigation::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-navigation::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .mobile-navigation::-webkit-scrollbar-thumb {
        background: #2c91b8;
        border-radius: 3px;
    }

    .mobile-navigation::-webkit-scrollbar-thumb:hover {
        background: #093c5a;
    }

    /* Accessibility */
    .mobile-menu-toggle:focus,
    .mobile-menu-toggle:active,
    .submenu-toggle:focus,
    .submenu-toggle:active {
        outline: 2px solid #2c91b8;
        outline-offset: 2px;
    }

    .mobile-menu-link:focus,
    .mobile-submenu a:focus {
        outline: 2px solid #2c91b8;
        outline-offset: -2px;
    }
    
    /* Container (Restricted to Mobile/Tablet Max Width) */
    .container {
        width: 100%;
        padding: 0 15px;
        margin: 0 auto;
    }
}

/* ------------------------------------------------
   3. TABLET SPECIFIC ADJUSTMENTS (768px - 991px)
------------------------------------------------ */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 750px;
    }

    .mobile-navbar-brand img {
        max-width: 140px;
    }

    .mobile-menu-link {
        padding: 15px 15px;
        font-size: 15px;
    }

    .mobile-navigation {
        width: 80%;
        max-width: 400px;
    }
}

/* ------------------------------------------------
   4. SMALL MOBILE ADJUSTMENTS (max-width: 480px)
------------------------------------------------ */
@media (max-width: 480px) {
    .mobile-navigation {
        width: 90%;
        max-width: 100%;
    }

    .mobile-navbar-brand img {
        max-width: 100px;
    }

    .mobile-menu-link {
        padding: 12px 12px;
        font-size: 13px;
    }

    .mobile-menu-link i {
        margin-right: 10px;
    }

    .mobile-submenu a {
        padding: 10px 12px 10px 35px;
        font-size: 12px;
    }

    .mobile-contact-info h4,
    .mobile-language-selector h4,
    .mobile-social-links h4 {
        font-size: 12px;
    }

    .mobile-contact-info p,
    .mobile-contact-info a {
        font-size: 12px;
    }

    .mobile-contact-quick {
        flex-wrap: wrap;
        gap: 5px;
    }

    .quick-call,
    .quick-email {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ------------------------------------------------
   5. PRINT STYLES (Always hide mobile nav in print)
------------------------------------------------ */
@media print {
    .jx-monex-header,
    .mobile-header,
    .mobile-top-bar,
    .jx-monex-menubar-mobile {
        display: none !important;
    }
}