/* Header layout and shared look (based on trainers.html header) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2000;
    font-family: 'Lexend', sans-serif;
}

.header a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 6px 8px;
    border-radius: 6px;
}

.header a.active {
    color: #1976d2;
    background: rgba(25,118,210,0.08);
}

/* Search input in header */
#search {
    width: 260px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 44px;
    right: 0;
    width: 260px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 2100;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
}

.search-results .result {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.search-results .result:hover {
    background: #f2f6ff;
}

/* Small helper to avoid header overlapping page content:
   The script will add top padding to body if needed, but you can also
   add top padding to a page container like .page-content { padding-top: 68px; }
*/