/* --------------------------------------
            Navbar Area
-------------------------------------- */

.navbar-toggler {
    color: #eee !important;
}

/* --------------------------------------
   Landing navbar (layout 1)

   The bar used to be a full-width strip filled with the theme gradient
   (--hero-bg-color). Because the hero underneath paints the *same*
   gradient across a much taller box, the two never lined up and left a
   hard seam right under the menu - and on the inner pages (pricing,
   contacts, ...) the strip just sat on the dark page as a flat band.

   It is now a floating, rounded "pill" inset from the top: it still
   carries the theme gradient (plus a glass sheen), but reads as a
   deliberate element sitting *over* the page instead of a mis-aligned
   continuation of it. That works the same on every landing page and in
   both themes, since the pill brings its own background - the text on
   it is always light, whatever is scrolling past behind.
-------------------------------------- */

.home-page-navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0;
    left: 0;
    padding: 14px 0;
    transition: padding .35s cubic-bezier(.4, 0, .2, 1);
}

.home-page-navbar .navbar {
    background: transparent !important;
    padding: 0;
}

/* The pill itself. */
.home-page-navbar .navbar>.container {
    position: relative;
    /* Logical padding so the roomier side follows the logo in RTL. */
    padding: 9px 10px;
    padding-inline-start: 24px;
    padding-inline-end: 10px;
    border-radius: 999px;
    /* Glass sheen layered over the configured theme gradient. */
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, 0) 58%),
        var(--hero-bg-color, linear-gradient(to left top, #2471ee, #0066ca, #005aa6, #124d83, #1f3f60));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 10px 30px -14px rgba(5, 12, 28, .6);
    transition: padding .35s cubic-bezier(.4, 0, .2, 1),
        border-radius .35s cubic-bezier(.4, 0, .2, 1),
        box-shadow .35s ease,
        border-color .35s ease;
}

/* Hairline highlight along the top edge - gives the glass an edge to
   catch the light instead of ending on a flat 1px border. */
.home-page-navbar .navbar>.container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* Scrolled state - the bar tightens up and lifts off the page. */
/* Vertical only - the horizontal inset is set per breakpoint below and
   a shorthand here would win over it and flatten the pill to the edge. */
.home-page-navbar.is-scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
}

.home-page-navbar.is-scrolled .navbar>.container {
    padding-top: 6px;
    padding-bottom: 6px;
    box-shadow: 0 20px 45px -20px rgba(5, 12, 28, .85);
    border-color: rgba(255, 255, 255, .24);
}

.home-page-navbar .navbar-brand .logo {
    max-height: 44px;
    width: auto;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}

.home-page-navbar.is-scrolled .navbar-brand .logo {
    max-height: 36px;
}

.home-page-navbar .navbar-nav {
    align-items: center;
    gap: 2px;
}

.home-page-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .3px;
    font-family: 'Poppins', sans-serif;
    /* Menu labels come from the language files, where some are stored
       lowercase ("pricing", "contacts") - normalise them so the row
       doesn't read as a mix of cases. */
    text-transform: capitalize;
    white-space: nowrap;
    padding: 8px 15px;
    border-radius: 999px;
    transition: color .25s ease, background-color .25s ease;
}

.home-page-navbar .navbar-nav .nav-link:hover,
.home-page-navbar .navbar-nav .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, .13);
}

/* layout_1.css paints the active item with `li.nav-item.active a
   { color: var(--primaryColor) !important }` - on the gradient pill a
   soft glass chip reads better than the accent color, so override it. */
.home-page-navbar .navbar-nav li.nav-item.active>.nav-link {
    color: #fff !important;
    background-color: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.home-page-navbar .navbar-nav .nav-link i {
    margin-inline-end: 4px;
}

/* Dropdowns opened from the pill (language list). */
.home-page-navbar .dropdown-menu {
    margin-top: 12px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: var(--card-color);
    box-shadow: 0 22px 45px -22px rgba(5, 12, 28, .75);
}

.home-page-navbar .dropdown-menu .dropdown-item {
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.home-page-navbar .dropdown-menu .dropdown-item:hover {
    background-color: var(--card-soft);
    color: var(--primaryColor);
}

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hamburger - a glass tile rather than a bare icon. */
.home-page-navbar .navbar-toggler {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff !important;
    background-color: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2) !important;
    transition: background-color .25s ease, transform .25s ease;
}

.home-page-navbar .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, .2);
}

.home-page-navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}

.home-page-navbar .navbar-toggler i {
    font-size: 17px;
    line-height: 1;
}

/* Open state: the bars become a close icon (f00d is fa-times/fa-xmark
   in both the 4.x and 6.x icon fonts this page loads). */
.home-page-navbar.nav-open .navbar-toggler {
    background-color: rgba(255, 255, 255, .22);
}

.home-page-navbar.nav-open .navbar-toggler i::before {
    content: "\f00d";
}

