body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
    background-color: #ffffff;
    flex-wrap: wrap;
    position: relative;
}

.logo a {
    font-weight: 700;
    font-size: 2em;
    color: #2c3e50;
    text-decoration: none;
}

.logo span {
    color: #c0392b;
}

.menu-toggle {
    display: none !important;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
}

.nav-link a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 500;
    margin-left: 10px;
}

.search-wrapper {
    position: relative;
}

.search-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease;
    background-color: #f8f9f9;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    width: clamp(200px, 60vw, 350px);;
    padding: 0;
    border: none;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    border-radius: 6px;
    box-sizing: border-box;
}

.search-form.show {
    max-height: 320px;
    padding: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    pointer-events: auto;
}

.search-form form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 6px;
    font-size: 1em;
    box-sizing: border-box;
    min-width: 0;
}

.search-form button {
    padding: 4px 8px;
    font-size: 1em;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .header {
        padding: 20px 60px;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 30px;
    }

    .logo a {
        font-size: 1.6em;
    }

    .nav-link {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        margin-top: 10px;
        gap:10px;
        flex-wrap: wrap;
    }

    .nav-link a {
        font-size: 1em;
        margin-left: 0;
    }

}