/* ═══════════════════════════════════════════════════════════════════
   MapYourTech Premium Navigation — Version B (Clean White Editorial)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── NAV BAR ─────────────────────────────────────────────────────── */
.myt-pnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    border-bottom: 1px solid #eef1f6;
    transition: box-shadow .3s;
}
.myt-pnav.scrolled {
    box-shadow: 0 2px 21px rgba(0,0,0,.06);
}
.myt-pnav__inner {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    height: 68px;
}
.myt-pnav__spacer {
    height: 68px;
}

/* ─── LOGO ────────────────────────────────────────────────────────── */
.myt-pnav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.myt-pnav__logo-img {
    height: 38px;
    width: auto;
    display: block;
    transition: opacity .2s;
}
.myt-pnav__logo:hover .myt-pnav__logo-img {
    opacity: .85;
}
.myt-pnav__logo-text {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #0a2a7a;
    letter-spacing: -.3px;
    line-height: 1;
}
.myt-pnav__logo-text em {
    font-style: normal;
    color: #dd6800;
}

/* ─── CENTER LINKS ────────────────────────────────────────────────── */
.myt-pnav__center {
    display: flex;
    align-items: center;
    gap: 0;
    height: 68px;
}
.myt-pnav__item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.myt-pnav__link {
    font-size: .82rem;
    font-weight: 500;
    color: #64748b;
    padding: 0 13px;
    cursor: pointer;
    transition: color .2s;
    user-select: none;
    height: 100%;
    display: flex;
    align-items: center;
}
.myt-pnav__link:hover,
.myt-pnav__item.open .myt-pnav__link {
    color: #0f172a;
}

/* Direct link (no dropdown) */
.myt-pnav__link--direct {
    text-decoration: none;
    color: #64748b;
    height: 100%;
    display: flex;
    align-items: center;
}
.myt-pnav__link--direct:hover {
    color: #0f172a;
}

/* Dot indicator */
.myt-pnav__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1050c8;
    position: absolute;
    bottom: 13px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .25s;
}
.myt-pnav__item:hover .myt-pnav__dot,
.myt-pnav__item.open .myt-pnav__dot {
    opacity: 1;
}

/* ─── RIGHT ACTIONS ───────────────────────────────────────────────── */
.myt-pnav__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.myt-pnav__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1.5px solid #eef1f6;
    background: #fafbfd;
    cursor: pointer;
    transition: all .25s;
    font-size: .78rem;
    color: #94a3b8;
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}
.myt-pnav__search:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.myt-pnav__search svg {
    width: 14px;
    height: 14px;
    stroke: #94a3b8;
}
.myt-pnav__search kbd {
    font-family: inherit;
    font-size: .58rem;
    padding: 2px 5px;
    background: #f1f5f9;
    border-radius: 4px;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}
.myt-pnav__login {
    font-size: .8rem;
    font-weight: 600;
    color: #334155;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    transition: all .2s;
}
.myt-pnav__login:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}
.myt-pnav__pro {
    font-size: .8rem;
    font-weight: 700;
    padding: 8px 21px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b00, #f59e0b);
    color: #fff;
    text-decoration: none;
    transition: all .25s;
    white-space: nowrap;
}
.myt-pnav__pro:hover {
    background: linear-gradient(135deg, #e06000, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 5px 13px rgba(255,107,0,.25);
    color: #fff;
}

/* ─── MEGA MENU ───────────────────────────────────────────────────── */
.myt-pnav__mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #fff;
    border: 1px solid #eef1f6;
    border-top: none;
    border-radius: 0 0 13px 13px;
    box-shadow: 0 21px 55px rgba(0,0,0,.08);
    padding: 21px;
    display: grid;
    gap: 13px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
    z-index: 200;
}
.myt-pnav__item.open .myt-pnav__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Courses mega — 3 cols with featured */
.myt-pnav__mega--courses {
    width: 780px;
    grid-template-columns: 38.2% 1fr 1fr;
}
/* Articles mega — 3 cols */
.myt-pnav__mega--articles {
    width: 680px;
    grid-template-columns: 1fr 1fr 1fr;
}
/* Tools mega — 3 cols */
.myt-pnav__mega--tools {
    width: 700px;
    grid-template-columns: 1fr 1fr 1fr;
}
/* Resources — 2 cols */
.myt-pnav__mega--resources {
    width: 520px;
    grid-template-columns: 1fr 1fr;
}
/* Small menus (career, books) */
.myt-pnav__mega--small {
    width: 320px;
    grid-template-columns: 1fr;
}

