/**
 * WordPress Mega Menu Styles
 * * Matches the original design with:
 * - Fixed height container (500px)
 * - Sidebar tabs with active state
 * - Content area with scrolling
 * - Multiple layout types
 * - Color theming per tab
 * - Mobile accordion navigation (works with existing mobile menu)
 * - Standard dropdown support (for login buttons, etc.)
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --mega-menu-brand-blue: #0085ca;
    --mega-menu-brand-green: #00b140;
    --mega-menu-text-dark: #1e293b;
    --mega-menu-text-medium: #64748b;
    --mega-menu-text-light: #94a3b8;
    --mega-menu-bg-white: #ffffff;
    --mega-menu-bg-light: #f8fafc;
    --mega-menu-bg-slate: #f1f5f9;
    --mega-menu-border: #e2e8f0;
    --mega-menu-border-light: #f1f5f9;
    --mega-menu-shadow: rgba(0, 0, 0, 0.1);
    --mega-menu-transition: 0.3s ease;
}

/* Theme Override: Reset inherited menu styles */
.js-mega-menu li,
.js-mega-menu li a,
.js-mega-menu ul,
.js-mega-menu ul li,
.js-mega-menu ul li a {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: 1.1;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    white-space: normal;
    text-align: left;
}

/* Box sizing for mega menu elements */
.js-mega-menu,
.js-mega-menu *,
.js-mega-menu *::before,
.js-mega-menu *::after,
.mobile-mega-panel,
.mobile-mega-panel *,
.mobile-mega-panel *::before,
.mobile-mega-panel *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   STANDARD DROPDOWN STYLES (Login, etc.)
   Apply ONLY to Desktop to prevent Mobile Menu Conflicts
   ========================================================================== */

@media (min-width: 1024px) {
    .menu-item-has-children:not(.mega-menu-trigger) {
        position: relative;
    }

    .menu-item-has-children:not(.mega-menu-trigger) > .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: var(--mega-menu-bg-white);
        border: 1px solid var(--mega-menu-border);
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1000;
        display: none;
    }

    /* Show dropdown on hover (desktop) or when open class is added */
    .menu-item-has-children:not(.mega-menu-trigger):hover > .sub-menu,
    .menu-item-has-children:not(.mega-menu-trigger).dropdown-open > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
    }

    .menu-item-has-children:not(.mega-menu-trigger) > .sub-menu li {
        display: block !important;
    }

    .menu-item-has-children:not(.mega-menu-trigger) > .sub-menu li a {
        display: block !important;
        padding: 0.625rem 1rem;
        color: var(--mega-menu-text-medium);
        font-size: 0.875rem;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
        white-space: nowrap;
    }

    .menu-item-has-children:not(.mega-menu-trigger) > .sub-menu li a:hover {
        background-color: var(--mega-menu-bg-light);
        color: var(--mega-menu-brand-blue);
    }

    /* Right-aligned dropdown (useful for login buttons on right side of header) */
    .menu-item-has-children:not(.mega-menu-trigger).dropdown-right > .sub-menu {
        left: auto;
        right: 0;
    }

    /* Auto-detect dropdowns near right edge - JS adds this class */
    .menu-item-has-children:not(.mega-menu-trigger).dropdown-flip-right > .sub-menu {
        left: auto;
        right: 0;
    }
}

/* ==========================================================================
   Critical: Parent positioning
   ========================================================================== */

.menu-item.mega-menu-trigger {
    position: static !important;
}

/* Disabled links - cursor and styling */
.mega-menu-link-disabled > a {
    cursor: default;
}

.menu-item.mega-menu-trigger > .sub-menu {
    display: none !important;
}

/* Ensure nav allows full-width dropdown */
nav,
.main-navigation,
#site-navigation,
.primary-navigation,
header nav {
    position: relative;
}

/* ==========================================================================
   Mega Menu Container (Desktop)
   ========================================================================== */

