/* ============================================================
   EasyWebinar Custom Mega Menu  –  mega-menu.css
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.ew-mega-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin-left: -80px;
}

.ew-mega-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Trigger button (Products / Solutions / Resources) ─────── */
.ew-mega-nav__trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: color .2s ease, background .2s ease;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
}

.ew-mega-nav__trigger:hover,
.ew-mega-nav__item.is-open .ew-mega-nav__trigger {
    color: #4F46E5;
    background: rgba(79, 70, 229, 0.06);
}

/* ── Plain link (Pricing) ──────────────────────────────────── */
.ew-mega-nav__link-plain {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border-radius: 6px;
    transition: color .2s ease, background .2s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.ew-mega-nav__link-plain:hover {
    color: #4F46E5;
    background: rgba(79, 70, 229, 0.06);
}

/* ── Chevron ───────────────────────────────────────────────── */
.ew-mega-nav__chevron {
    display: inline-flex !important;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform .25s ease;
    pointer-events: none;
}

.ew-mega-nav__item.is-open .ew-mega-nav__chevron {
    transform: rotate(180deg);
}

/* ── Dropdown Panels ───────────────────────────────────────── */
.ew-mega-nav__item {
    position: static;
}

.ew-mega-panel {
    position: fixed;
    top: 0; /* overridden by JS */
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    color: #000000 !important;
    border-radius: 0 0 18px 18px;
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,.07),
        0 12px 48px -4px rgba(0,0,0,.16);
    padding: 28px 0 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s .22s;
    z-index: 1050;
    pointer-events: none;
}

.ew-mega-nav__item.is-open .ew-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .22s ease, transform .22s ease, visibility 0s 0s;
    pointer-events: auto;
}

/* Solutions panel overrides – small dropdown under its trigger */
.ew-mega-panel--solutions {
    border-radius: 18px;
    width: 450px;
}

/* Panel inner flex layout ─ panel itself is already container-width via JS */
.ew-mega-panel__inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0 16px;
}

/* ── Columns ────────────────────────────────────────────────── */
.ew-mega-col {
    flex: 1;
    padding: 0 22px;
}

.ew-mega-col:first-child { padding-left: 0; }
.ew-mega-col:last-child  { padding-right: 0; }

.ew-mega-col--stories { flex: 1.1; }

.ew-mega-col__divider {
    width: 1px;
    background: #F0F0F2;
    align-self: stretch;
    flex-shrink: 0;
}

/* Column heading */
.ew-mega-col__title {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    color: #666666 !important;
    text-transform: uppercase;
    margin: 0 0 12px;
    padding: 0;
    line-height: 1;
}

/* Title row (heading + "Read all" link) */
.ew-mega-col__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ew-mega-col__title-row .ew-mega-col__title { margin-bottom: 0; }

.ew-mega-col__read-all {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #4F46E5;
    text-decoration: none;
    white-space: nowrap;
}

.ew-mega-col__read-all:hover { text-decoration: underline; }

.ew-mega-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Nav Item (icon + text) ────────────────────────────────── */
.ew-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #000000 !important;
    transition: background .15s ease;
}

.ew-nav-item:hover { background: #F8F9FF; }

.ew-nav-item__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #EEF2FF;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ew-nav-item__icon svg {
    width: 17px;
    height: 17px;
    stroke: #6366F1;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ew-nav-item__body {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    padding-top: 1px;
}

.ew-nav-item__body strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #000000 !important;
    line-height: 1.3;
}

.ew-nav-item__body span {
    display: block !important;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #444444 !important;
    line-height: 1.45;
}

/* ── Customer Story Cards ──────────────────────────────────── */
.ew-story-card {
    display: flex;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #000000 !important;
    transition: background .15s ease;
}

.ew-story-card:hover { background: #F8F9FF; }

.ew-story-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ew-story-badge {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    letter-spacing: .03em;
}

.ew-story-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ew-story-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000000 !important;
    line-height: 1.4;
    margin: 0;
}

.ew-story-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #444444 !important;
    line-height: 1.4;
    margin: 0;
}

.ew-story-link {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #4F46E5;
    margin-top: 2px;
}

/* ── Overlay (click-outside-to-close backdrop) ─────────────── */
.ew-mega-overlay {
    position: fixed;
    inset: 0;
    z-index: 1045;
    display: none;
}

.ew-mega-overlay.is-active { display: block; }


/* ============================================================
   Mobile Menu
   ============================================================ */

.ew-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0 24px;
    display: flex;
    flex-direction: column;
}

/* ── Each top-level item ───────────────────────────────────── */
.ew-mobile-item {
    border-bottom: 1px solid #F0F0F2;
}

.ew-mobile-divider {
    border-bottom: 2px solid #E5E7EB;
    margin: 8px 0;
}

/* ── Trigger row (button or plain link) ────────────────────── */
.ew-mobile-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111827 !important;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
}

.ew-mobile-trigger--plain {
    font-weight: 500;
    color: #374151 !important;
}

.ew-mobile-trigger:hover,
.ew-mobile-trigger--plain:hover {
    color: #4F46E5 !important;
    background: #F8F9FF;
}

/* ── Chevron ───────────────────────────────────────────────── */
.ew-mobile-chevron {
    display: inline-flex !important;
    flex-shrink: 0;
    transition: transform .25s ease;
    pointer-events: none;
}

.ew-mobile-item--open .ew-mobile-chevron {
    transform: rotate(180deg);
}

/* ── Submenu ───────────────────────────────────────────────── */
.ew-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    display: none;
    background: #FAFAFA;
}

.ew-mobile-item--open .ew-mobile-submenu {
    display: block;
}

/* Group label */
.ew-mobile-group-label {
    padding: 10px 20px 4px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9CA3AF !important;
}

/* Sub-links */
.ew-mobile-link {
    display: block !important;
    padding: 9px 20px 9px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151 !important;
    text-decoration: none;
}

.ew-mobile-link:hover {
    color: #4F46E5 !important;
    background: #EEF2FF;
}

.ew-mobile-link--see-all {
    color: #4F46E5 !important;
    font-weight: 600;
}

/* ── CTA button ────────────────────────────────────────────── */
.ew-mobile-cta {
    display: block !important;
    margin: 12px 20px;
    padding: 12px 20px;
    background: #4F46E5;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
}

.ew-mobile-cta:hover {
    background: #4338CA;
    color: #fff !important;
}
