* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

body {
    background-image: linear-gradient( 180deg, rgba(236, 239, 241, 1) 37%, rgba(227, 242, 253, 1) 73% );
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
}

.header {
    position: relative;
}

.menu {
    width: 95%;
    margin: 15px auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--largeRadius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    position: fixed;
    z-index: 100;
    top: 0px;
    right: 0px;
    left: 0px;
}

.menu__left-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu__logo {
    width: 80px;
    height: auto;
}

.menu__dashboard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 4px;
    text-decoration: none;
    padding: 6px 5px;
    border-radius: var(--mediumRadius);
    color: var(--whiteSmoke);
    font-size: 17px;
    background-color: var(--blue);
    transition: all 0.4s;
}

    .menu__dashboard-btn:hover {
        background-color: var(--lightBlue);
        color: var(--whiteSmoke);
    }

.menu__right-side {
    margin: 0px 15px;
    position: relative;
}

    .menu__right-side svg,
    .menu-mobile__middle-side svg {
        width: 24px;
        height: 24px;
    }

.menu__items {
    display: flex;
    padding-top: 10px;
    margin-left: 5px;
}

.menu__current-page {
    text-decoration: none;
    color: var(--black);
}

    .menu__current-page::after {
        content: "";
        width: 100%;
        height: 2px;
        background-color: var(--blue);
        display: block;
        margin-top: 5px;
    }

.menu__links {
    text-decoration: none;
    color: var(--black);
}

    .menu__links::after {
        content: "";
        width: 0%;
        height: 2px;
        background-color: var(--blue);
        display: block;
        margin-top: 5px;
        transition: all 0.4s 0.1s;
    }

    .menu__links:hover::after {
        width: 100%;
    }

.menu-mobile {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
    overflow: hidden;
    transition: all 0.4s;
}

.menu-mobile__top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-mobile__left-side {
    margin: 0px 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-mobile__menu-up-line,
.menu-mobile__menu-middle-line,
.menu-mobile__menu-down-line {
    width: 40px;
    height: 2px;
    background-color: var(--black);
    margin: 5px 0px;
    border-radius: var(--largeRadius);
    transition: all 0.4s;
}

.menu-mobile--menu-up-line-trans {
    transform: translate(0px, 6px) rotate(45deg);
}

.menu-mobile--menu-down-line-trans {
    transform: translate(0px, -6px) rotate(-45deg);
}

.menu-mobile__right-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-mobile__bottom {
    margin: 0px 15px;
    display: flex;
    flex-direction: column;
}

/* ------------------ */
/*   MOBILE MENU FIX  */
/* ------------------ */

.menu-mobile__links {
    text-decoration: none;
    color: var(--black);
    margin: 15px 0;
    font-size: 20px;
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: fit-content;
    padding-left: 0;
}

    .menu-mobile__links.menu__current-page::after {
        display: none !important;
    }

    .menu-mobile__links::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        height: 2px;
        width: 0; /* شروع */
        background-color: var(--blue);
        transition: width .25s ease;
    }

    .menu-mobile__links.menu__current-page::after {
        width: 100% !important;
        display: block !important;
    }



.footer {
    margin-bottom: 115px;
}

.footer__fov {
    border-bottom: 5px solid transparent;
    border-image: linear-gradient( 90deg, rgba(227, 242, 253, 1) 0%, rgba(71, 167, 243, 1) 35%, rgba(227, 242, 253, 1) 100% ) 1 round;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer__fov-logo {
    width: 150px;
    margin-bottom: 15px;
}

.footer__fov-text {
    font-size: 20px;
    line-height: 1.4;
}

.footer__section-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.footer__section__title {
    font-weight: bold;
    font-size: 18px;
}

.footer__section__link {
    text-decoration: none;
    line-height: 1.4;
    color: var(--black);
    width: fit-content;
}

    .footer__section__link:hover {
        color: var(--graySmoke);
    }

.trial {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    background-color: var(--orange);
    z-index: 99999;
    bottom: 0;
    border-top-left-radius: var(--largeRadius);
    border-top-right-radius: var(--largeRadius);
}

.trial__link {
    padding: 5px;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: var(--graySmoke);
    font-weight: bold;
}

/* ------------------ */
/* LANGUAGE SWITCHER  */
/* ------------------ */
.menu__right-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-mobile__right-side {
    gap: 8px;
}

.language-switcher {
    position: relative;
    flex: 0 0 auto;
}

    .language-switcher > summary {
        list-style: none;
    }

        .language-switcher > summary::-webkit-details-marker {
            display: none;
        }

.language-switcher__button {
    width: 34px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mediumRadius);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: var(--black);
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

    .language-switcher__button:hover,
    .language-switcher__button:focus-visible {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-1px);
        outline: none;
    }

    .language-switcher__button svg {
        width: 22px !important;
        height: 22px !important;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.language-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    min-width: 150px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: var(--mediumRadius);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.language-switcher__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.language-switcher__flag {
    display: inline-block;
    flex: 0 0 22px;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.language-switcher__flag--en {
    background: url("/images/flags/gb.svg") center / cover no-repeat;
}

.language-switcher__flag--de {
    background: url("/images/flags/de.svg") center / cover no-repeat;
}

.language-switcher__flag--fr {
    background: url("/images/flags/fr.svg") center / cover no-repeat;
}

.language-switcher__flag--pl {
    background: url("/images/flags/pl.svg") center / cover no-repeat;
}

.language-switcher__flag--it {
    background: url("/images/flags/it.svg") center / cover no-repeat;
}

.language-switcher__flag--es {
    background: url("/images/flags/es.svg") center / cover no-repeat;
}

.language-switcher__name {
    display: inline-block;
}

/* Keep the language popup above the fixed mobile header without changing
   the normal collapsed mobile-menu overflow behavior. */
.language-switcher[open] {
    z-index: 100003;
}

@media (max-width: 991.98px) {
    .menu-mobile.menu-mobile--language-open {
        overflow: visible !important;
        z-index: 100002;
    }

    /* Language picker and hamburger navigation are independent states.
       overflow must be visible for the popup, but the hamburger links must
       stay completely hidden while the language picker is open. */
    .menu-mobile--language-open .menu-mobile__bottom {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .menu-mobile--language-open .menu-mobile__top {
        position: relative;
        z-index: 100003;
    }

    .menu-mobile--language-open .language-switcher__menu {
        z-index: 100004;
    }
}

.language-switcher__item:hover,
.language-switcher__item:focus-visible,
.language-switcher__item--active {
    background: rgba(0, 0, 0, 0.07);
    color: var(--black);
    outline: none;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .language-switcher__button {
        width: 34px;
        height: 34px;
    }

        .language-switcher__button svg {
            width: 20px !important;
            height: 20px !important;
        }
}


/* Keep translated desktop labels compact without affecting the English UI. */
@media (min-width: 992px) {
    html:not([lang="en"]) .menu__items {
        gap: 1rem !important;
    }

        html:not([lang="en"]) .menu__items a {
            font-size: 14px;
            white-space: nowrap;
        }
}

@media (min-width: 1200px) {
    html:not([lang="en"]) .menu__items {
        gap: 1.4rem !important;
    }
}
