/* ===================================
   Side megamenu — offset two-column panel
====================================== */

body.nav-menu-open {
    overflow: hidden;
}

/* Header menu toggle — desktop and mobile */

.side_nav {
    display: none;
}

/* Megamenu panel */

.side-nav-megamenu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 120;
    width: min(920px, 86vw);
    max-width: 920px;
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.28);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s ease;
}

.side-nav-megamenu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.overlay-body {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.overlay-body.show_body_overlay {
    display: block;
}

.side-nav-megamenu__layout {
    display: grid;
    grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
    height: 100%;
    min-height: 100vh;
}

/* Left column */

.side-nav-megamenu__primary {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 0 1.75rem;
    background: #000;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.side-nav-megamenu__toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.side-nav-megamenu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.side-nav-megamenu__search {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.side-nav-megamenu__search-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 1.5rem;
    margin: 0;
    cursor: text;
}

.side-nav-megamenu__search-icon {
    display: block;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.72);
}

.side-nav-megamenu__search-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 10.5rem;
    margin: 0;
    padding: 0.1rem 0 0.2rem;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.35;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.side-nav-megamenu__search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.side-nav-megamenu__search-input:hover {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.side-nav-megamenu__search-input:focus {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.38);
}

.side-nav-megamenu__search-input::-webkit-search-decoration,
.side-nav-megamenu__search-input::-webkit-search-cancel-button,
.side-nav-megamenu__search-input::-webkit-search-results-button,
.side-nav-megamenu__search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.side-nav-megamenu__nav {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 0;
    flex: 1 1 auto;
}

.side-nav-megamenu__nav-item {
    position: relative;
    margin: 0;
}

.side-nav-megamenu__nav-link {
    display: block;
    padding: 0.9rem 2.75rem 0.9rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-size: clamp(1.05rem, 1.5vw, 1.45rem);
    font-weight: 500;
    line-height: 1.25;
}

.side-nav-megamenu__nav-item.is-active {
    background: #2a2a2a;
}

.side-nav-megamenu__chevron {
    position: absolute;
    top: 50%;
    right: 1.35rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.side-nav-megamenu__nav-item.has-children.is-active .side-nav-megamenu__chevron,
.side-nav-megamenu__nav-item.has-children:hover .side-nav-megamenu__chevron {
    opacity: 1;
}

.side-nav-megamenu__social {
    padding: 1.5rem 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-nav-megamenu__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav-megamenu__social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    text-decoration: none;
}

/* Right column */

.side-nav-megamenu__secondary {
    position: relative;
    min-height: 100vh;
    background: #1f1f1f;
    overflow: hidden auto;
}

.side-nav-megamenu__panel {
    display: none;
    padding: 3.25rem 1.5rem 2rem;
}

.side-nav-megamenu__panel.is-active {
    display: block;
}

.side-nav-megamenu__cards {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav-megamenu__card + .side-nav-megamenu__card {
    margin-top: 1.35rem;
}

.side-nav-megamenu__card-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.side-nav-megamenu__card-media {
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 2px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.side-nav-megamenu__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-nav-megamenu__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.side-nav-megamenu__card-title {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.side-nav-megamenu__card-meta {
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

/* Mobile */

@media (max-width: 991px) {
    .side-nav-megamenu {
        width: min(100%, 100vw);
        max-width: 100vw;
    }

    .side-nav-megamenu__layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .side-nav-megamenu__primary {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .side-nav-megamenu__nav {
        max-height: 38vh;
        overflow-y: auto;
    }

    .side-nav-megamenu__nav-link {
        font-size: 1.15rem;
        padding: 0.85rem 3rem 0.85rem 1.25rem;
    }

    .side-nav-megamenu__secondary {
        min-height: auto;
        max-height: calc(100vh - 280px);
    }

    .side-nav-megamenu__panel {
        padding: 1.25rem;
    }

    .side-nav-megamenu__nav-item.has-children.is-active .side-nav-megamenu__chevron {
        opacity: 1;
    }

    .site-header__toggle .site-header__menu-toggle {
        padding: 0.45rem;
    }
}
