/* ========================================= */
/* BLACK HEADER STYLES                       */
/* ========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0a0b14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

.navbar .nav-container {
    max-width: 1240px;
    margin: auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    @media (max-width: 768px) {
        padding: 0 16px;
    }
}

.logo,
.nav-actions {
    flex: 1;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.nav-links.desktop-only {
    flex: 0 0 auto;
    display: flex;
    gap: 32px;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.4px;
}

.logo__icon-image {
    width: 36px;
    height: 36px;
}

.logo-box {
    background: #2563eb;
    color: #ffffff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-links a,
.header__nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.header__nav-link:hover {
    color: #ffffff;
}

/* BUTTONS CORE (Needed for header) */
.navbar {
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
        white-space: nowrap;
        text-decoration: none;
        color: inherit;
    }

    .btn-signin {
        background: transparent;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .btn-signin:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .btn-get-started {
        background: var(--Primary-Gradient, linear-gradient(93deg, #0257FA 2.87%, #191BC5 96.99%)) !important;
        color: #ffffff;
        padding: 10px 24px;
    }

    .btn-get-started:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    /* MENU TOGGLE */
    .menu-toggle {
        display: none;
        flex-direction: column;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 1000;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #ffffff;
        transition: all 0.3s ease;
    }

    &.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

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

    /* MOBILE MENU DROPDOWN */
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background: #0a0b14;
        z-index: 99;
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    &.menu-open .mobile-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 40px 24px;
        gap: 20px;
        width: 100%;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }

    .header__mobile-nav-link {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 0;
        padding: 12px 0;
        display: block;
        text-align: left;
        text-decoration: none !important;
        width: 100%;
        line-height: 1.2;
    }



    .mobile-menu-actions {
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: 100%;
        margin-top: 10px;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }


    .mobile-menu-actions .btn {
        flex: 1;
        width: auto;
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    /* RESPONSIVE HEADER */
    @media only screen and (max-width: 992px) {
        .nav-links.desktop-only {
            display: none;
        }

        .menu-toggle {
            display: flex;
        }

        .nav-container {
            gap: 12px;
        }

        .nav-actions .btn-signin {
            display: none;
        }

        .nav-actions .btn-get-started {
            display: inline-flex;
            /* override display: none if any */
            padding: 8px 12px;
            font-size: 0.8rem;
            border-radius: 6px;
        }

        .logo {
            font-size: 1rem;
            gap: 8px;
        }

        .logo__icon-image {
            width: 28px;
            height: auto;
        }

        .logo-box {
            width: 30px;
            height: 30px;
            font-size: 0.8rem;
        }

        .btn-get-started {
            padding: 8px 18px;
            font-size: 0.9rem;
        }
    }

    @media only screen and (max-width: 480px) {
        .nav-container {
            gap: 8px;
        }

        .logo {
            font-size: 0.9rem;
            gap: 6px;
        }

        .logo__icon-image {
            width: 28px;
            height: auto;
        }

        .nav-actions .btn-get-started {
            padding: 6px 10px;
            font-size: 0.75rem;
            border-radius: 4px;
        }
    }
}

/* ---- CUSTOM DROPDOWN & MEGA MENU STYLES ---- */
.has-dropdown-custom {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

/* Specific positioning for mega menu so it can go full width */
.has-dropdown-custom:has(.mega-menu-custom) {
    position: static;
}

.has-dropdown-custom .fa-chevron-down {
    transition: transform 0.3s ease;
    display: inline-block;
}

.has-dropdown-custom:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.has-dropdown-custom:hover .dropdown-menu-custom,
.has-dropdown-custom:hover .mega-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Standard Dropdown */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #11121d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    z-index: 1000;
}

.dropdown-item-custom {
    display: block;
    padding: 10px 16px;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

/* Mega Menu - Full Width */
.mega-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #11121d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    z-index: 1000;
}

.mega-menu-container-custom {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


.mega-col h4 {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    opacity: 0.5;
}

.mega-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mega-col-header h4 {
    margin-bottom: 0;
}

.see-all {
    font-size: 0.85rem;
    color: #2563eb !important;
    text-decoration: none !important;
    font-weight: 600;
}

.mega-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    margin: 0 -12px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.mega-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mega-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mega-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.mega-item-content strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
}

.mega-item-content span {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
    white-space: normal;
}

/* Mobile Nested Nav */
.mobile-nav-item-with-sub {
    width: 100%;
}

.mobile-nav-toggle {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.mobile-nav-toggle i {
    transition: transform 0.3s ease;
}


.mobile-nav-toggle:hover {
    color: #2563eb;
}

.mobile-nav-sub-menu {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: 10px;
    padding-left: 20px;
    margin-bottom: 20px;
}

.mobile-sub-section {
    margin-bottom: 24px;
}

.mobile-sub-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.header__mobile-nav-link.sub-link {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px !important;
    color: #94a3b8;
    display: block;
    text-align: left;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.header__mobile-nav-link.sub-link:hover {
    color: #ffffff;
}

.see-all-link {
    color: #2563eb !important;
    font-weight: 600;
}


/* ---- NEW FOOTER STYLES ---- */
.new-footer {
    background: #0a0b14;
    padding: 100px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;

    @media (max-width: 768px) {
        padding: 0 24px;
    }

}


.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 60px;
}

.footer-header .footer-logo a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-header .footer-logo img {
    width: 54px;
    height: 54px;
}


.footer-top-right {
    text-align: right;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-socials a {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}



.footer-col h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 14px;
}

.footer-list a {
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: #ffffff;
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    text-align: center;
}


.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .new-footer {
        padding-top: 60px;
    }

    .footer-grid {

        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }

    .footer-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
    }

    .footer-top-right {
        text-align: left;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 40px;
    }

    .footer-header {
        padding-bottom: 30px;
        margin-bottom: 40px;
    }

    .footer-logo a {
        font-size: 1.1rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }
}