/* =========================================================
   Bob the Alien - New Global Header / Navigation Styles
   Used by header2.htm
   ========================================================= */

#bobHeader2 #logo,
.bobLogoBanner2 {
    width: 100%;
    background: #254288;
    text-align: center;
    border-bottom: 0;
    float: none;
    display: block;
    padding: 0;
}

.bobLogoBanner2 a {
    display: block;
}

.bobLogoBannerImage2 {
    display: block;
    width: 100%;
    height: auto;
}

/* -------------------------
   Top utility/search bar
   ------------------------- */

.bobTopBar2 {
    width: 100%;
    background: linear-gradient(180deg, #071b46 0%, #020819 100%);
    color: #ffffff;
    border-bottom: 4px solid #37acef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 22px;
    box-sizing: border-box;
    position: relative;
    z-index: 11000;
    font-family: 'Titillium Web', Arial, sans-serif;
}

.bobSearch2 {
    display: flex;
    align-items: center;
    min-width: 260px;
    max-width: 560px;
    flex: 1;
}

.bobSearchBox2 {
    display: flex;
    align-items: center;
    width: min(520px, 100%);
    background: #ffffff;
    border: 2px solid #1f7fd1;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
    position: relative;
    z-index: 12000;
}

.bobSearchBox2:focus-within {
    border-color: #ffdd24;
    box-shadow: 0 0 0 3px rgba(255, 221, 36, 0.35), 3px 3px 0 rgba(0,0,0,0.35);
}

.bobSearchIcon2 {
    color: #555555;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0 10px 0 13px;
    line-height: 1;
}

.bobSearch2 input[type="search"] {
    flex: 1;
    border: 0;
    padding: 10px 10px;
    font-size: 0.95rem;
    background: transparent;
    color: #111111;
    outline: none;
    min-width: 0;
}

.bobSearch2 input[type="search"]::placeholder {
    color: #666666;
}

.bobSearch2 button {
    align-self: stretch;
    border: 0;
    border-left: 2px solid #0f5fa8;
    background: linear-gradient(180deg, #1389e8 0%, #0759b4 100%);
    color: #ffffff;
    padding: 0 18px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 7px 7px 0;
}

.bobSearch2 button:hover,
.bobSearch2 button:focus {
    background: linear-gradient(180deg, #20a2ff 0%, #064c9b 100%);
}

.bobUtilityLinks2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    white-space: nowrap;
}

.bobUtilityLink2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.bobUtilityLink2:hover,
.bobUtilityLink2:focus {
    color: #ffdd24;
    text-decoration: none;
}

.bobUtilityIcon2 {
    color: #ffdd24;
    font-size: 1.2rem;
    line-height: 1;
}

.bobUtilityDivider2 {
    width: 2px;
    height: 24px;
    background: rgba(255,255,255,0.45);
    display: inline-block;
}

.visuallyhidden2 {
    position: absolute;
    left: -9999px;
}

/* -------------------------
   Search suggestions dropdown
   ------------------------- */

.bobSearchSuggestions2 {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0 0 10px 10px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.45);
    z-index: 13000;
    overflow: hidden;
}

.bobSearchSuggestionItem2 {
    display: block;
    padding: 9px 12px;
    color: #111111;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #d6d6d6;
}

.bobSearchSuggestionItem2:last-child {
    border-bottom: 0;
}

.bobSearchSuggestionItem2:hover,
.bobSearchSuggestionItem2:focus,
.bobSearchSuggestionItem2.active {
    background: #ffdd24;
    color: #000000;
    text-decoration: none;
}

.bobSearchSuggestionMeta2 {
    display: block;
    margin-top: 2px;
    color: #315070;
    font-size: 0.78rem;
    font-weight: normal;
}

.bobSearchNoResults2 {
    padding: 9px 12px;
    color: #333333;
    font-weight: bold;
}

/* -------------------------
   Existing logo strip tweaks
   ------------------------- */

#bobHeader2 #logo {
    border-bottom-width: 0;
}