.js-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--mega-menu-bg-white);
    border-bottom: 1px solid var(--mega-menu-border);
    box-shadow: 
        0 25px 50px -12px rgba(15, 23, 42, 0.1),
        0 12px 25px -8px rgba(15, 23, 42, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 
        opacity var(--mega-menu-transition),
        transform var(--mega-menu-transition),
        visibility var(--mega-menu-transition);
    z-index: 999;
    border-radius: 0 0 12px 12px;
    max-height: 80vh;
    overflow: hidden;
}

.menu-item.mega-menu-trigger:hover .js-mega-menu,
.menu-item.mega-menu-trigger:focus-within .js-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   Mega Menu Layout (Desktop)
   ========================================================================== */

.js-mega-menu-wrapper {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    display: flex;
    min-height: 550px;
    max-height: calc(80vh - 2rem);
    overflow: hidden;
}

@media (max-width: 1536px) {
    .js-mega-menu-wrapper {
        max-width: 100%;
    }
}

/* ==========================================================================
   Sidebar (Tab Navigation) - Desktop
   ========================================================================== */

.js-mega-sidebar {
    width: 260px;
    min-width: 180px;
    max-width: 280px;
    background: var(--mega-menu-bg-light);
    border-right: 1px solid var(--mega-menu-border-light);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.js-menu-tab {
    width: 100%;
    text-align: left;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mega-menu-text-medium);
    background: transparent;
    border: none;
    border-right: 3px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: 
        background-color var(--mega-menu-transition),
        color var(--mega-menu-transition),
        border-color var(--mega-menu-transition);
    font-family: inherit;
}

.js-menu-tab:hover {
    background-color: var(--mega-menu-bg-slate);
    color: var(--mega-menu-brand-blue);
}

.js-menu-tab.active {
    background-color: #eff6ff;
    color: var(--mega-menu-brand-blue);
    border-right-color: var(--mega-menu-brand-blue);
}

.js-menu-tab i {
    font-size: 1.25rem;
}

/* ==========================================================================
   Content Area - Desktop
   ========================================================================== */

.js-mega-content-area {
    flex: 1;
    min-width: 0;
    padding: 2.5rem 3rem;
    background: var(--mega-menu-bg-white);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar */
.js-mega-content-area::-webkit-scrollbar {
    width: 6px;
}

.js-mega-content-area::-webkit-scrollbar-track {
    background: var(--mega-menu-bg-slate);
    border-radius: 3px;
}

.js-mega-content-area::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.js-mega-content-area::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* ==========================================================================
   Content Panel
   ========================================================================== */

.js-menu-content {
    /* REMOVED CSS keyframe animation in favor of GSAP JS animation */
    /* animation: megaMenuFadeIn 0.3s ease-out forwards; */
    opacity: 0; /* Hidden by default, GSAP will fade it in */
}

.js-menu-content.hidden {
    display: none;
}

/* Content Header */
.js-mega-content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f8fafc;
}

.js-mega-content-header .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Standard 2-Column Grid Layout
   ========================================================================== */

.js-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    min-width: 0;
}

.js-mega-column {
    min-width: 0;
}

.js-mega-column h5 {
    font-size: 14px;
    font-weight: 900;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.js-mega-links {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.js-mega-links li a,
.mega-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mega-menu-text-medium);
    text-decoration: none;
    transition: color var(--mega-menu-transition);
    padding: 0;
    line-height: 1.1 !important;
}

.js-mega-links li a i,
.mega-link i {
    font-size: 0.875rem;
    opacity: 0.5;
    font-weight: 500;
    line-height: 1.1 !important;
    transition: opacity var(--mega-menu-transition);
}

.js-mega-links li a:hover i,
.mega-link:hover i {
    opacity: 1;
}

/* ==========================================================================
   Info Card (Did you know?)
   ========================================================================== */

.js-mega-info-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: fit-content;
}

.js-mega-info-card h6 {
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.js-mega-info-card p {
    font-size: 0.75rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.js-mega-info-card a {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
}

/* ==========================================================================
   API Card Layout (3-column grid with promo)
   ========================================================================== */

.js-mega-api-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.25rem;
    align-content: start;
}

/* Promo Card */
.js-mega-promo-card {
    background: #294fe2;
    border-radius: 0.75rem;
    padding: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
    min-height: 140px;
}

.js-mega-promo-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 192px;
    height: 192px;
    background: var(--mega-menu-brand-blue);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    transition: opacity var(--mega-menu-transition);
}

