* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, sans-serif;
}

.header {
    background: white;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    position: relative;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 64px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    padding-top: 22px; 
    padding-bottom: 22px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 4px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #0067F0;
    font-weight: 600;
    font-size: 16px;
    line-height: 18px;
}

.nav-links a:hover {
    color: #0067F0;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    width: 260px;
    padding: 0.6rem 1.2rem;
    border: 2px solid #0067F0;
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #0067F0;
}

.search-input::placeholder {
    color: #999;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Start Header Nav */
/* End Header Nav */

@media (max-width: 1023px) {
    .header-container {
        padding: 0 15px;
    }
    .nav {
        position: absolute;
        top: 112px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1.5rem 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 12;
    }

    .nav.active {
        max-height: 400px;
    }
    .header .nav {
      padding: 0;   
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 20px 30px;
    }
    .header .nav form {
        padding: 20px 30px 20px;
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .search-form {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e5e5;
    }

    .search-input {
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}