/* =========================================================
   Desktop global navigation
   ========================================================= */

.bobDesktopNavShell2 {
    clear: both;
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9000;
}

.bobDesktopGlobalNav2 {
    width: 100%;
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 75% 60%, rgba(255,255,255,0.18) 0 1px, transparent 2px),
        linear-gradient(180deg, #103983 0%, #06183f 100%);
    border-top: 4px solid #37acef;
    border-bottom: 4px solid #37acef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 14px 13px;
    box-sizing: border-box;
    position: relative;
    z-index: 9000;
    font-family: 'Titillium Web', Arial, sans-serif;
}

.bobDesktopNavButton2,
.bobNavButton2 {
    border: 3px solid #000000;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffe85b 0%, #ffb51f 55%, #ff8a16 100%);
    color: #111111;
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 11px 20px;
    cursor: pointer;
    min-width: 128px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.65);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.bobDesktopNavButton2:hover,
.bobDesktopNavButton2:focus,
.bobNavButton2:hover,
.bobNavButton2:focus {
    transform: translateY(-2px);
    box-shadow: 6px 7px 0 rgba(0,0,0,0.65);
    background: linear-gradient(180deg, #fff377 0%, #ffc62e 55%, #ff7c12 100%);
}

.bobDesktopNavButton2[aria-expanded="true"],
.bobNavButton2[aria-expanded="true"] {
    background: linear-gradient(180deg, #ff8426 0%, #f24a12 100%);
    color: #fff700;
    text-shadow: 2px 2px 0 #000000;
    transform: translateY(2px);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.7);
}

/* -------------------------
   Desktop mega menu panels
   ------------------------- */

.bobMegaMenu2 {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100vw - 32px));
    background: #f7f7f7;
    border: 4px solid #000000;
    border-radius: 18px;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.7);
    padding: 20px;
    z-index: 9500;
    box-sizing: border-box;
    font-family: 'Titillium Web', Arial, sans-serif;
}

.bobMegaMenu2::before {
    display: none;
}

.bobMegaMenuInner2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 18px;
}

.bobMegaMenuInner2 > div {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 13px 14px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}