.js-mega-promo-card:hover::before {
    opacity: 0.3;
}

.js-mega-promo-card .promo-content,
.js-mega-promo-card .promo-cta {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding: .5rem 0;
}

.js-mega-promo-card .promo-content .promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: #10ec9c;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #000000;
    margin-bottom: .5rem;
}

.js-mega-promo-card .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mega-menu-brand-green);
    animation: megaMenuPulse 2s infinite;
}

.js-mega-promo-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
    line-height: normal;
}

.js-mega-promo-card p {
    font-size: 0.75rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

.js-mega-promo-card .cta {
    display: inline-flex;
    align-items: center;
    justify-content: left !important;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    transition: color var(--mega-menu-transition);
    padding: 0;
}

.js-mega-api-grid .js-mega-promo-card .cta {
    align-items: center;
    justify-content: left;
    padding: 0;
}

.js-mega-api-grid .js-mega-promo-card .promo-cta:hover {
    color: #10ec9c;
}

.js-mega-promo-card .cta:hover {
    color: white;
}

/* API Category Columns */
.js-mega-api-column {
    min-width: 0;
}

.js-mega-api-column h5 {
    font-size: 14px;
    font-weight: 900;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--mega-menu-border-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.js-mega-api-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.js-mega-api-links li a {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.125rem 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--mega-menu-text-medium);
    text-decoration: none;
    transition: color var(--mega-menu-transition);
    line-height: 1.1;
}

.js-mega-api-links li a span {
    word-break: break-word;
}

.js-mega-api-links li a:hover {
    color: var(--mega-menu-brand-blue);
}

.js-mega-api-links li a i {
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
    transition: color var(--mega-menu-transition);
    line-height: 1.1 !important;
}

.js-mega-api-links li a:hover i {
    color: var(--mega-menu-brand-blue);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes megaMenuPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==========================================================================
   MOBILE STYLES
   ========================================================================== */

/* Mobile toggle button (appears next to mega menu trigger link) */
.mega-menu-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
}

.mega-menu-mobile-toggle i {
    font-size: 1.25rem;
    color: var(--mega-menu-text-medium);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-trigger.mobile-mega-open > .mega-menu-mobile-toggle i {
    transform: rotate(180deg);
}

/* Mobile Mega Panel (accordion container) */
.mobile-mega-panel {
    display: none;
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT
   ========================================================================== */

@media (max-width: 1023px) {
    /* Hide desktop mega menu */
    .js-mega-menu {
        display: none !important;
    }
    
    /* Hide theme's default caret for mega-menu-trigger items on mobile */
    .mobile-menu li.mega-menu-trigger.menu-item-has-children > a:after,
    .mobile-menu .mega-menu-trigger.menu-item-has-children > a:after,
    li.mega-menu-trigger.menu-item-has-children > a:after,
    .mega-menu-trigger.menu-item-has-children > a:after,
    .mega-menu-trigger > a:after {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Show mobile toggle button */
    .mega-menu-mobile-toggle {
        display: flex;
    }
    
    /* Make mega menu trigger a flex container for link + toggle */
    .menu-item.mega-menu-trigger {
        position: relative !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }
    
    .menu-item.mega-menu-trigger > a {
        flex: 1 !important;
    }
    
    /* Hide the original sub-menu on mobile for mega-menu-triggers */
    .menu-item.mega-menu-trigger > .sub-menu {
        display: none !important;
    }
    
    /* Show mobile mega panel when open */
    .mobile-mega-panel {
        display: none; /* Changed from block to none for GSAP handling */
        width: 100%;
        background: var(--mega-menu-bg-white);
        border-top: 1px solid var(--mega-menu-border-light);
        opacity: 0;
        overflow: hidden;
        /* Removed transitions/max-height - GSAP handles this now */
    }
    
    /* "View all Solutions" link at top of panel */
    .mobile-mega-view-all-main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.875rem !important;
        font-weight: 700 !important;
        color: var(--mega-menu-brand-blue) !important;
        text-decoration: none !important;
        background: var(--mega-menu-bg-slate);
        border-bottom: 1px solid var(--mega-menu-border);
    }
    
    .mobile-mega-view-all-main i {
        font-size: 0.75rem;
    }
    
    /* Mobile Mega Section */
    .mobile-mega-section {
        border-bottom: 1px solid var(--mega-menu-border-light);
    }
    
    .mobile-mega-section:last-child {
        border-bottom: none;
    }
    
    /* Section header button (expandable) */
    .mobile-mega-section-header {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.75rem 1rem;
        background: var(--mega-menu-bg-white);
        border: none;
        cursor: pointer;
        gap: 0.75rem;
        font-family: inherit;
        text-align: left;
    }
    
    /* Section as a simple link (no children) */
    .mobile-mega-section-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Force left alignment to override theme */
        width: 100%;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        text-decoration: none;
        background: var(--mega-menu-bg-white);
    }
    
    /* Icon wrapper */
    .mobile-mega-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .mobile-mega-icon i {
        font-size: 1rem;
    }
    
    /* Section title */
    .mobile-mega-title {
        flex: 1;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--mega-menu-text-dark);
    }
    
    /* Caret icon */
    .mobile-mega-caret {
        color: var(--mega-menu-text-light);
        font-size: 0.875rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: auto;
    }
    
    .mobile-mega-section.expanded .mobile-mega-caret {
        transform: rotate(180deg);
    }
    
    /* Section content (accordion body) */
    .mobile-mega-section-content {
        display: none; /* Changed from block to none for GSAP handling */
        opacity: 0;
        overflow: hidden;
        /* Removed transitions/max-height - GSAP handles this now */
        background: var(--mega-menu-bg-light);
    }
    
    /* "View all" link */
    .mobile-mega-main-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        color: var(--mega-menu-brand-blue) !important;
        text-decoration: none !important;
        background: var(--mega-menu-bg-slate);
        border-bottom: 1px solid var(--mega-menu-border-light);
    }
    
    .mobile-mega-main-link i {
        font-size: 0.75rem;
    }
    
    /* Individual menu links */
    .mobile-mega-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Force left alignment to override theme */
        gap: 0.5rem !important;
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        color: var(--mega-menu-text-medium) !important;
        text-decoration: none !important;
        border-bottom: 1px solid var(--mega-menu-border-light);
        background: var(--mega-menu-bg-white);
    }
    
    .mobile-mega-link:last-child {
        border-bottom: none;
    }
    
    .mobile-mega-link i {
        font-size: 0.625rem;
        color: var(--mega-menu-text-light);
        flex-shrink: 0;
    }
    
    /* Nested links (level 4) */
    .mobile-mega-link-nested {
        padding-left: 1.5rem !important;
        background: var(--mega-menu-bg-light);
    }
    
    /* Subgroup (category headers like "INDIVIDUAL CHECKS") */
    .mobile-mega-subgroup {
        border-bottom: 1px solid var(--mega-menu-border-light);
    }
    
    .mobile-mega-subgroup:last-child {
        border-bottom: none;
    }
    
    .mobile-mega-subgroup-title {
        padding: 0.625rem 1rem 0.375rem;
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--mega-menu-text-light);
        background: var(--mega-menu-bg-slate);
    }
    
    .mobile-mega-subgroup .mobile-mega-link {
        background: var(--mega-menu-bg-white);
    }
    
    .mobile-mega-subgroup .mobile-mega-link-nested {
        padding-left: 1.5rem !important;
    }
    
    /* Nested Sub-Accordion (for categories like Individual Checks, Business & KYB) */
    .mobile-mega-subaccordion {
        border-bottom: 1px solid var(--mega-menu-border-light);
    }
    
    .mobile-mega-subaccordion:last-child {
        border-bottom: none;
    }
    
    .mobile-mega-subaccordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 1rem;
        background: var(--mega-menu-bg-slate);
        border: none;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
    }
    
    .mobile-mega-subaccordion-title {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--mega-menu-text-dark);
    }
    
    .mobile-mega-subcaret {
        font-size: 0.75rem;
        color: var(--mega-menu-text-light);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-mega-subaccordion.expanded .mobile-mega-subcaret {
        transform: rotate(180deg);
    }
    
    .mobile-mega-subaccordion-content {
        display: none; /* Changed from block to none for GSAP handling */
        opacity: 0;
        overflow: hidden;
        /* Removed transitions/max-height - GSAP handles this now */
        background: var(--mega-menu-bg-white);
    }
    
    .mobile-mega-subaccordion-content .mobile-mega-link {
        padding-left: 1.5rem !important;
    }
    
    /* "View all" link style within sub-accordions */
    .mobile-mega-link-viewall {
        color: var(--mega-menu-brand-blue) !important;
        font-weight: 600 !important;
        background: var(--mega-menu-bg-light) !important;
    }
    
    .mobile-mega-link-viewall i {
        color: var(--mega-menu-brand-blue) !important;
    }
}

