﻿.ex-btn--login:hover {
    /*background-color: #902d31;*/
    background-color: #ff755b;
    color: white;
    box-shadow: none !important;
    border-radius: 4px;
    border-width: initial !important;
    border-style: none !important;
    border-color: initial !important;
    border-image: initial !important;
}

.menu-btn {
    width: auto;
    border: none;
}

.dropdown-menu {
    border-width: 2px;
    border-style: solid;
    border-color: #902d31;
    border-image: initial;
}

.btn-group p {
    margin-top: 10px;
    /* margin-bottom: 1rem; */
    margin-left: 10px;
    color: #902d31;
}

.dropdown-item.active, .dropdown-item:active {
    color: #333;
    text-decoration: none;
    background-color: #f8f9fa;
}

.btn-group:hover > .dropdown-menu {
    display: block; /* override Bootstrap's display:none */
    margin-top: 0; /* prevents a small gap that can break hover */
}
/* container fades / slides */
.search-bar {
    max-width: 640px;
    width: 100%;
    transition: opacity .25s ease, transform .25s ease;
}

    .search-bar.showing { /* during opening */
        display: flex !important;
        opacity: 0;
        transform: translateY(-6px);
    }

    .search-bar.show { /* fully visible */
        opacity: 1;
        transform: translateY(0);
    }


/* === nav baseline =================================================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    position: relative;
    z-index: 200;
}

.logo img {
    height: 34px;
}

.icon-btn {
    background: none;
    border: 0;
    font-size: 1.25rem;
    color: #e56a54; /* your theme orange */
    padding: 0.25rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}

    .nav-links a {
        color: #0d2240;
        text-decoration: none;
        font-weight: 600;
    }

/* === full‑width search overlay ====================================== */
.full-search {
    position: absolute;
    top: 50%; /* keep centred vertically */
    left: 70%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 840px;
    display: none; /* hidden until active */
}

    .full-search.open {
        display: flex;
    }

    .full-search input {
        flex: 1 1 auto;
        padding: 0.75rem 3rem 0.75rem 1rem; /* room for the icon */
        font-size: 1.1rem;
        border: 2px solid #f1f1f1;
        border-radius: 6px;
        outline: none;
    }

    .full-search .input-icon {
        position: absolute;
        right: 3.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #a5b0c2;
        pointer-events: none;
    }

    .full-search .close-btn {
        margin-left: 0.75rem;
        font-size: 1.5rem;
        color: #0d2240;
    }

/* optional live‑result dropdown */
#fullSearchResults {
    position: absolute;
    top: 110%;
    left: 0;
    right: 3.5rem;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    max-height: 340px;
    overflow-y: auto;
    display: none;
}

    #fullSearchResults li {
        padding: 0.5rem 1rem;
        /*cursor: pointer;   */     
    }
    #fullSearchResults li.link {
        padding: 0.5rem 1rem;
        padding-left:30px;
        cursor: pointer;
        color: #ff755b;
    }

        #fullSearchResults li:hover {
            /*background: #fff4f1;*/
           /* text-decoration:underline;*/
        }
        #fullSearchResults li.link:hover {
            /*background: #fff4f1;*/
            text-decoration: underline;
        }

body.search-active .nav-links,
body.search-active #navSearchBtn {
    display: none;
}
/* hide menu while searching */
/* === Responsive (Mobile) Adjustments ==================================== */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }

        .nav-links.show {
            display: flex;
        }

    .btn-group {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        background: #f9f9f9;
    }

    .full-search {
        width: 90%;
        left: 50%;
    }
}
