/**
 * Header V7 (am-header_eight) theme accents — matches find-coaches / home-seven (--am-btn-color).
 * :root --blue and --am-btn-color are set in layouts/frontend-app.blade.php
 */
.am-header_two.am-header_eight .am-logo a {
    max-width: 90px;
}
.am-header_two.am-header_eight .am-logo img {
    width: 90px;
}
.am-header_eight .am-loginbtns .am-btn:hover,
.am-header_eight .am-loginbtns .am-white-btn:hover,
.am-header_eight .am-header_two_wrap .am-navigation .am-navbar-toggler {
    background: linear-gradient(135deg, #7DB9F9 0%, #006EFF 100%);
    border-color: #006EFF;
}
.am-header_eight .am-loginbtns .am-white-btn:hover {
    color: #fff;
    border-color: #006EFF;
}
.am-header_eight .am-loginbtns .am-btn:hover {
    color: #fff;
}

/* Desktop: keep nav + account controls on one row */
@media (min-width: 1200px) {
    .am-header_two.am-header_eight .am-header_actions {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        gap: 14px;
    }

    .am-header_two.am-header_eight .am-header_actions .am-navigation {
        flex: 1 1 auto;
        width: auto;
    }

    .am-header_two.am-header_eight .am-header_actions .am-header_user,
    .am-header_two.am-header_eight .am-header_actions .am-loginbtns {
        flex: 0 0 auto;
    }

    .am-header_two_wrap .am-loginbtns .am-desktop-guest-cta {
        display: inline-flex !important;
    }
}

/* Mobile / tablet: single compact header row; dropdown below header (not page bottom) */
@media (max-width: 1199.98px) {
    html,
    body,
    .am-bodywrap {
        overflow-x: clip;
        max-width: 100%;
    }

    .am-header_two.am-header_eight {
        position: relative;
        z-index: 1000;
        max-width: 100%;
    }

    .am-header_two.am-header_eight > .container {
        max-width: 100%;
    }

    .am-header_two.am-header_eight .am-header_two_wrap {
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .am-header_two.am-header_eight .am-logo {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 9.5rem);
    }

    .am-header_two.am-header_eight .am-header_actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        flex: 0 0 auto;
        min-width: 0;
    }

    .am-header_two.am-header_eight .am-navigation {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
        position: static;
        display: flex;
        justify-content: flex-end;
    }

    .am-header_two.am-header_eight .am-header_actions .am-navigation {
        margin-left: 0 !important;
    }

    .am-header_two.am-header_eight .am-header_two_wrap .am-header_user {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: 0 !important;
        gap: 8px;
        flex-shrink: 0;
    }

    .am-header_two.am-header_eight .am-header_user .am-switch-language,
    .am-header_two.am-header_eight .am-header_user .am-multi-currency,
    .am-header_two.am-header_eight .am-header_user .am-multi-lang {
        display: none !important;
    }

    .am-header_two.am-header_eight .am-loginbtns {
        width: auto !important;
        flex: 0 0 auto;
        margin-left: 0 !important;
    }

    .am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul#tenavbar.navbar-collapse:not(.show):not(.collapsing) {
        display: none !important;
    }

    .am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul#tenavbar.navbar-collapse.show,
    .am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul#tenavbar.navbar-collapse.collapsing {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        margin-top: 6px;
        transform: none;
        z-index: 1001;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
    }

    .am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul#tenavbar > li > a {
        border-radius: 0 !important;
    }
}

/* Desktop nav: pill highlight on active/hover (e.g. Find a Coach on /find-coaches) */
@media (min-width: 1200px) {
    .am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul#tenavbar > li.active > a,
    .am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul#tenavbar > li:hover > a {
        border-radius: 9999px !important;
    }
}

/* Nav links: thicker weight + black text */
.am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul > li > a,
.am-header_two.am-header_eight .am-header_two_wrap .am-navigation .sub-menu > li > a {
    color: #000 !important;
    font-weight: 700 !important;
}

.am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul > li.active > a,
.am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul > li:hover > a,
.am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul > li > a:hover {
    color: #000 !important;
    font-weight: 700 !important;
}

.am-header_two.am-header_eight .am-header_two_wrap .am-navigation > ul > li > a > i::before {
    color: #000 !important;
}
