/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', 'Nunito sans', sans-serif;
}

/* Header Sticky */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

/* Nav Bar */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Nav Items */
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    gap: 70px;
}

.nav-right {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
}

.nav_btn {
    background: #1E3D58;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

/* Mega Menu */
.has-mega-menu {
    position: relative;
}

.has-mega-menu:hover .mega-menu {
    display: flex;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    border-radius: 10px;
    justify-content: space-between;
    z-index: 999;
}

.mega-menu .mega-column {
    width: 30%;
    display: flex;
    flex-direction: column;
}

.mega-menu h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.mega-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-menu ul li a {
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}

.mega-menu ul li a:hover {
    color: #007BFF;
}

/* Burger Icon */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #000;
    transition: 0.3s ease;
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .burger {
        display: flex;
    }

    .nav-bar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        width: 75%;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 20px 20px;
        transition: left 0.3s ease-in-out;
        z-index: 1001;
    }

    .nav-bar.show {
        left: 0;
    }

    .nav-center,
    .nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }

    .has-mega-menu .mega-menu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 1rem 0;
        flex-direction: column;
    }

    .has-mega-menu .mega-menu.show {
        display: flex;
    }

    .mega-menu .mega-column {
        width: 100%;
        margin-bottom: 1rem;
    }
}
