﻿/************/

.hero-bg {
    position: relative;
    height: 65vh;
    min-height: 400px;
    position: relative;
    color: white;
}

.search-bar {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 890px;
}

    .search-bar input {
        border-radius: 50px !important;
        padding-left: 1.5rem;
        height: 56px;
        font-size: 1.1rem;
    }

    .search-bar button {
        border-radius: 50px;
        position: absolute;
        right: 6px;
        top: 6px;
        height: 44px;
        width: 44px;
    }

/* Top navigation – inside the hero */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    /*  background: rgba(255, 255, 255, 0.92);*/
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.logo {
    width: 240px;
}

.nav-link {
    color: #FFFFFF;
}

    .nav-link:hover {
        color: #fafafaff !important;
    }

.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
}

    .navbar-toggler:focus,
    .navbar-toggler:active,
    .navbar-toggler:focus-visible {
        outline: none;
        box-shadow: none;
    }

.hero-bg {
    flex-direction: column !important; /* ← this is the key line */
    gap: 2.5rem; /* space between search bar & popular searches */
    padding: 100px 1rem 5rem 1rem; /* top = space for nav, bottom = breathing room */
}

/* Make sure the proposals don't stretch too wide */
#proposals {
    width: 100%;
    max-width: 920px;
    padding: 0 1rem;
    position: absolute;
    bottom: 10px;
}

#searchresult {
    width: 100%;
    max-width: 80%;
    padding: 0 1rem;
    position: absolute;
    bottom: 10px;
}


/* Optional: nicer looking tags (matches your screenshot style) */
.search-tag {
    background-color: #FFFFFF;
    border: 1px solid #7057e2;
    text-transform: lowercase;
    font-weight: 500;
}

    .search-tag:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }

    .search-tag.active {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }

/** proposals**/

.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap;
    /* Deep blue but very transparent */
    background: linear-gradient(90deg, rgb(112 87 226), rgb(112 87 226 / 53%), rgb(112 87 226 / 46%))
}
    .pill-badge:hover {
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 6px 18px rgba(59,130,246,0.4);
    }


.hero-bg {
    position: relative;
    overflow: visible; /* ensure the overlapping bar is visible */
    min-height: clamp(320px, 42vw, 560px); /* optional: consistent hero height */
}

/* Center the query bar and pull it upwards to overlap the hero */
.query-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5; /* above hero image */
    margin: -28px auto 0; /* negative top margin = overlap */
    width: min(980px, calc(100% - 32px)); /* centered + page padding on small screens */
}

/* Add comfortable top space to the content that follows the hero,
   so it doesn't collide with the overlapping bar. This targets the
   immediate .container after your KAHeader/hero without touching others. */

