/* ===== General Styling ===== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

header {
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

header .container {
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== Search Bar ===== */
.search-bar {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #007bff;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 91, 187, 0.4);
}

/* ===== Search Results ===== */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

/* ===== Navbar ===== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007bff;
}

/* ===== Burger Menu ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 992px) {
    header .container {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1 1 100%;
        text-align: center;
    }

    .search-bar {
        flex: 1 1 100%;
        order: 3;
        margin-top: 10px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    nav {
        flex: 1 1 100%;
        order: 4;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px;
        display: none;
    }

    nav ul.active {
        display: flex;
    }
}


