/* ==========================================================
   ANNOUNCEMENT BAR
========================================================== */

.announcement-section {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: var(--z-loader);

    background: var(--primary-soft);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.announcement-container {
    width: fit-content;
    min-height: 34px;
    margin: 0 auto;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    text-decoration: none;
    cursor: pointer;
}

.announcement-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;

    border-radius: 50%;
    background: var(--primary);

    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

.announcement-text {
    margin: 0;

    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1;
    font-weight: var(--fw-medium);
}

.announcement-text span {
    margin-left: 5px;

    color: var(--primary);
    font-weight: var(--fw-semibold);
}

.announcement-container > svg {
    width: 13px;
    height: 13px;

    color: var(--primary);
    stroke-width: 2;
    transition: transform .25s ease;
}

.announcement-container:hover > svg {
    transform: translateX(3px);
}


/* ==========================================================
   NAVBAR
========================================================== */

.navbar{
    position: fixed;
    top: 45px !important;
    left: 0;
    width: 100%;
    z-index: var(--z-modal);
}

.navbar-container {
    width: 100%;
    max-width: var(--container);
    min-height: 68px;

    margin: 0 auto;
    padding: 13px 10px 13px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;




    border-radius: 18px;



    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.06);
   
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.07),
        0 3px 10px rgba(15, 23, 42, 0.035),
        0 1px 2px rgba(15, 23, 42, 0.025);
}


/* ==========================================================
   LOGO
========================================================== */

.logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
    text-decoration: none;
}

.logo-image {
    width: 39px;
    height: 39px;
    min-width: 39px;

    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;

    line-height: 1;
}

.logo-text span {
    color: var(--blue-bright) !important;

    font-size: 22px;
    font-weight: var(--fw-extra);

    line-height: .95;
    letter-spacing: -0.7px;
}

.logo-text small {
    margin-top: 5px;

    color: var(--text-muted) !important;

    font-size: 8px;
    font-weight: var(--fw-bold);

    line-height: 1;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}


/* ==========================================================
   NAVIGATION
========================================================== */

#nav-menu {
    display: flex;
    align-items: center;

    gap: 6px;
}

.header-nav,
.dropdown-trigger {
    position: relative;

    min-height: 42px;
    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: var(--text-secondary);

    font-family: var(--font-main);
    font-size: 14px !important;
    font-weight: var(--fw-medium) !important;

    line-height: 1;
    white-space: nowrap;

    text-decoration: none;
    cursor: pointer;

    transition:
        color .25s ease,
        background .25s ease;
}

.header-nav:hover,
.dropdown-trigger:hover,
.dropdown-trigger.active {
    color: var(--primary);

    background: var(--primary-light);
}


/* ==========================================================
   DROPDOWN
========================================================== */

.nav-dropdown {
    position: relative;

    display: inline-flex;
    align-items: center;
}

.nav-dropdown::after {
    content: "";

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    height: 14px;
}

.dropdown-trigger {
    gap: 6px;
}

.dropdown-arrow {
    width: 13px;
    height: 13px;

    flex-shrink: 0;

    transition: transform .25s ease;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 12px);
    left: 50%;

    width: 570px;
    min-width: 570px;

    padding: 10px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;

    background: rgba(255, 255, 255, .98);

    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, .12),
        0 4px 15px rgba(15, 23, 42, .04);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(8px)
        scale(.98);

    transform-origin: top center;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;

    z-index: 1000;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0)
        scale(1);
}


/* ==========================================================
   DROPDOWN ITEMS
========================================================== */

.dropdown-item {
    min-width: 0;
    padding: 12px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-radius: 12px;

    color: var(--text-main);
    text-decoration: none;

    transition:
        background .25s ease,
        transform .25s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
}

.dropdown-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-soft);

    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 10px;

    transition:
        background .25s ease,
        transform .25s ease;
}

.dropdown-item:hover .dropdown-icon {
    background: #FFFFFF;
    transform: translateY(-1px);
}

.dropdown-icon i,
.dropdown-icon svg {
    width: 17px !important;
    height: 17px !important;

    color: var(--primary) !important;
    stroke: var(--primary) !important;
}

.dropdown-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.dropdown-title {
    display: block;

    color: var(--text-main);

    font-size: 13px;
    font-weight: var(--fw-semibold);
}

.dropdown-desc {
    display: block;

    color: var(--text-muted);

    font-size: 11px;
    line-height: 1.45;
}

