.smm-menu,
.smm-menu * {
    box-sizing: border-box;
}

.smm-menu {
    --smm-text: #17171d;
    --smm-muted: #6f6f76;
    --smm-border: rgba(23, 23, 29, 0.16);
    --smm-accent: #10c7da;
    --smm-surface: #ffffff;
    position: relative;
    z-index: 50;
    width: 100%;
    color: var(--smm-text);
    font-family: inherit;
    direction: ltr;
    text-align: left;
}

.smm-menu__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 0 clamp(20px, 7vw, 118px);
    background: var(--smm-surface);
}

.smm-menu__nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(18px, 3.5vw, 56px);
}

.smm-menu__item {
    position: static;
}

.smm-menu__item.has-panel.is-open .smm-menu__link-text {
	font-weight: 700;
}

.smm-menu__sub-label { 
	    color: #18343B;
    font-family: Lexend;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-transform: capitalize;
	
}

.smm-menu__link {
color: #1C1C1C;
    font-family: Lexend;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    border: 0;
    background: transparent;
    line-height: 150%;
}

.smm-menu__link[data-smm-accordion] {
    cursor: default;
}

.smm-menu__link:hover,
.smm-menu__link:focus,
.smm-menu__link:active {
    color: var(--smm-text);
    background: transparent;
    box-shadow: none;
    outline: 0;
}

.smm-menu__item.is-open .smm-menu__link {
    font-weight: 500;
}

.smm-menu .sub-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: currentColor;
    transition: transform 0.18s ease;
}

.smm-menu .sub-arrow i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    line-height: 1;
}

.smm-menu .sub-arrow i::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -2px);
}

.smm-menu__item.is-open .sub-arrow {
    transform: rotate(180deg);
}

