/* ----- CONTAINER (matches original structure, but padding adjusted) ----- */
.custom-container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 20px; */
    width: 100%;
}

/* Navbar wrapper - REDUCED vertical padding (tight top/bottom) */
.navbar-wrapper {
    background: #F0FFFB;
    border-bottom: 1px solid #eef2f8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.navbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
    /* consistent but compact */
}

/* Columns base - flexible 3-column layout */
.nav-col {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.col-left {
    flex: 0 0 auto;
    justify-content: flex-start;
}

.col-center {
    flex: 2 1 auto;
    justify-content: center;
    flex-shrink: 0;
}

.col-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.9rem;

}

/* Logo styling - compact but clear */
.logo-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    line-height: 1;
}

.logo-link:hover {
    transform: scale(1.02);
}

.nav-logo {
    max-width: 103px;
    height: auto;
    width: auto;
    display: block;
    border-radius: 10px;
}

/* ---------- DESKTOP NAVIGATION (horizontal) ---------- */
.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a2c3e;
    padding: 6px 0;
    display: inline-block;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
    letter-spacing: -0.2px;
}

.nav-link:hover {
    color: #1f6e8c;
    border-bottom-color: #1f6e8c;
}

/* Desktop Dropdown (ESA By States) */
.dropdown {
    position: relative;
}

.has-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.chevron-icon {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 38px;
    left: -16px;
    background: white;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    border-radius: 18px;
    padding: 0.6rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    list-style: none;
    border: 1px solid #e9edf2;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e2f3d;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f0f6fa;
    color: #0f4b5e;
}

/* Right side buttons */
.btn-get-started {
    background: #FBAC2C;
    color: white;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.btn-get-started:hover {
    background: white;
    border: 1px solid #FBAC2C;
    color: #FBAC2C;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.user-icon-link {
    background: #BB98FD;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1f5e74;
    font-size: 1.3rem;
    transition: all 0.2s;
    text-decoration: none;
}

.user-icon-link:hover {
    background: #FBAC2C;
    transform: scale(1.04);
    color: #0b3b4b;
}

.user-icon-link i {
    color: white;
}

/* ---------- MOBILE & TABLET (Hamburger fully visible) ---------- */
.mobile-menu-toggle {
    display: none;
    background: #f1f5f9;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #0f3b4f;
    padding: 8px 12px;
    border-radius: 40px;
    transition: 0.2s;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    background: #e2e8f0;
}

/* mobile overlay & drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-container {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 2100;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    /* padding: 1.2rem 1.2rem; */
    overflow-y: auto;
}

.mobile-nav-container.open {
    right: 0;
}

.mobile-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    margin-bottom: 1.2rem;
    color: #334155;
    width: 32px;
}

.mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 20px;
}

.mobile-menu-list li {
    border-bottom: 1px solid #ecf3f8;
    padding-bottom: 0.5rem;
}

.mobile-menu-list a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #1a2c3e;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-submenu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.7rem;
    display: none;
    flex-direction: column;
    gap: 0.7rem;
}

.mobile-submenu.open {
    display: flex;
}

.mobile-submenu a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c4b5e;
    padding: 4px 0;
}

.mobile-dropdown-toggle {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #1f5e74;
    transition: 0.2s;
}

/* RESPONSIVE BREAKPOINTS: Show hamburger and adjust spacing */
@media (max-width: 950px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .col-center {
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    /* reduce vertical padding a bit more on mobile */
    .navbar-row {
        /* padding: 6px 0; */
        min-height: 64px;
    }
}

@media (max-width: 680px) {
    .custom-container {
        /* padding: 0 18px; */
    }

    .btn-get-started {
        padding: 6px 16px;
        font-size: 0.75rem;
    }

    .user-icon-link {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .nav-logo {
        max-width: 100px;
    }

    .navbar-row {
        padding: 5px 0;
        min-height: 60px;
    }
}

/* For extra small devices */
@media (max-width: 480px) {
    .col-right {
        gap: 0.5rem;
    }

    .btn-get-started {
        /* padding: 5px 12px;
        font-size: 0.7rem; */
        display: none;
    }

    .user-icon-link {
        /* width: 34px;
        height: 34px; */
        display: none;
    }

    .mobile-menu-toggle {
        padding: 6px 10px;
        font-size: 1.4rem;
    }
}

/* active page underline effect */
.nav-link.active-page {
    color: #1f6e8c;
    border-bottom-color: #1f6e8c;
}

/* small accessibility & touch */
button {
    cursor: pointer;
}