.ffgm-shell,
.ffgm-shell * {
    box-sizing: border-box;
}

.ffgm-shell {
    --ffgm-green: #4f9d63;
    --ffgm-green-dark: #3f8652;
    --ffgm-dark: #304258;
    --ffgm-muted: #758396;
    --ffgm-line: #e2e7ec;
    --ffgm-soft: #f3f8f4;

    position: relative;
    z-index: 120;
    width: 100%;
    clear: both;
    margin: 0;
    background: #ffffff;
    color: var(--ffgm-dark);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.ffgm-container {
    width: min(calc(100% - 40px), 1180px);
    margin-right: auto;
    margin-left: auto;
}

/*
 * Glavni red menija je namerno jednostavan:
 * bez velikih zaobljenih dugmadi i bez senki.
 */
.ffgm-navigation {
    position: relative;
    width: 100%;
    border-top: 1px solid #eef1f4;
    border-bottom: 1px solid var(--ffgm-line);
    background: #ffffff;
}

.ffgm-main-list {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ffgm-main-item {
    position: static;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/*
 * !important pravila sprečavaju da Astra ili drugi plugin
 * pretvore stavke menija u velika zaobljena dugmad.
 */
.ffgm-shell .ffgm-main-button {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: relative;
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    margin: 0 !important;
    padding: 0 13px !important;

    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: 0;

    color: var(--ffgm-dark) !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;

    cursor: pointer;
    transition: color .18s ease, border-color .18s ease;
}

.ffgm-shell .ffgm-main-button:hover,
.ffgm-shell .ffgm-main-button:focus-visible,
.ffgm-shell .ffgm-main-button[aria-expanded="true"] {
    border-bottom-color: var(--ffgm-green) !important;
    background: transparent !important;
    color: var(--ffgm-green-dark) !important;
    box-shadow: none !important;
}

.ffgm-shell .ffgm-main-button:focus-visible {
    outline: 2px solid rgba(79, 157, 99, .25);
    outline-offset: -3px;
}

.ffgm-chevron {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-right: 1.4px solid currentColor;
    border-bottom: 1.4px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.ffgm-main-button[aria-expanded="true"] .ffgm-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

/* Padajući mega meni */
.ffgm-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    border-bottom: 1px solid var(--ffgm-line);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(29, 46, 65, .09);
}

.ffgm-mega-panel[hidden] {
    display: none !important;
}

.ffgm-mega-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 38px;
    padding-top: 30px;
    padding-bottom: 32px;
}

.ffgm-mega-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ffgm-mega-column {
    min-width: 0;
    padding: 0 38px;
}

.ffgm-mega-column:first-child {
    padding-left: 0;
}

.ffgm-mega-column + .ffgm-mega-column {
    border-left: 1px solid var(--ffgm-line);
}

.ffgm-column-heading {
    margin: 0 0 15px !important;
    padding: 0 0 11px;
    border-bottom: 1px solid var(--ffgm-line);
    color: var(--ffgm-green-dark);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ffgm-column-links {
    display: grid;
    gap: 12px;
}

.ffgm-submenu-link {
    position: relative;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding-left: 12px;

    color: #45576c !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none !important;
}

.ffgm-submenu-link::before {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c7d1da;
}

.ffgm-submenu-link:hover,
.ffgm-submenu-link:focus-visible {
    color: var(--ffgm-green-dark) !important;
}

.ffgm-submenu-link.is-unlinked {
    cursor: default;
}

.ffgm-promo {
    min-height: 164px;
    padding: 21px;
    border: 1px solid #cfe2d5;
    border-radius: 8px;
    background: var(--ffgm-soft);
}

.ffgm-promo-line {
    display: block;
    width: 30px;
    height: 2px;
    margin-bottom: 16px;
    background: var(--ffgm-green);
}

.ffgm-promo-title {
    margin: 0 !important;
    color: var(--ffgm-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.ffgm-promo-text {
    margin: 9px 0 0 !important;
    color: var(--ffgm-muted);
    font-size: 10px;
    line-height: 1.65;
}

.ffgm-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: var(--ffgm-green-dark) !important;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;
}

.ffgm-mobile-row {
    display: none;
}

/*
 * Standardni Astra meni se skriva, ali logo, gornje trake
 * i ostali delovi headera ostaju netaknuti.
 */
.ffgm-active .ast-builder-menu-1 {
    display: none !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .ffgm-container {
        width: min(calc(100% - 30px), 1180px);
    }

    .ffgm-shell .ffgm-main-button {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 10px !important;
    }
}

/* Mobilni meni */
@media (max-width: 921px) {
    .ffgm-container {
        width: min(calc(100% - 28px), 1180px);
    }

    .ffgm-mobile-row {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 14px;
        border-top: 1px solid #eef1f4;
        border-bottom: 1px solid var(--ffgm-line);
        background: #ffffff;
    }

    .ffgm-shell .ffgm-mobile-toggle {
        appearance: none !important;
        -webkit-appearance: none !important;

        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 9px !important;

        margin: 0 !important;
        padding: 0 11px !important;

        border: 1px solid var(--ffgm-line) !important;
        border-radius: 5px !important;

        background: #ffffff !important;
        box-shadow: none !important;

        color: var(--ffgm-dark) !important;
        font-family: inherit !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-transform: none !important;
    }

    .ffgm-hamburger,
    .ffgm-hamburger::before,
    .ffgm-hamburger::after {
        width: 17px;
        height: 2px;
        display: block;
        border-radius: 2px;
        background: currentColor;
        content: "";
    }

    .ffgm-hamburger {
        position: relative;
    }

    .ffgm-hamburger::before,
    .ffgm-hamburger::after {
        position: absolute;
        left: 0;
    }

    .ffgm-hamburger::before {
        top: -5px;
    }

    .ffgm-hamburger::after {
        top: 5px;
    }

    .ffgm-navigation {
        display: none;
        border-top: 0;
    }

    .ffgm-shell.is-mobile-open .ffgm-navigation {
        display: block;
    }

    .ffgm-main-list {
        display: grid;
        gap: 0;
        min-height: 0;
    }

    .ffgm-main-item {
        border-bottom: 1px solid var(--ffgm-line);
    }

    .ffgm-shell .ffgm-main-button {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: space-between !important;
        padding: 0 !important;
        border-bottom: 0 !important;
        font-size: 12px !important;
    }

    .ffgm-mega-panel {
        position: static;
        border: 0;
        box-shadow: none;
    }

    .ffgm-mega-inner {
        grid-template-columns: 1fr;
        gap: 17px;
        padding-top: 6px;
        padding-bottom: 20px;
    }

    .ffgm-mega-columns {
        grid-template-columns: 1fr;
    }

    .ffgm-mega-column,
    .ffgm-mega-column:first-child {
        padding: 13px 0;
    }

    .ffgm-mega-column + .ffgm-mega-column {
        border-top: 1px solid var(--ffgm-line);
        border-left: 0;
    }

    .ffgm-promo {
        min-height: auto;
    }

    .ffgm-active .ast-mobile-header-wrap .ast-builder-menu-mobile {
        display: none !important;
    }
}
