/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
}

/* Navbar Styles */
.navbar {
    z-index:3;
    background: var(--white);
    padding: 15px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  
}

/* Navbar Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
       z-index: 5;
}

/* Logo Styles */
.logo img {
    width: 30%;
    height: auto;
}
.nav-links-container {
    width: 65%; /* Adjust as needed */
    display: flex;
    justify-content: center;
}


/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Individual Nav Items */
.nav-item {
    text-decoration: none;
    color: var(--black);
    font-size: 14px; /* Default font size */
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Hover Effect for Nav Items */
.nav-item:hover {
    color: var(--red);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    z-index:3;
}
/* Hide dropdown menus by default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    width: 180px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Show dropdown menu when the parent has the 'active' class */
.dropdown.active .dropdown-menu {
    display: block;
}

/* Rotate dropdown icon when active */
.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}



/* Dropdown Items */
.dropdown-menu li {
    list-style: none;
    padding: 10px 15px;
    text-align: left;
    width: 100%; /* Full width */
    margin: 0; /* Align left */
    position: relative;
}

/* Light grey divider with reduced width */
.dropdown-menu li::after {
    content: "";
    display: block;
    width: 50%; /* Reduce the width of the divider */
    height: 0.3px;
    background-color: var(--light-grey);
    margin: 4px 0 0 12px; /* Align left */
}

/* Remove Border from Last Item */
.dropdown-menu li:last-child::after {
    display: none;
}

/* Dropdown Links */
.dropdown-menu li a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    display: block;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px; /* Rounded corners */
    position: relative;
}

/* Hover Effect for Dropdown Items */
.dropdown-menu li a:hover {
    color: var(--red);
    background-color: rgba(211, 211, 211, 0.3); /* Light grey background */
}

/* Bottom Line Effect (Left-Aligned, Light Grey) */
.dropdown-menu li a::after {
    content: "";
    display: block;
    width: 50%; /* Half the text width */
    height: 1px;
    /* background-color: var(--light-grey); Light grey underline */
    margin-top: 4px;
    position: absolute;
    left: 12px; /* Align to left */
}


/* Dropdown Arrow */
.arrow {
    font-size: 12px;
    margin-left: 5px;
}

/* 🟢 MOBILE NAVIGATION - HAMBURGER MENU */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* Dropdown Icon Styles */
.dropdown-icon {
    display: inline-block;
    width: 14px;  /* Adjust icon size */
    height: 14px;
    margin-left: 5px; /* Space between text and icon */
    transition: transform 0.3s ease-in-out;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="black"><path d="M6 9l6 6 6-6"></path></svg>') no-repeat center;
    background-size: contain;
}

/* Rotate Dropdown Icon when Active */
.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}


/* RESPONSIVE DESIGN */

@media (max-width: 1024px) {
    .nav-links-container {
        width: 70%; /* Adjust as needed */
        
    }
    .nav-links {
        gap: 10px;
    }
    
    /* Individual Nav Items */
    .nav-item {
        font-size: 12px; /* Default font size */
    
    }

    .dropdown-menu {
       
        width: 150px;
    
    }
    .dropdown-menu li a {
        text-decoration: none;
        font-size: 12px;
        padding: 6px 9px;
       
    }
    .dropdown-icon {
        
        width: 9px;  /* Adjust icon size */
        height: 9px;
    
    }
}
@media (max-width: 768px) {
    
    .logo img {
        width: 40%;
        height: auto;
    }
    .nav-links-container {
        width: 100%;
        display: flex;
        justify-content: space-between; /* Spread links evenly */
        align-items: center;
        padding: 0 10px; /* Adjust padding */
        flex-wrap: nowrap; /* Prevents wrapping */
    }

    .nav-links {
        display: flex;
        gap: 10px; /* Reduce spacing to fit in one line */
        flex-wrap: nowrap; /* Prevents breaking into multiple lines */
    }

    /* Individual Nav Items */
    .nav-item {
        font-size: 10px; /* Reduce font size slightly */
        white-space: nowrap; /* Prevent text from breaking */
    }

    .dropdown-menu {
        width: 140px; /* Adjust dropdown width */
        text-align: left;
    }

    .dropdown-menu li a {
        text-decoration: none;
        font-size: 10px;
        padding: 5px 8px;
    }

    .dropdown-icon {
        
        width: 8px;  /* Adjust icon size */
        height: 8px;
    
    }
    .menu-toggle {
        display: none !important;
    }
}

@media (min-width: 425px) and (max-width: 690px) {
   .logo{
    width:70%;
   }
   
    .nav-links-container {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Initially hidden */
        width: 200px; /* Sidebar width */
        height: 100vh; /* Full height */
        background: var(--white);
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
        padding: 20px 15px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        transition: right 0.3s ease-in-out;
        overflow-y: auto; /* Allow scrolling if needed */
    }

    .nav-links-container.active {
        display: flex;
        right: 0; /* Slide in from the right */
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-item {
        display: block;
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        text-align: left;
    }

    /* 🔹 Dropdown Styling for Sidebar */
    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Added subtle shadow */
        border-radius: 8px;
        margin-top: 5px;
        padding: 10px 0;
        position: static; /* Prevent overlap */
    }
    

    /* Show dropdown when active */
    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li {
        padding: 8px 15px;
        width: 100%;
        text-align: left;
    }

    .dropdown-menu li a {
        display: block;
        font-size: 14px;
        color: var(--black);
        padding: 6px 12px;
        border-radius: 5px;
    }

    .dropdown-menu li a:hover {
        background: rgba(211, 211, 211, 0.5);
    }

    /* Ensure Dropdown Arrow Rotates */
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    .menu-toggle {
        display: block !important;
        font-size: 25px;
        cursor: pointer;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1100;
    }

    /* Close Button */
    .close-menu {
        display: block;
        font-size: 25px;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
    }
}

@media (min-width: 315px) and (max-width: 430px) {
    .logo img {
        width: 40%;
        height: auto;
    }
    .menu-toggle {
        display: block !important;
        font-size: 20px;
    }
     /* Close Button */
     .close-menu {
        display: block !important;
        font-size: 20px;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
    }
    .nav-links-container {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Initially hidden */
        width: 200px; /* Sidebar width */
        height: 100vh; /* Full height */
        background: var(--white);
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
        padding: 20px 15px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        transition: right 0.3s ease-in-out;
        overflow-y: auto; /* Allow scrolling if needed */
    }

    .nav-links-container.active {
        display: flex;
        right: 0; /* Slide in from the right */
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-item {
        display: block;
        width: 100%;
        padding: 12px 15px;
        font-size: 12px;
        text-align: left;
    }

    /* 🔹 Dropdown Styling for Sidebar */
    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Added subtle shadow */
        border-radius: 8px;
        margin-top: 5px;
        padding: 10px 0;
        position: static; /* Prevent overlap */
    }

    /* Show dropdown when active */
    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li {
        padding: 8px 15px;
        width: 100%;
        text-align: left;
    }

    .dropdown-menu li a {
        display: block;
        font-size: 12px;
        color: var(--black);
        padding: 6px 12px;
        border-radius: 5px;
    }

    .dropdown-menu li a:hover {
        background: rgba(211, 211, 211, 0.5);
    }

    /* Ensure Dropdown Arrow Rotates */
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
}