.dropdown-divider {
    grid-column: 1 / -1;

    height: 1px;

    margin: 4px 8px;

    background: rgba(15, 23, 42, .07);
}

.dropdown-item-all {
    grid-column: 1 / -1;

    min-height: 38px;

    justify-content: center;

    color: var(--primary);

    font-size: 12px;
    font-weight: var(--fw-semibold);
}

.dropdown-item-all:hover {
    background: var(--primary-light);
}


/* ==========================================================
   HEADER CTA
========================================================== */

.header-cta {
    min-height: 46px;

    margin-left: 6px;
    padding: 0 20px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 50px !important;

    background: var(--gradient-primary) !important;

    color: var(--text-white) !important;

    font-size: 13px !important;
    font-weight: var(--fw-semibold) !important;

    white-space: nowrap;
    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .16) !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease !important;
}
.radius-header {
    border-radius: 14px !important;
}
.header-cta:hover {
    transform: translateY(-1px);

    filter: brightness(1.03);

    box-shadow:
        0 12px 26px rgba(37, 99, 235, .22) !important;
}

.header-cta .btn-icon {
    width: 15px;
    height: 15px;

    transition: transform .25s ease;
}

.header-cta:hover .btn-icon {
    transform: translateX(3px);
}


/* ==========================================================
   MOBILE MENU BUTTON
========================================================== */

.menu-toggle {
    width: 42px;
    height: 42px;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border-radius: 11px;

    cursor: pointer;

    transition: background .25s ease;
}

.menu-toggle:hover {
    background: var(--primary-light);
}

.menu-toggle span {
    width: 21px !important;
    height: 2px;

    display: block;

    background: var(--text-main);

    border-radius: var(--radius-full);

    transition:
        transform .3s ease,
        opacity .2s ease,
        background .25s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================
   TABLET / MOBILE
========================================================== */

@media (max-width: 1024px) {

    .announcement-container {
        min-height: 32px;
    }

    .navbar{
    padding-left:8px;
    padding-right:8px;
}

    .navbar-container {
        min-height: 62px;

        padding: 14px 10px 14px 14px;

        border-radius: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    #nav-menu {
        position: absolute;

        top: calc(100% + 8px);
        left: 0;

        width: 100%;

        padding: 10px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 2px;

        background: rgba(255, 255, 255, .98);

        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 15px;

        box-shadow: 0 20px 50px rgba(15, 23, 42, .12);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease;
    }

    #nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }

    .header-nav,
    .dropdown-trigger {
        width: 100%;
        min-height: 44px;

        padding: 0 12px;

        justify-content: flex-start;

        border-radius: 9px;

        font-size: 14px !important;
    }

    .nav-dropdown {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        overflow: visible;
    }

    .dropdown-trigger {
        position: relative;
    }

    .dropdown-trigger .dropdown-arrow {
        margin-left: auto;
    }

    .dropdown-menu {
        position: static;

        width: 100%;
        min-width: 0;

        padding: 0;

        display: block;

        border: 0;
        border-radius: 10px;

        background: var(--bg-main);

        box-shadow: none;
        backdrop-filter: none;

        opacity: 0;
        visibility: hidden;

        max-height: 0;

        overflow: hidden;

        transform: none;

        transition:
            max-height .35s ease,
            opacity .25s ease,
            padding .25s ease;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 650px;

        padding: 6px;

        opacity: 1;
        visibility: visible;

        transform: none;
    }

    .dropdown-item {
        padding: 9px;
    }

    .dropdown-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .dropdown-desc {
        font-size: 10px;
    }

    .dropdown-divider {
        margin: 4px;
    }

    .header-cta {
        width: 100%;

        min-height: 45px;

        margin: 6px 0 0;
        justify-content: center;

        border-radius: 10px !important;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 560px) {
    
    .navbar {
        top: 42px  !important;
        padding: 2px 1px;
    }

    .announcement-text {
        font-size: 11px;
    }

    .announcement-text span {
        display: none;
    }

    .navbar {
        padding-left: 8px;
        padding-right: 8px;
    }

    .navbar-container {
        border-radius: 14px;
    }

    .logo-image {
        width: 39px;
        height: 39px;
        min-width: 35px;
    }

    .logo-text span {
        font-size: 22px;
    }

    .logo-text small {
        margin-top: 4px;

        font-size: 8px;
        letter-spacing: 1.7px;
    }

    .dropdown-desc {
        display: none;
    }
}
