/* =================================================_
   Site Header & Navigation Styling
   ================================================_ */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.site-logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

/* Search Bar Styling */
.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-bar form {
    display: flex;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar form:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.search-bar input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 0.95rem;
    background: transparent;
    outline: none;
    color: #1e293b;
}

.search-bar button[type="submit"] {
    background: #2c3e50;
    color: #ffffff;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button[type="submit"]:hover {
    background: #1a252f;
}

/* Left-Aligned Main Navigation */
.main-navigation {
    border-top: 1px solid #f1f5f9;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start; /* Left aligns the menu items */
    align-items: center;
    gap: 30px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #2c3e50;
}

.main-navigation a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: 100%;
    }

    .main-navigation ul {
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
}