/* ============================================= */
/* MOBILE MEGA MENU - SLIDE NAVIGATION STYLES  */
/* ============================================= */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.l-subheader.at_middle{
    border: 1px solid #D9E8FF;
}
.l-subheader.at_middle.sticky-mobile{
    position: fixed;
    top:0;
    z-index: 10000;
    width: 100vw;
}
/* ============================================= */
/* HAMBURGER MENU BUTTON                        */
/* ============================================= */

.mobile-menu-hamburger {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-hamburger img{
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ============================================= */
/* MOBILE MENU CONTAINER - 80% WIDTH           */
/* ============================================= */

.mobile-mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 400px;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Menu Open State */
.mobile-mega-menu.active {
    transform: translateX(0);
}

/* ============================================= */
/* MOBILE MENU HEADER (Logo + Sign In)         */
/* ============================================= */

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: #ffffff;
    position: sticky;
    top: 0;
}

.mobile-menu-logo img {
    height: 28px;
    width: auto;
}

a.blogSignIn {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #0066ff !important;
    text-decoration: none;
    border: 1px solid #0066ff;
    border-radius: 4px !important;
    transition: all 0.2s ease;
    background: #ffffff !important;
    padding: 8px 12px;
    width: auto;
}

a.blogSignIn:hover {
    background: #f0f7ff;
}

/* Backdrop - 20% clickable area */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

/* ============================================= */
/* MOBILE MENU LOGO                             */
/* ============================================= */

.mobile-menu-logo {
    background: #ffffff;
    position: sticky;
    top: 0;
}

.mobile-menu-logo img {
    height: 32px;
    width: auto;
}

/* ============================================= */
/* PANEL SYSTEM                                 */
/* ============================================= */

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease, opacity 0.25s ease;
    transform: translateX(100%);
    opacity: 0;
}

.mobile-menu-panel.active {
    transform: translateX(0);
    opacity: 1;
}

/* Smooth transition states for quick nav switching */
.mobile-menu-panel.transitioning-out {
    transform: translateX(-20px);
    opacity: 0;
}

.mobile-menu-panel.transitioning-in {
    transform: translateX(20px);
    opacity: 0;
}

/* Main Panel */
.mobile-menu-main-panel {
    transform: translateX(0);
}

.mobile-menu-main-panel.active {
    transform: translateX(0);
}

/* Detail Panel */
.mobile-menu-detail-panel {
    transform: translateX(100%);
}

.mobile-menu-detail-panel.active {
    transform: translateX(0);
}

/* ============================================= */
/* PANEL HEADER (Back Button & Title)          */
/* ============================================= */

.mobile-panel-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 12px;
}

.mobile-back-button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1c1d1f;
    transition: background-color 0.2s ease;
    padding: 0;
}

.mobile-back-button:hover {
    background: #f0f0f0;
}

.mobile-panel-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1c1d1f;
    margin: 0;
    padding: 0;
    line-height: 24px;
}

/* ============================================= */
/* PANEL BODY WITH LEFT NAVIGATION             */
/* ============================================= */

.mobile-panel-body {
    display: flex;
    height: calc(100vh - 60px); /* Full height minus header */
    overflow: hidden;
}

/* ============================================= */
/* QUICK NAVIGATION ICONS (LEFT SIDE)          */
/* ============================================= */

.mobile-quick-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 60px;
    flex-shrink: 0;
}

.mobile-quick-nav::-webkit-scrollbar {
    display: none;
}

.mobile-quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0 8px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-quick-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #0066cc;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.mobile-quick-nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.mobile-quick-nav-item.active {
    background: #ffffff;
}

.mobile-quick-nav-item.active::before {
    height: 56px;
}

.mobile-quick-nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-quick-nav-item:active .mobile-quick-nav-icon {
    transform: scale(0.95);
}

.mobile-quick-nav-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-quick-nav-item.active .mobile-quick-nav-icon img {
    transform: scale(1.1);
}

/* ============================================= */
/* MAIN MENU LIST                               */
/* ============================================= */

.mobile-menu-list {
    list-style: none;
    padding: 0 24px;
    margin: 0;
    background: #ffffff;
}

/* Menu Item */
.mobile-menu-item {
    border-bottom: 1px solid #E4E4E3;
    cursor: pointer;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* Menu Link */
.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #1c1d1f;
    transition: background-color 0.2s ease;
    gap: 5px;
    background: #ffffff;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background-color: #f8f9fa;
}

/* Icon Container */
.mobile-menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Menu Text */
.mobile-menu-text {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #0E0E0F;
}

/* Arrow Icon */
.mobile-menu-arrow {
    width: 10px;
    height: 14px;
    flex-shrink: 0;
    color: #1C1D1F;
    transition: transform 0.2s ease;
}

.mobile-menu-item:hover .mobile-menu-arrow {
    color: #0066cc;
    transform: translateX(2px);
}

/* ============================================= */
/* DETAIL PANEL CONTENT                         */
/* ============================================= */