.smm-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: min(880px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.smm-menu__item.is-open .smm-menu__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.smm-menu__panel-inner {
    display: grid;
    grid-template-columns: 0.48fr 0.52fr;
    min-height: 318px;
    overflow: hidden;
    border: 1px solid rgba(23, 23, 29, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 52px rgba(19, 26, 38, 0.14);
    backdrop-filter: blur(16px);
}

.smm-menu__panel-links {
    display: grid;
    align-content: center;
    gap: 24px;
    padding: clamp(28px, 4vw, 52px) clamp(30px, 5vw, 74px);
    border-right: 1px solid rgba(23, 23, 29, 0.08);
}

.smm-menu__sub-link {
    display: grid;
    gap: 5px;
    color: #0e2b33;
    text-decoration: none;
    transition: transform 0.16s ease, color 0.16s ease;
}

.smm-menu__sub-link.has-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smm-menu__sub-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

.smm-menu__sub-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.smm-menu__sub-link:hover {
    color: var(--smm-accent);
    transform: translateX(5px);
}

.smm-menu__sub-list--depth-1 .smm-menu__sub-list .smm-menu__sub-list .smm-menu__sub-label {
    font-family: Lexend;
    font-size: 13px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-transform: capitalize;
}


.smm-menu__sub-link small {
    color: var(--smm-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.smm-menu__post-card {
    display: grid;
    grid-template-columns: 174px 1fr;
    align-items: center;
    gap: 26px;
    padding: clamp(28px, 4vw, 70px) clamp(28px, 4vw, 46px);
    background: #fbfbfc;
    color: var(--smm-text);
    text-decoration: none;
}

.smm-menu__post-image {
    display: block;
    width: 174px;
    aspect-ratio: 1 / 1;
    border-radius: 11px;
    object-fit: cover;
    background-color: #e7e8eb;
}

.smm-menu__post-content {
    display: grid;
    gap: 9px;
    max-width: 255px;
}

.smm-menu__post-content strong {
   color: #0071F6;
font-family: Lexend;
font-size: 12px;
font-style: normal;
font-weight: 700;
line-height: 22px; /* 183.333% */
}

.smm-menu__post-content span {
    color: var(--smm-text);
    font-family: Lexend;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 22px;
}

.smm-menu__post-content small {
    color: var(--smm-muted);
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-line;
}

.smm-menu__post-card--dark {
    background: #1C1C1C;
}

.smm-menu__post-card--dark .smm-menu__post-content span,
.smm-menu__post-card--dark .smm-menu__post-content small {
    color: #fff;
}


.smm-menu__overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(17, 17, 22, 0.42);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.smm-menu__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.smm-menu__toggle img {
    display: block;
    width: 14px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.18s ease;
}

.smm-menu.is-mobile-open .smm-menu__toggle img {
    transform: rotate(180deg);
}

.smm-menu__mobile-header {
    display: none;
}

@media (max-width: 1024px) {
    body.smm-mobile-popup-open {
        overflow: hidden;
    }

    .smm-menu {
        z-index: 1000;
    }

    .smm-menu__bar {
        justify-content: flex-end;
        min-height: 68px;
        padding: 0 18px;
    }

    .smm-menu__toggle {
        display: inline-flex;
        position: relative;
        z-index: 1001;
    }

    .smm-menu.is-mobile-open .smm-menu__overlay {
        display: block;
    }

    /* Full-screen mobile menu */
    .smm-menu__nav {
        position: fixed;
        inset: 0;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 20px 28px;
        background: #ffffff;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .smm-menu.is-mobile-open .smm-menu__nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Top bar: Back + X */
    .smm-menu__mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 5;
        flex-shrink: 0;
        min-height: 64px;
        margin: 0 -20px;
        padding: 0 20px;
        background: #ffffff;
        border-bottom: 1px solid rgba(23, 23, 29, 0.08);
    }

    .smm-menu__mobile-back {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border: 0;
        background: transparent;
        color: #1C1C1C;
        font-family: Lexend;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        cursor: pointer;
        visibility: hidden;
    }

    .smm-menu__mobile-back:hover,
    .smm-menu__mobile-back:focus,
    .smm-menu__mobile-back:active {
        background: transparent;
        color: #1C1C1C;
        box-shadow: none;
        outline: 0;
    }

    .smm-menu__nav.is-submenu-open .smm-menu__mobile-back {
        visibility: visible;
    }

    .smm-menu__mobile-back-arrow {
        display: inline-flex;
        width: 9px;
        height: 9px;
    }

    .smm-menu__mobile-back-arrow::before {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    .smm-menu__mobile-close {
        position: relative;
        width: 40px;
        height: 40px;
        margin-left: auto;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .smm-menu__mobile-close:hover,
    .smm-menu__mobile-close:focus,
    .smm-menu__mobile-close:active {
        background: transparent;
        box-shadow: none;
        outline: 0;
    }

    .smm-menu__mobile-close-icon::before,
    .smm-menu__mobile-close-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 2px;
        background: #1C1C1C;
    }

    .smm-menu__mobile-close-icon::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .smm-menu__mobile-close-icon::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* Root level: list of main items */
    .smm-menu__item {
        border-top: 1px solid rgba(23, 23, 29, 0.08);
    }

    .smm-menu__item:first-child {
        border-top: 0;
    }

    .smm-menu__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 58px;
        padding: 0;
        text-align: left;
        font-size: 17px;
    }

    /* Drill-down indicator: chevron points forward instead of down */
    .smm-menu .sub-arrow i::before {
        transform: rotate(-45deg) translate(-2px, 1px);
    }

    .smm-menu__item.is-open .sub-arrow {
        transform: none;
    }

    /* Submenu view: hide siblings, show only the active item full screen */
    .smm-menu__nav.is-submenu-open .smm-menu__item {
        display: none;
    }

    .smm-menu__nav.is-submenu-open .smm-menu__item.is-mobile-active {
        display: block;
        border-top: 0;
    }

    .smm-menu__nav.is-submenu-open .smm-menu__item.is-mobile-active > .smm-menu__link {
        min-height: 0;
        padding: 22px 0 4px;
        font-size: 21px;
        font-weight: 600;
        pointer-events: none;
    }

    .smm-menu__nav.is-submenu-open .smm-menu__item.is-mobile-active .sub-arrow,
    .smm-menu__nav.is-submenu-open .smm-menu__item.is-mobile-active .smm-menu__arrow-toggle {
        display: none;
    }

    .smm-menu__panel {
        display: none;
        position: static;
        width: 100%;
        max-height: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        overflow: visible;
        transition: none;
    }

    .smm-menu__item.is-open .smm-menu__panel {
        transform: none !important;
    }

    .smm-menu__nav.is-submenu-open .smm-menu__item.is-mobile-active .smm-menu__panel {
        display: block;
    }

    /* Links list on top, post card at the bottom */
    .smm-menu__panel-inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .smm-menu__nav.is-submenu-open .smm-menu__item.is-mobile-active .smm-menu__panel-inner {
        min-height: auto;
    }

    .smm-menu__panel-links {
        gap: 18px;
        padding: 20px 0 26px;
        border-right: 0;
        border-bottom: 0;
    }

    .smm-menu__nav.is-submenu-open .smm-menu__item.is-mobile-active .smm-menu__panel-links {
        flex: 1;
    }

    .smm-menu__post-card {
        grid-template-columns: 96px 1fr;
        gap: 16px;
        max-width: 250px;
        margin-top: auto;
        padding: 20px 22px;
        border-radius: 16px;
    }

    .smm-menu__post-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }
}

@media (max-width: 600px) {
    .smm-menu__nav {
        padding: 0 16px 24px;
    }

    .smm-menu__mobile-header {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .smm-menu__post-card {
        grid-template-columns: 1fr;
        max-width: 250px;
    }

    .smm-menu__post-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }
}

.smm-menu__link-anchor {
    color: inherit;
    text-decoration: none;
}

.smm-menu__link-anchor:hover,
.smm-menu__link-anchor:focus,
.smm-menu__link-anchor:active {
    color: inherit;
    text-decoration: none;
    outline: 0;
}

.smm-menu__arrow-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.smm-menu__arrow-toggle:hover,
.smm-menu__arrow-toggle:focus,
.smm-menu__arrow-toggle:active {
    background: transparent;
    color: inherit;
    box-shadow: none;
    outline: 0;
}

@media (max-width: 1024px) {
    .smm-menu__link-anchor {
        display: inline-flex;
        align-items: center;
        min-height: 58px;
    }

    .smm-menu__link > .smm-menu__link-anchor {
        flex: 1;
    }
}

.smm-menu__sub-list {
    display: grid;
    gap: 18px;
}

.smm-menu__sub-item {
    display: grid;
    gap: 12px;
}

.smm-menu__sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smm-menu__sub-row .smm-menu__sub-link {
    flex: 1;
    min-width: 0;
}

.smm-menu__sub-link.has-children-trigger,
button.smm-menu__sub-link {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.smm-menu__sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

.smm-menu__sub-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.smm-menu__sub-link.has-children-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smm-menu__sub-item.has-children > .smm-menu__sub-collapse {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin: 0;
    transition:
        grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        margin 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.smm-menu__sub-item.has-children.is-open > .smm-menu__sub-collapse {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 4px;
}

.smm-menu__sub-collapse-inner {
    overflow: hidden;
    min-height: 0;
}

.smm-menu__sub-collapse-inner > .smm-menu__sub-list {
    gap: 12px;
    margin: 0;
    padding: 4px 0 4px 18px;
}

.smm-menu__sub-item.has-children.is-open > .smm-menu__sub-link .smm-menu__sub-chevron,
.smm-menu__sub-item.has-children.is-open > .smm-menu__sub-row .smm-menu__sub-chevron {
    transform: rotate(-135deg);
}

.smm-menu__sub-list .smm-menu__sub-list {
    gap: 12px;
    margin-top: 5px;
    padding-left: 18px;
}

.smm-menu__sub-list .smm-menu__sub-list .smm-menu__sub-label {
    font-size: 13px;
    font-weight: 400;
}

.smm-menu__sub-list .smm-menu__sub-list .smm-menu__sub-link small {
    font-size: 12px;
}

@media (max-width: 1024px) {
    .smm-menu__sub-list {
        gap: 14px;
    }

    .smm-menu__sub-list .smm-menu__sub-list,
    .smm-menu__sub-collapse-inner > .smm-menu__sub-list {
        padding-left: 16px;
    }
}
