/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header layout using CSS Grid for professional alignment */
.header {
    background: linear-gradient(135deg, #D6A32D, #FFAE00);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 1rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #ffae00;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: #ecf0f1;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    background-color: #ffae00;
    color: #2c3e50;
    outline: 2px solid #ffae00;
}

/* Search bar styling */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem;
    transition: background 0.3s ease;
}

.search-bar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-bar input {
    border: none;
    background: transparent;
    color: #ecf0f1;
    padding: 0.5rem;
    outline: none;
    flex: 1;
}

.search-bar input::placeholder {
    color: #bdc3c7;
}

.search-bar button {
    background: none;
    border: none;
    color: #ecf0f1;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.search-bar button:hover {
    color: #ffae00;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c3e50;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-list li {
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
    }

    .search-bar {
        display: none; /* Hide search on mobile for simplicity; can be toggled if needed */
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}