.mobile-panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}

/* Full-width panel list (for single-category menus without left nav) */
.mobile-panel-list.full-width {
    width: 100%;
    padding: 0 20px;
}

/* Quick Links (non-expandable items) */
.mobile-quick-link .mobile-panel-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    text-decoration: none;
    color: #555;
    transition: background-color 0.2s ease;
}

.mobile-quick-link .mobile-panel-link:hover {
    background-color: #f8f9fa;
}

.mobile-panel-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-panel-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.mobile-panel-text {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #1c1d1f;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Expandable Items - Smooth transitions */
.mobile-panel-expandable {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.3s ease;
}

.mobile-panel-expandable:active {
    background-color: #f8f9fa;
    transform: scale(0.98);
}


.mobile-expand-icon {
    width: 15px;
    height: 15px;
    color: #0066FF;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.3s ease;
}

.mobile-expandable-item.expanded .mobile-expand-icon {
    clip-path: inset(45% 0 45% 0);
}

/* Panel Links (expandable content) - Smooth expand/collapse with transition */
.mobile-panel-links {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 0;
}

.mobile-expandable-item.expanded .mobile-panel-links {
    max-height: 2000px;
    opacity: 1;
}

.mobile-panel-links li {
    background: #ffffff;
    margin : 0;
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-expandable-item.expanded .mobile-panel-links li {
    transform: translateX(0);
    opacity: 1;
}

/* .mobile-panel-links li:first-child {
    border-top: none;
} */
.mobile-first-column .mobile-panel-links a{
    padding: 10px 16px 10px 20px !important;
}

.mobile-panel-links a {
    display: block;
    padding: 10px 16px 10px 44px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1C1D1F !important;
    text-decoration: none;
    transition: all 0.2s ease;
}


.mobile-panel-list > li {
    border-bottom: 1px solid #D9E8FF;
}

.mobile-panel-list > li:only-child {
    border-bottom: none;
}

/* First column links - no left padding since there's no icon */
.mobile-first-column .mobile-panel-links {
    background: transparent;
    max-height: 2000px !important;
    opacity: 1 !important;
}

.mobile-first-column .mobile-panel-links li {
    transform: translateX(0) !important;
    opacity: 1 !important;
    transition: none;
}



/* ============================================= */
/* CONTACT NAVIGATION                           */
/* ============================================= */

.mobile-contact-nav {
    padding: 40px 24px 24px 24px;
}
.mobile-contact-menu {
    display: flex;
    gap: 10px;
}
.mobile-contact-nav h4{
    font-family: Poppins;
    font-weight: 500;
    font-size: 12px;
    color: #1C1D1F;
}
.mobile-contact-menu a{
    font-family: Poppins, sans-serif !important;
    font-weight: 500;
    line-height: 18px;
    font-size: 10px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    color : #1C1D1F !important;
    gap: 10px;
    padding: 8px 12px;
    background: #F2F7FF;
    border: 1px solid #F2F7FF;
    border-radius: 8px;
}
.mobile-contact-menu a img, .mobile-contact-menu a p{
    align-self: flex-start;
}
.mobile-contact-menu a img{
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mobile-download-app-nav {
    padding: 24px;
}
.mobile-download-app-nav h4{
    font-family: Poppins;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: #1C1D1F;
}
.mobile-download-app-links a img{ 
    max-height: 50px;
}
/* ============================================= */
/* RESPONSIVE ADJUSTMENTS                       */
/* ============================================= */

@media (max-width: 480px) {
    .mobile-mega-menu {
        width: 85%;
    }
    
    .mobile-menu-link,
    .mobile-panel-link {
        padding: 16px 0;
    }
    .mobile-panel-expandable{
        padding: 8px 24px;
    }
}

/* ============================================= */
/* SMOOTH SCROLLING                             */
/* ============================================= */

.mobile-menu-panel {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.mobile-panel-links li a{
    font-size: 12px;
    flex-direction: unset;
}

.mobile-panel-links li a:hover,
.mobile-panel-links li a:active{
    color: #0066FF !important;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #0066FF;
} 
/* Reduced motion - Respect user's accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    .mobile-mega-menu,
    .mobile-menu-panel,
    .mobile-menu-backdrop,
    .mobile-panel-expandable,
    .mobile-expand-icon,
    .mobile-panel-links,
    .mobile-panel-links li,
    .mobile-panel-text {
        transition: none !important;
    }
    
    .mobile-expandable-item.expanded .mobile-panel-links li {
        transition-delay: 0s !important;
        opacity: 1;
        transform: translateX(0);
    }
}


.mobile-top-right-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mobile-top-right-header a{
    font-size: 10px !important;
    height: 26px !important;
    margin:0;
}
.w-html{
    margin:0 !important;
}
.l-subheader-h {
    gap: 10px;
}
.l-subheader.at_top,
.l-subheader.at_middle,
.l-subheader.at_bottom{
    box-shadow: none !important;
}