/* Header Search Styles with Icon */

/* Desktop Header Search */
.header-search {
    display: flex;
    align-items: center;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background: #f0f8ff;
    border-radius: 25px;
    padding: 4px 4px 4px 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.header-search .search-form:focus-within {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.header-search .search-field {
    background: transparent;
    border: none;
    padding: 8px 12px 8px 0;
    font-size: 14px;
    width: 200px;
    outline: none;
    color: #1a1a1a;
}

.header-search .search-field::placeholder {
    color: #8492a6;
}

/* Search Submit Button with Icon */
.header-search .search-submit {
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.header-search .search-submit:hover {
    background: #003d7a;
    transform: scale(1.05);
}

.header-search .search-submit:active {
    transform: scale(0.95);
}

.header-search .search-submit svg {
    width: 18px;
    height: 18px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .header-search .search-field {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }
}

/* Desktop Only Styles */
@media (min-width: 769px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 2rem;
    }

    .site-branding {
        flex: 0 0 auto;
    }

    .main-navigation {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .header-search {
        flex: 0 0 auto;
    }
}

/* Animation for search field expansion */
@media (min-width: 769px) {
    .header-search .search-field {
        transition: width 0.3s ease;
    }

    .header-search .search-form:focus-within .search-field {
        width: 250px;
    }
}

/* Alternative compact search icon-only button */
.search-icon-only {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #1a1a1a;
}

.search-icon-only:hover {
    background: #f0f8ff;
    border-color: #0066cc;
    color: #0066cc;
}