.bobMegaMenuInner2 h3 {
    margin: 0 0 9px;
    padding: 0 0 7px;
    border-bottom: 3px solid #37acef;
    color: #ff6712;
    font-family: 'Titillium Web', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bobMegaMenuInner2 a {
    display: block;
    color: #063f8f;
    text-decoration: none;
    font-family: 'Titillium Web', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    padding: 6px 0;
}

.bobMegaMenuInner2 a:hover,
.bobMegaMenuInner2 a:focus {
    color: #db3f00;
    text-decoration: underline;
}

/* =========================================================
   Mobile global navigation
   ========================================================= */

.bobMobileNavShell2 {
    display: none;
}

.bobMobileGlobalMenuButton2 {
    font-family: 'Titillium Web', Arial, sans-serif;
}

.bobMobileGlobalNav2 {
    display: none;
    width: 100%;
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 75% 60%, rgba(255,255,255,0.18) 0 1px, transparent 2px),
        linear-gradient(180deg, #103983 0%, #06183f 100%);
    border-left: 4px solid #000000;
    border-right: 4px solid #000000;
    border-bottom: 4px solid #000000;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.55);
    box-sizing: border-box;
    padding: 10px;
    max-height: 70vh;
    overflow-y: auto;
}

.bobMobileGlobalNav2.is-open {
    display: block;
}

.bobMobileNavItem2 {
    width: 100%;
    margin-bottom: 8px;
}

.bobMobileNavButton2 {
    width: 100%;
    border: 3px solid #000000;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffe85b 0%, #ffb51f 55%, #ff8a16 100%);
    color: #111111;
    font-family: 'Titillium Web', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 12px 15px;
    cursor: pointer;
    text-align: left;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
}

.bobMobileNavButton2::after {
    content: "▼";
    float: right;
    font-size: 0.85rem;
    margin-top: 2px;
}

.bobMobileNavButton2[aria-expanded="true"] {
    background: linear-gradient(180deg, #ff8426 0%, #f24a12 100%);
    color: #fff700;
    text-shadow: 2px 2px 0 #000000;
}

.bobMobileNavButton2[aria-expanded="true"]::after {
    content: "▲";
}

.bobMobileSubMenu2 {
    background: #f7f7f7;
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0 14px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}

.bobMobileSubMenuGroup2 {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
}

.bobMobileSubMenuGroup2:last-child {
    margin-bottom: 0;
}

.bobMobileSubMenuGroup2 h3 {
    margin: 0 0 8px;
    padding: 0 0 7px;
    border-bottom: 3px solid #37acef;
    color: #ff6712;
    font-family: 'Titillium Web', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bobMobileSubMenuGroup2 a {
    display: block;
    color: #063f8f;
    text-decoration: none;
    font-family: 'Titillium Web', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    padding: 7px 0;
}

.bobMobileSubMenuGroup2 a:hover,
.bobMobileSubMenuGroup2 a:focus {
    color: #db3f00;
    text-decoration: underline;
}

/* =========================================================
   Mobile / tablet behaviour
   ========================================================= */

@media only screen and (max-width: 900px) {

    .bobTopBar2 {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        padding: 9px 12px;
    }

    .bobSearch2 {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .bobSearchBox2 {
        width: 100%;
    }

    .bobUtilityLinks2 {
        display: none;
    }

    .bobDesktopNavShell2 {
        display: none;
    }

    .bobMobileNavShell2 {
        clear: both;
        display: block;
        width: 100%;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 9000;
    }

    .bobMobileGlobalMenuButton2 {
        display: block;
        width: 100%;
        border: 0;
        border-top: 5px solid #37acef;
        border-bottom: 7px solid #37acef;
        background:
            radial-gradient(circle at 12% 20%, rgba(255,255,255,0.18) 0 1px, transparent 2px),
            radial-gradient(circle at 75% 60%, rgba(255,255,255,0.18) 0 1px, transparent 2px),
            linear-gradient(180deg, #103983 0%, #06183f 100%);
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 12px 15px;
        cursor: pointer;
        box-sizing: border-box;
    }

    .bobMobileGlobalMenuButton2::after {
        content: " ▼";
        font-size: 0.85rem;
    }

    .bobMobileGlobalMenuButton2[aria-expanded="true"]::after {
        content: " ▲";
    }

    .bobSearchSuggestions2 {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        z-index: 13000;
    }
}

/* -------------------------
   Very narrow phones
   ------------------------- */

@media only screen and (max-width: 480px) {

    .bobSearch2 button {
        padding: 0 13px;
    }

    .bobSearchIcon2 {
        padding-left: 10px;
        padding-right: 7px;
    }
}

/* =========================================================
   Search results page styles
   ========================================================= */

.bobSearchResultsForm {
    display: flex;
    gap: 8px;
    margin: 20px 0 28px;
}

.bobSearchResultsForm input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #37acef;
    border-radius: 8px;
    font-size: 1rem;
}

.bobSearchResultsForm button {
    padding: 10px 18px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: #ffdd24;
    font-weight: bold;
    cursor: pointer;
}

.bobSearchResultsList {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.bobSearchResultItem {
    display: block;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.35);
    text-decoration: none;
}

.bobSearchResultItem:hover,
.bobSearchResultItem:focus {
    background: #fff7ce;
    text-decoration: none;
}

.bobSearchResultTitle {
    display: block;
    color: #ff6712;
    font-weight: 900;
    font-size: 1.25rem;
}

.bobSearchResultArea {
    display: block;
    color: #063f8f;
    margin-top: 4px;
    font-weight: bold;
}

.bobSearchResultDescription {
    display: block;
    color: #222222;
    margin-top: 8px;
    line-height: 1.35;
    font-size: 1rem;
}

.bobSearchResultUrl {
    display: block;
    color: #444444;
    margin-top: 4px;
    font-size: 0.9rem;
}