/* ==========================================================================
   Desktop Responsive (Smaller Screens)
   ========================================================================== */

/* Smaller laptops */
@media (min-width: 1024px) and (max-width: 1279px) {
    .js-mega-menu-wrapper {
        min-height: 480px;
    }
    
    .js-mega-sidebar {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
    }
    
    .js-menu-tab {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .js-menu-tab i {
        font-size: 1rem;
    }
    
    .js-mega-content-area {
        padding: 1.25rem 1.5rem;
    }
    
    .js-mega-api-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .js-mega-api-column h5 {
        font-size: 0.5625rem;
        margin-bottom: 0.375rem;
    }
    
    .js-mega-api-links {
        gap: 0.25rem;
    }
    
    .js-mega-api-links li a {
        font-size: 0.625rem;
    }
    
    .js-mega-promo-card {
        min-height: 100px;
        padding: 0.75rem;
    }
    
    .js-mega-promo-card h3 {
        font-size: 0.875rem;
    }
    
    .js-mega-promo-card p {
        font-size: 0.5625rem;
    }
    
    .js-mega-promo-card .promo-content .promo-badge {
        font-size: 0.5rem;
        padding: 0.125rem 0.375rem;
        margin-bottom: .5rem;
    }
    
    .js-mega-promo-card .cta {
        font-size: 0.625rem;
    }
    
    .js-mega-content-header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
    
    .js-mega-content-header h3 {
        font-size: 1rem !important;
    }
    
    .js-mega-content-header p {
        font-size: 0.75rem !important;
    }
    
    .js-mega-content-header .icon-wrapper {
        padding: 0.5rem !important;
    }
    
    .js-mega-content-header .icon-wrapper i {
        font-size: 1.25rem !important;
    }
    
    .js-mega-grid {
        gap: 1.5rem 2rem;
    }
    
    .js-mega-column h5 {
        font-size: 0.625rem;
        margin-bottom: 0.5rem;
    }
    
    .js-mega-links {
        gap: 0.5rem;
    }
    
    .js-mega-links li a {
        font-size: 0.75rem;
    }
    
    .js-mega-info-card {
        padding: 1rem;
    }
    
    .js-mega-info-card h6 {
        font-size: 0.75rem;
    }
    
    .js-mega-info-card p {
        font-size: 0.625rem;
    }
}

/* Medium laptops */
@media (min-width: 1280px) and (max-width: 1440px) {
    .js-mega-menu-wrapper {
        min-height: 500px;
    }
    
    .js-mega-sidebar {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
    
    .js-menu-tab {
        padding: 0.875rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .js-mega-content-area {
        padding: 1.5rem 2rem;
    }
    
    .js-mega-api-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .js-mega-api-column h5 {
        font-size: 0.625rem;
    }
    
    .js-mega-api-links li a {
        font-size: 0.6875rem;
    }
    
    .js-mega-promo-card {
        min-height: 120px;
        padding: 0.875rem;
        background-color: #294fe2;
    }
    
    .js-mega-promo-card h3 {
        font-size: 1rem;
    }
    
    .js-mega-content-header h3 {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .js-mega-menu,
    .mobile-mega-panel,
    .mega-menu-mobile-toggle {
        display: none !important;
    }
}