
/* ===== Mega Menu — PW.live style ===== */
.mm-parent { position: static !important; }

/* Dark overlay behind mega menu */
.mm-overlay {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: 9990;
}
.mm-overlay.mm-overlay-active { display: block; }

/* Header must be above overlay so dropdown is visible */
header { z-index: 9995 !important; }

/* Full-width dropdown — transparent sides, white only inside mm-inner */
.mm-dropdown {
    display: none;
    position: fixed;
    left: 0; right: 0;
    background: transparent;
    z-index: 9999;
}

/* Inner wrapper — white bg, shadow, border */
.mm-inner {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #ebebeb;
    border-top: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* ── LEFT panel ── */
.mm-left {
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    padding: 10px 0;
    overflow-y: auto;
    max-height: 460px;
}

.mm-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px 14px 24px;
    cursor: pointer;
    gap: 10px;
    transition: background 0.12s;
    border-left: 3px solid transparent;
}
.mm-cat:hover, .mm-cat-active {
    background: #fafafa;
}
.mm-cat-info { flex: 1; min-width: 0; }
.mm-cat-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    font-family: inherit;
}
.mm-cat-sub {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 270px;
}
.mm-cat-arrow { color: #bbb; flex-shrink: 0; }
.mm-cat:hover .mm-cat-arrow,
.mm-cat-active .mm-cat-arrow { color: #555; }

/* ── RIGHT panel ── */
.mm-right {
    flex: 1;
    background: #fff;
    padding: 22px 28px;
    overflow-y: auto;
    max-height: 460px;
    min-width: 0;
}
.mm-panel { display: none; }
.mm-panel-active { display: block; }

/* 2-column grid */
.mm-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Course card — horizontal: icon left, name right */
.mm-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    background: #fff !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
    box-sizing: border-box;
}
.mm-card:hover {
    border-color: #333 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    transform: none !important;
}

/* Icon box */
.mm-card-img {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #eef0ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}
.mm-card-img img {
    width: 46px !important;
    height: 46px !important;
    object-fit: cover !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.mm-card-img img.mm-img-hidden { display: none !important; }
.mm-card-img .mm-icon-fb {
    display: none;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    flex-shrink: 0 !important;
}
.mm-card-img .mm-icon-fb svg { width: 22px !important; height: 22px !important; }
.mm-card-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.35 !important;
    font-family: inherit !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* Empty state */
.mm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    color: #bbb;
    font-size: 14px;
    gap: 12px;
    text-align: center;
}

/* Hide mega dropdown & overlay on mobile */
@media (max-width: 991px) {
    .mm-dropdown { display: none !important; }
    .mm-overlay  { display: none !important; }
}

/* ===== Mobile Packages Panel (PW.live style) ===== */
.mob-pkg-panel {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 999999;
    flex-direction: column;
    overflow: hidden;
}
.mob-pkg-panel.mob-pkg-open { display: flex; }

.mob-pkg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}
.mob-pkg-back, .mob-pkg-close-x {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #555;
}

.mob-pkg-plans {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.mob-pkg-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    gap: 12px;
}
.mob-pkg-plan-row:active { background: #f8f8f8; }
.mob-pkg-plan-info { flex: 1; min-width: 0; }
.mob-pkg-plan-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}
.mob-pkg-plan-sub {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-pkg-view-all {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #c8a96e;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}

.mob-pkg-courses {
    flex: 1;
    overflow-y: auto;
    flex-direction: column;
}
.mob-pkg-courses[style*="display:flex"] { display: flex !important; }
.mob-courses-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}
.mob-courses-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    color: #555;
}
.mob-course-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
}
.mob-course-row:active { background: #f8f8f8; }
.mob-course-img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: #eef0ff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mob-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 0;
}
.mob-course-icon-fb {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Unused mobile nav leftovers (kept for reference) ===== */
.mob-nav-list { list-style: none !important; padding: 12px 0 !important; margin: 0 !important; border-bottom: 1px solid #f0f0f0; }
.mob-auth { padding: 16px 24px; }
.mob-auth-btn { display: flex; align-items: center; gap: 8px; justify-content: center; width: 100%; padding: 12px 20px; background: #c8a96e; color: #fff !important; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.mob-auth-btn:hover { background: #b8944d; color: #fff !important; }