.btn.language-dropdown-toggle.dropdown-toggle {
    color: #ddd;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.language-dropdown-toggle:focus {
    box-shadow: none;
}

.language-dropdown-toggle>img {
    width: 27px;
    height: 27px;
    border-radius: 50%;
}

.btn.language-dropdown-toggle.dropdown-toggle:hover {
    background: var(--after-bg-color);
    border-radius: 20px;
}

.language-link {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dropdown-menu .language-link a {
    justify-content: flex-start !important;
    height: auto !important;
    width: 100% !important;
    padding: .6rem .8rem !important;
    border-bottom: 1px solid var(--border-color);
    gap: 10px !important;
    transition: all .3s ease-in-out;
    font-size: .9rem !important;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    transition: all .3s ease-in-out;
}

.theme-light .dropdown-menu .language-link a:hover {
    background: #ddd;
}

.theme-dark .dropdown-menu .language-link a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    background-color: var(--background-color);
}

.dropdown-menu .language-link a>img {
    width: 30px;

}

.theme-toggle-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 0 0 30px;
}

.theme-toggle-box:hover {
    transform: scale(1.05);
}

.theme-toggle-box .theme-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle-box .theme-icon.d-none {
    opacity: 0;
    transform: rotate(180deg) scale(0.3);
    pointer-events: none;
}

.theme-toggle-box .theme-icon.light {
    background-color: #00bcd41c;
    border: 1px solid #00BCD4;
    color: #ffffff;
}

.theme-toggle-box .theme-icon.dark {
    background-color: #1e293b;
    border: 1px solid var(--border-color);
    color: #fbbf24;
}

.theme-toggle-box .theme-icon i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.theme-toggle-box:active .theme-icon {
    transform: rotate(0deg) scale(0.9);
}

/* Theme icon entrance animation */
@keyframes iconEnter {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0.3);
    }

    60% {
        transform: rotate(10deg) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.theme-toggle-box .theme-icon:not(.d-none) {
    animation: iconEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Glow effect on hover for light theme */
.theme-light .theme-toggle-box:hover .theme-icon.light {
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

/* Glow effect on hover for dark theme */
body.theme-dark .theme-toggle-box:hover .theme-icon.dark {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    font-size: 0.95rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.brand-logo-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, #3d5a80, #1b2838);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
    color: #fff;
    flex-shrink: 0;
}

.brand-text-ar {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-gradient-pill {
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff !important;
    background: linear-gradient(90deg, var(--primaryColor) 0%, var(--primaryRGB-25) 100%);
    font-family: 'Poppins', sans-serif;
    transition: all .3s ease-in-out;
}

.btn-gradient-pill:hover {
    filter: brightness(1.05);
    box-shadow: 0 2px 7px var(--primaryColor);
}

.nav-side-link {
    font-size: 14px;
    letter-spacing: 0.8px;
    font-weight: 400;
    white-space: nowrap;
    border: 1px solid var(--primaryRGB-25);
    color: var(--primaryColor) !important;
    background-color: var(--primaryRGB-25);
    padding: 7px 20px !important;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    transition: all .3s ease-in-out;
}

.nav-side-link:hover {
    background-color: var(--primaryRGB-50);
}

/* Inside the pill both buttons sit on the theme gradient, so the
   accent-tinted defaults above wash out - give the primary action a
   glow and the secondary one a glass outline. */
.home-page-navbar .btn-gradient-pill {
    padding: .55rem 1.4rem;
    box-shadow: 0 8px 20px -8px var(--primaryColor);
}

.home-page-navbar .btn-gradient-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px var(--primaryColor);
}

.home-page-navbar .nav-side-link {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .3);
    background-color: rgba(255, 255, 255, .11);
    text-transform: capitalize;
    padding: 8px 20px !important;
    border-radius: 999px;
}

.home-page-navbar .nav-side-link:hover {
    background-color: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .5);
}

/* Theme toggle / language button, matched to the glass chips above. */
.home-page-navbar .theme-toggle-box {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .2);
    overflow: visible;
    transition: background-color .25s ease;
}

.home-page-navbar .theme-toggle-box:hover {
    background-color: rgba(255, 255, 255, .22);
    transform: none;
}

/* themeToggle.php nudges the button with margins meant for the admin
   navbar - zero them out so the icon centres inside the circle. */
.home-page-navbar .theme-toggle-box .theme-toggle.admin {
    margin-top: 0;
}

.home-page-navbar .theme-toggle-box .theme-toggle.admin .theme-toggle-btn {
    margin-top: 0 !important;
    width: 34px;
    height: 34px;
}

.home-page-navbar .btn.language-dropdown-toggle.dropdown-toggle {
    color: #fff;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .2);
}

.home-page-navbar .btn.language-dropdown-toggle.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, .22);
    border-radius: 999px;
}

.home-page-navbar .language-dropdown-toggle>img {
    width: 22px;
    height: 22px;
}

