@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: "Rubik", serif;
    background-color: #f4f4f4;
}

/* Navbar Styling */
/* Ensure the navbar sticks to the top */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 5%;
    height: 80px;
    z-index: 1000;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* Navbar Shrinks when Scrolling */
.navbar.shrink {
    height: 60px;
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo Shrinks on Scroll */
.logo img {
    transition: all 0.3s ease-in-out;
}

.navbar.shrink .logo img {
    width: 100px;
    height: 55px;
}

/* Ensure body content doesn't hide behind fixed navbar */
body {
    padding-top: 80px;
}



.logo img {
    width: 137px;
    height: 76px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
}

/* Search Icon */
.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-icons img {
    height: 20px;
    cursor: pointer;
}

/* Popup Menu */
.popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* Ensure it stays within the screen */
    max-width: 100vw; /* Prevent overflow beyond the viewport */
    background: white;
    padding: 20px;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
    overflow-x: hidden; /* Hide any horizontal overflow */
    z-index: 999;
}


/* Ensure popup stays visible when clicked */
.popup.show {
    display: block;
}

/* Popup Container - Align menu sections in a row */
.popup-container {
    display: flex;
    flex-direction: row; /* Row layout for menu sections */
    justify-content: space-around;
    flex-wrap: wrap; /* Wrap if too many sections */
    padding: 0 20px;
}

/* Each menu section */
.popup-menu {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    box-sizing: border-box;
}

/* Menu heading */
.popup-menu h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 2px solid #F8D486;
    padding-bottom: 5px;
}

/* Menu items in column format */
.popup-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column; /* Ensures list items are in column */
    gap: 8px;
}

.popup-menu li {
    padding: 5px 0;
}

.popup-menu li a {
    text-decoration: none;
    color: black;
    font-size: 14px;
}

.popup-menu li a:hover {
    color: #F8D486;
    font-weight: bold;
}


/* Responsive Design */
@media screen and (max-width: 768px) {
	
	.navbar.shrink {
        height: 60px;
        padding: 10px 5%;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .navbar{
        justify-content: unset;
    }

    .navbar .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        width: 115px;
        height: 65px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px;
        border-top: 1px solid #ccc;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .popup {
        position: relative;
        left: 0;
        top: 0;
        width: 95%;
        padding: 0%;
    }

    .popup-container {
        display: flex
    ;
        flex-direction: column;
        justify-content: space-around;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 20px;
    }

}

@media screen and (max-width: 480px) {
    .popup {
        width: 90%;
        padding: 0%;
    }

}