/* ─── MEGA FEATURED PANEL ─────────────────────────────────────────── */
.myt-mega__featured {
    background: linear-gradient(135deg, #f0f4ff, #eef2ff);
    border-radius: 8px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.myt-mega__featured h3 {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 5px;
    line-height: 1.3;
}
.myt-mega__featured p {
    font-size: .78rem;
    color: #64748b;
    line-height: 1.618;
    margin: 0 0 13px;
}
.myt-mega__fbtn {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    color: #1050c8;
    text-decoration: none;
    padding: 5px 13px;
    border: 1.5px solid #1050c8;
    border-radius: 34px;
    transition: all .2s;
    align-self: flex-start;
}
.myt-mega__fbtn:hover {
    background: #1050c8;
    color: #fff;
}

/* ─── MEGA COLUMNS ────────────────────────────────────────────────── */
.myt-mega__col h4 {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #94a3b8;
    margin: 0 0 8px;
    font-weight: 700;
    padding: 0 8px;
}
.myt-mega__col a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-size: .82rem;
    font-weight: 500;
    transition: all .2s;
    line-height: 1.35;
}
.myt-mega__col a:hover {
    background: #f8fafc;
    transform: translateX(3px);
    color: #0f172a;
}
.myt-mega__col a small {
    display: block;
    color: #94a3b8;
    font-size: .65rem;
    font-weight: 400;
    margin-top: 2px;
}
.myt-mega__col a.myt-mega__all {
    margin-top: 8px;
    font-weight: 600;
    color: #1050c8;
    font-size: .78rem;
}
.myt-mega__col a.myt-mega__all:hover {
    color: #0a2a7a;
}

/* ─── MEGA ICONS ──────────────────────────────────────────────────── */
.myt-mega__ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.myt-mega__ico.b { background: #dbeafe; }
.myt-mega__ico.o { background: #ffedd5; }
.myt-mega__ico.g { background: #dcfce7; }
.myt-mega__ico.p { background: #f3e8ff; }
.myt-mega__ico.t { background: #ccfbf1; }
.myt-mega__ico.r { background: #ffe4e6; }

/* ─── MOBILE HAMBURGER ────────────────────────────────────────────── */
.myt-pnav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    position: relative;
    flex-shrink: 0;
}
.myt-pnav__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    position: absolute;
    left: 7px;
    transition: all .3s;
}
.myt-pnav__burger span:nth-child(1) { top: 10px; }
.myt-pnav__burger span:nth-child(2) { top: 16px; }
.myt-pnav__burger span:nth-child(3) { top: 22px; }
.myt-pnav__burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 16px;
}
.myt-pnav__burger.active span:nth-child(2) {
    opacity: 0;
}
.myt-pnav__burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 16px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .myt-pnav__search span {
        display: none;
    }
    .myt-pnav__search kbd {
        display: none;
    }
    .myt-pnav__login {
        display: none;
    }
}

@media (max-width: 960px) {
    .myt-pnav__center {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        height: auto;
        overflow-y: auto;
        padding: 13px 21px 34px;
        gap: 0;
        z-index: 99998;
        border-top: 1px solid #eef1f6;
    }
    .myt-pnav__center.mobile-open {
        display: flex;
    }
    .myt-pnav__item {
        height: auto;
        flex-direction: column;
        border-bottom: 1px solid #f1f5f9;
    }
    .myt-pnav__link {
        padding: 13px 0;
        font-size: .9rem;
        font-weight: 600;
        width: 100%;
        justify-content: space-between;
    }
    .myt-pnav__link::after {
        content: '+';
        font-size: 1.1rem;
        color: #94a3b8;
        font-weight: 400;
    }
    .myt-pnav__item.open .myt-pnav__link::after {
        content: '−';
    }
    .myt-pnav__dot {
        display: none;
    }
    .myt-pnav__mega {
        position: static;
        transform: none;
        width: 100% !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 13px;
        grid-template-columns: 1fr !important;
        display: none;
    }
    .myt-pnav__item.open .myt-pnav__mega {
        display: grid;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .myt-mega__featured {
        margin-bottom: 8px;
    }
    .myt-pnav__burger {
        display: block;
    }
    .myt-pnav__inner {
        padding: 0 21px;
    }
    .myt-pnav__right {
        gap: 5px;
    }
    .myt-pnav__pro {
        padding: 7px 13px;
        font-size: .75rem;
    }
    body.admin-bar .myt-pnav__center {
        top: 100px;
    }
}

@media (max-width: 540px) {
    .myt-pnav__search {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }
    .myt-pnav__search svg {
        width: 18px;
        height: 18px;
    }
    .myt-pnav__search span,
    .myt-pnav__search kbd {
        display: none;
    }
    .myt-pnav__logo-text {
        font-size: .95rem;
    }
}

/* ─── LOGO TEXT (next to image) ────────────────────────────────── */
.myt-pnav__logo-text {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #0a2a7a;
    letter-spacing: -.3px;
    white-space: nowrap;
}
.myt-pnav__logo-text em {
    font-style: normal;
    color: #dd6800;
}

/* ─── ORANGE PRO BUTTON ────────────────────────────────────────── */
.myt-pnav__pro {
    background: linear-gradient(135deg, #ff6b00, #f59e0b) !important;
    color: #fff !important;
    border: none !important;
}
.myt-pnav__pro:hover {
    background: linear-gradient(135deg, #e05e00, #d98b0a) !important;
    box-shadow: 0 5px 21px rgba(255,107,0,.3) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ─── MOBILE BURGER FIX ────────────────────────────────────────── */
.myt-pnav__burger {
    display: none;
    background: none;
    border: 1.5px solid #e2e8f0 !important;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}
.myt-pnav__burger span {
    display: block;
    width: 18px;
    height: 2.5px;
    background: #ff6b00 !important;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all .3s;
}
.myt-pnav__burger span:nth-child(1) { top: 10px; }
.myt-pnav__burger span:nth-child(2) { top: 17px; }
.myt-pnav__burger span:nth-child(3) { top: 24px; }
.myt-pnav__burger.active span:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 17px;
}
.myt-pnav__burger.active span:nth-child(2) { opacity: 0; }
.myt-pnav__burger.active span:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 17px;
}

/* ─── MOBILE LOGO SIZE ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .myt-pnav__burger {
        display: block !important;
    }
    .myt-pnav__logo-img {
        height: 30px !important;
    }
    .myt-pnav__pro {
        padding: 7px 13px !important;
        font-size: .72rem !important;
    }
    .myt-pnav__login {
        display: none !important;
    }
}
@media (max-width: 540px) {
    .myt-pnav__logo-img {
        height: 26px !important;
    }
    .myt-pnav__inner {
        height: 55px !important;
    }
    .myt-pnav__spacer {
        height: 55px !important;
    }
    .myt-pnav__pro {
        padding: 6px 10px !important;
        font-size: .68rem !important;
    }
}