.nav-flag {
    font-size: 1.15rem;
    line-height: 1;
    margin-right: 0.35rem;
}

.small-divice-action {
    display: none;
}

/* --------------------------------------
   Landing navbar - collapsed (below lg)

   The toggled panel lives *inside* the pill, so opening it grows the
   pill into a rounded card instead of dropping a separate bordered box
   underneath it. One rule set covers every width below the Bootstrap
   `lg` breakpoint - the old 320-426 / 427-991 split repeated itself and
   left a 426-427px gap where neither applied.
-------------------------------------- */

@media (max-width: 991.98px) {

    .small-divice-action {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .small-divice-action .theme-toggle-box {
        display: flex !important;
    }

    .small-divice-action .dropdown-toggle::after {
        display: none;
    }

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

    /* Already shown in .small-divice-action next to the hamburger. */
    .nav-action-btn .language-dropdown.dropdown,
    .nav-action-btn .theme-toggle-box {
        display: none;
    }

    /* responsive.css forces `.container { width: 100%; max-width: 100vw }`
       below 992px, so the pill's inset has to come from the fixed
       wrapper - otherwise it runs edge to edge. */
    .home-page-navbar {
        padding: 10px 14px;
    }

    .home-page-navbar .navbar>.container {
        padding: 9px 12px;
        padding-inline-start: 16px;
        padding-inline-end: 12px;
        border-radius: 26px;
    }

    .home-page-navbar.is-scrolled .navbar>.container {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    /* Panel: no border/box of its own, just a divider separating it
       from the header row it drops out of. */
    .home-page-navbar .navbar-collapse {
        width: 100%;
        border: 0;
        padding: 0;
        /* layout_1.css drops a dark box behind the panel between
           769-991px - the pill is the surface now, so clear it. */
        background: transparent;
    }

    .home-page-navbar .navbar-collapse.show,
    .home-page-navbar .navbar-collapse.collapsing {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .home-page-navbar .navbar-collapse.show {
        padding-top: 10px;
        /* On short viewports (landscape phones, small tablets) the full
           menu is taller than the screen - keep it inside the pill and
           let it scroll instead of running off the bottom. */
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .home-page-navbar .navbar-collapse.show::-webkit-scrollbar {
        width: 4px;
    }

    .home-page-navbar .navbar-collapse.show::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, .3);
        border-radius: 4px;
    }

    .home-page-navbar .navbar-nav {
        align-items: stretch;
        gap: 2px;
        text-align: left !important;
        margin-bottom: 10px;
    }

    .home-page-navbar .navbar-nav .nav-link {
        padding: 11px 14px;
        border-radius: 12px;
    }

    .home-page-navbar .navbar-nav li.nav-item.active>.nav-link {
        border-radius: 12px;
    }

    /* Language dropdown has nowhere to pop to inside the panel - let it
       push the panel instead of overflowing the pill. */
    .home-page-navbar .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 4px 0 0;
        box-shadow: none;
    }

    /* Actions stack full width and read as the panel's footer. */
    .home-page-navbar .nav-action-btn {
        /* !important only to beat layout_1.css's `.landing-page
           .nav-side-group { align-items: flex-start !important }`. */
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
        margin-top: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .home-page-navbar .nav-action-btn .btn-gradient-pill,
    .home-page-navbar .nav-action-btn .nav-side-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 11px 15px !important;
        border-radius: 999px;
    }
}

/* Tablets / large phones: full-width rows leave a lot of dead space, so
   the panel centres itself and the two actions sit side by side. Phones
   keep the stacked, full-width layout above. */
@media (min-width: 576px) and (max-width: 991.98px) {

    .home-page-navbar .navbar-nav {
        align-items: center;
        text-align: center !important;
    }

    .home-page-navbar .navbar-nav .nav-item {
        width: auto;
    }

    .home-page-navbar .navbar-nav .nav-link {
        padding: 10px 22px;
    }

    .home-page-navbar .nav-action-btn {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center;
        gap: 12px;
    }

    .home-page-navbar .nav-action-btn .btn-gradient-pill,
    .home-page-navbar .nav-action-btn .nav-side-link {
        width: auto;
        min-width: 160px;
    }
}


/* cookies btn
================================================== */
.cookie-container {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #2f3640;
    color: #f5f6fa;
    padding: 10px 32px;
    box-shadow: 0 -2px 16px rgba(47, 54, 64, 0.39);

    transition: 400ms;
}

.cookie-container.active {
    bottom: 0;
}

.cookie-container p {
    margin-top: 5px;
    color: #fff !important;
}

.cookie-container a {
    color: rgb(3, 127, 255) !important;
    text-decoration: underline;
}

.cookie-container.active {
    display: flex;
    z-index: 99999;
}


.cookie-btn {
    background: #e84118;
    border: 0;
    color: #f5f6fa;
    padding: 0px 25px;
    font-size: 15px;
    margin-bottom: 16px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 7px;
    margin-left: 20px;
}

/* cookies btn
================================================== */